/* ==========================================================================
   SILVERMERE — Design System
   Modern dark luxury. Obsidian / charcoal / brushed silver.
   ========================================================================== */

:root {
  --obsidian: #101216;
  --charcoal: #1A1D23;
  --graphite: #262A32;
  --silver: #B6BBC6;
  --pearl: #F5F5F7;
  --silver-dim: #8A8F9C;
  --line: #2E333D;
  --line-soft: #23272F;
  --accent-grad: linear-gradient(120deg, #E8EAF0 0%, #B6BBC6 45%, #8A8F9C 70%, #D7DAE2 100%);
  --font-display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-w: 1200px;
  --radius: 6px;
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
  --ok: #7FBF8E;
  --warn: #D9B26A;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--pearl);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--silver); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--pearl); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--pearl);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: .01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1.1em; color: #C9CDD6; }

.container { width: min(var(--max-w), 92%); margin-inline: auto; }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section--charcoal { background: var(--charcoal); border-block: 1px solid var(--line-soft); }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent-grad); }

.lead { font-size: 1.13rem; color: #D6D9E0; max-width: 56ch; }

.muted { color: var(--silver-dim); }
.small { font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 18, 22, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .9rem 0;
}

.brand { display: flex; align-items: center; gap: .8rem; }
.brand img { width: 38px; height: 38px; }
.brand__word {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: .34em;
  color: var(--pearl);
}
.brand__word span { display: block; font-family: var(--font-body); font-size: .56rem; letter-spacing: .5em; color: var(--silver-dim); margin-top: 2px; }

.main-nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--silver);
  padding: .4rem 0;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent-grad);
  transition: width .25s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a[aria-current="page"] { color: var(--pearl); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .55rem .7rem;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 1.5px; background: var(--silver);
  position: relative; transition: .2s ease;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after { content: ""; position: absolute; top: 6px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(16, 18, 22, 0.98);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 1rem 4%; }
  .main-nav li { border-top: 1px solid var(--line-soft); }
  .main-nav li:first-child { border-top: 0; }
  .main-nav a { display: block; padding: .95rem 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--accent-grad);
  color: #101216;
  font-weight: 600;
}
.btn--primary:hover { box-shadow: 0 6px 22px rgba(182, 187, 198, 0.22); color: #101216; }

.btn--ghost { border-color: var(--line); color: var(--pearl); background: transparent; }
.btn--ghost:hover { border-color: var(--silver-dim); background: rgba(182, 187, 198, 0.06); }

.btn[disabled], .btn--disabled {
  opacity: .45; cursor: not-allowed; pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(5rem, 13vw, 10rem) 0 clamp(4rem, 10vw, 8rem);
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(182, 187, 198, 0.09), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(182, 187, 198, 0.05), transparent 55%),
    var(--obsidian);
  border-bottom: 1px solid var(--line-soft);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(182,187,198,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(182,187,198,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(closest-side at 60% 30%, black, transparent);
  -webkit-mask-image: radial-gradient(closest-side at 60% 30%, black, transparent);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { margin-bottom: 1.2rem; }
.hero .lead { margin-bottom: 2.2rem; }
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__mark {
  position: absolute; right: -4%; top: 50%;
  transform: translateY(-50%);
  width: min(42vw, 460px);
  opacity: .14;
  z-index: 0;
}
@media (max-width: 820px) { .hero__mark { display: none; } }

/* ---------- Status banner ---------- */
.status-banner {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--warn);
  border: 1px solid rgba(217, 178, 106, 0.35);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  margin-bottom: 1.8rem;
  background: rgba(217, 178, 106, 0.06);
}
.status-banner::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 10px rgba(217,178,106,.7);
}

/* ---------- Category & product cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.cat-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  background: linear-gradient(160deg, var(--charcoal), var(--obsidian));
  transition: transform .2s ease, border-color .2s ease;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--silver-dim); }
.cat-card h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.cat-card p { margin: 0; font-size: .85rem; color: var(--silver-dim); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.6rem; }

.product-card {
  display: flex; flex-direction: column;
  background: linear-gradient(170deg, var(--charcoal), #14171C);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-5px); border-color: var(--silver-dim); box-shadow: var(--shadow-card); }
.product-card__media { aspect-ratio: 1/1; background: var(--charcoal); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.product-card__cat { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--silver-dim); }
.product-card__title { font-family: var(--font-display); font-size: 1.08rem; color: var(--pearl); line-height: 1.3; }
.product-card__meta { font-size: .82rem; color: var(--silver-dim); }
.product-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-top: .8rem; border-top: 1px solid var(--line-soft); }
.product-card__price { font-size: 1.05rem; color: var(--pearl); }
.product-card__price small { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--silver-dim); }

.badge {
  display: inline-block;
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .34rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--silver);
  white-space: nowrap;
}
.badge--soon { color: var(--warn); border-color: rgba(217, 178, 106, 0.4); }
.badge--planned { color: var(--silver); }
.badge--instock { color: var(--ok); border-color: rgba(127, 191, 142, 0.4); }

/* ---------- Shop toolbar ---------- */
.shop-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  margin: 2.2rem 0 2.4rem;
  align-items: end;
}
@media (max-width: 720px) { .shop-toolbar { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--silver-dim); }
.field input, .field select, .field textarea {
  background: var(--charcoal);
  border: 1px solid var(--line);
  color: var(--pearl);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  font: inherit;
  width: 100%;
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--silver-dim);
  box-shadow: 0 0 0 3px rgba(182, 187, 198, 0.12);
}
.field textarea { min-height: 150px; resize: vertical; }

.results-count { font-size: .82rem; color: var(--silver-dim); letter-spacing: .08em; margin-bottom: 1.2rem; }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .pd { grid-template-columns: 1fr; } }
.pd__media { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: var(--charcoal); }
.pd__thumbs { display: flex; gap: .8rem; margin-top: .9rem; }
.pd__thumbs button {
  border: 1px solid var(--line); background: var(--charcoal); border-radius: 4px;
  width: 72px; height: 72px; padding: 0; cursor: pointer; overflow: hidden;
}
.pd__thumbs button[aria-pressed="true"] { border-color: var(--silver); }
.pd__price { font-size: 1.7rem; color: var(--pearl); margin: 1.2rem 0 .3rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 1.8rem 0; font-size: .92rem; }
.spec-table th, .spec-table td { text-align: left; padding: .75rem .2rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spec-table th { width: 42%; color: var(--silver-dim); font-weight: 500; letter-spacing: .06em; font-size: .78rem; text-transform: uppercase; }

.breadcrumbs { font-size: .78rem; letter-spacing: .08em; color: var(--silver-dim); margin-bottom: 1.6rem; }
.breadcrumbs a { color: var(--silver); }
.breadcrumbs span[aria-current] { color: var(--pearl); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.form-note { font-size: .82rem; color: var(--silver-dim); }
.form-status { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); display: none; }
.form-status.ok { display: block; border-color: rgba(127,191,142,.5); color: var(--ok); background: rgba(127,191,142,.07); }
.form-status.err { display: block; border-color: rgba(217,120,106,.5); color: #E0A99E; background: rgba(217,120,106,.07); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Split/info blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.feature-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-list svg { flex: 0 0 20px; margin-top: 3px; }
.feature-list strong { display: block; color: var(--pearl); font-weight: 600; letter-spacing: .02em; }
.feature-list span { font-size: .9rem; color: var(--silver-dim); }

.panel {
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, var(--charcoal), var(--obsidian));
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.panel--flag { border-color: rgba(217, 178, 106, 0.35); background: rgba(217, 178, 106, 0.04); }
.panel--flag h3 { color: var(--warn); }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(182, 187, 198, 0.08), transparent 65%),
    var(--charcoal);
  border-block: 1px solid var(--line-soft);
}
.cta-band .btn { margin: .4rem; }

/* ---------- Legal ---------- */
.legal-body h2 { font-size: 1.35rem; margin-top: 2.4rem; }
.legal-body h3 { font-size: 1.05rem; margin-top: 1.6rem; }
.legal-body p, .legal-body li { font-size: .95rem; color: #C9CDD6; }
.legal-body ul, .legal-body ol { padding-left: 1.4rem; }
.legal-body li { margin-bottom: .5rem; }
.review-flag {
  border: 1px dashed rgba(217, 178, 106, 0.5);
  background: rgba(217, 178, 106, 0.05);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  font-size: .85rem;
  color: var(--warn);
  margin: 1.6rem 0;
}
.review-flag strong { letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; display: block; margin-bottom: .3rem; }
mark.tbd { background: rgba(217,178,106,.18); color: var(--warn); padding: 0 .3em; border-radius: 3px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #0C0E11; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: clamp(2.8rem, 6vw, 4.5rem) 0 2.5rem;
}
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--silver-dim); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .88rem; }
.site-footer .brand__word { font-size: 1.1rem; }
.site-footer__legal {
  border-top: 1px solid var(--line-soft);
  padding: 1.6rem 0 2.2rem;
  font-size: .78rem;
  color: var(--silver-dim);
  display: grid;
  gap: .5rem;
}
.site-footer__legal p { margin: 0; font-size: .78rem; color: var(--silver-dim); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%; bottom: 1.2rem;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 2rem));
  background: rgba(26, 29, 35, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  z-index: 200;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: .85rem; margin-bottom: 1rem; }
.cookie-banner__actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.cookie-banner .btn { padding: .65rem 1.3rem; font-size: .7rem; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--pearl); color: var(--obsidian);
  padding: .7rem 1.2rem; z-index: 300; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
