/*
 * CareAffinity Shop — public storefront styles (Batch 40)
 *
 * Plain CSS on purpose: the admin app's Tailwind build is precompiled into
 * public/build, so any utility class not already used elsewhere would be
 * missing in production until someone re-runs `npm run build` (the Batch 28
 * install-banner problem). This file has no build step and works as-is.
 *
 * Design: a clinical-supplies counter. One family (Atkinson Hyperlegible —
 * drawn for low-vision readability, which suits a care audience), navy ink
 * from the CareAffinity brand, and "nitrile blue" for actions. The one bold
 * element is the bulk-price ladder on product pages; everything else is
 * quiet. Products without photos get a printed carton-label tile.
 *
 * --ink and --action are overridden per store from its brand settings.
 */

:root {
    --ink: #14283F;
    --ink-2: #3D5068;
    --muted: #64748B;
    --surface: #FFFFFF;
    --mist: #EEF3F6;
    --mist-2: #F6F9FB;
    --line: #D5DEE5;
    --line-soft: #E6ECF0;
    --action: #3B5BDB;
    --action-ink: #FFFFFF;
    --action-soft: #E8EDFC;
    --ok: #2F7D4F;
    --ok-soft: #E3F2E9;
    --warn: #B45309;
    --warn-soft: #FDF1E3;
    --danger: #B42318;
    --danger-soft: #FDECEA;
    --r-sm: 6px;
    --r: 10px;
    --r-lg: 14px;
    --shadow: 0 1px 2px rgba(20, 40, 63, .06), 0 4px 16px rgba(20, 40, 63, .06);
    --shadow-lift: 0 10px 30px rgba(42, 21, 114, .12);
    --font: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
    --wrap: 1240px;

    /* Batch 41: CareTrust brand — the logo mark's violet → blue — plus the
       soft pastel tints the Medion/Medimela-style promo cards sit on. */
    --brand-from: #7635FB;
    --brand-to: #0174F1;
    --brand-grad: linear-gradient(100deg, var(--brand-from) 0%, var(--brand-to) 100%);
    --brand-deep: #1E1452;
    --lilac: #F3EEFF;
    --lilac-line: #E2D7FE;
    --sky: #E8F3FF;
    --sky-line: #CFE4FD;
    --peach: #FFF1EA;
    --peach-line: #FBD9C8;
    --coral: #F2685B;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.shop {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
/* :where() keeps these resets at zero specificity, so component classes like
   .s-btn-primary always win over them. */
:where(.shop) img { max-width: 100%; display: block; }
:where(.shop) a { color: inherit; text-decoration: none; }
:where(.shop) :is(button, input, select, textarea) { font: inherit; color: inherit; }
.shop [x-cloak] { display: none !important; }
.shop :focus-visible { outline: 3px solid var(--action); outline-offset: 2px; border-radius: 4px; }
.shop .num { font-variant-numeric: tabular-nums; }
.shop .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .shop *, .shop *::before, .shop *::after { transition: none !important; animation: none !important; } }

.s-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (max-width: 640px) { .s-wrap { padding: 0 16px; } }

/* ---------- Header ---------- */
.s-preview { background: #FFF7E6; color: #7A4B00; font-size: 14px; border-bottom: 1px solid #F3D9A4; }
.s-preview .s-wrap { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.s-preview a { font-weight: 700; text-decoration: underline; }

/* Announcement strip: brand gradient, like Medimela's top banner. */
.s-strip { background: var(--brand-grad); color: rgba(255,255,255,.92); font-size: 14px; }
.s-strip .s-wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.s-strip a:hover { color: #fff; text-decoration: underline; }
.s-strip i { margin-right: 6px; opacity: .85; }
.s-strip-links { display: flex; gap: 22px; }
@media (max-width: 640px) { .s-strip .s-hide-sm { display: none; } }

.s-header { background: var(--surface); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 40; }
.s-header .s-wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; min-height: 84px; }
.s-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.s-brand img { height: 44px; width: auto; }
.s-brand-name { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.s-brand-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Search pill with a category picker on the left (Medimela). */
.s-search { position: relative; display: flex; align-items: center; max-width: 660px; width: 100%; justify-self: center;
    height: 52px; border: 2px solid var(--line-soft); border-radius: 999px; background: var(--mist-2); transition: border-color .15s, background .15s; }
.s-search:focus-within { border-color: var(--brand-from); background: #fff; box-shadow: 0 0 0 4px rgba(118, 53, 251, .10); }
.s-search-cat { flex: none; max-width: 190px; height: 100%; border: 0; background: transparent; padding: 0 12px 0 20px;
    font-weight: 700; font-size: 14px; color: var(--ink-2); cursor: pointer; border-right: 1px solid var(--line); border-radius: 999px 0 0 999px; }
.s-search-cat:focus { outline: none; }
.s-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 16px; font-size: 16px; }
.s-search input:focus { outline: none; }
.s-search-go { flex: none; width: 42px; height: 42px; margin-right: 4px; border: 0; border-radius: 50%; background: var(--brand-grad); color: #fff; cursor: pointer; font-size: 16px; transition: transform .15s, box-shadow .15s; }
.s-search-go:hover { transform: scale(1.06); box-shadow: 0 6px 16px rgba(1, 116, 241, .35); }

.s-tools { display: flex; align-items: center; gap: 8px; }
.s-tool { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px; border-radius: var(--r); font-weight: 700; font-size: 15px; background: none; border: 0; cursor: pointer; }
.s-tool:hover { background: var(--mist); }
.s-tool i { font-size: 20px; }
.s-account .s-tool-label { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.s-account small { font-size: 12px; font-weight: 400; color: var(--muted); }
.s-account b { font-size: 15px; }
.s-basket-btn { position: relative; background: var(--brand-grad); color: #fff; border-radius: 999px; padding: 0 18px; box-shadow: 0 6px 16px rgba(1, 116, 241, .25); }
.s-basket-btn:hover { background: var(--brand-grad); filter: brightness(1.06); }
.s-count { min-width: 22px; height: 22px; border-radius: 11px; background: #fff; color: var(--brand-from); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
@media (max-width: 900px) {
    .s-header .s-wrap { grid-template-columns: 1fr auto; gap: 12px; padding-top: 10px; padding-bottom: 12px; min-height: 0; }
    .s-search { grid-column: 1 / -1; grid-row: 2; max-width: none; height: 48px; }
    .s-search-cat { max-width: 120px; padding-left: 14px; }
    .s-tool .s-tool-label { display: none; }
    .s-brand-sub { display: none; }
}

/* Category bar: "Browse categories" button + dropdown (Medimela), quick links, a deals link. */
.s-rail { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.s-rail .s-wrap { display: flex; align-items: center; gap: 18px; min-height: 58px; }
.s-browse { position: relative; flex: none; }
.s-browse-btn { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border: 0; border-radius: var(--r);
    background: var(--brand-grad); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; min-width: 230px; }
.s-browse-btn span { flex: 1; text-align: left; }
.s-browse-caret { font-size: 12px; transition: transform .15s; }
.s-browse-caret.is-open { transform: rotate(180deg); }
.s-browse-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 300px; max-height: 70vh; overflow-y: auto;
    background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-lift); padding: 8px; }
.s-browse-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 15px; color: var(--ink-2); }
.s-browse-menu a:hover { background: var(--lilac); color: var(--brand-from); }
.s-browse-menu a i { width: 20px; text-align: center; color: var(--brand-from); }
.s-browse-menu .s-browse-all { justify-content: space-between; margin-top: 4px; border-top: 1px solid var(--line-soft); border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 700; color: var(--brand-to); }
.s-rail-links { flex: 1; min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.s-rail-links::-webkit-scrollbar { display: none; }
.s-rail-links a { flex: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.s-rail-links a:hover { color: var(--brand-from); }
.s-rail-links a.is-active { background: var(--lilac); color: var(--brand-from); }
.s-rail-deal { flex: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--coral); }
.s-rail-deal:hover { text-decoration: underline; }
@media (max-width: 900px) {
    .s-rail .s-wrap { gap: 10px; min-height: 52px; }
    .s-browse-btn { min-width: 0; }
    .s-browse-btn span { display: none; }
    .s-rail-deal { display: none; }
}

/* ---------- Buttons & forms ---------- */
.s-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 18px; border-radius: var(--r); border: 2px solid transparent;
    font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.s-btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 16px rgba(1, 116, 241, .22); }
.s-btn-primary:hover { filter: brightness(1.06); box-shadow: 0 8px 20px rgba(1, 116, 241, .32); }
.s-btn-coral { background: var(--coral); color: #fff; box-shadow: 0 6px 16px rgba(242, 104, 91, .25); }
.s-btn-coral:hover { filter: brightness(1.05); }
.s-btn-white { background: #fff; color: var(--brand-from); }
.s-btn-white:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.s-btn-ink { background: var(--ink); color: #fff; }
.s-btn-ink:hover { background: var(--ink-2); }
.s-btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.s-btn-ghost:hover { border-color: var(--ink-2); }
.s-btn-link { background: none; border: 0; color: var(--action); padding: 0; height: auto; font-weight: 700; }
.s-btn-link:hover { text-decoration: underline; }
.s-btn-lg { height: 54px; font-size: 17px; padding: 0 24px; }
.s-btn-sm { height: 36px; font-size: 14px; padding: 0 12px; border-radius: var(--r-sm); }
.s-btn-block { width: 100%; }
.s-btn[disabled], .s-btn.is-disabled { opacity: .5; cursor: not-allowed; }
.s-btn .s-spin { display: none; }
.s-btn[data-loading] .s-spin { display: inline-block; }

.s-field { display: flex; flex-direction: column; gap: 6px; }
.s-field > label, .s-label { font-weight: 700; font-size: 15px; }
.s-field .s-opt { font-weight: 400; color: var(--muted); }
.s-input, .s-select, .s-textarea {
    width: 100%; min-height: 46px; padding: 10px 12px; border: 2px solid var(--line);
    border-radius: var(--r-sm); background: #fff; font-size: 16px; transition: border-color .15s;
}
.s-textarea { min-height: 96px; resize: vertical; }
.s-input:focus, .s-select:focus, .s-textarea:focus { outline: none; border-color: var(--action); }
.s-input.is-invalid, .s-select.is-invalid { border-color: var(--danger); }
.s-error { color: var(--danger); font-size: 14px; }
.s-hint { color: var(--muted); font-size: 14px; }
.s-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.s-grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .s-grid-2, .s-grid-3 { grid-template-columns: 1fr; } }
.s-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.s-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--action); flex: none; }

/* ---------- Notices & badges ---------- */
.s-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid; font-size: 15px; }
.s-notice i { margin-top: 3px; }
.s-notice-ok { background: var(--ok-soft); border-color: #B9DEC6; color: #1F5C39; }
.s-notice-warn { background: var(--warn-soft); border-color: #F2CFA2; color: #7C3A06; }
.s-notice-danger { background: var(--danger-soft); border-color: #F5C2BC; color: #8A1B12; }
.s-notice-info { background: var(--action-soft); border-color: #C6D2F7; color: #24398C; }

.s-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.s-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.s-stock-in_stock { color: var(--ok); }
.s-stock-low_stock, .s-stock-backorder { color: var(--warn); }
.s-stock-out_of_stock { color: var(--danger); }

.s-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--mist); color: var(--ink-2); }
.s-tag-action { background: var(--action-soft); color: var(--action); }
.s-tag-ok { background: var(--ok-soft); color: var(--ok); }
.s-tag-warn { background: var(--warn-soft); color: var(--warn); }
.s-tag-danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- Carton-label placeholder (no product photo) ---------- */
.s-visual { position: relative; aspect-ratio: 1 / 1; background: #fff; border-radius: var(--r); overflow: hidden; }
.s-visual img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.s-label-tile {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px;
    padding: 14px 14px 34px; background: linear-gradient(160deg, var(--lilac) 0%, var(--sky) 100%);
}
.s-label-card { background: #fff; border: 1px solid var(--lilac-line); border-radius: 10px; padding: 10px 12px; box-shadow: 0 4px 14px rgba(42, 21, 114, .07); }
.s-label-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: var(--brand-from); border-bottom: 1px solid var(--lilac-line); padding-bottom: 6px; margin-bottom: 8px; gap: 8px; }
.s-label-top i { font-size: 16px; color: var(--brand-to); }
.s-label-name { font-weight: 700; font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s-label-pack { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.s-label-pack strong { font-size: 26px; line-height: 1; letter-spacing: -.02em; }
.s-label-pack span { font-size: 13px; color: var(--ink-2); }
.s-label-foot { position: absolute; left: 14px; right: 14px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.s-label-bars { height: 18px; width: 72px; background: repeating-linear-gradient(90deg, var(--brand-deep) 0 2px, transparent 2px 4px, var(--brand-deep) 4px 5px, transparent 5px 8px); opacity: .35; }
.s-visual-lg .s-label-tile { padding: 40px 40px 56px; }
.s-visual-lg .s-label-foot { left: 40px; right: 40px; bottom: 22px; font-size: 13px; }
.s-visual-lg .s-label-card { padding: 18px 20px; }
.s-visual-lg .s-label-name { font-size: 22px; -webkit-line-clamp: 4; }
.s-visual-lg .s-label-pack strong { font-size: 44px; }
.s-visual-lg .s-label-top { font-size: 14px; }

/* ---------- Product cards ---------- */
.s-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
@media (max-width: 520px) { .s-products { grid-template-columns: 1fr 1fr; gap: 10px; } }
.s-card { position: relative; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.s-card:hover { border-color: var(--lilac-line); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.s-card .s-visual { border-radius: 0; }

/* Corner badges */
.s-badges { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; pointer-events: none; }
.s-badge { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.s-badge-sale { background: var(--coral); }
.s-badge-deal { background: var(--brand-grad); }
.s-badge-warn { background: #E8930C; }
.s-badge-out { background: #8492A6; }
.s-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.s-card-cat { font-size: 13px; color: var(--muted); }
.s-card-name { font-weight: 700; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.s-card-name:hover { color: var(--action); }
.s-card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.s-card-price strong { font-size: 20px; letter-spacing: -.01em; }
.s-card-price s { color: var(--muted); font-size: 14px; }
.s-card-from { font-size: 13px; color: var(--ok); font-weight: 700; }
.s-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.s-card-add { height: 40px; width: 40px; padding: 0; border-radius: 50%; flex: none; box-shadow: none; }
.s-card:hover .s-card-add { box-shadow: 0 6px 16px rgba(1, 116, 241, .3); }
@media (max-width: 520px) { .s-card-body { padding: 10px; } .s-card-name { font-size: 14px; } .s-card-price strong { font-size: 17px; } }

/* ---------- Home (Batch 41: Medion / Medimela patterns in the CareTrust palette) ---------- */
.s-hero { position: relative; overflow: hidden; background: transparent; }
/* gradient stops 56px short of the bottom so the search card below sits half on it, half on white */
.s-hero::before { content: ""; position: absolute; inset: 0 0 56px 0; background: linear-gradient(115deg, #F6F1FF 0%, #EEF4FF 45%, #E3F4FF 100%); }
.s-hero > * { position: relative; }
.s-hero-deco { position: absolute !important; inset: 0 0 56px 0; overflow: hidden; pointer-events: none; }
.s-hero-deco span { position: absolute; border-radius: 50%; pointer-events: none; }
.s-hero-deco span:nth-child(1) { width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(1,116,241,.16), transparent 65%); }
.s-hero-deco span:nth-child(2) { width: 340px; height: 340px; left: -120px; bottom: -80px; background: radial-gradient(circle, rgba(118,53,251,.14), transparent 65%); }
.s-hero-deco span:nth-child(3) { width: 14px; height: 14px; left: 46%; top: 70px; background: var(--brand-from); opacity: .35; box-shadow: 120px 220px 0 -3px var(--brand-to), -260px 160px 0 -4px var(--brand-from); }
.s-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 40px; }
.s-ribbon { display: inline-block; background: var(--brand-grad); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    padding: 6px 22px 6px 14px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%); margin-bottom: 18px; }
.s-hero h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 16px; max-width: 15ch; color: var(--brand-deep); }
.s-grad-text { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-hero p { font-size: 18px; color: var(--ink-2); margin: 0 0 26px; max-width: 46ch; }
.s-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.s-hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.s-hero-facts i { color: var(--brand-to); margin-right: 6px; }

.s-hero-art { --cw: 210px; position: relative; height: 420px; }
/* The stage tilts a little towards the mouse (--rx/--ry set by Alpine). */
.s-hero-stage { position: absolute; inset: 0; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .35s ease-out; transform-style: preserve-3d; }
.s-hero-ring { position: absolute; inset: 20px 40px; border-radius: 50%; border: 2px dashed rgba(118,53,251,.25);
    background: radial-gradient(circle, rgba(255,255,255,.9) 0 40%, transparent 41%), radial-gradient(circle, transparent 0 55%, rgba(1,116,241,.06) 56% 70%, transparent 71%);
    animation: s-spin 70s linear infinite; }
/* A small dot travelling round the ring. */
.s-hero-orbit-dot { position: absolute; inset: 20px 40px; border-radius: 50%; animation: s-spin 14s linear infinite; pointer-events: none; }
.s-hero-orbit-dot::before { content: ""; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-grad); box-shadow: 0 0 0 5px rgba(118,53,251,.12); }

/* Cards move between five places round the carousel; the move itself is the transition. */
.s-hero-card { position: absolute; display: block; width: var(--cw); left: calc(50% - var(--cw) / 2); top: 30px; color: inherit; text-decoration: none;
    transition: left .9s cubic-bezier(.65,.05,.36,1), top .9s cubic-bezier(.65,.05,.36,1), transform .9s cubic-bezier(.65,.05,.36,1), opacity .7s ease, filter .7s ease;
    will-change: left, top, transform; cursor: pointer; }
.s-hero-card[data-slot="center"] { left: calc(50% - var(--cw) / 2); top: 0; transform: rotate(0deg) scale(1.06); z-index: 4; }
.s-hero-card[data-slot="left"] { left: 3%; top: 64px; transform: rotate(-7deg) scale(.86); z-index: 3; }
.s-hero-card[data-slot="right"] { left: calc(97% - var(--cw)); top: 104px; transform: rotate(6deg) scale(.86); z-index: 3; }
.s-hero-card[data-slot="back-right"] { left: calc(72% - var(--cw) / 2); top: 6px; transform: rotate(12deg) scale(.62); opacity: .0; z-index: 1; filter: blur(2px); }
.s-hero-card[data-slot="back-left"] { left: calc(28% - var(--cw) / 2); top: 20px; transform: rotate(-12deg) scale(.62); opacity: .0; z-index: 1; filter: blur(2px); }
.s-hero-card[data-slot="hidden"] { transform: scale(.4); opacity: 0; z-index: 0; pointer-events: none; }
.s-hero-card[data-slot="left"]:hover, .s-hero-card[data-slot="right"]:hover { filter: brightness(1.03); }

/* The card face: bobs gently on its own rhythm; the front card gets a light sweep. */
.s-hero-float { position: relative; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lift); overflow: hidden;
    animation: s-bob 5.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.9s); }
.s-hero-card[data-slot="center"] .s-hero-float { box-shadow: 0 24px 50px -12px rgba(36, 22, 98, .35); }
.s-hero-card[data-slot="center"] .s-hero-float::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%);
    animation: s-shine 3.2s ease-in-out .6s infinite; }
.s-hero-card .s-visual { border-radius: 0; }
.s-hero-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; }
.s-hero-card-meta span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-hero-card-meta strong { color: var(--brand-from); }

.s-hero-badge { position: absolute; left: 28%; bottom: 18px; z-index: 5; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 999px; padding: 10px 22px 10px 10px; box-shadow: var(--shadow-lift);
    animation: s-bob 6s ease-in-out -2s infinite; }
.s-hero-badge i { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; animation: s-drive 2.4s ease-in-out infinite; }
.s-hero-badge span { font-size: 13px; color: var(--ink-2); line-height: 1.25; }
.s-hero-badge strong { display: block; font-size: 15px; color: var(--brand-deep); }

.s-hero-dots { position: absolute; right: 8%; bottom: 30px; z-index: 5; display: flex; gap: 6px; }
.s-hero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(118,53,251,.25); cursor: pointer; transition: width .3s ease, background .3s ease; }
.s-hero-dots button.is-on { width: 22px; background: var(--brand-grad); }

@keyframes s-spin { to { transform: rotate(360deg); } }
@keyframes s-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes s-shine { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }
@keyframes s-drive { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }

@media (max-width: 960px) {
    .s-hero-grid { grid-template-columns: 1fr; gap: 8px; padding-top: 32px; padding-bottom: 32px; }
    /* Phones and tablets get the carousel too, a little smaller, under the headline. */
    .s-hero-art { --cw: 160px; height: 330px; width: 100%; max-width: 440px; margin: 0 auto; }
    .s-hero-ring, .s-hero-orbit-dot { inset: 16px 10px; }
    .s-hero-badge { left: 50%; transform: translateX(-50%); bottom: 6px; animation: none; padding: 8px 18px 8px 8px; }
    .s-hero-badge i { width: 36px; height: 36px; font-size: 15px; }
    .s-hero-dots { display: none; }
}

/* Search card overlapping the hero's bottom edge (Medion) */
.s-finder { position: relative; z-index: 5; margin: 0; max-width: 860px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lift); padding: 18px 20px 20px; }
.s-finder-title { display: block; font-size: 15px; margin-bottom: 10px; color: var(--brand-deep); }
.s-finder-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 10px; }
.s-finder-row .s-input, .s-finder-row .s-select { min-height: 48px; border-radius: var(--r); border-color: var(--line-soft); background: var(--mist-2); }
.s-finder-row .s-btn { height: 48px; }
@media (max-width: 720px) { .s-finder-row { grid-template-columns: 1fr; } }

.s-section { padding: 44px 0; }
.s-section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.s-section-head h2 { display: flex; align-items: center; gap: 10px; font-size: 26px; letter-spacing: -.015em; margin: 0; line-height: 1.2; color: var(--brand-deep); }
.s-head-mark { width: 26px; height: 26px; object-fit: contain; }
.s-section-head a { color: var(--brand-to); font-weight: 700; font-size: 15px; }
.s-section-head a:hover { color: var(--brand-from); }

/* Category circles with a dashed ring (Medion "Top Category") */
.s-circles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.s-circle { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 8px; border-radius: 20px; transition: background .2s; }
.s-circle:hover { background: var(--lilac); }
.s-circle-icon { width: 112px; height: 112px; border-radius: 50%; border: 2px dashed var(--lilac-line); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; transition: border-color .2s, transform .3s; }
.s-circle-icon i { width: 86px; height: 86px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 8px 20px rgba(118,53,251,.22); transition: transform .3s; }
.s-circle:hover .s-circle-icon { border-color: var(--brand-from); transform: rotate(8deg); }
.s-circle:hover .s-circle-icon i { transform: rotate(-8deg); }
.s-circle strong { font-size: 15px; color: var(--brand-deep); line-height: 1.25; }
.s-circle > span:last-child { font-size: 13px; color: var(--muted); }
@media (max-width: 520px) { .s-circles { grid-template-columns: repeat(2, 1fr); gap: 8px; } .s-circle-icon { width: 92px; height: 92px; } .s-circle-icon i { width: 70px; height: 70px; font-size: 24px; } }

/* Pastel promo cards with a pill tag (Medion) */
.s-promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 8px 0 4px; }
.s-promo { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 26px 26px 24px; border-radius: 20px; border: 1px solid; min-height: 190px; transition: transform .2s, box-shadow .2s; }
.s-promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.s-promo strong { font-size: 21px; line-height: 1.2; color: var(--brand-deep); max-width: 15ch; }
.s-promo > span:not(.s-pill) { font-size: 14px; color: var(--ink-2); max-width: 24ch; }
.s-promo em { margin-top: auto; padding-top: 10px; font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.s-promo-art { position: absolute; right: -10px; bottom: -14px; font-size: 110px; opacity: .14; transform: rotate(-12deg); }
.s-pill { align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.s-promo-violet { background: var(--lilac); border-color: var(--lilac-line); }
.s-promo-violet .s-pill { background: var(--brand-from); }
.s-promo-violet em, .s-promo-violet .s-promo-art { color: var(--brand-from); }
.s-promo-sky { background: var(--sky); border-color: var(--sky-line); }
.s-promo-sky .s-pill { background: var(--brand-to); }
.s-promo-sky em, .s-promo-sky .s-promo-art { color: var(--brand-to); }
.s-promo-peach { background: var(--peach); border-color: var(--peach-line); }
.s-promo-peach .s-pill { background: var(--coral); }
.s-promo-peach em, .s-promo-peach .s-promo-art { color: var(--coral); }
@media (max-width: 900px) { .s-promos { grid-template-columns: 1fr; } .s-promo { min-height: 0; } }

/* Trust strip: four icons in circles on a brand band (Medion) */
.s-promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--brand-grad); border-radius: 20px; padding: 6px; margin: 4px 0 8px; }
.s-promise { display: flex; align-items: center; gap: 14px; padding: 20px 22px; color: #fff; }
.s-promise + .s-promise { border-left: 1px solid rgba(255,255,255,.22); }
.s-promise i { flex: none; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.18); border: 1px dashed rgba(255,255,255,.55); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; margin: 0; }
.s-promise strong { display: block; font-size: 16px; margin-bottom: 2px; }
.s-promise span { color: rgba(255,255,255,.85); font-size: 14px; }
@media (max-width: 960px) { .s-promises { grid-template-columns: 1fr 1fr; } .s-promise:nth-child(3) { border-left: 0; } }
@media (max-width: 560px) { .s-promises { grid-template-columns: 1fr; } .s-promise + .s-promise { border-left: 0; border-top: 1px solid rgba(255,255,255,.22); } }

/* Pill tabs (Medion "Popular Items") */
.s-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.s-pill-tab { border: 1px solid var(--line-soft); background: #fff; color: var(--ink-2); padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; transition: all .15s; }
.s-pill-tab:hover { border-color: var(--brand-from); color: var(--brand-from); }
.s-pill-tab.is-active { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(118,53,251,.22); }
.s-tab-more { display: flex; justify-content: center; margin-top: 22px; }

/* Wide brand banner */
.s-banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    margin: 8px 0 48px; padding: 40px 44px; border-radius: 24px; color: #fff;
    background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.18) 0 90px, transparent 91px),
                radial-gradient(circle at 92% 110%, rgba(255,255,255,.12) 0 140px, transparent 141px), var(--brand-grad); }
.s-banner-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.s-banner h2 { font-size: clamp(24px, 3vw, 34px); margin: 6px 0 8px; letter-spacing: -.02em; }
.s-banner p { margin: 0; max-width: 56ch; opacity: .9; }
@media (max-width: 640px) { .s-banner { padding: 28px 24px; } }

/* ---------- Catalogue ---------- */
.s-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); padding: 18px 0 6px; }
.s-crumbs a:hover { color: var(--action); }
.s-crumbs i { font-size: 11px; }
.s-page-title { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; margin: 0 0 4px; line-height: 1.15; }
.s-page-sub { color: var(--muted); margin: 0; }
.s-catalogue { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 20px 0 48px; }
.s-filters { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.s-filter-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; }
.s-filter-box h3 { font-size: 15px; margin: 0 0 10px; }
.s-cat-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.s-cat-list button { width: 100%; display: flex; justify-content: space-between; gap: 8px; text-align: left; background: none; border: 0; padding: 7px 8px; border-radius: var(--r-sm); cursor: pointer; font-size: 15px; color: var(--ink-2); }
.s-cat-list button:hover { background: var(--mist); }
.s-cat-list button.is-active { background: var(--action-soft); color: var(--action); font-weight: 700; }
.s-cat-list small { color: var(--muted); font-size: 13px; }
.s-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.s-toolbar .s-select { width: auto; min-height: 40px; padding: 6px 10px; }
.s-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.s-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; border: 0; cursor: pointer; }
.s-filter-toggle { display: none; }
@media (max-width: 900px) {
    .s-catalogue { grid-template-columns: 1fr; }
    .s-filters { position: static; display: none; }
    .s-filters.is-open { display: flex; }
    .s-filter-toggle { display: inline-flex; }
}
.s-empty { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.s-empty i { font-size: 32px; color: var(--muted); margin-bottom: 10px; }
.s-empty h3 { margin: 0 0 6px; font-size: 20px; }
.s-empty p { margin: 0 0 18px; color: var(--muted); }

.s-pager { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.s-pager a, .s-pager span, .s-pager button { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-weight: 700; padding: 0 10px; cursor: pointer; }
.s-pager .is-current { background: var(--brand-grad); border-color: transparent; color: #fff; }
.s-pager .is-disabled { opacity: .4; cursor: default; }

/* ---------- Product page ---------- */
.s-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 12px 0 40px; }
@media (max-width: 900px) { .s-product { grid-template-columns: 1fr; gap: 24px; } }
.s-gallery { display: flex; flex-direction: column; gap: 10px; }
.s-gallery .s-visual { border: 1px solid var(--line); }
.s-thumbs { display: flex; gap: 8px; }
.s-thumbs button { width: 72px; height: 72px; border: 2px solid var(--line); border-radius: var(--r-sm); background: #fff; padding: 4px; cursor: pointer; }
.s-thumbs button.is-active { border-color: var(--action); }
.s-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.s-buy h1 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.02em; margin: 4px 0 10px; }
.s-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.s-meta b { color: var(--ink-2); font-weight: 700; }
.s-price-now { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.s-price-now strong { font-size: 40px; letter-spacing: -.03em; line-height: 1; }
.s-price-now span { color: var(--muted); }
.s-price-now s { color: var(--muted); font-size: 18px; }
.s-vat-note { font-size: 14px; color: var(--muted); margin: 6px 0 0; }

/* The signature: quantity price ladder */
.s-ladder { margin: 22px 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.s-ladder-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.s-ladder-head strong { font-size: 16px; }
.s-ladder-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: 6px; padding: 16px 16px 0; min-height: 128px; }
.s-step { display: flex; flex-direction: column; justify-content: flex-end; text-align: center; cursor: pointer; background: none; border: 0; padding: 0; }
.s-step-price { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.s-step-bar { border-radius: 6px 6px 0 0; background: var(--mist); border: 1.5px solid var(--line); border-bottom: 0; transition: background .2s, border-color .2s; position: relative; }
.s-step-save { position: absolute; top: 6px; left: 0; right: 0; font-size: 12px; font-weight: 700; color: var(--ok); }
.s-step.is-active .s-step-bar { background: var(--action); border-color: var(--action); }
.s-step.is-active .s-step-save { color: #fff; }
.s-step.is-active .s-step-price { color: var(--action); }
.s-step:hover .s-step-bar { border-color: var(--action); }
.s-ladder-qty { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 8px 16px 14px; border-top: 1.5px solid var(--ink); font-size: 13px; color: var(--ink-2); text-align: center; }
.s-ladder-next { padding: 10px 16px; background: var(--ok-soft); color: #1F5C39; font-size: 14px; border-top: 1px solid #B9DEC6; }

.s-qty { display: inline-flex; align-items: stretch; border: 2px solid var(--line); border-radius: var(--r); background: #fff; height: 54px; }
.s-qty button { width: 46px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--ink-2); }
.s-qty button:hover { background: var(--mist); }
.s-qty input { width: 64px; border: 0; text-align: center; font-weight: 700; font-size: 18px; -moz-appearance: textfield; }
.s-qty input::-webkit-outer-spin-button, .s-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.s-qty input:focus { outline: none; }
.s-qty-sm { height: 40px; }
.s-qty-sm button { width: 34px; font-size: 15px; }
.s-qty-sm input { width: 44px; font-size: 16px; }
.s-buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.s-buy-row .s-btn { flex: 1; min-width: 200px; }
.s-buy-total { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
.s-assure { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.s-assure i { width: 22px; color: var(--ink); }
.s-prose { max-width: 72ch; font-size: 16px; }
.s-prose p { margin: 0 0 12px; }
.s-prose ul { padding-left: 20px; }
.s-detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 32px; }
.s-detail h2 { font-size: 20px; margin: 0 0 12px; }
.s-specs { display: grid; grid-template-columns: 180px 1fr; gap: 0; margin: 0; font-size: 15px; }
.s-specs dt, .s-specs dd { padding: 9px 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.s-specs dt { color: var(--muted); }


/* ---------- Product page, Batch 41: MediSupplies-style family page ---------- */
.s-gallery-frame { position: relative; }
.s-seller-badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--brand-grad); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 8px; box-shadow: 0 4px 12px rgba(118,53,251,.3); }
.s-as-low { margin: 0 0 12px; font-size: 16px; color: var(--coral); font-weight: 700; }
.s-as-low strong { font-size: 30px; letter-spacing: -.02em; margin-left: 4px; }

.s-info-tabs { margin-top: 22px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.s-info-tablist { display: flex; gap: 0; background: var(--mist-2); border-bottom: 1px solid var(--line-soft); }
.s-info-tablist button { border: 0; background: none; padding: 12px 18px; font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.s-info-tablist button.is-active { color: var(--brand-from); border-bottom-color: var(--brand-from); background: #fff; }
.s-info-tabs .s-prose, .s-info-tabs .s-specs { padding: 16px 18px; }
.s-info-tabs .s-prose { max-height: 320px; overflow-y: auto; font-size: 15px; }
.s-info-tabs .s-specs { grid-template-columns: 150px 1fr; }

/* Delivery / guarantee strip under the buying area */
.s-assure-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 36px; padding: 16px; border-radius: 20px; background: linear-gradient(115deg, var(--lilac), var(--sky)); }
.s-assure-strip > * { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.s-assure-strip i { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--brand-from); display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 4px 12px rgba(42,21,114,.08); }
.s-assure-strip strong { display: block; color: var(--brand-deep); font-size: 15px; }
.s-assure-strip a:hover strong { color: var(--brand-from); }

/* ---------- Basket & checkout ---------- */
.s-two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; padding: 16px 0 48px; align-items: start; }
@media (max-width: 960px) { .s-two-col { grid-template-columns: 1fr; } }
.s-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.s-panel-pad { padding: 20px; }
.s-panel h2 { font-size: 20px; margin: 0; }
.s-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); align-items: center; }
.s-line:last-child { border-bottom: 0; }
.s-line .s-visual { width: 84px; border: 1px solid var(--line-soft); }
.s-line .s-label-tile { padding: 6px; }
.s-line .s-label-card { padding: 4px 6px; border-width: 1px; }
.s-line .s-label-top { display: none; }
.s-line .s-label-name { font-size: 9px; -webkit-line-clamp: 3; }
.s-line .s-label-pack, .s-line .s-label-foot { display: none; }
.s-line-name { font-weight: 700; line-height: 1.3; }
.s-line-name:hover { color: var(--action); }
.s-line-meta { font-size: 14px; color: var(--muted); margin-top: 2px; }
.s-line-saving { font-size: 14px; color: var(--ok); font-weight: 700; }
.s-line-controls { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.s-line-total { text-align: right; font-weight: 700; font-size: 17px; }
@media (max-width: 560px) {
    .s-line { grid-template-columns: 64px minmax(0, 1fr); padding: 14px; }
    .s-line .s-visual { width: 64px; }
    .s-line-total { grid-column: 2; text-align: left; }
}
.s-sum { display: grid; gap: 10px; font-size: 16px; }
.s-sum-row { display: flex; justify-content: space-between; gap: 12px; }
.s-sum-row span:first-child { color: var(--ink-2); }
.s-sum-row.is-discount span:last-child { color: var(--ok); font-weight: 700; }
.s-sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding-top: 12px; margin-top: 4px; }
.s-sum-total strong { font-size: 26px; letter-spacing: -.02em; }
.s-sum-vat { font-size: 14px; color: var(--muted); text-align: right; }
.s-free-gap { font-size: 14px; background: var(--ok-soft); color: #1F5C39; border-radius: var(--r-sm); padding: 10px 12px; }
.s-free-gap .s-bar { height: 6px; background: #fff; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.s-free-gap .s-bar span { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.s-code { display: flex; gap: 8px; }
.s-code .s-input { min-height: 42px; text-transform: uppercase; }
.s-code .s-btn { height: 42px; }
.s-sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }

.s-step-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.s-step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.s-step-body { padding: 20px; display: grid; gap: 14px; }
.s-choice { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--r); cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.s-choice:hover { border-color: var(--ink-2); }
.s-choice.is-selected { border-color: var(--action); background: var(--action-soft); }
.s-choice input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--action); flex: none; }
.s-choice-main { flex: 1; min-width: 0; }
.s-choice-title { font-weight: 700; display: flex; justify-content: space-between; gap: 10px; }
.s-choice-desc { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.s-choice > i { font-size: 22px; color: var(--ink-2); margin-top: 2px; width: 26px; text-align: center; }
.s-saved-addr { display: flex; gap: 8px; flex-wrap: wrap; }
.s-saved-addr button { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: var(--r-sm); padding: 8px 12px; cursor: pointer; font-size: 14px; }
.s-saved-addr button.is-active { border-color: var(--action); background: var(--action-soft); }
.s-mini-lines { display: grid; gap: 10px; max-height: 300px; overflow-y: auto; font-size: 14px; }
.s-mini-line { display: flex; justify-content: space-between; gap: 10px; }
.s-mini-line span:first-child { color: var(--ink-2); }

/* ---------- Order page ---------- */
.s-thanks { text-align: center; padding: 36px 20px 8px; }
.s-thanks .s-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 14px; }
.s-thanks h1 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; margin: 0 0 6px; }
.s-thanks p { color: var(--ink-2); margin: 0; }
.s-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 4px 0 0; padding: 0; list-style: none; }
.s-progress li { position: relative; text-align: center; font-size: 14px; color: var(--muted); padding-top: 30px; }
.s-progress li::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--line); z-index: 1; }
.s-progress li::after { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.s-progress li:first-child::after { display: none; }
.s-progress li.is-done { color: var(--ink); font-weight: 700; }
.s-progress li.is-done::before { background: var(--ok); border-color: var(--ok); }
.s-progress li.is-done::after { background: var(--ok); }
.s-bank { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 16px; margin: 12px 0 0; }
.s-bank dt { color: var(--ink-2); }
.s-bank dd { margin: 0; font-weight: 700; }
.s-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.s-timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.s-timeline time { color: var(--muted); font-size: 14px; }
.s-address { font-style: normal; line-height: 1.5; font-size: 15px; }

/* ---------- Account & auth ---------- */
.s-auth { max-width: 460px; margin: 32px auto 56px; }
.s-auth .s-panel-pad { padding: 28px; display: grid; gap: 16px; }
.s-auth h1 { font-size: 28px; letter-spacing: -.02em; margin: 0; }
.s-auth p { margin: 0; color: var(--ink-2); }
.s-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.s-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 14px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.s-tabs button.is-active { color: var(--ink); border-color: var(--action); }
.s-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.s-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.s-table td { padding: 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.s-table tr:last-child td { border-bottom: 0; }
.s-table .num { text-align: right; }
@media (max-width: 640px) { .s-table-wrap { overflow-x: auto; } }
.s-addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.s-addr-card { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Basket drawer ---------- */
.s-drawer-bg { position: fixed; inset: 0; background: rgba(20, 40, 63, .45); z-index: 80; }
.s-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100vw; background: #fff; z-index: 81; display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(20,40,63,.18); }
.s-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.s-drawer-head h2 { margin: 0; font-size: 20px; }
.s-drawer-body { flex: 1; overflow-y: auto; }
.s-drawer-foot { border-top: 1px solid var(--line); padding: 18px 20px; display: grid; gap: 12px; }
.s-drawer .s-line { grid-template-columns: 64px minmax(0, 1fr); padding: 14px 20px; }
.s-drawer .s-line .s-visual { width: 64px; }
.s-drawer .s-line-total { grid-column: 2; text-align: left; font-size: 15px; }
.s-drawer .s-line.is-new { background: var(--ok-soft); }
.s-icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--ink-2); }
.s-icon-btn:hover { background: var(--mist); color: var(--ink); }

/* ---------- Toasts ---------- */
.s-toasts { position: fixed; top: 16px; right: 16px; z-index: 100; display: grid; gap: 8px; width: 340px; max-width: calc(100vw - 32px); pointer-events: none; }
.s-toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; background: var(--ink); color: #fff; padding: 12px 14px; border-radius: var(--r); box-shadow: var(--shadow); font-size: 15px; }
.s-toast i { margin-top: 3px; }
.s-toast.is-warning { background: #7C3A06; }
.s-toast.is-error, .s-toast.is-danger { background: var(--danger); }
.s-toast button { margin-left: auto; background: none; border: 0; color: rgba(255,255,255,.7); cursor: pointer; }

/* ---------- Footer ---------- */
.s-footer { position: relative; background: var(--brand-deep); color: rgba(255,255,255,.78); margin-top: 24px; font-size: 15px; }
.s-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--brand-grad); }
.s-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.s-footer-brand img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.s-footer-brand h3 { margin: 0; }
.s-footer .s-wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 28px; }
.s-footer h3 { color: #fff; font-size: 16px; margin: 0 0 12px; }
.s-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.s-footer a:hover { color: #fff; text-decoration: underline; }
.s-footer-legal { border-top: 1px solid rgba(255,255,255,.12); }
.s-footer-legal .s-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 18px; font-size: 13px; grid-template-columns: none; }
.s-pay-icons { display: flex; gap: 10px; font-size: 26px; color: rgba(255,255,255,.85); margin-top: 14px; }
@media (max-width: 760px) { .s-footer .s-wrap { grid-template-columns: 1fr; gap: 22px; } }

.s-mt { margin-top: 16px; }
.s-mt-lg { margin-top: 28px; }
.s-stack { display: grid; gap: 16px; }
.s-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.s-between { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.s-muted { color: var(--muted); }
.s-small { font-size: 14px; }
.s-strong { font-weight: 700; }
.s-hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* Print an order page cleanly */
@media print {
    .s-strip, .s-header, .s-rail, .s-footer, .s-preview, .s-no-print, .s-toasts { display: none !important; }
    body.shop { background: #fff; }
    .s-panel { border-color: #999; }
}

/* Two-up product grid on phones: shrink the carton label so it never runs into the SKU line */
@media (max-width: 520px) {
    .s-card .s-label-tile { padding: 8px 8px 24px; gap: 6px; }
    .s-card .s-label-card { padding: 6px 8px; }
    .s-card .s-label-top { font-size: 10px; padding-bottom: 4px; margin-bottom: 4px; }
    .s-card .s-label-top i { font-size: 12px; }
    .s-card .s-label-name { font-size: 12px; -webkit-line-clamp: 2; }
    .s-card .s-label-pack { margin-top: 4px; }
    .s-card .s-label-pack strong { font-size: 18px; }
    .s-card .s-label-foot { left: 8px; right: 8px; bottom: 6px; font-size: 10px; }
    .s-card .s-label-bars { width: 44px; height: 12px; }
}

/* ==========================================================================
   Batch 41 — products with sizes/options (variants)
   ========================================================================== */

/* Card: "4 sizes" hint and "From" before the price */
.s-card-variants { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 2px 9px; border-radius: 999px;
    background: var(--lilac); color: var(--brand-from); font-size: 12px; font-weight: 700; }
.s-card-variants i { font-size: 11px; }
.s-card-from-label { font-size: 13px; color: var(--muted); font-weight: 700; }

/* Basket line: which size */
.s-line-variant { display: inline-block; margin: 2px 0 4px; padding: 1px 8px; border-radius: 6px; background: var(--lilac); color: var(--brand-deep); font-size: 13px; font-weight: 700; }

/* Buy panel: the options it comes in */
.s-vpick { margin-top: 18px; display: grid; gap: 10px; }
.s-vpick-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; }
.s-vpick-name { font-size: 14px; font-weight: 700; color: var(--ink-2); padding-top: 4px; }
.s-vpick-values { display: flex; flex-wrap: wrap; gap: 6px; }
.s-vchip { padding: 4px 11px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); background: #fff; }
.s-vchip-more { border-style: dashed; color: var(--muted); }
.s-mix-note { display: flex; gap: 8px; align-items: center; color: var(--brand-from); font-weight: 700; margin-top: 10px; }
@media (max-width: 480px) { .s-vpick-row { grid-template-columns: 1fr; gap: 4px; } }

/* The order grid */
.s-vgrid { margin: 8px 0 36px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); scroll-margin-top: 110px; }
.s-vgrid-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line-soft); }
.s-vgrid-head h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.01em; }
.s-vgrid-head p { margin: 0; font-size: 15px; }
.s-mix-inline { display: inline-flex; gap: 6px; align-items: center; color: var(--brand-from); font-weight: 700; }
.s-vfilters { display: grid; gap: 8px; align-content: start; }
.s-vfilter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.s-vfilter > span { font-size: 13px; font-weight: 700; color: var(--muted); min-width: 60px; }
.s-vfilter-btn { padding: 5px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.s-vfilter-btn:hover { border-color: var(--brand-from); color: var(--brand-from); }
.s-vfilter-btn.is-active { background: var(--brand-grad); border-color: transparent; color: #fff; }

.s-vtable-wrap { overflow-x: auto; margin: 0 22px 16px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); }
.s-vtable-wrap:first-of-type { margin-top: 18px; }
.s-vtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.s-vtable th { text-align: left; font-size: 13px; font-weight: 700; color: var(--brand-deep); background: var(--lilac); padding: 11px 14px; white-space: nowrap; vertical-align: bottom; }
.s-vtable td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.s-vtable tbody tr:nth-child(even) td { background: var(--mist-2); }
.s-vtable tbody tr:hover td { background: var(--lilac); }
.s-vtable tr.is-chosen td { background: #F4EFFF; }
.s-vtable tr.is-off td { color: var(--muted); }
.s-vprice-h { text-align: right !important; }
.s-vprice-cap { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-from); margin-bottom: 2px; }
.s-vprice { text-align: right; font-weight: 700; white-space: nowrap; color: var(--ink-2); }
.s-vprice s { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.s-vtable td.s-band-first { color: var(--coral); }
.s-vtable tbody tr td.is-hit { color: #fff !important; background: var(--brand-grad) !important; }
.s-vtable tbody tr td.is-hit s { color: rgba(255,255,255,.75); }
.s-vcode { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.s-vcode > * { vertical-align: middle; }
.s-vthumb { display: inline-block !important; width: 34px; height: 34px; object-fit: contain; border-radius: 6px; border: 1px solid var(--line-soft); margin-right: 8px; background: #fff; }
.s-vopt-main { font-weight: 700; }
.s-vqty, .s-vqty-h { text-align: right !important; white-space: nowrap; }
.s-vqty .s-qty { vertical-align: middle; }
.s-vqty .s-qty input::placeholder { color: #A9B4C0; font-weight: 400; }
.s-vin-basket { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--ok); }

.s-vbar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
    padding: 14px 22px; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line-soft); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.s-vbar-sum { display: grid; gap: 2px; }
.s-vbar-sum strong { font-size: 18px; }
.s-vbar-next { font-size: 14px; color: var(--ok); font-weight: 700; }
.s-vbar .s-btn { min-width: 220px; }
.s-vbar .s-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; filter: none; }

/* Phones: each row becomes a small card */
@media (max-width: 760px) {
    .s-vgrid-head { padding: 16px; }
    .s-vtable-wrap { margin: 0 12px 12px; }
    .s-vtable thead { display: none; }
    .s-vtable, .s-vtable tbody { display: block; }
    .s-vtable tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
    .s-vtable tr[style*="display: none"] { display: none !important; }
    .s-vtable td { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; border: 0; background: none !important; }
    .s-vtable td::before { content: attr(data-label); font-size: 13px; color: var(--muted); font-weight: 700; }
    .s-vtable tbody tr:nth-child(even) { background: var(--mist-2); }
    .s-vtable tr.is-chosen { background: var(--sky); }
    .s-vtable .s-vqty { grid-column: 1 / -1; justify-content: space-between; align-items: center; padding-top: 6px; }
    .s-vtable .s-vqty::before { align-self: center; }
    .s-vtable .s-vcode::before { content: none; }
    .s-vtable .s-vcode { grid-column: 1 / -1; font-weight: 700; }
    .s-vprice s { display: inline; margin-left: 4px; }
    .s-vbar { padding: 12px 16px; }
    .s-vbar .s-btn { flex: 1; min-width: 0; }
}
@media (max-width: 760px) { @media (max-width: 900px) { .s-vgrid { scroll-margin-top: 170px; } }
