/* ============================================================
   Shop — style reference implementation
   ============================================================ */

:root {
  /* Colors */
  --color-canvas-mist: #f2f4f5;
  --color-pure-white: #ffffff;
  --color-ink-black: #000000;
  --color-faint-border: #ebebeb;
  --color-muted-gray: #787574;
  --color-cool-stone: #cccccc;
  --color-warm-fog: #acb0aa;
  --color-shop-violet: #5433eb;
  --color-violet-wash: #c0b5f3;
  --color-slate-ink: #332f2d;
  --color-ash-veil: #665a54;

  /* Fonts */
  --font-gt-standard: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-shopify-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --spacing-4: 4px;
  --spacing-6: 6px;
  --spacing-8: 8px;
  --spacing-10: 10px;
  --spacing-11: 11px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-38: 38px;
  --spacing-40: 40px;
  --spacing-48: 48px;
  --spacing-64: 64px;

  /* Radii */
  --radius-cards: 28px;
  --radius-pills: 20px;
  --radius-full: 9999px;
  --radius-inner: 20px;

  /* Shadows */
  --shadow-sm: rgba(0, 0, 0, 0.06) 0px 2px 8px 0px;
  --shadow-sm-2: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
  --shadow-lg: rgba(0, 0, 0, 0.12) 0px 4px 24px 0px;
  --shadow-lg-2: rgba(69, 36, 219, 0.34) 0px 4px 24px 0px;

  /* Layout */
  --page-max-width: 1200px;
  --section-gap: 64px;
  --sidebar-width: 64px;
}

* { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Cinematic cross-document page transitions (progressive enhancement —
   unsupported browsers simply navigate instantly, no error). */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: shopFadeOut 0.45s cubic-bezier(.4,0,.2,1) both;
}
::view-transition-new(root) {
  animation: shopFadeIn 0.5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes shopFadeOut {
  to { opacity: 0; transform: scale(0.985) translateY(-6px); }
}
@keyframes shopFadeIn {
  from { opacity: 0; transform: scale(1.015) translateY(10px); }
}

body {
  margin: 0;
  font-family: var(--font-gt-standard);
  background: var(--color-canvas-mist);
  color: var(--color-ink-black);
  font-size: 16px;
  line-height: 1.33;
  letter-spacing: -0.031em;
  opacity: 0;
}
body.app-ready {
  opacity: 1;
  transition: opacity 0.35s ease;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.stars {
  font-size: 9px;
  letter-spacing: -0.058em;
  color: var(--color-shop-violet);
}
.stars--light { color: #ffffff; }

.review-count {
  font-size: 9px;
  color: var(--color-muted-gray);
  letter-spacing: -0.017em;
  margin-left: 2px;
}

/* ---------------- App download banner ---------------- */
.app-banner {
  background: var(--color-ink-black);
  color: #fff;
  height: 48px;
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  animation: fadeUp 0.5s ease both;
}
.app-banner__left { display: flex; align-items: center; gap: 10px; }
.app-banner__icon {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: #fff;
  color: #000;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.app-banner__text { display: flex; flex-direction: column; line-height: 1.2; }
.app-banner__link { font-size: 14px; font-weight: 700; letter-spacing: -0.023em; transition: opacity 0.2s ease; }
.app-banner__link:hover { opacity: 0.75; text-decoration: underline; }
.app-banner__sub { font-size: 10px; color: rgba(255,255,255,0.6); letter-spacing: -0.023em; }
.app-banner__arrow {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.app-banner__arrow svg { transition: transform 0.2s ease; }
.app-banner__arrow:hover { background: rgba(255,255,255,0.12); }
.app-banner__arrow:hover svg { transform: translateX(3px); }

/* ---------------- App shell ---------------- */
.app {
  display: flex;
  align-items: flex-start;
  max-width: 1264px;
  margin: 0 auto;
}

/* ---------------- Sidebar ---------------- */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--color-pure-white);
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  position: sticky;
  top: 0;
}
.sidebar__logo {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.sidebar__logo .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-shop-violet);
}
.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.sidebar__item {
  position: relative;
  width: 48px; height: 48px;
  border: none;
  background: transparent;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-muted-gray);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(.34,1.56,.64,1);
}
.sidebar__item svg { width: 22px; height: 22px; transition: transform 0.2s ease; }
.sidebar__item:hover { background: var(--color-canvas-mist); color: var(--color-ink-black); transform: translateY(-2px); }
.sidebar__item:hover svg { transform: scale(1.08); }
.sidebar__item:active { transform: scale(0.92); }
.sidebar__item.is-active {
  background: var(--color-canvas-mist);
  color: var(--color-ink-black);
}
.sidebar__item.is-active svg { color: var(--color-shop-violet); }
#navWishlist.is-liked svg { fill: var(--color-shop-violet); stroke: var(--color-shop-violet); animation: heartPop 0.4s cubic-bezier(.34,1.56,.64,1); }
@keyframes heartPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.sidebar__badge {
  position: absolute;
  top: 4px; right: 6px;
  min-width: 15px; height: 15px;
  border-radius: 999px;
  background: var(--color-shop-violet);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  transition: transform 0.2s ease;
}
.sidebar__badge.is-bumped { animation: badgeBump 0.4s cubic-bezier(.34,1.56,.64,1); }
@keyframes badgeBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.sidebar__tooltip {
  position: absolute;
  left: 56px;
  top: 50%;
  transform: translate(-6px, -50%);
  background: var(--color-ink-black);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.017em;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 5;
}
.sidebar__item:hover .sidebar__tooltip,
.sidebar__profile:hover .sidebar__tooltip {
  opacity: 1;
  transform: translate(0, -50%);
}
.sidebar__tooltip--bottom { left: 44px; top: auto; bottom: 0; transform: translate(-6px, 0); }
.sidebar__profile:hover .sidebar__tooltip--bottom { transform: translate(0, 0); }

.sidebar__profile {
  position: relative;
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--color-faint-border);
  margin-top: 8px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s ease;
}
.sidebar__profile:hover { transform: scale(1.08); box-shadow: var(--shadow-sm); }
.sidebar__profile:active { transform: scale(0.94); }
.sidebar__profile img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Main ---------------- */
.main {
  flex: 1;
  min-width: 0;
  padding: 40px 24px 0;
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 24px 0 var(--section-gap);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__constellation {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 260px;
  margin-bottom: 8px;
}

.floating-card {
  position: absolute;
  width: 128px;
  background: var(--color-pure-white);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-sm-2);
  padding: 0;
  overflow: hidden;
  opacity: 0;
  animation: cardEnter 0.7s cubic-bezier(.2,.8,.2,1) forwards, cardFloat 6s ease-in-out infinite;
  animation-delay: var(--enter-delay, 0s), calc(var(--enter-delay, 0s) + 0.7s);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}
.floating-card:hover {
  box-shadow: var(--shadow-lg);
  z-index: 9 !important;
  animation-play-state: paused;
  transform: translateY(-6px) scale(1.04) !important;
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(28px) scale(0.92) rotate(var(--enter-rot, 0deg)); }
  to   { opacity: 1; transform: translateY(0) scale(1) rotate(var(--enter-rot, 0deg)); }
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(var(--enter-rot, 0deg)); }
  50%      { transform: translateY(-10px) rotate(var(--enter-rot, 0deg)); }
}
.floating-card__img {
  aspect-ratio: 1 / 1;
  margin: 8px 8px 0;
  border-radius: var(--radius-inner);
  overflow: hidden;
}
.floating-card__img img { width: 100%; height: 100%; object-fit: cover; }
.floating-card__meta { padding: 8px 10px 10px; text-align: left; }
.floating-card__brand {
  margin: 0 0 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.017em;
}

.fc-1 { top: 0; left: 6%; --enter-rot: -6deg; --enter-delay: 0.05s; z-index: 2; animation-duration: 0.7s, 5.5s; }
.fc-2 { top: 10px; right: 8%; --enter-rot: 5deg; --enter-delay: 0.2s; z-index: 3; animation-duration: 0.7s, 6.5s; }
.fc-3 { top: 110px; left: 0; --enter-rot: 4deg; --enter-delay: 0.35s; z-index: 1; width: 112px; animation-duration: 0.7s, 7s; }
.fc-4 { top: 96px; right: 2%; --enter-rot: -4deg; --enter-delay: 0.5s; z-index: 2; width: 116px; animation-duration: 0.7s, 6s; }
.fc-5 { top: 190px; left: 32%; --enter-rot: -2deg; --enter-delay: 0.3s; z-index: 4; width: 108px; display: none; animation-duration: 0.7s, 6.8s; }

/* Flying carousel — cards periodically swap to a new product */
.floating-card.is-flying-out-left  { animation: flyOutLeft  0.5s cubic-bezier(.5,0,.85,.35) forwards !important; z-index: 8 !important; }
.floating-card.is-flying-out-right { animation: flyOutRight 0.5s cubic-bezier(.5,0,.85,.35) forwards !important; z-index: 8 !important; }
.floating-card.is-flying-in-left   { animation: flyInLeft   0.55s cubic-bezier(.2,.8,.2,1) forwards !important; z-index: 8 !important; }
.floating-card.is-flying-in-right  { animation: flyInRight  0.55s cubic-bezier(.2,.8,.2,1) forwards !important; z-index: 8 !important; }

@keyframes flyOutLeft {
  from { opacity: 1; transform: translate(0, 0) rotate(var(--enter-rot, 0deg)) scale(1); }
  to   { opacity: 0; transform: translate(-90px, -60px) rotate(-28deg) scale(0.55); }
}
@keyframes flyOutRight {
  from { opacity: 1; transform: translate(0, 0) rotate(var(--enter-rot, 0deg)) scale(1); }
  to   { opacity: 0; transform: translate(90px, -60px) rotate(28deg) scale(0.55); }
}
@keyframes flyInLeft {
  from { opacity: 0; transform: translate(-90px, 50px) rotate(-24deg) scale(0.55); }
  to   { opacity: 1; transform: translate(0, 0) rotate(var(--enter-rot, 0deg)) scale(1); }
}
@keyframes flyInRight {
  from { opacity: 0; transform: translate(90px, 50px) rotate(24deg) scale(0.55); }
  to   { opacity: 1; transform: translate(0, 0) rotate(var(--enter-rot, 0deg)) scale(1); }
}
.floating-card__img img {
  transition: opacity 0.15s ease;
}

.wordmark {
  margin: 8px 0 24px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.55s forwards;
}
.wordmark__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-shop-violet);
  margin-bottom: 26px;
  animation: dotPulse 2.4s ease-in-out 1.2s infinite;
}
.wordmark__dot--sm { width: 8px; height: 8px; margin-bottom: 0; animation: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(84,51,235,0.35); }
  50%      { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(84,51,235,0); }
}

/* Search */
.search {
  position: relative;
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.68s forwards;
}
.search__input {
  width: 100%;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-pure-white);
  border: 1px solid rgba(5,41,77,0.1);
  padding: 4px 60px 4px 20px;
  font-family: var(--font-gt-standard);
  font-size: 16px;
  letter-spacing: -0.031em;
  color: var(--color-ink-black);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search__input::placeholder { color: var(--color-muted-gray); }
.search__input:focus { border-color: var(--color-shop-violet); box-shadow: 0 0 0 4px rgba(84,51,235,0.12); }
.search__submit {
  position: absolute;
  right: 4px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-shop-violet);
  box-shadow: var(--shadow-lg-2);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s ease;
}
.search__submit svg { transition: transform 0.2s ease; }
.search__submit:hover { transform: scale(1.08); box-shadow: rgba(69,36,219,0.45) 0px 6px 28px 0px; }
.search__submit:hover svg { transform: translateX(2px); }
.search__submit:active { transform: scale(0.92); }

/* Category pills */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  max-width: 800px;
}
.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-pure-white);
  border: 1px solid var(--color-faint-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  padding: 6px 16px 6px 6px;
  font-size: 14px;
  letter-spacing: -0.014em;
  color: var(--color-ink-black);
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
  animation-delay: 0.78s;
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.18s ease, border-color 0.18s ease;
}
.pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pill:active { transform: translateY(0) scale(0.96); }
.pill:nth-child(1) { animation-delay: 0.78s; }
.pill:nth-child(2) { animation-delay: 0.84s; }
.pill:nth-child(3) { animation-delay: 0.90s; }
.pill:nth-child(4) { animation-delay: 0.96s; }
.pill:nth-child(5) { animation-delay: 1.02s; }
.pill:nth-child(6) { animation-delay: 1.08s; }
.pill__icon {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: inline-block;
  transition: transform 0.18s ease;
}
.pill:hover .pill__icon { transform: scale(1.15); }
.pill.is-active {
  border-color: var(--color-ink-black);
}

/* ---------------- Sections ---------------- */
.section {
  padding-bottom: var(--section-gap);
}
.section__header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  cursor: default;
}
.section__header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.05em;
}
.chevron { width: 16px; height: 16px; color: var(--color-ink-black); transition: transform 0.2s ease; }
.chevron-link { display: inline-flex; align-items: center; }
.section__header:hover .chevron { transform: translateX(4px); }
.section__header h2 { display: inline-flex; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-muted-gray);
  letter-spacing: -0.017em;
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--color-muted-gray); transition: color 0.15s ease; }
.breadcrumb a:hover { color: var(--color-ink-black); }
.breadcrumb span { opacity: 0.5; }
.breadcrumb--light, .breadcrumb--light a { color: rgba(255,255,255,0.8); }
.breadcrumb--light a:hover { color: #fff; }

/* Category hero banner (category pages) */
.category-hero {
  position: relative;
  border-radius: var(--radius-cards);
  overflow: hidden;
  min-height: 400px;
  margin: 8px 0 var(--section-gap);
  display: flex;
  align-items: flex-end;
}
.category-hero__bg {
  position: absolute;
  inset: -40px 0 -40px 0;
  width: 100%;
  height: calc(100% + 80px);
  object-fit: cover;
  will-change: transform;
}
.category-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.category-hero__content {
  position: relative;
  z-index: 1;
  padding: 40px;
  color: #fff;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.15s forwards;
}
.category-hero__content h1 {
  margin: 0 0 8px;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.05em;
}
.category-hero__tagline {
  margin: 0;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  max-width: 420px;
}
.category-hero__count {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
  letter-spacing: -0.017em;
}

/* Category teaser strip (homepage → category cinematic hand-off) */
.category-teaser {
  position: relative;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  height: 128px;
  margin-bottom: 20px;
  cursor: pointer;
}
.category-teaser__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.category-teaser:hover .category-teaser__bg { transform: scale(1.06); }
.category-teaser::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 65%);
}
.category-teaser__label {
  position: absolute;
  left: 24px; top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.031em;
}
.category-teaser__label svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.category-teaser:hover .category-teaser__label svg { transform: translateX(4px); }

/* Product card additions: name, price, wishlist heart */
.product-card__name {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--color-muted-gray);
  letter-spacing: -0.017em;
}
.product-card__price {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink-black);
}
.wishlist-heart {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1);
}
.wishlist-heart svg { width: 16px; height: 16px; color: var(--color-ink-black); transition: fill 0.15s ease, stroke 0.15s ease; }
.wishlist-heart:hover { transform: scale(1.1); }
.wishlist-heart:active { transform: scale(0.9); }
.wishlist-heart.is-liked svg { fill: var(--color-shop-violet); stroke: var(--color-shop-violet); animation: heartPop 0.4s cubic-bezier(.34,1.56,.64,1); }
.product-card__img { position: relative; }

/* Empty states (wishlist / orders / search) */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
  color: var(--color-muted-gray);
}
.empty-state__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-canvas-mist);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--color-cool-stone);
}
.empty-state h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-ink-black);
  letter-spacing: -0.05em;
}
.empty-state p { margin: 0 0 20px; font-size: 14px; max-width: 320px; }
.cta-btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  background: var(--color-shop-violet);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  box-shadow: var(--shadow-lg-2);
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.18s ease;
}
.cta-btn:hover { transform: translateY(-2px); }
.cta-btn:active { transform: translateY(0) scale(0.97); }
.cta-btn--outline {
  background: transparent;
  color: var(--color-ink-black);
  border: 1px solid var(--color-faint-border);
  box-shadow: var(--shadow-sm);
}

/* Smaller editorial hero used on content pages (About, Careers, Press…) */
.category-hero--content { min-height: 260px; }
@media (max-width: 640px) {
  .category-hero--content { min-height: 200px; }
}

/* Long-form prose (Privacy / Terms) */
.prose { max-width: 720px; }
.prose h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; margin: 32px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 14px; line-height: 1.65; color: var(--color-ash-veil); margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { font-size: 14px; line-height: 1.65; color: var(--color-ash-veil); margin-bottom: 6px; }
.prose strong { color: var(--color-ink-black); }
.prose .updated-at { font-size: 12px; color: var(--color-muted-gray); margin-bottom: 32px; }

/* Info / role / press cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}
.info-card {
  background: var(--color-pure-white);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-sm-2);
  padding: 24px;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.info-card__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--color-canvas-mist);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-shop-violet);
  margin-bottom: 16px;
}
.info-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.info-card p { margin: 0; font-size: 13px; color: var(--color-muted-gray); line-height: 1.55; }

.role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: var(--color-pure-white);
  border-radius: 20px;
  box-shadow: var(--shadow-sm-2);
  margin-bottom: 12px;
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s ease;
}
.role-row:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.role-row h3 { margin: 0 0 3px; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.role-row p { margin: 0; font-size: 12px; color: var(--color-muted-gray); }
.role-row__tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-shop-violet);
  background: rgba(84,51,235,0.1);
  padding: 5px 12px;
  border-radius: 999px;
}

/* Forms (Contact, Track order, Sell application) */
.form-card {
  background: var(--color-pure-white);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-sm-2);
  padding: 32px;
  max-width: 560px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-muted-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--color-faint-border);
  border-radius: 16px;
  padding: 13px 16px;
  font-family: var(--font-gt-standard);
  font-size: 14px;
  letter-spacing: -0.017em;
  color: var(--color-ink-black);
  background: var(--color-pure-white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-shop-violet);
  box-shadow: 0 0 0 4px rgba(84,51,235,0.12);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 12px; color: var(--color-muted-gray); margin: -6px 0 18px; }
.form-result {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--color-canvas-mist);
  font-size: 13px;
  color: var(--color-ink-black);
  display: none;
}
.form-result.is-visible {
  display: block;
  animation: fadeUp 0.4s ease both;
}

/* Cookie preference toggles */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-faint-border);
}
.toggle-row:last-of-type { border-bottom: none; }
.toggle-row h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; letter-spacing: -0.02em; }
.toggle-row p { margin: 0; font-size: 12px; color: var(--color-muted-gray); max-width: 420px; }
.toggle-switch {
  position: relative;
  width: 44px; height: 26px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--color-cool-stone);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1);
}
.toggle-switch.is-on { background: var(--color-shop-violet); }
.toggle-switch.is-on::after { transform: translateX(18px); }
.toggle-switch[disabled] { cursor: not-allowed; opacity: 0.6; }

@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-card { padding: 22px; }
}

/* Page-level search hero */
.page-search-hero {
  padding: 32px 0 40px;
}
.page-search-hero .search { max-width: 640px; margin: 0 0 8px; opacity: 1; animation: none; }
.page-search-hero h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.05em;
  margin: 0 0 16px;
}
.search-meta {
  font-size: 14px;
  color: var(--color-muted-gray);
  margin: 20px 0 24px;
}

/* Simple account / orders content cards */
.simple-card {
  background: var(--color-pure-white);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-sm-2);
  padding: 24px;
  margin-bottom: 16px;
}
.simple-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.simple-card p { margin: 0; font-size: 13px; color: var(--color-muted-gray); }
.account-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.account-profile img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.account-profile h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -0.05em; }
.account-profile p { margin: 0; font-size: 13px; color: var(--color-muted-gray); }
.account-menu {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-cards);
  overflow: hidden;
  box-shadow: var(--shadow-sm-2);
  background: var(--color-pure-white);
}
.account-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: transparent;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.017em;
  color: var(--color-ink-black);
  border-bottom: 1px solid var(--color-faint-border);
  transition: background 0.15s ease;
}
.account-menu button:last-child { border-bottom: none; }
.account-menu button:hover { background: var(--color-canvas-mist); }
.account-menu svg { width: 16px; height: 16px; color: var(--color-muted-gray); transition: transform 0.2s ease; }
.account-menu button:hover svg { transform: translateX(3px); }

@media (max-width: 640px) {
  .category-hero { min-height: 280px; }
  .category-hero__content { padding: 24px; }
  .category-hero__content h1 { font-size: 30px; }
  .category-teaser { height: 96px; }
}

/* Rail (spotlight brands) */
.rail-wrap { position: relative; }
.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

.spotlight-card {
  flex: 0 0 200px;
  background: var(--color-pure-white);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-sm-2);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease;
}
.spotlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.spotlight-card:active { transform: translateY(-2px) scale(0.98); }
.spotlight-card__img {
  aspect-ratio: 1/1;
  margin: 8px 8px 0;
  border-radius: var(--radius-inner);
  overflow: hidden;
}
.spotlight-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.spotlight-card:hover .spotlight-card__img img { transform: scale(1.08); }
.spotlight-card__brand {
  margin: 10px 12px 3px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.017em;
}
.spotlight-card__row { margin: 0 12px 12px; display: flex; align-items: center; }

.rail-arrow {
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-pure-white);
  border: none;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1);
}
.rail-arrow:hover { transform: translateY(-50%) scale(1.12); }
.rail-arrow:active { transform: translateY(-50%) scale(0.9); }
.rail-arrow svg { transition: transform 0.2s ease; }
.rail-arrow:hover svg { transform: translateX(2px); }

/* Hero grid (image + 2x2 tiles) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}
.hero-grid--reverse { grid-template-columns: 1fr 1.3fr; }
.hero-grid--reverse .tile-grid { order: 1; }
.hero-grid--reverse .hero-img-tile { order: 2; }

.hero-img-tile {
  position: relative;
  border-radius: var(--radius-cards);
  overflow: hidden;
  min-height: 420px;
  cursor: pointer;
}
.hero-img-tile img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.hero-img-tile:hover img { transform: scale(1.06); }
.hero-img-tile__overlay {
  position: absolute;
  top: 24px; left: 24px;
  color: #fff;
  z-index: 1;
}
.hero-img-tile__brand {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.05em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-img-tile__row {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.tile-grid--2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.product-tile {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: 200px;
  cursor: pointer;
}
.product-tile img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
}
.product-tile:hover img { transform: scale(1.08); }
.product-tile__label {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.017em;
  z-index: 1;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), background 0.25s ease;
}
.product-tile:hover .product-tile__label { transform: translateY(-2px); background: rgba(255,255,255,0.96); }

/* Standard 4-col grid */
.grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.product-card {
  cursor: pointer;
}
.product-card__img {
  aspect-ratio: 1/1;
  border-radius: var(--radius-cards);
  overflow: hidden;
  background: var(--color-pure-white);
  box-shadow: var(--shadow-sm-2);
  margin-bottom: 12px;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease;
}
.product-card:hover .product-card__img { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card:active .product-card__img { transform: translateY(-2px) scale(0.98); }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card__img img { transform: scale(1.08); }
.product-card__brand {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.017em;
}
.product-card__row { display: flex; align-items: center; }

/* ---------------- Footer ---------------- */
.footer {
  background: var(--color-ink-black);
  color: #fff;
  border-radius: 28px 28px 0 0;
  padding: 40px 48px 24px;
  margin-top: 16px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__top--slim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
}
.footer__wordmark {
  display: flex; align-items: center; gap: 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.05em;
  margin: 0 0 8px;
}
.footer__tag {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  letter-spacing: -0.017em;
  max-width: 260px;
  margin: 0;
}
.footer__quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer__quicklinks a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: -0.017em;
  transition: color 0.2s ease;
}
.footer__quicklinks a:hover { color: #fff; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 {
  margin: 0 0 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.footer__col a {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.017em;
  width: fit-content;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer__col a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--color-violet-wash);
  transition: width 0.25s ease;
}
.footer__col a:hover { color: var(--color-violet-wash); transform: translateX(2px); }
.footer__col a:hover::after { width: 100%; }
.footer__bottom {
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.footer__bottom--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__legal-links { display: flex; gap: 18px; }
.footer__legal-links a { color: rgba(255,255,255,0.5); font-size: 12px; transition: color 0.2s ease; }
.footer__legal-links a:hover { color: #fff; }

/* ---------------- Bag drawer ---------------- */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

.bag-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 380px;
  max-width: 92vw;
  background: var(--color-pure-white);
  border-radius: 28px 0 0 28px;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.16,1,.3,1);
  z-index: 41;
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.bag-drawer.is-open { transform: translateX(0); }
.bag-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.bag-drawer__header h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.05em; }
.bag-drawer__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-canvas-mist);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), background 0.2s ease;
}
.bag-drawer__close:hover { transform: rotate(90deg); background: var(--color-faint-border); }
.bag-drawer__items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bag-item {
  display: flex;
  gap: 12px;
  align-items: center;
  animation: fadeUp 0.35s ease;
  transition: opacity 0.2s ease;
}
.bag-item__img {
  width: 64px; height: 64px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-canvas-mist);
}
.bag-item__img img { width: 100%; height: 100%; object-fit: cover; }
.bag-item__info { flex: 1; min-width: 0; }
.bag-item__name { margin: 0 0 2px; font-size: 14px; font-weight: 600; letter-spacing: -0.017em; }
.bag-item__price { margin: 0; font-size: 12px; color: var(--color-muted-gray); }
.bag-item__remove {
  border: none; background: transparent;
  color: var(--color-muted-gray);
  font-size: 12px;
  text-decoration: underline;
  padding: 4px;
  transition: color 0.2s ease, transform 0.15s ease;
}
.bag-item__remove:hover { color: var(--color-ink-black); }
.bag-item__remove:active { transform: scale(0.92); }
.bag-drawer__empty {
  color: var(--color-muted-gray);
  font-size: 14px;
  text-align: center;
  margin-top: 40px;
}
.bag-drawer__footer {
  border-top: 1px solid var(--color-faint-border);
  padding-top: 16px;
  margin-top: 16px;
}
.bag-drawer__total {
  display: flex; justify-content: space-between;
  font-size: 16px; font-weight: 600;
  margin-bottom: 16px;
}
.checkout-btn {
  width: 100%;
  height: 52px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--color-shop-violet);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.031em;
  box-shadow: var(--shadow-lg-2);
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.18s ease;
}
.checkout-btn:hover { transform: translateY(-2px); box-shadow: rgba(69,36,219,0.45) 0px 8px 28px 0px; }
.checkout-btn:active { transform: translateY(0) scale(0.97); }

/* ---------------- Cookie banner ---------------- */
.cookie-banner {
  position: fixed;
  left: 24px; bottom: 24px;
  max-width: 420px;
  background: var(--color-pure-white);
  border: 1px solid var(--color-faint-border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  z-index: 30;
  transform: translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cookie-banner.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.cookie-banner__text {
  margin: 0 0 16px;
  font-size: 14px;
  letter-spacing: -0.014em;
  color: var(--color-ink-black);
}
.cookie-link { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 8px; }
.cookie-btn {
  border-radius: var(--radius-full);
  border: 1px solid var(--color-faint-border);
  background: var(--color-pure-white);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  color: var(--color-ink-black);
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.18s ease;
}
.cookie-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cookie-btn:active { transform: translateY(0) scale(0.95); }
.cookie-btn--dark {
  background: var(--color-ink-black);
  color: #fff;
  border-color: var(--color-ink-black);
}
.cookie-banner {
  animation: cookieIn 0.5s cubic-bezier(.2,.8,.2,1) 1.4s backwards;
}
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px) scale(0.94);
  background: var(--color-ink-black);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  letter-spacing: -0.017em;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.2,.8,.2,1), transform 0.3s cubic-bezier(.34,1.56,.64,1);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.toast__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-violet-wash);
  flex-shrink: 0;
  animation: dotPulse 1.2s ease-in-out infinite;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .hero-grid--reverse { grid-template-columns: 1fr; }
  .hero-grid--reverse .tile-grid, .hero-grid--reverse .hero-img-tile { order: initial; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .sidebar { display: none; }
  .main { padding: 24px 16px 0; }
  .app { max-width: 100%; }
  .hero__constellation { height: 200px; }
  .floating-card { width: 96px; }
  .fc-3, .fc-4 { width: 88px; }
  .wordmark { font-size: 32px; }
  .search__input { height: 48px; }
  .search__submit { width: 40px; height: 40px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile-grid--2x2 { gap: 8px; }
  .footer__top { grid-template-columns: 1fr; }
  .cookie-banner { left: 12px; right: 12px; max-width: none; }
  .bag-drawer { width: 100vw; border-radius: 24px 24px 0 0; top: auto; bottom: 0; height: 80vh; transform: translateY(100%); }
  .bag-drawer.is-open { transform: translateY(0); }
}

/* ============================================================
   Mega navigation — floating white capsule with dropdown panels
   ============================================================ */
.mega-nav-wrap {
  position: sticky;
  top: 12px;
  z-index: 40;
  padding: 12px 24px 0;
}
.mega-nav {
  background: var(--color-pure-white);
  color: var(--color-ink-black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 8px 0 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg), 0 1px 0 rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  max-width: var(--page-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 20;
}
.mega-nav__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--color-ink-black);
  flex-shrink: 0;
}
.mega-nav__brand .wordmark__dot--sm { margin-bottom: 0; }

.mega-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.mega-nav__item { position: relative; }
.mega-nav__trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  color: var(--color-muted-gray);
  font-family: var(--font-gt-standard);
  font-size: 14px;
  letter-spacing: -0.017em;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.mega-nav__trigger:hover,
.mega-nav__item.is-open .mega-nav__trigger {
  color: var(--color-ink-black);
  background: var(--color-canvas-mist);
}
.mega-nav__chevron {
  width: 13px; height: 13px;
  transition: transform 0.25s ease;
}
.mega-nav__item.is-open .mega-nav__chevron,
.mega-nav__item:hover .mega-nav__chevron {
  transform: rotate(180deg);
}

.mega-panel-wrap {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(.2,.8,.2,1), visibility 0.2s;
  z-index: 30;
}
.mega-nav__item:hover .mega-panel-wrap,
.mega-nav__item.is-open .mega-panel-wrap {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.mega-nav__item:last-child .mega-panel-wrap {
  left: auto;
  right: 0;
  transform-origin: top right;
}

.mega-panel {
  background: var(--color-pure-white);
  border: 1px solid var(--color-faint-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  width: max-content;
}
.mega-panel__cols {
  display: flex;
  gap: 36px;
}
.mega-col h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted-gray);
  text-transform: capitalize;
  letter-spacing: 0.01em;
}
.mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 200px;
}
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}
.mega-item__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1px solid var(--color-faint-border);
  background: var(--color-canvas-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-black);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(.34,1.56,.64,1), border-color 0.2s ease;
}
.mega-item__icon svg { width: 17px; height: 17px; }
.mega-item:hover .mega-item__icon {
  background: var(--color-shop-violet);
  border-color: var(--color-shop-violet);
  color: #fff;
  transform: scale(1.06);
}
.mega-item__label {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink-black);
  letter-spacing: -0.02em;
}
.mega-item__desc {
  margin: 0;
  font-size: 12px;
  color: var(--color-muted-gray);
  transition: color 0.2s ease;
  line-height: 1.4;
}
.mega-item:hover .mega-item__desc { color: var(--color-ash-veil); }

/* Mobile hamburger + accordion */
.mega-nav__hamburger {
  display: none;
  width: 36px; height: 36px;
  border: none;
  background: var(--color-canvas-mist);
  border-radius: 10px;
  color: var(--color-ink-black);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mega-nav__hamburger svg { transition: transform 0.2s ease; }

.mega-mobile {
  display: none;
  max-width: var(--page-max-width);
  margin: 0 auto;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.25s ease;
}
.mega-mobile.is-open { max-height: 1400px; opacity: 1; }
.mega-mobile__inner {
  padding: 10px 20px 20px;
  margin-top: 8px;
  background: var(--color-pure-white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-faint-border);
}
.mega-mobile details {
  border-bottom: 1px solid var(--color-faint-border);
}
.mega-mobile details:last-child { border-bottom: none; }
.mega-mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink-black);
  cursor: pointer;
  list-style: none;
}
.mega-mobile summary::-webkit-details-marker { display: none; }
.mega-mobile summary svg { width: 16px; height: 16px; color: var(--color-muted-gray); transition: transform 0.2s ease; }
.mega-mobile details[open] summary svg { transform: rotate(180deg); }
.mega-mobile__links { display: flex; flex-direction: column; gap: 2px; padding: 0 4px 16px; }
.mega-mobile__links a {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--color-ash-veil);
  transition: background 0.15s ease, color 0.15s ease;
}
.mega-mobile__links a:hover { background: var(--color-canvas-mist); color: var(--color-ink-black); }

@media (max-width: 860px) {
  .mega-nav__list { display: none; }
  .mega-nav__hamburger { display: flex; }
  .mega-mobile { display: block; }
}
@media (max-width: 640px) {
  .mega-nav-wrap { padding: 10px 12px 0; top: 8px; }
  .mega-nav { padding: 0 6px 0 16px; height: 52px; }
}

/* ============================================================
   Product detail page
   ============================================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: var(--section-gap);
}
.product-detail__gallery {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-cards);
  overflow: hidden;
  background: var(--color-pure-white);
  box-shadow: var(--shadow-sm-2);
}
.product-detail__gallery img {
  width: 100%; height: 100%; object-fit: cover;
  view-transition-name: var(--pdp-vt, none);
}
.product-detail__info { display: flex; flex-direction: column; padding-top: 8px; }
.product-detail__brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-shop-violet);
  letter-spacing: -0.017em;
  margin: 0 0 6px;
}
.product-detail__name {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.05em;
  margin: 0 0 14px;
}
.product-detail__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--color-muted-gray);
}
.product-detail__rating .stars { font-size: 13px; }
.product-detail__price {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.product-detail__desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-ash-veil);
  margin: 0 0 28px;
  max-width: 440px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-faint-border);
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 24px;
}
.qty-stepper button {
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--color-ink-black);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
  border-radius: 999px;
}
.qty-stepper button:hover { background: var(--color-canvas-mist); }
.qty-stepper span {
  width: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.product-detail__actions {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
.add-to-bag-btn {
  flex: 1;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: var(--color-shop-violet);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-lg-2);
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.18s ease;
}
.add-to-bag-btn:hover { transform: translateY(-2px); box-shadow: rgba(69,36,219,0.45) 0px 8px 28px 0px; }
.add-to-bag-btn:active { transform: translateY(0) scale(0.97); }
.wishlist-btn-lg {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--color-faint-border);
  background: var(--color-pure-white);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-ink-black);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), border-color 0.2s ease;
}
.wishlist-btn-lg svg { width: 20px; height: 20px; transition: fill 0.15s ease, stroke 0.15s ease; }
.wishlist-btn-lg:hover { transform: scale(1.06); border-color: var(--color-shop-violet); }
.wishlist-btn-lg.is-liked svg { fill: var(--color-shop-violet); stroke: var(--color-shop-violet); animation: heartPop 0.4s cubic-bezier(.34,1.56,.64,1); }

.product-detail__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--color-muted-gray);
  border-top: 1px solid var(--color-faint-border);
  padding-top: 20px;
}
.product-detail__meta a { color: var(--color-shop-violet); text-decoration: underline; }
.product-detail__meta-row { display: flex; align-items: center; gap: 8px; }
.product-detail__meta-row svg { width: 16px; height: 16px; flex-shrink: 0; }

@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   Order confirmation page
   ============================================================ */
.order-success {
  text-align: center;
  max-width: 560px;
  margin: 24px auto 0;
  padding-bottom: 40px;
}
.order-success__icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--color-shop-violet);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-lg-2);
  animation: successPop 0.6s cubic-bezier(.34,1.56,.64,1) both;
}
.order-success__icon svg { width: 36px; height: 36px; }
.order-success__icon path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: successDraw 0.5s ease 0.35s forwards;
}
@keyframes successPop {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes successDraw {
  to { stroke-dashoffset: 0; }
}
.order-success h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.05em;
  margin: 0 0 10px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.5s forwards;
}
.order-success__sub {
  font-size: 14px;
  color: var(--color-ash-veil);
  line-height: 1.6;
  margin: 0 0 8px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.6s forwards;
}
.order-success__number {
  font-size: 13px;
  color: var(--color-muted-gray);
  margin: 0 0 32px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.68s forwards;
}
.order-success__number strong { color: var(--color-ink-black); }

.order-summary {
  text-align: left;
  background: var(--color-pure-white);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-sm-2);
  padding: 24px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.76s forwards;
}
.order-summary__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-faint-border);
}
.order-summary__item:last-of-type { border-bottom: none; }
.order-summary__item img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.order-summary__item-name { font-size: 14px; font-weight: 600; margin: 0 0 2px; letter-spacing: -0.017em; }
.order-summary__item-price { font-size: 12px; color: var(--color-muted-gray); margin: 0; }
.order-summary__total {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
}

.order-success__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.84s forwards;
}
@media (max-width: 640px) {
  .order-success__actions { flex-direction: column; }
}
