/* ================================================================
   AIYA'S GEM — Luxury Design System
   Dark royal blue canvas, gold accent, sharp geometry
   Inspired by Cartier, Bulgari, Chanel, Gucci, Fendi
================================================================ */

/* ── TOKENS ── */
:root {
  --bg:           #0a1628;
  --bg-card:      #0e1c32;
  --bg-elevated:  #12233f;
  --bg-header:    rgba(10, 22, 40, 0.95);
  --gold:         #c9a84c;
  --gold-light:   #dbb96a;
  --gold-dim:     rgba(201,168,76,0.12);
  --gold-border:  rgba(201,168,76,0.25);
  --text:         #e8e4dc;
  --text-muted:   rgba(232,228,220,0.45);
  --text-faint:   rgba(232,228,220,0.2);
  --border:       rgba(201,168,76,0.15);
  --black:        #000000;
  --white:        #ffffff;

  --font-serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:     cubic-bezier(0.25, 1, 0.5, 1);

  --header-h:     72px;
  --grid-max:     1320px;
  --gutter:       24px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }


/* ================================================================
   UTILITY
================================================================ */
.container {
  width: 100%;
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}


/* ================================================================
   TYPOGRAPHY
================================================================ */
.t-display {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.t-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1;
}

.t-body {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
}


/* ================================================================
   BUTTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 36px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-border);
}
.btn-outline:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}
.btn-outline.added {
  color: var(--gold-light);
  border-color: var(--gold);
  background: var(--gold-dim);
  cursor: default;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--text-faint);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.btn-block { width: 100%; }

.btn-hero {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
  padding: 16px 48px;
  font-size: 12px;
  letter-spacing: 0.22em;
}
.btn-hero:hover {
  background: var(--gold);
  color: var(--bg);
}


/* ================================================================
   HEADER — Smart-Sticky
================================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 900;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.5s var(--ease), background 0.3s;
  will-change: transform;
}

.site-header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.header-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  position: relative;
  transition: color 0.3s;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--text);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

.icon-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}
.icon-btn:hover { color: var(--gold); }

.cart-badge {
  position: absolute;
  top: 6px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: var(--gold);
  color: var(--bg);
  font-size: 9px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.35s var(--ease);
}
.cart-badge.empty { opacity: 0; transform: scale(0); }
.cart-badge.bump { animation: bumpBadge 0.4s var(--ease); }

@keyframes bumpBadge {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.menu-toggle:hover { color: var(--gold); }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 950;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.mobile-nav.open { pointer-events: auto; opacity: 1; }

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 80px 32px 40px;
  transform: translateX(-100%);
  transition: transform 0.45s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 20px;
}

.mobile-nav-link {
  display: block;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 300;
  color: var(--text);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}
.mobile-nav-link:hover { color: var(--gold); }


/* ================================================================
   SEARCH OVERLAY
================================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,22,40,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.search-overlay.open { pointer-events: auto; opacity: 1; }

.search-overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 24px;
}

.search-field {
  width: 100%;
  max-width: 600px;
  padding: 0 var(--gutter);
}

.search-field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gold-border);
  outline: none;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 300;
  padding: 16px 0;
  letter-spacing: 0.02em;
  transition: border-color 0.3s;
}
.search-field input::placeholder { color: var(--text-faint); }
.search-field input:focus { border-bottom-color: var(--gold); }

.search-results {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 100%;
  max-width: 600px;
  padding: 0 var(--gutter);
  max-height: 35vh;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.3s;
}
.search-result-item:hover { opacity: 0.7; }

.search-result-img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-name {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text);
}
.search-result-detail {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 2px;
}


/* ================================================================
   HERO — Landing Page
================================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s linear;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,22,40,0.4) 0%,
    rgba(10,22,40,0.2) 40%,
    rgba(10,22,40,0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--gutter);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 10vw, 80px);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  animation: fadeUp 0.8s 0.2s both;
}

.hero-sub {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.4s both;
}

.hero-cta {
  animation: fadeUp 0.8s 0.6s both;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeUp 0.8s 0.8s both;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--gold-border);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}


/* ================================================================
   SECTION TITLES
================================================================ */
.section-header {
  text-align: center;
  padding: 80px var(--gutter) 48px;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.06em;
}


/* ================================================================
   CATEGORY GRID — Landing Page
================================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding: 0 2px;
}

.cat-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
}

.cat-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.cat-card:hover .cat-card-img {
  transform: scale(1.05);
}

.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.7) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background 0.5s;
}

.cat-card:hover .cat-card-overlay {
  background: linear-gradient(to top, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.2) 60%);
}

.cat-card-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.cat-card-count {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* 5th card spans full width */
.cat-card:nth-child(5) {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
}


/* ================================================================
   ABOUT STRIP
================================================================ */
.about-strip {
  padding: 64px var(--gutter);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-strip p {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 2;
}


/* ================================================================
   COLLECTION BANNER
================================================================ */
.collection-banner {
  padding: calc(var(--header-h) + 48px) var(--gutter) 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.collection-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 7vw, 56px);
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.collection-desc {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.8;
}


/* ================================================================
   PRODUCT GRID
================================================================ */
.product-section {
  padding: 40px var(--gutter) 80px;
  max-width: var(--grid-max);
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}

.product-card {
  cursor: pointer;
}

.product-card-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 14px;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), opacity 0.5s;
}

.product-card:hover .product-card-img img {
  transform: scale(1.04);
}

.product-card-body {
  padding: 0 2px;
}

.product-card-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  line-height: 1.3;
  transition: color 0.3s;
}

.product-card:hover .product-card-name {
  color: var(--gold);
}

.product-card-detail {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  line-height: 1.5;
}


/* ================================================================
   PRODUCT MODAL
================================================================ */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.product-modal.active { pointer-events: auto; opacity: 1; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--gold-border);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
}
.product-modal.active .modal-panel { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 5;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 22px;
  background: rgba(10,22,40,0.7);
  transition: color 0.3s;
}
.modal-close:hover { color: var(--gold); }

.modal-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bg-card);
}

.modal-info {
  padding: 28px 24px 32px;
}

.modal-info h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.modal-info p {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 28px;
  text-transform: uppercase;
}

.modal-actions {
  display: flex;
  gap: 12px;
}
.modal-actions .btn { flex: 1; padding: 14px 16px; }


/* ================================================================
   CART DRAWER
================================================================ */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.cart-drawer.open { pointer-events: auto; opacity: 1; }

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}
.cart-drawer.open .cart-panel { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.cart-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.06em;
}

.cart-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 20px;
}
.cart-close:hover { color: var(--gold); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 52px;
  height: 68px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-card);
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text);
  line-height: 1.3;
}
.cart-item-detail {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 16px;
  flex-shrink: 0;
  transition: color 0.3s;
}
.cart-item-remove:hover { color: #c44; }

.cart-empty {
  padding: 48px 24px;
  text-align: center;
  display: none;
}
.cart-empty.visible { display: block; }

.cart-empty p:first-child {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.cart-empty-sub {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* ================================================================
   EMPTY STATE
================================================================ */
.empty-state {
  text-align: center;
  padding: 80px var(--gutter);
}

.empty-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.empty-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}


/* ================================================================
   COOKIE BANNER
================================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
}
.cookie-banner.visible { transform: translateY(0); }

.cookie-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  min-width: 240px;
}
.cookie-text a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-actions .btn { padding: 12px 24px; }


/* ================================================================
   WHATSAPP FLOAT
================================================================ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 52px;
  height: 52px;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.3s;
  border-radius: 50%;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}


/* ================================================================
   FOOTER
================================================================ */
.site-footer {
  background: #060e1c;
  border-top: 1px solid var(--border);
  padding: 56px var(--gutter) 40px;
}

.footer-inner {
  max-width: var(--grid-max);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: color 0.3s, border-color 0.3s;
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold); }

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
}

.footer-col-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding: 5px 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 28px;
  text-align: center;
}

.footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 14px;
}

.footer-legal a {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.3s;
}
.footer-legal a:hover { color: var(--gold); }

.footer-copy {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
}


/* ================================================================
   LEGAL PAGES
================================================================ */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) 24px 80px;
}

.legal-page h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin: 40px 0 14px;
  letter-spacing: 0.04em;
}

.legal-page h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 24px 0 10px;
}

.legal-page p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 14px;
}

.legal-page ul li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
  padding-left: 18px;
  position: relative;
  margin-bottom: 4px;
}
.legal-page ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 4px;
  height: 4px;
  background: var(--gold);
}

.legal-page a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal-page a:hover { color: var(--gold-light); }

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.legal-nav a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.legal-nav a:hover { color: var(--gold); }


/* ================================================================
   ANIMATIONS
================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================================
   RESPONSIVE
================================================================ */

/* Tablet */
@media (min-width: 640px) {
  :root { --gutter: 32px; }

  .product-grid { gap: 28px 20px; }
  .product-card-name { font-size: 17px; }

  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-card:nth-child(4),
  .cat-card:nth-child(5) { grid-column: auto; aspect-ratio: 3 / 4; }

  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop */
@media (min-width: 1024px) {
  :root { --gutter: 48px; --header-h: 76px; }

  .header-nav { display: flex; }
  .menu-toggle { display: none; }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 28px;
  }
  .product-card-name { font-size: 18px; }

  .cat-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
  }
  .cat-card:nth-child(5) { grid-column: auto; aspect-ratio: 3 / 4; }
  .cat-card-name { font-size: 26px; }

  .modal-panel { max-width: 480px; }

  .footer-top { flex-direction: row; gap: 60px; text-align: left; }
  .footer-brand { text-align: left; min-width: 240px; }
  .footer-social { justify-content: flex-start; }
  .footer-cols { text-align: left; }
  .footer-legal { justify-content: flex-start; }
  .footer-bottom { text-align: left; }

  .collection-banner { padding-top: calc(var(--header-h) + 64px); padding-bottom: 56px; }
  .product-section { padding: 56px var(--gutter) 100px; }
}

/* Large desktop */
@media (min-width: 1400px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}


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