:root {
  color-scheme: dark;
  --bg: #0c0c0a;
  --bg-alt: #17140f;
  --surface: #1a1712;
  --ink: #f2ead9;
  --ink-soft: #ada290;
  --gold: #c9a227;
  --gold-light: #e8c98a;
  --on-gold: #171509;
  --line: #2c2820;
  --danger: #e0685f;
  --success: #58b57b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; margin: 0 0 0.4em; letter-spacing: 0.01em; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; color: var(--gold); font-weight: 600; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 10, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 40px; max-width: var(--maxw); margin: 0 auto; gap: 28px; }
.logo { font-family: Georgia, serif; font-size: 24px; letter-spacing: 0.08em; font-weight: 700; display: flex; align-items: center; min-width: 0; flex-shrink: 0; }
.logo span { color: var(--gold); }
.logo-img { height: 54px; width: auto; max-width: 100%; }
.nav-links { display: flex; gap: 28px; font-size: 14px; letter-spacing: 0.03em; }
.nav-links a { padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav-links a:hover, .nav-links a.active { border-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 16px; min-width: 0; }
.search-box { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; min-width: 200px; }
.search-box input { border: none; outline: none; background: transparent; color: var(--ink); font-size: 14px; width: 100%; }
.cart-btn { position: relative; display: flex; align-items: center; gap: 8px; background: var(--gold); color: var(--on-gold); font-weight: 600; padding: 10px 18px; border-radius: 999px; border: none; font-size: 14px; flex-shrink: 0; white-space: nowrap; }
.cart-count { background: var(--on-gold); color: var(--gold); font-weight: 700; border-radius: 999px; font-size: 11px; padding: 1px 7px; min-width: 18px; text-align: center; }

/* Hero */
.hero { position: relative; background: linear-gradient(135deg, var(--bg-alt), var(--bg)); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0; mix-blend-mode: screen; opacity: .9; pointer-events: none;
}
.hero::before {
  content: ""; position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 75% 35%, rgba(201,162,39,0.16), transparent 55%);
  animation: heroGlow 10s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { opacity: .6; transform: scale(1) translate(0,0); }
  100% { opacity: 1; transform: scale(1.08) translate(-2%, 2%); }
}
.hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 110px 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 50px; line-height: 1.15; margin: 14px 0 20px; }
.hero p { color: var(--ink-soft); font-size: 17px; max-width: 480px; margin-bottom: 32px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.hero-visual { display: flex; justify-content: center; align-items: flex-end; gap: 16px; }
.hero-visual svg { filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)); animation: heroFloat 5s ease-in-out infinite; }
.hero-visual svg:nth-child(2) { animation-delay: -2.4s; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero-visual svg { animation: none; }
  .hero-video { display: none; }
}

/* Section headings */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--ink-soft); margin: 6px 0 0; }

/* Catalog layout */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.filters h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.filter-group { margin-bottom: 22px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group .group-title { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 10px; text-transform: capitalize; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink-soft); padding: 6px 12px; border-radius: 999px; font-size: 12.5px; text-transform: capitalize; }
.chip.active { background: var(--gold); color: var(--on-gold); border-color: var(--gold); font-weight: 600; }
.price-range { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.reset-link { font-size: 12.5px; color: var(--gold); font-weight: 600; margin-top: 16px; display: inline-block; }

.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 13.5px; color: var(--ink-soft); }
.catalog-toolbar select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--surface); color: var(--ink); font-size: 13.5px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--gold); }
.card-media { background: var(--bg-alt); display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; }
.card-badge { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--on-gold); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.card-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card-brand { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 700; margin-bottom: 4px; }
.card-title { font-size: 18px; margin-bottom: 6px; }
.card-desc { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price { font-size: 17px; font-weight: 700; color: var(--gold-light); }
.card-add { background: transparent; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 9px 16px; font-size: 13px; transition: background .15s ease, color .15s ease; }
.card-add:hover { background: var(--gold); color: var(--on-gold); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px 0; align-items: start; }
.product-media { background: var(--bg-alt); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 60px; position: sticky; top: 100px; }
.breadcrumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--gold); }
.product-info h1 { font-size: 34px; margin-bottom: 6px; }
.product-meta { display: flex; gap: 10px; margin: 12px 0 20px; flex-wrap: wrap; }
.tag { background: var(--bg-alt); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; font-size: 12px; text-transform: capitalize; color: var(--ink-soft); }
.product-price { font-size: 28px; font-weight: 700; margin: 14px 0; }
.product-desc { color: var(--ink-soft); font-size: 15px; margin-bottom: 24px; }
.notes-block { margin: 28px 0; }
.notes-block h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.note-row { display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.note-row .note-label { width: 90px; color: var(--gold); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; padding-top: 2px; }
.qty-row { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-stepper button { background: var(--bg-alt); color: var(--ink); border: none; width: 36px; height: 36px; font-size: 16px; }
.qty-stepper span { width: 40px; text-align: center; font-weight: 600; }
.stock-note { font-size: 13px; color: var(--success); }
.add-to-cart-row { display: flex; gap: 14px; }
.related { padding: 60px 0; border-top: 1px solid var(--line); }

/* Cart page */
.cart-page { padding: 56px 0; display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 18px; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; align-items: center; }
.cart-item .item-media { background: var(--bg-alt); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 8px; }
.cart-item .item-name { font-size: 16px; margin-bottom: 4px; }
.cart-item .item-meta { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 10px; }
.cart-item .item-actions { display: flex; align-items: center; gap: 14px; }
.remove-link { font-size: 12.5px; color: var(--danger); }
.item-total { font-weight: 700; text-align: right; }
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; color: var(--ink-soft); }
.summary-row.total { color: var(--gold-light); font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.promo-row { display: flex; gap: 8px; margin: 18px 0; }
.promo-row input { flex: 1; border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink); border-radius: 8px; padding: 10px; font-size: 13px; }
.cart-empty { text-align: center; padding: 80px 20px; }

/* Billing form */
.billing-form { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.form-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-row label { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.form-row input { border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; font-family: inherit; }
.consent-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--ink-soft); margin: 10px 0; cursor: pointer; }
.consent-row input { margin-top: 2px; flex-shrink: 0; }
.consent-row a { color: var(--gold); font-weight: 600; }
.form-error { font-size: 12.5px; color: var(--danger); margin: 8px 0 0; }

/* Checkout modal-ish confirmation */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; max-width: 420px; text-align: center; box-shadow: var(--shadow-lg); }
.modal-box .icon-ok { width: 64px; height: 64px; border-radius: 50%; background: rgba(88, 181, 123, 0.15); color: var(--success); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 30px; }
.hidden { display: none !important; }

/* Newsletter / footer */
.newsletter { background: var(--surface); color: var(--ink); padding: 60px 0; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.newsletter h2 { font-size: 26px; }
.newsletter p { color: var(--ink-soft); margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.newsletter-form input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink); font-size: 14px; }
.newsletter-note { font-size: 12px; color: var(--ink-soft); margin-top: 12px; min-height: 16px; }

footer.site-footer { border-top: 1px solid var(--line); padding: 50px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-grid h4 { font-size: 14px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink-soft); }
.footer-bottom { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 20px; flex-wrap: wrap; gap: 10px; }

.legal-page { max-width: 760px; }
.legal-page h2 { margin: 8px 0 24px; }
.legal-page h3 { font-size: 17px; margin: 28px 0 8px; }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }
.legal-page ul, .legal-page ol { padding-left: 20px; }
.legal-page a { color: var(--gold); font-weight: 600; }

.family-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.family-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; text-align: center; transition: transform .2s, border-color .2s; }
.family-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.family-card .fam-icon { font-size: 30px; margin-bottom: 10px; }
.family-card h4 { font-size: 15px; text-transform: capitalize; margin-bottom: 4px; }
.family-card p { font-size: 12.5px; color: var(--ink-soft); margin: 0; }

.toast { position: fixed; bottom: 24px; right: 24px; background: var(--gold); color: var(--on-gold); font-weight: 600; padding: 14px 20px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow-lg); transform: translateY(20px); opacity: 0; transition: all .25s ease; z-index: 200; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: 50px 24px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .product-media { position: static; }
  .cart-page { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .family-strip { grid-template-columns: repeat(2, 1fr); }
  .header-inner { padding: 14px 20px; gap: 14px; }
  .search-box { min-width: 0; width: 140px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .search-box { display: none; }
  .header-inner { padding: 12px 16px; gap: 10px; }
  .logo-img { height: 38px; }
  .cart-btn { padding: 9px 14px; font-size: 13px; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .item-total { grid-column: 1 / -1; text-align: left; }
}
