.ec-headerNaviRole .ec-headerNaviRole__search {
  display: block;
}
.ec-categoryRole {
  padding: 25px 0;
  background: #ffffff;
}
.ec-newItemRole .ec-newItemRole__listItem a {
  color: black;
}
.ec-btn-light {
  background: #ffffff;
  color: #333333;
  border: 2px solid #e5e5e5;
  border-radius: 15px;
  padding: 0.6rem 1.2rem;
  margin: 0.5rem;
  width: 100%;
  max-width: 200px;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ec-btn-light::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.05),
    transparent
  );
  transition: left 0.5s;
}

.ec-btn-light:hover::before {
  left: 100%;
}

.ec-btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  background: #f8f9fa;
  border-color: #333333;
  color: #000000;
  text-decoration: none;
}

.ec-btn-light:active {
  transform: translateY(0px);
}

.category-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.category-icon {
  margin-right: 8px;
  font-size: 1.1rem;
}

/* Error message */
.error_message__box {
  margin-right: 20px;
  width: 45%;
}

.error_message__box:nth-last-child(1) {
  margin-right: 0;
}

.error_message__box .ec-errorMessage {
  width: 100%;
  margin-left: 0;
}
/* Error message */

@media screen and (max-width: 468px) {
  /* Header */
  .ec-headerNaviRole {
    display: flex;
    flex-direction: column-reverse;
  }
  /* Header */
}

@media (max-width: 768px) {
  /* Header */
  .ec-headerNaviRole__left {
    width: 100% !important;
    height: 100% !important;
  }
  .ec-headerNaviRole .ec-headerNaviRole__right {
    width: 100% !important;
    height: 100% !important;
  }
  .ec-headerSearch .ec-headerSearch__category {
    float: left;
    width: 43%;
  }
  .ec-headerSearch .ec-headerSearch__category .ec-select.ec-select_search {
    border-bottom-left-radius: 50px;
    border-top-left-radius: 50px;
    border-top-right-radius: 0px;
  }
  .ec-headerSearch .ec-headerSearch__keyword {
    float: right;
    width: 57%;
    border-bottom-left-radius: inherit;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
  }
  .ec-headerSearch .ec-headerSearch__category .ec-select select {
    padding: 7px 24px 6px 8px;
  }

  .ec-btn-light {
    max-width: 140px;
    padding: 0.2rem 0.5rem;
    font-size: 0.6rem;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sub Banner Styles */
.sub-banner-container {
  padding: 20px 0;
  margin: 20px 0;
}

.sub-banner-container .row {
  justify-content: center;
}

.sub-banner-container [class*="col-"] {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.banner-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  width: 100%;
  max-width: 375px;
  aspect-ratio: 375/190;
  height: auto;
}

.banner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.banner-item a {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.banner-item:hover .banner-img {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .banner-item {
    max-width: 320px;
  }
}

@media (max-width: 992px) {
  .banner-item {
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .sub-banner-container {
    padding: 15px 0;
    margin: 15px 0;
  }

  .banner-item {
    margin-bottom: 10px;
    max-width: 250px;
  }
}

@media (max-width: 576px) {
  .sub-banner-container {
    padding: 10px 0;
    margin: 10px 0;
  }

  .banner-item {
    max-width: 100%;
    margin-bottom: 8px;
  }

  /* Force 2 banners per row on mobile - Override Bootstrap classes */
  .sub-banner-container .col-12,
  .sub-banner-container .col-md-6,
  .sub-banner-container .col-md-4,
  .sub-banner-container .col-lg-4 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 0 5px !important;
  }
}

@media (max-width: 480px) {
  .banner-item {
    max-width: 100%;
    margin-bottom: 6px;
  }

  /* Keep 2 banners per row with tighter spacing */
  .sub-banner-container .col-4,
  .sub-banner-container .col-md-6,
  .sub-banner-container .col-md-4,
  .sub-banner-container .col-lg-4 {
    padding: 0 3px !important;
  }
}

@media (max-width: 360px) {
  .sub-banner-container {
    padding: 8px 0;
    margin: 8px 0;
  }

  .banner-item {
    margin-bottom: 4px;
  }

  .sub-banner-container .col-4,
  .sub-banner-container .col-md-6,
  .sub-banner-container .col-md-4,
  .sub-banner-container .col-lg-4 {
    padding: 0 2px !important;
  }
}

/* Animation for banner loading */
.banner-item {
  animation: bannerFadeIn 0.6s ease-in-out;
}

@keyframes bannerFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for multiple banners */
.banner-item:nth-child(1) {
  animation-delay: 0.1s;
}
.banner-item:nth-child(2) {
  animation-delay: 0.2s;
}
.banner-item:nth-child(3) {
  animation-delay: 0.3s;
}
.banner-item:nth-child(4) {
  animation-delay: 0.4s;
}
.banner-item:nth-child(5) {
  animation-delay: 0.5s;
}
.banner-item:nth-child(6) {
  animation-delay: 0.6s;
}

.ec-blockBtn--light {
  display: inline-block;
  margin-bottom: 0;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none;
  border: 1px solid transparent;
  white-space: nowrap;
  --bs-btn-padding-y: 6px;
  --bs-btn-padding-x: 12px;
  --bs-btn-font-size: 0.875rem;
  --bs-btn-border-radius: 1.42857142;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  padding: 10px 16px;
  text-decoration: none;
  color: #000000;
  background-color: #ffffff;
  border-color: #1b1b1b;
  display: block;
  width: 100%;
  height: 56px;
  line-height: 56px;
  padding-top: 0;
  padding-bottom: 0;
}
.ec-blockBtn--light:focus,
.ec-blockBtn--light.focus,
.ec-blockBtn--light:active:focus,
.ec-blockBtn--light:active.focus,
.ec-blockBtn--light.active:focus,
.ec-blockBtn--light.active.focus {
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}
.ec-blockBtn--light:hover,
.ec-blockBtn--light:focus,
.ec-blockBtn--light.focus {
  color: #525263;
  text-decoration: none;
}
.ec-blockBtn--light:active,
.ec-blockBtn--light.active {
  outline: 0;
  background-image: none;
}
.ec-blockBtn--light.disabled,
.ec-blockBtn--light[disabled],
fieldset[disabled] .ec-blockBtn--light {
  cursor: not-allowed;
  filter: alpha(opacity=65);
  opacity: 0.65;
}
.ec-blockBtn--light:hover {
  color: #000;
  opacity: 0.8;
  background-color: #ffffff;
  border-color: #1b1b1b;
}
.btn-check:focus + .ec-blockBtn--light,
.ec-blockBtn--light:focus {
  color: #000;
  background-color: #ffffff;
  border-color: #1b1b1b;
  box-shadow: 0 0 0 0.25rem rgba(116, 189, 189, 0.5);
}
.btn-check:checked + .ec-blockBtn--light,
.btn-check:active + .ec-blockBtn--light,
.ec-blockBtn--light:active,
.ec-blockBtn--light.active,
.show > .ec-blockBtn--light.dropdown-toggle {
  color: #000;
  background-color: #ffffff;
  border-color: #1b1b1b;
}
.btn-check:checked + .ec-blockBtn--light:focus,
.btn-check:active + .ec-blockBtn--light:focus,
.ec-blockBtn--light:active:focus,
.ec-blockBtn--light.active:focus,
.show > .ec-blockBtn--light.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.25rem rgba(186, 186, 188, 0.5);
}
.ec-blockBtn--light:disabled,
.ec-blockBtn--light.disabled {
  color: #000;
  background-color: #ffffff;
  border-color: #1b1b1b;
}
.ec-blockBtn--light .ec-icon img {
  width: 1em;
  vertical-align: text-bottom;
}
.product-image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  overflow: hidden;
}
.product-image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}
.pickup-banner {
  position: absolute;
  top: 12px;
  left: -32px;
  width: 130px;
  height: 26px;
  background: #f97e7f;
  transform: rotate(-45deg);
  transform-origin: center;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}
.pickup-banner span {
  color: #ffffff;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}
