/* =========================================================
   TAPKA · product page (store rework)
   Layout: product split (gallery | buy box) → dark proof band →
   result → shop photos → steps → FAQ/specs → lime close.
   Brand tokens match css/style.css.
========================================================= */

:root {
    --charcoal: #1c1c1b;
    --charcoal-2: #2a2a28;
    --lime: #c6ff2e;
    --lime-hover: #b9f31e;
    --cream: #f3f0e7;
    --paper: #fbfaf5;
    --white: #ffffff;
    --ink: #1c1c1b;
    --muted: #62615d;
    --line: rgba(28, 28, 27, 0.12);
    --line-strong: rgba(28, 28, 27, 0.85);
    --line-dark: rgba(243, 240, 231, 0.14);
    --hex: rgba(28, 28, 27, 0.08);
    --error: #b42318;

    --font-display: "Poppins", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --r-s: 12px;
    --r-m: 20px;
    --r-l: 30px;
    --container: 1180px;

    color-scheme: only light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    background: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: env(safe-area-inset-top, 0px);
    z-index: 60;
    background: var(--charcoal);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 2px;
    border-radius: 6px;
}

.wrap {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}


/* ---------- Buttons ---------- */

.pbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.pbtn:active { transform: scale(0.98); }
.pbtn-small { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }
.pbtn-block { width: 100%; }
.pbtn-lime { background: var(--lime); color: var(--charcoal); }
.pbtn-lime:hover { background: var(--lime-hover); }
.pbtn-dark { background: var(--charcoal); color: var(--cream); }
.pbtn-dark:hover { background: var(--charcoal-2); }
.pbtn-outline { border: 1.5px solid var(--line-strong); color: var(--ink); }
.pbtn[disabled] { opacity: 0.6; cursor: wait; }
.pbtn-cta {
    background: var(--lime);
    color: var(--charcoal);
    border: 1.5px solid var(--charcoal);
    font-weight: 700;
    letter-spacing: 0.01em;
}
.pbtn-cta:hover { background: var(--lime-hover); }


/* ---------- Product ---------- */

.product {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    padding-block: 40px 72px;
    align-items: start;
}

.gallery { position: sticky; top: 100px; display: grid; gap: 12px; }

.gallery-stage {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    border-radius: var(--r-l);
    background: var(--paper);
    overflow: hidden;
    border: 1px solid var(--line);
}
.gallery-stage .hex {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--hex);
}
.gallery-stage > img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6%;
    transition: opacity 0.2s ease;
}
.gallery-stage > img.is-photo { object-fit: cover; padding: 0; }
.stage-tag {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--charcoal);
    color: var(--lime);
    font-size: 0.78rem;
    font-weight: 600;
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.thumb {
    aspect-ratio: 1 / 1;
    border-radius: var(--r-s);
    background: var(--paper);
    border: 1.5px solid var(--line);
    overflow: hidden;
    padding: 0;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.thumb-photo img { object-fit: cover; padding: 0; }
.thumb.is-active { border-color: var(--charcoal); }

.buybox { display: grid; gap: 18px; min-width: 0; }
.buybox h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }

.proof-line {
    justify-self: start;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--charcoal);
    color: var(--cream);
    font-size: 0.88rem;
    text-decoration: none;
}
.proof-line strong { color: var(--lime); font-variant-numeric: tabular-nums; }

.lead { color: var(--muted); max-width: 52ch; }

.option-group { border: 0; display: grid; gap: 10px; }
.option-group legend {
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 10px;
}
.option-group legend span { font-weight: 400; color: var(--muted); }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 10px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--paper);
    cursor: pointer;
    font-size: 0.92rem;
}
.swatch input, .package input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.swatch-dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1px solid var(--line);
}
.swatch-black { background: var(--charcoal); }
.swatch-white { background: var(--white); }
.swatch:has(input:checked) { border-color: var(--charcoal); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--lime); outline-offset: 2px; }

.packages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.package { position: relative; display: block; cursor: pointer; min-width: 0; }
.package-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 4px;
    height: 100%;
    padding: 16px 12px 14px;
    border-radius: var(--r-m);
    border: 1.5px solid var(--line);
    background: var(--paper);
    text-align: center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.package input:checked + .package-card {
    border: 2px solid var(--charcoal);
    padding: 15.5px 11.5px 13.5px;
}
.package input:focus-visible + .package-card { outline: 3px solid var(--lime); outline-offset: 3px; }
.package-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--lime);
    color: var(--charcoal);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.package-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.package-visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 104px;
    width: 100%;
}
.package-visual img { height: 100%; width: auto; object-fit: contain; }
.package-visual-pair img { height: 92%; }
.package-visual-pair img + img { margin-left: -34px; height: 100%; }
.package-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.package-sub { font-size: 0.8rem; color: var(--muted); }

.price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding-top: 4px;
}
.price-main { display: flex; align-items: baseline; gap: 10px; }
.price-now {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.price-was {
    color: var(--muted);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}
.save-badge {
    padding: 5px 12px;
    border-radius: 8px;
    background: var(--lime);
    color: var(--charcoal);
    font-weight: 700;
    font-size: 0.82rem;
}
.price-note { font-size: 0.88rem; color: var(--muted); margin-top: -8px; }

.buybox > .pbtn-block { min-height: 58px; font-size: 1.05rem; }
.cta-sub { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: -2px; }
.model-link {
    justify-self: center;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
    text-underline-offset: 3px;
    margin-top: -6px;
}
.model-link strong { color: var(--ink); }

.assurances {
    list-style: none;
    display: grid;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
}
.assurances li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.assurances svg {
    width: 28px; height: 28px;
    padding: 5px;
    border-radius: 8px;
    background: var(--charcoal);
    stroke: var(--lime);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.assurances span { color: var(--muted); }
.assurances strong { color: var(--ink); }


.table-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 10px 16px;
    border-radius: var(--r-m);
    border: 1.5px solid var(--line);
    background: var(--paper);
    font-size: 0.92rem;
    font-weight: 600;
}
.specs-sub { font-size: 1.05rem; margin: 22px 0 6px; }
.specs s { color: var(--muted); font-weight: 400; margin-right: 4px; }


/* ---------- Menu features ---------- */

.menu-features { padding-block: 72px 16px; }
.menu-features h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 24px; }
.feature-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.feature-grid li {
    display: grid;
    gap: 4px;
    padding: 22px 24px;
    border-radius: var(--r-m);
    background: var(--paper);
    border: 1px solid var(--line);
}
.feature-grid strong { font-family: var(--font-display); font-size: 1.02rem; }
.feature-grid span { color: var(--muted); font-size: 0.92rem; }


/* ---------- Bands ---------- */

.band { padding-block: 72px; }
.band-dark { background: var(--charcoal); color: var(--cream); }
.band-lime { background: var(--lime); color: var(--charcoal); }
.band-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 32px; }

.objections {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.objection {
    padding: 26px 24px;
    border-radius: var(--r-m);
    border: 1px solid var(--line-dark);
    display: grid;
    gap: 10px;
    align-content: start;
}
.objection h3 { font-size: 1.12rem; color: var(--lime); }
.objection p { color: rgba(243, 240, 231, 0.78); font-size: 0.95rem; }


/* ---------- Result ---------- */

.result {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: center;
    padding-block: 80px 40px;
}
.result-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--r-l);
}
.result-copy { display: grid; gap: 16px; min-width: 0; }
.result-copy h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.result-copy > p:last-child { color: var(--muted); max-width: 46ch; }
.result-numbers {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 28px;
    padding-block: 8px;
}
.result-numbers > div { display: grid; }
.num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 4.6rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}
.num-accent {
    background: var(--charcoal);
    color: var(--lime);
    padding: 4px 14px 8px;
    border-radius: 14px;
}
.num-label { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.num-arrow { font-size: 2rem; color: var(--muted); }


/* ---------- Shops ---------- */

.shops { padding-block: 40px; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 20px;
}
.section-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.text-link { font-weight: 600; font-size: 0.92rem; text-underline-offset: 3px; }
.shop-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.shop-strip figure { display: grid; gap: 8px; min-width: 0; }
.shop-strip img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--r-m);
}
.shop-strip figcaption { font-size: 0.82rem; color: var(--muted); }


/* ---------- Steps ---------- */

.how { padding-block: 56px; }
.how h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 24px; }
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.steps li {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 24px;
    border-radius: var(--r-m);
    background: var(--paper);
    border: 1px solid var(--line);
}
.step-n {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--charcoal);
    color: var(--lime);
    font-weight: 700;
    font-size: 0.9rem;
}
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: 0.92rem; }


/* ---------- FAQ + specs ---------- */

.faq-specs {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 48px;
    padding-block: 32px 80px;
    align-items: start;
}
.faq h2, .specs h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 16px;
    font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-size: 1.3rem;
    line-height: 1;
    color: var(--muted);
    transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 16px; max-width: 60ch; }

.specs {
    padding: 26px;
    border-radius: var(--r-m);
    background: var(--paper);
    border: 1px solid var(--line);
}
.specs dl { display: grid; }
.specs dl > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}
.specs dl > div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 600; text-align: right; }


/* ---------- Final CTA + footer ---------- */

.final-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.final-cta h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 22ch; }

/* ---------- Site footer leaves room for the order bar ---------- */

.footer { padding-bottom: 110px; }

/* ---------- Sticky mobile bar ---------- */

.sticky-buy {
    position: fixed;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(520px, calc(100% - 32px));
    padding: 10px 10px 10px 22px;
    border-radius: 999px;
    background: var(--charcoal);
    color: var(--cream);
    box-shadow: 0 12px 32px rgba(28, 28, 27, 0.28);
    transform: translate(-50%, 140%);
    transition: transform 0.28s ease;
}
.sticky-buy.is-visible { transform: translate(-50%, 0); }
.sticky-info { display: grid; line-height: 1.25; min-width: 0; }
.sticky-info strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.sticky-info span { font-size: 0.78rem; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .pbtn { margin-left: auto; min-height: 48px; padding: 0 24px; font-weight: 700; white-space: nowrap; }


/* ---------- Order drawer ---------- */

.order-drawer {
    margin: 0 0 0 auto;
    width: min(480px, 100%);
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border: 0;
    background: var(--cream);
    color: var(--ink);
    padding: 0;
}
.order-drawer::backdrop { background: rgba(28, 28, 27, 0.55); }
.order-drawer[open] { animation: drawer-in 0.28s ease; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }

.drawer-inner {
    display: grid;
    gap: 18px;
    padding-top: calc(22px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    padding-left: max(22px, env(safe-area-inset-left, 0px));
    padding-right: max(22px, env(safe-area-inset-right, 0px));
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h2 { font-size: 1.35rem; }
.drawer-close {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
}
.drawer-close svg, .done-check svg {
    width: 20px; height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

#orderForm { display: grid; gap: 16px; }

.order-line {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: var(--r-m);
    background: var(--paper);
    border: 1px solid var(--line);
}
.order-line img {
    width: 64px; height: 64px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--cream);
}
.order-line-text { display: grid; line-height: 1.3; min-width: 0; }
.order-line-text span { font-size: 0.82rem; color: var(--muted); }

.qty {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--white);
}
.qty button { width: 36px; height: 36px; font-size: 1.15rem; border-radius: 50%; }
.qty output { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.order-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.field { display: grid; gap: 5px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field > span { font-size: 0.82rem; font-weight: 600; }
.field input, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border-radius: var(--r-s);
    border: 1.5px solid var(--line);
    background: var(--white);
    font-size: 16px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--charcoal); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field small { font-size: 0.78rem; color: var(--muted); }

.note-toggle summary {
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    padding-block: 4px;
}
.note-toggle[open] summary { margin-bottom: 8px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.order-totals { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.order-totals > div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.order-totals dt { color: var(--muted); }
.order-totals dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.order-total dt { color: var(--ink); font-weight: 600; }
.order-total dd { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }

.form-error {
    padding: 10px 14px;
    border-radius: var(--r-s);
    background: rgba(180, 35, 24, 0.08);
    color: var(--error);
    font-size: 0.88rem;
}

#submitBtn { min-height: 58px; font-size: 1.05rem; }
.legal-line { font-size: 0.76rem; color: var(--muted); text-align: center; margin-top: -6px; }
.legal-line a { text-underline-offset: 2px; }

.order-done { display: grid; gap: 14px; justify-items: start; padding-top: 12px; }
.order-done h2 { font-size: 1.6rem; outline: none; }
.order-done > p { color: var(--muted); }
.order-done .order-totals { width: 100%; }
.done-check {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--lime);
    color: var(--charcoal);
}
.done-check svg { width: 28px; height: 28px; stroke-width: 2.4; }


/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .product { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 20px 56px; }
    .gallery { position: static; }
    .objections, .steps { grid-template-columns: minmax(0, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .result { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 56px 24px; }
    .result-photo img { aspect-ratio: 4 / 3; }
    .faq-specs { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .shop-strip {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
    }
    .shop-strip figure { flex: 0 0 42%; scroll-snap-align: start; }
}

@media (max-width: 560px) {
    .band { padding-block: 56px; }
    .package-visual { height: 84px; }
    .package-visual-pair img + img { margin-left: -26px; }
    .package-sub { font-size: 0.74rem; }
    .order-fields { grid-template-columns: minmax(0, 1fr); }
    .feature-grid { grid-template-columns: minmax(0, 1fr); }
    .order-drawer {
        width: 100%;
        height: auto;
        max-height: 94%;
        margin: auto 0 0;
        border-radius: 22px 22px 0 0;
    }
    .order-drawer[open] { animation: sheet-in 0.28s ease; }
    .shop-strip figure { flex-basis: 64%; }
    .sticky-buy {
        left: 0;
        bottom: 0;
        width: 100%;
        border-radius: 18px 18px 0 0;
        padding-top: 10px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
        transform: translateY(110%);
    }
    .sticky-buy.is-visible { transform: none; }
    .final-cta .pbtn { width: 100%; }
}
@keyframes sheet-in { from { transform: translateY(60px); opacity: 0; } }

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

#addCartBtn { margin-top: 10px; background: var(--white); }
@media (min-width: 600px) and (max-width: 960px) {
    .gallery { width: 100%; max-width: 540px; margin: 0 auto; }
}

/* menu: 4 table packs + discount ladder */
.packages-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.package-menu .package-card { padding: 16px 8px 12px; gap: 2px; }
.package-menu input:checked + .package-card { padding: 15.5px 7.5px 11.5px; }
.package-menu .package-name { font-size: 0.95rem; }
.package-off { display: inline-block; margin: 4px 0 2px; padding: 2px 8px; border-radius: 999px; background: var(--charcoal); color: var(--lime); font-size: 0.72rem; font-weight: 800; }
.package-menu .package-sub { font-size: 0.72rem; }
@media (max-width: 560px) {
    .packages-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tier-ladder { margin-top: 14px; }
.tiers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.tiers li {
    display: grid; gap: 1px; padding: 7px 4px 6px; border-radius: 8px; text-align: center;
    background: rgba(28, 28, 27, 0.06); color: var(--muted); font-size: 0.72rem; line-height: 1.2;
    transition: background 0.2s ease, color 0.2s ease;
}
.tiers li b { font-size: 0.78rem; color: inherit; }
.tiers li span { font-weight: 700; }
.tiers li.is-reached { background: rgba(198, 255, 46, 0.35); color: var(--ink); }
.tiers li.is-current { background: var(--lime); color: var(--charcoal); outline: 1.5px solid var(--charcoal); outline-offset: -1.5px; }
.tier-next { margin: 8px 0 0; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.specs dd small { margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: var(--lime); color: var(--charcoal); font-weight: 700; font-size: 0.72rem; }

/* menu packs v2 */
.package-menu .package-card {
    gap: 1px; padding: 14px 8px 12px; background: var(--white); border: 1.5px solid var(--line);
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.package-menu:hover .package-card { transform: translateY(-3px); border-color: var(--charcoal); }
.package-menu input:checked + .package-card {
    padding: 14px 8px 12px; border: 1.5px solid var(--charcoal); background: var(--charcoal); color: var(--white);
}
.pm-off {
    position: absolute; top: -1.5px; right: -1.5px; padding: 4px 9px; border-radius: 0 var(--r-m) 0 12px;
    background: var(--lime); color: var(--charcoal); font-size: 0.75rem; font-weight: 800; border: 1.5px solid var(--charcoal);
}
.pm-stack { position: relative; display: block; width: 100%; height: 58px; margin: 6px 0 6px; }
.pm-stack img { position: absolute; top: 4px; left: 50%; width: 48px; height: 48px; margin-left: -24px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.18)); }
.pm-stack-2 img:nth-child(1) { transform: translateX(-9px) rotate(-8deg); }
.pm-stack-2 img:nth-child(2) { transform: translateX(9px) rotate(6deg); }
.pm-stack-3 img:nth-child(1) { transform: translateX(-16px) rotate(-12deg); }
.pm-stack-3 img:nth-child(2) { transform: translateX(16px) rotate(10deg); }
.pm-stack-3 img:nth-child(3) { transform: translateY(-2px); }
.pm-stack-4 img:nth-child(1) { transform: translateX(-22px) rotate(-14deg); }
.pm-stack-4 img:nth-child(2) { transform: translateX(22px) rotate(12deg); }
.pm-stack-4 img:nth-child(3) { transform: translateX(-7px) rotate(-4deg) translateY(-2px); }
.pm-stack-4 img:nth-child(4) { transform: translateX(8px) rotate(5deg) translateY(-3px); }
.package-menu .package-name { font-size: 0.92rem; }
.package-menu .package-price { font-family: var(--font-display); font-size: 1.12rem; }
.pm-was { color: var(--muted); font-size: 0.74rem; }
.package-menu input:checked + .package-card .package-price { color: var(--lime); }
.package-menu input:checked + .package-card .pm-was,
.package-menu input:checked + .package-card .package-sub { color: rgba(255, 255, 255, 0.65); }
.package-menu input:checked + .package-card .pm-off { border-color: var(--lime); }
.packages-4 { margin-top: 4px; }

/* 25+ tables */
.big-order {
    display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 12px 12px 12px;
    border-radius: 14px; border: 1.5px dashed var(--charcoal); background: var(--white);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.big-order-ico {
    flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: var(--charcoal); color: var(--lime); font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
}
.big-order-text { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.big-order-text strong { display: block; font-size: 0.95rem; }
.big-order-text span { display: block; color: var(--muted); font-size: 0.8rem; }
.big-order-btn {
    flex: none; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--charcoal);
    background: var(--lime); color: var(--charcoal); font-weight: 800; font-size: 0.85rem; text-decoration: none; white-space: nowrap;
}
.big-order-btn:hover { background: var(--lime-hover); }
.big-order.is-hot { background: rgba(198, 255, 46, 0.3); border-style: solid; animation: big-pop 0.5s ease; }
@keyframes big-pop { 0% { transform: scale(1); } 40% { transform: scale(1.025); } 100% { transform: scale(1); } }
@media (max-width: 560px) {
    .big-order { flex-wrap: wrap; }
    .big-order-text { flex-basis: calc(100% - 56px); }
    .big-order-btn { width: 100%; text-align: center; }
    .pm-stack { height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .big-order.is-hot { animation: none; } .package-menu .package-card { transition: none; } }
.pm-stack { height: 64px; }
.pm-stack img { width: 56px; height: 56px; margin-left: -28px; }
.pm-stack-3 img:nth-child(1) { transform: translateX(-14px) rotate(-10deg); }
.pm-stack-3 img:nth-child(2) { transform: translateX(14px) rotate(9deg); }
.pm-stack-4 img:nth-child(1) { transform: translateX(-18px) rotate(-12deg); }
.pm-stack-4 img:nth-child(2) { transform: translateX(18px) rotate(11deg); }
.pm-stack-4 img:nth-child(3) { transform: translateX(-6px) rotate(-4deg) translateY(-2px); }
.pm-stack-4 img:nth-child(4) { transform: translateX(6px) rotate(4deg) translateY(-3px); }

/* proof line v2: tidy on mobile */
.proof-line {
    flex-wrap: nowrap; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 12px;
    font-size: 0.85rem; line-height: 1.3; max-width: 100%;
}
.proof-line strong {
    flex: none; padding: 5px 9px; border-radius: 8px; background: rgba(198, 255, 46, 0.14); font-size: 0.9rem;
}
.proof-line span { min-width: 0; }
@media (max-width: 560px) {
    .proof-line { font-size: 0.8rem; gap: 8px; }
    .proof-line strong { font-size: 0.82rem; padding: 4px 8px; }
}
.thumbs:has(> .thumb:only-child) { display: none; }
.option-group .big-order { margin-top: 2px; }
@media (max-width: 560px) {
    .big-order { flex-wrap: nowrap; gap: 10px; padding: 9px 9px 9px 9px; }
    .big-order-ico { width: 36px; height: 36px; border-radius: 10px; font-size: 0.78rem; }
    .big-order-text { flex-basis: auto; }
    .big-order-text strong { font-size: 0.86rem; }
    .big-order-text span { display: none; }
    .big-order-btn { width: auto; padding: 8px 11px; font-size: 0.8rem; }
}
.gallery-stage:has(> img.is-photo) .stage-tag { display: none; }

/* Samsung Internet / forced dark mode protection (see shop.css) */
.gallery-stage .hex { background: url("../assets/hex/hex-stage.svg") 0 0 / 60px 34.64px repeat; }
.gallery-stage .hex > * { display: none; }
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: only light;
        --charcoal: #1c1c1b; --charcoal-2: #2a2a28; --lime: #c6ff2e; --lime-hover: #b9f31e;
        --cream: #f3f0e7; --paper: #fbfaf5; --white: #ffffff; --ink: #1c1c1b; --muted: #62615d;
    }
    body { background-color: #f3f0e7; color: #1c1c1b; }
}

/* 12+ stands: one thin line under the counter */
.big-line { display: block; padding: 4px 2px; font-size: 0.86rem; color: var(--muted); text-decoration: none; text-align: center; transition: color 0.2s ease, background-color 0.2s ease; border-radius: 10px; }
.big-line b { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.big-line:hover b { color: var(--charcoal); }
.big-line.is-hot { padding: 10px 12px; background: var(--lime); color: var(--charcoal); border: 1.5px solid var(--charcoal); }
/* Cleaner buy box (2026-11-07) */
.buybox .assurances { border-top: 0; padding-top: 2px; gap: 10px; font-size: 0.88rem; }
.buybox .model-link { margin-top: 0; }
.buy-acc { border-top: 1px solid var(--line); margin-top: 4px; }
.buy-acc summary { padding-block: 14px; font-size: 0.95rem; }
.buy-acc details p, .buy-acc .acc-steps, .buy-acc .acc-specs { color: var(--muted); font-size: 0.9rem; padding-bottom: 14px; }
.acc-steps { padding-left: 18px; display: grid; gap: 6px; }
.acc-steps strong { color: var(--ink); }
.acc-specs > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 5px; border-bottom: 1px dashed var(--line); }
.acc-specs dd { color: var(--ink); text-align: right; }
.faq-specs.faq-only { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.swatch { padding: 6px 14px 6px 8px; }
.swatch-dot { width: 18px; height: 18px; }
@media (max-width: 560px) {
    .package-visual { height: 70px; }
    .package-card { padding: 12px 8px 10px; }
    .package input:checked + .package-card { padding: 11.5px 7.5px 9.5px; }
}
.acc-sub { font-size: 0.95rem; margin: 10px 0 4px; color: var(--ink); }
.acc-feats { list-style: none; padding-left: 0; }
.shops .s-results { margin-top: 4px; }
@media (max-width: 560px) { .buybox .lead { font-size: 0.95rem; line-height: 1.45; } }

/* ===== Clean product page (2026-11-08) ===== */
.buybox { gap: 14px; }
.buybox h1 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -0.02em; }
.buybox .price-row { margin-top: -4px; gap: 8px 10px; align-items: center; }
.buybox .price-now { font-size: 1.5rem; }
.buybox .price-was { font-size: 1rem; }
.buybox .save-badge { font-size: 0.78rem; padding: 4px 9px; }
.proof-line { justify-self: start; padding: 0; background: none; color: var(--muted); font-size: 0.85rem; gap: 8px; border: 0; }
.proof-line strong { background: var(--charcoal); color: var(--lime); padding: 3px 8px; border-radius: 6px; font-size: 0.8rem; }
.proof-line span { color: var(--muted); }
.ticks { list-style: none; display: grid; gap: 7px; margin: 0; padding: 0; font-size: 0.93rem; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1c1b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/11px no-repeat; border: 1px solid var(--charcoal); }
.option-group { gap: 8px; }
.option-group legend { font-size: 0.88rem; margin-bottom: 8px; }
.swatch { padding: 5px 12px 5px 6px; font-size: 0.85rem; }
.swatch-dot { width: 16px; height: 16px; }

/* packages as clean rows */
.packages, .packages-4 { grid-template-columns: 1fr; gap: 8px; }
.package-card, .package-menu .package-card {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: auto auto;
    column-gap: 12px; row-gap: 0; align-items: center; justify-items: start; text-align: left;
    padding: 11px 14px; border-radius: 12px; height: auto; transform: none !important;
}
.package input:checked + .package-card, .package-menu input:checked + .package-card { padding: 10.5px 13.5px; border-width: 2px; background: #fbfff0; }
.package-visual, .pm-stack { grid-column: 1; grid-row: 1 / 3; width: 44px; height: 44px; margin: 0; background: none; border-radius: 8px; }
.package-visual img { height: 44px; }
.package-visual-pair img { height: 40px; }
.package-visual-pair img + img { margin-left: -24px; height: 44px; }
.pm-stack img { width: 34px; height: 34px; margin-left: -17px; top: 5px; }
.package-name { grid-column: 2; grid-row: 1; font-family: var(--font-body, inherit); font-weight: 700; font-size: 0.95rem !important; }
.package-sub { grid-column: 2; grid-row: 2; font-size: 0.78rem !important; }
.package-price { grid-column: 3; grid-row: 1; justify-self: end; font-size: 0.98rem; }
.pm-was { grid-column: 3; grid-row: 2; justify-self: end; font-size: 0.75rem; color: var(--muted); }
.package-badge { position: static; transform: none; grid-column: 2; grid-row: 1; justify-self: end; margin-right: -4px; font-size: 0.62rem; padding: 2px 7px; }
.package-card:has(.package-badge) .package-name { grid-column: 2; }
.pm-off { position: static; grid-column: 3; grid-row: 2; justify-self: end; font-size: 0.68rem; padding: 2px 6px; transform: none; }
.package-menu .package-card:has(.pm-off) .pm-was { display: none; }
.table-stepper { padding: 8px 8px 8px 14px; border-radius: 12px; font-size: 0.9rem; }
.tiers { display: none; }
.tier-ladder { margin-top: 0; }
.tier-next { margin: 0; font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.package-menu input:checked + .package-card { color: var(--ink); border: 2px solid var(--charcoal); }
.package-menu input:checked + .package-card .package-price { color: var(--ink); }
.package-menu input:checked + .package-card .pm-was,
.package-menu input:checked + .package-card .package-sub { color: var(--muted); }
.pm-off, .package-menu input:checked + .package-card .pm-off { border-radius: 6px; border: 1px solid var(--charcoal); padding: 1px 6px; font-size: 0.7rem; margin-top: 3px; }
.pm-stack-2 img:nth-child(1) { transform: translateX(-6px) rotate(-8deg); }
.pm-stack-2 img:nth-child(2) { transform: translateX(6px) rotate(6deg); }
.pm-stack-3 img:nth-child(1) { transform: translateX(-9px) rotate(-10deg); }
.pm-stack-3 img:nth-child(2) { transform: translateX(9px) rotate(8deg); }
.pm-stack-4 img:nth-child(1) { transform: translateX(-11px) rotate(-12deg); }
.pm-stack-4 img:nth-child(2) { transform: translateX(11px) rotate(10deg); }
.pm-stack-4 img:nth-child(3) { transform: translateX(-4px) rotate(-4deg); }
.pm-stack-4 img:nth-child(4) { transform: translateX(4px) rotate(4deg); }
/* trust row under the button */
.trust-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.trust-row li { display: grid; justify-items: center; gap: 5px; text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--ink); }
.trust-row svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--charcoal); stroke: var(--lime); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.buybox .buy-acc { margin-top: 6px; }
/* counter next to the button */
.buy-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.buy-row .qty { border-radius: 14px; padding: 0 4px; border: 1.5px solid var(--line); background: var(--white); }
.buy-row .qty button { width: 34px; height: 100%; border-radius: 10px; }
.buy-row .qty output { min-width: 26px; font-size: 1.05rem; }
.buy-row .pbtn-cta { min-height: 56px; font-size: 1.05rem; width: 100%; }
.pbtn-cta { border: 0; }
/* bundle box */
.bundles { margin-top: 8px; display: grid; gap: 6px; }
.bundles-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bundles-head h2 { font-size: 1.15rem; margin: 0; }
.bundles-tag { padding: 3px 8px; border-radius: 6px; background: var(--charcoal); color: var(--lime); font-size: 0.7rem; font-weight: 800; white-space: nowrap; }
.bundles-sub { margin: 0 0 4px; color: var(--muted); font-size: 0.88rem; }
.bundles-list { display: grid; gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px 4px 2px 0; overscroll-behavior: contain; }
.bundle-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); }
.bundle-img { position: relative; height: 52px; border-radius: 8px; background: #f1f0eb; }
.bundle-img img { position: absolute; top: 6px; width: 34px; height: 40px; object-fit: contain; }
.bundle-img img:nth-child(1) { left: 4px; }
.bundle-img img:nth-child(2) { left: 18px; }
.bundle-img img:nth-child(3) { left: 30px; top: 9px; width: 26px; }
.bundle-img-2 img:nth-child(2) { left: 20px; top: 12px; width: 32px; height: 34px; }
.bundle-info { display: grid; gap: 2px; min-width: 0; }
.bundle-info strong { font-size: 0.9rem; line-height: 1.25; }
.bundle-price { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.bundle-price b { font-size: 0.95rem; }
.bundle-price s { color: var(--muted); font-size: 0.78rem; }
.bundle-info small { color: #3f6b00; font-size: 0.75rem; font-weight: 600; }
.bundle-add { padding: 9px 12px; border-radius: 999px; background: var(--lime); color: var(--charcoal); font-weight: 700; font-size: 0.85rem; border: 0; cursor: pointer; }
.bundle-add:hover { background: var(--lime-hover); }
.bundle-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
.bundle-img { height: 64px; overflow: hidden; }
.bundle-img img { top: 4px; width: 50px; height: 56px; }
.bundle-img img:nth-child(1) { left: -2px; }
.bundle-img img:nth-child(2) { left: 16px; }
.bundle-img img:nth-child(3) { left: 30px; top: 10px; width: 38px; }
.bundle-img-2 img:nth-child(2) { left: 22px; top: 16px; width: 40px; height: 44px; }
.trust-row:has(> li:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.trust-row li { font-size: 0.72rem; line-height: 1.25; }
/* badge sits on the card's top edge so it never covers the name */
.package-badge { position: absolute; top: -9px; left: 70px; grid-column: auto; grid-row: auto; margin: 0; }
.trust-row .is-stat button { display: grid; justify-items: center; gap: 5px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.trust-row .is-stat svg { background: var(--lime); stroke: var(--charcoal); outline: 1.5px solid var(--charcoal); outline-offset: -1.5px; }
.thumbs:has(> .thumb:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.gallery { scroll-margin-top: 84px; }
.trust-row .is-stat button { text-decoration: none; }
