:root {
  --bg: #ffffff;
  --text: #22304f;
  --muted: #5f6980;
  --red: #e11616;
  --blue: #1051cf;
  --cyan: #18d4ef;
  --violet: #b317d8;
  --navy: #1f3f7e;
  --footer-text: #f4f7ff;
  --shadow: 0 18px 50px rgba(24, 48, 95, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Barlow", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

body.products-page {
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
}

.promo-bar {
  background: var(--red);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  overflow: hidden;
  border-radius: 18px;
}

.promo-track {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
}

.promo-marquee {
  display: inline-flex;
  min-width: 100%;
  animation: marquee 18s linear infinite;
}

.promo-marquee span {
  flex: 0 0 auto;
  padding: 8px 24px;
}

.site-header {
  background: var(--bg);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(31, 63, 126, 0.08);
  overflow-x: clip;
}

.header-top {
  padding: 18px 0 12px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.promo-bar-inline {
  flex: 1 1 auto;
}

.brand-mark {
  width: clamp(150px, 18vw, 240px);
  min-width: 150px;
  height: clamp(52px, 6vw, 76px);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand-mark.has-image {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.brand-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 16px;
  min-width: 0;
}

.menu-button {
  width: 56px;
  height: 56px;
  border: 0;
  background: transparent;
  display: none;
  gap: 0;
  padding: 0;
  cursor: pointer;
  color: #1f2a44;
  text-align: center;
}

.menu-button::after {
  content: none;
}

.menu-button .menu-label {
  display: none;
}

.menu-button .menu-icon {
  display: block;
  width: 56px;
  height: 56px;
  fill: #1f2a44;
  stroke: #1f2a44;
}

.menu-button .menu-icon-close {
  display: none;
}

.menu-button.is-open .menu-icon-open {
  display: none;
}

.menu-button.is-open .menu-icon-close {
  display: block;
}


.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
  font-weight: 500;
  color: #1f2a44;
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}.nav-item {
  position: relative;
  padding: 0;
  flex: 0 0 auto;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  font-size: 1.02rem;
}

.nav-item > a::after {
  display: none;
}

.nav-item-all {
  min-width: 132px;
  position: static;
}

.all-categories-link {
  gap: 12px;
}

.all-categories-icon {
  display: inline-grid;
  gap: 5px;
  width: 28px;
}

.all-categories-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #1f2a44;
}

.all-categories-label {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.all-categories-label strong {
  font-size: 1rem;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 210px;
  max-width: min(980px, calc(100vw - 40px));
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 45px rgba(24, 48, 95, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
  z-index: 20;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.dropdown-menu a {
  color: var(--muted);
}

.dropdown-menu a:hover {
  color: var(--blue);
}

.dropdown-group-title {
  font-weight: 800;
  color: #1e2a45;
  margin-top: 4px;
}

.dropdown-menu-all {
  left: 0;
  width: min(980px, 100%);
  min-width: 0;
  max-width: min(980px, 100%);
  max-height: min(70vh, 520px);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: start;
  gap: 18px 22px;
  overflow: auto;
  padding: 20px;
}

.mega-menu-group {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.mega-menu-links {
  display: grid;
  gap: 10px;
}

.nav-item-measure {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-section {
  padding-top: 10px;
}

.hero-slider {
  position: relative;
}

.hero-track {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  min-height: clamp(240px, 32vw, 600px);
  background:
    linear-gradient(90deg, rgba(16, 42, 95, 0.12) 0%, rgba(255, 255, 255, 0.55) 30%, rgba(255, 255, 255, 0.55) 70%, rgba(176, 24, 81, 0.12) 100%),
    linear-gradient(135deg, rgba(16, 42, 95, 0.08), rgba(176, 24, 81, 0.08));
  border-radius: 30px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  display: grid;
  place-items: center;
  background:
      radial-gradient(circle at center, rgba(255, 255, 255, 0.22), transparent 48%),
      linear-gradient(135deg, rgba(16, 42, 95, 0.16), rgba(176, 24, 81, 0.16));
}

.hero-slide.is-contained::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-slide-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: blur(28px) saturate(0.9);
  opacity: 0.42;
}

.hero-slide.is-contained::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 42, 95, 0.14), rgba(255, 255, 255, 0.28) 24%, rgba(255, 255, 255, 0.28) 76%, rgba(176, 24, 81, 0.14)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.12));
}

.hero-slide.is-full-bleed {
  background: transparent;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-banner-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: translateZ(0);
  filter: drop-shadow(0 18px 30px rgba(20, 35, 70, 0.12));
}

.hero-slide.is-contained .hero-banner-image {
  width: auto;
  height: auto;
  max-width: min(72%, 1180px);
  max-height: 88%;
  border-radius: 24px;
  box-shadow: 0 26px 60px rgba(23, 40, 79, 0.18);
}

.hero-slide.is-contained.is-wide-contained .hero-banner-image {
  max-width: min(78%, 1280px);
  max-height: 82%;
}

.hero-slide.is-contained.is-square .hero-banner-image {
  max-width: min(34%, 430px);
  max-height: 84%;
}

.hero-slide.is-contained.is-portrait .hero-banner-image {
  max-width: min(28%, 360px);
  max-height: 88%;
}

.hero-slide.is-full-bleed .hero-banner-image {
  object-fit: cover;
  filter: none;
}

.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(44px, 4.2vw, 60px);
  height: clamp(44px, 4.2vw, 60px);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #1e335e;
  font-size: clamp(1.45rem, 1.8vw, 2rem);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 16px 36px rgba(18, 34, 74, 0.18);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.slider-control:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 42px rgba(18, 34, 74, 0.22);
  color: #102a5f;
}

.slider-control:active {
  transform: translateY(-50%) scale(0.98);
}

.slider-control.prev {
  left: clamp(12px, 1.8vw, 24px);
}

.slider-control.next {
  right: clamp(12px, 1.8vw, 24px);
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 2vw, 24px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 29, 59, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, width 0.22s ease;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.slider-dot.is-active {
  width: 28px;
  background: #ffffff;
}

.category-section {
  padding: 44px 0 60px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-image-link {
  display: block;
  min-height: 230px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.category-image {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.category-title-link {
  display: inline-block;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 800;
}

.category-title-link:hover {
  color: var(--red);
}

.campaign-note {
  margin: 12px 0 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: #52617f;
  letter-spacing: 0.02em;
}

.site-footer {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--navy), var(--blue) 55%, var(--violet));
  color: #f4f7ff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 42px 0;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 14px;
}

.site-footer p,
.site-footer a,
.site-footer span {
  display: block;
  margin: 0 0 10px;
  color: var(--footer-text);
}

.products-main {
  padding: 28px 0 64px;
}

.products-toolbar {
  padding-bottom: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #7a8498;
  font-size: 0.95rem;
}

.breadcrumb strong {
  color: var(--red);
}

.toolbar-row {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sort-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #51607f;
}

.sort-box select {
  min-width: 180px;
  height: 42px;
  border: 1px solid #d6dcea;
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  color: #2c3855;
  font: inherit;
}

.products-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #525f7d;
  font-weight: 600;
}

.products-summary strong {
  color: var(--text);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.product-card {
  border: 1px solid #e0e5f0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(31, 63, 126, 0.06);
}

.product-image {
  position: relative;
  aspect-ratio: 2 / 3;
  min-height: 0;
  background: #f5f5f5;
}

.product-main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 2 / 3;
}

.product-image-link {
  display: block;
}

.product-zoom-button {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(12, 21, 39, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2a44;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.15);
}

.product-zoom-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.product-corner-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #e03131;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  font-size: 20px;
  line-height: 1;
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.product-corner-badge.is-star {
  color: #f5a623;
}

.product-corner-badge:hover {
  background: #ffffff;
  color: #ff4d6d;
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16);
}

.product-corner-badge.is-star:hover {
  color: #ffbf47;
}

.product-thumbs {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.thumb-dot {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.thumb-dot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-dot.is-active {
  outline: 2px solid #ff7c43;
  outline-offset: 1px;
}

.product-hover-meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 52px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.product-hover-brand {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.product-hover-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-mobile-meta {
  display: none;
  margin: 2px 0 2px;
  padding: 0;
}

.product-size-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d9e1ef;
  color: #33415c;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-card:hover .product-hover-meta,
.product-card:focus-within .product-hover-meta {
  opacity: 1;
  transform: translateY(0);
}

.product-thumbs {
  transition: transform 0.2s ease;
}

.product-card:hover .product-thumbs,
.product-card:focus-within .product-thumbs {
  transform: translateX(-50%) scale(1.02);
}

.product-info {
  padding: 10px 12px 14px;
}

.product-info h3 {
  margin: 0 0 2px;
  font-size: 0.9rem;
  color: var(--text);
}

.product-title-link:hover {
  color: #d92d35;
}

.product-info p {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.product-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--red);
}

.loading-indicator {
  padding: 22px 0 6px;
  text-align: center;
  color: #65728e;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.loading-indicator.is-visible {
  opacity: 1;
}

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 10px;
  box-sizing: border-box;
}

.product-lightbox[hidden] {
  display: none !important;
}

.product-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 27, 0.82);
}

.product-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1400px);
  height: min(96vh, 1100px);
  padding: 52px 70px 44px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
}

.product-lightbox-image-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-lightbox-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

.product-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(10, 16, 30, 0.72);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.product-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(10, 16, 30, 0.72);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.product-lightbox-nav.is-prev {
  left: 10px;
}

.product-lightbox-nav.is-next {
  right: 10px;
}

body.lightbox-open {
  overflow: hidden;
}

.scroll-sentinel {
  height: 2px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1100px) {

  .cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1000px);
  }

  .header-top {
    align-items: center;
    gap: 10px;
    padding: 12px 0 10px;
  }

  .main-nav {
    gap: 14px;
    font-size: 0.95rem;
  }

  .dropdown-menu {
    min-width: 180px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand-mark {
    width: 100px;
    min-width: 100px;
    height: 52px;
    border-radius: 16px;
  }

  .promo-bar-inline {
    flex: 1 1 auto;
    min-width: 0;
  }

  .promo-bar {
    border-radius: 14px;
  }

  .promo-marquee span {
    padding: 7px 18px;
    font-size: 0.78rem;
  }

  .hero-slide {
      border-radius: 24px;
    }

  .hero-track {
      min-height: 180px;
      border-radius: 24px;
    }

  .hero-banner-image {
      width: 100%;
      height: 100%;
    }

  .hero-slide.is-contained .hero-banner-image {
        max-width: min(72%, 620px);
        max-height: 78%;
        border-radius: 18px;
      }

  .hero-slide.is-contained.is-wide-contained .hero-banner-image {
    max-width: min(76%, 660px);
    max-height: 76%;
  }

  .hero-slide.is-contained.is-square .hero-banner-image {
    max-width: min(42%, 320px);
    max-height: 76%;
  }

  .hero-slide.is-contained.is-portrait .hero-banner-image {
    max-width: min(34%, 250px);
    max-height: 84%;
  }

  .slider-control {
      width: 44px;
      height: 44px;
      font-size: 1.4rem;
    }

  .slider-dots {
    bottom: 12px;
    gap: 8px;
    padding: 6px 10px;
  }

  .slider-dot {
    width: 9px;
    height: 9px;
  }

  .slider-dot.is-active {
    width: 24px;
  }

  .campaign-note {
    font-size: 1.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 34px 0;
  }

  .nav-row {
    padding-bottom: 10px;
  }

  .menu-button {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 9px 7px;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 0;
  }

  .main-nav.is-open {
    display: flex;
  }.nav-item {
    width: 100%;
    padding: 0;
    border-bottom: 1px solid #e7ebf4;
  }

  .nav-item > a {
    width: 100%;
    justify-content: space-between;
    padding: 14px 0;
  }

  .dropdown-menu {
    position: static;
    min-width: 100%;
    display: none;
    margin-bottom: 12px;
    padding: 10px 12px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    background: #f7f9ff;
  }

  .nav-item:hover .dropdown-menu {
    display: grid;
  }

  .toolbar-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .product-hover-meta {
    opacity: 1;
    transform: translateY(0);
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 10px 11px;
    gap: 6px;
    border-radius: 14px;
  }

  .product-hover-brand {
    font-size: 0.8rem;
  }

  .product-size-chip {
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .product-thumbs {
    display: none;
  }
}

.hero-banner-link {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: clamp(20px, 3vw, 36px);
  position: relative;
  z-index: 2;
}

.hero-slide.is-full-bleed .hero-banner-link {
  padding: 0;
}

@media (max-width: 720px) {
  .nav-item.is-open .dropdown-menu {
    display: grid;
  }

  .main-nav .dropdown-menu {
    max-height: 50vh !important;
    overflow-y: auto !important;
    padding-right: 8px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    box-shadow: inset 0 -18px 18px -18px rgba(15, 27, 51, 0.35);
  }
}

.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(39, 92, 214, 0.14), transparent 28%),
    linear-gradient(180deg, #f4f7fd 0%, #ecf1f9 100%);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 28px 20px;
  background: linear-gradient(180deg, #132746 0%, #1b3560 100%);
  color: #fff;
  box-shadow: 18px 0 38px rgba(12, 28, 58, 0.14);
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 10px 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #21d4fd, #275bd6);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 30px rgba(9, 21, 53, 0.34);
}

.admin-sidebar h1 {
  margin: 0 0 6px;
  font-size: 1.9rem;
}

.admin-sidebar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.5;
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin-bottom: 8px;
  padding: 0 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-sidebar a:hover,
.admin-sidebar a.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateX(2px);
}

.admin-content {
  padding: 30px;
}

.admin-topbar,
.admin-panel-section {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(213, 223, 240, 0.9);
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(25, 46, 86, 0.08);
  backdrop-filter: blur(10px);
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 26px 28px;
  margin-bottom: 22px;
}

.admin-topbar h2,
.section-heading h3 {
  margin: 0 0 6px;
}

.admin-topbar p {
  margin: 0;
  color: #63708c;
}

.admin-actions,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-panel-section {
  padding: 22px;
  margin-bottom: 20px;
}

.admin-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.admin-editor-grid > .admin-table-wrap {
  grid-column: 1 / -1;
  width: 100%;
}

.admin-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid #dde4f0;
  border-radius: 16px;
  background: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  background: #f8fbff;
  color: #61708d;
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-table tbody tr:hover {
  background: #fafcff;
}

.admin-table-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e4eaf4;
  background: #f3f6fb;
}

.admin-table-actions {
  display: flex;
  gap: 10px;
}

.admin-icon-button,
.admin-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.admin-icon-button {
  background: #1b8be0;
  color: #fff;
}

.admin-delete-button {
  background: #fff1f1;
  color: #cb2d2d;
}

.admin-bulk-button {
  width: auto;
  min-width: 130px;
}

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #42b95c;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-card {
  border: 1px solid #dde4f0;
  border-radius: 18px;
  padding: 16px;
  background: #fbfcff;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.admin-settings-section-title {
  grid-column: 1 / -1;
  margin: 6px 0 4px;
  padding: 8px 12px;
  background: #eef3fb;
  border: 1px solid #d6e0f0;
  border-radius: 10px;
  font-weight: 700;
  color: #1f3f7e;
}

.admin-card-full {
  grid-column: 1 / -1;
}

.admin-card h3 {
  margin: 0 0 8px;
}

.admin-card-meta {
  margin: 0 0 8px;
  color: #64718d;
}

.admin-preview {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
  background: #eef2fa;
}

.admin-preview-tall {
  height: 240px;
}

.admin-field {
  display: block;
  margin-bottom: 12px;
}

.admin-field span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4e5b79;
}

.admin-input,
.admin-textarea,
.admin-file {
  width: 100%;
  border: 1px solid #d4dceb;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

.admin-textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-primary-button,
.admin-secondary-button,
.admin-danger-button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-primary-button {
  background: #164ec9;
  color: #fff;
}

#save-data-button {
  display: none;
}

.admin-edit-page #save-data-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-link-button {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  margin-bottom: 10px;
}

.admin-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
}

.admin-checkbox input {
  margin: 0;
}

.admin-assignment-list {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-assignment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.admin-inline-delete {
  min-width: 68px;
  padding-inline: 14px;
}

.admin-helper-text {
  margin: 0;
  color: #64718d;
}

.admin-image-manager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.admin-image-card {
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
  cursor: grab;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-image-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(24, 48, 95, 0.08);
}

.admin-image-card.is-cover {
  border-color: #1d63d8;
  box-shadow: 0 0 0 3px rgba(29, 99, 216, 0.1);
}

.admin-image-card.is-drag-over {
  border-color: #ff8b3d;
  background: #fff8f2;
}

.admin-image-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-drag-handle {
  color: #64718d;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-cover-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #164ec9;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-image-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #eef2fa;
}

.admin-image-actions {
  display: flex;
  gap: 8px;
}

.admin-image-button {
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
}

.admin-secondary-button {
  background: #edf2ff;
  color: #29447c;
}

.admin-filter-select {
  min-width: 220px;
}

.admin-color-input {
  padding: 6px;
  height: 48px;
}

.admin-danger-button {
  width: 100%;
  background: #fff1f1;
  color: #cb2d2d;
}

@media (max-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-editor-grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar,
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-assignment-row {
    grid-template-columns: 1fr;
  }
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-nav-card {
  display: block;
  padding: 22px;
  border: 1px solid #dde4f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcff, #f2f6ff);
}

.admin-nav-card h3 {
  margin: 0 0 8px;
  color: #21355e;
}

.admin-nav-card p {
  margin: 0;
  color: #64718d;
}

@media (max-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-card {
  width: min(440px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-login-card h1 {
  margin: 0 0 8px;
}

.admin-login-card p {
  margin: 0 0 16px;
  color: #63708c;
}

.admin-login-form {
  display: grid;
  gap: 12px;
}

.admin-login-submit {
  width: 100%;
}

.admin-login-error {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff1f1;
  color: #cb2d2d;
  font-weight: 700;
}

.admin-login-note {
  margin-top: 14px;
  font-size: 0.92rem;
}







.admin-topbar-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(39, 91, 214, 0.1);
  color: #2149b8;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.admin-dashboard-section {
  display: grid;
  gap: 20px;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-overview-card {
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  border: 1px solid #e1e8f4;
}

.admin-overview-label {
  display: block;
  margin-bottom: 10px;
  color: #64718d;
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-overview-value {
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: #152847;
}

.admin-overview-note {
  margin: 10px 0 0;
  color: #7a859d;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-nav-card {
  position: relative;
  display: block;
  padding: 24px;
  border: 1px solid #dfe7f4;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-nav-card:hover {
  transform: translateY(-3px);
  border-color: #cfdcf3;
  box-shadow: 0 18px 38px rgba(21, 40, 71, 0.09);
}

.admin-nav-card-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #21d4fd, #275bd6);
  color: #fff;
  font-weight: 800;
}

.admin-nav-card h3 {
  margin: 0 0 10px;
  color: #1b2d4a;
}

.admin-nav-card p {
  margin: 0 0 18px;
  color: #64718d;
  line-height: 1.6;
}

.admin-nav-card-link {
  display: inline-flex;
  align-items: center;
  color: #1b4fc9;
  font-weight: 800;
}

.admin-table-wrap,
.admin-card {
  box-shadow: 0 14px 30px rgba(29, 48, 89, 0.04);
}

.admin-table th {
  background: linear-gradient(180deg, #f9fbff, #f2f6fd);
}

.admin-input,
.admin-textarea,
.admin-file {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-input:focus,
.admin-textarea:focus,
.admin-file:focus {
  outline: none;
  border-color: #2b5ed6;
  box-shadow: 0 0 0 4px rgba(43, 94, 214, 0.12);
}

@media (max-width: 1180px) {
  .admin-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}











/* Admin premium polish */
.admin-content {
  padding: 34px;
}

.admin-topbar,
.admin-panel-section {
  border-radius: 28px;
  box-shadow: 0 24px 54px rgba(19, 37, 71, 0.08);
}

.admin-topbar {
  padding: 28px 30px;
}

.admin-topbar h2 {
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  color: #1b2d4a;
}

.admin-topbar p {
  max-width: 680px;
  line-height: 1.6;
}

.admin-panel-section {
  padding: 24px;
}

.admin-sidebar {
  padding: 30px 22px;
  background: linear-gradient(180deg, #10233f 0%, #17325b 52%, #21457b 100%);
}

.admin-sidebar a {
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.admin-sidebar a:hover,
.admin-sidebar a.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
}

.admin-sidebar-title {
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.admin-sidebar-badge {
  box-shadow: 0 14px 26px rgba(33, 96, 214, 0.34);
}

.admin-overview-card {
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(26, 46, 86, 0.06);
}

.admin-overview-value {
  letter-spacing: -0.03em;
}

.admin-nav-card {
  padding: 26px;
}

.admin-nav-card-link::after {
  content: " ->";
  margin-left: 6px;
}

.admin-card {
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.admin-card h3 {
  margin-bottom: 10px;
  color: #213556;
}

.admin-card-meta {
  line-height: 1.6;
}

.admin-field {
  margin-bottom: 14px;
}

.admin-field span {
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: #445573;
}

.admin-input,
.admin-textarea,
.admin-file {
  min-height: 50px;
  border-radius: 14px;
  border-color: #d8e1ee;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.admin-textarea {
  min-height: 120px;
}

.admin-input::placeholder,
.admin-textarea::placeholder {
  color: #8b97af;
}

.admin-primary-button,
.admin-secondary-button,
.admin-danger-button,
.admin-icon-button,
.admin-delete-button {
  min-height: 46px;
  border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.admin-primary-button {
  background: linear-gradient(135deg, #1d59d6, #1545b4);
  box-shadow: 0 14px 28px rgba(21, 69, 180, 0.22);
}

.admin-primary-button:hover,
.admin-secondary-button:hover,
.admin-danger-button:hover,
.admin-icon-button:hover,
.admin-delete-button:hover {
  transform: translateY(-1px);
}

.admin-secondary-button {
  background: linear-gradient(180deg, #f4f7ff, #e9f0ff);
  color: #24437d;
}

.admin-danger-button,
.admin-delete-button {
  background: linear-gradient(180deg, #fff7f7, #ffecec);
  color: #c23232;
}

.admin-icon-button,
.admin-delete-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #dde5f1;
  background: #fff;
  font-weight: 700;
}

.admin-table-wrap {
  margin-top: 20px;
  border-radius: 20px;
  border-color: #e1e8f3;
}

.admin-table {
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 16px 18px;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-table tbody tr {
  transition: background 0.18s ease, transform 0.18s ease;
}

.admin-table tbody tr:hover {
  background: #f8fbff;
}

.admin-table-thumb {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}

.admin-table-actions {
  gap: 12px;
}

.admin-filter-select {
  min-width: 250px;
}

.admin-helper-text {
  color: #6b7893;
  line-height: 1.6;
}

.admin-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f1f5fd;
  border: 1px solid #dbe5f6;
  color: #26437b;
  font-weight: 600;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-chip:hover {
  transform: translateY(-1px);
  border-color: #b9caec;
  box-shadow: 0 10px 20px rgba(20, 46, 95, 0.08);
}

@media (max-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .admin-content {
    padding: 20px;
  }

  .admin-topbar,
  .admin-panel-section {
    border-radius: 22px;
  }

  .admin-table {
    min-width: 680px;
  }
}

.admin-icon-button {
  color: #1b4fc9;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
  border-color: #d7e3f8;
  box-shadow: 0 8px 18px rgba(28, 79, 201, 0.08);
}

.admin-icon-button:hover {
  background: linear-gradient(180deg, #f7faff, #edf4ff);
  color: #143f9f;
}




/* Site color overrides from panel */
body,
body.products-page,
.site-header {
  background: var(--bg);
  color: var(--text);
}

.dropdown-menu a,
.products-summary,
.product-info p,
.loading-indicator,
.category-title-link,
.site-footer p,
.site-footer a,
.site-footer span {
  color: var(--muted);
}

.dropdown-menu a:hover,
.category-title-link:hover {
  color: var(--blue);
}

.products-summary strong,
.product-info h3,
.main-nav a,
.dropdown-group-title {
  color: var(--text);
}

.breadcrumb strong,
.promo-bar {
  color: #fff;
}

.breadcrumb strong {
  color: var(--red);
}

.site-footer {
  background: linear-gradient(135deg, var(--navy), var(--blue) 55%, var(--violet));
}

.brand-mark {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.site-footer h3,
.site-footer h4 {
  color: var(--footer-text);
}

.site-footer p,
.site-footer a,
.site-footer span {
  color: var(--footer-text);
}









.admin-product-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.admin-product-sidebar-column {
  position: sticky;
  top: 24px;
}
.admin-product-media-card,
.admin-product-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 247, 252, 0.94) 100%);
  border: 1px solid rgba(212, 223, 240, 0.92);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(17, 37, 74, 0.08);
}
.admin-product-media-card {
  padding: 18px;
}
.admin-product-media-frame {
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef3fb 0%, #dde7f7 100%);
  border: 1px solid rgba(206, 219, 239, 0.9);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.admin-product-media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-product-media-empty {
  padding: 18px;
  text-align: center;
  color: #70809d;
  font-weight: 700;
}
.admin-product-media-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.admin-product-media-meta strong {
  color: #1b2d4a;
  font-size: 1rem;
}
.admin-product-media-meta span,
.admin-product-hint span {
  color: #6c7b95;
  line-height: 1.55;
  font-size: 0.92rem;
}
.admin-product-main {
  display: grid;
  gap: 18px;
}
.admin-product-card {
  padding: 22px;
}
.admin-product-card-head {
  margin-bottom: 16px;
}
.admin-product-card-head h3 {
  margin: 0 0 6px;
  color: #1b2d4a;
  font-size: 1.1rem;
}
.admin-product-card-head p {
  margin: 0;
  color: #6c7b95;
  line-height: 1.6;
}
.admin-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.admin-product-grid .admin-field {
  margin-bottom: 0;
}
.admin-product-grid-redirect {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
}
.admin-checkbox-boxed {
  min-height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(206, 219, 239, 0.95);
  background: #fff;
}
.admin-checkbox-boxed span {
  margin: 0;
}
.admin-input,
.admin-textarea,
.admin-file {
  min-height: 46px;
  border-radius: 12px;
}
.admin-file {
  padding-top: 10px;
  padding-bottom: 10px;
}
.admin-assignment-list {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}
.admin-assignment-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 88px;
}
.admin-image-manager-compact {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}
.admin-image-card {
  border-radius: 18px;
}
.admin-image-thumb {
  height: 136px;
}
.admin-inline-delete,
.admin-image-button {
  min-height: 40px;
}
@media (max-width: 1180px) {
  .admin-product-layout {
    grid-template-columns: 1fr;
  }
  .admin-product-sidebar-column {
    position: static;
  }
}
@media (max-width: 780px) {
  .admin-product-card,
  .admin-product-media-card {
    padding: 18px;
    border-radius: 18px;
  }
  .admin-product-grid,
  .admin-product-grid-redirect {
    grid-template-columns: 1fr;
  }
  .admin-assignment-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}






.admin-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}
.admin-check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(34, 48, 79, 0.12);
  border-radius: 14px;
  background: #f7f9ff;
  color: #22304f;
  font-weight: 600;
}
.admin-check-option input {
  margin: 0;
  width: 16px;
  height: 16px;
}

.admin-size-dropdown {
  position: relative;
}

.admin-size-dropdown-toggle {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid #d8e1ee;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  color: #22304f;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-size-dropdown-toggle:hover,
.admin-size-dropdown-toggle:focus-visible,
.admin-size-dropdown.is-open .admin-size-dropdown-toggle {
  outline: none;
  border-color: #2b5ed6;
  box-shadow: 0 0 0 4px rgba(43, 94, 214, 0.12);
}

.admin-size-token-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.admin-size-token {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(43, 94, 214, 0.08);
  color: #3159a6;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.admin-size-placeholder {
  color: #6d7891;
  font-size: 0.95rem;
}

.admin-size-dropdown-arrow {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid #8b8f97;
  border-bottom: 2px solid #8b8f97;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.admin-size-dropdown.is-open .admin-size-dropdown-arrow {
  transform: rotate(-135deg) translateY(-1px);
}

.admin-size-dropdown-panel {
  margin-top: 6px;
  border: 1px solid #d8e1ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(17, 37, 74, 0.1);
  overflow: hidden;
}

.admin-size-select-all,
.admin-size-dropdown-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 0.96rem;
}

.admin-size-select-all {
  border-bottom: 1px solid #e4e8ef;
  background: #fbfcff;
  font-weight: 500;
}

.admin-size-search-wrap {
  padding: 8px 12px;
  border-bottom: 1px solid #e4e8ef;
}

.admin-size-search {
  min-height: 38px;
  border-radius: 0;
  border-width: 0 0 1px 0;
  padding: 6px 0;
  background: transparent;
  box-shadow: none;
}

.admin-size-search:focus {
  box-shadow: none;
  border-color: #2b5ed6;
}

.admin-size-dropdown-list {
  max-height: 220px;
  overflow-y: auto;
}

.admin-size-dropdown-option {
  cursor: pointer;
  border-bottom: 1px solid #edf0f5;
  background: #fff;
}

.admin-size-dropdown-option:last-child {
  border-bottom: 0;
}

.admin-size-dropdown-option:hover {
  background: #f7faff;
}

.admin-size-dropdown-option.is-selected {
  color: #1848a3;
  background: rgba(43, 94, 214, 0.05);
}

.admin-size-dropdown-option input,
.admin-size-select-all input {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: #3f7fc1;
}

.admin-size-empty {
  margin: 0;
  padding: 12px;
}



.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 20px 6px 6px;
}

.admin-pagination-summary {
  flex: 1 1 280px;
  min-width: 220px;
  color: #5a6786;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.55;
}

.admin-pagination-controls {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-pagination-pages {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-pagination-button {
  border: 1px solid #d7e2f1;
  background: #ffffff;
  color: #33415c;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.admin-pagination-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(31, 65, 187, 0.12);
  border-color: #9eb9ff;
}

.admin-pagination-button.is-active {
  background: linear-gradient(135deg, #ff8f2f, #ff6a00);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(255, 106, 0, 0.2);
}

.admin-pagination-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-pagination-ellipsis {
  color: #7a87a6;
  font-weight: 700;
  padding: 0 4px;
}

.admin-pagination-size {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  color: #5a6786;
  font-size: 0.92rem;
  font-weight: 600;
}

.admin-pagination-size .admin-input {
  width: auto;
  min-width: 86px;
  height: 40px;
  padding-right: 38px;
}

@media (max-width: 980px) {
  .admin-pagination {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .admin-pagination-summary,
  .admin-pagination-controls,
  .admin-pagination-size {
    width: 100%;
    justify-content: center;
  }
}

.admin-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-list-search {
  flex: 1 1 280px;
  max-width: 420px;
}

.admin-list-search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(31, 63, 126, 0.12);
  background: #f8fbff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.admin-list-search-input:focus {
  border-color: rgba(16, 81, 207, 0.36);
  box-shadow: 0 0 0 4px rgba(16, 81, 207, 0.12);
  background: #fff;
}

.admin-list-toolbar-extra {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .admin-list-toolbar {
    align-items: stretch;
  }

  .admin-list-search {
    max-width: none;
  }
}

.admin-products-table .admin-inline-price {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
}

.admin-inline-input {
  width: 104px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #d7e3f8;
  background: #f8fbff;
  color: var(--text);
  font: inherit;
  outline: none;
}

.admin-inline-input:focus {
  border-color: rgba(16, 81, 207, 0.36);
  box-shadow: 0 0 0 4px rgba(16, 81, 207, 0.12);
  background: #fff;
}

.admin-inline-save {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #d7e3f8;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
  color: #1b4fc9;
  font-weight: 700;
  cursor: pointer;
}

.admin-inline-save.is-done {
  color: #177245;
  border-color: rgba(23, 114, 69, 0.22);
  background: rgba(23, 114, 69, 0.08);
}

@media (max-width: 980px) {
  .admin-sidebar {
    position: static;
    min-height: auto;
    padding: 18px 16px 14px;
    box-shadow: none;
  }

  .admin-sidebar-brand {
    padding: 0 4px 10px;
    margin-bottom: 10px;
  }

  .admin-sidebar > a {
    display: inline-flex;
    min-height: 42px;
    margin: 0 8px 8px 0;
    padding: 0 14px;
  }

  .admin-content {
    padding: 16px;
  }

  .admin-topbar,
  .admin-panel-section {
    padding: 18px;
    border-radius: 20px;
  }

  .admin-actions {
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
  }

  .admin-actions > * {
    flex: 1 1 180px;
  }

  .section-heading {
    gap: 12px;
  }

  .admin-table {
    min-width: 680px;
  }
}

@media (max-width: 640px) {
  .admin-sidebar {
    border-radius: 0 0 20px 20px;
  }

  .admin-sidebar > a {
    width: calc(50% - 8px);
    justify-content: center;
    text-align: center;
  }

  .admin-topbar h2 {
    font-size: 1.45rem;
  }

  .admin-topbar p,
  .section-heading p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .admin-table {
    min-width: 560px;
  }

  .admin-filter-select,
  .admin-list-search,
  .admin-actions > *,
  .admin-primary-button,
  .admin-secondary-button,
  .admin-danger-button {
    width: 100%;
    min-width: 0;
    flex-basis: 100%;
    justify-content: center;
  }

  .admin-products-table .admin-inline-price {
    min-width: 150px;
  }

  .admin-inline-input {
    width: 90px;
  }
}

@media (max-width: 980px) {
  .admin-sidebar {
    position: static;
    min-height: auto;
    padding: 16px 14px 12px;
    box-shadow: none;
    border-radius: 0 0 22px 22px;
  }

  .admin-sidebar-brand {
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 12px;
  }

  .admin-sidebar > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0 8px 8px 0;
    padding: 0 14px;
    border-radius: 14px;
  }

  .admin-content {
    padding: 16px;
  }

  .admin-topbar,
  .admin-panel-section,
  .admin-card {
    padding: 18px;
    border-radius: 20px;
  }

  .admin-actions {
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
  }

  .admin-actions > * {
    flex: 1 1 180px;
  }

  .admin-filter-select,
  .admin-list-search {
    width: 100%;
    max-width: none;
  }

  .admin-table {
    min-width: 720px;
  }
}

@media (max-width: 640px) {
  .admin-sidebar > a {
    width: calc(50% - 8px);
    margin-right: 8px;
    text-align: center;
  }

  .admin-topbar h2 {
    font-size: 1.55rem;
  }

  .admin-topbar p,
  .section-heading p {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .admin-actions > * {
    flex: 1 1 100%;
  }

  .admin-panel-section,
  .admin-card,
  .admin-topbar {
    padding: 16px;
  }

  .admin-products-table .admin-inline-price {
    min-width: 168px;
    flex-wrap: wrap;
  }

  .admin-inline-input,
  .admin-inline-save {
    width: 100%;
  }

  .admin-pagination {
    gap: 14px;
  }
}

.admin-drag-col {
  width: 56px;
}

.admin-drag-cell {
  width: 56px;
  text-align: center;
}

.admin-table td.admin-drag-cell,
.admin-table th.admin-drag-col {
  padding-left: 10px;
  padding-right: 10px;
}

.admin-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #d8e3f3;
  background: linear-gradient(180deg, #ffffff, #f5f8fe);
  color: #64718d;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: grab;
  touch-action: none;
}

.admin-draggable-row.is-dragging {
  opacity: 0.55;
}

.admin-draggable-row.is-drag-over {
  outline: 2px dashed rgba(37, 93, 214, 0.34);
  outline-offset: -6px;
}

.admin-draggable-row.is-dragging .admin-drag-handle {
  cursor: grabbing;
}

@media (max-width: 640px) {
  .admin-drag-col,
  .admin-drag-cell {
    width: 48px;
  }

  .admin-drag-handle {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.82rem;
  }
}


/* Navigation repair overrides */
.nav-all-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f2a44;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.nav-all-toggle:hover,
.nav-all-toggle:focus-visible {
  color: var(--red);
  outline: none;
}

.nav-all-toggle:hover .all-categories-icon span,
.nav-all-toggle:focus-visible .all-categories-icon span {
  background: var(--red);
}

.dropdown-menu-all {
  width: min(980px, calc(100vw - 40px));
  max-width: min(980px, calc(100vw - 40px));
}

.dropdown-group {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.dropdown-group a {
  display: block;
  line-height: 1.35;
  color: var(--muted);
  font-size: 0.96rem;
  white-space: normal;
  word-break: break-word;
}

.dropdown-group-title {
  display: block;
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 800;
  color: #1e2a45;
}
/* Product card interaction repair */
.product-thumb,
.thumb-dot {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.product-thumb img,
.thumb-dot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb.is-active,
.thumb-dot.is-active {
  outline: 2px solid #ff7c43;
  outline-offset: 1px;
}

.product-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.product-thumbs {
  z-index: 6;
}

.product-hover-meta {
  z-index: 5;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-hover-meta,
  .product-card:focus-within .product-hover-meta {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Mobile header layout repair */
@media (max-width: 720px) {
  .header-top {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 0 10px;
  }

  .brand {
    display: block;
    max-width: 84px;
  }

  .brand-mark {
    width: 84px;
    min-width: 84px;
    height: 84px;
    border-radius: 22px;
    padding: 8px;
  }

  .promo-bar-inline {
    min-width: 0;
  }

  .promo-bar {
    border-radius: 14px;
  }

  .promo-marquee span {
    font-size: 0.72rem;
    padding: 8px 14px;
  }

  .nav-row {
    display: block;
    padding: 8px 0 12px;
  }

  .menu-button {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
  }

  .main-nav {
    display: none !important;
    width: 100%;
    flex-direction: column !important;
    gap: 0 !important;
    background: #fff;
    border: 1px solid rgba(31, 63, 126, 0.08);
    border-radius: 18px;
    box-shadow: 0 16px 30px rgba(17, 35, 71, 0.08);
    overflow: hidden;
  }

  .main-nav.is-open {
    display: flex !important;
  }

  .nav-item,
  .nav-item-all {
    width: 100%;
    border-bottom: 1px solid #eef2f8;
  }

  .nav-item:last-child,
  .nav-item-all:last-child {
    border-bottom: 0;
  }

  .nav-item > a,
  .nav-all-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    font-size: 0.98rem;
  }

  .all-categories-label {
    text-align: left;
  }

  .dropdown-menu,
  .dropdown-menu-all {
    position: static !important;
    display: none;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0;
    padding: 4px 0 10px;
    border: 0;
    border-top: 1px solid #eef2f8;
    border-radius: 0;
    box-shadow: none;
    background: #f7f9fd;
  }

  .nav-item.is-open > .dropdown-menu,
  .nav-item-all.is-open > .dropdown-menu-all {
    display: grid !important;
  }

  .dropdown-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 16px 2px;
  }

  .dropdown-group-title,
  .dropdown-menu a {
    display: block;
    padding: 8px 0;
    white-space: normal;
    word-break: break-word;
  }

  .main-nav,
  .nav-links-window {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .nav-item > a,
  .nav-all-toggle,
  .dropdown-menu a,
  .dropdown-group-title {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .all-categories-label {
    justify-items: start;
    text-align: left !important;
  }
}
/* Slider and banner ratio repair */
.hero-slider {
  overflow: hidden;
}

.hero-track {
  aspect-ratio: 3 / 1;
  min-height: 0;
}

.hero-slide,
.hero-slide.is-full-bleed,
.hero-slide.is-contained {
  border-radius: 30px;
  overflow: hidden;
}

.hero-banner-link {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
}

.hero-banner-image {
  display: block;
  width: 100%;
  height: 100%;
  object-position: center;
}

.hero-slide.is-full-bleed .hero-banner-image {
  object-fit: cover;
}

.hero-slide.is-contained .hero-banner-image {
  object-fit: contain;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 20px;
  border-radius: 0;
  box-shadow: none;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.banner-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(16, 42, 95, 0.08), rgba(176, 24, 81, 0.08));
  box-shadow: 0 14px 30px rgba(16, 42, 95, 0.10);
}

.banner-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 980px) {
  .banner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero-track {
    aspect-ratio: 3 / 1;
    border-radius: 22px;
  }

  .hero-slide,
  .hero-slide.is-full-bleed,
  .hero-slide.is-contained {
    border-radius: 22px;
  }

  .hero-slide.is-contained .hero-banner-image {
    padding: 10px;
  }

  .banner-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .banner-card {
    border-radius: 18px;
  }
}

/* Final stable navigation model */
@media (min-width: 901px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  .site-header {
    overflow: visible !important;
    z-index: 1000;
  }

  .nav-row,
  .main-nav {
    min-width: 0;
    max-width: 100%;
    overflow: visible !important;
  }

  .main-nav {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 22px;
  }

  .nav-item-all {
    position: static !important;
    z-index: 4;
  }

  .nav-links-window {
    display: flex !important;
    align-items: center;
    gap: clamp(14px, 1.25vw, 24px);
    min-width: 0;
    max-width: 100%;
    overflow: hidden !important;
    white-space: nowrap;
  }

  .nav-links-window > .nav-item {
    flex: 0 0 auto;
  }

  .nav-links-window > .nav-item:nth-child(n + 8) {
    display: none !important;
  }

  .nav-links-window > .nav-item > a {
    display: inline-flex;
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-links-window > .nav-item > .dropdown-menu {
    display: none !important;
  }

  .dropdown-menu-all {
    position: absolute !important;
    left: 0 !important;
    top: calc(100% + 12px) !important;
    width: min(1120px, calc(100vw - 80px)) !important;
    max-width: min(1120px, calc(100vw - 80px)) !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px 20px;
    padding: 20px;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(10px) !important;
    z-index: 5000 !important;
  }

  .nav-item-all:hover > .dropdown-menu-all,
  .nav-item-all:focus-within > .dropdown-menu-all,
  .nav-item-all.is-open > .dropdown-menu-all {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  .nav-links-window > .nav-item:nth-child(n + 6) {
    display: none !important;
  }
}

/* Navigation emergency hard reset - 2026-04-11
   Keeps the header stable even with many categories. Closed menus are removed
   from layout completely, so they cannot overlay or corrupt the page render. */
@media (min-width: 901px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .site-header,
  .header-top,
  .nav-row,
  .main-nav {
    max-width: 100%;
    min-width: 0;
    overflow: visible !important;
  }

  .site-header {
    position: relative;
    z-index: 1000;
  }

  .nav-row {
    position: relative;
    z-index: 1001;
  }

  .main-nav {
    position: relative;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    width: 100%;
  }

  .nav-item-all {
    position: relative !important;
    flex: 0 0 auto;
    z-index: 2;
  }

  .nav-links-window {
    display: flex !important;
    align-items: center;
    gap: clamp(14px, 1.25vw, 24px);
    min-width: 0;
    max-width: 100%;
    overflow: hidden !important;
    white-space: nowrap;
  }

  .nav-links-window > .nav-item {
    display: flex !important;
    flex: 0 0 auto;
    min-width: 0;
  }

  .nav-links-window > .nav-item:nth-child(n + 7) {
    display: none !important;
  }

  .nav-links-window > .nav-item > a {
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-links-window > .nav-item > .dropdown-menu,
  .nav-links-window > .nav-item:hover > .dropdown-menu,
  .nav-links-window > .nav-item:focus-within > .dropdown-menu,
  .nav-links-window > .nav-item.is-open > .dropdown-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .dropdown-menu-all,
  .nav-item-all:hover > .dropdown-menu-all,
  .nav-item-all:focus-within > .dropdown-menu-all {
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .nav-item-all.is-open > .dropdown-menu-all {
    position: absolute !important;
    left: 0 !important;
    top: calc(100% + 10px) !important;
    display: grid !important;
    width: min(1080px, calc(100vw - 72px)) !important;
    max-width: min(1080px, calc(100vw - 72px)) !important;
    max-height: min(68vh, 520px) !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px 20px;
    padding: 20px !important;
    overflow: auto !important;
    border: 1px solid rgba(31, 63, 126, 0.08);
    border-radius: 22px;
    background: #fff !important;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
    z-index: 6000 !important;
  }

  .dropdown-menu-all::before {
    display: none !important;
  }

  .dropdown-menu-all .dropdown-group,
  .dropdown-menu-all .mega-menu-group {
    display: grid !important;
    align-content: start;
    gap: 8px;
    min-width: 0;
  }

  .dropdown-menu-all a {
    display: block;
    color: #475569;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
  }

  .dropdown-menu-all .dropdown-group-title {
    color: #172033;
    font-weight: 800;
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  .nav-links-window > .nav-item:nth-child(n + 5) {
    display: none !important;
  }
}

/* Slider hard containment - 2026-04-11 */
.hero-slider,
.hero-track,
.hero-slide {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.hero-slider {
  position: relative !important;
  isolation: isolate;
}

.hero-track {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 3 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 600px !important;
}

.hero-slide {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: none !important;
}

.hero-slide.is-active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.hero-slide > a,
.hero-banner-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

.hero-banner-image,
.hero-slide.is-full-bleed .hero-banner-image,
.hero-slide.is-contained .hero-banner-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
}

.banner-grid {
  max-width: 100% !important;
  overflow: hidden !important;
}

.banner-card {
  aspect-ratio: 2 / 1 !important;
  overflow: hidden !important;
}

.banner-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Final category navigation simplification - 2026-04-11
   One reliable entry point: all categories. Prevents overflow completely. */
@media (min-width: 901px) {
  .main-nav {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .nav-links-window {
    display: none !important;
  }

  .nav-item-all {
    position: relative !important;
    display: inline-block !important;
    width: auto !important;
  }

  .nav-all-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 2px;
    border: 0;
    background: transparent;
    color: #1f2a44;
    cursor: pointer;
  }

  .dropdown-menu-all,
  .nav-item-all > .dropdown-menu-all {
    display: none !important;
    position: absolute !important;
    left: 0 !important;
    top: calc(100% + 10px) !important;
    width: min(1080px, calc(100vw - 56px)) !important;
    max-width: min(1080px, calc(100vw - 56px)) !important;
    max-height: min(68vh, 520px) !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px 20px;
    padding: 20px !important;
    overflow: auto !important;
    border: 1px solid rgba(31, 63, 126, 0.08) !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    z-index: 7000 !important;
  }

  .nav-item-all:hover > .dropdown-menu-all,
  .nav-item-all:focus-within > .dropdown-menu-all,
  .nav-item-all.is-open > .dropdown-menu-all {
    display: grid !important;
  }
}

/* Product card hard containment - 2026-04-11 */
img {
  max-width: 100%;
}

.products-grid {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

.product-card {
  position: relative !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.product-image {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #f5f5f5 !important;
}

.product-image-link {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

.product-main-image {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
}

.product-corner-badge,
.product-thumbs,
.product-hover-meta {
  position: absolute !important;
}

@media (max-width: 720px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .product-image {
    aspect-ratio: 2 / 3 !important;
  }
}
/* Image flow safety override - 2026-04-11
   Do not let product or slider images escape their own boxes. */
.hero-slide > a,
.hero-banner-link,
.product-image-link {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

.hero-banner-image,
.product-main-image {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.product-image,
.hero-slide,
.hero-track {
  contain: layout paint;
}
/* Slider automatic fit restore - 2026-04-11
   1800x600 fills the slider; other ratios stay proportional and centered. */
.hero-slider {
  overflow: hidden !important;
}

.hero-track {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 3 / 1 !important;
  min-height: 0 !important;
  max-height: 600px !important;
  overflow: hidden !important;
  border-radius: 30px !important;
  background:
    linear-gradient(90deg, rgba(16, 42, 95, 0.12), rgba(255, 255, 255, 0.58) 36%, rgba(255, 255, 255, 0.58) 64%, rgba(176, 24, 81, 0.14)),
    #f3f5f9 !important;
    margin-bottom:25px;
}

.hero-slide {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: none !important;
}

.hero-slide.is-active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.hero-slide > a,
.hero-banner-link {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  z-index: 1;
}

.hero-slide.is-full-bleed .hero-banner-image {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  box-shadow: none !important;
}

.hero-slide.is-contained {
  background:
    linear-gradient(90deg, rgba(16, 42, 95, 0.16), rgba(255, 255, 255, 0.48) 32%, rgba(255, 255, 255, 0.48) 68%, rgba(176, 24, 81, 0.18)),
    #f4f5fa !important;
}

.hero-slide.is-contained::before {
  content: "";
  position: absolute;
  inset: -8%;
  background-image: var(--hero-slide-image);
  background-size: cover;
  background-position: center;
  filter: blur(30px) saturate(0.85);
  opacity: 0.34;
  transform: scale(1.08);
}

.hero-slide.is-contained::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245, 247, 252, 0.25), rgba(255,255,255,0.08), rgba(245, 229, 239, 0.25));
}

.hero-slide.is-contained .hero-banner-image {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(78%, 1180px) !important;
  max-height: 86% !important;
  padding: 0 !important;
  border-radius: 22px !important;
  object-fit: contain !important;
  object-position: center center !important;
  box-shadow: 0 24px 58px rgba(23, 40, 79, 0.18) !important;
}

.hero-slide.is-contained.is-wide-contained .hero-banner-image {
  max-width: min(78%, 1280px) !important;
  max-height: 82% !important;
}

.hero-slide.is-contained.is-square .hero-banner-image {
  max-width: min(36%, 460px) !important;
  max-height: 84% !important;
}

.hero-slide.is-contained.is-portrait .hero-banner-image {
  max-width: min(30%, 380px) !important;
  max-height: 88% !important;
}

@media (max-width: 720px) {
  .hero-track {
    border-radius: 22px !important;
  }

  .hero-slide.is-contained .hero-banner-image {
    max-width: 82% !important;
    max-height: 82% !important;
    border-radius: 16px !important;
  }

  .hero-slide.is-contained.is-square .hero-banner-image {
    max-width: 44% !important;
  }

  .hero-slide.is-contained.is-portrait .hero-banner-image {
    max-width: 36% !important;
  }
}

/* Bizimbutik-style stable menu restore - 2026-04-11 */
@media (min-width: 901px) {
  .site-header {
    overflow: visible !important;
    z-index: 2000 !important;
  }

  .nav-row {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
  }

  .main-nav {
    position: relative !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .nav-item,
  .nav-item-all {
    position: relative !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  .nav-links-window {
    display: flex !important;
    align-items: center !important;
    gap: clamp(20px, 2.1vw, 42px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }

  .nav-links-window > .nav-item {
    display: flex !important;
  }

  .nav-links-window > .nav-item[hidden] {
    display: none !important;
  }

  .nav-links-window > .nav-item > a,
  .nav-all-toggle {
    color: #1459e8 !important;
    font-weight: 700 !important;
    letter-spacing: 0.015em;
    min-height: 52px !important;
    white-space: nowrap !important;
  }

  .nav-links-window > .nav-item > a {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 190px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .nav-all-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
  }

  .dropdown-menu,
  .dropdown-menu-all,
  .nav-links-window > .nav-item > .dropdown-menu,
  .nav-item-all > .dropdown-menu-all {
    position: absolute !important;
    top: calc(100% + 0px) !important;
    left: 0 !important;
    display: grid !important;
    min-width: 220px !important;
    max-width: min(980px, calc(100vw - 56px)) !important;
    padding: 16px !important;
    border: 1px solid rgba(31, 63, 126, 0.08) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 24px 55px rgba(24, 48, 95, 0.14) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(8px) !important;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease !important;
    z-index: 7000 !important;
  }

  .dropdown-menu::before,
  .dropdown-menu-all::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: -14px !important;
    height: 14px !important;
  }

  .nav-links-window > .nav-item:hover > .dropdown-menu,
  .nav-links-window > .nav-item:focus-within > .dropdown-menu,
  .nav-links-window > .nav-item.is-open > .dropdown-menu,
  .nav-item-all:hover > .dropdown-menu-all,
  .nav-item-all:focus-within > .dropdown-menu-all,
  .nav-item-all.is-open > .dropdown-menu-all {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .dropdown-menu a,
  .dropdown-menu-all a {
    display: block !important;
    color: #1459e8 !important;
    padding: 6px 0 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  .dropdown-menu a:hover,
  .dropdown-menu-all a:hover {
    color: #e11616 !important;
  }

  .dropdown-menu-all,
  .nav-item-all > .dropdown-menu-all {
    width: min(1080px, calc(100vw - 64px)) !important;
    max-height: min(68vh, 520px) !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 14px 24px !important;
    overflow: auto !important;
  }

  .mega-menu-group,
  .dropdown-group {
    display: grid !important;
    gap: 8px !important;
    align-content: start !important;
  }

  .dropdown-group-title {
    color: #172033 !important;
    font-weight: 800 !important;
  }
}

/* Final menu fix - 2026-04-11
   Overrides old nth-child hiding and lets dropdowns escape the nav row. */
@media (min-width: 901px) {
  .site-header,
  .header-top,
  .nav-row,
  .main-nav,
  .nav-links-window {
    overflow: visible !important;
  }

  .main-nav {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: clamp(18px, 2vw, 34px) !important;
    align-items: center !important;
  }

  .nav-links-window {
    display: flex !important;
    align-items: center !important;
    gap: clamp(20px, 2vw, 40px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: nowrap !important;
  }

  .nav-links-window > .nav-item,
  .nav-links-window > .nav-item:nth-child(n),
  .nav-links-window > .nav-item:nth-child(n + 5),
  .nav-links-window > .nav-item:nth-child(n + 6),
  .nav-links-window > .nav-item:nth-child(n + 7),
  .nav-links-window > .nav-item:nth-child(n + 8) {
    display: flex !important;
  }

  .nav-links-window > .nav-item[hidden],
  .nav-links-window > .nav-item[hidden]:nth-child(n) {
    display: none !important;
  }

  .nav-links-window > .nav-item > .dropdown-menu,
  .nav-links-window > .nav-item:hover > .dropdown-menu,
  .nav-links-window > .nav-item:focus-within > .dropdown-menu,
  .nav-links-window > .nav-item.is-open > .dropdown-menu {
    display: grid !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .nav-links-window > .nav-item:hover > .dropdown-menu,
  .nav-links-window > .nav-item:focus-within > .dropdown-menu,
  .nav-links-window > .nav-item.is-open > .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .nav-links-window > .nav-item > .dropdown-menu {
    top: calc(100% + 0px) !important;
    left: 0 !important;
    min-width: 220px !important;
    width: max-content !important;
    max-width: min(360px, calc(100vw - 56px)) !important;
  }

  .nav-item-all > .dropdown-menu-all,
  .nav-item-all:hover > .dropdown-menu-all,
  .nav-item-all:focus-within > .dropdown-menu-all,
  .nav-item-all.is-open > .dropdown-menu-all {
    display: grid !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .nav-item-all:hover > .dropdown-menu-all,
  .nav-item-all:focus-within > .dropdown-menu-all,
  .nav-item-all.is-open > .dropdown-menu-all {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
}

/* Stable desktop category menu - final override 2026-04-11 */
@media (min-width: 901px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .site-header,
  .header-top,
  .nav-row,
  .main-nav,
  .main-nav .nav-item,
  .main-nav .nav-item-all,
  .main-nav .nav-links-window {
    overflow: visible !important;
  }

  .main-nav {
    position: relative !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: clamp(16px, 1.7vw, 28px) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .main-nav .nav-links-window {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: clamp(18px, 1.75vw, 32px) !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: nowrap !important;
  }

  .main-nav .nav-links-window > .nav-item,
  .main-nav .nav-links-window > .nav-item:nth-child(n),
  .main-nav .nav-links-window > .nav-item:nth-child(n + 4),
  .main-nav .nav-links-window > .nav-item:nth-child(n + 5),
  .main-nav .nav-links-window > .nav-item:nth-child(n + 6),
  .main-nav .nav-links-window > .nav-item:nth-child(n + 7),
  .main-nav .nav-links-window > .nav-item:nth-child(n + 8),
  .main-nav .nav-links-window > .nav-item:nth-child(n + 9) {
    display: flex !important;
    flex: 0 0 auto !important;
    position: relative !important;
  }

  .main-nav .nav-links-window > .nav-item[hidden],
  .main-nav .nav-links-window > .nav-item[hidden]:nth-child(n),
  .main-nav .nav-links-window > .nav-item[style*="display: none"] {
    display: none !important;
  }

  .main-nav .nav-links-window > .nav-item > a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 52px !important;
    max-width: clamp(92px, 10vw, 170px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .main-nav .dropdown-menu,
  .main-nav .dropdown-menu-all,
  .main-nav .nav-links-window > .nav-item > .dropdown-menu,
  .main-nav .nav-item-all > .dropdown-menu-all {
    display: grid !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(8px) !important;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease !important;
    z-index: 9000 !important;
  }

  .main-nav .nav-links-window > .nav-item > .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 0px) !important;
    left: 0 !important;
    min-width: 220px !important;
    width: max-content !important;
    max-width: min(420px, calc(100vw - 48px)) !important;
    padding: 14px 16px !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,0.98) !important;
    border: 1px solid rgba(31,63,126,0.08) !important;
    box-shadow: 0 24px 55px rgba(24,48,95,0.14) !important;
  }

  .main-nav .nav-item-all > .dropdown-menu-all {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    width: min(1080px, calc(100vw - 56px)) !important;
    max-height: min(68vh, 520px) !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 14px 24px !important;
    padding: 20px !important;
    overflow: auto !important;
    border-radius: 22px !important;
    background: rgba(255,255,255,0.98) !important;
    border: 1px solid rgba(31,63,126,0.08) !important;
    box-shadow: 0 28px 70px rgba(15,23,42,0.18) !important;
  }

  .main-nav .nav-links-window > .nav-item:hover > .dropdown-menu,
  .main-nav .nav-links-window > .nav-item:focus-within > .dropdown-menu,
  .main-nav .nav-links-window > .nav-item.is-open > .dropdown-menu,
  .main-nav .nav-item-all:hover > .dropdown-menu-all,
  .main-nav .nav-item-all:focus-within > .dropdown-menu-all,
  .main-nav .nav-item-all.is-open > .dropdown-menu-all {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .main-nav .dropdown-menu a,
  .main-nav .dropdown-menu-all a {
    display: block !important;
    padding: 7px 0 !important;
    color: #1459e8 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }
}

/* Hard locked menu behavior - 2026-04-11 */
@media (min-width: 901px) {
  .main-nav .nav-links-window {
    gap: clamp(12px, 1.25vw, 24px) !important;
    overflow: visible !important;
  }

  .main-nav .nav-links-window > .nav-item > a {
    max-width: clamp(82px, 8.5vw, 142px) !important;
    font-size: clamp(13px, 0.88vw, 16px) !important;
  }

  .main-nav .nav-item-all {
    z-index: 9100 !important;
  }

  .main-nav .nav-links-window > .nav-item {
    z-index: 9050 !important;
  }

  .main-nav .nav-links-window > .nav-item > .dropdown-menu,
  .main-nav .nav-item-all > .dropdown-menu-all {
    clip: auto !important;
    contain: none !important;
  }

  .main-nav .nav-links-window > .nav-item.is-open > .dropdown-menu,
  .main-nav .nav-links-window > .nav-item:hover > .dropdown-menu,
  .main-nav .nav-links-window > .nav-item:focus-within > .dropdown-menu,
  .main-nav .nav-item-all.is-open > .dropdown-menu-all,
  .main-nav .nav-item-all:hover > .dropdown-menu-all,
  .main-nav .nav-item-all:focus-within > .dropdown-menu-all {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .main-nav .nav-item-all > .dropdown-menu-all {
    left: 0 !important;
    right: auto !important;
  }
}

/* Mobile header promo alignment - 2026-04-11 */
@media (max-width: 720px) {
  .site-header .header-top {
    display: grid !important;
    grid-template-columns: 42px auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

.site-header .menu-button {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 78px !important;
  height: 78px !important;
  margin: 0 !important;
  align-self: center !important;
  justify-self: start !important;
  color: var(--text) !important;
}

.menu-button .menu-label {
  display: none !important;
}

.menu-button .menu-bar {
  display: none !important;
}

  .site-header .brand {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }

  .site-header .brand-mark {
    width: clamp(82px, 23vw, 124px) !important;
    min-width: clamp(82px, 23vw, 124px) !important;
    height: 50px !important;
    border-radius: 14px !important;
  }

  .site-header .brand-mark.has-image {
    height: 50px !important;
    padding: 0 !important;
  }

  .site-header .brand-logo-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .site-header .promo-bar-inline {
    grid-column: 3 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
  }

  .site-header .promo-bar {
    height: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }

  .site-header .promo-track {
    width: 100% !important;
  }

.site-header .promo-marquee span {
    font-size: clamp(12px, 3vw, 14px) !important;
    line-height: 1 !important;
    padding-right: 26px !important;
  }
}

.site-header {
  position: sticky !important;
  top: 0;
  z-index: 3000 !important;
}

.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.site-header + main {
  padding-top: 45px;
}

@media (max-width: 420px) {
  .site-header .header-top {
    grid-template-columns: 38px auto minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 8px 10px !important;
  }

  .site-header .menu-button {
    width: 56px !important;
    height: 56px !important;
  }

  .site-header .brand-mark,
  .site-header .brand-mark.has-image {
    width: clamp(76px, 22vw, 96px) !important;
    min-width: clamp(76px, 22vw, 96px) !important;
    height: 44px !important;
  }

.site-header .promo-bar {
      height: 40px !important;
      min-height: 40px !important;
      border-radius: 14px !important;
    }
  }

@media (max-width: 900px) {
  .main-nav .nav-item-all {
    display: none !important;
  }
}
/* Panel theme binding - 2026-04-11 */
.site-header,
.nav-row,
.main-nav,
.dropdown-menu,
.dropdown-panel,
.all-categories-panel {
  background-color: var(--bg);
  color: var(--text);
}
.main-nav a,
.main-nav button,
.dropdown-menu a,
.dropdown-panel a,
.all-categories-panel a,
.breadcrumb,
.product-card,
.product-card-title,
.product-code,
.section-heading,
.page-title {
  color: var(--text);
}
.product-code,
.breadcrumb,
.empty-state,
.product-count,
.section-subtitle {
  color: var(--muted);
}
.nav-item:hover > a,
.nav-item:hover > button,
.dropdown-menu a:hover,
.dropdown-panel a:hover,
.all-categories-panel a:hover {
  color: var(--red);
}
.promo-bar {
  background-color: var(--red);
  color: #fff;
}
.product-price {
  color: var(--red);
}
.site-footer {
  background: linear-gradient(135deg, var(--navy), var(--blue) 55%, var(--violet));
  color: var(--footer-text);
}
.site-footer h3,
.site-footer h4,
.site-footer p,
.site-footer a,
.site-footer span {
  color: var(--footer-text);
}
/* Menu color follows logo accent - 2026-04-11 */
.main-nav a,
.main-nav button,
.dropdown-menu a,
.dropdown-panel a,
.all-categories-panel a,
.nav-item > a,
.nav-item > button,
.all-categories-label,
.all-categories-label strong,
.all-categories-label span {
  color: var(--cyan);
}
.nav-item:hover > a,
.nav-item:hover > button,
.dropdown-menu a:hover,
.dropdown-panel a:hover,
.all-categories-panel a:hover,
.main-nav a.is-active {
  color: var(--cyan);
}
/* All menu category text follows logo accent - 2026-04-11 */
.site-header .main-nav,
.site-header .main-nav *,
.site-header .dropdown-menu,
.site-header .dropdown-menu *,
.site-header .dropdown-menu-all,
.site-header .dropdown-menu-all *,
.site-header .dropdown-group,
.site-header .dropdown-group *,
.site-header .mega-menu-group,
.site-header .mega-menu-group *,
.site-header .nav-links-window,
.site-header .nav-links-window *,
.site-header .all-categories-label,
.site-header .all-categories-label *,
.site-header .nav-all-toggle,
.site-header .nav-all-toggle * {
  color: var(--cyan) !important;
}
/* Scoped menu color from panel logo accent - 2026-04-11 */
html body .site-header .main-nav,
html body .site-header .main-nav a,
html body .site-header .main-nav button,
html body .site-header .main-nav span,
html body .site-header .main-nav strong,
html body .site-header .dropdown-menu a,
html body .site-header .dropdown-menu-all a,
html body .site-header .dropdown-group-title,
html body .site-header .all-categories-label,
html body .site-header .all-categories-label strong,
html body .site-header .all-categories-label span {
    color: var(--menu-color, var(--cyan)) !important;
  }

/* Large subcategory dropdowns: keep usable */
@media (min-width: 901px) {
  .site-header .dropdown-menu {
    max-height: 60vh !important;
    overflow-y: auto !important;
    padding-right: 10px !important;
    scrollbar-gutter: stable;
  }
  .site-header .dropdown-menu a {
    break-inside: avoid;
  }
}

@media (min-width: 901px) {
  .main-nav .nav-item,
  .main-nav .nav-item-all {
    padding-bottom: 14px !important;
    margin-bottom: -14px !important;
  }

  .main-nav .nav-links-window > .nav-item > .dropdown-menu,
  .main-nav .nav-item-all > .dropdown-menu-all {
    top: calc(100% - 4px) !important;
  }

  .main-nav .dropdown-menu::before,
  .main-nav .dropdown-menu-all::before {
    top: -18px !important;
    height: 18px !important;
  }
}
/* Banner title under image - 2026-04-11 */
.banner-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  aspect-ratio: auto !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}
.banner-image-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(16, 42, 95, 0.08), rgba(176, 24, 81, 0.08));
  box-shadow: 0 14px 30px rgba(16, 42, 95, 0.10);
}
.banner-card .banner-image-wrap img,
.banner-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.banner-title {
  display: block;
  padding: 0 4px;
  color: var(--text);
  font-weight: 800;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.25;
}
/* Product lazy reveal - 2026-04-11 */
.product-card.is-lazy-hidden {
  display: none !important;
}

/* Quality pass - 2026-04-12 */
.products-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.products-header h1 {
  margin: 0;
  line-height: 1.15;
}

.products-header p {
  margin: 8px 0 0;
}

.products-grid {
  align-items: stretch;
}

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
}

.product-info h3,
.product-card-title {
  min-height: 2.4em;
}

.product-price-row,
.product-actions {
  margin-top: auto;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  min-width: 720px;
}

.admin-list-toolbar {
  gap: 12px;
}

.admin-actions {
  flex-wrap: wrap;
}

.admin-filter-select {
  min-width: 220px;
}

@media (max-width: 980px) {
  .admin-topbar {
    gap: 14px;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions > * {
    flex: 1 1 180px;
  }
}

@media (max-width: 720px) {
  .products-header {
    align-items: start;
    margin-bottom: 18px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .product-info {
    padding: 10px 10px 14px;
  }

  .product-info h3,
  .product-card-title {
    min-height: 2.6em;
    font-size: 0.95rem;
  }

  .admin-topbar,
  .section-heading {
    align-items: stretch;
  }

  .section-heading {
    gap: 12px;
  }

  .admin-actions > * {
    width: 100%;
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .products-grid {
    gap: 12px !important;
  }

  .product-info h3,
  .product-card-title {
    min-height: 2.8em;
    font-size: 0.92rem;
  }
}

.product-code {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.product-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 40px;
  margin-top: 10px;
  padding: 0 10px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(92, 56, 82, 0.18);
  border-radius: 8px;
  background: rgba(92, 56, 82, 0.06);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.product-card-cta .cta-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.product-card-cta .cta-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.product-card-cta .cta-label-desktop {
  display: inline;
}

.product-card-cta .cta-label-mobile {
  display: none;
}

@media (max-width: 720px) {
  .product-card-cta .cta-label-desktop {
    display: none;
  }
  .product-card-cta .cta-label-mobile {
    display: inline;
  }
}

.product-card-cta.is-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
}

.product-card-cta.is-whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  color: #ffffff;
}

@media (min-width: 721px) {
  .product-card-cta.is-whatsapp {
    font-size: 0.92rem;
  }
}

.product-card-cta:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.content-page {
  padding: 28px 0 42px;
}

.content-page-section {
  margin-bottom: 22px;
  padding: 24px 0;
}

.content-page-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.content-page h1 {
  margin: 0 0 14px;
  max-width: 16ch;
  line-height: 1.08;
}

.content-page-section > p {
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.7;
}

.content-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-page-grid > article {
  border: 1px solid rgba(31, 63, 126, 0.08);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(24, 48, 95, 0.06);
}

.content-page-grid h2 {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.content-page-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.content-page-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.content-page-cta:hover {
  filter: brightness(0.96);
}

@media (max-width: 900px) {
  .content-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (hover: none), (pointer: coarse), (max-width: 900px) {
  .product-hover-meta {
    display: none !important;
  }

  .product-mobile-meta {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
  }

  .product-mobile-meta .product-hover-brand {
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.3;
  }

  .product-mobile-meta .product-hover-sizes {
    gap: 6px;
  }

  .product-thumbs {
    display: flex !important;
    left: 50% !important;
    right: auto !important;
    bottom: 10px !important;
    transform: translateX(-50%) !important;
    z-index: 6 !important;
  }
}

.admin-sidebar-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(39, 91, 214, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #2149b8;
  box-shadow: 0 10px 24px rgba(33, 73, 184, 0.12);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.admin-sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.admin-sidebar-backdrop {
  display: none;
}

@media (max-width: 980px) {
  .admin-shell {
    position: relative;
    overflow-x: hidden;
  }

  .admin-sidebar-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .admin-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: min(320px, calc(100vw - 36px));
    height: 100vh;
    min-height: 100vh !important;
    overflow-y: auto;
    transform: translateX(-104%);
    transition: transform 0.22s ease;
    border-radius: 0 22px 22px 0 !important;
    box-shadow: 18px 0 38px rgba(12, 28, 58, 0.22) !important;
    z-index: 1200;
  }

  .admin-sidebar > a {
    display: flex !important;
    width: 100% !important;
    margin: 0 0 8px 0 !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .admin-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1100;
    border: 0;
    padding: 0;
    background: rgba(9, 19, 38, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-sidebar-open .admin-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-topbar {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .admin-sidebar {
    width: min(300px, calc(100vw - 24px));
    border-radius: 0 18px 18px 0 !important;
  }
}

/* Lightbox fit fix for tall product images (1200x1800 and similar) */
html body .product-lightbox .product-lightbox-dialog {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  padding: 64px 92px 46px !important;
}

html body .product-lightbox .product-lightbox-image {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 210px) !important;
  max-height: calc(100vh - 128px) !important;
  object-fit: contain !important;
}

@media (max-width: 900px) {
  html body .product-lightbox .product-lightbox-dialog {
    padding: 58px 64px 34px !important;
  }

  html body .product-lightbox .product-lightbox-image {
    max-width: calc(100vw - 152px) !important;
    max-height: calc(100vh - 112px) !important;
  }
}

@media (max-width: 720px) {
  html body .product-lightbox .product-lightbox-dialog {
    padding: 54px 16px 22px !important;
  }

  html body .product-lightbox .product-lightbox-image {
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 96px) !important;
  }
}
