/* =========================================================
   CLANDY — Design System
   Google Pixel aesthetic × Apple motion language
   ========================================================= */

/* ── Google Fonts ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* ── Variables ────────────────────────────────────────── */
:root {
  /* Palette */
  --bg:           #090909;
  --surface:      #111111;
  --surface-2:    #1a1a1a;
  --surface-3:    #242424;
  --border:       rgba(255,255,255,.08);
  --border-hover: rgba(255,255,255,.18);

  --text:         #f4f1ec;
  --text-muted:   #888;
  --text-faint:   #444;

  --gold:         #c9a96e;
  --gold-light:   #e8d5a3;
  --gold-dark:    #9e7f48;
  --gold-glow:    rgba(201,169,110,.15);

  --red:   #ff453a;
  --green: #30d158;
  --blue:  #0a84ff;

  /* Typography */
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
  --shadow-md:  0 4px 20px rgba(0,0,0,.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.6);
  --shadow-gold: 0 0 30px rgba(201,169,110,.2);

  /* Motion — Apple spring feel */
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --ease-in:     cubic-bezier(.5,0,1,.5);
  --dur-fast:    160ms;
  --dur-base:    260ms;
  --dur-slow:    420ms;

  /* Layout */
  --max-w: 1320px;
  --nav-h: 72px;
  --gap:   clamp(16px, 3vw, 32px);
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── Layout ───────────────────────────────────────────── */
.container { width: min(var(--max-w), 100% - 2*var(--gap)); margin-inline: auto; }
.section    { padding-block: clamp(60px, 8vw, 120px); }
.section-sm { padding-block: clamp(40px, 5vw, 80px); }

/* ── Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track  { background: var(--bg); }
::-webkit-scrollbar-thumb  { background: var(--surface-3); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ── Selection ────────────────────────────────────────── */
::selection { background: var(--gold); color: #000; }

/* ══════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════ */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding-inline: var(--gap);
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              backdrop-filter var(--dur-base);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(9,9,9,.85);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-color: var(--border);
}
.nav-inner {
  width: 100%; max-width: var(--max-w); margin-inline: auto;
  display: flex; align-items: center; gap: 40px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem; font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
  flex: 1;
}
.nav-link {
  font-size: .875rem; font-weight: 500; letter-spacing: .04em;
  color: var(--text-muted);
  transition: color var(--dur-fast);
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--dur-base) var(--ease-spring);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }

.nav-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-full);
  background: transparent; border: none; cursor: pointer;
  color: var(--text-muted);
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-spring);
}
.nav-icon-btn:hover { background: var(--surface-2); color: var(--text); transform: scale(1.08); }
.nav-icon-btn svg { width: 20px; height: 20px; stroke-width: 1.8; }

.cart-badge {
  position: absolute; top: 4px; right: 4px;
  width: 16px; height: 16px; border-radius: var(--r-full);
  background: var(--gold); color: #000;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-fast) var(--ease-spring);
}
.cart-badge.pop { transform: scale(1.4); }

.nav-mobile-toggle { display: none; }

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-mobile-menu {
    position: fixed; inset: var(--nav-h) 0 0;
    background: rgba(9,9,9,.97);
    backdrop-filter: blur(30px);
    display: flex; flex-direction: column;
    padding: 32px var(--gap);
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-spring);
    z-index: 999;
  }
  .nav-mobile-menu.open { transform: translateX(0); }
  .nav-mobile-menu .nav-link { font-size: 1.25rem; color: var(--text); }
}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 80% at 50% -10%, rgba(201,169,110,.12) 0%, transparent 60%),
              radial-gradient(ellipse 60% 60% at 80% 80%, rgba(201,169,110,.06) 0%, transparent 50%),
              var(--bg);
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 860px;
  padding-inline: var(--gap);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold);
  background: rgba(201,169,110,.1);
  border: 1px solid rgba(201,169,110,.2);
  border-radius: var(--r-full);
  padding: 6px 16px;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 600; line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted); max-width: 520px; margin-inline: auto;
  margin-bottom: 44px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Hero scroll indicator */
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-faint);
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll svg { width: 18px; height: 18px; stroke: var(--text-faint); }
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px;
  border-radius: var(--r-full);
  font-size: .875rem; font-weight: 600; letter-spacing: .04em;
  border: none; cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur-fast),
    background var(--dur-fast),
    opacity var(--dur-fast);
  user-select: none; position: relative; overflow: hidden;
}
.btn:active { transform: scale(.96) !important; }
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--dur-fast);
}
.btn:hover::before { background: rgba(255,255,255,.06); }

.btn-primary {
  background: var(--gold);
  color: #000;
  box-shadow: 0 4px 20px rgba(201,169,110,.3);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(201,169,110,.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px) scale(1.02);
}

.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); transform: scale(1.02); }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { opacity: .85; transform: scale(1.02); }

.btn-sm { padding: 9px 20px; font-size: .8rem; }
.btn-lg { padding: 18px 44px; font-size: 1rem; }
.btn-full { width: 100%; }

.btn:disabled, .btn[disabled] {
  opacity: .4; cursor: not-allowed;
  transform: none !important; box-shadow: none !important;
}

/* Loading spinner in button */
.btn.loading { pointer-events: none; }
.btn.loading::after {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  margin-left: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition:
    border-color var(--dur-base),
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base);
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

/* Product Card */
.product-card { cursor: pointer; }
.product-card-img {
  aspect-ratio: 4/5; overflow: hidden;
  background: var(--surface-2);
  position: relative;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  padding: 4px 10px; border-radius: var(--r-full);
}
.product-card-badge.new { background: var(--gold); color: #000; }

.product-card-actions {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  opacity: 0; transition: opacity var(--dur-base);
  background: rgba(9,9,9,.5);
  backdrop-filter: blur(4px);
}
.product-card:hover .product-card-actions { opacity: 1; }

.product-card-body { padding: 20px; }
.product-card-category { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.product-card-name { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.product-card-desc { font-size: .8rem; color: var(--text-muted); margin-bottom: 14px; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-card-price { font-size: 1rem; font-weight: 600; color: var(--gold); }
.product-card-price s { color: var(--text-faint); font-weight: 400; font-size: .85rem; margin-left: 6px; }
.product-card-rating { display: flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--text-muted); }
.stars { color: var(--gold); letter-spacing: -1px; }

/* ══════════════════════════════════════════════════════
   GRID SYSTEMS
══════════════════════════════════════════════════════ */
.grid-2  { display: grid; grid-template-columns: repeat(2,  1fr); gap: var(--gap); }
.grid-3  { display: grid; grid-template-columns: repeat(3,  1fr); gap: var(--gap); }
.grid-4  { display: grid; grid-template-columns: repeat(4,  1fr); gap: var(--gap); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); }

@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 900px)  { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .8rem; font-weight: 600; letter-spacing: .05em;
  color: var(--text-muted); text-transform: uppercase;
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 16px;
  color: var(--text);
  font-size: .9rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
  outline: none;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
  background: var(--surface-3);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-faint); }
.form-input.error, .form-select.error { border-color: var(--red); }
.form-hint  { font-size: .75rem; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: .75rem; color: var(--red); margin-top: 5px; }
.form-textarea { min-height: 120px; resize: vertical; }

/* Checkbox / Toggle */
.check-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .875rem; }
.check-label input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--gold); cursor: pointer;
}

/* ══════════════════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: clamp(40px,5vw,72px); }
.section-eyebrow {
  display: inline-block;
  font-size: .7rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 600; line-height: 1.15;
}
.section-subtitle {
  font-size: clamp(.9rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 520px; margin-inline: auto;
  margin-top: 12px; line-height: 1.7;
}

/* ══════════════════════════════════════════════════════
   CATEGORY PILLS / FILTER TABS
══════════════════════════════════════════════════════ */
.filter-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: center; margin-bottom: 40px;
}
.filter-pill {
  padding: 8px 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: .8rem; font-weight: 500; cursor: pointer;
  color: var(--text-muted);
  transition: all var(--dur-fast) var(--ease-spring);
}
.filter-pill:hover { border-color: var(--gold); color: var(--gold); }
.filter-pill.active { background: var(--gold); border-color: var(--gold); color: #000; }

/* ══════════════════════════════════════════════════════
   BREADCRUMBS
══════════════════════════════════════════════════════ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--text-muted);
  margin-bottom: 32px;
}
.breadcrumb a { transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--text-faint); }

/* ══════════════════════════════════════════════════════
   PRODUCT DETAIL
══════════════════════════════════════════════════════ */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 860px) { .product-detail-layout { grid-template-columns: 1fr; } }

.product-gallery-main {
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.product-gallery-thumbs {
  display: flex; gap: 12px; margin-top: 16px; overflow-x: auto;
  scrollbar-width: none;
}
.product-gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  flex-shrink: 0; width: 80px; height: 80px;
  border-radius: var(--r-md);
  overflow: hidden; border: 2px solid var(--border); cursor: pointer;
  transition: border-color var(--dur-fast);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info .cat-link { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.product-info h1 {
  font-family: var(--font-serif); font-size: clamp(1.8rem,3.5vw,2.8rem);
  font-weight: 600; margin: 12px 0 8px; line-height: 1.2;
}
.product-price-row { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; }
.product-price { font-size: 2rem; font-weight: 700; color: var(--gold); }
.product-price-old { font-size: 1.1rem; color: var(--text-faint); text-decoration: line-through; }
.product-rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.product-description { color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; }

.product-meta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 20px; margin-bottom: 28px;
}
.product-meta-item { }
.product-meta-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-bottom: 4px; }
.product-meta-value { font-size: .875rem; font-weight: 500; }

.qty-control {
  display: flex; align-items: center; gap: 0;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-full);
  overflow: hidden; width: fit-content;
}
.qty-btn {
  width: 44px; height: 44px; border: none; cursor: pointer;
  background: transparent; color: var(--text); font-size: 1.2rem;
  transition: background var(--dur-fast), transform var(--dur-fast) var(--ease-spring);
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--surface-3); transform: scale(1.15); }
.qty-num {
  min-width: 40px; text-align: center;
  font-weight: 600; font-size: .95rem;
}

.add-cart-row { display: flex; gap: 12px; margin-top: 24px; }
.wishlist-btn {
  width: 52px; height: 52px; border-radius: var(--r-full);
  border: 1px solid var(--border); background: transparent; cursor: pointer;
  color: var(--text-muted); display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast) var(--ease-spring);
}
.wishlist-btn:hover, .wishlist-btn.active { border-color: var(--red); color: var(--red); transform: scale(1.1); }

/* ══════════════════════════════════════════════════════
   CART SIDEBAR DRAWER
══════════════════════════════════════════════════════ */
.cart-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1101;
  width: min(420px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-spring);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-header h2 { font-family: var(--font-serif); font-size: 1.3rem; }
.cart-close-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 8px; transition: color var(--dur-fast), transform var(--dur-fast) var(--ease-spring); }
.cart-close-btn:hover { color: var(--text); transform: rotate(90deg) scale(1.1); }
.cart-close-btn svg { width: 22px; height: 22px; }

.cart-items-list { flex: 1; overflow-y: auto; padding: 20px 28px; }
.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 14px;
  align-items: start; padding-block: 20px;
  border-bottom: 1px solid var(--border);
}
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--r-md); background: var(--surface-2); }
.cart-item-name { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.cart-item-price { font-size: .85rem; color: var(--gold); }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .8rem; color: var(--text-muted); }
.cart-item-remove { background: none; border: none; cursor: pointer; color: var(--text-faint); font-size: .8rem; padding: 4px; transition: color var(--dur-fast); }
.cart-item-remove:hover { color: var(--red); }

.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty svg { width: 60px; height: 60px; margin-inline: auto; opacity: .3; margin-bottom: 16px; }
.cart-empty p { color: var(--text-muted); }

.cart-drawer-footer {
  padding: 24px 28px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.cart-subtotal-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; font-size: .9rem;
}
.cart-subtotal-row.total { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.cart-subtotal-row .amount { color: var(--gold); }
.cart-free-ship { font-size: .75rem; color: var(--green); text-align: center; margin-bottom: 16px; }

/* ══════════════════════════════════════════════════════
   CHECKOUT
══════════════════════════════════════════════════════ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px; align-items: start;
}
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }

.checkout-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 24px;
}
.checkout-section-title {
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.order-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.order-item-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.order-item-img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); }
.order-line { display: flex; justify-content: space-between; padding-block: 8px; font-size: .875rem; }
.order-line.total-line { font-weight: 700; font-size: 1rem; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 8px; }

/* Payment method tabs */
.payment-tabs { display: flex; gap: 12px; margin-bottom: 24px; }
.payment-tab {
  flex: 1; padding: 14px;
  background: var(--surface-2); border: 2px solid var(--border);
  border-radius: var(--r-md); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .85rem; font-weight: 500; color: var(--text-muted);
  transition: all var(--dur-fast) var(--ease-spring);
}
.payment-tab.active { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }
.payment-tab:hover:not(.active) { border-color: var(--border-hover); color: var(--text); }

/* Stripe card element */
#stripe-card-element {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
#stripe-card-element.StripeElement--focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
}

/* ══════════════════════════════════════════════════════
   ACCOUNT
══════════════════════════════════════════════════════ */
.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px; align-items: start;
  padding-top: calc(var(--nav-h) + 40px);
  min-height: 100vh;
}
@media (max-width: 860px) { .account-layout { grid-template-columns: 1fr; } }

.account-sidebar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px; position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.account-avatar {
  width: 72px; height: 72px; border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.8rem; font-weight: 600;
  color: #000; margin-bottom: 16px;
}
.account-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--r-md);
  font-size: .875rem; color: var(--text-muted);
  transition: all var(--dur-fast);
  margin-bottom: 4px;
}
.account-nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.account-nav-link:hover { background: var(--surface-2); color: var(--text); }
.account-nav-link.active { background: var(--gold-glow); color: var(--gold); border: 1px solid rgba(201,169,110,.2); }

/* ══════════════════════════════════════════════════════
   ORDER CARDS
══════════════════════════════════════════════════════ */
.order-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px;
  transition: border-color var(--dur-fast);
}
.order-card:hover { border-color: var(--border-hover); }
.order-card-header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.order-number { font-weight: 700; font-size: .95rem; }
.order-date   { font-size: .8rem; color: var(--text-muted); }

.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: var(--r-full);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.status-badge.pending   { background: rgba(255,214,10,.1); color: #ffd60a; }
.status-badge.confirmed { background: rgba(48,209,88,.1);  color: var(--green); }
.status-badge.shipped   { background: rgba(10,132,255,.1); color: var(--blue); }
.status-badge.delivered { background: rgba(48,209,88,.1);  color: var(--green); }
.status-badge.cancelled { background: rgba(255,69,58,.1);  color: var(--red); }
.status-badge.paid      { background: rgba(48,209,88,.1);  color: var(--green); }
.status-badge.unpaid    { background: rgba(255,69,58,.1);  color: var(--red); }

/* ══════════════════════════════════════════════════════
   MARQUEE / TICKER
══════════════════════════════════════════════════════ */
.marquee-strip {
  background: var(--gold); overflow: hidden; padding: 12px 0;
  position: relative;
}
.marquee-track {
  display: flex; gap: 48px;
  white-space: nowrap; animation: marquee 28s linear infinite;
}
.marquee-item {
  font-size: .75rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: #000;
  display: flex; align-items: center; gap: 12px;
}
.marquee-item::before { content: '✦'; opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════════ */
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 32px;
}
.testimonial-body { font-size: 1rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 24px; }
.testimonial-body::before { content: '"'; font-family: var(--font-serif); font-size: 3rem; line-height: 0; vertical-align: -.5em; color: var(--gold); opacity: .4; margin-right: 4px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #000; font-size: .9rem;
}
.testimonial-name { font-weight: 600; font-size: .875rem; }
.testimonial-handle { font-size: .75rem; color: var(--text-faint); }

/* ══════════════════════════════════════════════════════
   NEWSLETTER SECTION
══════════════════════════════════════════════════════ */
.newsletter-section {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(201,169,110,.05) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: clamp(40px,6vw,80px);
  text-align: center;
}
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin-inline: auto; margin-top: 28px; }
.newsletter-form .form-input { border-radius: var(--r-full); }
@media (max-width: 480px) { .newsletter-form { flex-direction: column; } }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 60px 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
@media (max-width: 860px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.footer-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: var(--r-full);
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--dur-fast) var(--ease-spring);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: #000; transform: translateY(-3px) scale(1.1); }
.footer-social a svg { width: 16px; height: 16px; }

.footer-col-title { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .85rem; color: var(--text-muted); transition: color var(--dur-fast); }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: .75rem; color: var(--text-faint);
}

/* ══════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
══════════════════════════════════════════════════════ */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  font-size: .875rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn var(--dur-base) var(--ease-spring) forwards;
  max-width: 340px;
}
.toast.success { border-color: rgba(48,209,88,.3); }
.toast.error   { border-color: rgba(255,69,58,.3); }
.toast.success .toast-icon { color: var(--green); }
.toast.error   .toast-icon { color: var(--red); }
.toast-icon svg { width: 18px; height: 18px; }
.toast.removing { animation: toastOut var(--dur-base) var(--ease-in) forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(12px) scale(.9); }
}

/* ══════════════════════════════════════════════════════
   SUPPORT CHAT WIDGET
══════════════════════════════════════════════════════ */
.chat-widget {
  position: fixed; bottom: 28px; left: 28px; z-index: 1200;
}
.chat-toggle-btn {
  width: 58px; height: 58px; border-radius: var(--r-full);
  background: var(--gold); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(201,169,110,.4);
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast);
}
.chat-toggle-btn:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(201,169,110,.5); }
.chat-toggle-btn svg { width: 26px; height: 26px; color: #000; }
.chat-unread-badge {
  position: absolute; top: 0; right: 0;
  width: 18px; height: 18px; border-radius: var(--r-full);
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.chat-unread-badge.show { display: flex; }

.chat-window {
  position: absolute; bottom: 70px; left: 0;
  width: 340px; max-height: 480px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform-origin: bottom left;
  transform: scale(0) translateY(10px);
  opacity: 0;
  transition: transform var(--dur-base) var(--ease-spring), opacity var(--dur-fast);
  pointer-events: none;
}
.chat-window.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

.chat-window-header {
  background: var(--gold); padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.chat-window-header-icon { width: 36px; height: 36px; border-radius: var(--r-full); background: rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; }
.chat-window-header-icon svg { width: 18px; height: 18px; color: #000; }
.chat-window-title { font-weight: 700; font-size: .9rem; color: #000; }
.chat-window-subtitle { font-size: .72rem; color: rgba(0,0,0,.6); }

.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; gap: 8px; align-items: flex-end; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-bubble {
  max-width: 75%; padding: 10px 14px; border-radius: 18px;
  font-size: .82rem; line-height: 1.5;
}
.chat-msg.admin .chat-bubble  { background: var(--surface-3); border-radius: 18px 18px 18px 4px; }
.chat-msg.user .chat-bubble   { background: var(--gold); color: #000; border-radius: 18px 18px 4px 18px; }
.chat-msg.bot .chat-bubble    { background: var(--surface-2); font-style: italic; color: var(--text-muted); border-radius: 18px 18px 18px 4px; }
.chat-msg-time { font-size: .65rem; color: var(--text-faint); }

.chat-input-row { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.chat-input {
  flex: 1; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-full); padding: 10px 14px;
  color: var(--text); font-size: .82rem; outline: none;
  transition: border-color var(--dur-fast);
}
.chat-input:focus { border-color: var(--gold); }
.chat-send-btn {
  width: 36px; height: 36px; border-radius: var(--r-full);
  background: var(--gold); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform var(--dur-fast) var(--ease-spring);
}
.chat-send-btn:hover { transform: scale(1.12) rotate(-10deg); }
.chat-send-btn svg { width: 16px; height: 16px; color: #000; }

/* ══════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1300;
  background: rgba(0,0,0,.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: clamp(28px,4vw,48px);
  width: 100%; max-width: 480px;
  transform: scale(.92) translateY(20px);
  transition: transform var(--dur-base) var(--ease-spring);
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }

/* ══════════════════════════════════════════════════════
   PAGE LOADER
══════════════════════════════════════════════════════ */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 24px;
  transition: opacity .5s, visibility .5s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.loader-bar {
  width: 120px; height: 2px;
  background: var(--surface-2); border-radius: var(--r-full); overflow: hidden;
}
.loader-bar-inner {
  height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: var(--r-full);
  animation: loadBar 1.4s ease-in-out infinite;
}
@keyframes loadBar {
  0%   { width: 0%;   margin-left: 0; }
  50%  { width: 70%;  margin-left: 0; }
  100% { width: 0%;   margin-left: 100%; }
}

/* ══════════════════════════════════════════════════════
   ALERT / INFO BOXES
══════════════════════════════════════════════════════ */
.alert {
  padding: 14px 18px; border-radius: var(--r-md);
  font-size: .875rem; line-height: 1.5;
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid;
  margin-bottom: 20px;
}
.alert-success { background: rgba(48,209,88,.08); border-color: rgba(48,209,88,.25); color: var(--green); }
.alert-error   { background: rgba(255,69,58,.08);  border-color: rgba(255,69,58,.25);  color: var(--red); }
.alert-info    { background: rgba(10,132,255,.08); border-color: rgba(10,132,255,.25); color: var(--blue); }
.alert-warning { background: rgba(255,214,10,.08); border-color: rgba(255,214,10,.25); color: #ffd60a; }

/* ══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS (CSS-driven)
══════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
[data-reveal="up"]    { transform: translateY(32px); }
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(.95); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* Stagger children */
[data-stagger] > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
[data-stagger].revealed > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0ms; }
[data-stagger].revealed > *:nth-child(2) { opacity:1; transform:none; transition-delay: 80ms; }
[data-stagger].revealed > *:nth-child(3) { opacity:1; transform:none; transition-delay:160ms; }
[data-stagger].revealed > *:nth-child(4) { opacity:1; transform:none; transition-delay:240ms; }
[data-stagger].revealed > *:nth-child(5) { opacity:1; transform:none; transition-delay:320ms; }
[data-stagger].revealed > *:nth-child(6) { opacity:1; transform:none; transition-delay:400ms; }

/* ══════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════ */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-serif   { font-family: var(--font-serif); }
.font-bold    { font-weight: 700; }
.mt-auto      { margin-top: auto; }
.divider      { height: 1px; background: var(--border); margin-block: 24px; }
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm       { gap: 8px; }
.gap-md       { gap: 16px; }
.gap-lg       { gap: 24px; }
.w-full       { width: 100%; }

/* Shimmer loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Focus visible for accessibility */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
