/* Velvet Garage — Dark Luxurious Design System */

/* ── Tokens ── */
:root {
  --black:     #0a0a0a;
  --dark:      #111111;
  --card:      #1a1a1a;
  --border:    #2a2a2a;
  --muted:     #555555;
  --mid:       #888888;
  --cream:     #f5e6c8;
  --gold:      #c9a84c;
  --gold-dim:  #8a6f2e;
  --white:     #ffffff;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius:    4px;
  --transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--cream); }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; letter-spacing: 0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

/* ── Utility ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.gold-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover {
  background: var(--cream);
  color: var(--black);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}
.btn-sm { padding: 8px 18px; font-size: 0.75rem; }

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s, padding 0.3s;
}
.site-nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.nav-logo span { color: var(--gold); }
.nav-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--cream); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.95) 0%,
    rgba(10,10,10,0.5) 40%,
    rgba(10,10,10,0.15) 70%,
    rgba(10,10,10,0.4) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.hero h1 { color: var(--cream); max-width: 700px; }
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-sub {
  margin-top: 20px;
  font-size: 1rem;
  color: var(--mid);
  max-width: 480px;
  line-height: 1.7;
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}
@media (max-width: 768px) {
  .hero { min-height: 85vh; padding-bottom: 60px; }
  .hero-scroll { display: none; }
}

/* ── BRAND STRIP ── */
.brand-strip {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.brand-strip p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.8;
}
.brand-strip p strong { color: var(--cream); }
.brand-strip .divider {
  display: inline-block;
  width: 1px;
  height: 48px;
  background: var(--border);
  vertical-align: middle;
  margin: 0 32px;
}
.brand-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.brand-stat {
  text-align: center;
}
.brand-stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--gold);
}
.brand-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ── CATEGORIES ── */
.categories { padding: 96px 0; }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 { color: var(--cream); }
.section-header p {
  margin-top: 12px;
  color: var(--mid);
  font-size: 0.95rem;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .categories-grid { grid-template-columns: 1fr; } }

.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  cursor: pointer;
}
.category-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}
.category-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--dark);
  position: relative;
}
.category-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(10,10,10,0.4), transparent);
}
.category-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-card:hover .category-img-wrap img { transform: scale(1.04); }
.category-body {
  padding: 24px;
}
.category-body h3 { color: var(--cream); margin-bottom: 8px; }
.category-body p { font-size: 0.85rem; color: var(--mid); line-height: 1.6; }
.category-body .btn { margin-top: 18px; width: 100%; justify-content: center; }

/* ── FEATURED PRODUCTS ── */
.products { padding: 96px 0; background: var(--black); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.product-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
}
.product-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--dark);
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-info { padding: 16px; }
.product-tag {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 6px;
}
.product-name {
  font-size: 0.88rem;
  color: var(--cream);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 10px;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.product-price {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--cream);
}
.product-buy {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid var(--gold-dim);
  border-radius: 3px;
  transition: all var(--transition);
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
}
.product-buy:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.product-buy.added {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

/* ── TRUST SIGNALS ── */
.trust { padding: 80px 0; border-top: 1px solid var(--border); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 768px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item { text-align: center; }
.trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  opacity: 0.7;
}
.trust-icon svg { width: 100%; height: 100%; fill: var(--gold); }
.trust-item h3 { font-size: 1rem; color: var(--cream); margin-bottom: 10px; }
.trust-item p { font-size: 0.85rem; color: var(--mid); line-height: 1.7; }

/* ── EMAIL CAPTURE ── */
.email-section {
  padding: 96px 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.email-section h2 { color: var(--cream); }
.email-section p { margin-top: 12px; color: var(--mid); font-size: 0.95rem; }
.email-form {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  justify-content: center;
}
.email-form input {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.email-form input:focus { border-color: var(--gold-dim); }
.email-form input::placeholder { color: var(--muted); }
.email-success {
  display: none;
  margin-top: 20px;
  color: var(--gold);
  font-size: 0.95rem;
}

/* ── FOOTER ── */
.site-footer {
  padding: 48px 0;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}
.footer-logo span { color: var(--gold); }
.footer-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── CART BUTTON ── */
.cart-icon-btn {
  position: relative;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--cream);
  cursor: pointer;
  padding: 8px;
  margin-left: 16px;
  transition: border-color var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

/* ── CART DRAWER ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: none;
  backdrop-filter: blur(2px);
}
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 90vw;
  background: var(--card);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-title { font-family: var(--font-head); font-size: 1.2rem; color: var(--cream); }
.cart-close-btn { background: transparent; border: none; color: var(--mid); cursor: pointer; padding: 4px; }
.cart-close-btn:hover { color: var(--cream); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { color: var(--muted); font-size: 0.9rem; text-align: center; margin-top: 40px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; background: var(--dark); flex-shrink: 0; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.82rem; color: var(--cream); font-weight: 500; line-height: 1.3; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.cart-item-price { font-family: var(--font-head); color: var(--gold); font-size: 0.95rem; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.cart-item-qty button { background: var(--dark); border: 1px solid var(--border); color: var(--cream); width: 24px; height: 24px; border-radius: 3px; cursor: pointer; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }
.cart-item-qty button:hover { border-color: var(--gold-dim); }
.cart-item-qty span { color: var(--mid); font-size: 0.85rem; min-width: 20px; text-align: center; }
.cart-item-remove { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 0.7rem; padding: 4px 8px; border-radius: 3px; }
.cart-item-remove:hover { color: #c0392b; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); background: var(--card); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 0.9rem; }
.cart-total span:first-child { color: var(--mid); }
.cart-total-price { font-family: var(--font-head); font-size: 1.4rem; color: var(--cream); }
.cart-footer .btn { width: 100%; justify-content: center; }
.cart-checkout-loading { opacity: 0.6; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}