/* ==========================================================================
   NOXELLE 3.0 — STOREFRONT STYLESHEET
   UNIQLO / H&M-Inspired Minimalist Editorial · Mid-Tone Neutral Palette
   ========================================================================== */

/* 1. SCROLL PROGRESS & SLIM ANNOUNCEMENT BAR */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--gold);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 250;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes noxScrollProgress {
      from { transform: scaleX(0); }
      to   { transform: scaleX(1); }
    }
    .scroll-progress {
      animation: noxScrollProgress linear both;
      animation-timeline: scroll(root block);
    }
  }
}

.announcement-bar {
  background: var(--announce-bg);
  color: var(--announce-ink);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--announce-border);
  position: relative;
  z-index: 120;
  padding-top: env(safe-area-inset-top, 0px);
}
.announcement-track {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  padding: 6px 0;
}
@media (prefers-reduced-motion: no-preference) {
  .announcement-track {
    animation: noxMarquee 36s linear infinite;
  }
}
.announcement-bar:hover .announcement-track,
.announcement-bar.is-offscreen .announcement-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .announcement-track { animation: none; overflow-x: auto; padding-inline: 20px; }
}
@keyframes noxMarquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.cv-section {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 34rem;
}
.cv-compact {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 16rem;
}
.announce-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.announce-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-xs);
  background: var(--announce-code-bg);
  color: var(--announce-code-ink);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.announce-code:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* 2. QUIET EDITORIAL HEADER (EDGE-TO-EDGE) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 110;
  background-color: var(--glass);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px max(clamp(16px, 2.4vw, 36px), env(safe-area-inset-right, 0px)) 12px max(clamp(16px, 2.4vw, 36px), env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 1560px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
  }
  .header-inner .logo { justify-self: start; }
  .header-inner .main-nav { justify-self: center; }
  .header-inner .header-actions { justify-self: end; }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
}
.logo-mark { display: none; }

.main-nav { display: flex; align-items: center; }
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 6px 0;
  transition: color 0.2s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-trigger-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.search-trigger-pill:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}
@media (min-width: 1280px) {
  .search-trigger-pill {
    min-width: 150px;
    justify-content: space-between;
  }
}
.search-trigger-pill kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

.header-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s;
}
.header-pill-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.cart-btn-bounce { animation: cartBounce 0.42s ease; }
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.15); }
  65% { transform: scale(0.95); }
}

.mobile-menu-btn { display: none; }

/* 3. BERANDA 1-SCREEN CAMPAIGN HERO & COMPACT CATEGORY HEADERS */
.hero, .cat-hero {
  position: relative;
  overflow: hidden;
  color: var(--hero-ink);
  background-color: var(--hero-base-bg);
  border-bottom: 1px solid var(--border);
}
.hero {
  height: calc(100dvh - 89px);
  min-height: 510px;
  max-height: 740px;
  display: flex;
  align-items: stretch;
  padding: clamp(20px, 2.8dvh, 36px) clamp(18px, 2.5vw, 40px);
  background-image: var(--hero-beranda-bg);
  background-size: 52px 52px, auto;
}
.cat-hero {
  padding: 28px clamp(18px, 2.5vw, 40px) 26px;
  background-size: auto;
}
.hero-pria    { background-image: var(--hero-pria-bg); }
.hero-wanita  { background-image: var(--hero-wanita-bg); }
.hero-aks     { background-image: var(--hero-aks-bg); }
.hero-profile {
  padding: 36px clamp(18px, 2.5vw, 40px) 34px;
  background-image: var(--hero-profile-bg);
}

.hero-pria .hero-tag    { color: var(--hero-pria-tag-ink); }
.hero-wanita .hero-tag  { color: var(--hero-wanita-tag-ink); }
.hero-aks .hero-tag     { color: var(--hero-aks-tag-ink); }
.hero-profile .hero-tag { color: var(--hero-profile-tag-ink); }

.hero-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.cat-hero-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.cat-hero-main {
  max-width: 640px;
}
.cat-hero-side {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cat-count-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-ink);
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background: var(--surface);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
  min-height: 0;
  padding-block: clamp(4px, 1.2dvh, 14px);
}
.hero-copy-top {
  width: 100%;
}

.hero-top-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.breadcrumb { font-size: 12px; color: var(--hero-muted); font-weight: 500; letter-spacing: 0.02em; }
.breadcrumb a { color: var(--hero-ink); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.hero-tag {
  display: inline-block;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--gold-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.5rem + 2.8vw, 4.3rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  color: var(--hero-ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--hero-ink-em);
  font-weight: 600;
}
.cat-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.75rem);
  line-height: 1.06;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--hero-ink);
}
.hero p {
  font-size: 14.5px;
  color: var(--hero-muted);
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 24px;
}
.cat-hero p {
  font-size: 14px;
  color: var(--hero-muted);
  line-height: 1.55;
  max-width: 520px;
  margin-bottom: 0;
}
.hero-profile p {
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-hero-light {
  background: var(--hero-btn-primary-bg);
  color: var(--hero-btn-primary-ink);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
}
.btn-hero-light:hover {
  background: var(--hero-btn-primary-hover);
}
.btn-hero-link {
  background: transparent;
  color: var(--hero-ink);
  padding: 8px 2px;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.btn-hero-link:hover { opacity: 0.72; }

.hero-metrics {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: auto;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--hero-divider);
}
.hero-metrics-list {
  display: flex;
  gap: clamp(18px, 2.5vw, 34px);
  flex-wrap: wrap;
}
.hero-metric strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--hero-ink);
}
.hero-metric span {
  display: block;
  font-size: 11.5px;
  color: var(--hero-subtle);
  margin-top: 1px;
}
.hero-pos-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hero-ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-strong);
  transition: opacity 0.2s, border-color 0.2s;
}
.hero-pos-link:hover {
  opacity: 0.72;
  border-color: var(--hero-ink);
}

/* Editorial Hero Collage (No floating boxes) */
.hero-bento {
  position: relative;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 10px;
  height: 100%;
  min-height: 0;
  max-height: 100%;
}
.bento-main {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 100%;
  min-height: 0;
  background: var(--surface-2);
}
.bento-side {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  height: 100%;
  min-height: 0;
}
.bento-sub {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 100%;
  min-height: 0;
  background: var(--surface-2);
}
.bento-main img, .bento-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.bento-main:hover img, .bento-sub:hover img { transform: scale(1.04); }
.bento-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: rgba(22, 24, 27, 0.78);
  color: #F3F0EA;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* 4. SECTIONS & SCROLL REVEAL */
.section-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(44px, 5.5vw, 72px) clamp(18px, 2.5vw, 40px);
}
.section-band {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header,
.section-header-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  text-align: left;
  margin-bottom: 28px;
}

.section-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}
.section-header-link {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: color 0.18s, border-color 0.18s;
}
.section-header-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* Modern Scroll-driven reveal + IntersectionObserver fallback */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes noxSectionReveal {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .reveal {
      animation: noxSectionReveal auto linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 24%;
    }
  }
  @supports not ((animation-timeline: view()) and (animation-range: entry)) {
    body.js-ready .reveal {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.55s ease, transform 0.55s ease;
    }
    body.js-ready .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* 5. CURATED DEPARTMENTS (EDITORIAL TRIPTYCH) */
.category-banners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cat-banner-card {
  position: relative;
  height: clamp(300px, 43dvh, 430px);
  contain: layout style;
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: var(--surface-2);
}
.cat-banner-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.cat-banner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 24, 27, 0.72) 0%, rgba(22, 24, 27, 0.08) 45%, transparent 100%);
}
.cat-banner-card:hover img { transform: scale(1.045); }
.cat-banner-info { position: relative; z-index: 2; color: #F5F2EC; width: 100%; }
.cat-banner-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.cat-banner-info span {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: rgba(245, 242, 236, 0.84);
  text-transform: uppercase;
}
.cat-count-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(245, 242, 236, 0.88);
}
.cat-banner-info h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 600;
  margin-bottom: 4px;
}
.cat-banner-info p {
  font-size: 12.5px;
  color: rgba(245, 242, 236, 0.88);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* 6. BORDERLESS FASHION PRODUCT CARDS (H&M / UNIQLO INSPIRED) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 16px;
}
.product-grid.compact-view {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 12px;
}

.product-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  contain: layout style;
}

.img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--radius-xs);
  cursor: pointer;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-image { transform: scale(1.035); }

.card-tag-tl {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  pointer-events: none;
}
.card-tag-tl.is-sale {
  background: var(--danger);
  color: #F7F5F2;
  font-family: var(--font-mono);
}
.card-tag-tl.is-star {
  background: var(--accent);
  color: var(--accent-ink);
}
.card-tag-tl.is-featured {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.card-wish-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(243, 240, 234, 0.92);
  color: #22211F;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s, transform 0.16s;
}
.card-wish-btn:hover { background: var(--surface); transform: scale(1.06); }
.card-wish-btn svg { fill: none; }
.card-wish-btn.wishlisted {
  background: var(--surface);
  color: var(--danger);
}
.card-wish-btn.wishlisted svg { fill: currentColor; }

.card-quick-tray {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  padding: 6px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.product-card:hover .card-quick-tray,
.product-card:focus-within .card-quick-tray {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
@media (hover: none) {
  .card-quick-tray {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.size-mini {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.size-mini:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}
.size-mini.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.product-details {
  padding: 10px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.product-cat-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.product-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  cursor: pointer;
  transition: color 0.18s;
}
.product-name:hover { color: var(--gold-ink); }
.product-grid.compact-view .product-name { font-size: 13.5px; }

.product-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 3px;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}
.product-price {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.compare-price {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-subtle);
  text-decoration: line-through;
}

.card-add-btn {
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.card-add-btn:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.card-add-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.stock-line {
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.stock-ok  { color: var(--success); }
.stock-low { color: var(--warning); }
.stock-out { color: var(--danger); }

/* 7. OUR STAR CAROUSEL */
.carousel-wrapper { position: relative; }
.carousel-viewport { overflow: hidden; padding: 4px 0 12px; }
.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel-track.centered-track { justify-content: center; flex-wrap: wrap; }
.carousel-item {
  min-width: calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
  flex-shrink: 0;
}
@media (min-width: 1481px) {
  .carousel-item {
    min-width: calc((100% - 72px) / 4);
    max-width: calc((100% - 72px) / 4);
  }
}
.carousel-track.centered-track .carousel-item { min-width: 280px; max-width: 340px; }

.carousel-btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.carousel-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-btn.hidden-btn { display: none; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--border-strong);
  cursor: pointer;
  transition: width 0.25s, background-color 0.25s;
}
.carousel-dot.active { width: 22px; background: var(--ink); }

/* 8. EDITORIAL UNDERLINE TABS */
.showcase-tabs {
  display: inline-flex;
  gap: 22px;
  padding: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.tab-pill {
  padding: 8px 2px 10px;
  margin-bottom: -1px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.tab-pill:hover { color: var(--ink); }
.tab-pill.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* 9. MINIMAL VOUCHER STRIPS & HAIRLINE REVIEWS */
.vouchers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.voucher-ticket-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
}
.voucher-top-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.voucher-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
}
.voucher-ticket-card h3 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}
.voucher-ticket-card p {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}
.voucher-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.voucher-code-bar code {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.testimonial-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border-strong);
  padding: 18px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.testimonial-head strong { font-size: 13.5px; color: var(--ink); }
.testimonial-quote {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.65;
  flex: 1;
}
.testimonial-prod {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  cursor: pointer;
}
.testimonial-prod img { width: 34px; height: 34px; border-radius: var(--radius-xs); object-fit: cover; }
.testimonial-prod strong { display: block; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.testimonial-prod small { font-size: 11px; color: var(--ink-subtle); }

/* 10. NEWSLETTER BAND & TYPOGRAPHIC PILLARS */
.newsletter-band {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: clamp(36px, 5vw, 56px) clamp(18px, 2.5vw, 40px);
}
.newsletter-banner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--ink);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: center;
}
.newsletter-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 6px;
  color: var(--ink);
}
.newsletter-banner p { font-size: 14px; color: var(--ink-muted); }
.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  font-size: 13.5px;
}
.newsletter-form input::placeholder { color: var(--ink-subtle); }
.newsletter-form input:focus { border-color: var(--accent); }

/* 11. CATALOG LAYOUT, STICKY FULL-WIDTH TOOLBAR & SLIDE-OVER FILTER DRAWER */
.catalog-section-wrap {
  background-color: var(--bg);
  padding: 0 clamp(18px, 2.5vw, 40px) 64px;
}
.catalog-container {
  width: 100%;
  max-width: none;
  margin: 0;
}
.catalog-layout {
  display: block;
}

.filter-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(22, 24, 27, 0.56);
  z-index: 215;
}
.filter-mobile-backdrop.open { display: block; }

.filter-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(370px, 92vw);
  z-index: 220;
  background: var(--surface);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
  display: flex;
  flex-direction: column;
}
.filter-sidebar.mobile-open {
  transform: translateX(0);
  visibility: visible;
}
.filter-head {
  padding: 18px 22px;
  background: var(--surface);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.filter-head h3 { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.filter-close-mobile { display: inline-flex; }

.filter-group {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.filter-group label.group-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.filter-input, .filter-select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.filter-input:focus, .filter-select:focus {
  border-color: var(--accent);
  background: var(--surface);
}
.price-range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.filter-chip {
  padding: 5px 11px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s, background-color 0.18s, color 0.18s;
}
.filter-chip:hover { border-color: var(--accent); color: var(--ink); }
.filter-chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  padding: 5px 0;
}
.checkbox-row input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

.filter-foot {
  margin-top: auto;
  padding: 16px 22px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.catalog-toolbar {
  position: sticky;
  top: 61px;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 13px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.catalog-toolbar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.catalog-toolbar-left span#result-count { font-size: 12.5px; color: var(--ink-muted); }
.catalog-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.mobile-filter-trigger { display: inline-flex; }

.filter-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
}
.toolbar-search-input {
  width: clamp(170px, 20vw, 250px);
  height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  outline: none;
}
.toolbar-search-input:focus { border-color: var(--accent); }
.toolbar-sort-select {
  height: 34px;
  width: auto;
  min-width: 155px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  outline: none;
}

.view-switch {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
}
.view-switch button {
  padding: 6px 11px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.view-switch button.active { background: var(--surface); color: var(--ink); }

.active-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
}
.active-filter-pill button {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}

/* Recently Viewed Strip */
.recent-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 14px;
}
.recent-mini-card {
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.recent-mini-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  transition: transform 0.4s ease;
}
.recent-mini-card:hover img { transform: scale(1.03); }
.recent-mini-body { padding: 8px 2px 0; }
.recent-mini-body strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-mini-body span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); font-weight: 600; }

/* 12. PROFILE PAGE (HAIRLINE STATS, BORDERLESS STORY, TYPOGRAPHIC PILLARS, FAQ) */
.stats-strip-wrap {
  padding: 0 clamp(18px, 2.5vw, 40px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.stat-card {
  background: transparent;
  padding: 24px 20px;
}
.stat-card:not(:last-child) {
  border-right: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700;
  color: var(--ink);
}
.stat-label { font-size: 13.5px; font-weight: 600; color: var(--ink-muted); margin-top: 3px; }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.story-img-wrap { position: relative; }
.story-img-wrap img {
  width: 100%;
  height: 410px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.story-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.story-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}
.story-text p { color: var(--ink-muted); line-height: 1.75; margin-bottom: 14px; font-size: 14.5px; }

.experience-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.exp-card {
  background: transparent;
  border-top: 1px solid var(--border-strong);
  padding: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exp-step {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-ink);
}
.exp-card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--ink); }
.exp-card p { font-size: 14px; color: var(--ink-muted); line-height: 1.65; }

.faq-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 36px;
  align-items: start;
}
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq-item {
  background: transparent;
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  padding: 16px 4px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-mono); font-size: 18px; color: var(--ink-muted); }
.faq-item[open] summary::after { content: '−'; }
.faq-body { padding: 0 4px 16px; font-size: 13.5px; color: var(--ink-muted); line-height: 1.65; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-card > p { font-size: 13.5px; color: var(--ink-muted); margin-bottom: 18px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 11px; font-weight: 700; color: var(--ink-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13.5px;
  outline: none;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--accent);
  background: var(--surface);
}

/* 13. DIALOGS: PRODUCT DETAIL, SEARCH, ORDER TRACKER, DRAWERS */
dialog.product-modal { width: min(980px, 95vw); }
.product-modal-scroll { overflow-y: auto; max-height: 90dvh; }
.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  padding: 24px;
}
.pm-gallery {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 3 / 4;
}
.pm-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.pm-gallery:hover img { transform: scale(1.04); }

.pm-info { display: flex; flex-direction: column; gap: 12px; }
.pm-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}
.pm-price-box { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pm-price-box .now { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--ink); }
.pm-price-box .was { font-family: var(--font-mono); font-size: 14px; color: var(--ink-subtle); text-decoration: line-through; }
.pm-desc { font-size: 13.5px; color: var(--ink-muted); line-height: 1.65; }

.pm-size-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-size-btn {
  min-width: 44px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s, background-color 0.16s, color 0.16s;
}
.pm-size-btn:hover { border-color: var(--accent); }
.pm-size-btn.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.size-guide-details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 10px 14px;
  font-size: 13px;
}
.size-guide-details summary { font-weight: 600; cursor: pointer; color: var(--ink); }
.size-guide-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12px;
}
.size-guide-table th, .size-guide-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.pm-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.qty-stepper button {
  width: 34px;
  height: 38px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.qty-stepper span {
  min-width: 30px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13.5px;
}

.pm-lower {
  padding: 0 24px 26px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.pm-reviews-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  padding-top: 22px;
}
.rating-bars { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 18px; }
.rating-bar-row { display: grid; grid-template-columns: 36px 1fr 28px; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-muted); }
.rating-bar-track { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--gold); border-radius: 999px; }

.review-card {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}
.review-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; font-size: 13px; }
.review-card p { font-size: 13px; color: var(--ink-muted); line-height: 1.55; }

.star-picker { display: inline-flex; gap: 4px; }
.star-pick-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink-subtle);
  transition: transform 0.14s, color 0.14s;
}
.star-pick-btn.active { color: var(--gold); }
.star-pick-btn:hover { transform: scale(1.12); }

/* Command Search Dialog */
dialog.search-dialog { width: min(640px, 94vw); margin-top: 7vh; }
.cmd-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.cmd-search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.cmd-search-results { max-height: 58dvh; overflow-y: auto; padding: 14px 18px; }
.cmd-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s;
}
.cmd-result-item:hover { background: var(--surface-2); }
.cmd-result-item img { width: 46px; height: 56px; border-radius: var(--radius-xs); object-fit: cover; }

/* Cart & Wishlist Drawers */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.drawer-foot {
  padding: 16px 20px max(16px, calc(12px + env(safe-area-inset-bottom, 0px)));
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  flex-shrink: 0;
}
.voucher-progress-box {
  margin: 12px 20px 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink);
}
.voucher-progress-track {
  height: 5px;
  border-radius: 999px;
  background: var(--border-strong);
  overflow: hidden;
  margin-top: 7px;
}
.voucher-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.cart-item-row {
  display: flex;
  gap: 12px;
  padding: 11px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.cart-item-img { width: 64px; height: 78px; border-radius: var(--radius-xs); object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.cart-item-price { font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.cart-item-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

/* Order Tracker Dialog */
dialog.tracker-dialog { width: min(600px, 94vw); }
.tracker-body { padding: 20px 22px 24px; overflow-y: auto; max-height: 78dvh; }
.tracker-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.tracker-step {
  padding: 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--surface-2);
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
}
.tracker-step.done {
  border-color: var(--success);
  background: var(--success-soft);
  color: var(--success);
}
.tracker-step.voided {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

/* 13B. USER PURCHASE HISTORY MODAL & RESPONSIVE TABLE */
dialog.history-dialog {
  width: min(1140px, 95vw);
  max-width: 95vw;
  max-height: 90dvh;
}
dialog.history-dialog[open] {
  display: flex;
  flex-direction: column;
}
.history-modal-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.history-search-hero {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.history-search-box {
  flex: 1;
  min-width: 260px;
}
.history-search-box > svg.nox-ico {
  left: 15px;
  width: 19px;
  height: 19px;
  color: var(--gold);
}
.history-search-input {
  width: 100%;
  height: 46px;
  padding: 12px 16px 12px 46px !important;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.history-search-input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.history-refresh-btn {
  height: 46px;
  padding-inline: 18px;
  flex-shrink: 0;
}
.history-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.history-table-wrap {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(440px, 52dvh);
  container: history-box / inline-size;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  scrollbar-gutter: stable;
}
.history-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  --label-1: "TRX ID";
  --label-2: "Waktu";
  --label-3: "Pelanggan";
  --label-4: "Item Dibeli";
  --label-5: "Pembayaran & Status";
  --label-6: "Total";
  --label-7: "Aksi";
}
.history-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  background: var(--surface-2);
}
.history-table th {
  text-align: left;
  padding: 12px 15px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.history-table td,
.history-table tbody th {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  text-align: left;
  font-weight: 500;
}
.history-table tbody tr:last-child td,
.history-table tbody tr:last-child th {
  border-bottom: none;
}
.history-table tbody tr:hover td,
.history-table tbody tr:hover th {
  background: var(--surface-2);
}
.trx-id-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.trx-code-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}
.trx-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s, color 0.16s;
}
.trx-copy-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.history-items-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--ink-muted);
  max-width: 340px;
}
.history-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.history-count-label {
  font-size: 12.5px;
  color: var(--ink-muted);
  font-weight: 600;
}

@container history-box (width < 780px) {
  .history-table,
  .history-table thead,
  .history-table tbody,
  .history-table tr,
  .history-table th,
  .history-table td {
    display: block;
  }
  .history-table thead {
    display: none;
  }
  .history-table tbody tr {
    padding: 14px;
    border-bottom: 1px solid var(--border-strong);
  }
  .history-table tbody tr:last-child {
    border-bottom: none;
  }
  .history-table tbody th,
  .history-table td {
    padding: 6px 0;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    text-align: right;
  }
  .history-table tbody th::before,
  .history-table td::before {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
    text-align: left;
    flex-shrink: 0;
  }
  .history-table tbody th::before { content: var(--label-1); }
  .history-table td:nth-child(2)::before { content: var(--label-2); }
  .history-table td:nth-child(3)::before { content: var(--label-3); }
  .history-table td:nth-child(4)::before { content: var(--label-4); }
  .history-table td:nth-child(5)::before { content: var(--label-5); }
  .history-table td:nth-child(6)::before { content: var(--label-6); }
  .history-table td:nth-child(7)::before { content: var(--label-7); }
  .trx-id-cell { justify-content: flex-end; }
  .history-items-list { align-items: flex-end; text-align: right; max-width: none; }
}

/* 14. EDITORIAL NEUTRAL FOOTER */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-muted);
  padding: 48px max(clamp(18px, 2.5vw, 40px), env(safe-area-inset-right, 0px)) max(24px, calc(20px + env(safe-area-inset-bottom, 0px))) max(clamp(18px, 2.5vw, 40px), env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--footer-border);
}
.footer-grid {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1.45fr 1fr 1.2fr 1.1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--footer-border);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--footer-ink);
  margin-bottom: 10px;
}
.footer-desc { font-size: 13px; line-height: 1.65; color: var(--footer-muted); margin-bottom: 14px; max-width: 340px; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--footer-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}
.footer-socials a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.footer-col h4 {
  color: var(--footer-ink);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; font-size: 13px; color: var(--footer-muted); }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 8px; }
.footer-contact-list li svg { margin-top: 2px; color: var(--gold-ink); }
.footer-col ul li a { color: var(--footer-muted); text-decoration: none; transition: color 0.18s; }
.footer-col ul li a:hover { color: var(--footer-ink); }
.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-badge {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--footer-ink);
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.footer-bottom {
  width: 100%;
  max-width: none;
  margin: 18px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--footer-muted);
}
.secret-admin-trigger { cursor: default; user-select: none; }

/* 15. RESPONSIVE */
@media (max-width: 1280px) {
  .product-grid.compact-view { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .hero { height: auto; min-height: auto; max-height: none; display: block; }
  .hero-copy { height: auto; gap: 22px; }
  .hero-bento { height: auto; max-height: none; }
  .bento-main { height: 340px; }
  .bento-side { grid-template-rows: 165px 165px; height: auto; }
  .bento-sub { height: 165px; }
  .hero-inner, .story-grid, .newsletter-banner, .faq-contact-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid.compact-view { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-banners, .testimonials-grid, .experience-bento { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2n) { border-right: none; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .carousel-item { min-width: calc((100% - 24px) / 2); max-width: calc((100% - 24px) / 2); }
}

@media (max-width: 1024px) {
  .header-pill-btn span { display: none; }
  .header-pill-btn { width: 36px; padding: 0; justify-content: center; }
}

@media (max-width: 820px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .search-trigger-pill span, .search-trigger-pill kbd, .header-pill-btn span { display: none; }
  .search-trigger-pill, .header-pill-btn { width: 36px; padding: 0; justify-content: center; }
  .product-modal-grid, .pm-reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .product-grid, .product-grid.compact-view { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .catalog-toolbar { top: 61px; }
  .toolbar-search-input { width: 100%; order: 3; }
}

@media (max-width: 680px) {
  .header-inner {
    padding: 8px max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px));
    gap: 6px;
  }
  .catalog-toolbar { top: 59px; }
  .logo { font-size: 18px; letter-spacing: 0.12em; }
  .header-actions { gap: 4px; }
  .header-actions .header-pill-btn { display: none; }
  .header-actions .icon-btn, .header-actions .search-trigger-pill { width: 42px; height: 42px; }
  .hero, .cat-hero, .section-container, .catalog-section-wrap, .newsletter-band, .stats-strip-wrap, .site-footer {
    padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  }
  .site-footer {
    padding-bottom: max(24px, calc(20px + env(safe-area-inset-bottom, 0px)));
  }
  .category-banners, .testimonials-grid, .experience-bento, .stats-grid, .footer-grid, .hero-bento {
    grid-template-columns: 1fr;
  }
  .stat-card:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); }
  .carousel-item { min-width: 100%; max-width: 100%; }
  .bento-main { height: 290px; }
}

@media (max-width: 640px) {
  dialog.product-modal, dialog.history-dialog, dialog.tracker-dialog, dialog.search-dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    border-radius: var(--radius-md);
  }
  .dialog-head { padding: 14px 16px; }
  .product-modal-grid { padding: 16px; gap: 18px; }
  .pm-lower { padding: 0 16px 20px; }
  .history-modal-body { padding: 14px 16px 18px; }
  .history-search-box { min-width: 0; width: 100%; }
  .tracker-body { padding: 16px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 18px 10px; }
  .vouchers-grid { grid-template-columns: 1fr; }
  .newsletter-form input { min-width: 0; width: 100%; }
  .newsletter-form button { width: 100%; }
  .product-bottom-row { flex-wrap: wrap; gap: 6px; }
  .tracker-steps { grid-template-columns: 1fr; gap: 6px; }
  .pm-actions-bar { gap: 8px; }
  .showcase-tabs { max-width: 100%; overflow-x: auto; gap: 16px; }
}

@media (max-width: 374px) {
  .header-actions .icon-btn, .header-actions .search-trigger-pill {
    width: 38px;
    height: 38px;
    position: relative;
  }
  .header-actions .icon-btn::after, .header-actions .search-trigger-pill::after {
    content: "";
    position: absolute;
    inset: -3px;
  }
  .catalog-toolbar { top: 55px; }
}

@media (pointer: coarse) {
  .toolbar-search-input,
  .filter-input,
  .filter-select,
  .toolbar-sort-select,
  .history-search-input,
  .form-field input,
  .form-field textarea,
  .form-field select,
  .newsletter-form input,
  .cmd-search-bar input {
    font-size: 16px;
    min-block-size: 44px;
  }
  .carousel-btn { width: 44px; height: 44px; }
  .carousel-dot { position: relative; }
  .carousel-dot::after { content: ""; position: absolute; inset: -14px -8px; }
  .card-wish-btn { width: 40px; height: 40px; }
  .card-wish-btn::after { content: ""; position: absolute; inset: -2px; }
  .pm-size-btn, .tab-pill, .qty-stepper button { min-block-size: 44px; min-inline-size: 44px; }
  .filter-chip, .trx-copy-btn, .card-add-btn { min-block-size: 40px; }
  .size-mini { min-block-size: 32px; min-inline-size: 32px; padding: 0 7px; }
  .mobile-filter-trigger { min-block-size: 44px; }
}

@media print {
  body * { visibility: hidden; }
  #tracker-dialog, #tracker-dialog * { visibility: visible; }
  #tracker-dialog { position: fixed; inset: 0; margin: 0; max-width: 100%; max-height: 100%; box-shadow: none; border: none; }
  .no-print { display: none !important; }
}
