:root {
  --bg: #0a0a0c;
  --bg-2: #111114;
  --surface: #16161a;
  --card: #1c1c21;
  --line: #2c2c33;
  --text: #f4f1ea;
  --muted: #9a958c;
  --gold: #d4a84b;
  --gold-2: #f0d48a;
  --wa: #25d366;
  --wa-ink: #06210e;
  --danger: #c4554d;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0,0,0,.4);
  --header: 64px;
  --max: 1180px;
  --sans: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
.muted { color: var(--muted); }
.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--gold); color: #111; padding: 8px 12px; z-index: 80; }

/* Announcement */
.announce { background: #12110e; color: var(--gold-2); font-size: 12px; letter-spacing: .04em; text-align: center; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.announce strong { color: var(--text); font-weight: 600; }
.announce em { font-style: normal; color: var(--muted); }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(10,10,12,.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header__bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header); gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img, .logo svg { height: 36px; width: auto; display: block; }
.nav { display: none; align-items: center; gap: 4px; }
.nav a { padding: 8px 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-radius: 8px; }
.nav a:hover, .nav a.is-active { color: var(--text); background: var(--surface); }
.header__tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; position: relative; color: var(--text); }
.icon-btn:hover { background: var(--surface); }
.cart-count { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: #111; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.nav-toggle { display: grid; }
.nav-panel { display: none; border-top: 1px solid var(--line); background: var(--bg-2); padding: 8px 16px 16px; }
.nav-panel.is-open { display: block; }
.nav-panel a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: var(--muted); }
.nav-panel a.is-active, .nav-panel a:hover { color: var(--text); }
@media (min-width: 960px) {
  .nav { display: flex; }
  .nav-toggle, .nav-panel { display: none !important; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: #080808; }
.hero__slide { display: none; min-height: 72vw; max-height: 640px; }
.hero__slide.is-active { display: grid; }
.hero__slide { grid-template-columns: 1fr; align-items: stretch; }
.hero__media { min-height: 280px; background: #111 center/cover no-repeat; position: relative; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,.15), rgba(10,10,12,.82)); }
.hero__copy { padding: 28px 0 40px; }
.hero__copy .kicker { color: var(--gold); letter-spacing: .16em; text-transform: uppercase; font-size: 11px; margin: 0 0 8px; }
.hero__copy h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 7vw, 4.2rem); line-height: 1.05; margin: 0 0 12px; }
.hero__copy p { color: var(--muted); margin: 0 0 22px; max-width: 36ch; }
.hero__controls { display: flex; gap: 8px; align-items: center; padding: 0 0 20px; }
.hero__dot, .hero__arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--text); }
.hero__dot { width: 10px; height: 10px; background: #333; border: 0; }
.hero__dot.is-active { background: var(--gold); }
@media (min-width: 800px) {
  .hero__slide.is-active { grid-template-columns: 1.05fr .95fr; min-height: 520px; }
  .hero__media { min-height: 520px; }
  .hero__media::after { background: linear-gradient(90deg, var(--bg) 0%, rgba(10,10,12,.25) 55%, transparent); }
  .hero__copy { display: flex; flex-direction: column; justify-content: center; padding: 48px 0; order: -1; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 999px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; border: 1px solid transparent; transition: .2s ease; }
.btn--gold { background: var(--gold); color: #14110a; }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--wa:hover { filter: brightness(1.08); }
.btn--block { width: 100%; }
.btn.is-disabled { opacity: .45; pointer-events: none; }
.actions { display: grid; gap: 10px; margin: 18px 0; }

/* Sections */
.section { padding: 56px 0; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.section__head h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 500; margin: 0; }
.section__head a { color: var(--gold); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* Categories */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 160px; border: 1px solid var(--line); }
.cat img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.75)); }
.cat span { position: absolute; left: 14px; bottom: 14px; z-index: 1; font-family: var(--serif); font-size: 1.35rem; }
@media (min-width: 800px) {
  .cats { grid-template-columns: repeat(4, 1fr); }
  .cat { min-height: 240px; }
}

/* Product grid */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 800px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card__img { aspect-ratio: 1; background: #fff; display: grid; place-items: center; }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.card__body { padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__body h3 { font-size: 14px; margin: 0; font-weight: 600; line-height: 1.35; }
.rating { color: var(--gold); font-size: 12px; letter-spacing: .04em; }
.rating span { color: var(--muted); }
.price { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin: 0; font-weight: 700; }
.price s { color: var(--muted); font-weight: 400; font-size: .9em; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); color: var(--muted); padding: 3px 7px; border-radius: 99px; }
.badge--demo { border-color: #3a3424; color: var(--gold-2); }
.badge--stock { border-color: #1e3a28; color: #8ed3a8; }

/* Product page */
.pdp { padding: 24px 0 64px; }
.crumbs { font-size: 12px; color: var(--muted); margin: 0 0 20px; }
.crumbs a:hover { color: var(--gold); }
.pdp__grid { display: grid; gap: 24px; }
@media (min-width: 880px) { .pdp__grid { grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; } }
.gallery { background: #fff; border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); }
.gallery__main { aspect-ratio: 1; display: grid; place-items: center; }
.gallery__main img { max-height: 520px; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; }
.thumbs button { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #fff; padding: 4px; }
.thumbs button.is-active, .thumbs button:hover { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp__info h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; margin: 0 0 8px; }
.pdp__full { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.pdp__price { font-size: 1.6rem; margin: 10px 0; }
.note { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.swatch { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.swatch i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--gold); display: inline-block; background: #ccc; }
.swatch i.black { background: #111; }
.swatch i.silver { background: linear-gradient(#ddd, #888); }
.swatch i.clear, .swatch i.transparent { background: repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0/12px 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 42px; height: 42px; }
.qty input { width: 44px; text-align: center; border: 0; background: transparent; }
.qty--sm button, .qty--sm input { height: 34px; width: 34px; }
.accordions { margin-top: 28px; border-top: 1px solid var(--line); }
.accordions details { border-bottom: 1px solid var(--line); }
.accordions summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.accordions summary::-webkit-details-marker { display: none; }
.accordions summary::after { content: "+"; color: var(--gold); font-weight: 400; }
.accordions details[open] summary::after { content: "–"; }
.accordions .acc-body { padding: 0 0 16px; color: var(--muted); font-size: 14px; }
.accordions .acc-body ul { margin: 0; padding-left: 18px; }
.pay-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; }
.pay-row img, .pay-row svg { height: 28px; width: auto; background: #fff; border-radius: 6px; padding: 4px 6px; }
.demo-callout { margin-top: 20px; padding: 14px 16px; border: 1px dashed #3a3424; border-radius: 12px; color: var(--muted); font-size: 13px; background: #14110e; }

/* Cart / contact / empty */
.page-title { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; margin: 8px 0 24px; }
.cart-row { display: grid; grid-template-columns: 88px 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row__img { width: 88px; height: 88px; background: #fff; border-radius: 10px; overflow: hidden; }
.cart-row__img img { width: 100%; height: 100%; object-fit: contain; }
.cart-row__body p { margin: 2px 0; }
.cart-row__total { font-weight: 700; }
.linkish { color: var(--gold); font-size: 13px; padding: 0; margin-top: 6px; }
.cart-layout { display: grid; gap: 28px; }
@media (min-width: 880px) { .cart-layout { grid-template-columns: 1.3fr .7fr; align-items: start; } }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.summary h2 { margin: 0 0 14px; font-size: 1.1rem; }
.summary label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; }
.summary input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.summary .total { display: flex; justify-content: space-between; font-size: 1.15rem; margin: 16px 0; }
.empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--line); border-radius: var(--radius); }
.prose { max-width: 62ch; }
.prose h2 { font-family: var(--serif); font-weight: 500; }
.form-grid { display: grid; gap: 12px; margin: 24px 0; }

/* Footer */
.footer { margin-top: 40px; border-top: 1px solid var(--line); background: #080809; padding: 40px 0 24px; color: var(--muted); font-size: 13px; }
.footer__grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h3 { color: var(--text); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
.footer a:hover { color: var(--gold); }
.footer__legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); background: var(--text); color: #111; padding: 12px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s ease; z-index: 60; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
