:root {
    --gold: #D9A253;
    --gold-dim: #b5824080;
    --black: #0d0d0d;
    --black-elevated: #101010;
    --white: #FAFAFA;
    --grey: #9a9a9a;
    --border: #232323;
    --radius: 6px;
    --max-width: 1160px;
}
/* Light ("day") mode — toggled via [data-theme="light"] on <html>, set by
   the inline script in includes/header.php before first paint (so there's
   no flash of the wrong theme) and persisted in localStorage by the
   toggle button's script at the bottom of the same file. Same component
   classes throughout the site, just different variable values — nothing
   else needs to change per-theme. */
:root[data-theme="light"] {
    --gold: #D9792E;
    --gold-dim: #d9792e4d;
    --black: #F7F4EF;
    --black-elevated: #FFFFFF;
    --white: #1A1A1A;
    --grey: #70695E;
    --border: #E7E1D6;
}
* { box-sizing: border-box; }
body { background: var(--black); color: var(--white); font-family: 'Helvetica Neue', Arial, sans-serif; margin: 0; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.site-header { border-bottom: 1px solid var(--border); background: var(--black); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 20px; letter-spacing: 2px; }
.logo .accent { color: var(--gold); }
.nav-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.nav-links a { font-size: 14px; color: var(--grey); }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.btn { display: inline-block; padding: 10px 22px; border-radius: var(--radius); border: 1px solid var(--gold); color: var(--gold); font-size: 14px; font-weight: 600; background: transparent; cursor: pointer; }
.btn:hover { background: var(--gold); color: var(--black); }
.btn.solid { background: var(--gold); color: var(--black); }
.btn.solid:hover { background: #c9924a; color: var(--black); }
.hero { padding: 100px 0 70px; text-align: center; border-bottom: 1px solid var(--border); }
.hero h1 { font-size: 42px; margin-bottom: 12px; }
.hero .accent { color: var(--gold); }
.hero p { color: var(--grey); max-width: 560px; margin: 0 auto 28px; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; padding: 60px 0; }
.module-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: var(--black-elevated); transition: border-color .15s ease; }
.module-card:hover { border-color: var(--gold-dim); }
.module-card h3 { color: var(--gold); margin-top: 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; padding: 30px 0 60px; }
.product-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--black-elevated); }
.product-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--black-elevated); }
.product-card .body { padding: 14px; }
.product-card .price { color: var(--gold); font-weight: 600; }
.product-card h4 { margin: 0 0 6px; font-size: 15px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 24px 0 0; }
.filters a { border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--grey); }
.filters a.active { border-color: var(--gold); color: var(--gold); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 50px 0; }
.product-detail img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.product-detail .price { font-size: 28px; color: var(--gold); margin: 12px 0 24px; }
form.stack { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
label { font-size: 13px; color: var(--grey); }
input, select, textarea { background: var(--black-elevated); border: 1px solid var(--border); color: var(--white); padding: 12px 14px; border-radius: var(--radius); font-size: 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; }
.alert.error { background: #3a1414; color: #ff9b9b; border: 1px solid #6a2222; }
.alert.success { background: #14301a; color: #9bffb0; border: 1px solid #226a35; }
.prose { max-width: 760px; padding: 50px 0 70px; line-height: 1.7; }
.prose h1 { font-size: 30px; margin-bottom: 6px; }
.prose .updated { color: var(--grey); font-size: 13px; margin-bottom: 36px; }
.prose h2 { font-size: 19px; margin: 34px 0 10px; }
.prose p, .prose li { color: #cfcac0; font-size: 14.5px; }
:root[data-theme="light"] .prose p, :root[data-theme="light"] .prose li { color: #3a352c; }
.prose ul { padding-left: 20px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item h3 { margin: 0 0 8px; font-size: 15.5px; }
.faq-item p { margin: 0; color: var(--grey); font-size: 14px; }
table.cart { width: 100%; border-collapse: collapse; margin: 24px 0; }
table.cart th, table.cart td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
table.cart th { color: var(--grey); font-weight: 500; }
footer { border-top: 1px solid var(--border); padding: 50px 0 0; color: var(--grey); font-size: 13px; margin-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 36px; }
.footer-brand .logo { font-size: 17px; margin-bottom: 10px; }
.footer-brand p { color: var(--grey); font-size: 13px; line-height: 1.6; max-width: 260px; }
.footer-col h4 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 14px; }
.footer-col a { display: block; color: var(--grey); font-size: 13.5px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px; text-align: center; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); color: var(--grey); font-size: 13px; font-weight: 700; margin: 0; }
.footer-social-icon:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-brand { grid-column: auto; } }

.newsletter-box { padding: 20px 0 70px; }
.newsletter-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(217,162,83,.12), rgba(217,162,83,.03)); border: 1px solid var(--gold-dim); border-radius: 18px; padding: 34px 36px; }
.newsletter-card h2 { margin: 0 0 6px; font-size: 21px; }
.newsletter-card p { margin: 0; color: var(--grey); font-size: 13.5px; max-width: 360px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] { min-width: 230px; background: rgba(255,255,255,.04); }
.newsletter-msg { margin: 0; font-size: 13.5px; font-weight: 600; }
.newsletter-msg.success { color: #9bffb0; }
.newsletter-msg.error { color: #ff9b9b; width: 100%; }
@media (max-width: 640px) { .newsletter-card { flex-direction: column; align-items: flex-start; } }

/* Scroll fade-in (site-wide — see footer.php's script, which tags the
   sections to animate and flips .in-view via IntersectionObserver). */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Hero/section slider (includes/slider.php) */
.hero-slider { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--black-elevated); border-bottom: 1px solid var(--border); }
.hero-slider-track { position: relative; width: 100%; height: 100%; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img, .hero-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px max(20px, calc((100% - var(--max-width)) / 2 + 20px)); background: linear-gradient(to top, rgba(0,0,0,.65), transparent); color: #fff; z-index: 2; pointer-events: none; }
.hero-slide-caption h2 { margin: 0 0 6px; font-size: 26px; }
.hero-slide-caption p { margin: 0; color: #e6e6e6; font-size: 14px; max-width: 520px; }
.hero-slide-link { position: absolute; inset: 0; z-index: 3; }
.hero-slider-dots { position: absolute; bottom: 14px; right: max(20px, calc((100% - var(--max-width)) / 2 + 20px)); display: flex; gap: 8px; z-index: 4; }
.hero-slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.hero-slider-dots button.active { background: var(--gold); }
@media (max-width: 640px) { .hero-slider { aspect-ratio: 4 / 3; } .hero-slide-caption h2 { font-size: 19px; } }

/* Homepage "Featured" product rows (includes/featured_row.php) */
.featured-row { padding: 20px 0 10px; }
.featured-row-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 30px; }
.featured-row-head h2 { margin: 0; }
.featured-row .product-grid { padding: 16px 0 50px; }

/* ============ Glassmorphism redesign — header, hero bubbles, catalog search ============ */
.site-header { backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); background: rgba(13,13,13,.72); }
:root[data-theme="light"] .site-header { background: rgba(247,244,239,.8); }
.nav-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border); color: var(--white); background: rgba(255,255,255,.03); transition: border-color .15s ease, color .15s ease; font-size: 14px; }
.nav-icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.btn.pill { border-radius: 999px; }

.hero-glass { position: relative; overflow: hidden; padding: 110px 0 90px; text-align: center; border-bottom: 1px solid var(--border);
    background: radial-gradient(ellipse 60% 55% at 18% -10%, rgba(217,162,83,.20), transparent 60%),
                radial-gradient(ellipse 50% 45% at 85% 5%, rgba(120,170,255,.10), transparent 60%),
                var(--black); }
:root[data-theme="light"] .hero-glass { background: radial-gradient(ellipse 60% 55% at 18% -10%, rgba(217,121,46,.14), transparent 60%),
                radial-gradient(ellipse 50% 45% at 85% 5%, rgba(80,130,255,.08), transparent 60%), var(--black); }
.hero-glass .eyebrow { letter-spacing: 3px; text-transform: uppercase; font-size: 12px; color: var(--gold); margin-bottom: 16px; font-weight: 600; }
.hero-glass h1 { font-size: 46px; margin: 0 0 16px; letter-spacing: .3px; }
.hero-glass p.lead { color: var(--grey); max-width: 580px; margin: 0 auto 32px; font-size: 15.5px; }
.hero-glass .btn.solid { padding: 13px 30px; font-size: 14.5px; }

.bubble-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; padding: 10px 0 70px; perspective: 1000px; }
.bubble-card { position: relative; border-radius: 22px; padding: 26px 22px; min-height: 210px; background: rgba(255,255,255,.035); background-size: cover; background-position: center; border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(10px); overflow: hidden; transition: transform .15s ease-out, border-color .2s ease, box-shadow .2s ease; transform-style: preserve-3d; display: flex; flex-direction: column; cursor: pointer; will-change: transform; }
:root[data-theme="light"] .bubble-card { background-color: rgba(0,0,0,.025); }
.bubble-card:hover { border-color: var(--gold-dim); box-shadow: 0 18px 44px -16px rgba(217,162,83,.4); }
.bubble-card.has-image { justify-content: flex-end; }
.bubble-card .bubble-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(185deg, rgba(10,10,10,.25) 0%, rgba(10,10,10,.6) 55%, rgba(8,8,8,.92) 100%); }
.bubble-card .bubble-icon { position: relative; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; background: rgba(217,162,83,.18); color: var(--gold); border: 1px solid rgba(217,162,83,.35); backdrop-filter: blur(4px); }
.bubble-card h3 { position: relative; z-index: 2; margin: 0 0 8px; font-size: 17px; color: #fff; }
.bubble-card.has-image p { color: #d8d2c8; }
.bubble-card p { position: relative; z-index: 2; margin: 0 0 16px; color: var(--grey); font-size: 13.5px; line-height: 1.5; }
.bubble-card .bubble-link { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: 13px; font-weight: 600; }
.bubble-card .bubble-glow { position: absolute; top: -40%; right: -30%; width: 70%; height: 70%; z-index: 1; background: radial-gradient(circle, rgba(217,162,83,.18), transparent 70%); pointer-events: none; }

.stats-strip { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(217,162,83,.04); }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; text-align: center; }
.stat-num { font-size: 34px; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-label { color: var(--grey); font-size: 13px; margin-top: 8px; }

.how-it-works { padding: 55px 0 15px; }
.how-it-works h2 { text-align: center; margin: 0 0 8px; font-size: 26px; }
.how-it-works .sub { text-align: center; color: var(--grey); margin: 0 0 42px; font-size: 14px; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step-card { text-align: center; padding: 0 14px; position: relative; }
.step-card .step-num { width: 52px; height: 52px; border-radius: 50%; background: rgba(217,162,83,.12); border: 1px solid rgba(217,162,83,.35); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 18px; }
.step-card h3 { margin: 0 0 8px; font-size: 16px; }
.step-card p { color: var(--grey); font-size: 13.5px; margin: 0; line-height: 1.5; }
.steps-row .step-card:not(:last-child)::after { content: ''; position: absolute; top: 26px; left: calc(50% + 40px); width: calc(100% - 80px); height: 1px; background: linear-gradient(90deg, var(--gold-dim), transparent); }
@media (max-width: 760px) { .steps-row { grid-template-columns: 1fr; gap: 36px; } .steps-row .step-card::after { display: none; } }

.catalog-hero { padding: 46px 0 6px; }
.catalog-hero h1 { font-size: 30px; margin: 0 0 8px; }
.search-glass { display: flex; align-items: center; gap: 10px; max-width: 460px; margin: 18px 0 0; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 999px; padding: 6px 6px 6px 18px; }
:root[data-theme="light"] .search-glass { background: rgba(0,0,0,.02); }
.search-glass input { flex: 1; background: transparent; border: none; padding: 10px 0; font-size: 14px; }
.search-glass input:focus { outline: none; }
.search-glass button { border-radius: 999px; padding: 9px 20px; }
.filters.chip-row { gap: 10px; margin-top: 20px; }
.filters.chip-row a { border-radius: 999px; padding: 8px 16px; background: rgba(255,255,255,.03); }
:root[data-theme="light"] .filters.chip-row a { background: rgba(0,0,0,.02); }
.filters.chip-row a.active { background: rgba(217,162,83,.12); }