/* RYZE store – grey and white, orange only as a small accent (eyebrows, badges, cart count, list markers). */
:root {
  --bg: #0c0d0f;
  --bg-alt: #111215;
  --surface: #16171a;
  --surface-2: #1d1e22;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #f3f3f4;
  --soft: #c9cacd;
  --muted: #8a8c92;
  --dim: #5d5f65;
  --red: #ff4d5e;
  --accent: #ff6a13;
  --accent-hi: #ff8a3d;
  --radius: 14px;
  --font-head: "Saira", "Arial Narrow", sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
/* Links to #shop, #how and #faq stop below the floating nav bar instead of under it */
#shop, #how, #faq { scroll-margin-top: 92px; }
body {
  margin: 0;
  background: radial-gradient(1400px 700px at 50% -260px, #2a2b30 0%, rgba(42, 43, 48, 0) 70%), var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); text-transform: uppercase; letter-spacing: 0.01em; }
h3 { font-size: 1.2rem; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }
.wrap { width: min(1440px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.eyebrow {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--accent); margin: 0 0 14px;
}

/* Buttons: white pill as the main action, outlined pill as the second */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: #f3f3f4; color: #0c0d0f; }
.btn-primary:hover { background: #ffffff; }
.btn-primary:disabled { background: var(--surface-2); color: var(--dim); cursor: not-allowed; }
.btn-ghost { border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); }
.btn-block { width: 100%; }
.btn-added { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
.btn-added:hover { border-color: rgba(255, 255, 255, 0.3); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.icon-btn:hover { border-color: rgba(255, 255, 255, 0.3); }
:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.75); outline-offset: 2px; }
.modal-card:focus, .lightbox:focus { outline: none; }

/* Nav: a floating rounded bar */
.nav { position: sticky; top: 14px; z-index: 50; margin-top: 14px; }
.nav-inner {
  display: flex; align-items: center; gap: 36px; height: 64px; padding: 0 12px 0 28px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(18, 19, 22, 0.94); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.8);
}
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.55rem; letter-spacing: 0.02em; color: var(--text); }
.brand-name b { font-weight: inherit; }
.brand-logo { height: 32px; width: auto; align-self: center; }
.brand-sub { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.nav-links, .nav-cats { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.is-on { color: var(--text); }
.cart-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: #f3f3f4; color: #0c0d0f;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.cart-btn:hover { background: #fff; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--accent); color: #1a0a00; font-size: 0.7rem; font-weight: 700; letter-spacing: 0;
  display: inline-grid; place-items: center;
}

/* Hero: text and selling points on the left, a big picture on the right */
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding: 84px 0 96px; }
.hero h1 { font-size: clamp(2.8rem, 5.4vw, 4.8rem); font-weight: 700; text-transform: uppercase; letter-spacing: -0.015em; }
.lead { font-size: 1.02rem; color: var(--soft); max-width: 44em; margin: 22px 0 40px; }
.accent { color: var(--accent); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 22px;
  border: 1px solid var(--line-strong); border-radius: 22px; background: rgba(255, 255, 255, 0.015);
}
.feature-icon { flex: none; color: var(--soft); padding-top: 2px; }
.feature h3 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.feature p { margin: 5px 0 0; color: var(--muted); font-size: 0.84rem; line-height: 1.5; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.mini {
  display: flex; align-items: center; gap: 16px; padding: 16px 22px; text-decoration: none;
  border: 1px solid var(--line-strong); border-radius: 999px; transition: border-color 0.2s;
}
.mini:hover { border-color: rgba(255, 255, 255, 0.28); }
.mini-icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--text); }
.mini b { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.mini small { display: block; color: var(--muted); font-size: 0.8rem; }
.hero-art { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); aspect-ratio: 5 / 4; }
.hero-art > img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .placeholder svg { width: 84%; }
.hero-badge {
  position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(14, 15, 17, 0.9);
}
.hero-badge-icon { flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: #f3f3f4; color: #0c0d0f; }
.hero-badge b { display: block; font-size: 0.98rem; }
.hero-badge small { display: block; color: var(--muted); font-size: 0.82rem; }
.car-light-r { animation: car-r 2.4s ease-in-out infinite; }
.car-light-b { animation: car-b 2.4s ease-in-out infinite; }
@keyframes car-r { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes car-b { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

/* Shop: category column on the left, product grid with cell lines on the right */
.shop { border-top: 1px solid var(--line); }
.shop-inner { display: grid; grid-template-columns: 320px 1fr; }
.shop-side { padding: 96px 32px 48px 4px; border-right: 1px solid var(--line); }
.shop-title { font-size: clamp(2.4rem, 3.6vw, 3.4rem); font-weight: 500; text-transform: uppercase; line-height: 1; }
.cats { display: flex; flex-direction: column; gap: 2px; margin: 36px 0 44px; }
.cat {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0;
  background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left;
  color: var(--muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s;
}
.cat span { color: var(--dim); font-weight: 500; letter-spacing: 0.04em; }
.cat:hover, .cat[aria-selected="true"] { color: var(--text); }
.cat[aria-selected="true"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: -4px; }
.cat[aria-selected="true"] { justify-content: flex-start; }
.cat[aria-selected="true"] span { margin-left: auto; }
.socials { display: flex; gap: 12px; }
.social {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--soft); transition: color 0.2s, border-color 0.2s;
}
.social:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.shop-main { min-width: 0; }
.search { display: flex; align-items: center; gap: 14px; height: 76px; padding: 0 32px; border-bottom: 1px solid var(--line); color: var(--soft); }
.search input { background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 1rem; width: 100%; }
.search input::placeholder { color: var(--muted); }
.setup-note { margin: 20px 32px 0; border: 1px dashed rgba(255, 255, 255, 0.18); border-radius: 10px; padding: 12px 16px; color: var(--muted); font-size: 0.88rem; }
.setup-note strong { color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.card { display: flex; flex-direction: column; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-media {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer;
  border-radius: 12px; overflow: hidden; background: var(--surface-2);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0); transition: box-shadow 0.2s; }
.card:hover .card-media::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: radial-gradient(ellipse 60% 70% at 50% 30%, rgba(255, 255, 255, 0.06), transparent 70%), linear-gradient(180deg, #1a1b1f, #0f1012);
}
.placeholder svg { width: 78%; height: auto; }
.badge {
  position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 6px; /* right: the sales pictures have their titles on the left */
  background: var(--accent); color: #1a0a00;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.card-body { display: flex; flex-direction: column; flex: 1; }
.card-cat { display: block; margin: 24px 0 6px; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }
.card-title { font-size: 1.32rem; font-weight: 600; margin-bottom: 18px; }
.card-title button { all: unset; cursor: pointer; }
.card-title button:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--dim); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.price { display: inline-flex; align-items: baseline; gap: 6px; }
.price s { color: var(--dim); font-size: 0.8rem; }
.price b { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; }
.price small { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; color: var(--soft); }
.soon { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.buy {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; background: none; border: 0; cursor: pointer;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); transition: color 0.2s;
}
.buy:hover { color: var(--text); }
.buy.is-in { color: var(--text); }
.buy:disabled { color: var(--dim); cursor: not-allowed; }
.empty { color: var(--muted); text-align: center; padding: 48px 0; }
.skeleton { margin: 30px; height: 300px; border-radius: 12px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Sections */
.section { padding: 104px 0; border-top: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { border: 1px solid var(--line-strong); border-radius: 22px; padding: 28px; }
.step-num { font-family: var(--font-head); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.2em; color: var(--muted); }
.steps h3 { margin: 18px 0 8px; font-family: var(--font-body); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.steps p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq-wrap .muted { margin: 14px 0 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 1rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 62ch; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.footer .brand-name { font-size: 1.3rem; }
.footer p { margin: 10px 0 0; }
.legal { display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.legal p { margin: 0; max-width: 72ch; }
.legal strong { color: var(--soft); font-weight: 600; }
.legal-links { display: flex; gap: 22px; flex-wrap: wrap; }
.legal-links a { color: var(--soft); font-size: 0.84rem; text-decoration: none; }
.legal-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Drawer */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); z-index: 70; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 80;
  background: var(--bg-alt); border-left: 1px solid var(--line-strong);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s ease;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.5rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 22px; }
.drawer-foot { padding: 20px 22px; border-top: 1px solid var(--line); }
.drawer-foot .small { margin: 8px 0 16px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; }
.total-row strong { font-family: var(--font-head); font-size: 1.6rem; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 72px; height: 41px; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .placeholder svg { width: 88%; }
.cart-item h3 { font-size: 1rem; }
.cart-item .muted { font-size: 0.88rem; }
.remove-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 0.82rem; text-decoration: underline; }
.remove-btn:hover { color: var(--text); }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.75); }
.modal[hidden] { display: none; }
/* Product window: name, price and buy button in a bar on top, then the picture at full width, then the text.
   The width follows the window height too, so the bar and the whole picture fit on screen without scrolling. */
.modal-card {
  position: relative; width: min(1600px, 100%, calc((100vh - 140px) * 16 / 9)); min-width: min(760px, 100%);
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; scrollbar-width: thin;
  background: var(--bg-alt); border: 1px solid var(--line-strong); border-radius: 20px;
}
.modal-head {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 22px;
  padding: 16px 16px 16px 28px; background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
.modal-titles { min-width: 0; margin-right: auto; }
.modal-titles .card-cat { margin: 0 0 4px; }
.modal-titles h2 { font-size: 1.75rem; }
.modal-price { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; }
.modal-price s { color: var(--dim); font-size: 1rem; font-weight: 500; }
.modal-price .soon { font-size: 1.1rem; }
.modal-head .btn { flex: none; }
.modal-close { flex: none; }
.modal-media { background: var(--surface); }
.modal-info { padding: 30px 28px 36px; }
.modal-info .prose { max-width: 780px; }
.prose { color: var(--soft); font-size: 0.95rem; }
.prose p { margin: 0 0 12px; }
.prose h3, .prose h4 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text); margin: 22px 0 8px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 12px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose code { white-space: nowrap; } /* keeps "ensure polis-rhinehart" on one line */
.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.prose pre code { white-space: inherit; }
.prose a { color: var(--text); text-underline-offset: 3px; }
.prose small { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.prose p:has(> small:only-child) { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.prose img, .prose iframe { max-width: 100%; border-radius: 10px; }
.prose iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }

/* Gallery: big picture + thumbnails */
.gallery-main { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.gallery-main > img, .gallery-main > .placeholder { width: 100%; height: 100%; object-fit: cover; }
.gallery-main > img { cursor: zoom-in; }
.gallery-zoom {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; padding: 0; border-radius: 10px;
  display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(12, 13, 15, 0.75); cursor: pointer;
}
.gallery-zoom:hover { border-color: rgba(255, 255, 255, 0.35); }

/* Full-size picture */
.lightbox { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(6, 7, 8, 0.96); }
.lightbox[hidden] { display: none; }
.lightbox > img { max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); width: auto; height: auto; border-radius: 8px; }
.lightbox-close { position: absolute; top: 16px; right: 16px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox.is-single .gallery-nav { display: none; }
.gallery-nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(12, 13, 15, 0.75);
  font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.gallery-nav:hover { background: rgba(12, 13, 15, 0.92); border-color: rgba(255, 255, 255, 0.35); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-count {
  position: absolute; right: 12px; bottom: 12px; padding: 2px 10px; border-radius: 999px;
  background: rgba(12, 13, 15, 0.75); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
}
.gallery-thumbs { position: relative; display: flex; gap: 8px; padding: 12px; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumb {
  flex: none; width: 88px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 8px;
  overflow: hidden; background: var(--surface-2); cursor: pointer; opacity: 0.5; transition: opacity 0.2s, border-color 0.2s;
}
.gallery-thumb:hover { opacity: 0.85; }
.gallery-thumb[aria-selected="true"] { opacity: 1; border-color: #f3f3f4; }
.gallery-thumb img, .gallery-thumb .placeholder { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb .placeholder svg { width: 90%; }

/* Busy + toast */
.busy { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(12, 13, 15, 0.88); }
.busy[hidden] { display: none; }
.busy-card { text-align: center; }
.spinner { display: inline-block; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: #f3f3f4; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 110;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 12px 18px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); max-width: calc(100% - 32px);
  pointer-events: none; /* never swallows a tap, e.g. on Checkout */
}
.toast.error { border-color: var(--red); }
/* Cart open: centred in the cart, just above its footer (--lift is set by js/app.js), so Checkout stays visible. */
.toast.in-cart {
  left: auto; right: calc(min(420px, 100%) / 2); transform: translateX(50%);
  bottom: var(--lift, 24px); max-width: calc(min(420px, 100%) - 32px);
}

/* Responsive */
@media (max-width: 1180px) {
  .nav-cats { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 64px 0 72px; }
  .hero-art { aspect-ratio: 16 / 9; }
  .shop-inner { grid-template-columns: 1fr; }
  .shop-side { padding: 56px 0 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .cats { flex-direction: row; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
  .cat { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; }
  .cat[aria-selected="true"] { border-color: rgba(255, 255, 255, 0.4); }
  .search { padding: 0 4px; }
  .setup-note { margin: 20px 0 0; }
  .card { padding: 24px 24px 24px 0; }
}
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
  .modal-card { width: 100%; }
  /* Bar on two rows: name + close, then price + buy */
  .modal-head { flex-wrap: wrap; gap: 12px 16px; padding: 14px 14px 14px 20px; }
  .modal-titles { flex: 1 1 calc(100% - 62px); order: 0; }
  .modal-close { order: 1; align-self: flex-start; }
  .modal-price { order: 2; }
  .modal-head .btn { order: 3; flex: 1; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .nav-inner { gap: 16px; padding: 0 8px 0 20px; height: 58px; }
  .nav-links { display: none; }
  .brand-sub { display: none; }
  .feature-grid, .mini-grid { grid-template-columns: 1fr; }
  .mini { border-radius: 18px; }
  .section { padding: 72px 0; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 24px 0; border-right: 0; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; translate: none; }
  .modal-info { padding: 24px 20px 30px; }
  .modal-titles h2 { font-size: 1.45rem; }
  .hero-badge { left: 12px; right: 12px; bottom: 12px; padding: 10px 12px; }
}

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