/*
 | China Kanta storefront — the compact layer.
 |
 | The brief: a shopper should see more of the goods and less of the frame. Body text 12–14px,
 | product titles 13–15px, section headings 15–17px, badges 10–11px, prices 19–24px, and the
 | whitespace squeezed wherever it is not carrying meaning — with hierarchy kept, so "compact"
 | does not become "uniformly tiny".
 |
 | Hand-written CSS, not Tailwind: the production host has no node, so public/build is a
 | committed bundle and any utility class invented here would simply not exist on the server.
 | A new filename, never a query string — the edge cache holds a CSS URL for seven days.
 |
 | WHY THIS FILE CAN BE SHORT. The bundle drives every spacing utility off one theme variable:
 |
 |     .px-4 { padding-inline: calc(var(--spacing) * 4) }
 |     .py-8 { padding-block: calc(var(--spacing) * 8) }
 |
 | so redeclaring --spacing on the storefront rescales all 109 spacing tokens the blades use —
 | gutters, card padding, section margins, gaps, button heights — from a single number, which is
 | what "centralized design tokens" asks for. The type scale works the same way through
 | --text-*, which the bundle reads as font-size: var(--text-sm). Nothing in either override
 | invents a class, so nothing can silently no-op on the host.
 |
 | WHAT THAT REACHES. layouts/app.blade.php is the shell for home, catalog, search, cart,
 | checkout, account, orders, sourcing requests, reviews, auth and the public supplier stores.
 | The Filament panel at /admin renders its own document and links nothing here, and the
 | supplier portal has its own layout, so neither can be touched by this layer.
 |
 | WHAT IT DELIBERATELY DOES NOT DO. It does not shrink the type past the floor the brief sets,
 | and it puts a hard minimum height back on anything a thumb taps (§9) — a 20% spacing squeeze
 | would otherwise take the primary buttons under a comfortable target.
 */

/* ------------------------------------------------------------------ tokens */

:root {
    /*
     * §3 — one number for the whole spacing scale. Was .25rem (4px) everywhere; .2rem (3.2px)
     * takes 20% off every gutter, card pad, section margin, gap and button height at once,
     * proportionally, so the rhythm between blocks survives the squeeze.
     */
    --spacing: .2rem;

    /*
     * §2 — the type scale. Each pair is font-size and its line-height; the bundle emits
     * font-size: var(--text-sm) and line-height: var(--text-sm--line-height), so redeclaring
     * both retimes every text-* class already written in every blade. The values land on the
     * brief's ranges: xs is the badge step, sm the body step, lg the product-title step, 2xl
     * the section-heading step, and 3xl/4xl the two price steps.
     */
    --text-xs: .6875rem;
    --text-xs--line-height: 1.3;
    --text-sm: .78125rem;
    --text-sm--line-height: 1.35;
    --text-base: .875rem;
    --text-base--line-height: 1.4;
    --text-lg: .9375rem;
    --text-lg--line-height: 1.3;
    --text-xl: 1rem;
    --text-xl--line-height: 1.3;
    --text-2xl: 1.0625rem;
    --text-2xl--line-height: 1.25;
    --text-3xl: 1.1875rem;
    --text-3xl--line-height: 1.2;
    --text-4xl: 1.5rem;
    --text-4xl--line-height: 1.15;

    /*
     * The colour and geometry tokens the card system reads. home-storefront-v3.css declared
     * these four on .ck-home alone, so on /products, on the product page's related row and in
     * picture search — every card that renders outside the home wrapper — var(--ck-tint),
     * var(--ck-radius) and var(--ck-mute) resolved to nothing: the media box had no backing,
     * the corners were square, and the grey meta line printed in full-strength ink. Declaring
     * them here puts the whole shelf on the same tokens and repairs that.
     */
    --ck-tint: #f6f6f7;
    --ck-mute: #6b7280;
    --ck-radius: 10px;
    --ck-gutter: 10px;
    --ck-brand: #e31e24;
    --ck-ink: #171719;
    --ck-line: #ececee;

    /* The two steps this file adds: how tight a card's text block sits, and the shelf gap. */
    --ckc-card-pad: 7px 8px 8px;
    --ckc-card-gap: 3px;
    --ckc-grid-gap: 8px 6px;
    --ckc-head-gap: 8px;
}

/*
 * .ck-home restates the same tokens locally, at its old values, and a local declaration beats
 * :root for anything inside it. Restating them here — same selector, later file — is what makes
 * the home page and the shelf agree instead of drifting two pixels apart on every corner radius.
 */
.ck-home {
    --ck-tint: #f6f6f7;
    --ck-mute: #6b7280;
    --ck-radius: 10px;
    --ck-gutter: 10px;
}

/* ------------------------------------------------------------------ geometry guards */

/*
 * resources/css/app.css ends with an unlayered `.w-4 { width: 1rem }`, added long before this
 * file, so that one width ignores --spacing while its matching height now follows it. Without
 * this, every `h-4 w-4` glyph on the storefront would render 12.8 x 16 — a squashed icon.
 * Putting the width back onto the same formula keeps the pair square at whatever --spacing is.
 */
.ck-storefront .w-4 {
    width: calc(var(--spacing) * 4);
}

/* ------------------------------------------------------------------ touch targets */

/*
 * §9. The squeeze is allowed to remove padding a shopper never notices; it is not allowed to
 * remove the room a thumb needs. This floor is only put where --spacing actually reaches, which
 * is on the Tailwind-sized buttons: a full-width primary action drops to about 39px once py-3
 * resolves against the compact step, so it is pinned back to 44px.
 *
 * The phone navigation is deliberately NOT floored here. Its tabs, chips and icon tiles are
 * sized in pixels by mobile-nav-v7.css, so the spacing squeeze never touched them — and an
 * earlier draft of this file put a 36px minimum on the category chips, which did not protect
 * anything and made the app bar 7px taller than the page it replaced.
 */
.ck-storefront button.w-full,
.ck-storefront a.w-full[class*="bg-brand"] {
    min-height: 44px;
}

/*
 * The same reasoning one step down: a brand-red control IS the page's primary action, whether or
 * not the blade gave it w-full — the footer's Subscribe and the review block's Sign in are both
 * red CTAs whose only vertical size came from a py-* that the squeeze just took 20% off. They
 * landed at 33px. A red button is never asked to be shorter than 40px.
 *
 * The red is written two ways in this storefront — the brand token in some blades, the literal
 * hex in others, because the built bundle only carries the arbitrary utility a blade has already
 * asked for — so both spellings have to be named here.
 */
.ck-storefront button[class*="bg-brand-600"],
.ck-storefront a[class*="bg-brand-600"],
.ck-storefront button[class*="bg-[#e31e24]"],
.ck-storefront a[class*="bg-[#e31e24]"] {
    min-height: 40px;
}

/*
 * Four controls are sized by `h-10`/`h-11` rather than by padding, so the squeeze moved them from
 * 40–44px into the 32–35px band: the two arrows that live over the gallery and the two doors that
 * step the quantity. They are aim-only controls — the shopper taps them repeatedly, and nothing
 * about a 40px circle is less compact than a 35px one to the eye — so each is pinned back to 40px.
 *
 * They are named by their aria-label rather than by a class added for the stylesheet. The labels
 * are already in the markup for VoiceOver, the selectors stay honest about which control is meant,
 * and no blade has to change to hold a rule that belongs to this file.
 */
.ck-storefront button[aria-label="Previous image"],
.ck-storefront button[aria-label="Next image"],
.ck-storefront button[aria-label="Reduce quantity"],
.ck-storefront button[aria-label="Increase quantity"] {
    width: 40px;
    height: 40px;
}

/*
 * The option doors are the entire act of choosing a size or a colour, and both shapes are sized by
 * a utility — py-1.5 for the text chip, h-8 w-8 for the round swatch — so the squeeze took them to
 * 27px and 25.6px. A swatch smaller than a fingertip is not a compact control, it is a miss, so
 * both are floored at 34px. aria-pressed is already on every one of them, because a screen reader
 * needed to know before this file existed.
 */
.ck-storefront button[aria-pressed] {
    min-height: 34px;
}

.ck-storefront button[aria-pressed].rounded-full {
    width: 34px;
    height: 34px;
}

/*
 * The footer's link lists carry `space-y-2`, a utility the built bundle never generated, so the
 * rows have had no gap between them at all and each link is one bare line of text — 19px to tap
 * before this file, 15px once the type scale came down. That is a step backwards on a surface the
 * brief does not ask to compress, so the rhythm the dead class was meant to give becomes real
 * padding, and the padding is what puts the tap target back over 24px.
 */
.ck-storefront footer li > a {
    display: block;
    padding-block: 6px;
}

/* ------------------------------------------------------------------ product card (§5) */

/*
 * The card is the single most-sepeated thing on the site, so its frame is where "fit more
 * products on one screen" is actually won or lost. The picture keeps its square — a shelf of
 * mixed ratios reads as a mess, and the brief asks for consistent image dimensions — but the
 * 8% of padding the image used to sit inside belonged to the product, not to the card.
 */
.ck-storefront .ck-card {
    border-radius: var(--ck-radius);
}

.ck-storefront .ck-card-img {
    padding: 4%;
}

.ck-storefront .ck-card-body {
    gap: var(--ckc-card-gap);
    padding: var(--ckc-card-pad);
}

.ck-storefront .ck-card-name {
    font-size: 12px;
    line-height: 1.3;
}

/*
 * The price is the one number on the card that has to stay the loudest thing on it (§2: prices
 * keep prominence; §5: prominent prices, smaller names). 14px at weight 800 against a 12px name
 * is a wider ratio than the old 14.5-over-12.5, at less than half the ink.
 */
.ck-storefront .ck-card-now {
    font-size: 14px;
    letter-spacing: -0.01em;
}

.ck-storefront .ck-card-was,
.ck-storefront .ck-card-meta,
.ck-storefront .ck-card-ship,
.ck-storefront .ck-card-state {
    font-size: 10.5px;
}

/* The deal flag sat 7px from two edges and carried 10.5px of text in a 21px pill. */
.ck-storefront .ck-card-badge {
    top: 5px;
    left: 5px;
    padding: 2px 6px;
    font-size: 10px;
}

.ck-storefront .ck-card-badge.is-ready {
    top: auto;
    bottom: 5px;
    left: 5px;
}

/* ------------------------------------------------------------------ shelves and rails */

/*
 * One grid for the home rails and the shop page both. The listing blade used to carry
 * `grid-cols-2 gap-4 sm:gap-5 lg:grid-cols-4`; sm:gap-5 is not in the built bundle and was
 * doing nothing, and the four-column desktop step did not match the home page's five. Pointing
 * it at .ck-grid puts both on the same column ramp and the same gap token.
 */
.ck-storefront .ck-grid {
    gap: var(--ckc-grid-gap);
}

.ck-storefront .ck-rail-track {
    gap: 8px;
}

.ck-storefront .ck-rail-item {
    width: 138px;
}

@media (min-width: 640px) {
    .ck-storefront .ck-rail-item {
        width: 164px;
    }
}

@media (min-width: 1024px) {
    .ck-storefront .ck-rail-item {
        width: 196px;
    }
}

/* ------------------------------------------------------------------ section heads */

/*
 * A section heading used to cost 12px of margin plus a 19px line plus a kicker. The kicker and
 * the title now sit 3px apart and the whole head gives 8px to the shelf below it, which is what
 * lets three sections stay on one screen.
 */
.ck-storefront .ck-section {
    padding-block: 12px 2px;
}

.ck-storefront .ck-head {
    gap: var(--ckc-head-gap);
    margin-bottom: var(--ckc-head-gap);
}

.ck-storefront .ck-head-kicker {
    margin-bottom: 2px;
    font-size: 10px;
}

.ck-storefront .ck-head-title {
    font-size: 16px;
}

.ck-storefront .ck-head-more {
    font-size: 12px;
}

@media (min-width: 768px) {
    .ck-storefront .ck-section {
        padding-block: 16px 2px;
    }

    .ck-storefront .ck-head-title {
        font-size: 18px;
    }
}

/* ------------------------------------------------------------------ filter chips */

.ck-storefront .ck-promos-row {
    gap: 6px;
    padding-block: 7px;
}

.ck-storefront .ck-promo {
    padding: 6px 12px;
    font-size: 12px;
}

/* ------------------------------------------------------------------ category tiles */

/*
 * Eight tiles were four rows of two-line labels. The media square is what carries the
 * recognition, so the label goes to one line and the tile loses 6px of frame.
 */
.ck-storefront .ck-cats {
    gap: 6px;
}

.ck-storefront .ck-cat {
    gap: 4px;
    padding: 7px 4px 8px;
}

.ck-storefront .ck-cat-name {
    font-size: 11px;
    -webkit-line-clamp: 1;
}

.ck-storefront .ck-cat-count {
    font-size: 10px;
}

@media (min-width: 768px) {
    .ck-storefront .ck-cat-name {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
}

/* ------------------------------------------------------------------ trust rows */

.ck-storefront .ck-trust {
    gap: 8px;
    padding: 10px;
}

.ck-storefront .ck-trust-row {
    gap: 8px;
}

.ck-storefront .ck-trust-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.ck-storefront .ck-trust-title {
    font-size: 12px;
}

.ck-storefront .ck-trust-body {
    font-size: 11px;
}

/* ------------------------------------------------------------------ supplier cards */

.ck-storefront .ck-suppliers {
    gap: 8px;
    margin-bottom: 10px;
}

.ck-storefront .ck-supplier {
    gap: 9px;
    padding: 9px 10px;
}

.ck-storefront .ck-supplier-name {
    font-size: 12.5px;
}

.ck-storefront .ck-supplier-meta {
    font-size: 10.5px;
}

/* ------------------------------------------------------------------ feature doors */

.ck-storefront .ck-door {
    gap: 10px;
    padding: 9px 10px;
}

.ck-storefront .ck-door-title {
    font-size: 13px;
}

.ck-storefront .ck-door-body {
    font-size: 11.5px;
}

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

/*
 * The hero is the one block that is allowed to be decorative, but at 196px it was eating half
 * of a phone's first screen before a single product appeared. 156px still shows a whole banner
 * image and puts the first shelf of cards within the fold.
 */
.ck-storefront .ck-hero {
    --ck-hero-h: 156px;
}

.ck-storefront .ck-hero-copy {
    gap: 7px;
    padding: 12px 14px;
}

.ck-storefront .ck-hero-title {
    font-size: 18px;
}

.ck-storefront .ck-hero-sub {
    font-size: 12px;
}

.ck-storefront .ck-hero-cta {
    margin-top: 2px;
    padding: 8px 16px;
    font-size: 13px;
}

@media (min-width: 768px) {
    .ck-storefront .ck-hero {
        --ck-hero-h: 210px;
    }

    .ck-storefront .ck-hero-title {
        font-size: 26px;
    }
}

@media (min-width: 1024px) {
    .ck-storefront .ck-hero {
        --ck-hero-h: 280px;
    }

    .ck-storefront .ck-hero-title {
        font-size: 30px;
    }
}

/* ------------------------------------------------------------------ quick-add sheet */

.ck-storefront .ck-sheet-head {
    gap: 10px;
    padding: 11px 12px 8px;
}

.ck-storefront .ck-sheet-title {
    font-size: 14px;
}

.ck-storefront .ck-sheet-body {
    padding: 11px 12px calc(12px + env(safe-area-inset-bottom, 0px));
}

/* ------------------------------------------------------------------ product detail (§4) */

/*
 * The two floating doors the phone product page draws are markup, so they need a default: without
 * this the desktop, which keeps its header, would also show a second back arrow and a second
 * search link sitting in the page under it. The phone switches them on inside §4 below.
 */
.ck-pdp-chrome {
    display: none;
}

/*
 * The selling price is the one number §2 asks for at 19–24px. --text-2xl is 17px across the whole
 * storefront on purpose, so this number cannot come from the shared scale. It is stated here,
 * against the class the blade now carries, and nowhere else.
 */
.ck-storefront .ck-buy-price {
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/*
 * The price used to sit in a grey bordered box of its own, which spent a border and 8px of padding
 * on the most important line on the page and pushed everything below it down. The reference puts
 * the price on the page itself, with the old price and the save badge reading as one line beside
 * it, so the box goes; the separation the border was doing is already done by the row underneath.
 */
.ck-storefront .ck-price-card {
    margin-bottom: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

/*
 * §4's sticky bottom controls, and the immersive picture the phone is asked for.
 *
 * These are the same two Livewire buttons, in the same component, with the same wire:click
 * handlers and the same disabled checks — only where they sit changes. Below the desktop width
 * they float in one row on the bottom edge of the screen, so Add to Cart and Order Now are
 * reachable from the description, the reviews and the related rail without a scroll back up.
 *
 * The same query takes the two bars off this page: the header, so the picture starts at the top
 * edge of the screen instead of 189px down, and the dock, so the band stands ON the bottom edge
 * instead of above a five-icon bar. Nothing the two bars carried is thrown away. The arrow and a
 * search door now float over the picture itself (ck-pdp-chrome, in the product blade) which is
 * where the reference puts them, the cart keeps its own floating button, and Support comes back on
 * this page because the corner it used to collide with is now empty.
 *
 * From 1024px all of it is switched off: the header and the dock return, the picture keeps its
 * card, and the pair goes back inside the ordering column, which is already pinned there
 * (sticky top-24 in the blade).
 */
@media (max-width: 1023.98px) {
    .ck-storefront .ck-buy-row {
        position: fixed;
        inset: auto 0 auto 0;
        bottom: 0;
        z-index: 9985;
        flex-direction: row;
        gap: 8px;
        margin: 0;
        /* The band is the last thing on the screen, so it carries the phone's own home inset. */
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--ck-line);
        background: #fff;
        box-shadow: 0 -4px 14px rgba(17, 17, 20, 0.06);
    }

    .ck-storefront .ck-buy-row > button {
        flex: 1 1 0;
        min-width: 0;
        padding-inline: 8px;
    }

    /* The red door is the primary action, so it takes the wider half of the row. */
    .ck-storefront .ck-buy-row > button + button {
        flex: 1.3 1 0;
    }

    /* ---- the two bars come off this page ---- */

    /*
     * The red trust strip is switched back on at the tablet width on the understanding that the
     * desktop header is showing there too. On this page below the desktop width neither is, so it
     * would be the one thing standing between the status bar and the picture.
     */
    body.ck-pdp-page .ck-pdp-promo,
    body.ck-pdp-page .ck-appbar,
    body.ck-pdp-page .ck-tabbar {
        display: none;
    }

    /*
     * One number re-anchors everything that used to clear the dock: the page's own bottom padding
     * (mobile-nav-v7.css), the floating cart, the Support pill and the inline style the product
     * video carries all read --ck-bottom-inset. Redefining it on this body — rather than on
     * :root, which is where the sheet sets it — means only the product page moves, and its last
     * rows still clear the band instead of sliding under it.
     *
     * 62px is the band's own measured box: 8 + a 45px button + 8 + its top border. At 57px the
     * footer's last line sat 5px under it, which is the whole reason the clearance is stated from
     * the band rather than borrowed from the dock it replaced.
     */
    body.ck-pdp-page {
        --ck-bottom-inset: calc(62px + env(safe-area-inset-bottom, 0px));
    }

    /* ---- the picture to the top edge ---- */

    .ck-storefront .ck-pdp-shell {
        padding-top: 0;
    }

    .ck-storefront .ck-pdp-crumb {
        display: none;
    }

    /*
     * The gallery is centred inside the page gutter and capped at 560px. On a phone it is asked to
     * reach both edges, so the cap goes and the gutter is paid back with an equal negative margin —
     * the same var the gutter is built from, so the two cannot disagree if --spacing moves again.
     * `width: auto` is not decoration: the element carries Tailwind's w-full, and a box pinned to
     * 100% of its container only shifts left under a negative margin instead of growing.
     */
    .ck-storefront .ck-pdp-stage {
        width: auto;
        max-width: none;
        margin-inline: calc(var(--spacing) * -3);
    }

    .ck-storefront .ck-pdp-track {
        border: 0;
        border-radius: 0;
    }

    /* The slide padded its own picture by 20px; a full-bleed square needs none of it. */
    .ck-storefront .ck-pdp-slide {
        padding: 0;
    }

    /* The thumbnails are not the picture and are not full-bleed: they already sit inside the page
       gutter, so the only thing they need is the 560px cap lifted to match the square above them. */
    .ck-storefront .ck-pdp-thumbs {
        max-width: none;
    }

    /*
     * The page gutter is not one number: the shell carries px-3 to 640px and sm:px-5 above it, so a
     * tablet's bleed has to be paid back at 5 units or the picture stops 6px short of the edge.
     */
    @media (min-width: 640px) {
        .ck-storefront .ck-pdp-stage {
            margin-inline: calc(var(--spacing) * -5);
        }
    }

    /* ---- the doors that float over the picture ---- */

    .ck-pdp-chrome {
        position: fixed;
        inset: 0 0 auto 0;
        z-index: 9988;
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* --ck-top-inset is the status band the app's web view draws under the clock. */
        padding: calc(var(--ck-top-inset, 0px) + 8px) 10px 8px;

        /*
         * The row is only a holder. A shopper tapping the picture beside a door must still get the
         * full-size viewer, so taps fall through everything except the two ends.
         */
        pointer-events: none;
    }

    .ck-pdp-chrome-side {
        display: flex;
        gap: 8px;
        pointer-events: auto;
    }

    .ck-storefront .ck-pdp-chrome .ck-back,
    .ck-storefront .ck-pdp-door {
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        color: #17171a;
        box-shadow: 0 2px 8px rgba(17, 17, 20, 0.18);
    }

    .ck-storefront .ck-pdp-door {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ------------------------------------------------------------------ dark mode */

/*
 * The card tokens above are read in both themes, and app.css's dark block only restates the
 * Tailwind surface classes — it never touched --ck-tint, which is what the card media box and
 * the tile backing paint from. Without these two lines a dark shelf gets white squares behind
 * every product photo.
 */
html[data-theme="dark"] .ck-storefront {
    --ck-tint: #1c1c1f;
    --ck-line: #27272a;
    --ck-mute: #a1a1aa;
    --ck-ink: #f3f4f6;
}

/* The fixed buy band is drawn by this file, so this file answers for it in the dark theme too. */
html[data-theme="dark"] .ck-storefront .ck-buy-row {
    background: #17171a;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.5);
}

/* ------------------------------------------------------------------ header (§6) */

/*
 * The phone app bar measured 205px — a quarter of a 390x844 screen spent before a single
 * product. These four rows are the whole of it: brand, tabs, search, category chips. Each keeps
 * its row and every link it carries; what comes off is the padding around them.
 *
 * The brand row's 12px of top padding stays exactly as it is. mobile-nav-v7.css shortens the
 * status-band clearance above the header by the same 12px on the assumption that the first row
 * inside it puts that 12px back; take it away and the wordmark moves up under the clock.
 */
.ck-storefront .ck-mnav-brand {
    gap: 8px;
    padding: 12px 10px 3px;
}

.ck-storefront .ck-mnav-logo {
    gap: 6px;
    font-size: 13px;
}

.ck-storefront .ck-mnav-logo img {
    width: 22px;
    height: 22px;
}

.ck-storefront .ck-mnav-tabs {
    gap: 18px;
    padding-inline: 10px;
}

.ck-storefront .ck-mnav-tab {
    padding: 9px 0 8px;
    min-height: 34px;
    font-size: 13px;
}

.ck-storefront .ck-mnav-search {
    padding: 2px 10px 8px;
}

/*
 * The camera keeps the 30px tile mobile-nav-v7.css gives it. The row around it got 8px shorter,
 * which is where the compactness was asked for; an aim-only door that is already 30px wide and
 * invisible gains nothing visible by shrinking, and loses room a thumb needs.
 */
.ck-storefront .ck-mnav-camera {
    top: 50%;
    left: 16px;
    width: 30px;
    height: 30px;
    margin-top: -15px;
}

.ck-storefront .ck-mnav-cats {
    gap: 6px;
    padding: 6px 10px 7px 12px;
}

.ck-storefront .ck-mnav-chip {
    padding: 4px 11px;
    min-height: 30px;
    font-size: 12px;
}

/*
 * The category row's own height comes from this button, so the chips are floored to the 30px the
 * live page already had and the row pays nothing for it: the strip stays 41px against the 50px
 * this file replaced, and no chip ended up harder to hit than it was before.
 */
.ck-storefront .ck-mnav-expand {
    width: 40px;
    min-height: 40px;
}

/*
 * Desktop header row. The blade asks for py-3.5, which the built bundle never generated, so this
 * row has had no vertical padding of its own at all and was being sized by whatever its contents
 * happened to be.
 */
@media (min-width: 1024px) {
    .ck-storefront .ck-appbar > div.lg\:flex {
        gap: 14px;
        padding-block: 7px;
    }

    .ck-storefront .ck-appbar nav {
        gap: 14px;
    }
}

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

/*
 * The one place the §2 type scale is deliberately not applied. iOS Safari zooms the whole page
 * when a text control takes focus at a resolved size under 16px, and a stylesheet cannot prevent
 * it — so every control a shopper types into keeps 16px and takes its compactness from height
 * instead. This is the same reason the sign-in sheet was fixed at 16px in November; the search
 * field and the checkout forms were still under it, and the compact scale would have pushed them
 * further under.
 *
 * The app's own web view pins the viewport against scaling, so it never zooms either way; this
 * rule is for the shopper in a plain browser tab.
 */
.ck-storefront input[type="email"],
.ck-storefront input[type="number"],
.ck-storefront input[type="password"],
.ck-storefront input[type="search"],
.ck-storefront input[type="tel"],
.ck-storefront input[type="text"],
.ck-storefront textarea,
.ck-storefront select {
    font-size: 16px;
}

/*
 * 40px, not the 36px the squeeze alone would have produced. The submit door is pinned
 * `inset-y-0` inside the field, so whatever the field's height is, that is the height of the
 * button a shopper taps to run a search — and the row is still 14px shorter than the page
 * this file replaced.
 */
.ck-storefront .ck-mnav-search input[type="search"] {
    height: 40px;
    padding-left: 2.4rem;
}

/* ------------------------------------------------------------------ reduced motion */

/*
 * Nothing here adds a transition, so there is nothing to switch off; the motion the storefront
 * already carries is owned by home-storefront-v3.css and ck-icons-v1.css, and their
 * prefers-reduced-motion blocks still govern it.
 */
