.header-middle {
  border-bottom: 1px solid hsl(var(--border));
}

.header-search-form {
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  background: hsl(var(--white));
  box-shadow: 0 8px 24px hsl(var(--dark) / 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-form:focus-within {
  border-color: hsl(var(--base) / 0.55);
  box-shadow: 0 0 0 4px hsl(var(--base) / 0.1), 0 10px 28px hsl(var(--dark) / 0.08);
}

.header-search-form .form--control {
  padding-right: 68px;
  background: transparent;
}

.header-search-form .icon {
  top: 0;
  right: 0;
  height: 100%;
  min-width: 56px;
  color: hsl(var(--white));
  background: linear-gradient(135deg, hsl(var(--base)), hsl(var(--base-800)));
  transform: none;
}

.header-search-form .icon:hover {
  color: hsl(var(--white));
  font-size: 1.25rem;
  filter: brightness(1.08);
}

.header-bottom {
  background: linear-gradient(110deg, hsl(var(--base-800)), hsl(var(--base)), hsl(var(--base-700)));
}

.header-bottom .menu li a {
  border-radius: 9px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header-bottom .menu li a:hover,
.header-bottom .menu li a.active {
  color: hsl(var(--white));
  background: hsl(var(--white) / 0.14);
}

.product-shop .widget {
  border-radius: 14px;
  border-color: hsl(var(--base) / 0.12);
  box-shadow: 0 8px 24px hsl(var(--dark) / 0.04);
}

.product-shop .widget .title {
  color: hsl(var(--heading-color));
}

.product-card {
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(hsl(var(--white)), hsl(var(--white))) padding-box,
    linear-gradient(145deg, hsl(var(--base) / 0.36), hsl(var(--accent) / 0.16), hsl(var(--base) / 0.08)) border-box;
  box-shadow: 0 8px 24px hsl(var(--dark) / 0.045);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover,
.product-card.active {
  border-color: transparent;
  box-shadow: 0 18px 38px hsl(var(--base) / 0.14);
  transform: translateY(-4px);
}

.product-card .product-thumb {
  border-radius: 11px;
  background: linear-gradient(145deg, hsl(var(--base) / 0.055), hsl(var(--accent) / 0.045));
}

.product-card:hover img {
  transform: scale(1.06);
}

.product-card .product-card-buttons li a,
.product-card .product-card-buttons li button {
  border-radius: 10px;
  box-shadow: 0 4px 14px hsl(var(--dark) / 0.1);
}

.product-card .product-content .title a {
  transition: color 0.2s ease;
}

.product-card .product-content .title a:hover {
  color: hsl(var(--base));
}

.product-card .add-to-cart-btn,
.product-card .btn--base {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, hsl(var(--base)), hsl(var(--base-800)));
  box-shadow: 0 6px 16px hsl(var(--base) / 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.product-card .add-to-cart-btn:hover,
.product-card .btn--base:hover {
  box-shadow: 0 9px 22px hsl(var(--base) / 0.26);
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.footer-copyright .right .footer-payment-methods {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .header-search-form,
  .header-bottom .menu li a,
  .product-card,
  .product-card .add-to-cart-btn,
  .product-card .btn--base {
    transition: none;
  }

  .product-card:hover,
  .product-card.active {
    transform: none;
  }
}

@media (max-width: 991px) {
  body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .mobile-menu-icons {
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
    height: 68px;
    align-items: stretch;
    padding: 6px 8px !important;
    overflow: visible;
    border: 1px solid hsl(var(--white) / 0.12);
    border-radius: 18px;
    background: linear-gradient(115deg, hsl(var(--base-800)), hsl(var(--base-dark)), hsl(var(--base-700)));
    box-shadow: 0 10px 30px hsl(var(--dark) / 0.24);
  }

  .mobile-menu-icons li {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
  }

  .mobile-menu-icons li + li {
    border-left: 1px solid hsl(var(--white) / 0.2);
  }

  .mobile-menu-icons .ecommerce {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 3px;
  }

  .mobile-menu-icons .ecommerce__icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  }

  .mobile-menu-icons .ecommerce__icon img {
    width: 21px;
    height: 21px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

  .mobile-menu-icons .ecommerce__text {
    max-width: 100%;
    overflow: hidden;
    color: hsl(var(--white) / 0.82) !important;
    font-size: 0.7rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .mobile-menu-icons {
    left: 8px;
    right: 8px;
    padding-right: 4px !important;
    padding-left: 4px !important;
  }

  .mobile-menu-icons .ecommerce__text {
    font-size: 0.65rem;
  }
}

@media (max-width: 767px) {
  .header-middle {
    padding: 10px 0 12px;
    border-bottom: 0;
  }

  .header-middle .container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .header-wrapper {
    width: 100%;
    min-height: 40px;
    gap: 10px;
  }

  .header-wrapper .logo a {
    width: auto;
    max-width: min(58vw, 190px);
  }

  .header-search-btn {
    display: none !important;
  }

  .mobile-header-search {
    display: flex;
    width: 100%;
    min-height: 42px;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    border-radius: 11px;
    background: hsl(var(--light));
  }

  .mobile-header-search .form--control {
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 0;
    background: transparent;
  }

  .mobile-header-search button {
    width: 44px;
    flex: 0 0 44px;
    border: 0;
    color: hsl(var(--white));
    background: linear-gradient(135deg, hsl(var(--base)), hsl(var(--base-800)));
  }

  .header-bottom {
    background: linear-gradient(110deg, hsl(var(--base-800)), hsl(var(--base)), hsl(var(--base-700)));
  }

  .hero-section {
    margin-top: 12px;
  }

  .hero-slider {
    gap: 10px;
  }

  .slider-wrapper {
    height: clamp(145px, 43vw, 205px);
  }

  .banner-slider.owl-carousel .owl-item img {
    border-radius: 13px;
  }

  .banner-categories {
    border: 0;
    background: transparent;
  }

  .category-card-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .category-card-wrapper::-webkit-scrollbar {
    display: none;
  }

  .category-card-wrapper .small-card-item {
    flex: 0 0 92px;
    padding: 12px 8px;
    border: 1px solid hsl(var(--border));
    border-radius: 13px;
    background: linear-gradient(145deg, hsl(var(--white)), hsl(var(--base) / 0.045));
    box-shadow: 0 5px 16px hsl(var(--dark) / 0.04);
    scroll-snap-align: start;
  }

  .category-card-wrapper .small-card-item img {
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
    object-fit: contain;
  }

  .section-header {
    margin-bottom: 12px;
  }

  .section-header .title {
    font-size: 1.12rem;
  }

  .recently-viewed-section,
  .flash-sell-section,
  .service-section {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
  }

  .recent-view.product-wrapper {
    display: grid;
    grid-auto-columns: minmax(145px, 43%);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .recent-view.product-wrapper::-webkit-scrollbar {
    display: none;
  }

  .recent-view .product-card {
    scroll-snap-align: start;
  }

  .product-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card {
    padding: 9px;
    border-radius: 13px;
  }

  .product-card .product-thumb {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .product-card .product-thumb a {
    width: 100%;
  }

  .product-card .product-thumb img {
    width: 100%;
    height: 100%;
    max-height: 190px;
    object-fit: contain;
  }

  .product-card .product-content .title {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .product-card .add-to-cart-btn {
    width: 100%;
    padding: 8px 6px;
    font-size: 0.76rem;
  }

  .product-details-container {
    gap: 18px !important;
  }

  .product-details-container .product-gallery {
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    background: linear-gradient(145deg, hsl(var(--base) / 0.06), hsl(var(--white)));
  }

  .product-details-container .product-gallery > img {
    width: 100%;
    max-height: min(88vw, 390px);
    object-fit: contain;
  }

  .product-details .product-title {
    font-size: 1.25rem;
  }

  .product-details .product-add-to-cart {
    position: sticky;
    bottom: calc(88px + env(safe-area-inset-bottom));
    z-index: 20;
    align-items: center;
    padding: 10px;
    border: 1px solid hsl(var(--border));
    border-radius: 14px;
    background: hsl(var(--white) / 0.96);
    box-shadow: 0 8px 24px hsl(var(--dark) / 0.12);
    backdrop-filter: blur(12px);
  }

  .product-details .product-add-to-cart .addToCart {
    min-height: 42px;
    flex: 1;
    border-radius: 10px;
  }
}