/* ii world — Components
   Nav, footer, buttons, cards, selectors, forms, product grid */

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  height: var(--nav-height);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav--transparent {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Frosted veil — white smoke gradient behind nav, fades into hero */
.nav--transparent::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav--scrolled {
  background: var(--color-bg-nav);
  border-bottom-color: var(--color-border-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav--scrolled::after { opacity: 0; }

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

@media (min-width: 1024px) {
  .nav__inner {
    padding: 0 40px;
  }
}

.nav__left {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: start;
}

/* Mega menu */
.nav__mega {
  position: static;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 4px;
}

.nav__shop-mega,
.nav__info-mega,
.nav__templates-mega {
  display: none;
}
@media (min-width: 1024px) {
  .nav__shop-mega,
  .nav__info-mega,
  .nav__templates-mega { display: flex; }
}

.nav__info-mega .nav__mega-panel {
  grid-template-columns: auto auto auto;
}

.nav__info {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}
.nav__info:hover { color: var(--color-text); }

.nav__mega-panel {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
  padding: 40px 48px 48px;
  z-index: 999;
  gap: 80px;
  grid-template-columns: auto auto;
  justify-content: start;
}

/* Bridge: invisible area above panel to prevent hover gap */
.nav__mega-panel::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 30px;
}

.nav__mega:hover .nav__mega-panel,
.nav__mega-panel.nav__mega-panel--hold {
  display: grid;
}

.nav__mega-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav__mega-heading {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: var(--color-text-tertiary);
  margin-bottom: 16px;
}

.nav__mega-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  padding: 5px 0;
  transition: color 0.2s ease;
  text-decoration: none;
}
.nav__mega-link:hover { color: var(--color-text); }
.nav__mega-link--indent { padding-left: 12px; font-size: 0.78rem; opacity: 0.75; }
.nav__mobile-sublink--indent { padding-left: 24px; font-size: 0.85em; opacity: 0.75; }

.nav__mega-sublink {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  padding: 4px 0 4px 16px;
  transition: color 0.2s ease;
  text-decoration: none;
}
.nav__mega-sublink:hover { color: var(--color-text); }

.nav__mega-sub2link {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-text-tertiary);
  padding: 3px 0 3px 32px;
  transition: color 0.2s ease;
  text-decoration: none;
}
.nav__mega-sub2link:hover { color: var(--color-text); }

.nav__shop {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
}
.nav__shop:hover { color: var(--color-text); }

.nav__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo-img {
  /* Wave 1.5 follow-up (2026-04-27) — image-mode nav variants now respect
     the --nav-logo-size CSS variable (set inline by _nav.html from the
     resolved variant's navSize). 36px fallback when no variant in scope.
     Width:auto preserves aspect ratio for wide marks like wordmarks. */
  height: var(--nav-logo-size, 36px);
  width: auto;
}

.nav__logo-video {
  height: 44px;
  width: 44px;
  object-fit: cover;
  border-radius: 50%;
}

.nav__logo-3d {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
}

/* Blocker C (2026-04-25) — unified sphere nav logo wrapper. Holds an
   SVG fallback (visible by default; hidden once the canvas paints) and the
   three.js canvas.
   Wave 1.5 (2026-04-26) — size driven by --nav-logo-size CSS variable set
   inline on the element from the resolved variant's navSize (32-64px,
   default 44). Variants without navSize fall back to 44px via the var
   default below, so existing pages render unchanged. */
.nav__logo-sphere {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--nav-logo-size, 44px);
  height: var(--nav-logo-size, 44px);
}
.nav__logo-sphere .nav__logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.nav__logo-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.nav__logo-sphere.is-ready .nav__logo-canvas { opacity: 1; }
.nav__logo-sphere.is-ready .nav__logo-img { opacity: 0; }

/* Wave 1.5 Step 2 (2026-04-26) — Hero Logo overlay section.
   Floats absolutely at one of 4 anchors; takes no vertical space in the
   document flow (the section that follows it scrolls underneath). The
   floating-overlay-with-section-hero pattern is the same shape used by
   /new-homepage; this generalises it for any page via the VB section.

   Two scroll modes are supported, switched by JS via .is-scrolled:
   - shrink: overlay migrates into the nav slot (top+size animate).
   - stay:   overlay scrolls naturally; nav slot fades in via IO. */
.hero-logo-overlay {
  position: fixed;
  z-index: 1001;
  pointer-events: none;
  /* Transitions intentionally OFF on size/position properties — Chrome
     leaves them stuck on the old computed value when a WebGL canvas is
     rendered inside the transitioning box. Snap-on-scroll is acceptable
     for now; transform transitions stay so the centering animation keeps. */
  transition: transform 0.35s ease;
  /* Default = hero (initial) size. Static-gen sets --hero-logo-init-size
     and --nav-logo-size inline; the class selectors below decide which one
     drives the rendered width/height. Splitting the two sources is required
     because inline custom props have higher specificity than class rules,
     so we can't toggle a single var and expect the class to win. */
  width: var(--hero-logo-init-size, 280px);
  height: var(--hero-logo-init-size, 280px);
}
.hero-logo-overlay--top-center { top: 0; left: 50%; transform: translateX(-50%); }
.hero-logo-overlay--top-left   { top: 16px; left: 24px; }
.hero-logo-overlay--top-right  { top: 16px; right: 24px; }
.hero-logo-overlay--center     { top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* Shrink mode — at scroll, overlay migrates into the nav slot at the variant's
   own nav size. Position resolves to top-center regardless of starting anchor
   (because the nav slot itself sits centered). */
.hero-logo-overlay.is-scrolled {
  width: var(--nav-logo-size, 44px);
  height: var(--nav-logo-size, 44px);
  top: 12px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
.hero-logo-overlay__sphere,
.hero-logo-overlay__image {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-logo-overlay__image { object-fit: contain; }
.hero-logo-overlay__canvas { width: 100%; height: 100%; display: block; }

/* When a page hosts a Hero Logo overlay, the real nav logo slot is hidden by
   default. JS removes this class for stay-mode pages once the overlay scrolls
   away (see hero-logo-shrink.js). */
.page-has-hero-logo .nav__logo { visibility: hidden; }
.nav__logo.is-hidden-by-hero-overlay { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.nav__logo:not(.is-hidden-by-hero-overlay) { opacity: 1; transition: opacity 0.3s ease; }

.nav__right {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-self: end;
}

@media (max-width: 1023px) {
  .nav__right { padding-left: 0; gap: 0; }
}

/* Mobile nav — icon variants (hamburger left, search left, heart + bag right).
   Desktop keeps the text labels; mobile swaps to icons so the right side has
   breathing room around the centered logo. */
.nav__search-icon,
.nav__cart-icon { display: none; }

@media (max-width: 1023px) {
  .nav__search-icon,
  .nav__cart-icon { display: block; width: 20px; height: 20px; color: var(--color-text); }
  .nav__search-text,
  .nav__cart-label { display: none; }
  .nav__actions .lang-switcher { display: none; }
  .nav__left { gap: 4px; }
  .nav__actions { gap: 4px; }
  .nav__search { min-width: 44px; justify-content: center; padding: 0 4px; }
  .nav__cart { gap: 4px; }
}

.nav__link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 1025px) {
  .nav__link { min-height: auto; }
}

.nav__link:hover { color: var(--color-text); }
.nav__link--dropdown { display: inline-flex; align-items: center; gap: 4px; }

.nav__actions { display: flex; align-items: center; gap: 12px; }
@media (min-width: 1024px) {
  .nav__actions { gap: 20px; }
}

.nav__cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.nav__cart:hover { color: var(--color-text); }

.nav__cart-icon { width: 20px; height: 20px; }

.nav__cart-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
}
.nav__cart:hover .nav__cart-label { color: var(--color-text); }

.nav__cart-count {
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 0.6rem;
  font-weight: 500;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__cart-count:empty,
.nav__cart-count[data-count="0"] { opacity: 0; pointer-events: none; }

/* Dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  padding-top: 12px;
  min-width: 180px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.nav__dropdown-menu::before {
  content: '';
  display: block;
  padding: 16px 0 0;
}
.nav__dropdown:hover .nav__dropdown-menu { display: block; }
.nav__dropdown-link {
  display: block;
  padding: 10px 28px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: all 0.3s ease;
  white-space: nowrap;
}
.nav__dropdown-link:hover { color: var(--color-text); background: var(--color-bg-alt); }

/* Mobile toggle */
.nav__toggle {
  display: block;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 1024px) {
  .nav__toggle { display: none; }
}

/* Mobile menu */
.nav__mobile-menu {
  display: none;
}
.nav__mobile-menu--open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-bg);
  padding: 30px 20px;
  gap: 24px;
  z-index: 100;
  border-bottom: 1px solid var(--color-border-light);
  max-height: calc(100vh - var(--nav-height));
  max-height: calc(100dvh - var(--nav-height));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 1024px) {
  .nav__mobile-menu { display: none !important; }
}

.nav__mobile-list { list-style: none; margin: 0; padding: 0; }
.nav__mobile-list + .nav__mobile-list {
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
}
.nav__mobile-link {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  padding: 8px 0;
  display: inline-block;
  -webkit-tap-highlight-color: transparent;
}
.nav__mobile-link:hover { color: var(--color-text); }
.nav__mobile-heading { cursor: default; }
.nav__mobile-toggle {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font: inherit;
}
.nav__mobile-toggle::after {
  content: '+'; font-size: 1rem; font-weight: 300;
  color: var(--color-text-tertiary); transition: transform 0.2s;
  margin-left: 8px; flex-shrink: 0;
}
.nav__mobile-toggle--open::after { content: '\2212'; }
/* 2026-05-17 Option B — mobile Info section uses a split layout where the
   header text is a real <a> link and the expand/collapse +/− sits in its
   own button on the right. Same toggle JS handles it via the shared
   .nav__mobile-toggle class. */
.nav__mobile-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.nav__mobile-section-link {
  flex: 1;
  min-width: 0;
}
.nav__mobile-section-toggle {
  flex-shrink: 0;
  width: 44px;
  min-height: 44px;
  padding: 0;
  justify-content: center;   /* override .nav__mobile-toggle's space-between */
}
.nav__mobile-section-toggle::after {
  margin-left: 0;            /* override .nav__mobile-toggle's left margin */
}
.nav__mobile-sub {
  list-style: none;
  margin: 0;
  padding: 4px 0 4px 16px;
}
.nav__mobile-sub--hidden { display: none; }
.nav__mobile-sublink {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
  padding: 6px 0;
  display: inline-block;
  -webkit-tap-highlight-color: transparent;
}
.nav__mobile-sublink--indent { padding-left: 12px; }
.nav__mobile-sublink:hover { color: var(--color-text); }

/* ========== Footer ========== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 60px 20px 30px;
  margin-top: 80px;
}

@media (min-width: 768px) {
  .footer { padding: 80px 40px 40px; margin-top: 120px; }
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; gap: 60px; }
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.footer__brand::after {
  content: '';
  display: block;
  height: 4px;
  margin-top: 8px;
  background: linear-gradient(to bottom, #0057B8 50%, #FFD700 50%);
  width: 48px;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.footer__heading {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--color-text-tertiary);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
  padding: 8px 0;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 1025px) {
  .footer__links { gap: 12px; }
  .footer__link { padding: 0; }
}

.footer__link:hover { color: var(--color-text); }

.footer__social { display: flex; gap: 20px; }

.footer__social-link {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
  padding: 8px 0;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 1025px) {
  .footer__social-link { padding: 0; }
}

.footer__social-link:hover { color: var(--color-text); }

.footer__bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
  text-align: center;
  font-size: 0.7rem;
  color: var(--color-text-tertiary);
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
}

.footer__built-on a {
  color: var(--color-text-tertiary);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 8px 2px;
}

.footer__built-on a:hover { color: var(--color-text); }

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn--primary:hover { background: var(--color-text-secondary); }

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn--full { display: block; width: 100%; }

.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ========== Product Card ========== */
.product-card {
  display: block;
  transition: transform 0.4s ease;
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-bg-card);
  margin-bottom: 16px;
  max-height: calc(80vh - 60px);
  max-height: calc(80svh - 60px);
}

.product-card__image {
  width: 100%;
  height: 100%;
  /* `contain` (not `cover`) because our SS2026 product images are 1237x2580
     transparent silhouettes — more portrait than the 3:4 card. `cover` would
     crop ~35% off the bottom (= legs cut on every card). `contain` preserves
     the whole model with transparent margin visible through the card bg. */
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card__image {
  transform: scale(1.04);
}

.product-card__info {
  padding: 0 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.product-card__info-text { flex: 1; min-width: 0; }

.product-card__collection {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

@media (min-width: 1025px) {
  .product-card__collection { font-size: 0.65rem; }
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.product-card__price {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.03em;
}

/* ========== Product Grid ========== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 480px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
}

@media (min-width: 1025px) {
  .product-grid { gap: 32px; }
}

/* ========== Section ========== */
.section {
  padding: 60px 20px;
}

@media (min-width: 768px) {
  .section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 40px;
  }
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .section__header { margin-bottom: 64px; }
}

.section__label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.03em;
}

/* ========== Selectors (Size/Color pills) ========== */
.selector { margin-bottom: 28px; }

.selector__label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--color-text-tertiary);
}

.selector__options { display: flex; flex-wrap: wrap; gap: 10px; }

.selector__option {
  padding: 12px 20px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  .selector__option { padding: 10px 20px; min-height: auto; }
}

@media (hover: hover) {
  .selector__option:hover { border-color: var(--color-text-secondary); }
}

.selector__option--active {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-bg);
}

/* ========== Form Inputs ========== */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  min-height: 48px;
}

@media (min-width: 768px) {
  .form-input { font-size: 0.9rem; padding: 12px 16px; min-height: auto; }
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-input::placeholder { color: var(--color-text-tertiary); }

textarea.form-input { resize: vertical; min-height: 120px; }

select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ========== Search Overlay ========== */
.nav__search {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
  font-family: var(--font-display);
  -webkit-tap-highlight-color: transparent;
}
.nav__search:hover { color: var(--color-text); }
@media (min-width: 1025px) {
  .nav__search { min-height: auto; }
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.search-overlay--open { opacity: 1; }

.search__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.search__panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  margin-top: 80px;
  background: var(--color-bg);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .search__panel {
    margin-top: 0;
    max-height: 100vh;
    height: 100%;
  }
}

.search__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--color-border-light);
}

.search__icon {
  flex-shrink: 0;
  color: var(--color-text-tertiary);
}

.search__input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-text);
  outline: none;
  letter-spacing: 0.02em;
}
.search__input::placeholder {
  color: var(--color-text-tertiary);
}

.search__close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-text-tertiary);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s ease;
}
.search__close:hover { color: var(--color-text); }

.search__count {
  padding: 12px 32px 0;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.search__results {
  padding: 8px 32px 32px;
  overflow-y: auto;
}

.search__hint,
.search__empty {
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
}

.search__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-light);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.search__item:hover {
  background: var(--color-bg-card);
}

.search__item-img {
  width: 72px;
  height: 90px;
  overflow: hidden;
  background: var(--color-bg-card);
}
.search__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search__item-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.search__item-collection {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 2px;
}

.search__item-price {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.search__item-snippet {
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
  line-height: 1.4;
}
.search__item-snippet mark {
  background: rgba(0, 0, 0, 0.08);
  color: var(--color-text);
  padding: 1px 2px;
}

/* ========== Shop Filters ========== */

.shop-filters {
  max-width: var(--max-width);
  margin: 0 auto 28px;
  padding: 0 80px;
}

@media (max-width: 767px) {
  .shop-filters { padding: 0 20px; }
}

.shop-filters__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-filters__left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .shop-filters__left { gap: 16px; }
}

.shop-filters__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.shop-filters__group {
  position: relative;
}

.shop-filters__btn {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.shop-filters__btn:hover { color: var(--color-text); }
.shop-filters__btn--active { color: var(--color-text); font-weight: 500; }

.shop-filters__count {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--color-text-tertiary);
}

.shop-filters__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  padding: 16px 20px;
  min-width: 180px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.shop-filters__dropdown--right {
  left: auto;
  right: 0;
}

.shop-filters__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}

.shop-filters__dropdown-item:hover { color: var(--color-text); }
.shop-filters__dropdown-item--active { color: var(--color-text); font-weight: 500; }

.shop-filters__check {
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shop-filters__check--on {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.shop-filters__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0 0;
  align-items: center;
}

.shop-filters__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  border-radius: 100px;
}

.shop-filters__tag-x {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  font-size: 1em;
}

.shop-filters__tag-x:hover { opacity: 1; }

.shop-filters__clear {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 8px;
  transition: color 0.2s;
}

.shop-filters__clear:hover { color: var(--color-text); }

/* ========== Quick View ========== */

/* Hover button on product cards */
.product-card .qv-btn {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(26, 26, 26, 0.85);
  color: #fff;
  border: none;
  padding: 10px 22px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  -webkit-tap-highlight-color: transparent;
}

.product-card__image-wrap { position: relative; }

@media (hover: hover) {
  .product-card:hover .qv-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Mobile: show always with reduced opacity */
@media (hover: none) {
  .product-card .qv-btn {
    opacity: 0.9;
    transform: translateX(-50%) translateY(0);
    padding: 8px 18px;
  }
}

/* Overlay */
.qv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.qv-overlay--open {
  opacity: 1;
  pointer-events: all;
}

/* Modal */
.qv-modal {
  background: var(--color-bg);
  width: 820px;
  max-width: 95vw;
  max-height: 85vh;
  display: flex;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.qv-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--color-text-secondary);
  z-index: 2;
  padding: 8px;
  transition: color 0.2s;
}
.qv-modal__close:hover { color: var(--color-text); }

.qv-modal__img {
  width: 420px;
  min-height: 480px;
  max-height: 85vh;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}

.qv-modal__info {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  overflow-y: auto;
}

.qv-modal__collection {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 10px;
}

.qv-modal__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  line-height: 1.3;
}

.qv-modal__price {
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  color: var(--color-text-secondary);
}

.qv-modal__label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 12px;
}

.qv-modal__sizes {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.qv-modal__colors {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.qv-modal__color-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
}

.qv-modal__color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.qv-modal__add-btn {
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 12px;
  -webkit-tap-highlight-color: transparent;
}
.qv-modal__add-btn:hover { background: var(--color-text-secondary); }
.qv-modal__add-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.qv-modal__feedback {
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
  min-height: 1.2em;
  margin-bottom: 16px;
}

.qv-modal__details-link {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
  align-self: flex-start;
}
.qv-modal__details-link:hover { color: var(--color-text); }

/* Mobile: stack vertically */
@media (max-width: 767px) {
  .qv-modal {
    flex-direction: column;
    width: 95vw;
    max-height: 90vh;
  }
  .qv-modal__img {
    width: 100%;
    min-height: 0;
    height: 45vw;
    max-height: 300px;
  }
  .qv-modal__info {
    padding: 24px 20px;
  }
  .qv-modal__close {
    top: 8px;
    right: 12px;
  }
}

/* ========== Wishlist ========== */

/* Heart on product cards (info section) */
.wl-heart {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: var(--color-text-tertiary);
  transition: all 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
  margin-top: 2px;
}

.wl-heart:hover { color: var(--color-text); transform: scale(1.15); }

.wl-heart--active svg { fill: var(--color-text); stroke: var(--color-text); }
.wl-heart--active { color: var(--color-text); }

/* Heart on product detail page */
.wl-heart-pdp {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-text-tertiary);
  transition: all 0.2s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.wl-heart-pdp:hover { color: var(--color-text); transform: scale(1.1); }
.wl-heart-pdp--active svg { fill: var(--color-text); stroke: var(--color-text); }
.wl-heart-pdp--active { color: var(--color-text); }

/* Nav wishlist icon */
.nav__wishlist {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  transition: color 0.3s;
  cursor: pointer;
  text-decoration: none;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.nav__wishlist:hover { color: var(--color-text); }

.nav__wishlist-count {
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 0.6rem;
  font-weight: 500;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

/* Wishlist page */
.wishlist-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 80px 80px;
}

@media (max-width: 767px) {
  .wishlist-page { padding: 24px 20px 60px; }
}

.wishlist-header {
  text-align: center;
  margin-bottom: 48px;
}

.wishlist-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.wishlist-header__count {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  letter-spacing: 0.1em;
}

.wishlist-empty {
  text-align: center;
  padding: 60px 20px;
}

.wishlist-empty__text {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.wl-card__image-wrap {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-bg-card);
  margin-bottom: 16px;
}

.wl-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.wl-card:hover .wl-card__image { transform: scale(1.04); }

.wl-card__info {
  padding: 0 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.wl-card__info-text { flex: 1; min-width: 0; }

.wl-card__collection {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

.wl-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.wl-card__name a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

.wl-card__name a:hover { color: var(--color-text-secondary); }

.wl-card__price {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.03em;
}

.wl-card__remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--color-text-tertiary);
  padding: 2px 4px;
  transition: color 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.wl-card__remove:hover { color: var(--color-text); }
