/* ==============================================
   LUNARA'S UNIVERSE — STYLESHEET
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Inter:wght@300;400;600;700&display=swap');

/* ==============================================
   CSS VARIABLES
   ============================================== */
:root {
  color-scheme: dark;
  --bg:       #07070b;
  --panel:    #111119;
  --panel-2:  #171722;
  --line:     rgba(255,255,255,0.08);
  --text:     #f7f7fb;
  --muted:    #b9b9c9;
  --accent:   #b98cff;
  --accent-2: #7ee7ff;
  --success:  #83ffbf;
  --danger:   #ff8da1;
  --gradient-vivid: linear-gradient(120deg, #ffb3e6 0%, #d9c2ff 50%, #a8ecff 100%);
  --header-bg: rgba(7,7,11,0.86);
  --header-bg-shrink: rgba(7,7,11,0.94);
}

/* ── LIGHT THEME — toggled via the ☰ menu, saved in localStorage ── */
:root[data-theme="light"] {
  color-scheme: light;
  --bg:       #f7f5fb;
  --panel:    #ffffff;
  --panel-2:  #f1eefa;
  --line:     rgba(20,15,35,0.1);
  --text:     #161320;
  --muted:    #6b6680;
  --accent:   #8b5cf6;
  --accent-2: #159fb5;
  --success:  #1f9c63;
  --danger:   #d1445c;
  --gradient-vivid: linear-gradient(120deg, #e88fc9 0%, #a68af0 50%, #4bb9d6 100%);
  --header-bg: rgba(255,255,255,0.86);
  --header-bg-shrink: rgba(255,255,255,0.95);
}

/* ==============================================
   RESET & BASE
   ============================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, rgba(126,231,255,0.08), transparent 30%),
              radial-gradient(circle at 20% 20%, rgba(185,140,255,0.08), transparent 25%),
              var(--bg);
  color: var(--text);
  max-width: 1400px;
  margin: auto;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Playfair Display', serif; letter-spacing: 0.5px; }
.hidden { display: none !important; }

/* ==============================================
   HEADER
   ============================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.35s ease, opacity 0.35s ease, background 0.3s ease;
}
.site-header.header-hidden { transform: translateY(-115%); opacity: 0; }
.site-header.shrink { background: var(--header-bg-shrink); }

/* Hamburger (☰) button — opens the side menu */
.hamburger-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 32px; height: 32px; padding: 0; border: none; background: transparent; cursor: pointer;
}
.hamburger-btn span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; }

/* Side menu — slides in from the left (mirrors the cart panel on the right) */
.menu-panel {
  position: fixed; left: -320px; top: 0;
  width: 300px; max-width: 85vw; height: 100%;
  background: var(--panel); border-right: 1px solid var(--line);
  z-index: 1200; overflow-y: auto; transition: left 0.3s ease;
  display: flex; flex-direction: column;
}
.menu-panel.open { left: 0; }
.menu-section { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.menu-section-label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.menu-section a { color: var(--text); text-decoration: none; font-size: 15px; padding: 4px 0; }
.menu-section a:hover { color: var(--accent); }
.theme-toggle-row { display: flex; gap: 8px; }
.theme-toggle-btn {
  flex: 1; padding: 10px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); cursor: pointer; font-size: 13px; font-weight: 600;
}
.theme-toggle-btn.active { border-color: var(--accent); background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #07070b; }


.header-inner {
  min-height: 74px; padding: 10px 22px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 16px;
}

.logo-left-group { display: flex; align-items: center; gap: 8px; position: relative; }
.logo-left { display: inline-flex; align-items: center; text-decoration: none; }
.logo { height: 48px; width: auto; object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(185,140,255,0.55));
  transition: transform 0.3s, filter 0.3s; }
.logo:hover { transform: scale(1.06); filter: drop-shadow(0 0 18px rgba(126,231,255,0.65)); }

.region-selector-left { position: relative; }
.region-selector-left .region-dropdown { top: calc(100% + 8px); left: 0; right: auto; }

.logo-flag-btn {
  background: transparent; border: none; cursor: pointer; padding: 4px 6px;
  display: inline-flex; flex-direction: row; align-items: center;
  gap: 5px; border-radius: 8px; transition: transform 0.2s; white-space: nowrap;
}
.logo-flag-btn:hover { transform: scale(1.08); }
.logo-flag-btn .flag-emoji { font-size: 20px; line-height: 1; }
.logo-flag-btn .flag-currency { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }

.brand-center {
  position: relative; justify-self: center;
  min-height: 54px; padding: 0 18px; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.brand-bg-logo {
  position: absolute; width: 58px; height: 58px; object-fit: contain;
  opacity: 0.24;
  filter: drop-shadow(0 0 14px rgba(185,140,255,0.9)) drop-shadow(0 0 22px rgba(126,231,255,0.35));
  pointer-events: none;
}
.brand-center span {
  position: relative; z-index: 2;
  font-family: 'Playfair Display', serif;
  font-size: clamp(19px, 3.4vw, 28px); font-weight: 700;
  color: var(--text); letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(185,140,255,0.65), 0 0 22px rgba(126,231,255,0.18);
}

.header-right { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }
.main-nav { display: flex; gap: 18px; align-items: center; }
.main-nav a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.3s; }
.main-nav a:hover { color: var(--text); }

.region-btn { display: none; }

.cart-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none; padding: 8px 16px; border-radius: 999px;
  cursor: pointer; font-weight: 600; color: #07070b;
  transition: transform 0.3s, box-shadow 0.3s;
}
.cart-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(185,140,255,0.35); }

/* ==============================================
   REGION DROPDOWN
   ============================================== */
.region-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px; z-index: 1200;
  min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.region-dropdown button {
  display: block; width: 100%; text-align: left;
  background: transparent; border: none; color: var(--text);
  padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 14px;
  transition: background 0.2s; font-family: inherit;
}
.region-dropdown button:hover { background: var(--panel); }

/* ==============================================
   NAV DROPDOWN
   ============================================== */
.dropdown { position: relative; display: inline-block; }
.dropbtn {
  background: transparent; color: var(--text); font-size: 14px;
  border: none; cursor: pointer; padding: 8px 14px; transition: color 0.3s;
}
.dropdown:hover .dropbtn { color: var(--accent); }
.dropdown-content {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--panel-2); min-width: 180px; border-radius: 10px;
  overflow: hidden; z-index: 1100;
  max-height: 0; opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}
.dropdown:hover .dropdown-content { max-height: 400px; opacity: 1; }
.dropdown-content a {
  display: block; padding: 10px 14px; color: var(--text);
  text-decoration: none; font-size: 14px; transition: background 0.2s;
}
.dropdown-content a:hover { background: var(--panel); }

/* ==============================================
   HERO
   ============================================== */
.hero-premium { text-align: center; padding: 105px 20px 80px; }
.hero-content { max-width: 700px; margin: auto; }
.hero-eyebrow { color: var(--accent); font-size: 13px; letter-spacing: 2px; margin-bottom: 10px; }
.hero-premium h1 { font-size: clamp(38px,5vw,60px); line-height: 1.1; margin-bottom: 20px; }
.hero-sub {
  margin-bottom: 30px;
  font-weight: 600;
}
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.hero-proof {
  margin-top: 15px; font-size: 14px; font-weight: 600;
}
/* Blue-to-purple gradient built from solid per-chunk colors instead of a
   CSS background-image gradient. Plain `color` values render identically
   across every browser/mode — nothing to strip, invert, or misrender. */
.grad-1 { color: #7ee7ff; }
.grad-2 { color: #8ad5ff; }
.grad-3 { color: #96c3ff; }
.grad-4 { color: #a1b0ff; }
.grad-5 { color: #ad9eff; }
.grad-6 { color: #b98cff; }
/* Pale pastels above read fine on the dark bg but vanish on white — darker,
   more saturated equivalents for the light theme */
:root[data-theme="light"] .grad-1 { color: #0891b2; }
:root[data-theme="light"] .grad-2 { color: #2563eb; }
:root[data-theme="light"] .grad-3 { color: #4f46e5; }
:root[data-theme="light"] .grad-4 { color: #7c3aed; }
:root[data-theme="light"] .grad-5 { color: #9333ea; }
:root[data-theme="light"] .grad-6 { color: #a21caf; }

.btn-primary, .btn-secondary {
  padding: 14px 28px; border-radius: 999px; text-decoration: none;
  transition: 0.3s; font-weight: 500; display: inline-block;
}
.btn-primary {
  background-color: #9ec4ff;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22100%22%20height%3D%22100%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%22100%25%22%20y2%3D%220%25%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%237ee7ff%22/%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23b98cff%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect%20width%3D%22100%22%20height%3D%22100%22%20fill%3D%22url%28%23g%29%22/%3E%3C/svg%3E");
  background-size: 100% 100%; background-position: center;
  color: #1a0d2e; border: none; cursor: pointer;
}
.btn-secondary { border: 1px solid var(--line); color: var(--text); }
.btn-primary:hover, .btn-secondary:hover, .btn-why-lunara:hover { transform: translateY(-2px); }

.btn-why-lunara {
  padding: 14px 28px; border-radius: 999px; border: none; cursor: pointer;
  font-weight: 500; font-size: 1rem; text-decoration: none; display: inline-block;
  background-color: #9ec4ff;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22100%22%20height%3D%22100%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%22100%25%22%20y2%3D%220%25%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%237ee7ff%22/%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23b98cff%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect%20width%3D%22100%22%20height%3D%22100%22%20fill%3D%22url%28%23g%29%22/%3E%3C/svg%3E");
  background-size: 100% 100%; background-position: center;
  color: #1a0d2e !important;
  transition: transform 0.3s, box-shadow 0.3s;
  font-family: inherit;
}

/* ==============================================
   TRUST BAR
   ============================================== */
.trust-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px; }
.trust-bar-inner { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

/* ==============================================
   WHY LUNARA SECTION
   ============================================== */
.why-lunara-section { padding: 80px 20px; text-align: center; }
.why-lunara-inner { max-width: 1100px; margin: auto; }
.why-eyebrow { color: var(--accent); font-size: 13px; letter-spacing: 2px; margin-bottom: 10px; }
.why-lunara-section h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; color: var(--text); }
.why-sub { color: var(--muted); max-width: 600px; margin: 0 auto 36px; line-height: 1.7; }

.why-statement { margin: 0 auto 48px; max-width: 640px; }
.why-statement blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(17px, 2.5vw, 22px); line-height: 1.6;
  color: var(--accent); border-left: 3px solid var(--accent);
  padding: 16px 24px; margin: 0; font-style: italic; text-align: left;
  background: rgba(185,140,255,0.06); border-radius: 0 12px 12px 0;
}

.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; text-align: left;
}
.why-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.why-card--featured {
  background: linear-gradient(135deg, rgba(185,140,255,0.12), rgba(126,231,255,0.06));
  border-color: rgba(185,140,255,0.3);
}
.why-icon { font-size: 28px; display: block; margin-bottom: 12px; }
.why-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--text); }
.why-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

.why-cta { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.why-cta-note { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; }

/* ==============================================
   FEATURED BANNER
   ============================================== */
.featured-banner { text-align: center; padding: 42px 20px 14px; }
.featured-banner h2 { font-size: clamp(28px,4vw,44px); }
.featured-banner p { margin-top: 8px; color: var(--muted); }

/* ==============================================
   PRODUCT SECTIONS
   ============================================== */
.product-section { padding: 0 0 20px; }
.product-heading { font-size: clamp(22px, 3vw, 32px); padding: 30px 20px 0; color: var(--text); }

.products {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; padding: 24px 16px 40px;
}
@media (min-width: 900px) {
  .products { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; padding: 24px 20px 40px; }
}

/* TRUE SQUARE product tile — the image fills the whole card and the
   name/price sit in a caption overlay at the bottom of the image, so the
   card itself stays a perfect square (no separate text panel adding height).
   Tapping opens the full product detail modal (openProductDetail). */
.product-card {
  position: relative; aspect-ratio: 1 / 1;
  background: var(--panel-2); border-radius: 16px; overflow: hidden;
  transition: 0.3s; border: 1px solid var(--line); cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.45); }

.product-card .product-image-wrap {
  position: absolute; inset: 0; aspect-ratio: auto;
}

.product-image-wrap {
  background: radial-gradient(circle at center, rgba(185,140,255,0.16), transparent 45%), var(--panel-2);
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
}
.product-image {
  width: 100%; height: 100%; display: block; object-fit: cover;
  transition: opacity 0.22s ease, transform 0.15s ease;
}
.product-image.is-fading { opacity: 0; }
.product-image-wrap.swipeable .product-image { will-change: transform, opacity; }

/* Favourite button floats over the image on the compact tile */
.product-image-wrap .fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 26px; height: 26px; min-width: 26px; max-width: 26px;
  margin-top: 0; padding: 0; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 12px; line-height: 1; cursor: pointer; opacity: 0.85;
  display: flex; align-items: center; justify-content: center;
}
.fav-btn.active { opacity: 1; }

/* Caption overlay — a dark scrim over the bottom of the square image, so
   name/price stay legible on any product photo in either light or dark theme */
.product-info-mini {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 16px 8px 7px;
  background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0.35) 65%, transparent);
}
.mini-name {
  font-size: 11.5px; font-weight: 500; color: #fff; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px;
}
.mini-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mini-meta-row .product-price { margin: 0; font-size: 12px; color: #d9c2ff; }
.mini-rating { font-size: 10px; color: rgba(255,255,255,0.8); white-space: nowrap; }

/* Full info panel — used inside the Product Detail modal only */
.product-top { display: flex; justify-content: flex-start; align-items: center; gap: 6px; }
.product-top h4 { font-size: 16px; }
.pdp-info button.fav-btn {
  width: 30px; height: 30px; min-width: 30px; max-width: 30px;
  margin-top: 0; padding: 0; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 14px; line-height: 1; cursor: pointer; opacity: 0.85;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.anchor-price {
  color: var(--muted); font-size: 13px; text-decoration: line-through;
  margin-top: 10px; margin-bottom: 2px; opacity: 0.7;
}
.product-price { color: var(--accent-2); font-weight: 600; margin: 0 0 6px; }
.product-tag { color: var(--danger); font-size: 13px; }
.product-stock, .product-reviews { font-size: 13px; color: var(--muted); margin-top: 3px; }

.pdp-info select {
  width: 100%; margin-top: 10px; padding: 10px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text);
}
.size-guide-link {
  display: block; width: 100%; box-sizing: border-box; text-align: center;
  margin-top: 10px; padding: 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel-2);
  color: var(--text); font-size: 13px; cursor: pointer;
}
.size-guide-link:hover { border-color: var(--accent); }
.pdp-info button:not(.fav-btn) {
  margin-top: 10px; width: 100%; padding: 12px;
  border-radius: 999px; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: pointer; font-weight: 600; color: #07070b;
}

/* ==============================================
   LOOKBOOK STRIP — scrollable catalog posters, just under the header
   ============================================== */
.lookbook-strip { padding: 14px 0 6px; }
.lookbook-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 20px 10px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.lookbook-track::-webkit-scrollbar { display: none; }

.lookbook-slide {
  flex: 0 0 auto; scroll-snap-align: start;
  width: min(86vw, 320px); border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); padding: 22px 18px;
  background: radial-gradient(circle at 30% 20%, rgba(185,140,255,0.22), transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(126,231,255,0.16), transparent 50%),
              var(--panel);
  display: flex; flex-direction: column;
}

.lookbook-slide--brand { justify-content: center; text-align: center; min-height: 340px; }
.lookbook-eyebrow { color: var(--accent-2); font-size: 12px; letter-spacing: 1px; margin-bottom: 10px; }
.lookbook-brand-title { font-size: 22px; line-height: 1.25; margin-bottom: 12px; }
.lookbook-brand-sub { color: var(--muted); font-size: 13px; line-height: 1.5; margin-bottom: 18px; }
.lookbook-swipe-hint { color: var(--accent); font-size: 12px; opacity: 0.8; }

/* Category poster slides — your own designed catalog images */
.lookbook-slide--img {
  padding: 0; min-height: 340px; position: relative; text-decoration: none;
  display: block; background: var(--panel-2);
}
.lookbook-slide--img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.lookbook-img-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 14px 16px; font-size: 14px; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}
/* Until you upload the real image, show a tidy placeholder instead of a broken icon */
.lookbook-slide--img.lookbook-img-missing {
  background: radial-gradient(circle at 30% 20%, rgba(185,140,255,0.25), transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(126,231,255,0.18), transparent 50%),
              var(--panel-2);
  display: flex; align-items: flex-end;
}
.lookbook-slide--img.lookbook-img-missing img { display: none; }
.lookbook-slide--img.lookbook-img-missing .lookbook-img-label { position: static; background: none; color: var(--muted); }


/* ==============================================
   PRODUCT DETAIL MODAL (PDP)
   ============================================== */
.pdp-box { max-width: 760px; text-align: left; }
.pdp-gallery-wrap { max-width: 320px; margin: 0 auto 16px; }
.pdp-gallery { border-radius: 16px; }
.pdp-info { margin-bottom: 8px; }

@media (min-width: 640px) {
  .pdp-box #pdp-content { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
  .pdp-gallery-wrap { margin: 0; }
  .pdp-tabs, .pdp-recs { grid-column: 1 / -1; }
}

.pdp-tabs { display: flex; gap: 8px; margin-top: 22px; border-bottom: 1px solid var(--line); }
.pdp-tab-btn {
  background: none; border: none; color: var(--muted); font-weight: 600;
  padding: 10px 4px; cursor: pointer; border-bottom: 2px solid transparent; margin: 0;
}
.pdp-tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }
.pdp-tab-panel { padding: 16px 2px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.pdp-tab-panel.hidden { display: none; }

.pdp-review-summary { color: var(--text); font-weight: 600; margin-bottom: 10px; }
.pdp-review-empty { color: var(--muted); }
.pdp-review-item { border-top: 1px solid var(--line); padding: 10px 0; }
.pdp-review-stars { font-size: 13px; margin-bottom: 4px; }
.pdp-review-text { font-size: 13px; }

.pdp-recs { margin-top: 18px; }
.pdp-recs h3 { font-size: 16px; margin-bottom: 10px; }
.pdp-recs-row {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.pdp-recs-row .product-card { flex: 0 0 130px; }

/* ==============================================
   CART PANEL
   ============================================== */
.cart-panel {
  position: fixed; right: -420px; top: 0;
  width: 400px; max-width: 100vw; height: 100%;
  background: var(--panel); border-left: 1px solid var(--line);
  z-index: 1200; overflow-y: auto; transition: right 0.3s ease;
  display: flex; flex-direction: column;
}
.cart-panel.open { right: 0; }

.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 1100; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 20px 16px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--panel); z-index: 1;
}
.cart-header h3 { font-size: 18px; }
.cart-close {
  background: transparent; border: 1px solid var(--line); color: var(--text);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center; transition: border-color 0.2s;
}
.cart-close:hover { border-color: var(--accent); }

.cart-items { flex: 1; padding: 16px 20px; }
.cart-item {
  display: flex; justify-content: space-between; gap: 14px;
  margin-bottom: 15px; font-size: 14px;
  border-bottom: 1px solid var(--line); padding-bottom: 14px;
}
.cart-item button {
  background: transparent; border: 1px solid var(--line); color: var(--danger);
  border-radius: 999px; padding: 4px 10px; cursor: pointer; font-size: 12px;
}

.cart-footer { padding: 16px 20px 24px; border-top: 1px solid var(--line); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 16px; font-weight: 600; margin-bottom: 14px; }

.bundle-hint {
  font-size: 12px; color: var(--accent); margin: 4px 0 2px;
  text-align: center; letter-spacing: 0.3px;
}
.featured-banner .bundle-hint {
  font-size: 15px; color: var(--accent); margin-top: 12px;
}
.promo-hint {
  font-size: 12px; color: var(--accent-2); margin: 4px 0 8px;
  text-align: center; letter-spacing: 0.3px;
}
.promo-row { display: flex; gap: 8px; margin-bottom: 6px; }
.promo-input {
  flex: 1; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font-size: 14px;
}
.promo-btn {
  padding: 10px 16px; border-radius: 10px; border: none;
  background: var(--accent); color: #07070b; cursor: pointer; font-weight: 600; font-size: 14px;
}
.promo-msg { font-size: 13px; color: var(--success); margin-bottom: 10px; min-height: 18px; }

.checkout-form { margin-top: 14px; }
.checkout-form h4 { font-size: 14px; color: var(--muted); margin-bottom: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

.form-row { display: flex; gap: 10px; margin-bottom: 10px; }
.form-input {
  flex: 1; min-width: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font-size: 14px; outline: none;
  transition: border-color 0.2s; font-family: inherit; margin-bottom: 10px;
  text-overflow: ellipsis;
}
.form-input:focus { border-color: var(--accent); }
.form-input.full { width: 100%; display: block; }
.form-row .form-input { margin-bottom: 0; }
.form-error { color: var(--danger); font-size: 13px; margin: 4px 0 10px; }

.checkout-btn {
  margin-top: 6px; width: 100%; padding: 14px;
  border-radius: 999px; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: pointer; font-weight: 700; font-size: 15px; color: #07070b;
  transition: transform 0.2s, box-shadow 0.2s;
}
.checkout-btn:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(185,140,255,0.35); }

/* ==============================================
   DETAILS MODAL
   ============================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.88);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-box {
  background: var(--panel); border: 1px solid rgba(185,140,255,0.3);
  border-radius: 20px; padding: 36px 36px; max-width: 560px; width: 100%;
  position: relative; box-shadow: 0 0 60px rgba(140,80,255,0.2);
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: 1px solid var(--line); color: var(--text);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center; transition: border-color 0.2s;
}
.modal-close:hover { border-color: var(--accent); }
.modal-title { font-size: 1.4rem; color: var(--accent); margin-bottom: 6px; text-align: center; }
.modal-sub { font-size: 0.88rem; color: var(--muted); text-align: center; margin-bottom: 22px; }
.modal-form .form-input { margin-bottom: 12px; }
.modal-form .form-row .form-input { margin-bottom: 12px; }

/* ==============================================
   FOOTER
   ============================================== */
.site-footer { padding: 0 0 20px; }
.footer-divider { border-top: 1px solid var(--accent-2); margin: 1.5rem auto; width: 100%; }

.footer-contacts {
  display: flex; justify-content: space-evenly; align-items: center;
  gap: 20px; margin: 20px 0; flex-wrap: wrap;
}
.footer-contacts a { color: var(--muted); font-size: 18px; text-decoration: none; transition: color 0.3s; }
.footer-contacts a:hover { color: var(--accent); }
.footer-icon { height: 24px; filter: drop-shadow(0 0 4px rgba(185,140,255,0.3)); transition: transform 0.3s; }
.footer-icon:hover { transform: scale(1.08); }

.footer-note { text-align: center; font-size: 12px; color: var(--muted); margin: 10px 0; }

.footer-trust {
  display: flex; justify-content: center; gap: 8px;
  flex-wrap: wrap; padding: 10px 20px 0; align-items: center;
}

.footer-dropdown { position: relative; }
.footer-dropbtn {
  background: transparent; color: var(--muted); font-size: 14px;
  border: none; cursor: pointer; padding: 6px 10px;
  transition: color 0.3s; font-family: inherit;
}
.footer-dropdown.active .footer-dropbtn { color: var(--accent); }

.footer-dropdown-content {
  position: absolute; bottom: calc(100% + 8px); right: 0;
  background: var(--panel-2); border: 1px solid var(--accent-2);
  border-radius: 12px; padding: 18px; z-index: 1000;
  width: min(340px, 88vw); max-width: 480px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.footer-dropdown.active .footer-dropdown-content {
  max-height: 520px;
  opacity: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--panel);
}
.footer-trust .footer-dropdown:first-child .footer-dropdown-content {
  width: min(400px, 88vw);
  max-width: 520px;
}
.footer-dropdown.active .footer-dropdown-content::-webkit-scrollbar { width: 6px; }
.footer-dropdown.active .footer-dropdown-content::-webkit-scrollbar-track { background: var(--panel); border-radius: 3px; }
.footer-dropdown.active .footer-dropdown-content::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
.footer-dropdown-content p, .footer-dropdown-content li { color: var(--text); font-size: 13px; line-height: 1.6; }
.footer-dropdown-content h3, .footer-dropdown-content h4 { font-size: 14px; margin-bottom: 8px; color: var(--accent); }
.footer-dropdown-content ul { padding-left: 16px; margin: 6px 0; }
.terms-box { width: min(320px, 88vw); max-width: 500px; }

.footer-legal--glow {
  margin: 24px 16px 8px; padding: 16px 20px;
  border: 1px solid #ff6eb4; border-radius: 14px;
  box-shadow: 0 0 12px rgba(255,110,180,0.4), 0 0 28px rgba(255,110,180,0.15), inset 0 0 12px rgba(255,110,180,0.05);
  background: rgba(255,110,180,0.04);
  text-align: center;
}
.footer-small { font-size: 11px; line-height: 1.5; color: var(--muted); }

/* ==============================================
   MOBILE — TABLET
   ============================================== */
@media (max-width: 768px) {
  .header-inner { min-height: 68px; padding: 9px 14px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
  .logo { height: 42px; }
  .brand-bg-logo { width: 48px; height: 48px; opacity: 0.2; }
  .brand-center { min-height: 48px; padding: 0 6px; }
  .brand-center span {
    font-size: clamp(13px, 4vw, 20px); letter-spacing: 0.03em;
    white-space: normal; line-height: 1.15; text-align: center;
  }
  .main-nav { display: none; }
  .cart-panel { width: 100%; right: -100%; }
  .footer-contacts { gap: 16px; }
  .footer-trust { gap: 4px; }
  .why-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 28px 18px; }
  .form-row { flex-direction: column; gap: 0; }
}

/* ==============================================
   MOBILE — PHONE
   ============================================== */
@media (max-width: 480px) {
  .header-inner { padding: 8px 12px; min-height: 58px; gap: 6px; }
  .logo { height: 36px; }
  .brand-center span { font-size: 13px; }
  .cart-btn { padding: 7px 10px; font-size: 12px; }
  .hero-premium { padding: 40px 12px 30px; }
  .hero-premium h1 { font-size: 22px; line-height: 1.2; }
  .hero-sub { font-size: 12px; }
  .hero-buttons { flex-direction: row; align-items: center; gap: 8px; justify-content: center; }
  .hero-buttons .btn-primary, .hero-buttons .btn-why-lunara { width: auto; padding: 10px 16px; font-size: 13px; }
  .trust-bar-inner { gap: 8px; font-size: 10px; flex-wrap: wrap; justify-content: center; }

  /* 4 columns on mobile, per request — square tiles keep the artwork legible even narrower */
  /* minmax(0, 1fr) instead of plain 1fr — without the 0, a grid track's
     minimum size defaults to its content's natural width, which forces
     the whole page wider than the screen (hence needing to zoom out) */
  .products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; padding: 8px 8px 16px; }
  .product-image-wrap { aspect-ratio: 1 / 1; }
  .product-image-wrap .fav-btn { width: 20px; height: 20px; min-width: 20px; max-width: 20px; font-size: 10px; top: 5px; right: 5px; }
  .product-info-mini { padding: 12px 5px 5px; }
  .mini-name { font-size: 9.5px; }
  .mini-meta-row .product-price { font-size: 9.5px; }
  .mini-rating { font-size: 8.5px; }
  #favorites .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #favorites .product-card { max-width: none; }
  .product-card { border-radius: 12px; min-width: 0; }
  .product-info { padding: 8px; min-width: 0; }
  .product-top { gap: 4px; }
  .product-top h4 { font-size: 11px; line-height: 1.25; }
  .product-card button.fav-btn { width: 20px; height: 20px; min-width: 20px; max-width: 20px; font-size: 10px; }
  .product-price { font-size: 12px; margin: 4px 0; }
  .anchor-price { font-size: 10px; }
  .product-reviews { font-size: 10px; margin: 3px 0; }
  .size-guide-link { font-size: 10px; padding: 5px 2px; margin-top: 5px; }
  .product-card select {
    padding: 5px 3px; font-size: 10px; margin-bottom: 5px;
    width: 100%; min-width: 0; text-overflow: ellipsis;
  }
  .product-card button { padding: 7px 4px; font-size: 10px; min-width: 0; }
  .product-heading { font-size: 16px; padding: 16px 12px 0; }
  .featured-banner { padding: 20px 12px 8px; }
  .featured-banner h2 { font-size: 20px; }
  .footer-dropdown-content {
    position: fixed;
    top: 50%; left: 50%; right: auto; bottom: auto;
    transform: translate(-50%, -50%);
    width: min(340px, 90vw); max-width: 96vw;
    max-height: 0;
  }
  .footer-dropdown.active .footer-dropdown-content {
    max-height: 70vh;
  }
  .footer-dropdown.active::after {
    content: "";
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999;
  }
  .footer-trust { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .why-statement blockquote { font-size: 13px; }
  .modal-box { padding: 24px 16px; }
  .customs-modal-box { padding: 20px 14px; }
}

@media (max-width: 360px) {
  .products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 8px 6px; }
  .brand-center span { font-size: 11px; }
  .product-info { padding: 6px; }
  .product-top h4 { font-size: 10px; }
  .product-card button { font-size: 9px; padding: 6px 3px; min-width: 0; }
  .product-card select { font-size: 9px; padding: 4px 2px; min-width: 0; }
}

/* ==============================================
   WHY LUNARA POPUP (dropdown from hero button)
   ============================================== */
.why-lunara-dropdown { position: relative; display: inline-block; }

.why-lunara-popup {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  border: 1px solid rgba(185,140,255,0.35);
  border-radius: 18px;
  padding: 24px;
  width: 680px;
  max-width: 92vw;
  max-height: 75vh;
  overflow-y: auto;
  z-index: 1500;
  box-shadow: 0 0 40px rgba(140,80,255,0.25);
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--panel);
}
.why-lunara-popup::-webkit-scrollbar { width: 6px; }
.why-lunara-popup::-webkit-scrollbar-track { background: var(--panel); border-radius: 3px; }
.why-lunara-popup::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

.why-lunara-popup .why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .why-lunara-popup {
    position: fixed;
    top: 50%; left: 50%; right: auto; bottom: auto;
    transform: translate(-50%, -50%);
    width: min(360px, 92vw); max-width: 92vw;
    max-height: 80vh;
    padding: 18px 14px;
  }
  .why-lunara-popup .why-grid { grid-template-columns: 1fr !important; }
}
.why-lunara-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1490;
}
@media (max-width: 600px) {
  .why-lunara-backdrop:not(.hidden) { display: block; }
}

/* ==========================
   IMAGE SWIPE
   ========================== */
.product-image-wrap.swipeable {
  position: relative;
  cursor: pointer;
  touch-action: pan-y;
}
.swipe-hint {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.35);
  padding: 2px 8px;
  border-radius: 999px;
  pointer-events: none;
  letter-spacing: 0.5px;
}
/* Clone image dragged in alongside the current one during a swipe,
   so the user sees both images sliding rather than an instant cut. */
.swipe-clone {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  will-change: transform;
}

/* ==========================
   IMAGE ZOOM LIGHTBOX
   ========================== */
.zoom-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.zoom-overlay.active { display: flex; }
.zoom-box {
  position: relative; width: 100%; max-width: 520px;
  aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden;
  background: var(--panel-2);
  box-shadow: 0 0 60px rgba(140,80,255,0.25);
  touch-action: none;
}
.zoom-box img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  transition: opacity 0.22s ease;
}
.zoom-box img.is-fading { opacity: 0; }
.zoom-close {
  position: absolute; top: -14px; right: -14px;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07070b; font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4); z-index: 1;
}
.zoom-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.4); padding: 4px 12px; border-radius: 999px;
  pointer-events: none; letter-spacing: 0.5px;
}
@media (max-width: 480px) {
  .zoom-close { top: 8px; right: 8px; }
}

/* ==========================
   CUSTOMS MODAL
   ========================== */
.customs-modal-box {
  text-align: center;
  max-width: 420px;
}

/* ── Size Chart Modal ────────────────────────────────── */
.size-chart-modal-box {
  background: var(--panel);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 92vw;
  width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.size-chart-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.size-chart-images img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
}
@media (max-width: 480px) {
  .size-chart-images { grid-template-columns: 1fr; }
  .size-chart-modal-box { padding: 20px 14px; }
}

/* ==============================================
   TOP SECTION ORDER — headline, then collection images, then buttons, then trust line
   ============================================== */
.hero-premium.hero-premium--top { padding: 56px 20px 8px; }
.hero-premium.hero-premium--top h1 { margin-bottom: 14px; }
.hero-premium.hero-premium--top .hero-sub { margin-bottom: 0; }
.lookbook-strip { padding: 22px 0 4px; }
.lookbook-swipe-hint { text-align: center; margin: 4px 0 0; }
@media (min-width: 1100px) {
  .lookbook-track { justify-content: safe center; }
}
.hero-actions { text-align: center; padding: 22px 20px 44px; }
.hero-actions .hero-content { max-width: 700px; margin: auto; }
.hero-actions .hero-buttons { margin-bottom: 18px; }
.hero-actions .hero-proof { margin: 0; }
.trust-pay { display: inline-flex; align-items: center; gap: 6px; }
.trust-pay-logo { height: 16px; width: auto; vertical-align: middle; }
@media (max-width: 640px) {
  .hero-premium.hero-premium--top { padding: 28px 12px 4px; }
  .lookbook-strip { padding: 14px 0 2px; }
  .hero-actions { padding: 16px 12px 28px; }
  .trust-pay-logo { height: 13px; }
}

/* ==============================================
   LEGAL PAGES, 404 AND COOKIE BANNER
   ============================================== */
.legal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.legal-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text);
  font-family: 'Playfair Display', serif; font-size: 16px; letter-spacing: 1px; }
.legal-brand img { width: 40px; height: 40px; object-fit: contain; }
.legal-back { color: var(--accent-2); font-size: 14px; text-decoration: none; }
.legal-back:hover, .legal-page a:hover, .legal-footer a:hover { text-decoration: underline; }

.legal-page { max-width: 760px; margin: 0 auto; padding: 40px 20px 56px; line-height: 1.75; }
.legal-page h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin-bottom: 6px; }
.legal-page h2 { font-size: 19px; margin: 32px 0 8px; }
.legal-page p, .legal-page li { color: var(--muted); font-size: 15px; }
.legal-page p { margin-bottom: 12px; }
.legal-page ul, .legal-page ol { margin: 0 0 12px 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--accent-2); }
.legal-page strong { color: var(--text); }
.legal-updated { font-size: 13px !important; margin-bottom: 20px !important; }
.legal-summary { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px;
  background: var(--panel); padding: 14px 16px; margin: 8px 0 8px; }
.legal-summary p { margin: 0; color: var(--text); }
.todo { background: rgba(255,200,60,0.22); border-radius: 4px; padding: 0 4px; color: var(--text); }

.legal-footer { border-top: 1px solid var(--line); padding: 22px 20px 30px; text-align: center; }
.legal-footer nav, .footer-policy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 10px; }
.legal-footer a, .legal-footer button, .footer-policy-links a, .footer-policy-links button {
  background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; text-decoration: none; }
.legal-footer a:hover, .legal-footer button:hover, .footer-policy-links a:hover, .footer-policy-links button:hover { color: var(--accent-2); }
.legal-footer p { font-size: 12px; color: var(--muted); }

.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 20px; }
.notfound-logo { width: 96px; height: 96px; object-fit: contain; margin-bottom: 8px; }
.notfound-code { font-family: 'Playfair Display', serif; font-size: clamp(64px, 16vw, 120px); line-height: 1;
  background: var(--gradient-vivid); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font-size: clamp(24px, 5vw, 36px); margin: 8px 0 10px; }
.notfound-text { color: var(--muted); max-width: 440px; line-height: 1.6; margin-bottom: 22px; }
.notfound-btn { display: inline-block; text-decoration: none; }
.notfound-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 22px; }
.notfound-links a { color: var(--accent-2); font-size: 14px; text-decoration: none; }
.notfound-links a:hover { text-decoration: underline; }

.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 10000;
  max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}
.cookie-text { flex: 1 1 260px; font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.cookie-text a { color: var(--accent-2); }
.cookie-actions { display: flex; gap: 8px; margin-left: auto; }
.cookie-btn { font: inherit; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 9px 18px; cursor: pointer; border: 1px solid var(--line); }
.cookie-btn--ghost { background: transparent; color: var(--text); }
.cookie-btn--solid { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #07070b; border: 0; }
.cookie-btn:focus-visible, .legal-page a:focus-visible, .legal-footer button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
@media (max-width: 480px) { .cookie-actions { width: 100%; } .cookie-btn { flex: 1; } }

/* ==============================================
   ENTRY INTRO — sliding doors + welcome
   ============================================== */
.intro {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--bg);
}
.intro-door {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background:
    radial-gradient(circle at 30% 20%, rgba(185,140,255,0.28), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(126,231,255,0.18), transparent 50%),
    var(--panel);
  transition: transform 1.2s cubic-bezier(.7,0,.2,1);
  z-index: 1;
}
.intro-door--left  { left: 0;  border-right: 1px solid var(--line); }
.intro-door--right { right: 0; border-left: 1px solid var(--line); }
.intro--open .intro-door--left  { transform: translateX(-100%); }
.intro--open .intro-door--right { transform: translateX(100%); }
.intro--open .intro-content { opacity: 0; transition: opacity 0.4s ease; }

.intro-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 460px; width: calc(100% - 40px); padding: 36px 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 0 60px rgba(140,80,255,0.2);
}
.intro-eyebrow { color: var(--accent-2); font-size: 12px; letter-spacing: 2px; margin-bottom: 10px; }
.intro-title { font-size: 26px; line-height: 1.2; margin-bottom: 14px; }
.intro-sub { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin-bottom: 22px; }
.intro-actions { display: flex; flex-direction: column; gap: 10px; }
.intro-btn {
  width: 100%; padding: 13px; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 14px; margin: 0;
}
.intro-btn--solid { border: none; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #07070b; }
.intro-btn--ghost { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); }
.intro-links { margin-top: 18px; font-size: 12px; color: var(--muted); }
.intro-links a { color: var(--muted); }

/* ==============================================
   NEW COLLECTION RAIL — hanging-rail hero
   ============================================== */
.rail-hero { text-align: center; padding: 26px 20px 8px; }
.rail-eyebrow { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.rail {
  position: relative; display: flex; justify-content: center; flex-wrap: wrap;
  gap: 12px; margin: 22px auto 16px; padding-top: 18px; max-width: 720px;
}
.rail::before {
  content: ""; position: absolute; top: 0; left: 6%; right: 6%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
}
.rail-tag {
  position: relative; padding: 9px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  text-decoration: none; font-size: 13px; font-weight: 500;
}
.rail-tag::before {
  content: ""; position: absolute; top: -18px; left: 50%; width: 1px; height: 18px; background: var(--line);
}
.rail-tag:hover { border-color: var(--accent); }
.rail-tag--new::after {
  content: "NEW"; position: absolute; top: -8px; right: -6px; font-size: 9px;
  padding: 2px 5px; border-radius: 6px; background: var(--accent-2); color: #07070b; font-weight: 700;
}
.rail-sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.rail-cta {
  display: inline-block; padding: 11px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #07070b;
  text-decoration: none; font-weight: 600; font-size: 13.5px;
}

/* Reduced motion: skip the door animation, just fade */
@media (prefers-reduced-motion: reduce) {
  .intro-door { transition: none; }
}

/* ==============================================
   ENTRY INTRO v2 — smooth doors, then welcome card
   (overrides the earlier intro rules above)
   ============================================== */
body.intro-active { overflow: hidden; }
body.intro-active #cookie-banner { display: none !important; }

.intro {
  position: fixed; inset: 0; z-index: 9000;
  background: transparent; overflow: hidden;
  transition: opacity 0.7s ease;
}
.intro--gone { opacity: 0; pointer-events: none; }

.intro-veil {
  position: absolute; inset: 0; z-index: 0;
  background: rgba(7,7,11,0.55);
  opacity: 0; transition: opacity 1.2s ease;
}
.intro--open .intro-veil { opacity: 1; }
:root[data-theme="light"] .intro-veil { background: rgba(247,245,251,0.6); }

/* Doors: full-height panels that slide apart using transform only (GPU-smooth) */
.intro-door {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 1;
  background:
    linear-gradient(180deg, rgba(185,140,255,0.10), transparent 40%),
    radial-gradient(circle at 30% 20%, rgba(185,140,255,0.30), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(126,231,255,0.18), transparent 50%),
    var(--panel);
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 1.6s cubic-bezier(0.77, 0, 0.18, 1);
}
.intro-door--left  { left: 0;  border-right: 1px solid rgba(185,140,255,0.35); }
.intro-door--right { right: 0; border-left: 1px solid rgba(185,140,255,0.35); }
.intro--open .intro-door--left  { transform: translate3d(-100%, 0, 0); }
.intro--open .intro-door--right { transform: translate3d(100%, 0, 0); }

/* Closed-door seal: logo + tap button, sits on the seam */
.intro-seal {
  position: absolute; z-index: 2; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  transition: opacity 0.5s ease;
}
.intro--open .intro-seal { opacity: 0; pointer-events: none; }
.intro-seal-logo { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 0 24px rgba(185,140,255,0.6)); }
.intro-tap {
  padding: 11px 26px; border-radius: 999px; cursor: pointer; margin: 0;
  border: 1px solid rgba(185,140,255,0.5); background: rgba(17,17,25,0.7);
  color: #f7f7fb; font-weight: 600; font-size: 14px; letter-spacing: 0.5px;
}

/* Welcome card: fades up after the doors part */
.intro-card {
  position: absolute; z-index: 3; top: 50%; left: 50%;
  width: calc(100% - 32px); max-width: 460px; max-height: 92vh; overflow-y: auto;
  transform: translate(-50%, calc(-50% + 22px));
  opacity: 0; pointer-events: none;
  padding: 30px 22px; border-radius: 22px; text-align: center;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 0 60px rgba(140,80,255,0.25);
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.intro--card .intro-card { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.intro-policies { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 18px; }
.intro-policy {
  display: flex; flex-direction: column; text-align: left; gap: 2px;
  padding: 11px 14px; border-radius: 12px; text-decoration: none;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
}
.intro-policy strong { font-size: 14px; }
.intro-policy span { font-size: 12px; color: var(--muted); }
.intro-policy:hover { border-color: var(--accent); }
.intro-actions { display: flex; flex-direction: column; gap: 10px; }
.intro-btn { width: 100%; padding: 13px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; margin: 0; }

/* Menu collection filters */
.menu-filter-btn {
  display: block; width: 100%; text-align: left; margin: 0 0 6px; padding: 10px 14px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2);
  color: var(--text); font-size: 14px; cursor: pointer;
}
.menu-filter-btn:hover { border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .intro-door, .intro-card, .intro-seal, .intro-veil { transition-duration: 0.01s !important; }
}

/* ==============================================
   LOOKBOOK v2 — auto-advance, dots, tap-to-browse
   ============================================== */
button.lookbook-slide--img {
  border: 1px solid var(--line); background: var(--panel-2); color: inherit;
  font: inherit; cursor: pointer; padding: 0; text-align: left;
}
.lookbook-dots { display: flex; justify-content: center; gap: 6px; margin: 8px 0 4px; }
.lb-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--line);
  transition: background 0.3s ease, transform 0.3s ease;
}
.lb-dot.active { background: var(--accent); transform: scale(1.3); }

/* Full-screen category viewer */
.lb-viewer {
  position: fixed; inset: 0; z-index: 1800; background: var(--bg);
  display: none; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.lb-viewer.active { display: flex; }
.lb-viewer-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.lb-viewer-bar h3 { font-size: 18px; color: var(--accent); }
.lb-viewer-grid {
  flex: 1; overflow-y: auto; display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr); padding: 16px; align-content: start;
}
@media (min-width: 640px) { .lb-viewer-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.lb-viewer-grid .product-card { aspect-ratio: 1 / 1; }
.lb-viewer-grid .product-info-mini { padding: 14px 10px 10px; }
.lb-viewer .empty-state { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* Menu panel must stay above the viewer */
.menu-panel { z-index: 1900; }
