/* ============================================================== tokens ==== */
:root {
  --bg: #0a0c11;
  --bg-soft: #101420;
  --surface: #151a28;
  --surface-2: #1c2233;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f8;
  --muted: #98a1b8;
  --accent: #6f7fd9;
  --accent-soft: rgba(111, 127, 217, 0.16);
  --warn: #ffb74d;
  --danger: #ff7a7a;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1140px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* ================================================================ base ==== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3 { line-height: 1.18; margin: 0 0 0.4em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================== banners === */
.rep-banner {
  background: linear-gradient(90deg, #3a2a0d, #4a3512);
  border-bottom: 1px solid rgba(255, 183, 77, 0.35);
  color: #ffe4b8;
  font-size: 0.87rem;
  padding: 9px 20px;
  text-align: center;
}
.rep-banner strong { color: var(--warn); }
.rep-banner span { opacity: 0.9; }

/* =============================================================== header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 12, 17, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 0.92rem;
}
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.cart-btn:hover { background: var(--surface); border-color: var(--accent); }
.cart-btn__count {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 6px;
}

/* ================================================================= hero === */
.hero {
  padding: clamp(48px, 8vw, 92px) 0 clamp(36px, 6vw, 64px);
  background:
    radial-gradient(700px 380px at 78% -10%, rgba(111, 127, 217, 0.22), transparent 70%),
    radial-gradient(520px 320px at 8% 0%, rgba(127, 166, 217, 0.12), transparent 70%);
}
.hero__inner { max-width: 820px; }
.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.hero__lede {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: #c8cfe2;
  max-width: 62ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.hero__facts strong { color: var(--text); }

/* ============================================================== buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s, background 0.18s, border-color 0.18s, opacity 0.18s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover:not(:disabled) { background: #8090e4; }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); }
.btn--block { width: 100%; }
.btn--add {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--text);
  padding: 9px 18px;
}
.btn--add:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }

.link-muted,
.link-danger {
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.83rem;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-danger { color: var(--danger); }
.link-muted:hover { color: var(--text); }

.icon-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}
.icon-btn:hover { border-color: var(--accent); }

/* ============================================================== sections === */
.section { padding: clamp(40px, 6vw, 68px) 0; }
.section__head { margin-bottom: 28px; max-width: 60ch; }
.section__head p { color: var(--muted); margin: 0; }

/* ================================================================= grid === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(266px, 1fr));
  gap: 20px;
}
.load-error {
  grid-column: 1 / -1;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}

/* ================================================================= card === */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.card__art {
  position: relative;
  background:
    radial-gradient(320px 200px at 50% 110%, rgba(111, 127, 217, 0.16), transparent 72%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 10px 18px 0;
}
.card__art .art { width: 100%; height: auto; }
.card__flag {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card__gen {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0 0 6px;
}
.card__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 1.22rem;
  margin-bottom: 6px;
}
.card__tagline { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.card__inspo {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
  border-left: 2px solid rgba(255, 183, 77, 0.42);
  padding-left: 9px;
  margin: 0 0 14px;
}

.tag-rep {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warn);
  background: rgba(255, 183, 77, 0.13);
  border: 1px solid rgba(255, 183, 77, 0.34);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.tag-rep--sm { font-size: 0.62rem; padding: 1px 5px; }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
}
.chips li {
  font-size: 0.76rem;
  color: #c8cfe2;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
}

.card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price { display: flex; align-items: baseline; gap: 8px; }
.price__now { font-size: 1.28rem; font-weight: 700; }
.price__was { color: var(--muted); font-size: 0.85rem; }

/* ============================================================ disclosure === */
.disclosure {
  background: linear-gradient(180deg, rgba(255, 183, 77, 0.07), transparent);
  border-top: 1px solid rgba(255, 183, 77, 0.22);
  border-bottom: 1px solid rgba(255, 183, 77, 0.22);
  padding: clamp(38px, 6vw, 62px) 0;
}
.disclosure__inner { max-width: 76ch; }
.disclosure__flag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warn);
  border: 1px solid rgba(255, 183, 77, 0.4);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 16px;
}
.disclosure__short { font-size: 1.12rem; font-weight: 600; color: #f4e4c8; }
.disclosure__inspo {
  margin: 18px 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  font-size: 0.92rem;
  color: #e6ebf7;
}
.disclosure__list { margin: 18px 0 0; padding-left: 20px; color: #c8cfe2; }
.disclosure__list li { margin-bottom: 7px; }

/* ========================================================== info cards === */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.info-card h3 { color: var(--accent); }
.info-card p:last-child { margin-bottom: 0; }

/* ================================================================== faq === */
.faq { max-width: 76ch; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* =============================================================== footer === */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 40px 0;
  margin-top: 40px;
}
.footer__legal {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 78ch;
}
.footer__legal strong { color: var(--text); }

/* =============================================================== drawer === */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 11, 0.66);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, visibility 0.22s;
  z-index: 50;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(400px, 100%);
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transform: translateX(103%);
  transition: transform 0.28s cubic-bezier(0.22, 0.7, 0.3, 1);
  z-index: 60;
}
.drawer.is-open { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 { margin: 0; font-size: 1.1rem; }

.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; }

.cart-empty { color: var(--muted); font-size: 0.92rem; }
.cart-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.cart-item__art { background: var(--bg); border-radius: 8px; padding: 4px; }
.cart-item__name { margin: 0 0 2px; font-size: 0.94rem; font-weight: 600; }
.cart-item__unit { margin: 0 0 8px; color: var(--muted); font-size: 0.8rem; }
.cart-item__side { text-align: right; display: grid; gap: 6px; justify-items: end; }
.cart-item__total { font-weight: 700; font-size: 0.94rem; }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
}
.stepper button {
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  width: 30px;
  height: 28px;
  cursor: pointer;
  line-height: 1;
}
.stepper button:hover { background: var(--surface-2); color: var(--accent); }
.stepper span { min-width: 26px; text-align: center; font-size: 0.88rem; }

.drawer__foot {
  border-top: 1px solid var(--line);
  padding: 18px 20px 22px;
  display: grid;
  gap: 12px;
  background: var(--surface);
}
.totals { display: grid; gap: 7px; font-size: 0.92rem; }
.totals > div { display: flex; justify-content: space-between; }
.totals > div span:first-child { color: var(--muted); }
.totals__grand {
  border-top: 1px solid var(--line);
  padding-top: 9px;
  font-size: 1.08rem;
  font-weight: 700;
}
.cart-rep-note,
.cart-bulk-warning {
  font-size: 0.8rem;
  color: var(--warn);
  margin: 0;
  background: rgba(255, 183, 77, 0.1);
  border-radius: 8px;
  padding: 9px 11px;
}
.cart-rep-note { color: var(--muted); background: var(--surface-2); }
.drawer__foot .link-muted { justify-self: center; }

/* ================================================================ toast === */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 140%);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform 0.28s, opacity 0.28s;
  z-index: 80;
  max-width: min(92vw, 560px);
  text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast[data-tone="error"] {
  border-color: rgba(255, 122, 122, 0.55);
  color: #ffd9d9;
}

/* =========================================================== order page === */
.order-page { padding: clamp(44px, 7vw, 80px) 20px; max-width: 780px; }
.order-page__lede { font-size: 1.06rem; color: #c8cfe2; }
.order-page__lede[data-tone="ok"] { color: #b8e6c8; }
.order-page__lede[data-tone="warn"] { color: var(--warn); }
.order-page__lede[data-tone="error"] { color: var(--danger); }
.order-page__notice {
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.order-page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 26px 0;
}
.order-card h2 { font-size: 1.05rem; margin-bottom: 16px; }
.order-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.order-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: baseline;
  font-size: 0.94rem;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
}
.order-line:last-child { border-bottom: 0; padding-bottom: 0; }
.order-line__qty { color: var(--muted); }
.order-line__amt { font-weight: 600; min-width: 66px; text-align: right; }
.order-totals { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.order-meta { margin-top: 14px; color: var(--muted); font-size: 0.85rem; }
.order-meta p { margin: 0 0 4px; word-break: break-word; }

/* ========================================================== responsive === */
@media (max-width: 760px) {
  .nav { display: none; }
  .hero__facts { gap: 8px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
