/* =====================================================================
   RASTIMES v2  |  rastimes.css
   Design tokens come from the logo: sun yellow, pure black, white.
   Idea: the logo's black block + pinwheel = the one memorable shape.
   Sharp corners for brand blocks, soft 10px for working UI (cards, inputs).
   ===================================================================== */

:root {
  --sun: #FFD504;
  --sun-deep: #E6BC00;
  --sun-wash: #FFF6BF;
  --ink: #000;
  --paper: #fff;
  --mist: #F2F2F2;
  --line: #DADADA;
  --mute: #5E5E5E;
  --ok: #157347;
  --bad: #B42318;

  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-ui: 10px;
  --header-h: 68px;
  --wrap: 1240px;
  --bs-body-font-family: var(--font-body);
  --bs-body-color: #111;
  --bs-link-color-rgb: 0, 0, 0;
  --bs-link-hover-color-rgb: 0, 0, 0;
  --bs-heading-color: #000;
}

/* ---------------------------------------------------------------- base */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: #111; background: var(--paper); -webkit-font-smoothing: antialiased; }
.container { max-width: var(--wrap); }
img { max-width: 100%; height: auto; }
a { text-underline-offset: .18em; }

h1, h2, h3, .h1, .h2, .h3, .h4, .h5, .display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.05;
  color: var(--ink);
}
h1 { font-size: clamp(2.15rem, 7.2vw, 4.9rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.6rem); }
h3 { font-size: 1.15rem; line-height: 1.2; }
p { max-width: 68ch; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #2b2b2b; }
.muted { color: var(--mute); }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.i-sm { width: .9em; height: .9em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 2000; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--sun); }
.site-footer :focus-visible, .band-ink :focus-visible, .hero-block :focus-visible { outline-color: var(--sun); box-shadow: none; }
section { position: relative; }
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.bg-mist { background: var(--mist); }

/* ---------------------------------------------------------------- buttons */
.btn { --bs-btn-border-radius: var(--r-ui); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.25rem; border-width: 2px; line-height: 1.2; transition: background-color .15s, color .15s, border-color .15s; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem .85rem; font-size: .9rem; }
.btn-sun  { background: var(--sun);  border-color: var(--sun);  color: #000; }
.btn-sun:hover, .btn-sun:focus-visible { background: var(--sun-deep); border-color: var(--sun-deep); color: #000; }
.btn-ink  { background: #000; border-color: #000; color: #fff; }
.btn-ink:hover { background: #2a2a2a; border-color: #2a2a2a; color: #fff; }
.btn-line { background: transparent; border-color: #000; color: #000; }
.btn-line:hover { background: #000; color: #fff; }
.btn-line-light { background: transparent; border-color: #fff; color: #fff; }
.btn-line-light:hover { background: #fff; color: #000; }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: #000; border-radius: 50%; position: relative; }
.icon-btn:hover { background: var(--mist); }
.icon-btn .i { width: 1.4rem; height: 1.4rem; }

/* ---------------------------------------------------------------- header */
.topbar { background: #000; color: #fff; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: .35rem; padding-bottom: .35rem; gap: 1rem; }
.topbar a { color: var(--sun); text-decoration: none; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: .5rem; min-height: var(--header-h); }
.brand { display: block; line-height: 0; margin-right: .5rem; }
.brand img { height: 42px; width: auto; }
.main-nav { gap: .25rem; margin-left: .75rem; }
.main-nav a { padding: .5rem .8rem; text-decoration: none; font-weight: 600; border-radius: var(--r-ui); color: #111; }
.main-nav a:hover { background: var(--mist); }
.main-nav a.is-on { box-shadow: inset 0 -3px 0 var(--sun); border-radius: 0; }
.search { flex: 1 1 260px; max-width: 420px; margin-left: auto; position: relative; align-items: center; }
.search .i { position: absolute; left: .85rem; color: var(--mute); pointer-events: none; }
.search input { width: 100%; border: 2px solid var(--line); border-radius: 999px; padding: .5rem 1rem .5rem 2.5rem; background: var(--mist); font-size: .95rem; }
.search input:focus { background: #fff; border-color: #000; outline: 0; box-shadow: 0 0 0 4px var(--sun); }
.search-mobile { display: flex; max-width: none; margin: 0 0 1rem; }
.header-tools { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
@media (min-width: 768px) { .header-tools { margin-left: 0; } }
.region-pill { display: inline-flex; align-items: center; gap: .35rem; border: 2px solid #000; background: var(--sun); color: #000; border-radius: 999px; padding: .3rem .75rem; font-weight: 700; font-size: .9rem; }
.region-pill:hover { background: var(--sun-deep); }
.region-menu .dropdown-item { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.region-menu .dropdown-item.active { background: var(--sun); color: #000; }
.cart-badge { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #000; color: var(--sun); font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.cart-badge[hidden] { display: none; }
.offcanvas { max-width: 86vw; }
.m-nav a { display: block; padding: .85rem 0; font: 800 1.25rem var(--font-display); font-stretch: 125%; text-decoration: none; border-bottom: 1px solid var(--line); }
.m-actions { display: grid; gap: .6rem; margin-top: 1.5rem; }

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(1.5rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.hero h1 { margin-bottom: 1.25rem; text-wrap: balance; }
.hero .lead { max-width: 34em; margin-bottom: 1.75rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-block { background: #000; color: #fff; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin-inline: auto; position: relative; display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
.wheel-wrap { display: grid; place-items: center; padding: 8%; }
.wheel { width: 82%; max-width: 380px; transform: rotate(calc(var(--spin, 0) * 1deg)); will-change: transform; }
.hero-regions { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #333; }
.hero-regions button { background: transparent; color: #fff; border: 0; border-right: 1px solid #333; padding: 0.3rem .5rem; font-weight: 700; display: grid; gap: .1rem; text-align: left; padding-left: 1rem; }
.hero-regions button:last-child { border-right: 0; }
.hero-regions button small { color: #bdbdbd; font-weight: 500; }
.hero-regions button:hover, .hero-regions button.is-on { background: var(--sun); color: #000; }
.hero-regions button:hover small, .hero-regions button.is-on small { color: #000; }
.hero-note { position: absolute; top: 1rem; left: 1rem; right: 1rem; font-size: .85rem; color: #cfcfcf; }

/* ---------------------------------------------------------------- section heads */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.sec-head p { margin: .5rem 0 0; color: var(--mute); }
.link-strong { font-weight: 700; color: #000; text-decoration-thickness: 3px; text-decoration-color: var(--sun); }
.link-strong:hover { text-decoration-color: #000; }

/* ---------------------------------------------------------------- category tiles */
.tiles { display: grid; gap: 1px; background: #000; border: 1px solid #000; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: #000; color: #fff; text-decoration: none; padding: 1.25rem; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.tile strong { font: 800 1.2rem/1.15 var(--font-display); font-stretch: 125%; }
.tile span { color: var(--sun); font-weight: 600; font-size: .9rem; }
.tile:hover { background: var(--sun); color: #000; }
.tile:hover span { color: #000; }

/* ---------------------------------------------------------------- product cards */
.pgrid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 1200px) { .pgrid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.pcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-ui); overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: border-color .15s; }
.pcard:hover { border-color: #000; }
.pcard-img { display: block; aspect-ratio: 1 / 1; background: var(--mist); }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pcard-heart { position: absolute; top: .5rem; right: .5rem; width: 38px; height: 38px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 50%; color: #000; }
.pcard-heart:hover { border-color: #000; }
.pcard-heart.is-on { background: var(--sun); border-color: #000; }
.pcard-heart.is-on .i { fill: #000; }
.pcard-body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.pcard-cat { margin: 0; font-size: .8rem; color: var(--mute); }
.pcard-name { margin: 0; font-family: var(--font-body); font-stretch: 100%; font-weight: 700; font-size: 1rem; line-height: 1.3; letter-spacing: 0; }
.pcard-name a { color: #000; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-name a::after { content: ""; position: absolute; inset: 0; }
.pcard-foot { position: relative; z-index: 2; }
.pcard-heart { z-index: 2; }
.pcard-price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .35rem; }
.pcard-price strong { font: 800 1.2rem var(--font-display); font-stretch: 110%; }
.pcard-price s { color: var(--mute); font-size: .9rem; }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .6rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .5rem; border-radius: 4px; background: var(--mist); }
.tag-in { color: var(--ok); background: #E4F4EA; }
.tag-low { background: var(--sun-wash); color: #5c4a00; }
.tag-out { color: var(--bad); background: #FCE8E6; }
.tag-dealer { background: #000; color: var(--sun); }

/* ---------------------------------------------------------------- horizontal rail (carousel) */
.rail-wrap { position: relative; }
.rail { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 1rem; scrollbar-width: thin; scrollbar-color: #000 var(--mist); -webkit-overflow-scrolling: touch; }
.rail > * { flex: 0 0 min(72vw, 270px); scroll-snap-align: start; }
.rail-ctrl { display: none; gap: .5rem; }
@media (min-width: 768px) { .rail-ctrl { display: flex; } }
.rail-ctrl button { width: 44px; height: 44px; border: 2px solid #000; background: #fff; border-radius: 50%; display: grid; place-items: center; }
.rail-ctrl button:hover:not(:disabled) { background: var(--sun); }
.rail-ctrl button:disabled { opacity: .3; }

/* ---------------------------------------------------------------- scrollytelling: sun to socket */
.flow { background: var(--mist); }
.flow-grid { display: grid; gap: 2rem; }
@media (min-width: 992px) { .flow-grid { grid-template-columns: 5fr 7fr; gap: 5rem; } }
.flow-stage { position: sticky; top: calc(var(--header-h) + 12px); align-self: start; z-index: 2; }
.flow-chain { background: #000; color: #fff; padding: 1rem; display: flex; gap: .5rem; justify-content: space-between; position: relative; }
.flow-node { flex: 1; display: grid; justify-items: center; gap: .4rem; text-align: center; font-size: .78rem; font-weight: 700; color: #9a9a9a; position: relative; z-index: 1; transition: color .3s; }
.flow-node .dot { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #4a4a4a; display: grid; place-items: center; background: #000; transition: background-color .3s, border-color .3s, color .3s; }
.flow-node .dot .i { width: 1.35rem; height: 1.35rem; }
.flow-node.is-on { color: #fff; }
.flow-node.is-on .dot { background: var(--sun); border-color: var(--sun); color: #000; }
.flow-node.is-done .dot { border-color: var(--sun); color: var(--sun); }
.flow-line { position: absolute; left: 12%; right: 12%; top: calc(1rem + 22px); height: 2px; background: #4a4a4a; z-index: 0; }
.flow-line i { display: block; height: 100%; background: var(--sun); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .25s linear; }
@media (min-width: 992px) {
  .flow-chain { flex-direction: column; gap: 0; padding: 1.5rem 1.5rem 1.5rem 1.75rem; min-height: 420px; justify-content: space-between; }
  .flow-node { grid-template-columns: 46px 1fr; justify-items: start; text-align: left; align-items: center; gap: 1rem; font-size: 1rem; }
  .flow-line { left: calc(1.75rem + 22px); right: auto; top: calc(1.5rem + 23px); bottom: calc(1.5rem + 23px); width: 2px; height: auto; }
  .flow-line i { transform-origin: top; transform: scaleY(var(--p, 0)); }
}
.flow-steps { display: grid; gap: 1.25rem; }
.flow-step { background: #fff; padding: 1.5rem; border-left: 6px solid var(--line); transition: border-color .3s; }
.flow-step.is-on { border-left-color: var(--sun); }
@media (min-width: 992px) { .flow-step { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; padding: 2.5rem; } }
.flow-step .n { font: 800 .95rem var(--font-display); font-stretch: 125%; color: var(--mute); margin-bottom: .5rem; }
.flow-step h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .75rem; }

/* ---------------------------------------------------------------- partner band */
.band-ink { background: #000; color: #fff; }
.band-ink h2, .band-ink h3 { color: #fff; }
.paths { display: grid; gap: 1px; background: #333; margin-top: 2rem; }
@media (min-width: 768px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.path { background: #000; padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.path .i { width: 2rem; height: 2rem; color: var(--sun); }
.path p { color: #cfcfcf; margin: 0 0 .5rem; flex: 1; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #000; color: #cfcfcf; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 992px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
.logo-chip { display: inline-block; background: #fff; padding: .5rem .75rem; line-height: 0; margin-bottom: 1rem; }
.logo-chip img { height: 44px; width: auto; }
.site-footer h2 { font: 800 .95rem var(--font-display); font-stretch: 125%; color: var(--sun); margin-bottom: .75rem; }
.site-footer nav a { display: block; color: #e6e6e6; text-decoration: none; padding: .2rem 0; }
.site-footer nav a:hover { color: var(--sun); text-decoration: underline; }
.site-footer p { max-width: 32ch; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; border-top: 1px solid #2c2c2c; margin-top: 2.5rem; padding-top: 1.25rem; font-size: .875rem; }

/* ---------------------------------------------------------------- page chrome */
.page-head { padding: clamp(1.5rem, 4vw, 2.75rem) 0 1rem; }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .875rem; color: var(--mute); margin-bottom: .75rem; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; }
.crumbs a { color: var(--mute); }
.notice { padding: .85rem 1.1rem; border-left: 6px solid #000; background: var(--mist); font-weight: 500; }
.notice-success { border-color: var(--ok); background: #E4F4EA; }
.notice-error, .notice-danger { border-color: var(--bad); background: #FCE8E6; }
.notice-warn { border-color: var(--sun-deep); background: var(--sun-wash); }
.empty { text-align: center; padding: 3.5rem 1rem; border: 2px dashed var(--line); border-radius: var(--r-ui); }
.empty .i { width: 2.5rem; height: 2.5rem; color: var(--mute); margin-bottom: .75rem; }
.empty p { margin-inline: auto; }

/* ---------------------------------------------------------------- shop */
.shop-grid { display: grid; gap: 1.5rem; }
@media (min-width: 992px) { .shop-grid { grid-template-columns: 250px 1fr; gap: 2.5rem; } }
.filters { border: 1px solid var(--line); border-radius: var(--r-ui); padding: 1rem 1.1rem; align-self: start; }
@media (min-width: 992px) { .filters { position: sticky; top: calc(var(--header-h) + 16px); } }
.filters h2 { font: 800 1rem var(--font-display); font-stretch: 125%; margin: 0 0 .5rem; }
.filters ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.filters li a { display: flex; justify-content: space-between; padding: .35rem .5rem; margin-inline: -.5rem; text-decoration: none; color: #111; border-radius: 6px; }
.filters li a:hover { background: var(--mist); }
.filters li a.is-on { background: var(--sun); font-weight: 700; }
.filters li li a { padding-left: 1.25rem; font-size: .92rem; }
.filters small { color: var(--mute); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.toolbar select, .field input, .field select, .field textarea, .qty input { border: 2px solid var(--line); border-radius: var(--r-ui); padding: .55rem .8rem; background: #fff; font: inherit; }
.toolbar select:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: #000; outline: 0; box-shadow: 0 0 0 4px var(--sun); }
.pager { display: flex; justify-content: center; gap: .35rem; margin-top: 2rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: var(--r-ui); text-decoration: none; font-weight: 700; padding: 0 .5rem; color: #000; }
.pager a:hover { border-color: #000; }
.pager a.is-on { background: #000; border-color: #000; color: var(--sun); }
.pager span { border: 0; }

/* ---------------------------------------------------------------- product page */
.pdp { display: grid; gap: 2rem; }
@media (min-width: 992px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.gallery-main { background: var(--mist); aspect-ratio: 1 / 1; display: grid; place-items: center; border-radius: var(--r-ui); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumbs { display: flex; gap: .6rem; margin-top: .75rem; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid var(--line); border-radius: 8px; background: var(--mist); overflow: hidden; }
.thumbs button.is-on { border-color: #000; box-shadow: 0 0 0 3px var(--sun); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp h1 { font-size: clamp(1.7rem, 4.4vw, 2.7rem); margin-bottom: .75rem; }
.pdp-price { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin: 1.25rem 0 .25rem; }
.pdp-price strong { font: 800 clamp(1.9rem, 5vw, 2.7rem) var(--font-display); font-stretch: 115%; }
.pdp-price s { color: var(--mute); font-size: 1.1rem; }
.buybox { border: 2px solid #000; padding: 1.25rem; margin: 1.25rem 0; display: grid; gap: 1rem; }
.buy-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.buy-row .btn { flex: 1 1 120px; white-space: nowrap; }
.buy-row .js-add { flex: 2 1 190px; }
.qty { display: inline-flex; align-items: stretch; border: 2px solid #000; border-radius: var(--r-ui); overflow: hidden; background: #fff; }
.qty button { width: 40px; border: 0; background: var(--mist); font-weight: 800; }
.qty button:hover { background: var(--sun); }
.qty input { width: 54px; text-align: center; border: 0; border-radius: 0; padding: .5rem 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.facts { display: grid; gap: .6rem; padding: 0; list-style: none; margin: 0 0 1rem; }
.facts li { display: flex; gap: .6rem; align-items: start; }
.facts .i { color: #000; margin-top: .2rem; }
.regions { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .9rem; }
.regions span { padding: .2rem .65rem; border: 1px solid var(--line); border-radius: 999px; }
.regions span.on { background: #E4F4EA; border-color: #b9e0c6; color: var(--ok); font-weight: 600; }
.prose { max-width: 70ch; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5rem .75rem; }
.review { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.review p { margin: .25rem 0 0; }

/* ---------------------------------------------------------------- cart */
.cart-grid { display: grid; gap: 2rem; }
@media (min-width: 992px) { .cart-grid { grid-template-columns: 1fr 380px; align-items: start; } }
.cline { display: grid; grid-template-columns: 84px 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .cline { grid-template-columns: 96px 1fr auto; } }
.cline img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--mist); border-radius: 8px; mix-blend-mode: multiply; }
.cline h3 { font-family: var(--font-body); font-stretch: 100%; font-size: 1.05rem; letter-spacing: 0; margin: 0 0 .25rem; }
.cline h3 a { text-decoration: none; }
.cline-meta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: .6rem; }
.cline-total { font: 800 1.15rem var(--font-display); font-stretch: 110%; grid-column: 2; }
@media (min-width: 640px) { .cline-total { grid-column: auto; text-align: right; } }
.link-btn { background: none; border: 0; padding: 0; color: var(--mute); text-decoration: underline; display: inline-flex; gap: .3rem; align-items: center; }
.link-btn:hover { color: var(--bad); }
.summary { border: 2px solid #000; padding: 1.5rem; position: sticky; top: calc(var(--header-h) + 16px); }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin: 0 0 1.25rem; }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .total { font: 800 1.5rem var(--font-display); font-stretch: 115%; border-top: 2px solid #000; padding-top: .75rem; }
.issue { color: var(--bad); font-weight: 600; font-size: .9rem; }

/* ---------------------------------------------------------------- forms (used by all portals) */
.field { display: grid; gap: .35rem; margin-bottom: 1rem; align-content: start; }
.field label { font-weight: 700; font-size: .95rem; }
.field .hint { color: var(--mute); font-size: .85rem; }
.field .err { color: var(--bad); font-size: .875rem; font-weight: 600; }

/* ---------------------------------------------------------------- toasts */
.toast-zone { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 3000; display: grid; gap: .5rem; width: min(92vw, 420px); pointer-events: none; }
.rt-toast { background: #000; color: #fff; padding: .85rem 1.1rem; border-left: 6px solid var(--sun); box-shadow: 0 8px 28px rgba(0,0,0,.28); font-weight: 600; animation: toast-in .2s ease-out; pointer-events: auto; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.rt-toast.bad { border-left-color: #ff6b5e; }
.rt-toast a { color: var(--sun); white-space: nowrap; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------- motion + print */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .wheel { transform: none !important; }
}
@media print { .site-header, .topbar, .site-footer, .toast-zone, .offcanvas { display: none !important; } }

/* =====================================================================
   BATCH 3: auth, forms, dashboards, partners, support
   ===================================================================== */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field select { border: 2px solid var(--line); border-radius: var(--r-ui); padding: .55rem .8rem; background: #fff; font: inherit; width: 100%; }
.field select:focus { border-color: #000; outline: 0; box-shadow: 0 0 0 4px var(--sun); }
.field input, .field textarea { width: 100%; }
.field input[type=file] { padding: .45rem; background: var(--mist); }
.field input[aria-invalid=true], .field select[aria-invalid=true], .field textarea[aria-invalid=true] { border-color: var(--bad); }
.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500 !important; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: #000; flex: none; }
.form-grid { display: grid; gap: 0 1rem; align-items: start; }
@media (min-width: 576px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.dealer-fields { border-left: 6px solid var(--sun); padding-left: 1rem; margin: 0 0 1rem; }
.dealer-fields[hidden] { display: none; }

/* auth layout: form + black Rastimes block */
.auth-grid { display: grid; gap: 2rem; max-width: 1040px; margin-inline: auto; }
@media (min-width: 992px) { .auth-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: start; } }
.auth-main h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); margin-bottom: .5rem; }
.auth-main .lead { margin-bottom: 1.5rem; }
.auth-aside { background: #000; color: #fff; padding: 2rem; display: none; position: sticky; top: calc(var(--header-h) + 24px); }
@media (min-width: 992px) { .auth-aside { display: block; } }
.auth-wheel { max-width: 220px; margin: 0 auto 1.5rem; }
.auth-aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.auth-aside li { display: flex; gap: .6rem; align-items: flex-start; }
.auth-aside .i { color: var(--sun); margin-top: .25rem; }
.role-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid #000; margin-bottom: 1.5rem; }
.role-tabs a { text-align: center; padding: .65rem .25rem; font-weight: 700; text-decoration: none; border-right: 2px solid #000; }
.role-tabs a:last-child { border-right: 0; }
.role-tabs a:hover { background: var(--mist); }
.role-tabs a.is-on { background: #000; color: var(--sun); }
.pick-list { display: grid; gap: .75rem; }
.pick { display: grid; text-align: left; gap: .1rem; padding: 1rem 1.1rem; background: #fff; border: 2px solid #000; border-radius: var(--r-ui); }
.pick:hover:not(:disabled) { background: var(--sun); }
.pick:disabled { border-color: var(--line); color: var(--mute); }
.pick small { color: var(--bad); }
.resend { margin-top: 1.25rem; display: flex; gap: .4rem; flex-wrap: wrap; align-items: baseline; }
.resend .link-btn { color: #000; }
.resend .link-btn:hover { color: #000; text-decoration-thickness: 3px; }

/* dashboards */
.dash { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .dash { grid-template-columns: 1fr 1fr; } .dash-wide { grid-column: 1 / -1; } }
.dash-card { border: 1px solid var(--line); border-radius: var(--r-ui); padding: 1.4rem; background: #fff; }
.dash-card h2 { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; }
.stats { display: grid; gap: 1px; background: #000; border: 1px solid #000; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 1.5rem; }
.stat { background: #fff; padding: 1.25rem; display: grid; gap: .1rem; }
.stat strong { font: 800 clamp(1.5rem, 4vw, 2.2rem)/1.1 var(--font-display); font-stretch: 115%; }
.stat span { color: var(--mute); }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; min-width: 480px; }
.tbl th { text-align: left; font-size: .85rem; color: var(--mute); border-bottom: 2px solid #000; padding: .5rem .6rem; }
.tbl td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); }
.copy-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.copy-row input { flex: 1 1 260px; border: 2px solid var(--line); border-radius: var(--r-ui); padding: .6rem .8rem; background: var(--mist); font: inherit; }

/* partners + about */
.partner { display: grid; gap: 1.5rem; padding: 2.5rem 0; border-top: 2px solid #000; }
@media (min-width: 768px) { .partner { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.partner-icon { width: 2.4rem; height: 2.4rem; margin-bottom: .5rem; }
.how { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.how li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; gap: .8rem; align-items: start; }
.how li::before { content: counter(s); background: var(--sun); font: 800 1rem var(--font-display); width: 2.4rem; height: 2.4rem; display: grid; place-items: center; }
.about-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }

/* support */
.support-grid { display: grid; gap: 2.5rem; }
@media (min-width: 992px) { .support-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.thread { border: 1px solid var(--line); border-radius: var(--r-ui); padding: 1.1rem; }
.msg { padding: .75rem .9rem; margin: .5rem 0; background: var(--mist); border-radius: 8px; word-break: break-word; }
.msg small { display: block; color: var(--mute); margin-bottom: .2rem; }
.msg.staff { background: var(--sun-wash); border-left: 5px solid var(--sun); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq h3 { margin: 0; font-size: 1rem; font-family: var(--font-body); font-stretch: 100%; letter-spacing: 0; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; background: none; border: 0; padding: 1rem 0; font-weight: 700; }
.faq-q .i { transition: transform .2s; }
.faq-q[aria-expanded=true] .i { transform: rotate(180deg); }
.faq-a { padding: 0 0 1rem; margin: 0; color: #2b2b2b; }

/* =====================================================================
   BATCH 4: checkout, orders, invoice
   ===================================================================== */
.co-grid { display: grid; gap: 1.5rem; }
@media (min-width: 992px) { .co-grid { grid-template-columns: 1fr 380px; align-items: start; } }
.co-card { border: 1px solid var(--line); border-radius: var(--r-ui); padding: 1.25rem; margin-bottom: 1rem; background: #fff; }
.co-card h2 { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; margin-bottom: 1rem; }
.co-line { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.co-line:last-child { border-bottom: 0; }
.opt, .sub-opt { display: flex; gap: .75rem; align-items: flex-start; border: 2px solid var(--line); border-radius: var(--r-ui); padding: .9rem 1rem; margin-bottom: .6rem; cursor: pointer; }
.opt:has(input:checked), .sub-opt:has(input:checked) { border-color: #000; background: var(--sun-wash); }
.opt input, .sub-opt input { margin-top: .3rem; accent-color: #000; width: 1.15rem; height: 1.15rem; flex: none; }
.opt span small { display: block; color: var(--mute); font-weight: 400; }
.opt.is-off, .sub-opt.is-off { opacity: .55; cursor: not-allowed; }
.sub-opt { padding: .65rem .9rem; align-items: center; }
.opt-body { padding: 0 0 .75rem 1.9rem; }
.opt-body[hidden] { display: none; }
.sim-box { max-width: 460px; margin: 3rem auto; border: 2px solid #000; padding: 2rem; }
.timeline { list-style: none; padding: 0 0 0 1.1rem; margin: 0; border-left: 3px solid var(--sun); display: grid; gap: .9rem; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -1.62rem; top: .4rem; width: 11px; height: 11px; background: #000; border-radius: 50%; border: 2px solid var(--sun); }
.olist { display: grid; gap: .75rem; }
.orow { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; border: 1px solid var(--line); border-radius: var(--r-ui); padding: 1rem 1.1rem; text-decoration: none; color: #000; background: #fff; }
.orow:hover { border-color: #000; }
.orow-hint { grid-column: 1 / -1; color: #5c4a00; background: var(--sun-wash); padding: .3rem .6rem; border-radius: 6px; font-size: .88rem; font-weight: 600; }
.acct-tabs { max-width: 600px; grid-template-columns: repeat(4, 1fr); }
.invoice-body { background: var(--mist); }
.inv { max-width: 820px; margin: 2rem auto; background: #fff; padding: clamp(1.25rem, 4vw, 2.75rem); border-top: 8px solid var(--sun); }
.inv-top, .inv-meta { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.inv-meta > div { flex: 1 1 200px; }
.inv-tbl { min-width: 0; }
.inv-sum { display: grid; grid-template-columns: 1fr auto; gap: .35rem 2rem; margin: 1.25rem 0 0 auto; max-width: 340px; }
.inv-sum dd { margin: 0; text-align: right; }
.inv-sum .big { font-weight: 800; font-size: 1.1rem; border-top: 2px solid #000; padding-top: .4rem; }
.stamp { display: inline-block; border: 2px solid var(--bad); color: var(--bad); font-weight: 800; padding: .1rem .5rem; margin-top: .3rem; transform: rotate(-3deg); }
.stamp-paid { border-color: var(--ok); color: var(--ok); }
@media print { .no-print { display: none !important; } .invoice-body { background: #fff; } .inv { margin: 0; border-top-width: 4px; } }

h1 .tag { font-size: .85rem; vertical-align: middle; margin-left: .35rem; font-family: var(--font-body); font-stretch: 100%; letter-spacing: 0; padding: .25rem .7rem; }
.inv-logo { height: 56px; width: auto; max-width: none; }
.inv-top h1 { font-size: 1.6rem; }

/* legal pages */
.legal { max-width: 78ch; }
.legal h2 { font-size: 1.15rem; margin: 1.75rem 0 .5rem; }
.legal ol { padding-left: 1.25rem; } .legal li { margin-bottom: .5rem; } .legal ul { padding-left: 1.25rem; }

.paylink { max-width: 560px; margin-inline: auto; }

/* order builder (staff + marketers) */
.ob-results { border: 1px solid #000; background: #fff; max-height: 280px; overflow-y: auto; margin-top: 2px; }
.ob-hit { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; text-align: left; padding: .6rem .8rem; border: 0; border-bottom: 1px solid var(--line); background: #fff; }
.ob-hit:hover:not(:disabled), .ob-hit:focus-visible { background: var(--sun-wash); }
.ob-hit:disabled { opacity: .5; }
.ob-hit small, .ob-none { color: var(--mute); } .ob-none { padding: .7rem .8rem; }
.ob-chip { display: inline-flex; gap: .75rem; align-items: center; background: var(--sun); padding: .5rem .8rem; font-weight: 700; margin-bottom: .5rem; }
.ob-table { min-width: 560px; } .ob-table tr.is-off { background: #FCE8E6; }
.ob-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid #000; margin-top: 1rem; padding-top: .6rem; font-size: 1.2rem; }
.ob-total strong { font: 800 1.6rem var(--font-display); font-stretch: 115%; }
.mk-tabs { max-width: 560px; grid-template-columns: repeat(4, 1fr); }

.inst-tabs { max-width: 360px; grid-template-columns: repeat(2, 1fr); }
.stars { display: inline-flex; flex-direction: row-reverse; gap: .15rem; margin-bottom: .5rem; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--sun-deep); }
.stars input:focus-visible + label { outline: 3px solid #000; outline-offset: 2px; }
