/* Super Grup v2 — "Sesame & Damask". Quiet sesame-white page; red is the only action colour;
   royal blue frames (top bar, links, wholesale); black damask only for hero + footer. */
:root {
  --bg: #F5F4F0; --surface: #FFFFFF; --tile: #EFE6D6; --ink: #16192B; --muted: #5A5E6E; --line: #E2E0D9;
  --red: #C8102E; --red-hover: #A50D26; --on-red: #FFFFFF; --blue: #2A3593; --on-blue: #FFFFFF;
  --green: #3F6B12; --green-wash: #EAF3DC; --gold: #E7B53A; --damask: #111214; --on-dark: #F2EFE8;
  --shadow: 0 12px 24px rgba(22, 25, 43, .08);
  --display: "Rubik", "Segoe UI", system-ui, sans-serif;
  --body: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --wrap: 1240px; --r: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14151A; --surface: #1C1D24; --tile: #2A2620; --ink: #ECEAE4; --muted: #A3A6B3; --line: #2E2F38;
    --red: #FF5A5F; --red-hover: #FF7A7E; --on-red: #14151A; --blue: #8C98FF; --on-blue: #14151A;
    --green: #9BD25A; --green-wash: #22301A; --damask: #0B0C0E; --shadow: 0 12px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14151A; --surface: #1C1D24; --tile: #2A2620; --ink: #ECEAE4; --muted: #A3A6B3; --line: #2E2F38;
  --red: #FF5A5F; --red-hover: #FF7A7E; --on-red: #14151A; --blue: #8C98FF; --on-blue: #14151A;
  --green: #9BD25A; --green-wash: #22301A; --damask: #0B0C0E; --shadow: 0 12px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--body); }
@media (min-width: 1024px) { body { font-size: 1.0625rem; } }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 500; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 16px; }
@media (min-width: 768px) { .wrap { padding-inline: 24px; } }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.section { padding-block: 56px; }
@media (min-width: 1024px) { .section { padding-block: 88px; } }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head p { max-width: 46em; }
.link-more { font-weight: 600; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 1rem var(--display); text-decoration: none; background: var(--red); color: var(--on-red); transition: background .15s; }
.btn:hover { background: var(--red-hover); }
.btn.block { width: 100%; min-height: 52px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px currentColor; }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.btn.ghost-light { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 2px var(--on-dark); }
.btn.white { background: #fff; color: #2A3593; }
.btn.quote { background: var(--blue); color: var(--on-blue); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* top bar + header */
.topbar { background: var(--blue); color: #fff; font-size: .8125rem; display: none; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; min-height: 34px; align-items: center; }
@media (min-width: 900px) { .topbar { display: block; } }
:root[data-theme="dark"] .topbar, :root:not([data-theme="light"]) .topbar { color: #fff; }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 16px; min-height: 60px; }
@media (min-width: 1024px) { .head-row { min-height: 72px; } }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 34px; width: auto; }
@media (min-width: 1024px) { .logo img { height: 40px; } }
.nav { display: none; flex: 1; justify-content: center; gap: 2px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9375rem; padding: 10px 10px; position: relative; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .15s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (min-width: 1100px) { .nav { display: flex; } }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px; border-radius: 999px; border: 0; background: var(--red); color: var(--on-red);
  font: 700 .9375rem var(--display); cursor: pointer; text-decoration: none; }
.cart-btn:hover { background: var(--red-hover); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn .count { background: var(--ink); color: var(--bg); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .75rem; padding: 0 6px; font-variant-numeric: tabular-nums; }
.cart-btn .lbl { display: none; }
@media (min-width: 600px) { .cart-btn .lbl { display: inline; } }
.burger { display: inline-grid; }
@media (min-width: 1100px) { .burger { display: none; } }

/* mobile nav sheet */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(17, 18, 20, .5); }
.sheet-panel { position: absolute; inset: 0 auto 0 0; width: min(88vw, 380px); background: var(--surface); padding: calc(12px + env(safe-area-inset-top, 0px)) 0 24px; overflow-y: auto; display: flex; flex-direction: column; }
.sheet-panel .sheet-top { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 12px 20px; border-bottom: 1px solid var(--line); }
.sheet-panel nav a { display: flex; align-items: center; min-height: 56px; padding: 0 20px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.sheet-panel .sheet-contact { padding: 20px; display: grid; gap: 6px; font-size: .9375rem; }

/* damask bands */
.damask { background: linear-gradient(rgba(17, 18, 20, .55), rgba(17, 18, 20, .55)), var(--damask) url("../images/ui/damask.jpg") center top / 720px auto repeat; color: var(--on-dark); }
.damask h1, .damask h2, .damask h3 { color: var(--on-dark); }
.damask a { color: var(--on-dark); }

/* hero */
.hero { overflow: hidden; }
.hero-main { display: grid; grid-template-columns: 1fr; gap: 24px; padding-block: 40px 32px; align-items: center; }
@media (min-width: 900px) { .hero-main { grid-template-columns: 1.05fr .95fr; min-height: 520px; padding-block: 56px; } }
.hero-copy { display: flex; flex-direction: column; gap: 18px; max-width: 34rem; }
.hero-copy .eyebrow { color: #E7B53A; }
.hero-copy .lede { font-size: 1.125rem; color: #D9D5CC; }
.hero-art { position: relative; height: 300px; }
@media (min-width: 900px) { .hero-art { height: 460px; } }
.hero-disc { position: absolute; inset: 6% 6% 4% 10%; border-radius: 50%; background: radial-gradient(closest-side, #F3EBDC, #E6D6B8 70%, rgba(230, 214, 184, 0)); opacity: .95; }
.hero-art img { position: absolute; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); height: auto; }
.hero-art .a1 { width: 56%; left: 4%; top: 30%; transform: rotate(-6deg); }
.hero-art .a2 { width: 52%; right: 2%; top: 16%; transform: rotate(5deg); }
.hero-art .a3 { width: 40%; left: 30%; top: 60%; transform: rotate(-2deg); }
.hero-art .a4 { width: 34%; left: 12%; top: 4%; transform: rotate(8deg); }
.hero-art .a5 { width: 44%; right: 6%; top: 66%; transform: rotate(-4deg); }
.trust-strip { border-top: 1px solid rgba(242, 239, 232, .14); }
.trust-strip ul { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .9375rem; color: #D9D5CC; }
.trust-strip li::before { content: "✓"; color: #E7B53A; font-weight: 700; margin-right: 8px; }

/* brand strip */
.brand-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.brand-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 40px; padding-block: 22px; }
.brand-strip a { display: grid; place-items: center; min-height: 64px; padding: 4px 6px; border-radius: 10px; }
.brand-strip a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.brand-strip img { width: auto; max-width: 100%; }

/* category tiles */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1024px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.cat { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--tile); text-decoration: none; max-width: 100%; }
.cat picture, .cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cat:hover img { transform: scale(1.04); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(17, 18, 20, .82)); }
.cat .cat-txt { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #fff; }
.cat strong { display: block; font: 700 clamp(1rem, 2.4vw, 1.25rem)/1.2 var(--display); }
.cat small { color: #E9E6DE; font-size: .8125rem; }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.row-scroll > * { scroll-snap-align: start; }
@media (min-width: 760px) { .row-scroll { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
@media (min-width: 1100px) { .row-scroll { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; min-width: 0; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.frame { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--tile); max-width: 100%; }
.frame picture { display: block; width: 100%; height: 100%; }
.frame img { width: 100%; height: 100%; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.frame.cut img { object-fit: contain; padding: 12%; filter: drop-shadow(0 10px 14px rgba(60, 40, 10, .22)); }
.frame.icon img { object-fit: contain; padding: 18%; }
.chip-brand { position: absolute; top: 8px; left: 8px; z-index: 1; background: #fff; border-radius: 6px; padding: 3px 5px; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.chip-brand img { height: 26px; width: auto; padding: 0; filter: none; object-fit: contain; box-shadow: none; }
.badges { position: absolute; top: 8px; right: 8px; z-index: 1; display: flex; flex-direction: column; align-items: end; gap: 4px; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge.org { background: var(--green-wash); color: var(--green); }
.badge.sale { background: var(--red); color: var(--on-red); }
.badge.new { background: var(--gold); color: #16192B; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 4px 4px; flex: 1; }
.card-body h3 { font: 600 .9375rem/1.3 var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
@media (min-width: 760px) { .card-body h3 { font-size: 1rem; } }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card .frame, .card .pills, .card .qa { position: relative; z-index: 2; }
.price { font: 700 1.25rem var(--display); color: var(--red); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.price small { font: 500 .875rem var(--body); color: var(--muted); }
.price s { font: 500 .9375rem var(--body); color: var(--muted); }
.price.quote { color: var(--blue); font: 600 1rem var(--body); }
.card .price { font-size: 1.125rem; }
.pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.pill { flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 .8125rem var(--body); cursor: pointer; white-space: nowrap; }
.pill:hover { border-color: var(--ink); }
.pill[aria-checked="true"], .pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.qa { margin-top: auto; padding-top: 6px; }
.qa .btn { width: 100%; min-height: 44px; font-size: .9375rem; }

/* shop toolbar */
.toolbar { display: grid; gap: 12px; margin-bottom: 22px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; min-height: 50px; }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); outline: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips .pill { min-height: 40px; font-size: .875rem; }
.chips .pill img { height: 18px; width: auto; }
.chips .pill.brand { display: inline-flex; align-items: center; background: #fff; }
.chips .pill.brand[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--red); background: #fff; border-color: var(--red); color: #16192B; }
.result-count { font-size: .875rem; color: var(--muted); }
.empty { padding: 32px 0; color: var(--muted); }

/* breadcrumbs */
.crumbs { font-size: .875rem; color: var(--muted); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* page heads (category / brand) */
.page-head { padding-block: 18px 8px; display: grid; gap: 10px; }
.page-head p { max-width: 62ch; color: var(--muted); }
.brand-band { border-top: 6px solid var(--brand-color, var(--red)); }
.brand-band .wrap { display: grid; gap: 18px; padding-block: 40px; align-items: center; }
@media (min-width: 800px) { .brand-band .wrap { grid-template-columns: auto 1fr; gap: 40px; } }
.brand-band .logo-big { height: 96px; width: auto; }
.brand-band p { color: #D9D5CC; max-width: 60ch; }
.brand-band .quote { font: 500 1.125rem var(--display); color: #E7B53A; }

/* product page */
.product { display: grid; gap: 28px; padding-block: 16px 48px; }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.gallery { display: grid; gap: 10px; align-self: start; }
@media (min-width: 900px) { .gallery { position: sticky; top: 96px; } }
.gallery .frame { border-radius: 16px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--tile); cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.buy .brand-logo { height: 36px; width: auto; align-self: start; }
.buy h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
.buy .price { font-size: 2rem; }
.buy .price.quote { font-size: 1.25rem; }
.buy .variants .pill { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.buy .variants { flex-wrap: wrap; overflow: visible; }
.vnote { font-size: .875rem; color: var(--muted); }
.qty-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 44px; height: 50px; border: 0; background: none; font-size: 1.25rem; cursor: pointer; color: var(--ink); }
.qty input { width: 44px; text-align: center; border: 0; background: none; font: 600 1rem var(--body); color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-row .btn { flex: 1; min-width: 200px; min-height: 52px; }
.mini-trust { list-style: none; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; font-size: .9375rem; }
.mini-trust li { display: flex; gap: 10px; }
.mini-trust svg { width: 18px; height: 18px; flex: none; color: var(--green); margin-top: 3px; }
.desc { max-width: 62ch; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; border-top: 1px solid var(--line); padding-top: 16px; font-size: .9375rem; margin: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-variant-numeric: tabular-nums; }
.specs .ean { letter-spacing: .06em; font-weight: 500; }
.b2b-hint { padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--blue) 9%, var(--surface)); font-size: .9375rem; }

/* story + wholesale + contact */
.story { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.story picture img { border-radius: 20px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.facts { display: grid; gap: 16px; margin-top: 18px; }
.fact { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.fact b { font: 700 2rem var(--display); color: var(--red); font-variant-numeric: tabular-nums; }
.wholesale { background: var(--blue); color: #fff; border-radius: 24px; padding: 32px 22px; display: grid; gap: 18px; }
:root[data-theme="dark"] .wholesale { background: #2A3593; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wholesale { background: #2A3593; } }
@media (min-width: 900px) { .wholesale { grid-template-columns: 1.3fr 1fr; padding: 48px; align-items: center; gap: 40px; } }
.wholesale h2 { color: #fff; }
.wholesale p, .wholesale li { color: #E3E6FA; }
.wholesale ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.wholesale .side { display: grid; gap: 12px; justify-items: start; }
.wholesale a:not(.btn) { color: #fff; }
.contact-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.contact-grid strong { font: 600 1.125rem var(--display); overflow-wrap: anywhere; }
.contact-grid a { overflow-wrap: anywhere; }

/* forms */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 14px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 600; }
.field .hint { font-size: .8125rem; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid #B9BAC2; background: var(--bg); color: var(--ink); min-height: 48px; }
:root[data-theme="dark"] .field input, :root[data-theme="dark"] .field textarea, :root[data-theme="dark"] .field select { border-color: #4A4C58; }
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 25%, transparent); }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.form-msg { padding: 14px 16px; border-radius: 12px; font-size: .9375rem; }
.form-msg.ok { background: var(--green-wash); color: var(--green); }
.form-msg.err { background: color-mix(in srgb, var(--red) 10%, var(--surface)); color: var(--red); }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .8125rem; justify-self: start; }

/* cart page + drawer lines */
.checkout { display: grid; gap: 28px; padding-block: 16px 56px; align-items: start; }
@media (min-width: 960px) { .checkout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; } }
.group-title { font: 600 .8125rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 4px; }
.lines { display: grid; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line); }
.line .frame { width: 64px; border-radius: 10px; }
.line .frame.cut img { padding: 8%; }
.line .nm { font-weight: 600; color: var(--ink); text-decoration: none; display: block; }
.line .meta { font-size: .875rem; color: var(--muted); }
.line .right { display: grid; justify-items: end; gap: 6px; font-variant-numeric: tabular-nums; }
.line .qty button { width: 36px; height: 36px; font-size: 1.1rem; }
.line .qty input { width: 34px; font-size: .9375rem; }
.line .rm { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .8125rem; padding: 4px 0; }
.totals { display: grid; gap: 6px; padding-top: 14px; }
.totals .sum { display: flex; justify-content: space-between; font: 700 1.25rem var(--display); font-variant-numeric: tabular-nums; }
.note { font-size: .875rem; color: var(--muted); }
.success { text-align: left; display: grid; gap: 14px; }
.order-no { font: 700 clamp(1.5rem, 4vw, 2.25rem) var(--display); color: var(--red); letter-spacing: .02em; }
.order-out { white-space: pre-wrap; font: .8125rem/1.5 ui-monospace, Menlo, Consolas, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto; max-height: 340px; }

.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(17, 18, 20, .5); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(100vw, 420px); background: var(--surface); display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); box-shadow: -20px 0 40px rgba(0, 0, 0, .18); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.25rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 20px 12px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; }
.drawer.open .drawer-panel { animation: slidein .22s ease-out; }
@keyframes slidein { from { transform: translateX(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green); }

/* sticky bars (mobile) */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--surface); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; box-shadow: 0 -8px 20px rgba(0, 0, 0, .06); }
.sticky-bar .grow { flex: 1; min-width: 0; }
.sticky-bar .price { font-size: 1.125rem; }
.sticky-bar .btn { min-height: 46px; }
@media (min-width: 900px) { .sticky-bar { display: none !important; } }
body.has-bar { padding-bottom: 76px; }
@media (min-width: 900px) { body.has-bar { padding-bottom: 0; } }

/* footer */
.site-foot { margin-top: 24px; }
.site-foot .wrap { padding-block: 48px 28px; display: grid; gap: 32px; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-grid h3 { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: #B9B5AC; margin-bottom: 10px; font-family: var(--body); font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid a { color: var(--on-dark); text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-grid p { color: #CFCAC0; font-size: .9375rem; }
.foot-logo { height: 40px; width: auto; margin-bottom: 14px; }
.foot-bottom { border-top: 1px solid rgba(242, 239, 232, .14); padding-top: 18px; font-size: .8125rem; color: #B9B5AC; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); opacity: 0; z-index: 80; background: var(--ink); color: var(--bg);
  padding: 12px 16px; border-radius: 999px; font-weight: 600; transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100% - 32px); display: flex; gap: 12px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font-weight: 700; padding: 0; }
@media (min-width: 900px) { .toast { bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (max-width: 700px) {
  .brand-strip .wrap { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 22px; }
  .brand-strip a { flex: none; }
}
.fact { grid-template-columns: 140px 1fr; }
.timeline { display: grid; gap: 0; border-left: 3px solid var(--red); margin-left: 6px; }
.tl { position: relative; padding: 0 0 26px 26px; display: grid; gap: 6px; max-width: 70ch; }
.tl::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--surface); border: 3px solid var(--red); }
.tl b { font: 700 1.25rem var(--display); color: var(--red); }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.faq summary { font: 600 1.0625rem var(--body); cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--muted); }
