/* ==========================================================================
   CLEAN GO — storefront stylesheet

   Written from the design tokens extracted from the Savor theme's
   config/settings_data.json rather than by copying Savor's own CSS, which is a
   licensed Shopify Theme Store asset:

     background #ffffff · foreground #000000 · primary #20225A · accent #e8d5c7
     headings   Barlow Condensed 600
     body       Inter 400
     corners    square (radius 0) on buttons, inputs and popovers

   Fonts are loaded from local files in assets/fonts/ when present, with a
   system-stack fallback, so the page has no external dependency at runtime.
   ========================================================================== */

:root {
    --color-background: #ffffff;
    --color-foreground: #000000;
    --color-primary: #20225A;
    --color-accent: #e8d5c7;
    --color-muted: #6b6b72;
    --color-border: #e4e4e7;
    --color-sale: #20225A;

    --font-heading: "Barlow Condensed", "Arial Narrow", Inter, system-ui, sans-serif;
    --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 0;

    /*
     * Controls only.
     *
     * --radius is 0 deliberately: the badges, the buttons and the cards all read from it,
     * and the squared language is the brand's. Rounding the quantity stepper by changing
     * --radius would round every one of them. These tokens exist so one control can be
     * softened without that happening.
     *
     * --control-height is 48px, not the 38px the stepper used to compute to, so the
     * tap target clears 44x44 on both axes.
     */
    --radius-control: 6px;
    --control-track: #f2f2f4;
    --control-track-hover: #e6e6ea;
    --control-height: 48px;

    --page-max: 1400px;
    --page-pad: 2rem;
    --gap: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-foreground);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    /* The storefront must never scroll sideways at any width. */
    overflow-x: hidden;
}

img, picture, video, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.1;
    margin: 0 0 0.5em;
    text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.page-width {
    width: 100%;
    max-width: var(--page-max);
    margin-inline: auto;
    padding-inline: var(--page-pad);
}

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

/* ------------------------------------------------------------------ buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius);
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.88; text-decoration: none; }

.btn--secondary { background: transparent; color: var(--color-primary); }
.btn--full { width: 100%; }
.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ------------------------------------------------------------------- header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    /* Only the overlay variant animates, but declaring the transition on the
       base avoids a jump the first time .is-scrolled is applied. */
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

/* -------------------------------------------------- transparent overlay mode

   On a page that opens with a full-bleed hero, the header sits ON the artwork
   until the first scroll instead of occupying a white band above it.

   Applied by the view (`$heroOverlay`), NOT globally: pages without a hero open
   on white, and a transparent header there is an invisible header.

   The text stays NAVY. The obvious treatment — white text over the photo — was
   measured against the actual artwork and is unreadable: the top 70px of both
   hero images averages #DBE8F5 / #D3E3F4, giving white a contrast ratio of
   1.00:1. Navy on that band measures 11.7:1 (desktop) and 11.2:1 (mobile).

   The scrim is what makes it safe rather than merely average. The darkest pixel
   in the desktop band drops navy to 4.38:1, just under the 4.5:1 AA floor, so a
   light wash is laid under the header to lift the worst case clear of it while
   leaving the artwork plainly visible. */
.site-header--overlay {
    position: absolute;
    inset-inline: 0;
    top: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.78),
        rgba(255, 255, 255, 0.45) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    border-bottom-color: transparent;
}

/* Scrolled: the header leaves the hero behind and becomes the ordinary solid
   bar again, sticking to the top of the viewport.

   Without JavaScript this class is never added and the header simply stays in
   overlay mode. That degrades acceptably — navy reads on the light hero and on
   the white content below — which is why the solid state is the enhancement
   rather than the baseline. */
.site-header--overlay.is-scrolled {
    position: fixed;
    background: var(--color-background);
    border-bottom-color: var(--color-border);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.07);
}

/* With the mobile menu open, the panel below the header is solid white while the
   header row itself would still be transparent — the two read as separate
   objects. This joins them up.

   :has() rather than a JS-toggled class, so the nav-toggle script stays the one
   place that knows about opening the menu. Browsers without :has() simply keep
   the transparent row, which is untidy rather than broken. */
.site-header--overlay:has(.nav-toggle[aria-expanded="true"]) {
    background: var(--color-background);
    border-bottom-color: var(--color-border);
}

/* 🚨 NO OVERLAY AT ALL ON A NARROW SCREEN (owner, 12 November 2026).

   The overlay was designed for a wide hero, where the header floats over a band
   of artwork that is mostly empty sky. On a phone the hero is the portrait
   banner, whose wording starts near the top — so the header sat on the words,
   and the white-to-transparent scrim washed them out as well.

   This does not invent a third header state: it simply switches the overlay OFF
   below 700px, which leaves the ordinary `.site-header` — white, bordered,
   `position: sticky; top: 0` — the same floating bar every other page already
   uses. Because sticky stays in flow, the hero now starts BELOW the header
   instead of behind it, so nothing is covered and no padding has to be invented
   to compensate (a fixed header would have needed one, and it would have had to
   track the promo bar's wrapping at every width).

   `.is-scrolled` is overridden too, or the script would promote the header to
   `position: fixed` on the first scroll and pull it back out of flow. The
   shadow that class adds is left alone: once scrolled, it is the right cue. */
@media (max-width: 700px) {
    .site-header--overlay,
    .site-header--overlay.is-scrolled {
        position: sticky;
        inset-inline: auto;
        top: 0;
        background: var(--color-background);
        border-bottom-color: var(--color-border);
    }
}

/* The header is out of flow in overlay mode, so the hero starts at the top of
   the page rather than below a 70px band that is no longer there.

   🚨 THE `min-height: 100svh` THAT WAS HERE IS GONE (owner, 11 November 2026:
   the hero image fits the viewport WIDTH). Forcing the box to the full height
   of the viewport is what made the image crop: a 1672x941 banner stretched to
   fill a 100svh box can only do it by throwing away the sides. The hero is now
   as tall as the image at the width it is given, and nothing is cut off. */

@media (prefers-reduced-motion: reduce) {
    .site-header { transition: none; }
}

/* The mobile nav panel is positioned against the header itself rather than a
   hardcoded top offset, so it stays correctly placed when the header grows to
   two rows on small screens. */
.site-header__inner { position: relative; }

.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--gap);
    padding-block: 0.75rem;
}

.site-header__logo img { height: 36px; width: auto; }

.site-nav { display: flex; gap: 1.75rem; margin-inline-start: auto; }

/* 🚨 DIRECT CHILDREN ONLY, SINCE 11 NOVEMBER 2026.
   The market switcher now lives inside this nav, and its two options are
   anchors too. Written as `.site-nav a` these menu styles won a specificity
   contest against `.market-toggle__option` and repainted the segmented control
   in uppercase heading type at 1.05rem. The walker emits bare <a> elements as
   direct children (inc/walker.php, no wrapper), so `>` is exactly the menu and
   nothing else. */
.site-nav > a {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.header-actions { display: flex; align-items: center; gap: 1rem; margin-inline-start: 1.5rem; }

.cart-link { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; }
.cart-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding-inline: 0.35rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 999px;
    font-size: 0.8rem;
    line-height: 1;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 0.4rem;
    cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-foreground); margin-block: 5px; }

/* --------------------------------------------------------- market switcher */

/* Segmented two-state control: MY | SG. Square corners to match the buttons. */
.market-toggle {
    display: inline-flex;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.market-toggle__option {
    appearance: none;
    border: 0;
    padding: 0.45rem 0.85rem;
    background: transparent;
    color: var(--color-muted);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.market-toggle__option + .market-toggle__option { border-inline-start: 1px solid var(--color-border); }
.market-toggle__option:hover { background: color-mix(in srgb, var(--color-accent) 45%, #fff); color: var(--color-foreground); }

.market-toggle__option.is-active {
    background: var(--color-primary);
    color: #fff;
    cursor: default;
}

/* The control is keyboard-operable, so the focus ring must stay visible. */
.market-toggle__option:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

/* ------------------------------------------------------------------ notices */

.notice {
    padding: 0.9rem 1.1rem;
    border-inline-start: 3px solid var(--color-primary);
    background: color-mix(in srgb, var(--color-accent) 45%, #fff);
    margin-block: 1rem;
    font-size: 0.95rem;
}
.notice--warning { border-color: #b45309; background: #fffbeb; }

/* --------------------------------------------------------------------- hero */

.hero { position: relative; background: var(--color-primary); }
.hero--full { display: grid; }
.hero__media { grid-area: 1 / 1; }

/* 🚨 THE HERO IMAGE FITS THE VIEWPORT WIDTH (owner, 11 November 2026).
   Was `height: 100%; object-fit: cover`, with the box forced to
   `min-height: calc(100svh - 70px)`. Together those two said "fill the window
   whatever it takes", and what it took was cropping: a 1672x941 banner in a
   full-height box loses its sides, and the wording is IN the artwork. Now the
   image spans the full width and keeps its own aspect ratio, the hero is as
   tall as the image, and the whole banner is visible at every width. This is
   what the 768px block already did for phones; it is now simply the rule. */
.hero__media img { width: 100%; height: auto; object-fit: contain; }

.hero__content {
    grid-area: 1 / 1;
    align-self: end;
    justify-self: center;
    padding: clamp(1.5rem, 6vw, 4rem);
    text-align: center;
}
.hero--banner { display: block; }
.hero--banner .hero__media img { height: auto; object-fit: contain; }

/* ----------------------------------------------------------- product grid */

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section__head { text-align: center; margin-bottom: 2.5rem; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

/*
 * The "Also available" cross-sell, which always holds EXACTLY ONE card.
 *
 * 🚨 auto-fit COLLAPSES empty tracks. On the shared .product-grid rule above that is the
 * right behaviour for /shop and the homepage, where the card count varies — but the
 * catalogue holds two products and this block excludes the one being viewed, so there is
 * never more than one card here. The lone card absorbed the whole row: ~1336px wide at a
 * 1440px viewport, and because .product-card__media is aspect-ratio 1/1 that rendered a
 * ~1336px-TALL image. That is the "1 column" problem; it was never a layout preference.
 *
 * Explicit columns, so the card keeps a third of the row whatever the count. The base
 * rule is left alone: .product-grid is shared by front-page.php, archive-product.php and
 * guide-shop.php, and changing it would restyle /shop and the homepage too.
 */
.product-grid--cross { grid-template-columns: repeat(3, 1fr); }

/* Kept beside the rule rather than in the breakpoint blocks further down, so the whole
   behaviour of this one grid reads in a single place. */
@media (max-width: 1024px) { .product-grid--cross { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .product-grid--cross { grid-template-columns: 1fr; } }

.product-card { display: flex; flex-direction: column; }
.product-card__media {
    position: relative;
    background: color-mix(in srgb, var(--color-accent) 30%, #fff);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.03); }

.badge {
    position: absolute;
    top: 0.75rem; left: 0.75rem;
    z-index: 2;
    padding: 0.3rem 0.6rem;
    background: var(--color-sale);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-card__body { padding-block: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.product-card__title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; text-transform: uppercase; margin: 0; }
.product-card__pack { color: var(--color-muted); font-size: 0.9rem; }

/* -------------------------------------------------------------------- price */

.price { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.price__amount { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; }
.price__was { color: var(--color-muted); text-decoration: line-through; font-size: 1rem; }
.price__save { color: var(--color-primary); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; }

/* A market with no configured price says so, and says it clearly. */
.price--pending { color: var(--color-muted); font-style: italic; font-size: 0.95rem; }

/* ------------------------------------------------------------ product page */

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: start;
}

.gallery__main {
    background: color-mix(in srgb, var(--color-accent) 30%, #fff);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }

.gallery__thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; flex-wrap: wrap; }
.gallery__thumb {
    width: 80px; height: 80px;
    padding: 0;
    border: 1px solid var(--color-border);
    background: #fff;
    cursor: pointer;
}
.gallery__thumb[aria-current="true"] { border-color: var(--color-primary); border-width: 2px; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }

.product-info__title { margin-bottom: 0.25rem; }
.product-info__pack { color: var(--color-muted); margin-bottom: 1rem; }
.product-info__price { margin-block: 1.25rem; }

.product-form { display: flex; flex-direction: column; gap: 1rem; margin-block: 1.5rem; }
.product-form__row { display: flex; gap: 1rem; align-items: stretch; flex-wrap: wrap; }

/* ------------------------------------------------------- the pack chooser
   "allow customer to select bundle and add to cart instead of making
   customer to increase qty" (owner, 12 Nov 2026).

   The whole row is the target: the <label> wraps the radio, so a tap
   anywhere on it selects — a 16px radio dot is not a tap target, and the
   price is the part people actually aim at.

   The radio is NOT display:none. Hiding it that way takes it out of the
   accessibility tree and off the keyboard, which would leave the only way
   to buy a multi-pack unreachable without a mouse. It stays, visibly, and
   the selected row is marked by its border as well as by the dot — colour
   alone would not survive a greyscale screen. */
.pack-choice {
    border: 0;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}
.pack-choice__legend {
    padding: 0;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
}

.pack-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.pack-option:hover { border-color: var(--color-primary); }

/* :has() is what lets the ROW react to its own radio. Where it is not
   supported the rows simply stay in their resting state — the radio dot
   still shows which is selected, so nothing becomes ambiguous. */
.pack-option:has(.pack-option__input:checked) {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-accent) 35%, #fff);
}
.pack-option:has(.pack-option__input:focus-visible) {
    outline: 2px solid var(--color-foreground);
    outline-offset: 2px;
}

.pack-option__input { flex: none; margin: 0; accent-color: var(--color-primary); }

.pack-option__body {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
}
.pack-option__name { font-weight: 600; }
.pack-option__badge {
    margin-inline-start: 0.5rem;
    padding: 0.1rem 0.45rem;
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-primary);
    white-space: nowrap;
}
.pack-option__price { font-weight: 600; white-space: nowrap; }

/* 🚨 pack-option__save, NOT price__save. tests/pricing.php asserts Singapore
   price HTML carries neither price__save nor price__was: those mark a
   discount on the single-unit price, and one packet still costs exactly
   what it always did. This is the saving on buying several. */
.pack-option__save {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
}

/*
 * The quantity stepper.
 *
 * A soft track rather than the hairline box it replaces: the old control was a 1px
 * rectangle whose height came only from the input's line box (~38px), so it both looked
 * dated and missed the 44x44 tap target on the vertical axis.
 *
 * The buttons carry no border of their own — the track is the only edge, so there is one
 * rounded shape instead of three abutting rectangles.
 */
.qty {
    display: inline-flex;
    align-items: stretch;
    /*
     * .product-form is a flex COLUMN, whose items stretch to its width by default — so
     * the stepper spanned the whole buying panel with its three controls huddled at the
     * left and ~480px of empty track beside them. inline-flex does not prevent that; only
     * opting out of the stretch does. The Add to cart button below it keeps .btn--full
     * and is still full width, which is the contrast this panel wants.
     */
    align-self: flex-start;
    height: var(--control-height);
    background: var(--control-track);
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    overflow: hidden;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.qty:hover { background: var(--control-track-hover); }

/*
 * :focus-within rather than :focus — the ring has to appear when the INPUT is focused,
 * and the input is a child. Without it a keyboard user editing the number gets no
 * indication at all, because the input's own outline is suppressed below.
 */
.qty:focus-within {
    border-color: var(--color-foreground);
    background: var(--control-track-hover);
}

.qty button {
    width: 44px;
    flex: 0 0 44px;
    background: none;
    border: 0;
    padding: 0;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1;
    color: var(--color-foreground);
    cursor: pointer;
    transition: background 0.15s ease;
}
.qty button:hover { background: rgba(0, 0, 0, 0.08); }
.qty button:active { background: rgba(0, 0, 0, 0.14); }

/* The buttons are the only focusable things that would otherwise show a ring inside the
   track; keep a visible one, inset so it is not clipped by overflow: hidden. */
.qty button:focus-visible { outline: 2px solid var(--color-foreground); outline-offset: -3px; }

.qty input {
    width: 56px;
    background: none;
    border: 0;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-foreground);
    -moz-appearance: textfield;
    appearance: textfield;
}
/* The track already shows focus via :focus-within; a second ring here would double it. */
.qty input:focus { outline: none; }
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product-description { border-top: 1px solid var(--color-border); padding-top: 1.5rem; }
.product-description h3, .product-description h4 { margin-top: 1.5rem; }
.product-description ul { padding-inline-start: 1.2rem; }
.product-description img { margin-block: 1rem; }

/* --------------------------------------------------------------------- cart */

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    text-align: left;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}
.cart-table td { padding-block: 1.25rem; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
/*
 * Column widths, so the item name has somewhere to go.
 *
 * The table had none, so the browser divided the width by content and the ITEM column
 * came out around 220px. A 120px thumbnail then left ~85px for the product name, which
 * wrapped "6-in-1 Laundry Detergent Pods" onto four lines and stretched the row. The
 * three right-hand columns are the ones with predictable content, so they are the ones
 * that get fixed widths; ITEM takes whatever is left.
 */
.cart-table { table-layout: fixed; }
.cart-table th:nth-child(2), .cart-table td:nth-child(2) { width: 160px; }
.cart-table th:nth-child(3), .cart-table td:nth-child(3) { width: 120px; }
.cart-table th:nth-child(4), .cart-table td:nth-child(4) { width: 90px; }

.cart-item { display: flex; gap: 1rem; align-items: center; }
/*
 * 120px, up from 90px. The source size requested in cart.php moved from 'thumbnail'
 * (150x150) to 'woocommerce_thumbnail' (300x300) at the same time: at 120px the 150px
 * file is only 1.25x and would have come out SOFTER than the 90px box it replaced, not
 * sharper. The 300px file already exists on disk; nothing was regenerated.
 */
.cart-item__media { width: 120px; flex: 0 0 120px; background: color-mix(in srgb, var(--color-accent) 30%, #fff); }
.cart-item__media img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: contain; }

.cart-summary {
    margin-top: 2rem;
    margin-inline-start: auto;
    max-width: 26rem;
    border: 1px solid var(--color-border);
    padding: 1.5rem;
}
.cart-summary__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.75rem; }
.cart-summary__total { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; }

.link-remove { background: none; border: 0; padding: 0; color: var(--color-muted); text-decoration: underline; cursor: pointer; font-size: 0.9rem; }

/* ---------------------------------------------------------- discount code */

.cart-coupon {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
}
.cart-coupon__label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}
.cart-coupon__row { display: flex; gap: 0.5rem; align-items: stretch; }
.cart-coupon__row input {
    flex: 1 1 auto;
    /* 0 so a long placeholder cannot push the Apply button out of the card:
       a flex item's default min-width is auto, which refuses to shrink below
       its content. */
    min-width: 0;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    /* 16px minimum, same reason as .field input: anything smaller makes iOS
       Safari zoom the viewport on focus. */
    font-size: 1rem;
    text-transform: uppercase;
    background: #fff;
    color: var(--color-foreground);
}
.cart-coupon__row input::placeholder { text-transform: none; }
.cart-coupon__row input:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
    border-color: var(--color-primary);
}
.cart-coupon__row .btn { flex: 0 0 auto; padding-inline: 1.25rem; font-size: 0.95rem; }

.cart-summary__row--discount { font-size: 0.95rem; }
.cart-summary__row--discount .link-remove { margin-inline-start: 0.5rem; }

/* ------------------------------------------- the checkout's coupon control
 *
 * WooCommerce renders "Add coupons" in the order summary as a bare text row with a
 * chevron — no border, no button, the same weight as the Subtotal line above it. On a
 * theme that loads none of WooCommerce's own layout CSS it reads as a heading rather
 * than something to click, which is exactly how a customer concludes the checkout has
 * no discount field. The markup is WooCommerce's and is left alone; only its
 * appearance is raised to match the rest of this store's controls.
 */

/* 🚨 The outline was dropped on 12 November 2026 (owner). The padding, the
   radius and the uppercase heading type stay, so the row still reads as a
   control rather than as another total — which is the whole reason this block
   exists. Only the boxed-button look goes. */
.wc-block-components-totals-coupon .wc-block-components-panel__button {
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-primary);
}
.wc-block-components-totals-coupon .wc-block-components-panel__button:hover { opacity: 0.88; }

/* ------------------------------------------------------------------- prose */

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
.prose img { margin-block: 1.25rem; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--color-border); padding: 0.5rem; }

/* Imported HTML can contain wide tables; they scroll rather than the page. */
.prose__scroll { overflow-x: auto; }

/* ------------------------------------------------------------------- legal */

.breadcrumb { font-size: 0.9rem; color: var(--color-muted); margin-bottom: 1.5rem; }
.breadcrumb span { margin-inline: 0.4rem; }

.legal { max-width: 74ch; }
.legal h2 { margin-top: 2.25rem; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.legal li { margin-bottom: 0.35rem; }
.legal code {
    padding: 0.1rem 0.35rem;
    background: color-mix(in srgb, var(--color-accent) 40%, #fff);
    font-size: 0.9em;
    /* Cookie names must not be able to widen the table on a narrow screen. */
    word-break: break-word;
}

.legal__meta { color: var(--color-muted); font-size: 0.9rem; }

.legal__entity {
    border: 1px solid var(--color-border);
    border-inline-start: 3px solid var(--color-primary);
    padding: 1.1rem 1.25rem;
    margin-block: 1rem 2rem;
}
.legal__entity p { margin: 0 0 0.5rem; }
.legal__entity p:last-child { margin-bottom: 0; }

.legal__index { border-top: 1px solid var(--color-border); margin-top: 2.5rem; padding-top: 0.5rem; }
.legal__index ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--color-primary); color: #fff; padding-block: clamp(2.5rem, 5vw, 4rem); margin-top: 4rem; }
.site-footer a { color: #fff; }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: space-between; }
.site-footer__brand { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; text-transform: uppercase; }
.site-footer__links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer__bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* ------------------------------------------------------------- responsive */

/* 🚨 THE BURGER HEADER NOW STARTS AT 1024px, NOT 768px (owner, 11 November 2026).
   These rules used to live in the 768px block below. They move together or not
   at all: the burger button, the grid that places it, and the off-canvas panel
   are one mechanism, and splitting them across two breakpoints gives you either
   a grid header with no button to open it or a button that opens a nav still
   laid out as a desktop row. The cart-table and --page-pad rules stayed behind
   at 768px — they are not the header and were not asked about. */
@media (max-width: 1024px) {
    :root { --page-pad: 1.5rem; }
    .product-layout { grid-template-columns: 1fr; }

    .nav-toggle { display: block; order: -1; }

    /* The header is one row: hamburger | logo | cart.
       An explicit grid rather than flex wrapping: with `gap` in play, a
       `flex: 1 0 100%` basis overflows its own row by the gap width, which once
       pushed the cart link clean off the right edge of a 390px screen. Named
       areas make the layout deterministic at every width.

       🚨 The second "market market market" row is GONE, because the market
       switcher is no longer a child of this grid — it moved into the nav panel.
       A named area with no occupant would reserve a row that nothing fills. */
    .site-header__inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "toggle logo cart";
        align-items: center;
        gap: 0.5rem;
    }
    .nav-toggle { grid-area: toggle; }
    .site-header__logo { grid-area: logo; justify-self: center; margin: 0; }
    .header-actions { grid-area: cart; margin-inline-start: 0; }

    /* Off-canvas menu, closed by default. Uses [hidden] rather than a display
       utility class: a `display` rule from any other selector beats the `hidden`
       attribute, so the panel would stay visible. */
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0.5rem var(--page-pad) 1rem;
        background: var(--color-background);
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }
    .site-nav[hidden] { display: none; }
    .site-nav > a { padding-block: 0.85rem; border-bottom: 1px solid var(--color-border); }

    /* The switcher sits below "My account", the last menu item. `align-self` is
       what keeps it the width of its two options: the panel is a column flex
       container, so the default `stretch` would pull the segmented control
       across the full width of the panel and it would read as a third button. */
    .site-nav .market-toggle { align-self: start; margin-block-start: 0.9rem; }
    .market-toggle__option { padding-inline: 0.7rem; }
}

@media (max-width: 768px) {
    :root { --page-pad: 1rem; }

    .cart-table thead { display: none; }
    .cart-table tr { display: grid; gap: 0.5rem; padding-block: 1rem; border-bottom: 1px solid var(--color-border); }
    .cart-table td { border: 0; padding-block: 0.15rem; }
    .cart-summary { max-width: none; }
}

@media (min-width: 1025px) {
    /* The panel is toggled with [hidden]; above the burger breakpoint the nav is
       always a row, so the attribute must not be allowed to hide it.
       🚨 This bound tracks the burger breakpoint above. Left at 769px it would
       force the panel permanently OPEN between 769px and 1024px — a white sheet
       of links hanging under the header on every tablet. */
    .site-nav[hidden] { display: flex; }

    /* 🚨 THE MARKET SWITCHER IS NOT A VISITOR CONTROL (owner, 11 November 2026).
       There is no burger up here, so a switcher inside the nav would simply
       reappear at the end of the menu row — the very thing moving it was meant
       to stop. The two markets have different prices in different currencies
       with no conversion between them, and the Malaysian store is not open for
       orders, so a visitor who switches lands in a store that cannot sell to
       them. Hidden rather than unrendered: the alternate market's URL stays in
       the page for crawlers, and /my/ stays reachable by URL for review. */
    .site-nav .market-toggle { display: none; }
}

@media (max-width: 430px) {
    .product-grid { grid-template-columns: 1fr; }
    .gallery__thumb { width: 64px; height: 64px; }
}

/* ==========================================================================
   SEO / conversion sections
   Added around the existing artwork — no change to the navy/Barlow identity.
   ========================================================================== */

.section--intro { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--tight { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.section--product { padding-top: 1.5rem; }

.section__intro {
    max-width: 62ch;
    margin-inline: auto;
    color: var(--color-muted);
}
.section__head .section__intro { margin-top: 0.75rem; }

.intro { max-width: 62ch; }
.intro h1 { margin-bottom: 0.5rem; }
.intro__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.intro__body { margin-top: 2.5rem; }

/* --------------------------------------------------------------- banners */

/* Banner artwork keeps its full-bleed presentation; the copy sits in the
   normal page column above and below it. */
.banner-section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.banner__media { margin-block: clamp(1.25rem, 3vw, 2rem); }
.banner__media img { width: 100%; height: auto; }

/* ------------------------------------------------------------- benefits */

.benefit-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}
.benefit { padding-inline-start: 1rem; border-inline-start: 3px solid var(--color-primary); }
.benefit__title {
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
    text-transform: none;
    letter-spacing: 0;
}
.benefit__body { margin: 0; color: var(--color-muted); }

/* ------------------------------------------------------------ tick list */

.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.tick-list li { position: relative; padding-inline-start: 1.75rem; }
.tick-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0.15rem;
    top: 0.5em;
    width: 0.5rem;
    height: 0.85rem;
    border-inline-end: 2px solid var(--color-primary);
    border-block-end: 2px solid var(--color-primary);
    transform: translateY(-60%) rotate(45deg);
}

/* -------------------------------------------------------------- how to use */

.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 2rem; }
.how__steps { margin: 0; padding-inline-start: 1.25rem; display: grid; gap: 0.85rem; }
.how__steps li { padding-inline-start: 0.25rem; }
.how__notes p { margin: 0 0 0.6rem; }
.how__machine { color: var(--color-muted); }

/* ------------------------------------------------------------ comparison */

.comparison__scroll { overflow-x: auto; }
.comparison__table { width: 100%; border-collapse: collapse; text-align: left; }
.comparison__table th, .comparison__table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}
.comparison__table thead th {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.9rem;
}
.comparison__table tbody th {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    text-transform: uppercase;
    white-space: nowrap;
}
.comparison__list { list-style: disc; margin: 0; padding-inline-start: 1.1rem; color: var(--color-muted); }
.comparison__list li { margin-bottom: 0.25rem; }

/* -------------------------------------------------------------------- FAQ */

.faq__heading { text-align: center; }
.faq__list {
    max-width: 70ch;
    margin-inline: auto;
    border-top: 1px solid var(--color-border);
}
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__question { margin: 0; font-size: 1rem; text-transform: none; letter-spacing: 0; }

.faq__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    background: none;
    border: 0;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
}
.faq__trigger:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Chevron; rotates to indicate state. Driven by aria-expanded so the visual
   and the accessible state can never disagree. */
.faq__icon {
    flex: 0 0 auto;
    width: 0.6rem;
    height: 0.6rem;
    border-inline-end: 2px solid var(--color-primary);
    border-block-end: 2px solid var(--color-primary);
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}
.faq__trigger[aria-expanded="false"] .faq__icon { transform: rotate(-45deg); }

.faq__answer { padding-bottom: 1.1rem; color: var(--color-muted); max-width: 68ch; }
.faq__answer p { margin: 0; }
.faq__answer[hidden] { display: none; }

/* ------------------------------------------------------- product additions */

.product-card__copy { color: var(--color-muted); font-size: 0.95rem; margin: 0.25rem 0 0; }
.product-card__cta { margin: 0.85rem 0 0; }

.product-info__intro { color: var(--color-muted); max-width: 56ch; }
.product-info__cross { margin-top: 1.25rem; }
.product-info__cross a { text-decoration: underline; }

.breadcrumb__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
}
.breadcrumb__item { display: inline-flex; align-items: center; }
.breadcrumb__sep { margin-inline: 0.4rem; color: var(--color-muted); }

/* ------------------------------------------------------------- responsive */

@media (max-width: 768px) {
    /* The comparison becomes stacked cards. A two-column table of prose is
       unreadable at 375px, and letting it scroll sideways hides the second pack
       entirely. Same markup, re-flowed — not a duplicated mobile copy. */
    .comparison__scroll { overflow-x: visible; }
    .comparison__table,
    .comparison__table tbody,
    .comparison__table tr,
    .comparison__table td,
    .comparison__table th { display: block; width: 100%; }

    .comparison__table thead { display: none; }

    .comparison__table tr {
        border: 1px solid var(--color-border);
        margin-bottom: 1.25rem;
        padding: 0.5rem 1rem 1rem;
    }
    .comparison__table td, .comparison__table th { border-bottom: 0; padding: 0.5rem 0; }
    .comparison__table tbody th { font-size: 1.3rem; padding-top: 0.75rem; }

    /* Restore the column meaning that the header row carried on desktop. */
    .comparison__table td[data-label]:not([data-label=""])::before {
        content: attr(data-label);
        display: block;
        font-family: var(--font-heading);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--color-muted);
        margin-bottom: 0.25rem;
    }

    .benefit-grid { gap: 1.25rem; }
    .how { gap: 1.25rem; }
}

/* ------------------------------------------------------------------ guides */

/* The hub. Cards are a plain list so the page still reads in order without CSS. */
.guide-hub__head { max-width: 60ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }

.guide-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}

.guide-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid var(--color-border);
}

.guide-card__title { font-size: clamp(1.05rem, 2vw, 1.25rem); margin: 0; }
.guide-card__title a { text-decoration: none; }
.guide-card__title a:hover { text-decoration: underline; }
.guide-card__summary { color: var(--color-muted); margin: 0; }

/* Pushed to the bottom so cards of different summary lengths still line up. */
.guide-card__cta { margin: auto 0 0; font-family: var(--font-heading); }

/*
 * One guide. The measure is capped for readability and CENTRED — left-aligned
 * inside a 1200px shell it left two thirds of a desktop screen empty, which
 * reads as a broken layout rather than a deliberate one.
 *
 * The wrapper holds the breadcrumbs too, so they line up with the article
 * instead of hugging the far left.
 */
.guide-page { max-width: 74ch; margin-inline: auto; }
.guide { max-width: none; }
.guide__title { margin-bottom: 1rem; }
.guide__lead { font-size: clamp(1rem, 1.6vw, 1.1rem); }

.guide__toc {
    margin: clamp(1.75rem, 4vw, 2.5rem) 0;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    background: color-mix(in srgb, var(--color-accent) 30%, #fff);
}
.guide__toc-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.75rem;
}
.guide__toc ol { margin: 0; padding-inline-start: 1.25rem; display: grid; gap: 0.4rem; }

.guide__section { margin-top: clamp(2rem, 4vw, 2.75rem); }
.guide__section--sub { margin-top: clamp(1.5rem, 3vw, 2rem); }
.guide__heading { margin-bottom: 0.75rem; }

/*
 * The direct answer to the heading. Deliberately a normal <p> in the markup —
 * styling it does not change what a reader or an extractor receives, it only
 * makes the answer easy to find on the page.
 */
.guide__answer {
    font-size: 1.05rem;
    padding-inline-start: 1rem;
    border-inline-start: 3px solid var(--color-primary);
}

.guide__steps { padding-inline-start: 1.25rem; display: grid; gap: 0.5rem; }

.guide__table { width: 100%; border-collapse: collapse; margin-block: 1.25rem; }
.guide__table th, .guide__table td {
    border: 1px solid var(--color-border);
    padding: 0.6rem 0.75rem;
    text-align: start;
    vertical-align: top;
}
.guide__table thead th { background: color-mix(in srgb, var(--color-accent) 30%, #fff); }
.guide__table tbody th { font-weight: 600; }

.guide__note { color: var(--color-muted); font-size: 0.95rem; }

.guide__related { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }

/* ------------------------------------------------------- split sections */

/*
 * A copy column beside a media column, collapsing to one column when the
 * tracks can no longer hold 320px each.
 *
 * Shared by the homepage intro, the brand block and the pods-vs-liquid
 * section. The reading-measure blocks that used to sit alone in a 1200px
 * column left ~600px of empty page beside them at desktop widths; this is
 * what fills it, and it is one rule rather than three near-identical ones.
 */
.split,
.pods-vs-liquid__layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

/*
 * min-width:0 lets the text column shrink inside the grid track. Without it a
 * long unbroken word can force the track wider than the viewport, which is how
 * a two-column grid ends up scrolling the whole page sideways.
 */
.split__copy { min-width: 0; }
.split__copy p { max-width: 60ch; }
.split__media { min-width: 0; }

/* A single image in a media column: capped by HEIGHT, so the section height is
   controlled regardless of how wide the track happens to be. */
.split__media > img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 420px;
    height: auto;
    margin-inline: auto;
}

/* The two pack shots side by side. They stay side by side at every width —
   two pack photographs read perfectly well at ~150px each, and stacking them
   would make a short mobile block very tall. */
.pack-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(0.75rem, 3vw, 1.75rem);
    align-items: end;
    margin: 0;
}
.pack-pair figure { margin: 0; text-align: center; min-width: 0; }

/* Each photograph links to its own product page (owner, 12 November 2026).
   `display: block` because an inline anchor would reintroduce the baseline gap
   under the image that `.pack-pair img { display: block }` exists to remove. */
.pack-pair figure > a { display: block; transition: opacity 0.15s ease; }
.pack-pair figure > a:hover { opacity: 0.86; }
.pack-pair figure > a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.pack-pair img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}
.pack-pair figcaption {
    margin-top: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
}

/* --------------------------------------------------- pods vs liquid section */

/*
 * min-width:0 lets the text column shrink inside the grid track. Without it a
 * long unbroken word can force the track wider than the viewport, which is how a
 * two-column grid ends up scrolling the whole page sideways.
 */
.pods-vs-liquid__copy { min-width: 0; }
.pods-vs-liquid__copy p { max-width: 60ch; }

/*
 * The source creative is portrait (1448x1931). Left to fill its grid track it
 * rendered 577x769 and made the whole section 997px tall, which is far too
 * dominant for a mid-homepage block. Capping the HEIGHT rather than the width
 * controls the section regardless of how wide the track happens to be.
 *
 * On a narrow screen the column is already below the cap, so nothing changes.
 */
.pods-vs-liquid__media img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 520px;
    height: auto;
    margin-inline: auto;
}

.pods-vs-liquid__links {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .guide__answer { font-size: 1rem; }
    .guide__toc { margin-block: 1.5rem; }
}

/* --------------------------------------------------- phase 2: positioning */

/*
 * The pack-positioning badge, opposite the "Save X%" sale badge.
 *
 * .badge is absolutely positioned top-LEFT; this sits top-RIGHT so the two can
 * never collide, including on a ~343px card at 375px viewport where they are
 * closest. bin/verify-responsive.php measures both rects at every width and
 * fails on any overlap, because "they look fine" is not a guarantee.
 */
.badge--pack {
    left: auto;
    right: 0.75rem;
    background: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    /* Long labels wrap rather than widening the card. */
    max-width: calc(100% - 8rem);
}

/* ------------------------------------------------------- editorial pages */

/* About and Contact. Same reading measure as the guides, centred. */
.editorial { max-width: 74ch; margin-inline: auto; }
.editorial__section { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.editorial__section h2 { margin-bottom: 0.75rem; }
.editorial__section p { margin-bottom: 0.75rem; }

.editorial__email { font-size: clamp(1.05rem, 2.5vw, 1.35rem); font-family: var(--font-heading); }
/* A long address must break rather than widen the page on a narrow screen. */
.editorial__email a { word-break: break-word; }

.editorial__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }

/*
 * The operating company for the ACTIVE market. Rendered as an <address>, so it
 * is one block to assistive tech rather than four loose lines.
 */
.company-card {
    display: grid;
    gap: 0.2rem;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--color-border);
    font-style: normal;
    /* "C&M BROTHERS GROUP PTE. LTD" and a 12-digit registration number must not
       be able to push the card wider than its column. */
    overflow-wrap: anywhere;
}
.company-card__market {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
}
.company-card__name { font-size: 1.05rem; }
.company-card__reg, .company-card__line { color: var(--color-muted); }

/* ------------------------------------------------------------ shop page */

/* The direct answer to "which pack", above the grid. */
.shop-answer {
    max-width: 70ch;
    margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
    padding: clamp(1rem, 2.5vw, 1.5rem);
    background: color-mix(in srgb, var(--color-accent) 30%, #fff);
}
.shop-answer__question { margin: 0 0 0.5rem; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.shop-answer__body { margin: 0; }

.shop-note {
    max-width: 70ch;
    margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
    color: var(--color-muted);
    font-size: 0.95rem;
    text-align: center;
}

/* The direct answer inside the homepage comparison section. */
.comparison__answer { max-width: 70ch; margin-inline: auto; }

/* ----------------------------------------------------------- trust grid */

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
}
/* min-width:0 lets a track shrink; without it a long word can force the grid
   wider than the viewport and scroll the whole page sideways. */
.trust-grid > * { min-width: 0; }

/* An image inside a product supporting block. */
.block-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 460px;
    height: auto;
    margin: 1.5rem 0;
}

/* ------------------------------------------------- links inside body copy */

/*
 * The global rule is `a { color: inherit; text-decoration: none }`, which is
 * right for the header, the market toggle, product cards and buttons — they read
 * as links from their position and shape.
 *
 * Inside running prose it leaves a link indistinguishable from the sentence
 * around it: no colour change and no underline, discoverable only by hovering.
 * That fails anyone reading without a mouse, and this phase added a lot of
 * in-prose links (About, Contact, the guides, the product pages).
 *
 * Scoped to prose contexts, so nothing about the site's chrome changes.
 * Breadcrumbs are excluded — they are a recognised pattern, and underlining a
 * whole trail is noise.
 */
.prose a,
.editorial a,
.guide a,
.editorial__links a,
.guide__related a,
.pods-vs-liquid__links a,
.faq__answer a,
.shop-answer a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-thickness: from-font;
}

.breadcrumb a,
.prose a.btn,
.editorial a.btn,
.guide a.btn { text-decoration: none; }

.breadcrumb a:hover,
.prose a.btn:hover,
.editorial a.btn:hover,
.guide a.btn:hover { text-decoration: underline; }

/* ==========================================================================
   Order request form

   The storefront had no text inputs at all before this page, so these are the
   first field styles in the project. They follow the same tokens as everything
   else: square corners, Barlow Condensed labels, navy focus.
   ========================================================================== */

.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
    margin-top: 2rem;
}

.order-layout__summary {
    border: 1px solid var(--color-border);
    padding: clamp(1.25rem, 3vw, 2rem);
    background: color-mix(in srgb, var(--color-accent) 18%, #fff);
}

.order-items { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.order-items th,
.order-items td { border-bottom: 1px solid var(--color-border); padding: 0.6rem 0.4rem; text-align: left; }
.order-items thead th {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
}
.order-items__qty { text-align: center; white-space: nowrap; }
.order-items__total { text-align: right; white-space: nowrap; }
.order-items tfoot th { text-align: right; }

.order-meta { margin: 1.25rem 0 0; font-size: 0.9rem; }
.order-meta dt {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    margin-top: 0.6rem;
}
.order-meta dd { margin: 0; }

.order-note { color: var(--color-muted); font-size: 0.85rem; margin-top: 1rem; }

/* ------------------------------------------------------------------- fields */

.field { margin-bottom: 1.25rem; }
.field label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}
.field__req { color: var(--color-primary); }

.field input,
.field textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    /* 16px minimum. Anything smaller makes iOS Safari zoom the viewport on
       focus, which on a form this long leaves the customer scrolled sideways
       into a field they cannot see the end of. */
    font-size: 1rem;
    background: #fff;
    color: var(--color-foreground);
}
.field textarea { resize: vertical; min-height: 6rem; }

.field input:focus-visible,
.field textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
    border-color: var(--color-primary);
}

/* The error state is carried by BOTH colour and an adjacent message, never by
   colour alone. */
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #b45309; border-width: 2px; }

.field__error { color: #b45309; font-size: 0.88rem; margin: 0.35rem 0 0; }

/* Honeypot. Moved out of view rather than `display: none` — some bots skip
   fields that are explicitly undisplayed, and this one is meant to be filled
   in. aria-hidden plus tabindex="-1" on the input keeps it away from screen
   readers and the keyboard, so no real person ever meets it. */
.order-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 860px) {
    .order-layout { grid-template-columns: minmax(0, 1fr); }
    /* The form comes first on a narrow screen: the customer arrived intending
       to fill it in, and the summary is confirmation rather than the task. */
    .order-layout__form { order: -1; }
}

/* ---------------------------------------------------------------------------
   MY ACCOUNT, and the account offer on the order confirmation.

   WooCommerce's account templates are used as they ship — nothing under
   woocommerce/myaccount/ is overridden in this theme. That is deliberate: the
   ported cart.php is the standing reminder of what a forked WooCommerce
   template costs, having silently lost both the coupon form and the one
   attribute that made "Update quantities" work. Styling the stock markup keeps
   WooCommerce's behaviour, its nonces and its translations intact, and the
   account area follows along when WooCommerce changes.

   Everything below is scoped to WooCommerce's own class names so it cannot
   reach the hand-built order form, which has its own .field styling.
   --------------------------------------------------------------------------- */

.woocommerce-account .woocommerce { margin-top: 1.5rem; }

/* Labels and inputs, matching .field above so the account forms read as the
   same site as the order form. */
.woocommerce form .form-row {
    display: block;
    margin-bottom: 1.25rem;
}
.woocommerce form .form-row label,
.woocommerce-form-row label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row input[type="text"],
.woocommerce form .form-row input[type="email"],
.woocommerce form .form-row input[type="password"],
.woocommerce form .form-row input[type="tel"],
.woocommerce form .form-row select,
.woocommerce-Input {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    /* 16px minimum: anything smaller makes iOS Safari zoom on focus. */
    font-size: 1rem;
    background: #fff;
    color: var(--color-foreground);
}
.woocommerce form .form-row input:focus-visible,
.woocommerce form .form-row select:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
    border-color: var(--color-primary);
}

/* The password field ships with a show/hide toggle positioned inside it. */
.woocommerce form .password-input { display: block; position: relative; }
.woocommerce form .show-password-input {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* "Remember me" is a checkbox and must NOT stretch to the full width the rule
   above gives text inputs. */
.woocommerce form .form-row input[type="checkbox"] {
    width: auto;
    margin-right: 0.4rem;
}
.woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: center;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

/* WooCommerce's buttons carry .button, not .btn. Rather than fork a template
   to change the class, the house button style is applied to theirs. */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius);
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.woocommerce .button:hover { opacity: 0.88; text-decoration: none; }

.woocommerce-form-login,
.woocommerce-form-register,
.woocommerce-ResetPassword {
    max-width: 30rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.woocommerce-form-login .woocommerce-form-login__rememberme { display: block; margin-bottom: 1rem; }
.woocommerce-LostPassword { margin: 1rem 0 0; }

/* The account navigation. A column beside the content on a wide screen, a
   plain list above it on a narrow one. */
.woocommerce-account .woocommerce::after { content: ""; display: table; clear: both; }

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--color-border); }
.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 0.7rem 0;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-foreground);
    text-decoration: none;
}
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover { color: var(--color-primary); }

@media (min-width: 861px) {
    .woocommerce-MyAccount-navigation { float: left; width: 22%; }
    .woocommerce-MyAccount-content { float: right; width: 74%; }
}

/* The orders table. */
.woocommerce-orders-table,
.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
.woocommerce-orders-table th,
.woocommerce table.shop_table th {
    text-align: left;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    padding: 0.6rem 0.5rem;
    border-bottom: 2px solid var(--color-border);
}
.woocommerce-orders-table td,
.woocommerce table.shop_table td {
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

/* On a phone the orders table is wider than the screen. Scrolling the TABLE is
   better than scrolling the page sideways, which strands the header. */
@media (max-width: 600px) {
    .woocommerce-orders-table,
    .woocommerce table.shop_table { display: block; overflow-x: auto; }
}

/* WooCommerce notices. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--color-primary);
    background: var(--control-track);
    border-radius: var(--radius);
}
.woocommerce-error { border-left-color: #b45309; }

/* ---- the create-account offer on the order confirmation ------------------ */

/* Rendered by cg-core/inc/accounts.php, which puts WooCommerce's own
   order-confirmation-create-account block onto the classic thank-you page. */
/* A plain wrapper, NOT a card: the block brings its own panel, and boxing it
   again nests one grey box inside another. */
.cg-account-offer { margin: 2rem 0 0; }
.cg-account-offer h3 {
    margin-top: 0;
    color: var(--color-primary);
}
.cg-account-offer ul {
    margin: 0 0 1.25rem;
    padding-left: 1.1rem;
}
.cg-account-offer li { margin-bottom: 0.35rem; }

.wc-block-order-confirmation-create-account-form .wc-block-components-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius);
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
}
.wc-block-order-confirmation-create-account-success {
    margin: 2rem 0 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--color-primary);
    background: var(--control-track);
    border-radius: var(--radius);
}

/* The multi-pack offer on a product page.

   🚨 Deliberately NOT .price__save / .price__was. Those two mark a discount on the
   single-unit price, and this is not one — a single packet still costs exactly what it
   always did. tests/pricing.php asserts Singapore price HTML contains neither, because a
   saving badge beside an undiscounted unit price asserts something untrue. */
.product-info__bundle {
    margin: 0.4rem 0 0;
    padding: 0.5rem 0.8rem;
    display: inline-block;
    border: 1px dashed var(--color-primary);
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary);
    background: var(--control-track);
}

/* =====================================================================
   Client changes, 10 November 2026
   ===================================================================== */

/* ---------------------------------------------------------- hero: the CTA
   The client's note: "at desktop need move the SHOP ALL button to upside,
   dont affect the wording in image".

   The artwork is 1672x941 and its bottom band — roughly the last 22% — is a
   strip of six feature captions (45 Days Long-Lasting Fragrance, 99.9%
   Antibacterial Protection, Anti-Mite Technology, Colour Shield Formula,
   Softness Care, Deep Clean Power). The button sat on `align-self: end`, so
   it landed squarely on that strip.

   🚨 LIFTING IT WAS ONLY HALF THE FIX.

   The first attempt raised the button 28% and left it horizontally centred.
   That moved it off the caption strip and straight onto the product packshot,
   covering the printed "COCO BLOSSOM / 6 IN 1" wording on the pouch — still
   wording in the image, which is the thing the client asked not to cover.
   Found by screenshotting the page at 1440 rather than reasoning about the
   CSS, which is the only way this kind of fault shows up.

   The artwork has one genuinely clear area: the lower LEFT, beneath
   "CLEANER · FRESHER · LONGER" and above the caption strip. The headline block
   starts about 9% in from the left edge, so the button is aligned to it and
   lifted into that band.

   🚨 THE VERTICAL OFFSET IS A PERCENTAGE AGAIN — AND THAT IS NOT A REVERSION.

   It was svh from 10 November, for a good reason at the time: a percentage
   padding resolves against the containing block's WIDTH, never its height, so
   `padding-bottom: 28%` on a 1440px-wide hero lifted the button 403px instead
   of the ~230px intended and dropped it on the headline. With the hero pinned
   to `100svh - 70px`, svh was the unit that tracked it.

   Since 11 November the hero is no longer viewport-height: it is the image,
   fitted to the width, so its height is 941/1672 = 0.563 of its own width and
   has nothing to do with svh. A viewport-height offset would now drift across
   the artwork as the window changed shape — tall window, button near the
   middle; short window, button near the floor. A percentage of the width is
   the unit that tracks a box whose height IS a ratio of its width, so the
   button holds the same spot in the picture at every size.

   15% of the width is 27% of the hero's height, which is where the svh offset
   put it on a 1440x900 screen: the clear band in the lower LEFT of the artwork,
   beneath "CLEANER · FRESHER · LONGER" and above the caption strip. Verified by
   screenshot at 1920, 1440, 1280 and 1024, which is the only way this kind of
   fault shows up.

   Horizontal was always a percentage, and always correctly: the headline's left
   margin is ~9% of the artwork. */
.hero--full .hero__content {
    justify-self: start;
    padding-bottom: 15%;
    padding-inline-start: 9%;
}

/* -------------------------------------------------------- hero: on mobile
   The client's note: "i check mobile view no show image".

   The cause was a broken <source> (see Render\section_image_url) and is fixed
   in PHP. This is the second half: even with a working image, a 16:9 banner
   forced into a full-viewport-height box by `min-height: 100svh` and
   `object-fit: cover` is cropped to a narrow central slice, and every word in
   the artwork is lost.

   On a narrow screen the hero therefore stops being full-bleed: the image
   keeps its own aspect ratio and is shown WHOLE, and the button moves below
   it instead of on top of it. `display: block` is what moves it — both
   children are placed in the same grid cell, so dropping the grid stacks them
   in source order. Nothing is clipped and the button is still a full-width
   tap target. */
@media (max-width: 768px) {
    /* 🚨 Only `display: block` remains of this rule. The heights it used to
       reset are no longer set anywhere: since 11 November the base rules fit
       the image to the viewport width at EVERY width, so there is nothing left
       to undo here. What is still mobile-only is moving the button below the
       image instead of over it. */
    .hero--full,
    .has-header-overlay .hero--full { display: block; }

    /* The desktop offsets above position an OVERLAY. Below the image they would
       be a gap and a stray left indent, so the button goes back to centred with
       ordinary padding. */
    .hero--full .hero__content {
        justify-self: center;
        padding: clamp(1.25rem, 5vw, 2rem);
        padding-bottom: clamp(1.75rem, 6vw, 2.5rem);
        padding-inline-start: clamp(1.25rem, 5vw, 2rem);
    }
}

/* ------------------------------------------------- the unavailable market
   "only active SG at top bar, MY icon cannot click it, just display".

   Rendered as a <span>, so there is nothing to click and nothing to focus.
   It stays legible rather than being greyed into invisibility: the point is
   that a visitor can SEE there is a Malaysian store. `cursor: default`
   because `not-allowed` reads as an error the visitor has made. */
.market-toggle__option.is-unavailable {
    opacity: 0.55;
    cursor: default;
    user-select: none;
}

/* ------------------------------------------------------- cart: the bundle
   "i check the actual price in cart no update yet".

   The multi-pack price was being applied, as a cart fee, and shown in the
   summary — but the line still read 3 x S$14.99, and the line is where people
   look. This states the offer on the row it applies to. */
.cart-item__bundle {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--color-primary);
}
.cart-item__bundle strong { display: block; font-weight: 700; }
.cart-item__bundle-offer,
.cart-item__bundle-saving { display: block; }
.cart-item__bundle-saving { font-weight: 600; }

/* An offer the customer has not reached yet: present, but quieter. */
.cart-item__bundle--offer { color: var(--color-muted); font-weight: 500; }

/* -------------------------------------------- cart: free-delivery progress
   "Cart, below RM60: Add RM{remaining} more to unlock FREE SHIPPING!"
   "Cart, at/above RM60: You've unlocked FREE SHIPPING!"

   The figure comes from the live shipping zone, never from this stylesheet
   or the template — see Shipping\remaining_for_free_delivery(). */
.cart-summary__shipping-progress {
    margin: 0 0 0.9rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-primary);
    background: var(--control-track);
}
.cart-summary__shipping-progress--unlocked {
    color: var(--color-background);
    background: var(--color-primary);
}

/* ------------------------------------------------- East Malaysia checkout
   There is no rate to show, so the checkout refuses and says why. Styled as
   information rather than as an error: the customer has done nothing wrong,
   and we do deliver there. */
.cg-shipping-notice { margin-block: 0.75rem; }

/* ------------------------------------------------------- the top promo bar
   "FREE SHIPPING ON ORDERS OVER RM60! (WEST MALAYSIA)" — reworded by the
   owner on 12 Nov 2026, and now EDITABLE in Site settings -> Promo bar. Do
   not read the sentence here as settled: only the figure is fixed, and it
   comes from the live shipping zone, not from this file.

   It lives inside <header>, so it inherits the header's sticky/overlay
   positioning rather than fighting it. Solid rather than translucent: on the
   homepage it sits over the hero artwork, and a transparent bar there is
   unreadable against the pale top of the banner. */
.site-promo {
    margin: 0;
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    color: var(--color-background);
    background: var(--color-primary);
}
@media (max-width: 430px) {
    .site-promo { font-size: 0.75rem; letter-spacing: 0.04em; padding-inline: 0.75rem; }
}
