/*
 * Sebaris design foundation: pink theme tokens, font stacks and a few shared classes.
 *
 * HOW PAGES USE THIS FILE
 *   This file has NO element rules (no body, a, h1 ...). Linking it changes nothing by itself.
 *   A page opts in by pointing its own :root variables at these tokens, or by using the
 *   sb- classes below. Pages not yet restyled keep their old palette until their task.
 *
 *   Fonts are loaded by each page with ONE Google Fonts link (Anton 400; Bricolage Grotesque
 *   400, 600, 700; Poppins 600; Fraunces italic 600), display=swap, plus a preconnect.
 *
 * WHICH COLOUR MAY BE TEXT ON WHICH BACKGROUND (WCAG AA: 4.5:1 for normal text)
 *   --sb-choco      main text, on any light background (white, pink-50, pink-100, yellow, blue)
 *   --sb-brown      secondary text, on white, pink-50 or pink-100 (6.5:1 or more)
 *   --sb-pink-text  small pink text, on any light background (4.8:1 or more)
 *   --sb-pink-600   text only at 18 px or larger, or bold 14 px, and only on white (4.6:1).
 *                   White text on a pink-600 button is fine (4.6:1).
 *   --sb-logo       the logo text only (large text)
 *   --sb-yellow     choco text on it (9.9:1); yellow text on choco (9.9:1)
 *   --sb-pink-300   NEVER text (1.9:1 on white). Fills, shadows and decoration only.
 *   --sb-danger     error text, on white or pink-50
 *   --sb-success    success text, on white or pink-50
 */

:root {
    /* Colours (owner palette) */
    --sb-white: #FFFFFF;      /* main background; keep plenty of white */
    --sb-pink-50: #FFF1F5;    /* soft section background */
    --sb-pink-100: #FFD9E4;   /* cards and tiles background */
    --sb-pink-300: #FF9EBE;   /* fills, shadows, decoration. Never text */
    --sb-pink-600: #D6336F;   /* buttons and accents */
    --sb-pink-text: #B8205A;  /* small pink text on light backgrounds */
    --sb-logo: #E8457F;       /* logo only */
    --sb-choco: #3E2118;      /* main text, borders, dark buttons */
    --sb-brown: #6B4436;      /* secondary text */
    --sb-brown-900: #4A2A1F;  /* dark panels */
    --sb-yellow: #FFCF3F;     /* highlights, yellow buttons */
    --sb-blue: #BFE3F5;       /* occasional accent */
    --sb-blue-50: #EEF7FC;    /* occasional soft background */
    --sb-danger: #B42318;     /* errors */
    --sb-success: #256B3A;    /* success */

    /* Fonts, each with a fallback stack */
    --sb-font-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
    --sb-font-body: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --sb-font-logo: 'Poppins', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --sb-font-accent: 'Fraunces', Georgia, 'Times New Roman', serif;

    /* Look */
    --sb-border-width: 2.5px;
    --sb-border: var(--sb-border-width) solid var(--sb-choco);
    --sb-shadow: 4px 4px 0 var(--sb-pink-600);
    --sb-shadow-choco: 4px 4px 0 var(--sb-choco);
    --sb-radius-pill: 999px;
    --sb-radius-card: 20px;
    --sb-focus-ring: 3px solid var(--sb-choco);
    --sb-focus-offset: 3px;
}

/* --- Buttons: dark pill by default --- */
.sb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-family: var(--sb-font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
    padding: 0.85rem 1.6rem;
    background: var(--sb-choco); color: var(--sb-white);
    border: var(--sb-border); border-radius: var(--sb-radius-pill);
    box-shadow: var(--sb-shadow);
    text-decoration: none; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.sb-btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--sb-pink-600); }
.sb-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--sb-pink-600); }
.sb-btn:disabled { background: var(--sb-pink-100); color: var(--sb-brown); box-shadow: none; transform: none; cursor: not-allowed; }

.sb-btn--pink { background: var(--sb-pink-600); color: var(--sb-white); box-shadow: var(--sb-shadow-choco); }
.sb-btn--pink:hover { box-shadow: 5px 5px 0 var(--sb-choco); }
.sb-btn--pink:active { box-shadow: 2px 2px 0 var(--sb-choco); }

.sb-btn--yellow { background: var(--sb-yellow); color: var(--sb-choco); box-shadow: var(--sb-shadow-choco); }
.sb-btn--yellow:hover { box-shadow: 5px 5px 0 var(--sb-choco); }
.sb-btn--yellow:active { box-shadow: 2px 2px 0 var(--sb-choco); }

/* --- Card --- */
.sb-card {
    background: var(--sb-white); color: var(--sb-choco);
    border: var(--sb-border); border-radius: var(--sb-radius-card);
    box-shadow: var(--sb-shadow);
}

/* --- Text styles --- */
.sb-eyebrow {
    font-family: var(--sb-font-body); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--sb-pink-text);
}
.sb-display {
    font-family: var(--sb-font-display); font-weight: 400;
    text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.05;
}
.sb-logo {
    font-family: var(--sb-font-logo); font-weight: 600; letter-spacing: -0.03em;
    color: var(--sb-logo); text-decoration: none;
}

/* --- Focus ring: visible for keyboard users --- */
.sb-btn:focus-visible,
.sb-focus:focus-visible {
    outline: var(--sb-focus-ring);
    outline-offset: var(--sb-focus-offset);
}

/* ==========================================================================
 * SITE SHELL (S9, aligned with the mockup in S9b): announcement bar, top bar, nav, floating cart, footer.
 * Every customer page uses these classes. Markup per page:
 *   <p class="sb-announce">...</p>
 *   <header class="sb-topbar"><div class="sb-topbar__inner">
 *       logo.sb-logo, nav.sb-nav, a#loginPill.sb-topbar__login, div.sb-topbar__links (phone-only links)
 *   </div></header>
 *   <a|button class="sb-cartfab"> bag icon + span.sb-cartfab__count#floatingCartCount </a|button>
 *   <footer class="sb-footer"><div class="sb-footer__inner"> .sb-footer__grid (brand, two columns) + .sb-footer__bar </div></footer>
 * Script hooks kept on the markup (do not rename): #loginPill, .nav-orders, #floatingCartCount, #footerLogin.
 * Header layout: desktop above 900px (logo left, nav centred, pill right).
 * 900px and below: row 1 logo + pill, row 2 the phone links.
 * ========================================================================== */

/* --- Announcement bar: thin yellow strip, no link --- */
.sb-announce {
    margin: 0; padding: 0.45rem 1rem; text-align: center;
    background: var(--sb-yellow); color: var(--sb-choco);
    border-bottom: 2px solid var(--sb-choco);
    font-family: var(--sb-font-body); font-size: 0.8125rem; font-weight: 600; line-height: 1.3;
    text-wrap: balance;
}

@media (max-width: 420px) {
    .sb-announce { font-size: 0.75rem; padding-left: 0.5rem; padding-right: 0.5rem; }   /* keeps the line on one row at 360 px */
}

/* --- Top bar --- */
.sb-topbar {
    background: var(--sb-white);
    border-bottom: 2px solid var(--sb-choco);
    position: sticky; top: 0; z-index: 100;
    font-family: var(--sb-font-body);
}
.sb-topbar__inner {
    max-width: 1200px; margin: 0 auto; padding: 0.8rem 2rem;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
}
.sb-topbar .sb-logo { font-size: 2.25rem; line-height: 1.1; justify-self: start; white-space: nowrap; }   /* 36px */

/* Log in pill: pink fill, choco border and hard choco shadow, uppercase, person icon (logged out only) */
.sb-topbar__login {
    justify-self: end; display: block; max-width: 11rem;
    padding: 0.4rem 1rem; text-align: center; line-height: 1.2; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;   /* block, so a long name gets an ellipsis */
    background: var(--sb-pink-300); color: var(--sb-choco);
    border: var(--sb-border); border-radius: var(--sb-radius-pill); box-shadow: 3px 3px 0 var(--sb-choco);
    font-family: var(--sb-font-body); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    text-decoration: none; transition: transform 0.15s, box-shadow 0.15s;
}
.sb-topbar__login:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--sb-choco); }
.sb-topbar__login:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--sb-choco); }
.sb-topbar__icon { display: inline-block; width: 16px; height: 16px; margin-right: 0.45rem; vertical-align: -3px; }

/* Nav: uppercase, 14px, bold; the current page is underlined (2px, offset 6px) */
.sb-nav { display: flex; gap: 1.6rem; justify-self: center; }
.sb-nav a {
    color: var(--sb-choco); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    text-decoration: none; text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.sb-nav a:hover { text-decoration-line: underline; text-decoration-color: var(--sb-pink-300); }
.sb-nav a.active { text-decoration-line: underline; text-decoration-color: var(--sb-choco); }
.sb-nav a[hidden] { display: none; }

/* Phone-only links row: hidden on desktop, where the nav shows them */
.sb-topbar__links { display: none; }

.sb-topbar a:focus-visible { outline: var(--sb-focus-ring); outline-offset: var(--sb-focus-offset); }

@media (max-width: 900px) {
    .sb-topbar__inner {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "logo login" "links links";
        padding: 0.6rem 1rem 0.35rem; gap: 0.1rem 0.5rem;
    }
    .sb-topbar .sb-logo { grid-area: logo; font-size: 1.75rem; }   /* 28px; never below 24px */
    .sb-topbar__login { grid-area: login; max-width: 100%; }
    .sb-nav { display: none; }
    .sb-topbar__links { grid-area: links; display: flex; gap: 1.25rem; }   /* Home, Shop, Brewing Guide, Track order */
    .sb-nav__phone {
        display: inline-flex; align-items: center; min-height: 36px; white-space: nowrap;
        color: var(--sb-choco); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
        text-underline-offset: 6px; text-decoration-thickness: 2px;
    }
    .sb-nav__phone.active { text-decoration-line: underline; text-decoration-color: var(--sb-choco); }
}

/* Small phones: a slightly tighter pill, so a short name such as "Hello, Tester!" still fits whole at 360px */
@media (max-width: 420px) {
    .sb-topbar__links { gap: 0.8rem; }
    .sb-nav__phone { font-size: 0.75rem; letter-spacing: 0.03em; }
    .sb-topbar__login { padding: 0.4rem 0.7rem; font-size: 0.8125rem; letter-spacing: 0.02em; }
    .sb-topbar__icon { margin-right: 0.35rem; }
}

@media (max-width: 340px) {
    .sb-topbar__links { gap: 0.45rem; }   /* very narrow phones: the four links still fit one row */
}

/* --- Floating cart button: choco, white bag icon, pink hard shadow, yellow badge --- */
.sb-cartfab {
    position: fixed; right: calc(32px + env(safe-area-inset-right, 0px)); bottom: calc(32px + env(safe-area-inset-bottom, 0px)); z-index: 200;   /* a corner button, a little in from the edges */
    width: 66px; height: 66px; padding: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--sb-choco); color: var(--sb-white);
    border: var(--sb-border); box-shadow: 4px 4px 0 var(--sb-pink-300);
    text-decoration: none; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.sb-cartfab svg { width: 28px; height: 28px; }
@media (max-width: 560px) { .sb-cartfab { right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(28px + env(safe-area-inset-bottom, 0px)); } }
.sb-cartfab:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--sb-pink-300); }
.sb-cartfab:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--sb-pink-300); }
/* Focus ring: yellow, sandwiched between two choco bands, so it shows on white, pink, dark and choco backgrounds */
.sb-cartfab:focus-visible { outline: 3px solid var(--sb-yellow); outline-offset: 3px; box-shadow: 0 0 0 9px var(--sb-choco); }
.sb-cartfab__count {
    position: absolute; top: -6px; right: -6px;
    min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    background: var(--sb-yellow); color: var(--sb-choco);
    border: 2px solid var(--sb-choco);
    font-family: var(--sb-font-body); font-size: 0.75rem; font-weight: 700; line-height: 1;
}

/* --- Footer: dark choco, brand + two link columns, bottom bar --- */
.sb-footer {
    background: var(--sb-choco); color: var(--sb-pink-50);
    padding: 3rem 0 2rem; text-align: left;
    font-family: var(--sb-font-body);
}
.sb-footer__inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }   /* same side space as the top bar, so the two line up */
.sb-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.sb-footer .sb-footer__logo { display: block; margin: 0 0 0.75rem; font-size: 2.5rem; line-height: 1.1; color: var(--sb-yellow); }   /* 40px */
.sb-footer__tagline { margin: 0; max-width: 30rem; font-size: 0.95rem; line-height: 1.6; }
.sb-footer__eyebrow { margin: 0 0 0.75rem; color: var(--sb-yellow); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.sb-footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; font-size: 0.95rem; line-height: 1.4; }
.sb-footer a { color: var(--sb-pink-50); text-decoration: none; }
.sb-footer a:hover { color: var(--sb-white); text-decoration: underline; text-underline-offset: 4px; }
.sb-footer a:focus-visible { outline: 3px solid var(--sb-yellow); outline-offset: 3px; }   /* yellow: a choco ring cannot be seen on choco */
.sb-footer__bar {
    display: flex; justify-content: space-between; gap: 0.5rem 1.5rem; flex-wrap: wrap;
    margin: 2.25rem 0 0; padding: 1rem 6rem 0 0;   /* right space: the floating cart button never covers the text */
    border-top: 1px solid var(--sb-brown);
    color: var(--sb-pink-100); font-size: 0.85rem; line-height: 1.5;
}
.sb-footer__bar p { margin: 0; }

@media (max-width: 900px) {
    .sb-footer__inner { padding: 0 1rem; }   /* the top bar has 1rem side space from here down */
}
@media (max-width: 700px) {
    .sb-footer { padding: 2.25rem 0 1.5rem; }
    .sb-footer__grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; }
    .sb-footer__brand { grid-column: 1 / -1; }
    .sb-footer .sb-footer__logo { font-size: 2.125rem; }   /* 34px */
    .sb-footer__bar { flex-direction: column; padding-right: 5.5rem; margin-top: 1.75rem; }
}

/* ==========================================================================
 * HOME PAGE (S10c): aligned with the mockup. Details row, hero band with slideshow and headline,
 * hero-line row with two drawings, marquee, current lineup, About (dark), Brewing Guide (yellow), How it works (pink).
 * All classes start with sb-h-. Values come from the mockup and the art reference file.
 * ========================================================================== */
.sb-h-wrap { max-width: 1280px; margin: 0 auto; box-sizing: border-box; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sb-h-disp { font-family: var(--sb-font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.98; }
.sb-h-hand { font-family: var(--sb-font-display); font-weight: 400; }   /* the pink word inside a heading */
.sb-h-eyebrow { margin: 0; font-family: var(--sb-font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.sb-h-btn-arrow { width: 18px; height: 18px; }

/* Focus ring: choco, 3px (the S7 look). Dark and pink areas override it where choco would not show. */
.sb-h-details a:focus-visible, .sb-h-band a:focus-visible, .sb-h-lineup a:focus-visible, .sb-h-lineup button:focus-visible, .sb-h-guide a:focus-visible {
    outline: var(--sb-focus-ring); outline-offset: var(--sb-focus-offset);
}

/* --- 1. Details row (under the top bar) --- */
.sb-h-details { background: var(--sb-white); color: var(--sb-choco); font-family: var(--sb-font-body); padding: 20px 0 16px; }
.sb-h-details__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; font-weight: 600; line-height: 1.4; }
.sb-h-details__row > * { white-space: nowrap; }   /* each item stays on one line; only the row may wrap, and only on the narrowest phones */
.sb-h-details__row > * { color: var(--sb-choco); text-decoration: none; }
.sb-h-details__row > :nth-child(1) { text-align: left; }
.sb-h-details__row > :nth-child(2) { text-align: center; }
.sb-h-details__row > :nth-child(3) { text-align: right; }
.sb-h-details__handle { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .sb-h-details__row { font-size: 12px; gap: 8px; } }
@media (max-width: 420px) {   /* 390 px: the three items still fit on one row; below that the row may wrap, centred */
    .sb-h-details .sb-h-wrap { padding-left: 14px; padding-right: 14px; }
    .sb-h-details__row { font-size: 10.5px; gap: 4px 6px; }
}
@media (max-width: 380px) { .sb-h-details__row { justify-content: center; } }

/* --- 2. Hero band: pink band, one rounded slideshow, headline over it, Shop now on its bottom edge --- */
.sb-h-band { background: var(--sb-pink-300); border-top: 3px solid var(--sb-choco); border-bottom: 3px solid var(--sb-choco); padding: 28px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px)); }
.sb-h-band__inner { position: relative; max-width: 1360px; margin: 0 auto; }
.sb-h-slides { position: relative; aspect-ratio: 16 / 8; max-width: 100%; overflow: hidden; background: var(--sb-blue); border: 3px solid var(--sb-choco); border-radius: 32px; box-shadow: 8px 8px 0 var(--sb-choco); }

/* Slideshow: six images, 36 s loop, 6 s each, cross-fade with a slow zoom-out and sideways drift (mockup values).
 * Image 1 is in the frame from the start. Images 2 to 6 wait far outside the frame (translate 1500%), so the browser
 * does not download them (loading="lazy"). Each one moves in 3.6 s before its fade-in, which is when it starts loading. */
.sb-h-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; translate: 1500% 0; }
.sb-h-slide:first-child { opacity: 1; translate: none; }
@keyframes sb-h-show {
    0%      { opacity: 0; translate: 0 0; transform: scale(1.07) translateX(1.5%); }
    10%     { opacity: 0; translate: 0 0; transform: scale(1.07) translateX(1.5%); }
    13%     { opacity: 1; }
    26.66%  { opacity: 1; }
    30%     { opacity: 0; translate: 0 0; transform: scale(1.01) translateX(-1.5%); }
    30.01%  { opacity: 0; translate: 1500% 0; transform: scale(1.01) translateX(-1.5%); }
    100%    { opacity: 0; translate: 1500% 0; transform: scale(1.01) translateX(-1.5%); }
}
.sb-h-dots { position: absolute; right: 96px; bottom: 22px; display: flex; gap: 6px; padding: 6px 10px; background: rgba(255, 255, 255, 0.85); border: 2px solid var(--sb-choco); border-radius: 999px; }
.sb-h-dot { width: 10px; height: 10px; background: var(--sb-white); border: 2px solid var(--sb-choco); border-radius: 999px; }
@keyframes sb-h-dotk {
    0%      { background: #FFFFFF; width: 10px; }
    3%      { background: #3E2118; width: 26px; }
    16.66%  { background: #3E2118; width: 26px; }
    20%     { background: #FFFFFF; width: 10px; }
    100%    { background: #FFFFFF; width: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
    .sb-h-slide { animation: sb-h-show 36s linear infinite; }
    .sb-h-slide:nth-child(1) { animation-delay: -4.6s; }
    .sb-h-slide:nth-child(2) { animation-delay: 1.4s; }
    .sb-h-slide:nth-child(3) { animation-delay: 7.4s; }
    .sb-h-slide:nth-child(4) { animation-delay: 13.4s; }
    .sb-h-slide:nth-child(5) { animation-delay: 19.4s; }
    .sb-h-slide:nth-child(6) { animation-delay: 25.4s; }
    .sb-h-dot { animation: sb-h-dotk 36s linear infinite backwards; }
    .sb-h-dot:nth-child(1) { animation-delay: -1s; }
    .sb-h-dot:nth-child(2) { animation-delay: 5s; }
    .sb-h-dot:nth-child(3) { animation-delay: 11s; }
    .sb-h-dot:nth-child(4) { animation-delay: 17s; }
    .sb-h-dot:nth-child(5) { animation-delay: 23s; }
    .sb-h-dot:nth-child(6) { animation-delay: 29s; }
}
/* With reduced motion: no animation, only the first image shows (the rest never load) */
@media (prefers-reduced-motion: reduce) { .sb-h-slide:not(:first-child) { display: none; } }

/* Headline over the images: white, choco outline and hard shadow, last line yellow */
.sb-h-scrim { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; pointer-events: none; border-radius: 32px; background: radial-gradient(ellipse at center, rgba(62, 33, 24, 0.34), rgba(62, 33, 24, 0) 68%); }
.sb-h-h1 { position: relative; z-index: 1; margin: 0; font-size: 72px; line-height: 0.98; letter-spacing: -0.01em; text-align: center; color: var(--sb-white); -webkit-text-stroke: 2.5px var(--sb-choco); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--sb-choco); }
.sb-h-h1 span { display: block; }
.sb-h-h1 .sb-h-h1__last { color: var(--sb-yellow); }

.sb-h-shopnow, .sb-h-seeall, .sb-h-guidebtn { text-transform: uppercase; letter-spacing: 0.04em; }
.sb-h-shopnow { position: absolute; left: 0; right: 0; bottom: -26px; width: fit-content; margin: 0 auto; z-index: 2; font-size: 18px; padding: 15px 44px; white-space: nowrap; }

@media (max-width: 860px) { .sb-h-h1 { font-size: 60px; } }
@media (max-width: 760px) {
    .sb-h-slides { aspect-ratio: 4 / 3; border-radius: 22px; }
    .sb-h-scrim { border-radius: 22px; }
    .sb-h-h1 { -webkit-text-stroke: 1.5px var(--sb-choco); text-shadow: 3px 3px 0 var(--sb-choco); }
}
@media (max-width: 560px) {
    .sb-h-slides { aspect-ratio: 4 / 5; box-shadow: 5px 5px 0 var(--sb-choco); }
    .sb-h-scrim { background: radial-gradient(ellipse at center, rgba(62, 33, 24, 0.55), rgba(62, 33, 24, 0.12) 80%); padding-bottom: 56px; }
    .sb-h-h1 { font-size: 46px; -webkit-text-stroke: 2px var(--sb-choco); text-shadow: 3px 3px 0 var(--sb-choco); }
    .sb-h-dots { bottom: 46px; }
}

/* --- 3. Hero-line row: kettle drawing, the line, bag-and-grinder drawing --- */
.sb-h-flank { background: var(--sb-white); color: var(--sb-choco); font-family: var(--sb-font-body); }
.sb-h-flank .sb-h-wrap { padding-top: 60px; padding-bottom: 48px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.sb-h-flank__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr) 170px; grid-template-areas: "l c r"; align-items: center; gap: 32px; max-width: 1100px; width: 100%; }
.sb-h-flank__l { grid-area: l; display: flex; justify-content: center; }
.sb-h-flank__c { grid-area: c; display: flex; justify-content: center; min-width: 0; }
.sb-h-flank__r { grid-area: r; display: flex; justify-content: center; }
.sb-h-flank__line { margin: 0; max-width: 46ch; font-size: 17px; font-weight: 500; line-height: 1.6; color: var(--sb-brown); }
.sb-h-art { width: 100%; height: auto; overflow: visible; }
.sb-h-art--kettle { max-width: 230px; }
.sb-h-art--grinder { max-width: 200px; }
@media (max-width: 860px) {
    .sb-h-flank__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "c c" "l r"; }
}

/* Drawing animations (art reference values) */
@keyframes sb-h-flowv { to { stroke-dashoffset: var(--p, -16); } }
.sb-h-stream { --p: -16; animation: sb-h-flowv 0.55s linear infinite; }
.sb-h-stream--12 { --p: -12; }
@keyframes sb-h-bean { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: 1; } 100% { transform: translate(6px, 76px); opacity: 1; } }
.sb-h-bean { animation: sb-h-bean 1.3s cubic-bezier(0.5, 0, 1, 0.65) infinite; opacity: 0; transform-box: view-box; }
.sb-h-bean:nth-child(1) { animation-delay: 0s; }
.sb-h-bean:nth-child(2) { animation-delay: 0.26s; }
.sb-h-bean:nth-child(3) { animation-delay: 0.52s; }
.sb-h-bean:nth-child(4) { animation-delay: 0.78s; }
.sb-h-bean:nth-child(5) { animation-delay: 1.04s; }
@keyframes sb-h-drop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }
.sb-h-drop { animation: sb-h-drop 1.4s ease-in infinite; transform-box: view-box; }
.sb-h-drop--2 { animation-delay: 0.7s; }
@keyframes sb-h-kettle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(3deg); } }
.sb-h-kettle { animation: sb-h-kettle 3s ease-in-out infinite; transform-box: view-box; transform-origin: 235px 410px; }
@keyframes sb-h-steam { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.sb-h-steam { animation: sb-h-steam 1.8s ease-in-out infinite; }
.sb-h-steam--2 { animation-delay: 0.6s; }
.sb-h-steam--3 { animation-delay: 1.2s; }
@keyframes sb-h-wob { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.sb-h-wob { transform-box: fill-box; transform-origin: 50% 100%; animation: sb-h-wob 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
    .sb-h-stream, .sb-h-bean, .sb-h-drop, .sb-h-kettle, .sb-h-steam, .sb-h-wob { animation: none; }
    .sb-h-bean { opacity: 1; }
}

/* --- 4. Marquee: yellow band, slow seamless scroll, pauses on hover and focus --- */
.sb-h-marquee { overflow: hidden; background: var(--sb-yellow); color: var(--sb-choco); border-top: 3px solid var(--sb-choco); border-bottom: 3px solid var(--sb-choco); padding: 16px 0; white-space: nowrap; font-family: var(--sb-font-display); font-size: 30px; line-height: 1.1; }
.sb-h-marquee__track { display: flex; width: max-content; animation: sb-h-scroll 30s linear infinite; }
.sb-h-marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.sb-h-marquee__unit { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.sb-h-star { display: inline-block; color: var(--sb-pink-600); animation: sb-h-spin 4s linear infinite; }
@keyframes sb-h-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes sb-h-spin { to { transform: rotate(360deg); } }
.sb-h-marquee:hover .sb-h-marquee__track, .sb-h-marquee:focus .sb-h-marquee__track, .sb-h-marquee:focus-within .sb-h-marquee__track { animation-play-state: paused; }
.sb-h-marquee:focus-visible { outline: var(--sb-focus-ring); outline-offset: -8px; }
@media (max-width: 520px) { .sb-h-marquee { font-size: 22px; padding: 12px 0; } .sb-h-marquee__unit { gap: 20px; padding-right: 20px; } }
@media (prefers-reduced-motion: reduce) {
    .sb-h-marquee { white-space: normal; text-align: center; padding: 16px 20px; }
    .sb-h-marquee__track { animation: none; width: auto; display: block; }
    .sb-h-marquee__group + .sb-h-marquee__group { display: none; }
    .sb-h-marquee__group { display: block; }
    .sb-h-marquee__unit + .sb-h-marquee__unit { display: none; }
    .sb-h-marquee__unit { display: flex; flex-wrap: wrap; justify-content: center; padding-right: 0; gap: 4px 16px; }
    .sb-h-marquee__unit > :last-child { display: none; }   /* no trailing star */
    .sb-h-star { animation: none; }
}

/* --- 5. Current lineup: blue band, centred heading with the cup icon, scroll-snap strip --- */
.sb-h-lineup { background: var(--sb-blue); color: var(--sb-choco); border-bottom: 3px solid var(--sb-choco); font-family: var(--sb-font-body); }
.sb-h-lineup .sb-h-wrap { padding-top: 72px; padding-bottom: 80px; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.sb-h-h2 { margin: 0; font-size: 44px; line-height: 1.05; text-align: center; text-wrap: balance; }
.sb-h-pink { color: var(--sb-pink-600); }
.sb-h-cupicon { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 52px; margin: 0 8px; position: relative; top: -5px; vertical-align: middle; background: var(--sb-yellow); border: 2.5px solid var(--sb-choco); border-radius: 999px; }
.sb-h-cupicon svg { width: 38px; height: 38px; overflow: visible; }
.sb-h-lineup__body { align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.sb-h-strip { width: 1048px; max-width: 100%; box-sizing: border-box; display: flex; gap: 24px; padding: 8px 8px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 8px; scrollbar-width: none; }
.sb-h-strip::-webkit-scrollbar { display: none; }
.sb-h-strip > :first-child { margin-left: auto; }    /* centres a few beans; with many beans the margin is 0 and the strip scrolls */
.sb-h-strip > :last-child { margin-right: auto; }
.sb-h-tile { flex: 0 0 240px; min-width: 0; display: flex; flex-direction: column; gap: 10px; scroll-snap-align: start; color: var(--sb-choco); text-decoration: none; }
.sb-h-tile__media { position: relative; aspect-ratio: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--sb-pink-100); border: 2.5px solid var(--sb-choco); border-radius: 20px; transition: transform 0.2s; }
.sb-h-tile:hover .sb-h-tile__media { transform: translateY(-4px); }
.sb-h-tile__media img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; display: block; }
.sb-h-tile__ph { font-family: var(--sb-font-logo); font-weight: 600; font-size: 3rem; color: var(--sb-pink-text); }
.sb-h-tile__name { padding: 0 2px; font-size: 17px; font-weight: 600; }
.sb-h-tile__oos { padding: 0 2px; margin-top: -6px; font-size: 12px; font-weight: 700; color: var(--sb-brown); }
.sb-h-tile__info { display: flex; flex-direction: column; gap: 6px; padding: 0 2px; margin-top: -4px; }
.sb-h-tile__kind { font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--sb-pink-text); }   /* pink-text: the mockup pink (#D6336F) is only 3.4:1 on this blue */
.sb-h-tile__rule { width: 28px; height: 2px; border-radius: 2px; background: #F3B4C8; }
.sb-h-tile__notes { font-size: 13px; line-height: 1.5; color: var(--sb-brown); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sb-h-tile--oos .sb-h-tile__media { opacity: 0.45; }   /* sold out: dimmed like Shop (Shop uses 0.45) */
.sb-h-tile--oos:hover .sb-h-tile__media { transform: none; }
.sb-h-empty { margin: 0; padding: 1rem 0; font-size: 1rem; line-height: 1.5; color: var(--sb-brown); text-align: center; }
.sb-h-empty a { color: var(--sb-pink-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sb-h-nav { display: flex; gap: 10px; }
.sb-h-nav[hidden] { display: none; }
.sb-h-nav button { width: 48px; height: 48px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--sb-white); color: var(--sb-choco); border: 2.5px solid var(--sb-choco); border-radius: 999px; cursor: pointer; }
.sb-h-nav button:disabled { opacity: 0.4; cursor: default; }
.sb-h-nav svg { width: 22px; height: 22px; }
.sb-h-seeall { font-size: 16px; padding: 14px 40px; }
@media (max-width: 520px) {
    .sb-h-h2 { font-size: clamp(24px, 8vw, 38px); white-space: nowrap; }   /* "Current (cup) lineup" stays on one line */
    .sb-h-cupicon { width: 2em; height: 1.1em; margin: 0 0.15em; top: -0.1em; border-width: 2px; }
    .sb-h-cupicon svg { width: 0.8em; height: 0.8em; }
    .sb-h-tile { flex-basis: 72%; }
    .sb-h-lineup .sb-h-wrap { padding-top: 56px; padding-bottom: 64px; }
}

/* --- 6. About (dark) --- */
.sb-h-about { background: var(--sb-choco); color: var(--sb-pink-50); font-family: var(--sb-font-body); }
.sb-h-about .sb-h-wrap { padding-top: 96px; padding-bottom: 96px; }
.sb-h-about__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.sb-h-about__text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.sb-h-about .sb-h-eyebrow { color: #F3CFDA; }
.sb-h-about__title { font-size: 40px; line-height: 1.05; text-wrap: balance; margin: 0; }
.sb-h-yellow { color: var(--sb-yellow); }
.sb-h-about__p { margin: 0; max-width: 46ch; font-size: 17px; line-height: 1.7; color: #F3CFDA; }
.sb-h-credit { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--sb-font-accent); font-style: italic; font-weight: 600; font-size: 19px; line-height: 1.5; color: var(--sb-yellow); }
.sb-h-credit svg { flex: 0 0 auto; }
.sb-h-about__art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.sb-h-about__disc { position: absolute; width: 380px; max-width: 90%; aspect-ratio: 1; border-radius: 50%; background: var(--sb-brown); }
.sb-h-art--about { position: relative; width: 380px; max-width: 92%; }

/* --- 7. Brewing Guide (yellow) with the recipe card --- */
.sb-h-guide { background: var(--sb-yellow); color: var(--sb-choco); font-family: var(--sb-font-body); }
.sb-h-guide .sb-h-wrap { padding-top: 96px; padding-bottom: 96px; }
.sb-h-guide__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.sb-h-guide__text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.sb-h-guide__title { font-size: 42px; line-height: 1.02; text-wrap: balance; margin: 0; }
.sb-h-guide__p { margin: 0; max-width: 36ch; font-size: 17px; font-weight: 500; line-height: 1.6; }
.sb-h-guidebtn { display: inline-flex; align-items: center; gap: 10px; background: var(--sb-choco); color: var(--sb-yellow); font-size: 16px; padding: 16px 28px; box-shadow: 4px 4px 0 var(--sb-pink-50); }
.sb-h-guidebtn:hover { box-shadow: 5px 5px 0 var(--sb-pink-50); }
.sb-h-guidebtn:active { box-shadow: 2px 2px 0 var(--sb-pink-50); }
.sb-h-card { display: flex; flex-direction: column; gap: 20px; padding: 28px; background: var(--sb-pink-50); border: 2.5px solid var(--sb-choco); border-radius: 32px; box-shadow: 8px 8px 0 var(--sb-choco); transform: rotate(1.2deg); }
.sb-h-card[hidden] { display: none; }
/* The whole card is one link to /guide: no underline, own colours, a small lift on hover, a 3px ring from the keyboard */
a.sb-h-card { color: inherit; text-decoration: none; cursor: pointer; }
a.sb-h-card:focus-visible { outline: 3px solid var(--sb-choco); outline-offset: 5px; }
@media (prefers-reduced-motion: no-preference) { a.sb-h-card { transition: transform 0.18s ease, box-shadow 0.18s ease; } }
@media (hover: hover) { a.sb-h-card:hover { transform: rotate(1.2deg) translate(-3px, -3px); box-shadow: 11px 11px 0 var(--sb-choco); } }
.sb-h-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sb-h-card__pills { display: flex; gap: 8px; flex-wrap: wrap; }
.sb-h-pill { padding: 6px 14px; background: var(--sb-choco); color: var(--sb-pink-50); border-radius: 999px; font-size: 13px; font-weight: 700; }
.sb-h-pill--process { padding: 4px 12px; background: var(--sb-pink-300); color: var(--sb-choco); border: 2px solid var(--sb-choco); }
.sb-h-card__dose { font-size: 13px; font-weight: 600; color: var(--sb-brown); }
.sb-h-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sb-h-tile4 { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px; background: var(--sb-pink-100); border-radius: 18px; grid-column: span 2; }   /* first row: three equal tiles */
.sb-h-tile4--half { grid-column: span 3; }
.sb-h-tile4--full { grid-column: 1 / -1; }   /* a recipe with only the older one-line grind text */                                                                                                  /* second row: two wider tiles */
.sb-h-tile4__label { font-size: 12px; font-weight: 600; color: var(--sb-brown); }
.sb-h-tile4__value { font-family: var(--sb-font-display); font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sb-h-tile4__text { font-size: 15px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.sb-h-steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sb-h-step { display: grid; grid-template-columns: 56px minmax(0, 1fr) 64px; gap: 12px; align-items: center; font-size: 15px; }
.sb-h-step__time { font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-h-step__name { font-weight: 600; }
.sb-h-step__ml { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.sb-h-step__ml--done { color: var(--sb-brown); font-variant-numeric: normal; }
.sb-h-step + .sb-h-step { padding-top: 10px; border-top: 2px solid rgba(62, 33, 24, 0.12); }   /* thin line between rows */

/* --- 8. How it works (pink) --- */
.sb-h-how { background: var(--sb-pink-100); color: var(--sb-choco); font-family: var(--sb-font-body); }
.sb-h-how .sb-h-wrap { padding-top: 88px; padding-bottom: 104px; }
.sb-h-how .sb-h-eyebrow { text-align: center; color: var(--sb-brown); margin-bottom: 12px; }
.sb-h-how__title { margin: 0 0 44px; font-size: 42px; line-height: 1.05; text-align: center; text-wrap: balance; }
.sb-h-steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.sb-h-step3 { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--sb-pink-50); border: 2.5px solid var(--sb-choco); border-radius: 28px; }
.sb-h-step3__num { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--sb-yellow); color: var(--sb-choco); border: 2.5px solid var(--sb-choco); border-radius: 50%; font-family: var(--sb-font-display); font-size: 26px; line-height: 1; }
.sb-h-step3:nth-child(2) .sb-h-step3__num { background: var(--sb-pink-300); }
.sb-h-step3:nth-child(3) .sb-h-step3__num { background: var(--sb-choco); color: var(--sb-yellow); }
.sb-h-step3__title { margin: 0; font-size: 21px; font-weight: 800; }
.sb-h-step3__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--sb-brown); }

/* --- Phones and tablets for sections 6 to 8 --- */
@media (max-width: 860px) {
    .sb-h-about__grid, .sb-h-guide__grid { grid-template-columns: minmax(0, 1fr); }
    .sb-h-steps3 { grid-template-columns: minmax(0, 1fr); }
    .sb-h-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sb-h-tile4, .sb-h-tile4--half { grid-column: span 1; }
    .sb-h-tile4--wide { grid-column: span 2; }   /* Total water gets a full row of its own */
}
@media (max-width: 520px) { .sb-h-about__title, .sb-h-guide__title, .sb-h-how__title { font-size: 40px; } }
@media (max-width: 560px) {
    .sb-h-card, a.sb-h-card:hover { transform: none; box-shadow: 5px 5px 0 var(--sb-choco); padding: 20px; }
    .sb-h-about .sb-h-wrap, .sb-h-guide .sb-h-wrap { padding-top: 64px; padding-bottom: 64px; }
    .sb-h-how .sb-h-wrap { padding-top: 64px; padding-bottom: 72px; }
}

/* ==========================================================================
 * SHOP PAGE (S11): page header, search, filters, count, product cards and states.
 * The details pop-up, cart sidebar, checkout and login gate keep their own CSS inside shop.html (S12/S13).
 * ========================================================================== */
.sb-shop { background: var(--sb-white); color: var(--sb-choco); font-family: var(--sb-font-body); }
.sb-shop-wrap { max-width: 1280px; margin: 0 auto; box-sizing: border-box; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* header */
.sb-shop-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding-top: 48px; padding-bottom: 32px; }
.sb-shop-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sb-brown); }
.sb-shop-h1 { margin: 0; font-family: var(--sb-font-display); font-weight: 400; font-size: 52px; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
.sb-shop-h1 span { color: var(--sb-pink-600); }
.sb-shop-sub { margin: 0; max-width: 44ch; font-size: 18px; font-weight: 500; line-height: 1.6; color: var(--sb-brown); }

/* search */
.sb-shop-search-row { display: flex; justify-content: center; }
.sb-shop-search { width: 100%; max-width: 520px; box-sizing: border-box; min-height: 48px; padding: 12px 22px; font: inherit; font-size: 16px; font-weight: 500; color: var(--sb-choco); background: var(--sb-white); border: var(--sb-border); border-radius: 999px; }
.sb-shop-search::placeholder { color: var(--sb-brown); opacity: 1; }
.sb-shop-search:focus-visible { outline: var(--sb-focus-ring); outline-offset: var(--sb-focus-offset); }

/* filters and count */
.sb-shop-filters { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 28px; padding-bottom: 12px; }
.sb-shop-filter { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.sb-shop-filter__label { min-width: 104px; text-align: right; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sb-brown); }
.sb-shop-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sb-chip { min-height: 44px; padding: 9px 18px; font: inherit; font-size: 14px; font-weight: 700; color: var(--sb-choco); background: var(--sb-pink-50); border: var(--sb-border); border-radius: 999px; cursor: pointer; }
.sb-chip:hover { background: var(--sb-pink-100); }
.sb-chip[aria-pressed="true"], .sb-chip[aria-pressed="true"]:hover { color: var(--sb-pink-50); background: var(--sb-choco); }
.sb-chip:focus-visible, .sb-shop-count:focus-visible, .sb-shop-empty__btn:focus-visible { outline: var(--sb-focus-ring); outline-offset: var(--sb-focus-offset); }
.sb-shop-count { margin: 0; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--sb-brown); text-align: center; }
.sb-shop-count[hidden] { display: none; }

/* grid and cards */
.sb-shop-products { padding-top: 28px; padding-bottom: 104px; }
.sb-shop-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.sb-shop-grid > .sb-shop-card { flex: 0 1 230px; min-width: 0; }
.sb-shop-card { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; font: inherit; color: var(--sb-choco); text-align: left; text-decoration: none; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sb-shop-card:focus-visible { outline: var(--sb-focus-ring); outline-offset: 6px; border-radius: 24px; }
.sb-shop-card__media { position: relative; aspect-ratio: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--sb-pink-100); border: var(--sb-border); border-radius: 20px; }
.sb-shop-card__media img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; display: block; }
.sb-shop-card__ph { font-family: var(--sb-font-logo); font-weight: 600; font-size: 3rem; color: var(--sb-pink-text); }
.sb-shop-card__name { display: block; padding: 0 2px; font-size: 17px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.sb-shop-card__oos { display: block; padding: 0 2px; margin-top: -6px; font-size: 13px; font-weight: 600; color: var(--sb-brown); }
.sb-shop-card__info { display: flex; flex-direction: column; gap: 6px; padding: 0 2px; margin-top: -4px; }
.sb-shop-card__kind { font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--sb-pink-text); overflow-wrap: anywhere; }   /* pink-text, as the task says (small pink text on white) */
.sb-shop-card__rule { width: 28px; height: 2px; border-radius: 2px; background: #F3B4C8; }
.sb-shop-card__notes { font-size: 13px; line-height: 1.5; color: var(--sb-brown); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sb-shop-card__price { align-self: flex-start; margin-top: auto; padding: 7px 16px; font-size: 14px; font-weight: 800; line-height: 1.2; color: var(--sb-choco); background: var(--sb-yellow); border: 2px solid var(--sb-choco); border-radius: 999px; box-shadow: 3px 3px 0 var(--sb-choco); }   /* the price is the button: "From Rp 85.000". margin-top: auto: it sits at the bottom of the card, so prices line up in a row */
.sb-shop-card--oos .sb-shop-card__media { opacity: 0.45; }   /* sold out: dimmed (the old Shop card used the same 0.45) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .sb-shop-card { transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); }
    .sb-shop-card:not(.sb-shop-card--oos):hover { transform: translateY(-8px) rotate(-1.5deg); }
}

/* states */
.sb-shop-state { flex: 1 0 100%; margin: 0; padding: 48px 0; font-size: 16px; text-align: center; color: var(--sb-brown); }
.sb-shop-empty { flex: 1 0 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 0; text-align: center; }
.sb-shop-empty__t { font-size: 16px; font-weight: 700; }
.sb-shop-empty__btn { min-height: 44px; padding: 12px 26px; font: inherit; font-size: 14px; color: var(--sb-white); background: var(--sb-choco); border: 0; border-radius: 999px; cursor: pointer; }

@media (max-width: 860px) { .sb-shop-h1 { font-size: 48px; } }
@media (max-width: 560px) {
    .sb-shop-filter { flex-direction: column; gap: 8px; }
    .sb-shop-filter__label { min-width: 0; text-align: center; }
}
@media (max-width: 520px) {   /* two cards per row down to 360 px */
    .sb-shop-grid { gap: 14px; }
    .sb-shop-grid > .sb-shop-card { flex: 0 0 calc((100% - 14px) / 2); }
    .sb-shop-card__media { border-radius: 16px; }
    .sb-shop-card__ph { font-size: 2.25rem; }
    .sb-shop-card__name { font-size: 15px; }
    .sb-shop-card__kind { font-size: 11.5px; }
    .sb-shop-card__notes { font-size: 12px; }
    .sb-shop-card__price { font-size: 14px; }
}

/* ==========================================================================
 * SHOP CART DRAWER (S12-A): right-side drawer, items, total, empty state.
 * Hooks used by shop.html: toggleCart(), #cartSidebar, #sidebarOverlay, #cartItems, #cartTotal, #checkoutOpenBtn, #cartGreeting.
 * ========================================================================== */
.sb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }   /* visually hidden text for screen readers */

.sb-cart-backdrop { display: none; position: fixed; inset: 0; z-index: 205; background: rgba(62, 33, 24, 0.55); }
.sb-cart-backdrop.active { display: block; }
.sb-cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 210; width: min(480px, 100vw); box-sizing: border-box; display: flex; flex-direction: column; background: var(--sb-pink-50); color: var(--sb-choco); font-family: var(--sb-font-body); border-left: 3px solid var(--sb-choco); box-shadow: -8px 0 0 var(--sb-pink-300); visibility: hidden; transform: translateX(100%); }
.sb-cart.active { visibility: visible; transform: none; }
@media (prefers-reduced-motion: no-preference) {
    .sb-cart { transition: transform 0.3s ease, visibility 0s linear 0.3s; }
    .sb-cart.active { transition: transform 0.3s ease, visibility 0s; }
}
@media (max-width: 560px) { .sb-cart { width: 100vw; border-left: 0; box-shadow: none; } }

.sb-cart__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 22px 12px; }
.sb-cart__title { margin: 0; font-family: var(--sb-font-display); font-size: 32px; font-weight: 400; line-height: 0.98; letter-spacing: 0.01em; text-transform: uppercase; }
.sb-cart__title span { color: var(--sb-pink-600); }
.sb-cart__greet { display: none; margin-top: 8px; font-size: 13px; color: var(--sb-brown); }
.sb-cart__greet a { color: inherit; text-underline-offset: 3px; }
.sb-cart__greet .greet-name { font-weight: 700; color: var(--sb-choco); }
.sb-round { flex: none; display: flex; align-items: center; justify-content: center; padding: 0; color: var(--sb-choco); background: var(--sb-white); border: 2px solid var(--sb-choco); border-radius: 50%; cursor: pointer; }
.sb-round svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sb-cart__close { width: 42px; height: 42px; }
.sb-round:focus-visible, .sb-qty:focus-visible, .sb-trash:focus-visible { outline: var(--sb-focus-ring); outline-offset: var(--sb-focus-offset); }

.sb-cart__body { flex: 1; overflow-y: auto; padding: 8px 22px 16px; }
.sb-cart-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; padding: 12px; background: var(--sb-white); border: 2px solid var(--sb-choco); border-radius: 20px; }
.sb-cart-item__img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 14px; background: var(--sb-pink-100); display: block; }
.sb-cart-item__info { flex: 1; min-width: 0; }
.sb-cart-item__name { font-size: 15px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.sb-cart-item__line { margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--sb-brown); }
.sb-cart-item__ctl { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.sb-qty { width: 30px; height: 30px; padding: 0; display: flex; align-items: center; justify-content: center; color: var(--sb-choco); background: var(--sb-pink-50); border: 2px solid var(--sb-choco); border-radius: 50%; cursor: pointer; }
.sb-qty svg, .sb-trash svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.sb-qty svg { width: 14px; height: 14px; stroke-width: 2.8; }
.sb-qty:hover { background: var(--sb-pink-100); }
.sb-cart-item__qty { min-width: 22px; text-align: center; font-size: 14px; font-weight: 800; }
.sb-trash { margin-left: auto; width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; color: var(--sb-pink-text); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.sb-trash svg { width: 18px; height: 18px; stroke-width: 2.2; }
.sb-trash:hover { background: var(--sb-pink-100); }
@media (max-width: 560px) { .sb-qty { width: 32px; height: 32px; } }

.sb-cart__foot { padding: 16px 22px 22px; border-top: 2px solid #F3B4C8; background: var(--sb-pink-50); }
.sb-cart__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sb-cart__total .label { font-size: 16px; font-weight: 800; }
.sb-cart__total .value { font-family: var(--sb-font-display); font-size: 30px; line-height: 1; letter-spacing: 0.01em; }
.sb-cart__checkout { width: 100%; margin-top: 14px; padding: 16px 28px; font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: 4px 4px 0 var(--sb-pink-600); }
.sb-cart-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 0; text-align: center; }
.sb-cart-empty p { margin: 0; font-size: 16px; font-weight: 700; }

/* ==========================================================================
 * SHOP CHECKOUT OVERLAY (S12-B): full screen, top bar, stepper, form card + summary card.
 * Hooks used by shop.html: #checkoutModal (.active), #checkoutFormView, #checkoutConfirmView, #confirmMessage, #cartMessage,
 * #checkoutAuthLine, #savedAddrGroup/#savedAddrSelect, #customerName, #customerPhone, #destSearch, #destList, #selectedDestLabel,
 * #customerAddress, #courierGroup, #courierList, #orderSummary, #placeOrderBtn, #instantDeliverySection.
 * ========================================================================== */
.sb-co { display: none; position: fixed; inset: 0; z-index: 350; flex-direction: column; background: var(--sb-blue-50); color: var(--sb-choco); font-family: var(--sb-font-body); }
.sb-co.active { display: flex; }
body:has(#checkoutModal.active) .sb-cartfab, body:has(#checkoutGate.active) .sb-cartfab { display: none; }   /* the floating cart button would cover Place Order on phones */

.sb-co__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--sb-white); border-bottom: 3px solid var(--sb-choco); }
.sb-co__back { min-height: 44px; padding: 0 6px; font: inherit; font-size: 14px; font-weight: 700; color: var(--sb-choco); background: none; border: 0; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.sb-co__back:hover { text-decoration: underline; text-underline-offset: 4px; }
.sb-co__title { margin: 0; font-family: var(--sb-font-display); font-size: 32px; font-weight: 400; line-height: 0.98; letter-spacing: 0.01em; text-transform: uppercase; }
.sb-co__close { width: 44px; height: 44px; }
.sb-co__back:focus-visible { outline: var(--sb-focus-ring); outline-offset: 0; }
.sb-co__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 56px; }
.sb-co__wrap { max-width: 1180px; margin: 0 auto; padding: 24px 20px 0; box-sizing: border-box; }

/* stepper: 1 Cart, 2 Checkout, 3 Pay */
.sb-co__stepper { max-width: 1180px; margin: 0 auto; padding: 24px 20px 0; box-sizing: border-box; }
.sb-steps { display: flex; align-items: center; max-width: 560px; margin: 0 auto; padding: 0; list-style: none; }
.sb-step { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sb-step:not(:first-child) { flex: 1 1 0; }
.sb-step:not(:first-child)::before { content: ''; flex: 1 1 12px; min-width: 12px; margin: 0 2px 0 10px; border-top: 2.5px solid var(--sb-choco); }
.sb-step__dot { flex: none; box-sizing: border-box; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: var(--sb-choco); background: var(--sb-white); border: 2.5px solid var(--sb-choco); border-radius: 50%; }
.sb-step__check { display: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sb-step__label { font-size: 14px; font-weight: 600; white-space: nowrap; }
.sb-step__done { display: none; }
.sb-step.is-done .sb-step__dot { color: var(--sb-white); background: var(--sb-choco); }
.sb-step.is-done .sb-step__check { display: block; }
.sb-step.is-done .sb-step__num { display: none; }
.sb-step.is-done .sb-step__done { display: inline-block; }
.sb-step.is-current .sb-step__dot { background: var(--sb-yellow); }
.sb-step.is-current .sb-step__label { font-weight: 800; }

/* layout and cards */
.sb-co__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.sb-card { box-sizing: border-box; padding: 24px; background: var(--sb-white); border: 2.5px solid var(--sb-choco); border-radius: 26px; box-shadow: 6px 6px 0 var(--sb-choco); }
.sb-co__summary { position: sticky; top: 24px; }
.sb-co__h { margin: 0 0 14px; padding: 0; font-family: var(--sb-font-display); font-size: 26px; font-weight: 400; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
.sb-co__h--sm { margin: 0; font-size: 24px; }
.sb-co__sec + .sb-co__sec { margin-top: 24px; }

/* fields */
.sb-field { margin-bottom: 14px; }
.sb-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.sb-input { display: block; width: 100%; box-sizing: border-box; padding: 13px 15px; font: inherit; font-size: 15px; color: var(--sb-choco); background: var(--sb-white); border: var(--sb-border); border-radius: 14px; }
.sb-input::placeholder { color: #80604F; opacity: 1; }   /* 5.7:1 on white; the mockup's #9A7A6E is below 4.5:1 */
textarea.sb-input { min-height: 84px; resize: vertical; }
.sb-input:focus-visible { outline: var(--sb-focus-ring); outline-offset: var(--sb-focus-offset); }
.sb-co__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.sb-co__auth { display: none; margin-bottom: 14px; font-size: 13px; line-height: 1.5; color: var(--sb-brown); }
.sb-co__auth a, .sb-co__link { color: var(--sb-pink-text); font-weight: 700; text-underline-offset: 3px; }
.sb-co__note { padding: 4px 0; font-size: 13px; line-height: 1.5; color: var(--sb-brown); }
.sb-co__note--spaced { margin-top: 10px; }
.sb-co__dest { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--sb-pink-text); }

/* message box (script sets "sb-msg sb-msg--error" / "sb-msg sb-msg--success") */
.sb-msg { display: none; }
.sb-msg--error, .sb-msg--success { display: block; margin-bottom: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; line-height: 1.45; border: 2px solid var(--sb-choco); border-radius: 14px; }
.sb-msg--error { color: var(--sb-pink-text); background: var(--sb-pink-50); }
.sb-msg--success { color: var(--sb-success); background: #F0FAF2; }

/* destination suggestions */
.sb-ac { position: relative; }
.sb-ac__list { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; max-height: 260px; overflow-y: auto; background: var(--sb-white); border: var(--sb-border); border-radius: 14px; box-shadow: 4px 4px 0 var(--sb-blue); }
.sb-ac__list.active { display: block; }
.sb-ac__item { display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 10px 12px; font: inherit; font-size: 14px; line-height: 1.4; text-align: left; color: var(--sb-choco); background: none; border: 0; border-bottom: 1px solid var(--sb-blue-50); cursor: pointer; }
.sb-ac__item:last-child { border-bottom: 0; }
.sb-ac__item:hover, .sb-ac__item:focus-visible { background: var(--sb-blue-50); }
.sb-ac__item:focus-visible { outline: var(--sb-focus-ring); outline-offset: -3px; }
.sb-ac__item--note { color: var(--sb-brown); cursor: default; }

/* courier and payment cards: a radio dot at the left, so the choice never relies on colour alone */
.sb-dot { flex: none; box-sizing: border-box; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border: 2.5px solid var(--sb-choco); border-radius: 50%; }
.sb-courier { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; margin: 0 0 10px; padding: 11px 15px; font: inherit; text-align: left; color: var(--sb-choco); background: var(--sb-white); border: var(--sb-border); border-radius: 14px; cursor: pointer; }
.sb-courier.selected, .sb-pay-opt input:checked + .sb-pay-card { background: var(--sb-blue-50); border-color: var(--sb-pink-600); }
.sb-courier.selected .sb-dot::after, .sb-pay-opt input:checked + .sb-pay-card .sb-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--sb-pink-600); }
.sb-courier__txt, .sb-pay-card__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sb-courier__name, .sb-pay-card__name { font-size: 15px; font-weight: 800; }
.sb-courier__eta, .sb-pay-card__note { font-size: 12px; color: var(--sb-brown); }
.sb-courier__price { font-size: 14px; font-weight: 700; white-space: nowrap; }
.sb-courier:focus-visible, .sb-pay-opt input:focus-visible + .sb-pay-card { outline: var(--sb-focus-ring); outline-offset: var(--sb-focus-offset); }
.sb-co__pay { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.sb-co__pay legend { display: block; width: 100%; }
.sb-pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sb-pay-opt { position: relative; min-width: 0; }
.sb-pay-opt input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.sb-pay-card { display: flex; align-items: center; gap: 12px; height: 100%; box-sizing: border-box; padding: 13px 15px; background: var(--sb-white); border: var(--sb-border); border-radius: 16px; cursor: pointer; }

/* summary card */
.sb-co__sumhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.sb-linkbtn { padding: 6px 2px; font: inherit; font-size: 13px; font-weight: 700; color: var(--sb-choco); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sb-linkbtn:focus-visible { outline: var(--sb-focus-ring); outline-offset: 2px; border-radius: 6px; }
.sb-sum-lines { margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid #E3EEF4; }
.sb-sum-line { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.sb-sum-line__img { flex: none; box-sizing: border-box; width: 56px; height: 56px; object-fit: cover; display: block; background: var(--sb-pink-100); border: 2px solid var(--sb-choco); border-radius: 12px; }
.sb-sum-line__txt { flex: 1; min-width: 0; }
.sb-sum-line__name { font-size: 14px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.sb-sum-line__meta { margin-top: 2px; font-size: 12px; color: var(--sb-brown); overflow-wrap: anywhere; }
.sb-sum-line__price { font-size: 14px; font-weight: 700; white-space: nowrap; }
.sb-sum-row { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; font-size: 14px; }
.sb-sum-row > :first-child { color: var(--sb-brown); }
.sb-sum-row .val { font-weight: 700; white-space: nowrap; }
.sb-sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 12px 0 16px; padding: 12px 14px; border: 2px solid var(--sb-choco); border-radius: 16px; }
.sb-sum-total > :first-child { font-weight: 800; }
.sb-sum-total .amount { font-family: var(--sb-font-display); font-size: 26px; line-height: 1; letter-spacing: 0.01em; }
.sb-co__place { width: 100%; padding: 16px 28px; font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: 4px 4px 0 var(--sb-yellow); }
.sb-co__place:hover { box-shadow: 5px 5px 0 var(--sb-yellow); }
.sb-co__place:active { box-shadow: 2px 2px 0 var(--sb-yellow); }
.sb-co__place:disabled { color: var(--sb-brown); background: var(--sb-pink-100); box-shadow: none; }
.sb-co__or { margin: 16px 0 10px; font-size: 12px; text-align: center; color: var(--sb-brown); }
.sb-btn--light { width: 100%; padding: 12px 18px; font-size: 14px; color: var(--sb-choco); background: var(--sb-white); box-shadow: none; }
.sb-btn--light:hover { background: var(--sb-pink-50); box-shadow: none; }

@media (prefers-reduced-motion: reduce) { .sb-co .sb-btn, .sb-co .sb-btn:hover, .sb-co .sb-btn:active { transition: none; transform: none; } }
@media (max-width: 900px) {
    .sb-co__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .sb-co__summary { position: static; }
}
@media (max-width: 560px) {
    .sb-co__bar { padding: 10px 12px; gap: 6px; }
    .sb-co__title { font-size: 28px; }
    .sb-co__wrap, .sb-co__stepper { padding-left: 14px; padding-right: 14px; }
    .sb-card { padding: 18px; }
    .sb-co__row2 { grid-template-columns: 1fr; }
    .sb-input { font-size: 16px; }
    .sb-pay-opts { grid-template-columns: 1fr; }
    .sb-step__dot { width: 28px; height: 28px; font-size: 13px; }
    .sb-step__label { font-size: 13px; }
    .sb-step__check { width: 14px; height: 14px; }
}

/* ==========================================================================
 * SHOP LOG-IN GATE AND PAYMENT SCREENS (S12-C)
 * Gate hooks used by shop.html: #checkoutGate (.active), .gate-close, closeCheckoutGate(), continueAsGuest(), saveCheckoutDraft().
 * Payment screens fill #confirmMessage inside #checkoutConfirmView.
 * ========================================================================== */
.sb-gate { display: none; position: fixed; inset: 0; z-index: 400; align-items: center; justify-content: center; padding: 16px; background: rgba(62, 33, 24, 0.55); color: var(--sb-choco); font-family: var(--sb-font-body); }
.sb-gate.active { display: flex; }
.sb-gate__card { position: relative; box-sizing: border-box; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 32px; background: var(--sb-pink-50); border: 3px solid var(--sb-choco); border-radius: 32px; box-shadow: 10px 10px 0 var(--sb-choco); }
.sb-gate__x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; }
.sb-gate__title { margin: 0 0 18px; padding-right: 48px; font-family: var(--sb-font-display); font-size: 32px; font-weight: 400; line-height: 1.05; letter-spacing: 0.01em; text-transform: uppercase; }
.sb-gate__title span { color: var(--sb-pink-600); }
.sb-gate__list { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.sb-gate__list li { display: flex; align-items: flex-start; gap: 10px; }
.sb-gate__check { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--sb-pink-600); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sb-gate__login { display: flex; width: 100%; margin-bottom: 10px; padding: 16px 28px; box-sizing: border-box; font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: 4px 4px 0 var(--sb-pink-600); }
.sb-gate__guest { padding: 14px 18px; }
@media (max-width: 560px) {   /* a bottom sheet on phones */
    .sb-gate { align-items: flex-end; padding: 0; }
    .sb-gate__card { max-width: none; max-height: 92vh; padding: 28px 20px 24px; border-width: 3px 0 0; border-radius: 28px 28px 0 0; box-shadow: none; }
}

/* payment screens: QRIS and bank transfer */
.sb-pay { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 560px; margin: 0 auto; padding: 24px 0 8px; text-align: center; }
.sb-pay__title { margin: 0; font-family: var(--sb-font-display); font-size: 64px; font-weight: 400; line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; }
.sb-pay__title span { display: block; }
.sb-pay__title .sb-pay__em { color: var(--sb-pink-600); }
.sb-pay__title:focus { outline: none; }
.sb-pay__body { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
.sb-pay__code { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; font-size: 14px; font-weight: 600; background: var(--sb-white); border: 2px solid var(--sb-choco); border-radius: 999px; }
.sb-pay__code strong { font-weight: 800; letter-spacing: 0.06em; }
.sb-pay__p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--sb-brown); }
.sb-pay__card { box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; width: 320px; max-width: 100%; padding: 22px; background: var(--sb-white); border: var(--sb-border); border-radius: 26px; box-shadow: 6px 6px 0 var(--sb-choco); }
.sb-pay__card--qris { align-items: center; text-align: center; }
.sb-pay__card--total { width: 380px; text-align: left; }
.sb-pay__card--total .sb-pay__total { padding-top: 0; border-top: 0; }
.sb-pay__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sb-brown); }
.sb-pay__qr { display: block; width: 100%; max-width: 260px; border-radius: 12px; }
.sb-pay__k { display: block; font-size: 13px; color: var(--sb-brown); }
.sb-pay__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 2px solid #FFE3EC; }
.sb-pay__card--qris .sb-pay__total { flex-direction: column; align-items: center; gap: 2px; padding-top: 0; border-top: 0; }
.sb-pay__amount { font-family: var(--sb-font-display); font-size: 30px; line-height: 1; letter-spacing: 0.01em; }
.sb-pay__wa { gap: 10px; padding: 16px 36px; font-size: 17px; text-align: center; box-shadow: 4px 4px 0 var(--sb-pink-600); }
.sb-pay__wa svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sb-pay__done { width: auto; min-width: 160px; margin-top: 4px; padding: 12px 28px; }
@media (max-width: 560px) {
    .sb-pay__title { font-size: 44px; }
    .sb-pay__wa { width: 100%; box-sizing: border-box; padding: 16px 20px; }
}

/* ==========================================================================
 * PRODUCT PAGE (S13-A): band with buy | photo | specs, "Behind this bag", "You may also like", flying beans.
 * Everything is built by the script in product.html from the bean's data; nothing here knows a size, a label or a price.
 * ========================================================================== */
.sb-pd-page { background: var(--sb-white); color: var(--sb-choco); font-family: var(--sb-font-body); }
.sb-pd-wrap { max-width: 1280px; margin: 0 auto; box-sizing: border-box; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sb-pd-band { background: var(--sb-pink-100); border-top: 3px solid var(--sb-choco); border-bottom: 3px solid var(--sb-choco); }
.sb-pd-band .sb-pd-wrap { padding-top: 48px; padding-bottom: 64px; }
.sb-pd-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 14px; font-weight: 600; color: var(--sb-choco); text-decoration: none; }
.sb-pd-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.sb-pd-back:focus-visible, .sb-pd-all:focus-visible, .sb-pd-rec:focus-visible, .sb-pd-strip:focus-visible, .sb-pd-card a:focus-visible, .sb-pd-card button:focus-visible { outline: var(--sb-focus-ring); outline-offset: var(--sb-focus-offset); }
.sb-pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: center; }

/* buy column */
.sb-pd-buy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.sb-pd-head { display: flex; flex-direction: column; gap: 8px; }
.sb-pd-name { margin: 0; font-family: var(--sb-font-display); font-size: 52px; font-weight: 400; line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; overflow-wrap: anywhere; }
.sb-pd-proc { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sb-pink-text); }
.sb-pd-price { font-family: var(--sb-font-display); font-size: 32px; line-height: 1; letter-spacing: 0.01em; }
.sb-pd-stock { margin-top: 8px; font-size: 14px; font-weight: 700; }
.sb-pd-stock.ok { color: var(--sb-success); }
.sb-pd-stock.low { color: var(--sb-brown); }
.sb-pd-stock.out { color: var(--sb-danger); }
.sb-pd-label, .sb-pd-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.sb-pd-eyebrow { font-size: 13px; color: var(--sb-pink-text); }
.sb-pd-notesbox { display: flex; flex-direction: column; gap: 10px; }
.sb-pd-notes { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-pd-note { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; max-width: 96px; }
.sb-pd-notedot { box-sizing: border-box; width: 46px; height: 46px; border: 2.5px solid var(--sb-choco); border-radius: 50%; }
.sb-pd-notetext { font-size: 12px; line-height: 1.2; text-align: center; overflow-wrap: break-word; }

/* dropdowns */
.sb-dd { position: relative; display: flex; flex-direction: column; gap: 8px; }
.sb-dd[hidden] { display: none; }
.sb-dd.is-open { z-index: 5; }
.sb-dd__btn { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 12px 16px; font: inherit; text-align: left; color: var(--sb-choco); background: var(--sb-white); border: var(--sb-border); border-radius: 16px; box-shadow: 3px 3px 0 var(--sb-pink-100); cursor: pointer; }
.sb-dd__btn:focus-visible, .sb-dd__opt:focus-visible, .sb-pd-step:focus-visible, .sb-pd-add:focus-visible { outline: var(--sb-focus-ring); outline-offset: var(--sb-focus-offset); }
.sb-dd__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sb-dd__val { font-size: 16px; font-weight: 700; }
.sb-dd__note { font-size: 12px; color: var(--sb-brown); }
.sb-dd__note:empty { display: none; }
.sb-dd__chev { flex: none; transition: transform 0.2s; }
.sb-dd.is-open .sb-dd__chev { transform: rotate(180deg); }
.sb-dd__list { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin-top: 6px; display: flex; flex-direction: column; gap: 2px; box-sizing: border-box; padding: 6px; background: var(--sb-white); border: var(--sb-border); border-radius: 16px; box-shadow: 4px 4px 0 var(--sb-pink-300); }
.sb-dd__list[hidden] { display: none; }
.sb-dd__opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; color: var(--sb-choco); background: var(--sb-white); border-radius: 10px; cursor: pointer; }
.sb-dd__opt:hover, .sb-dd__opt:focus-visible { background: var(--sb-pink-50); }
.sb-dd__opt[aria-selected="true"] { background: var(--sb-pink-100); }
.sb-dd__otext { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sb-dd__olabel { font-size: 15px; font-weight: 700; }
.sb-dd__onote { font-size: 12px; color: var(--sb-brown); }
.sb-dd__tick { font-weight: 800; color: var(--sb-pink-text); }
.sb-dd__opt[aria-disabled="true"] { cursor: not-allowed; }
.sb-dd__opt[aria-disabled="true"] .sb-dd__olabel { text-decoration: line-through; }

/* quantity, add button, confirmation */
.sb-pd-qtybox { display: flex; flex-direction: column; gap: 10px; }
.sb-pd-stepper { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; }
.sb-pd-step { flex: none; width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; color: var(--sb-choco); background: var(--sb-white); border: var(--sb-border); border-radius: 50%; cursor: pointer; }
.sb-pd-step svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.sb-pd-step:hover { background: var(--sb-pink-50); }
.sb-pd-qty { min-width: 40px; text-align: center; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-pd-add { width: 100%; box-sizing: border-box; padding: 16px 24px; font: inherit; font-size: 20px; font-weight: 700; color: var(--sb-choco); background: var(--sb-yellow); border: var(--sb-border); border-radius: 999px; box-shadow: 4px 4px 0 var(--sb-choco); cursor: pointer; }
.sb-pd-add:disabled { color: var(--sb-brown); background: var(--sb-pink-100); box-shadow: none; cursor: not-allowed; }
/* added-to-cart card: bottom right, above the floating cart button; below an open dropdown list (z-index 5) */
.sb-pd-card { position: fixed; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(104px + env(safe-area-inset-bottom, 0px)); z-index: 3; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; width: 360px; max-width: calc(100vw - 48px); padding: 14px; background: var(--sb-white); border: var(--sb-border); border-radius: 22px; box-shadow: 5px 5px 0 var(--sb-choco); }
.sb-pd-card[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .sb-pd-card.is-in { animation: sb-pd-rise 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) both; } }
@keyframes sb-pd-rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.sb-pd-card__top { display: flex; align-items: center; gap: 12px; }
.sb-pd-card__ph { flex: none; box-sizing: border-box; width: 52px; height: 52px; overflow: hidden; background: var(--sb-pink-100); border: 2px solid var(--sb-choco); border-radius: 12px; }
.sb-pd-card__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sb-pd-card__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sb-pd-card__h { font-size: 14px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.sb-pd-card__name { color: var(--sb-pink-text); }
.sb-pd-card__opt { font-size: 12px; color: var(--sb-brown); overflow-wrap: anywhere; }
.sb-pd-card__x { flex: none; width: 30px; height: 30px; padding: 0; display: flex; align-items: center; justify-content: center; color: var(--sb-choco); background: var(--sb-pink-50); border: 0; border-radius: 50%; cursor: pointer; }
.sb-pd-card__x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sb-pd-card__picks { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1.5px solid #F3D0DB; }
.sb-pd-card__picks[hidden] { display: none; }
.sb-pd-card__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sb-pink-text); }
.sb-pd-card__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sb-pd-card__pick { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--sb-choco); text-decoration: none; }
.sb-pd-card__pick img, .sb-pd-card__pickph { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--sb-pink-100); border: 2px solid var(--sb-choco); border-radius: 12px; font-family: var(--sb-font-logo); font-weight: 600; font-size: 1.5rem; color: var(--sb-pink-text); }
.sb-pd-card__pickname { font-size: 12px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.sb-pd-card__keep { display: flex; justify-content: center; align-items: center; padding: 11px 10px; font-size: 13px; font-weight: 700; color: var(--sb-choco); text-decoration: none; background: var(--sb-white); border: var(--sb-border); border-radius: 999px; }
.sb-pd-card__keep:hover { background: var(--sb-pink-50); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .sb-pd-add { transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1); }
    .sb-pd-add:not(:disabled):hover { transform: translate(-2px, -3px); }
}

/* photo frame */
.sb-pd-photo { position: relative; box-sizing: border-box; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; border: var(--sb-border); border-radius: 28px; box-shadow: 6px 6px 0 var(--sb-choco); }
.sb-pd-dots { position: absolute; inset: 0; background: radial-gradient(circle at 18% 16%, var(--sb-pink-300) 0 2.2%, transparent 2.4%), radial-gradient(circle at 84% 24%, var(--sb-pink-300) 0 3%, transparent 3.2%), radial-gradient(circle at 12% 77%, var(--sb-pink-300) 0 3.4%, transparent 3.6%), radial-gradient(circle at 88% 83%, var(--sb-pink-300) 0 2%, transparent 2.2%); }
.sb-pd-ribbon { position: absolute; left: -20%; right: -20%; top: 54%; padding: 8px 0; overflow: hidden; white-space: nowrap; border-block: 3px solid var(--sb-choco); transform: rotate(-16deg); }
.sb-pd-ribbon__track { display: inline-block; font-family: var(--sb-font-display); font-size: 30px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--sb-choco); }
.sb-pd-bag { position: relative; display: block; width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(10px 14px 0 rgba(62, 33, 24, 0.3)); }
.sb-pd-nophoto { position: relative; box-sizing: border-box; width: 76%; padding: 28px 16px; text-align: center; font-family: var(--sb-font-display); font-size: 30px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; background: var(--sb-pink-100); border: var(--sb-border); border-radius: 20px; }
.sb-pd-bob { position: absolute; }
.sb-pd-bob--a { left: 12%; top: 14%; }
.sb-pd-bob--b { right: 12%; bottom: 14%; }
@media (prefers-reduced-motion: no-preference) {
    .sb-pd-ribbon__track { animation: sb-pd-rib 18s linear infinite; }
    .sb-pd-bag { animation: sb-pd-float 5s ease-in-out infinite; }
    .sb-pd-bob { animation: sb-pd-bob 6s ease-in-out infinite; }
    .sb-pd-bob.d3 { animation-delay: -3s; }
}
@media (prefers-reduced-motion: reduce) { .sb-pd-ribbon { display: none; } }
@keyframes sb-pd-rib { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes sb-pd-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
@keyframes sb-pd-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(10deg); } }

/* specs */
.sb-pd-specs { min-width: 0; }
.sb-pd-specs[hidden] { display: none; }
.sb-pd-specgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; padding: 22px 14px; background: var(--sb-white); border: var(--sb-border); border-radius: 22px; }
.sb-pd-spec { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
.sb-pd-spec__label { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.sb-pd-spec__value { font-size: 12px; line-height: 1.35; color: var(--sb-brown); overflow-wrap: anywhere; }

/* behind this bag */
.sb-pd-story { padding: 40px 0 40px; }
.sb-pd-story[hidden], .sb-pd-more[hidden] { display: none; }
.sb-pd-story .sb-pd-wrap { display: flex; flex-direction: column; gap: 14px; }
.sb-pd-desc { max-width: 70ch; font-size: 15px; line-height: 1.7; }
.sb-pd-desc p { margin: 0 0 0.9rem; white-space: pre-line; }
.sb-pd-desc p:last-child { margin-bottom: 0; }
.sb-pd-strip { display: flex; gap: 14px; padding: 4px 4px 10px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 16px; }
.sb-pd-strip[hidden] { display: none; }
.sb-pd-strip img { flex: none; width: 200px; height: 150px; object-fit: cover; display: block; scroll-snap-align: start; border: var(--sb-border); border-radius: 16px; }

/* you may also like */
.sb-pd-more { background: var(--sb-yellow); border-block: 3px solid var(--sb-choco); }
.sb-pd-more .sb-pd-wrap { display: flex; flex-direction: column; gap: 22px; padding-top: 40px; padding-bottom: 44px; }
.sb-pd-morehead { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.sb-pd-h2 { margin: 0; font-family: var(--sb-font-display); font-size: 40px; font-weight: 400; line-height: 0.98; letter-spacing: 0.01em; text-transform: uppercase; }
.sb-pd-h2 span { color: var(--sb-pink-600); }
.sb-pd-all { display: inline-flex; align-items: center; padding: 11px 22px; font-size: 14px; color: var(--sb-white); background: var(--sb-choco); border-radius: 999px; text-decoration: none; }
.sb-pd-recs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 1100px; }
.sb-pd-rec { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--sb-choco); text-decoration: none; }
.sb-pd-rec__media { aspect-ratio: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--sb-white); border: var(--sb-border); border-radius: 18px; box-shadow: 4px 4px 0 var(--sb-choco); }
.sb-pd-rec__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sb-pd-rec__ph { font-family: var(--sb-font-logo); font-weight: 600; font-size: 2.5rem; color: var(--sb-pink-text); }
.sb-pd-rec__name { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.sb-pd-rec__proc { margin-top: -4px; font-size: 12px; color: var(--sb-brown); overflow-wrap: anywhere; }
.sb-pd-rec__price { font-size: 14px; font-weight: 800; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    .sb-pd-rec { transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); }
    .sb-pd-rec:hover { transform: translateY(-8px) rotate(-1.5deg); }
}

/* states */
.sb-pd-state { padding: 80px 20px; text-align: center; color: var(--sb-brown); }
.sb-pd-state h2 { margin: 0 0 10px; font-family: var(--sb-font-display); font-size: 40px; font-weight: 400; text-transform: uppercase; color: var(--sb-choco); }
.sb-pd-state a { color: var(--sb-pink-text); font-weight: 700; text-underline-offset: 3px; }

/* flying beans (decoration; never take a click) */
.sb-fly { position: fixed; z-index: 600; width: 30px; height: 30px; margin: -15px 0 0 -15px; pointer-events: none; }

@media (max-width: 1080px) {
    .sb-pd-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
    .sb-pd-specs { grid-column: 1 / -1; }
    .sb-pd-specgrid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
@media (max-width: 760px) {
    .sb-pd-grid { grid-template-columns: minmax(0, 1fr); }
    .sb-pd-photo { order: -1; width: 100%; max-width: 420px; margin: 0 auto; }
    .sb-pd-specgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sb-pd-band .sb-pd-wrap { padding-top: 32px; padding-bottom: 48px; }
    .sb-pd-recs { display: flex; gap: 16px; padding: 4px 4px 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
    .sb-pd-recs > * { flex: 0 0 58%; scroll-snap-align: start; }
}
@media (max-width: 560px) {
    .sb-pd-name { font-size: 40px; }
}

/* ==========================================================================
 * BREWING GUIDE (S15-A): setup screen. White page, pink-50 control cards, a white summary card and steps card,
 * choco borders and hard shadows, yellow Start brew. All classes start with sb-gd-.
 * The script in guide.html fills every card from static/guide-data.js; nothing here knows a recipe.
 * ========================================================================== */
.sb-gd-head { box-sizing: border-box; max-width: 1280px; margin: 0 auto; padding: 40px max(20px, env(safe-area-inset-right, 0px)) 44px max(20px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.sb-gd-head__label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sb-brown); }
.sb-gd-head__title { margin: 0; font-family: var(--sb-font-display); font-size: 52px; font-weight: 400; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
.sb-gd-head__title span { color: var(--sb-pink-600); }   /* large text on white: 4.6:1 */
.sb-gd-head__sub { margin: 0; max-width: 50ch; font-size: 17px; font-weight: 500; line-height: 1.6; color: var(--sb-brown); }

.sb-gd-wrap { box-sizing: border-box; max-width: 1280px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 88px max(20px, env(safe-area-inset-left, 0px)); }
/* S15b: the Guide is one centred column (setup screen first, then the brewing screen) */
.sb-gd { box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; max-width: 520px; margin: 0 auto; min-width: 0; }

/* control cards (Serve, Process, Recipe, Dose) */
.sb-gd-card { box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 24px; background: var(--sb-pink-50); border: var(--sb-border); border-radius: 28px; }
.sb-gd-card__head { display: flex; align-items: center; gap: 10px; }
.sb-gd-badge { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--sb-choco); color: var(--sb-pink-50); font-size: 13px; font-weight: 800; line-height: 1; }
.sb-gd-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sb-brown); }
.sb-gd-card__aside { margin-left: auto; font-size: 12px; color: var(--sb-brown); }

/* Serve: two big buttons, the pressed one is choco */
.sb-gd-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sb-gd-seg button { box-sizing: border-box; min-height: 56px; padding: 14px 16px; font: inherit; font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--sb-choco); background: var(--sb-white); border: var(--sb-border); border-radius: 18px; cursor: pointer; }
.sb-gd-seg button:hover { background: var(--sb-pink-100); }
.sb-gd-seg button[aria-pressed="true"] { font-weight: 800; color: var(--sb-pink-50); background: var(--sb-choco); }
.sb-gd-seg small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; }

/* Process: ONE yellow card. At the top the process name is a dropdown (plain text when there is one process), then its blurb,
   then the recipe area of that process and serve under a dashed line. */
.sb-gd-pc { box-sizing: border-box; min-width: 0; display: flex; flex-direction: column; gap: 10px; margin: 0 4px 4px 0; padding: 16px; color: var(--sb-choco); background: var(--sb-yellow); border: var(--sb-border); border-radius: 18px; box-shadow: 4px 4px 0 var(--sb-choco); }
.sb-gd-pc__name { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.sb-gd-pc__blurb { margin: 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.sb-gd-pc__blurb[hidden], .sb-gd-rec[hidden] { display: none; }
.sb-gd-rec { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; padding-top: 14px; border-top: 2px dashed var(--sb-choco); }
.sb-gd-rec .sb-gd-eyebrow { color: var(--sb-choco); }
.sb-gd-rec__name { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.sb-gd-rec__info { display: flex; flex-direction: column; gap: 10px; }
.sb-gd-rec__info:empty { display: none; }
.sb-gd-rec__sum { display: flex; flex-direction: column; gap: 0.6em; }
.sb-gd-rec__sum p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--sb-choco); overflow-wrap: anywhere; }
.sb-gd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-gd-chip { padding: 3px 10px; font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--sb-choco); background: var(--sb-white); border: 2px solid var(--sb-choco); border-radius: 999px; }
/* The process dropdown: a native select with our own caret */
.sb-gd-select { position: relative; }
.sb-gd-select select { display: block; width: 100%; box-sizing: border-box; min-height: 52px; padding: 14px 52px 14px 18px; font: inherit; font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--sb-choco); background: var(--sb-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%233E2118' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") no-repeat right 18px center / 18px 18px; border: var(--sb-border); border-radius: 18px; -webkit-appearance: none; appearance: none; cursor: pointer; text-overflow: ellipsis; }
.sb-gd-select select:hover { background-color: var(--sb-pink-100); }

/* Dose: big typeable number, round minus and plus, a slider, the hint */
.sb-gd-dose { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sb-gd-round { flex: none; box-sizing: border-box; width: 52px; height: 52px; padding: 0; display: grid; place-items: center; font-size: 24px; font-weight: 700; line-height: 1; color: var(--sb-choco); background: var(--sb-white); border: var(--sb-border); border-radius: 50%; cursor: pointer; }
.sb-gd-round:hover { background: var(--sb-pink-100); }
/* The dose is plain Anton text between the round buttons, with "g" beside it on the same baseline. No box: a dashed underline shows on hover and focus.
   The input's line-height is 1.2 (the digits' ink is about 0.73em tall and sits well inside it). */
.sb-gd-num { min-width: 0; display: flex; align-items: baseline; justify-content: center; gap: 6px; font-family: var(--sb-font-display); font-size: 56px; line-height: 1.2; color: var(--sb-choco); }
.sb-gd-num input { box-sizing: content-box; flex: none; width: 3ch; min-width: 0; padding: 0; margin: 0; font: inherit; text-align: right; color: inherit; background: transparent; border: 0; border-bottom: 2.5px dashed transparent; border-radius: 4px; outline: 0; font-variant-numeric: tabular-nums; -moz-appearance: textfield; cursor: text; }
.sb-gd-num input:hover, .sb-gd-num input:focus { border-bottom-color: var(--sb-choco); }
.sb-gd-num input:focus-visible { outline: var(--sb-focus-ring); outline-offset: var(--sb-focus-offset); }
.sb-gd-num input::placeholder { color: var(--sb-brown); opacity: 1; }
.sb-gd-num span { font-size: 32px; }
@supports (field-sizing: content) { .sb-gd-num input { field-sizing: content; width: auto; min-width: 1ch; } }   /* browsers that can: the field fits the digits; the others keep room for three */
.sb-gd-range { width: 100%; height: 28px; margin: 0; accent-color: var(--sb-pink-600); }
.sb-gd-hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--sb-brown); }
.sb-gd-hint.err { color: var(--sb-danger); font-weight: 700; }

/* Summary card: recipe name, process pill, tiles, paragraphs */
.sb-gd-sum { box-sizing: border-box; display: flex; flex-direction: column; gap: 22px; min-width: 0; padding: 28px; background: var(--sb-white); border: var(--sb-border); border-radius: 32px; box-shadow: 8px 8px 0 var(--sb-choco); }
.sb-gd-sum__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.sb-gd-sum__title { margin: 0; min-width: 0; font-family: var(--sb-font-display); font-size: 30px; font-weight: 400; line-height: 1.05; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.sb-gd-pill { padding: 4px 12px; font-size: 12px; font-weight: 700; line-height: 1.4; background: var(--sb-pink-100); border: 2px solid var(--sb-choco); border-radius: 999px; }
.sb-gd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 12px; }
.sb-gd-tile { box-sizing: border-box; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--sb-pink-100); border-radius: 18px; }
.sb-gd-tile > span { font-size: 12px; font-weight: 600; color: var(--sb-brown); }
.sb-gd-tile__v { font-family: var(--sb-font-display); font-size: 24px; font-weight: 400; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sb-gd-tile__t { font-size: 15px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.sb-gd-tile--w2 { grid-column: span 2; }
.sb-gd-tile--full { grid-column: 1 / -1; }
.sb-gd-tile--ice { background: var(--sb-blue); }
.sb-gd-tile--ice > span, .sb-gd-tile--ice small { color: var(--sb-choco); }
.sb-gd-tile small { font-size: 13px; line-height: 1.4; color: var(--sb-brown); }
.sb-gd-grinder { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sb-gd-grinder b { flex: 1 1 auto; min-width: 0; }
/* two-dot grinder switch: the active dot is a pill; each dot is a real button with a 28px hit area */
.sb-gd-gswitch { display: flex; flex: none; }
.sb-gd-dot { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 999px; cursor: pointer; }
.sb-gd-dot i { display: block; width: 10px; height: 10px; border: 2px solid var(--sb-choco); border-radius: 999px; background: transparent; transition: width 0.2s, background 0.2s; }
.sb-gd-dot[aria-pressed="true"] i { width: 26px; background: var(--sb-choco); }

/* Steps card with the Start brew button */
.sb-gd-result { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sb-gd-steps { box-sizing: border-box; min-width: 0; padding: 28px; background: var(--sb-white); border: var(--sb-border); border-radius: 32px; box-shadow: 8px 8px 0 var(--sb-choco); }
.sb-gd-steps__title { margin: 0 0 10px; font-family: var(--sb-font-display); font-size: 24px; font-weight: 400; line-height: 1.1; letter-spacing: 0.01em; }
.sb-gd-list { margin: 0; padding: 0; list-style: none; }
.sb-gd-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; font-size: 15px; border-bottom: 2px solid var(--sb-pink-100); }
.sb-gd-list .t { font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-gd-list .nm { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.sb-gd-list .ml { min-width: 54px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.sb-gd-list .snote { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--sb-brown); }
.sb-gd-start { box-sizing: border-box; width: 100%; margin: 0; padding: 16px 24px; font: inherit; font-size: 20px; font-weight: 700; color: var(--sb-choco); background: var(--sb-yellow); border: var(--sb-border); border-radius: 999px; box-shadow: 4px 4px 0 var(--sb-choco); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.sb-gd-start:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--sb-choco); }
.sb-gd-start:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--sb-choco); }

/* keyboard ring: choco, 3px, on every control of the page (dark areas override it) */
.sb-gd-seg button:focus-visible, .sb-gd-select select:focus-visible, .sb-gd-round:focus-visible, .sb-gd-range:focus-visible, .sb-gd-start:focus-visible, .sb-gd-dot:focus-visible { outline: var(--sb-focus-ring); outline-offset: var(--sb-focus-offset); }
.sb-gd-dot:focus-visible { outline-offset: 0; }

@media (prefers-reduced-motion: reduce) { .sb-gd-dot i, .sb-gd-start { transition: none; } }
@media (max-width: 560px) {
    .sb-gd-head { padding-top: 28px; padding-bottom: 28px; }
    .sb-gd-card { padding: 20px; border-radius: 24px; }
    .sb-gd-num { font-size: 48px; }
    .sb-gd-num span { font-size: 28px; }
    .sb-gd-sum, .sb-gd-steps { padding: 20px; border-radius: 28px; box-shadow: 6px 6px 0 var(--sb-choco); }
    .sb-gd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
 * BREWING GUIDE (S15-B): brew screen. Dark choco timer panel with the drawing, the steps list beside it (below it on phones),
 * steam and sparkles when the brew is finished, and the step pop-ups.
 * The drawing is driven by the script (kettle tilt, pouring, dripping, dripper level, server level); the classes
 * pouring, dripping, over and paused on #scene switch the parts on and off.
 * ========================================================================== */
.sb-gd--brew { padding-top: 32px; }
.sb-gd-panel { box-sizing: border-box; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 22px; color: var(--sb-pink-50); background: var(--sb-choco); border-radius: 24px; }
.sb-gd-panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--sb-pink-100); }
.sb-gd-scene { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; padding: 10px 12px 6px; background: var(--sb-brown-900); border-radius: 18px; }
.sb-gd-art { display: block; width: 100%; max-width: 300px; height: auto; max-height: 240px; overflow: visible; }
.sb-gd-ice { margin: 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--sb-yellow); }
.sb-gd-mid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; }
.sb-gd-now { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sb-gd-now__step { margin: 0; font-family: var(--sb-font-display); font-size: 34px; font-weight: 400; line-height: 1.05; letter-spacing: 0.01em; text-transform: uppercase; overflow-wrap: anywhere; }
.sb-gd-now__note { margin: 0; font-size: 15px; line-height: 1.5; color: var(--sb-pink-100); }
.sb-gd-now__pour { padding: 4px 14px; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--sb-choco); background: var(--sb-yellow); border-radius: 999px; }
.sb-gd-clock { text-align: right; }
.sb-gd-clock__t { font-family: var(--sb-font-display); font-size: 64px; line-height: 1; font-variant-numeric: tabular-nums; }
.sb-gd-clock__l { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--sb-pink-100); }
.sb-gd-bar { height: 8px; overflow: hidden; background: var(--sb-brown); border-radius: 999px; }
.sb-gd-bar i { display: block; width: 0; height: 100%; background: var(--sb-yellow); }
.sb-gd-target { font-size: 13px; font-weight: 600; color: var(--sb-pink-100); }
.sb-gd-ask { display: flex; flex-direction: column; gap: 8px; padding: 16px; text-align: center; background: var(--sb-brown-900); border: 2px solid var(--sb-yellow); border-radius: 18px; }
.sb-gd-ask h2 { margin: 0; font-family: var(--sb-font-display); font-size: 26px; font-weight: 400; line-height: 1.1; letter-spacing: 0.01em; color: var(--sb-yellow); }
.sb-gd-ask p { margin: 0 0 4px; font-size: 14px; line-height: 1.5; color: var(--sb-pink-50); }
.sb-gd-done, .sb-gd-pause { box-sizing: border-box; width: 100%; padding: 14px 24px; font: inherit; font-size: 17px; font-weight: 700; border-radius: 999px; cursor: pointer; }
.sb-gd-done { color: var(--sb-choco); background: var(--sb-yellow); border: 2.5px solid var(--sb-yellow); }
.sb-gd-done:hover { background: var(--sb-pink-50); border-color: var(--sb-pink-50); }
.sb-gd-pause { color: var(--sb-pink-50); background: transparent; border: 2px solid var(--sb-pink-50); }
.sb-gd-pause:hover { background: var(--sb-brown-900); }
/* keyboard ring on the dark panel: yellow (a choco ring cannot be seen on choco) */
.sb-gd-panel button:focus-visible { outline: 3px solid var(--sb-yellow); outline-offset: 3px; }

/* Steps list inside the pouring card (S15b), under a thin divider. Light text on the choco card; the current step is yellow,
   finished steps are dimmed to about 55% (#A89392 is pink-50 mixed 55% into choco: 5.1:1 on the card). */
.sb-gd-psteps { padding-top: 8px; border-top: 1.5px solid var(--sb-brown); }
.sb-gd-psteps .sb-gd-list li { padding: 9px 0; font-size: 14px; color: var(--sb-pink-50); border-bottom: 1.5px solid var(--sb-brown); }
.sb-gd-psteps .sb-gd-list li:last-child { border-bottom: 0; }
.sb-gd-psteps .sb-gd-list .snote { color: var(--sb-pink-100); }
.sb-gd-psteps .sb-gd-list li.cur { margin: 0 -10px; padding-left: 10px; padding-right: 10px; color: var(--sb-choco); background: var(--sb-yellow); border-bottom-color: transparent; border-radius: 12px; }
.sb-gd-psteps .sb-gd-list li.cur .snote { color: var(--sb-choco); }
.sb-gd-psteps .sb-gd-list li.done, .sb-gd-psteps .sb-gd-list li.done .snote { color: #A89392; }

/* the drawing */
.sb-gd-art .sb-gd-pourg, .sb-gd-art .sb-gd-fin, .sb-gd-art .sb-gd-drip { opacity: 0; }
.sb-gd-art .sb-gd-drip { transform-box: fill-box; }
.sb-gd-art .sb-gd-pourg, .sb-gd-art .sb-gd-restg, .sb-gd-art .sb-gd-fin { transition: opacity 0.2s; }
.sb-gd-art.pouring .sb-gd-pourg { opacity: 1; }
.sb-gd-art.pouring .sb-gd-restg { opacity: 0; }
.sb-gd-art.over .sb-gd-fin { opacity: 1; }
.sb-gd-art.dripping .sb-gd-drip { animation: sb-gd-drip 1s ease-in infinite; }
.sb-gd-art.dripping .sb-gd-drip.d2 { animation-delay: 0.33s; }
.sb-gd-art.dripping .sb-gd-drip.d3 { animation-delay: 0.66s; }
.sb-gd-art.paused *, .sb-gd-art.paused { animation-play-state: paused; }

/* shared animated parts (the drawing and the pop-up pictures) */
.sb-gd-flow { stroke-dasharray: 3 8; animation: sb-gd-flow 0.45s linear infinite; }
.sb-gd-bub { transform-box: fill-box; animation: sb-gd-bub 1.4s ease-in infinite; }
.sb-gd-bub.b2 { animation-delay: 0.6s; }
.sb-gd-steam { transform-box: fill-box; animation: sb-gd-steam 1.8s ease-in-out infinite; }
.sb-gd-steam.s2 { animation-delay: 0.5s; }
.sb-gd-steam.s3 { animation-delay: 1s; }
.sb-gd-star { transform-box: fill-box; transform-origin: center; animation: sb-gd-star 1.2s ease-in-out infinite alternate; }
.sb-gd-star.s2 { animation-delay: 0.6s; }
.sb-gd-kettle { transform-box: fill-box; transform-origin: 30% 70%; animation: sb-gd-tilt 1.3s ease-in-out infinite alternate; }
.sb-gd-rise, .sb-gd-rise2 { transform-box: fill-box; transform-origin: 50% 100%; animation: sb-gd-rise 2.6s ease-out infinite alternate; }
.sb-gd-drain { animation: sb-gd-drain 3s ease-in-out infinite; }
.sb-gd-popdrip { transform-box: fill-box; animation: sb-gd-drip 1s ease-in infinite; }
.sb-gd-popdrip.d2 { animation-delay: 0.33s; }
.sb-gd-popdrip.d3 { animation-delay: 0.66s; }
.sb-gd-arrow { animation: sb-gd-arrow 1s ease-in-out infinite alternate; }
@keyframes sb-gd-flow { to { stroke-dashoffset: -11; } }
@keyframes sb-gd-bub { 0% { transform: translateY(4px) scale(0.4); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-8px) scale(1); opacity: 0; } }
@keyframes sb-gd-steam { 0% { transform: translateY(6px); opacity: 0; } 45% { opacity: 1; } 100% { transform: translateY(-8px); opacity: 0; } }
@keyframes sb-gd-star { from { transform: scale(0.7) rotate(-10deg); } to { transform: scale(1.1) rotate(10deg); } }
@keyframes sb-gd-tilt { from { transform: rotate(-5deg); } to { transform: rotate(3deg); } }
@keyframes sb-gd-rise { from { transform: scaleY(0.55); } to { transform: scaleY(1); } }
@keyframes sb-gd-drain { from { transform: translateY(0); } to { transform: translateY(24px); } }
@keyframes sb-gd-drip { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes sb-gd-arrow { from { transform: translateY(-3px); } to { transform: translateY(3px); } }

/* step pop-up: bottom centre, 96px kept free on the right (the floating cart button's corner), never takes focus, never blocks clicks beside it */
.sb-gd-popwrap { position: fixed; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60; box-sizing: border-box; display: flex; justify-content: center; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(96px, env(safe-area-inset-right, 0px)); pointer-events: none; }
.sb-gd-pop { pointer-events: auto; box-sizing: border-box; width: min(420px, 100%); overflow: hidden; color: var(--sb-choco); background: var(--sb-white); border: 3px solid var(--sb-choco); border-radius: 24px; box-shadow: 6px 6px 0 var(--sb-pink-300); }
.sb-gd-pop[hidden] { display: none; }
.sb-gd-pop__row { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; }
.sb-gd-pop__art { flex: none; box-sizing: border-box; width: 128px; height: 112px; display: flex; align-items: center; justify-content: center; background: var(--sb-pink-50); border-radius: 18px; }
.sb-gd-pop__art svg { width: 128px; height: 106px; overflow: visible; }
.sb-gd-pop__txt { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sb-gd-pop__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sb-pink-text); }
.sb-gd-pop__title { font-family: var(--sb-font-display); font-size: 28px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.sb-gd-pop__line { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--sb-brown); overflow-wrap: anywhere; }
.sb-gd-pop__bar { height: 6px; background: var(--sb-yellow); transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
    .sb-gd-pop.is-in { animation: sb-gd-popin 0.6s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
    .sb-gd-pop.is-in .sb-gd-pop__bar { animation: sb-gd-bar 4.5s linear both; }
}
@keyframes sb-gd-popin { from { opacity: 0; transform: translateY(46px) scale(0.88); } to { opacity: 1; transform: none; } }
@keyframes sb-gd-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* reduced motion: no entrance, no moving pictures, no shrinking bar (the pop-up still hides after 4.5 s) */
@media (prefers-reduced-motion: reduce) {
    .sb-gd-art *, .sb-gd-pop * { animation: none !important; }
    .sb-gd-art .sb-gd-pourg, .sb-gd-art .sb-gd-restg, .sb-gd-art .sb-gd-fin { transition: none; }
    .sb-gd-pop__bar { display: none; }
}
@media (max-width: 560px) {
    .sb-gd-panel { padding: 18px; }
    .sb-gd-mid { grid-template-columns: minmax(0, 1fr); }
    .sb-gd-clock { text-align: left; order: -1; }
    .sb-gd-now__step { font-size: 30px; }
    /* the 96px kept free on the right leaves little room on a phone, so the picture is smaller there */
    .sb-gd-pop__row { gap: 12px; padding: 12px 14px 12px 12px; }
    .sb-gd-pop__art { width: 88px; height: 78px; }
    .sb-gd-pop__art svg { width: 88px; height: 73px; }
}

/* ==========================================================================
 * BREWING GUIDE (S15-C): feedback and tips pop-up. Pink-50 card, 3px choco border, 32px radius, 10px hard choco shadow.
 * Stars: yellow with a choco outline. Send: choco pill with a pink-600 shadow. Thanks: a yellow pill.
 * ========================================================================== */
.sb-gd-modal { position: fixed; inset: 0; z-index: 300; box-sizing: border-box; display: flex; overflow-y: auto; padding: 16px 16px 26px; background: rgba(62, 33, 24, 0.55); }
.sb-gd-sheet { position: relative; box-sizing: border-box; width: 100%; max-width: 520px; margin: auto; display: flex; flex-direction: column; gap: 20px; padding: 30px; color: var(--sb-choco); background: var(--sb-pink-50); border: 3px solid var(--sb-choco); border-radius: 32px; box-shadow: 10px 10px 0 var(--sb-choco); }
.sb-gd-sheet__title { margin: 0; padding-right: 40px; font-family: var(--sb-font-display); font-size: 36px; font-weight: 400; line-height: 1.05; letter-spacing: 0.01em; text-transform: uppercase; }
.sb-gd-sheet__title span { color: var(--sb-pink-600); }   /* large text: 4.4:1 on pink-50 */
.sb-gd-x { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; color: var(--sb-choco); background: var(--sb-white); border: 2px solid var(--sb-choco); border-radius: 50%; cursor: pointer; }
.sb-gd-x:hover { background: var(--sb-pink-100); }
.sb-gd-fb { display: flex; flex-direction: column; gap: 14px; }
.sb-gd-rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sb-gd-stars { display: flex; gap: 8px; }
.sb-gd-rate { flex: none; width: 56px; height: 56px; padding: 2px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 14px; cursor: pointer; transition: transform 0.2s cubic-bezier(0.3, 1.8, 0.5, 1); }
.sb-gd-rate:hover { transform: scale(1.12) rotate(-6deg); }
.sb-gd-rate svg { width: 52px; height: 52px; fill: var(--sb-white); stroke: var(--sb-choco); stroke-width: 1.6; stroke-linejoin: round; }
.sb-gd-rate.on svg { fill: var(--sb-yellow); }
.sb-gd-rating__t { padding-left: 6px; font-size: 14px; font-weight: 700; color: var(--sb-brown); }
.sb-gd-field { display: flex; flex-direction: column; gap: 6px; }
.sb-gd-field textarea { display: block; box-sizing: border-box; width: 100%; min-height: 110px; padding: 14px 16px; font: inherit; font-size: 15px; line-height: 1.45; color: var(--sb-choco); background: var(--sb-white); border: var(--sb-border); border-radius: 18px; resize: none; }
.sb-gd-field textarea::placeholder { color: var(--sb-brown); opacity: 1; }
.sb-gd-count { font-size: 12px; text-align: right; color: var(--sb-brown); }
.sb-gd-fberr { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--sb-danger); }
.sb-gd-send { box-sizing: border-box; width: 100%; padding: 16px 28px; font: inherit; font-size: 16px; font-weight: 700; color: var(--sb-pink-50); background: var(--sb-choco); border: 0; border-radius: 999px; box-shadow: 4px 4px 0 var(--sb-pink-600); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.sb-gd-send:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--sb-pink-600); }
.sb-gd-send:disabled { color: var(--sb-brown); background: var(--sb-pink-100); box-shadow: none; cursor: not-allowed; }
.sb-gd-thanks { margin: 0; padding: 14px; text-align: center; font-size: 16px; font-weight: 700; background: var(--sb-yellow); border: var(--sb-border); border-radius: 999px; }
.sb-gd-tips { display: flex; align-items: center; gap: 8px; min-height: 84px; box-sizing: border-box; padding: 10px; background: var(--sb-yellow); border: var(--sb-border); border-radius: 22px; }
.sb-gd-tips button { flex: none; width: 44px; height: 44px; padding: 0; font-size: 22px; font-weight: 700; line-height: 1; color: var(--sb-choco); background: var(--sb-pink-50); border: var(--sb-border); border-radius: 50%; cursor: pointer; }
.sb-gd-tips button:hover { background: var(--sb-white); }
.sb-gd-tips p { flex: 1; min-width: 0; margin: 0; padding: 0 4px; text-align: center; font-size: 15px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.sb-gd-close { box-sizing: border-box; width: 100%; padding: 14px 24px; font: inherit; font-size: 16px; font-weight: 700; color: var(--sb-choco); background: transparent; border: var(--sb-border); border-radius: 999px; cursor: pointer; }
.sb-gd-close:hover { background: var(--sb-pink-100); }
.sb-gd-x:focus-visible, .sb-gd-rate:focus-visible, .sb-gd-field textarea:focus-visible, .sb-gd-send:focus-visible, .sb-gd-tips button:focus-visible, .sb-gd-close:focus-visible { outline: var(--sb-focus-ring); outline-offset: var(--sb-focus-offset); }
@media (prefers-reduced-motion: reduce) { .sb-gd-rate, .sb-gd-send { transition: none; } .sb-gd-rate:hover { transform: none; } }
@media (max-width: 560px) {
    .sb-gd-sheet { gap: 16px; padding: 22px 20px 24px; border-radius: 28px; box-shadow: 6px 6px 0 var(--sb-choco); }
    .sb-gd-sheet__title { font-size: 30px; }
    .sb-gd-x { top: 14px; right: 14px; }
    .sb-gd-rate { width: 48px; height: 48px; }
    .sb-gd-rate svg { width: 44px; height: 44px; }
    .sb-gd-stars { gap: 2px; }
}

/* ==========================================================================
 * TRACK ORDER PAGE (S16-B): page head, lookup form, result header, progress steps, order card.
 * 2.5px choco borders on every card (the site card style). All classes start with sb-tr-.
 * Greys: the mockup's #8A6A5E is kept on white (4.9:1) and replaced by --sb-brown on pink-50; its #9A7A6E (3.9:1) is replaced by --sb-brown.
 * ========================================================================== */
.sb-tr-head { box-sizing: border-box; max-width: 1280px; margin: 0 auto; padding: 40px max(20px, env(safe-area-inset-right, 0px)) 32px max(20px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.sb-tr-head__label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sb-brown); }
.sb-tr-head__title { margin: 0; font-family: var(--sb-font-display); font-size: 52px; font-weight: 400; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
.sb-tr-head__title span { color: var(--sb-pink-600); }   /* large text: 4.6:1 on white */
.sb-tr-head__sub { margin: 0; max-width: 48ch; font-size: 17px; line-height: 1.6; color: var(--sb-brown); }

.sb-tr-wrap { box-sizing: border-box; max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 96px max(20px, env(safe-area-inset-left, 0px)); }
.sb-tr-wrap > * { width: 100%; max-width: 920px; }

/* lookup form */
.sb-tr-form { box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--sb-pink-50); border: var(--sb-border); border-radius: 28px; }
.sb-tr-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.sb-tr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sb-tr-field label { font-size: 13px; font-weight: 700; }
.sb-tr-field input { box-sizing: border-box; width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--sb-choco); background: var(--sb-white); border: var(--sb-border); border-radius: 16px; }
.sb-tr-field input::placeholder { color: var(--sb-brown); opacity: 1; }
.sb-tr-upper { text-transform: uppercase; }
.sb-tr-btn { box-sizing: border-box; min-height: 54px; padding: 16px 28px; font: inherit; font-size: 16px; font-weight: 700; color: var(--sb-pink-50); background: var(--sb-choco); border: 0; border-radius: 999px; cursor: pointer; transition: transform 0.15s; }
.sb-tr-btn:hover:not(:disabled) { transform: translate(-1px, -2px); }
.sb-tr-btn:disabled { color: var(--sb-brown); background: var(--sb-pink-100); cursor: not-allowed; }
.sb-tr-login { margin: 0; align-self: flex-start; font-size: 14px; font-weight: 700; }
.sb-tr-login a { color: var(--sb-choco); text-decoration: underline; text-underline-offset: 4px; }

/* error box (the script shows and hides it with style.display) */
.sb-tr-error { box-sizing: border-box; display: none; padding: 14px 18px; font-size: 15px; line-height: 1.5; color: var(--sb-choco); background: var(--sb-pink-100); border: var(--sb-border); border-radius: 16px; }
.sb-tr-error a { font-weight: 700; color: var(--sb-choco); text-decoration: underline; text-underline-offset: 3px; }

/* result */
.sb-tr-result { display: none; flex-direction: column; gap: 20px; }
.sb-tr-result.show { display: flex; }
.sb-tr-hcard { box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 26px 28px; background: var(--sb-pink-50); border: var(--sb-border); border-radius: 20px; }
.sb-tr-icon { flex: none; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; color: var(--sb-white); background: var(--sb-pink-600); border-radius: 50%; }
.sb-tr-icon.is-x { background: var(--sb-choco); }
.sb-tr-icon svg { width: 30px; height: 30px; }
.sb-tr-hcard__txt { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sb-tr-meta { font-size: 13px; font-weight: 600; color: var(--sb-brown); overflow-wrap: anywhere; }
.sb-tr-status { margin: 0; font-family: var(--sb-font-display); font-size: 40px; font-weight: 400; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; overflow-wrap: anywhere; }
.sb-tr-sentence { font-size: 15px; line-height: 1.5; color: var(--sb-brown); overflow-wrap: anywhere; }
.sb-tr-sentence:empty { display: none; }

.sb-tr-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sb-tr-cols.is-one { grid-template-columns: minmax(0, 1fr); }
.sb-tr-card { box-sizing: border-box; min-width: 0; padding: 24px; background: var(--sb-white); border: var(--sb-border); border-radius: 20px; }
.sb-tr-card__h { margin: 0; padding-bottom: 16px; font-size: 16px; font-weight: 700; }
.sb-tr-card--order { display: flex; flex-direction: column; gap: 12px; }
.sb-tr-card--order .sb-tr-card__h { padding-bottom: 4px; }

/* progress steps */
.sb-tr-steps { margin: 0; padding: 0; list-style: none; }
.sb-tr-step { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px; min-height: 64px; }
.sb-tr-step:last-child { min-height: 0; }
.sb-tr-step__m { display: flex; flex-direction: column; align-items: center; }
.sb-tr-dot { box-sizing: border-box; flex: none; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; background: var(--sb-white); border: 2px solid #E2CFC8; border-radius: 50%; }
.sb-tr-dot svg { width: 14px; height: 14px; }
.sb-tr-dot i { width: 10px; height: 10px; background: var(--sb-white); border-radius: 50%; }
.sb-tr-link { flex: 1 1 auto; width: 2px; margin: 4px 0; background: #EADDD7; }
.sb-tr-step:last-child .sb-tr-link { display: none; }
.sb-tr-step__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 2px 0 14px; }
.sb-tr-step__n { font-size: 15px; font-weight: 700; color: var(--sb-brown); }
.sb-tr-step__l { font-size: 13px; line-height: 1.45; color: var(--sb-brown); overflow-wrap: anywhere; }
.sb-tr-step__l b { font-weight: 800; color: var(--sb-choco); word-break: break-all; }
.sb-tr-step__time { padding-top: 3px; font-size: 13px; color: #8A6A5E; white-space: nowrap; }
.sb-tr-step.is-done .sb-tr-dot { background: var(--sb-choco); border-color: var(--sb-choco); }
.sb-tr-step.is-done .sb-tr-link { background: var(--sb-choco); }
.sb-tr-step.is-done .sb-tr-step__n { color: var(--sb-choco); }
.sb-tr-step.is-current .sb-tr-dot { background: var(--sb-pink-600); border-color: var(--sb-pink-600); animation: sb-tr-pulse 1.8s ease-in-out infinite; }
.sb-tr-step.is-current .sb-tr-step__n { font-weight: 800; color: var(--sb-pink-text); }   /* pink-text, not pink-600: small text */
@keyframes sb-tr-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(214, 51, 111, 0.45); } 50% { box-shadow: 0 0 0 10px rgba(214, 51, 111, 0); } }
@media (prefers-reduced-motion: reduce) { .sb-tr-step.is-current .sb-tr-dot, .sb-tr-btn { animation: none; transition: none; } }

/* your order */
.sb-tr-items { display: flex; flex-direction: column; gap: 12px; }
.sb-tr-item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sb-tr-item__l { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sb-tr-item__n { font-weight: 700; overflow-wrap: anywhere; }
.sb-tr-item__m { font-size: 12.5px; color: #8A6A5E; overflow-wrap: anywhere; }
.sb-tr-item__p { font-weight: 600; white-space: nowrap; }
.sb-tr-ship { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: 14px; color: var(--sb-brown); border-top: 1px solid #F1E7E3; }
.sb-tr-ship span:first-child { min-width: 0; overflow-wrap: anywhere; }
.sb-tr-ship span:last-child { font-weight: 600; white-space: nowrap; }
.sb-tr-ship[hidden] { display: none; }
.sb-tr-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sb-tr-total > span:first-child { font-size: 15px; font-weight: 700; }
.sb-tr-total__v { font-family: var(--sb-font-display); font-size: 26px; line-height: 1.1; }
.sb-tr-who { margin: 0; font-size: 13px; color: var(--sb-brown); overflow-wrap: anywhere; }
.sb-tr-who:empty { display: none; }

/* below the cards: Cancel order, Ask on WhatsApp */
.sb-tr-cancel { box-sizing: border-box; padding: 14px 28px; font: inherit; font-size: 16px; font-weight: 700; color: var(--sb-choco); background: var(--sb-white); border: var(--sb-border); border-radius: 999px; cursor: pointer; }
.sb-tr-cancel:hover:not(:disabled) { background: var(--sb-pink-100); }
.sb-tr-cancel:disabled { color: var(--sb-brown); cursor: not-allowed; }
.sb-tr-wa { margin: 0; text-align: center; font-size: 14px; color: var(--sb-brown); }
.sb-tr-wa a { font-weight: 700; color: var(--sb-pink-text); text-decoration: underline; text-underline-offset: 3px; }

/* keyboard ring: choco, 3px (the footer already has its own yellow ring) */
.sb-tr-field input:focus-visible, .sb-tr-btn:focus-visible, .sb-tr-login a:focus-visible, .sb-tr-error a:focus-visible, .sb-tr-cancel:focus-visible, .sb-tr-wa a:focus-visible { outline: var(--sb-focus-ring); outline-offset: var(--sb-focus-offset); }

@media (max-width: 860px) {
    .sb-tr-row { grid-template-columns: minmax(0, 1fr); }
    .sb-tr-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .sb-tr-form { padding: 20px; border-radius: 24px; }
    .sb-tr-hcard { padding: 22px 20px; gap: 16px; }
    .sb-tr-status { font-size: 34px; }
    .sb-tr-card { padding: 20px; }
}
@media (max-width: 380px) {
    .sb-tr-step { grid-template-columns: 26px minmax(0, 1fr); }
    .sb-tr-step__time { grid-column: 2; padding: 0 0 12px; margin-top: -10px; }   /* the time wraps under the text at 360px */
}

/* ==========================================================================
 * TRACK ORDER PAGE (S16-C): waiting-for-payment panel (pending and not paid only).
 * The one card with a hard shadow: it is the card that asks for action.
 * ========================================================================== */
.sb-tr-pay { box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--sb-white); border: var(--sb-border); border-radius: 20px; box-shadow: 6px 6px 0 var(--sb-choco); }
.sb-tr-pay[hidden] { display: none; }
.sb-tr-pay__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.sb-tr-pay__h { margin: 0; font-size: 16px; font-weight: 700; }
.sb-tr-pay__total { font-family: var(--sb-font-display); font-size: 26px; line-height: 1.1; }
.sb-tr-pay__qrbox { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sb-tr-pay__qrbox[hidden] { display: none; }
.sb-tr-pay__cap { margin: 0; font-size: 14px; font-weight: 700; }
.sb-tr-pay__qr { display: block; box-sizing: border-box; width: 200px; max-width: 100%; height: auto; background: var(--sb-white); border: var(--sb-border); border-radius: 18px; }
.sb-tr-pay__line { margin: 0; font-size: 15px; line-height: 1.5; }
.sb-tr-pay__line[hidden] { display: none; }
.sb-tr-pay__wa { box-sizing: border-box; align-self: flex-start; max-width: 100%; display: inline-flex; align-items: center; padding: 14px 28px; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--sb-white); background: var(--sb-choco); border-radius: 999px; box-shadow: 4px 4px 0 var(--sb-pink-600); text-decoration: none; overflow-wrap: anywhere; transition: transform 0.15s, box-shadow 0.15s; }
.sb-tr-pay__wa:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--sb-pink-600); }
.sb-tr-pay__wa:focus-visible { outline: var(--sb-focus-ring); outline-offset: var(--sb-focus-offset); }
@media (prefers-reduced-motion: reduce) { .sb-tr-pay__wa { transition: none; } }
@media (max-width: 560px) {
    .sb-tr-pay { padding: 20px; box-shadow: 5px 5px 0 var(--sb-choco); }
    .sb-tr-pay__wa { align-self: stretch; justify-content: center; text-align: center; }
}
