/* Butter & Bliss storefront. Design tokens follow the existing brand: orange #F85D02, cream #FAF0E0, butter gold from the logo. */
/* The @font-face rules are in App.razor, where the font URLs can be fingerprinted (cached for a year). */

:root {
    --brand: #F85D02;
    --brand-600: #E04F00;
    --brand-700: #B94000;
    --brand-50: #FFF1E6;
    --butter: #F4BE4F;
    --butter-100: #FCEBC4;
    --cream: #FAF0E0;
    --cream-50: #FFF9F1;
    --ink: #2B1D14;
    --ink-2: #5B4A3C;
    --muted: #75624F; /* 5.1:1 on cream (was #8A7868, 4.0:1) */
    --brand-btn: #C44A00; /* button fill: 4.9:1 with white text; #F85D02 stays for accents */
    --brand-btn-hover: #A33D00;
    --star: #B07A00;
    --line: #EBDCC8; /* decorative dividers only */
    --field-line: #8A7868; /* form field and control outlines: 4.23:1 on white (WCAG 1.4.11) */
    --white: #FFFFFF;
    --success: #287346; /* 5.15:1 on --success-50 */
    --success-50: #E8F5EC;
    --danger: #B42318;
    --danger-50: #FDECEA;
    --warn-50: #FFF6E0;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(43, 29, 20, .06), 0 2px 8px rgba(43, 29, 20, .05);
    --shadow: 0 6px 24px rgba(43, 29, 20, .09);
    --shadow-lg: 0 18px 50px rgba(43, 29, 20, .14);
    --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-head: "Poppins", "Nunito", system-ui, sans-serif;
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h, 76px) + 64px); }
html:has(.cart-bar[data-has-items="true"]) { scroll-padding-bottom: 96px; }
body {
    margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink);
    background: var(--cream-50); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    min-height: 100dvh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-700); outline-offset: 2px; border-radius: 6px; }
/* Headings get focus from code (FocusOnNavigate) for screen readers, and <main> from the skip link; they aren't
   controls, so no ring (one round the whole page would only get in the way). */
h1:focus, h1:focus-visible, main:focus, [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.site-footer :focus-visible, .ann :focus-visible, .values :focus-visible, .cart-bar :focus-visible, .announce :focus-visible, .flash :focus-visible { outline-color: var(--butter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bg-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--tight { padding: 40px 0; }
.section--cream { background: var(--cream); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { color: var(--ink-2); margin: 0; max-width: 60ch; }
.eyebrow { font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 8px; display: inline-block; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 24px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* Buttons */
.btn {
    --bg: var(--brand-btn); --fg: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: 700 1rem/1 var(--font-body); padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
    background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s;
    box-shadow: 0 6px 16px rgba(196, 74, 0, .22); white-space: nowrap;
}
.btn:hover { background: var(--brand-btn-hover); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; box-shadow: none; }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--ink-2); }
.btn--light { --bg: var(--white); --fg: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--cream); color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--lg { padding: 18px 30px; font-size: 1.1rem; }
@media (max-width: 400px) { .btn--block, .btn--lg { white-space: normal; text-align: center; line-height: 1.25; padding-inline: 16px; } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-700); text-decoration: underline; cursor: pointer; }

/* Announcement + header */
.announce { background: var(--ink); color: var(--cream); text-align: center; font-size: .9rem; padding: 8px 16px; }
.announce a { color: var(--butter); }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 249, 241, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 58px; width: auto; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a.active { background: var(--brand-50); color: var(--brand-700); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--ink); text-decoration: none; background: transparent; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--brand-50); color: var(--brand-700); }
.icon-btn svg { width: 24px; height: 24px; }
/* "Hello, Pat" over "Account" for a signed-in person (owner request 2026-11-17), Amazon style. */
.header-account { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 8px; border-radius: 999px; color: var(--ink); text-decoration: none; }
.header-account:hover { background: var(--brand-50); color: var(--brand-700); }
.header-account svg { width: 24px; height: 24px; flex: none; }
.header-account-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.header-account-text small { font-size: .78rem; color: var(--ink-2); max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-account-text strong { font-size: .92rem; font-weight: 800; }
.header-account:hover .header-account-text small { color: inherit; }
/* No room beside the full desktop menu just above where it folds away, nor on phones: the icon alone. */
@media (min-width: 1081px) and (max-width: 1239px), (max-width: 560px) {
    .header-account { width: 44px; padding: 0; justify-content: center; }
    .header-account-text { display: none; }
}
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--brand-btn); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, var(--butter-100), transparent 60%), linear-gradient(180deg, var(--cream) 0%, var(--cream-50) 100%); }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: clamp(40px, 7vw, 96px) 0; }
.hero h1 span { color: var(--brand); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-art { position: relative; aspect-ratio: 1 / 1; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; overflow: hidden; background: var(--butter-100); box-shadow: var(--shadow-lg); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; left: -8px; bottom: 8%; background: var(--white); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; font-weight: 700; }
.hero-badge strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--brand); }
.trust { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 20px; height: 20px; color: var(--brand); }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } .hero-art { max-width: 420px; margin: 0 auto; } }

/* Category pills */
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; font-size: .95rem; }
.pill:hover { border-color: var(--brand); color: var(--brand-700); }
.pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(235, 220, 200, .6); }
.product-card { position: relative; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .media { position: relative; aspect-ratio: 4 / 3; background: var(--cream); overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .media img { transform: scale(1.04); }
.product-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card h3 { margin: 0; font-size: 1.12rem; }
.product-card h3 a { color: var(--ink); text-decoration: none; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; }
.product-card .tagline { color: var(--ink-2); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.price .from { font-family: var(--font-body); font-weight: 700; color: var(--muted); font-size: .85rem; margin-right: 4px; }
.price s { color: var(--muted); font-weight: 600; margin-left: 6px; font-size: .9em; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--white); color: var(--brand-700); font-weight: 800; font-size: .78rem; padding: 6px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); letter-spacing: .02em; }
.badge--drop { background: var(--ink); color: var(--butter); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--cream); color: var(--ink-2); font-size: .8rem; font-weight: 700; }
.placeholder-img { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--butter-100), var(--cream)); }
.placeholder-img img { width: 40%; height: auto; opacity: .55; object-fit: contain; }

/* Feature band */
.band { background: var(--ink); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; overflow: hidden; position: relative; }
.band h2 { color: #fff; }
.band .big { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.2rem); color: var(--butter); line-height: 1.05; }
.band p { color: #E8D9C6; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-family: var(--font-head); font-weight: 700; margin-bottom: 12px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Testimonials + stockists */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.quote { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); margin: 0; }
.quote .stars { color: var(--star); letter-spacing: 2px; margin-bottom: 8px; }
.quote blockquote { margin: 0 0 12px; font-size: 1.02rem; }
.quote figcaption { font-weight: 800; color: var(--ink-2); }
.stockists { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.stockist { background: var(--white); border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); }
.stockist h3 { font-size: 1.02rem; margin-bottom: 4px; }
.stockist p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Newsletter */
.newsletter { background: linear-gradient(120deg, var(--brand) 0%, #FF7A1F 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.newsletter h2 { color: #fff; }
.newsletter form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input[type=email] { flex: 1 1 220px; border: 0; }
.newsletter .btn { --bg: var(--ink); box-shadow: none; }
.newsletter .btn:hover { background: #000; }
.newsletter small { color: #FFE6D3; display: block; margin-top: 8px; }
@media (max-width: 800px) { .newsletter { grid-template-columns: 1fr; } }

/* Forms */
label, .label-text { font-weight: 700; font-size: .95rem; display: block; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
/* A value the customer can't change (the delivery city), in the place of an input. */
.fixed-value { margin: 0; min-height: 48px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=date], input[type=time], input[type=url], select, textarea {
    width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--field-line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-700); box-shadow: 0 0 0 4px rgba(185, 64, 0, .35); }
input.invalid, select.invalid, textarea.invalid, [aria-invalid="true"] { border-color: var(--danger); background: var(--danger-50); }
input:disabled, select:disabled, textarea:disabled { background: var(--cream); color: var(--muted); cursor: not-allowed; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check input { margin-top: 5px; accent-color: var(--brand); width: 18px; height: 18px; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.error, .validation-message { color: var(--danger); font-size: .88rem; font-weight: 700; margin-top: 6px; }
.alert { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; font-weight: 600; }
.alert--error { background: var(--danger-50); color: var(--danger); }
.alert--success { background: var(--success-50); color: var(--success); }
.alert--info { background: var(--warn-50); color: var(--ink-2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Choice tiles (variants, fulfilment, payment) */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choices--wide { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
/* Every box keeps room on the right for the tick, so picking one never rewraps its text or changes the row's height.
   Only the box itself (the label's direct child): spans inside it, such as screen-reader text, stay as they are. */
.choice > span { display: block; height: 100%; padding: 12px 34px 12px 14px; border: 1.5px solid var(--field-line); border-radius: 14px; background: var(--white); font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice span small { display: block; color: var(--muted); font-weight: 600; font-size: .85rem; }
.choice > span { position: relative; }
/* Selected tile: dark double border plus a tick, so the choice reads without colour (WCAG 1.4.1, 1.4.11). */
.choice input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--brand-50); }
.choice input:checked + span::after { content: ""; position: absolute; right: 12px; top: 14px; width: 14px; height: 8px; border-left: 3px solid var(--brand-700); border-bottom: 3px solid var(--brand-700); transform: rotate(-45deg); }
.choice input:focus-visible + span { outline: 3px solid var(--brand-700); outline-offset: 2px; }
.choice input:disabled + span { opacity: .45; cursor: not-allowed; }
/* Compact chips for product sizes and options (business feedback 2026-11-18): they size to their text and wrap, the
   price sits on the same line, and the chosen one is filled instead of carrying a tick, so a long list stays short. */
.choices--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choices--chips .choice > span { display: flex; align-items: baseline; gap: 6px; min-height: 40px; padding: 9px 14px; border-radius: 999px; font-size: .92rem; line-height: 1.25; }
.choices--chips .choice span small { display: inline; font-size: .8rem; }
.choices--chips .choice input:checked + span { padding-right: 14px; background: var(--ink); color: var(--white); border-color: var(--ink); box-shadow: none; }
.choices--chips .choice input:checked + span small { color: inherit; opacity: .8; }
.choices--chips .choice input:checked + span::after { content: none; }

/* Product page */
.breadcrumbs { font-size: .9rem; color: var(--muted); margin: 20px 0; }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.gallery { position: sticky; top: 100px; display: grid; gap: 12px; }
.gallery .main { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--cream); aspect-ratio: 1 / 1; }
.gallery .main > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .main--zoom { cursor: zoom-in; }
.gallery .main--zoom:focus-visible { outline: 3px solid var(--brand-700); outline-offset: 3px; }
/* The full-size photo dialog: the photo as large as the screen allows, on a dark backdrop. */
.photo-dialog { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; overflow: visible; }
.photo-dialog::backdrop { background: rgba(20, 12, 6, .84); }
.photo-dialog img { display: block; max-width: min(96vw, 1100px); max-height: 92vh; width: auto; height: auto; border-radius: 16px; object-fit: contain; background: var(--cream); }
.photo-dialog-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 999px; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; z-index: 1; }
.photo-dialog-close svg { width: 20px; height: 20px; }
html:has(.photo-dialog[open]) { overflow: hidden; }
.gallery .thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery .thumbs button { width: 76px; aspect-ratio: 1; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--cream); cursor: pointer; }
.gallery .thumbs button:hover { border-color: var(--brand); }
.gallery .thumbs button[aria-pressed="true"] { border-color: var(--brand-700); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-info h1 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
.product-price { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; margin: 4px 0 16px; }
.option-group { border: 0; padding: 0; margin: 0 0 20px; }
.option-group legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--field-line); border-radius: 999px; background: var(--white); }
.qty button { width: 44px; height: 48px; border: 0; background: transparent; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--cream); }
.qty button:first-child { border-radius: 999px 0 0 999px; }
.qty button:last-child { border-radius: 0 999px 999px 0; }
/* Visible focus inside the pill (WCAG 2.4.7): no clipping, a solid inset ring instead of the faint glow. */
.qty button:focus-visible, .qty input:focus-visible { outline: 3px solid var(--brand-700); outline-offset: -3px; box-shadow: none; }
.qty input { width: 56px; text-align: center; border: 0; border-radius: 0; padding: 0; height: 48px; font-weight: 800; -moz-appearance: textfield; }
.qty input:focus { box-shadow: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0 20px; }
.buy-row .btn { flex: 1 1 220px; }
.info-list { display: grid; gap: 10px; margin: 20px 0; padding: 0; list-style: none; }
.info-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.info-list svg { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: 1px; }
details.acc { border-top: 1px solid var(--line); padding: 14px 0; }
details.acc summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; }
details.acc summary::after { content: "+"; font-size: 1.3rem; color: var(--brand); }
details.acc[open] summary::after { content: "–"; }
.prose { color: var(--ink-2); }
.prose h2, .prose h3, .prose h4 { font-size: 1.1rem; margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .gallery { position: static; } }

/* Cart + checkout */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 700px) { .two-col--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.panel { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid rgba(235, 220, 200, .6); }
.panel + .panel { margin-top: 20px; }
/* Side by side (or stacked by the grid on phones), panels are spaced by the grid's gap: no extra top margin, so their tops line up. */
.two-col > .panel + .panel { margin-top: 0; }
.panel h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.panel h2 .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--brand-btn); color: #fff; font-size: .9rem; }
.summary { position: sticky; top: 100px; }
.line-items { list-style: none; margin: 0; padding: 0; }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item:last-child { border-bottom: 0; }
.line-item .thumb { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--cream); }
.line-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-item .name { font-weight: 800; color: var(--ink); text-decoration: none; }
.line-item .meta { font-size: .88rem; color: var(--muted); }
.line-item .actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.line-item .actions .qty button, .line-item .actions .qty input { height: 38px; }
.line-item .actions .qty button { width: 36px; }
.line-item .actions .qty input { width: 44px; }
.totals { width: 100%; border-collapse: collapse; margin-top: 8px; }
.totals td { padding: 6px 0; }
.totals td:last-child { text-align: right; font-weight: 700; }
.totals .grand td { border-top: 1.5px solid var(--line); padding-top: 12px; font-family: var(--font-head); font-size: 1.25rem; }
.totals .discount td { color: var(--success); }
.empty { text-align: center; padding: 64px 16px; }
/* Panel headings are flex rows (for step numbers), which ignore text-align: centre this one like the rest of the card. */
.empty h2 { justify-content: center; }
.empty svg { width: 64px; height: 64px; color: var(--brand); margin: 0 auto 12px; }
.empty .cart-signin { margin-top: 16px; }
.slot-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.slot-day { flex: 0 0 auto; scroll-snap-align: start; }
.slot-group { margin-top: 14px; }
.slot-group h4 { font-family: var(--font-body); font-weight: 800; font-size: .95rem; margin: 0 0 8px; color: var(--ink-2); }
.payment-note { font-size: .88rem; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.payment-note svg { width: 16px; height: 16px; }

/* Order status */
.status-hero { text-align: center; padding: 32px 0 8px; }
.status-hero .icon { width: 72px; height: 72px; border-radius: 999px; display: grid; place-items: center; margin: 0 auto 12px; background: var(--success-50); color: var(--success); }
.status-hero .icon.wait { background: var(--warn-50); color: var(--brand-700); }
.status-hero .icon svg { width: 36px; height: 36px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.timeline li { position: relative; padding-top: 34px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 999px; background: var(--line); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--line); }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--brand-btn); box-shadow: 0 0 0 2px var(--brand-btn); }
.timeline li.done::after { content: ""; position: absolute; top: 13px; left: 50%; width: 9px; height: 5px; margin-left: -4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.timeline li[aria-current="step"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.etransfer { background: var(--warn-50); border: 1px dashed var(--butter); border-radius: var(--radius); padding: 20px; }
.etransfer dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.etransfer dt { font-weight: 800; }
.etransfer dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }

/* Footer */
.site-footer { background: var(--ink); color: #E8D9C6; margin-top: 64px; }
.site-footer .container { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; padding: 56px 0 32px; }
.site-footer h3, .site-footer .footer-h { color: #fff; font-size: 1rem; margin-bottom: 6px; }
.site-footer a { color: #E8D9C6; text-decoration: none; }
.site-footer a:hover { color: var(--butter); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .footer-address { font-style: normal; line-height: 1.5; }
.site-footer .logo { background: var(--cream); border-radius: var(--radius); padding: 10px 14px; display: inline-block; margin-bottom: 14px; }
.site-footer .logo img { height: 56px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: .85rem; color: #BFAE9A; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0; }
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.social svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .site-footer .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .container { grid-template-columns: 1fr; } }

/* Page header */
.page-head { background: var(--cream); padding: 40px 0 32px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 8px; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-head p { color: var(--ink-2); margin: 0; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 24px 0; }
.toolbar form { display: flex; gap: 8px; }
.toolbar select { width: auto; }
.search { position: relative; }
.search input { padding-left: 40px; min-width: 240px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }

/* Account pages from the Identity template */
.account-shell { max-width: 520px; margin: 48px auto; }
.account-shell .panel h1 { font-size: 1.8rem; }
.form-floating { position: relative; margin-bottom: 14px; display: flex; flex-direction: column-reverse; }
.form-floating > label { font-size: .95rem; color: var(--ink); }
.form-control { width: 100%; }
.text-danger { color: var(--danger); font-size: .88rem; font-weight: 700; }
.mb-3 { margin-bottom: 16px; }
.w-100 { width: 100%; }
.btn-primary { --bg: var(--brand-btn); --fg: #fff; } /* UXS-18: white on #F85D02 was 3.2:1 */
.btn-lg { padding: 16px 28px; }
.btn-link { background: none; border: 0; color: var(--brand-700); text-decoration: underline; padding: 0; box-shadow: none; font: inherit; cursor: pointer; }
.nav-pills { list-style: none; padding: 0; display: grid; gap: 4px; }
.nav-pills .nav-link { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; }
.nav-pills .nav-link.active, .nav-pills .nav-link:hover { background: var(--brand-50); color: var(--brand-700); }
.manage { display: grid; grid-template-columns: 220px 1fr; gap: 28px; margin: 40px auto; }
@media (max-width: 760px) { .manage { grid-template-columns: 1fr; } }
.qr svg { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 12px; }

/* Reconnect modal (admin) inherits sensible defaults */
#components-reconnect-modal { font-family: var(--font-body); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.chip svg, .i-sm { width: 14px; height: 14px; }
.flash { position: fixed; left: 16px; right: 16px; margin-inline: auto; width: fit-content; bottom: 24px; z-index: 60; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; font-weight: 700; max-width: calc(100% - 32px); animation: flash-in .25s ease-out; }
.flash a { color: var(--butter); }
.flash svg { width: 20px; height: 20px; color: var(--butter); flex: none; }
@keyframes flash-in { from { transform: translateY(20px); opacity: 0; } }
/* The next page is on its way (site.js, storefront review 2026-11-17): a thin bar along the top that grows fast, then
   slows and never claims to be done. With reduced motion it simply appears, full width and still. */
.nav-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; pointer-events: none; background: var(--brand-50); }
.nav-progress::before { content: ""; position: absolute; inset: 0; background: var(--brand); transform-origin: left center; transform: scaleX(.9); animation: nav-progress 12s cubic-bezier(.08, .8, .2, 1) both; }
@keyframes nav-progress { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .nav-progress::before { transform: none; animation: none; } }
/* Identity template pages: collapse Bootstrap grid helpers into a single column. */
.account-shell .row, .manage .row { display: block; }
.account-shell hr, .manage hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.account-shell h2 { font-size: 1.05rem; color: var(--ink-2); }
.account-shell .d-flex { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.form-check-input { accent-color: var(--brand); }
.alert-success { background: var(--success-50); color: var(--success); border-radius: 12px; padding: 12px 16px; }
.alert-danger, .alert-warning { background: var(--danger-50); color: var(--danger); border-radius: 12px; padding: 12px 16px; }
.btn-danger { --bg: var(--danger); }
.btn-secondary { --bg: var(--ink-2); }
.list-unstyled { list-style: none; padding: 0; }
svg { flex: none; }
.placeholder-img > img, .gallery .main .placeholder-img > img, .product-card .media .placeholder-img > img, .line-item .thumb .placeholder-img > img {
    width: 38%; height: auto; object-fit: contain; opacity: .5; transform: none;
}

/* ===== Home: store front ===== */
[hidden] { display: none !important; }
.link-arrow { font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); border-bottom: 2px solid var(--brand); padding-bottom: 2px; }
.link-arrow:hover { color: var(--brand-700); }

/* Hero: copy + one product in the window */
.hero2 { background: radial-gradient(900px 420px at 88% 0%, var(--butter-100), transparent 65%), var(--cream); border-bottom: 1px solid var(--line); }
.hero2 .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 64px) 0; }
.hero2 h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.02em; margin-bottom: 14px; }
.hero2 h1 em { font-style: normal; color: var(--brand-700); display: inline-block; }
.hero2 .lede { margin-bottom: 0; }
.hero2-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero2-meta { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 8px 22px; flex-wrap: wrap; color: var(--ink-2); font-size: .95rem; }
.hero2-meta li { display: inline-flex; gap: 6px; align-items: center; }
.hero2-meta svg { color: var(--brand); }
.hero2-spot { max-width: 400px; justify-self: center; width: 100%; transform: rotate(1.2deg); }
.hero2-spot .shop-card { box-shadow: var(--shadow-lg); }
@media (max-width: 860px) {
    .hero2 .container { grid-template-columns: 1fr; }
    .hero2-spot { transform: none; max-width: 420px; }
}

/* Values strip (gentle marquee; static for reduced motion) */
.values { background: var(--ink); color: var(--cream); overflow: hidden; border-block: 1px solid #000; }
.values-track { display: flex; width: max-content; animation: values-scroll 38s linear infinite; }
.values ul { list-style: none; margin: 0; padding: 12px 0; display: flex; gap: 40px; padding-right: 40px; }
.values li { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .92rem; white-space: nowrap; letter-spacing: .01em; }
.values svg { color: var(--butter); }
.values:hover .values-track, .values[data-paused="true"] .values-track { animation-play-state: paused; }
.values { position: relative; }
.values-pause { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--ink); color: var(--cream); display: grid; place-items: center; cursor: pointer; z-index: 1; box-shadow: -12px 0 12px var(--ink); }
.values-pause .i-play, .values[data-paused="true"] .values-pause .i-pause { display: none; }
.values[data-paused="true"] .values-pause .i-play { display: inline; }
/* Touch screens can't hover to pause: show the values as one still row you can swipe (a wrapped list was
   about 150px tall on a phone, a banner before the menu). */
@media (hover: none) {
    .values-track { animation: none; width: auto; }
    .values-track ul[aria-hidden="true"], .values-pause { display: none; }
    .values-track ul { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; gap: 22px; padding: 10px 16px; }
    .values-track ul::-webkit-scrollbar { display: none; }
    .values li { font-size: .82rem; }
}
@keyframes values-scroll { to { transform: translateX(-50%); } }

/* Saturday drop */
.drop { background: linear-gradient(180deg, var(--cream-50), #FFF4E4); }
.drop-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.drop-head h2 { margin: 12px 0 6px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.drop-head p { color: var(--ink-2); margin: 0; }
.date-badge { display: inline-block; background: var(--brand-50); color: var(--brand-700); border: 1px solid #FBD0B4; border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: .85rem; }

/* Card grid + image-led product card */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.shop-card { display: flex; flex-direction: column; background: var(--white); border-radius: 22px; border: 1px solid rgba(235, 220, 200, .8); box-shadow: var(--shadow-sm); overflow: hidden; min-width: 0; transition: box-shadow .2s ease, transform .2s ease; }
.shop-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.sc-media { position: relative; display: block; aspect-ratio: 1 / 1; margin: 10px 10px 0; border-radius: 16px; overflow: hidden; background: var(--cream); }
.sc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.shop-card:hover .sc-media img { transform: scale(1.04); }
.stamp { position: absolute; top: 8px; left: 8px; background: var(--white); color: var(--brand-700); font-weight: 800; font-size: .66rem; letter-spacing: .03em; padding: 4px 8px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.sc-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.sc-body .sc-name { font-size: 1.08rem; margin: 0; line-height: 1.25; }
.sc-body .sc-name a { color: var(--ink); text-decoration: none; }
.sc-body .sc-name a:hover { color: var(--brand-700); text-decoration: underline; }
.sc-tag { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* The lowest price ("From:") and the Select button sit at the bottom of every card, so a row lines up. */
.sc-price { margin: auto 0 4px; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.sc-amount { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.sc-from { font-family: var(--font-body); font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.sc-when { display: inline-flex; gap: 4px; align-items: center; font-size: .8rem; font-weight: 800; color: var(--brand-700); }
.sc-go { width: 100%; }
.btn.is-busy { opacity: .7; pointer-events: none; }

/* Illustrated stand-in for missing photos */
.pastry-art { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(var(--art-dot) 1.6px, transparent 1.7px) 0 0 / 18px 18px, var(--art-bg); }
.pastry-art svg { width: 72%; height: 72%; }
.gallery .main .pastry-art svg { width: 62%; height: 62%; }
.line-item .thumb .pastry-art svg { width: 86%; height: 86%; }

/* Full menu */
.full-menu { padding-top: clamp(40px, 6vw, 72px); }
.full-menu .section-head { margin-bottom: 16px; }
.full-menu .search input { min-width: 0; width: min(300px, 100%); padding-top: 10px; padding-bottom: 10px; }
.menu-tabs { position: sticky; top: 76px; z-index: 30; background: rgba(255, 249, 241, .96); backdrop-filter: blur(8px); border-block: 1px solid var(--line); margin-bottom: 20px; }
.menu-tabs .container { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.menu-tabs .container::-webkit-scrollbar { display: none; }
.menu-tabs a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 800; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.menu-tabs a:hover, .menu-tabs a:focus-visible { border-color: var(--brand); color: var(--brand-700); }
.menu-section { margin-bottom: 36px; }
/* html scroll-padding-top already clears the sticky header and tabs; a big margin here doubled the gap (290px). */
.menu-section, .shop-card, #menu, #drop { scroll-margin-top: 8px; }
.menu-section-head { margin-bottom: 14px; }
.menu-section-head h3 { font-size: 1.35rem; margin: 0; }
.menu-section-head p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }

/* Reviews */
.reviews .quote { background: var(--white); }
.stockist-line { margin: 22px 0 0; color: var(--ink-2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; text-align: center; }

/* Floating order bar (all sizes) */
.cart-bar { display: none; }
.cart-bar[data-has-items="true"] {
    display: flex; position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 50; width: min(560px, calc(100% - 24px));
    align-items: center; justify-content: space-between; gap: 10px; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 20px;
    box-shadow: 0 0 0 2px var(--cream), var(--shadow-lg);
}
@media (min-width: 900px) { .cart-bar[data-has-items="true"] { left: auto; right: 24px; transform: none; width: 420px; } }
.cart-bar-summary { color: #fff; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-bar-summary:hover { color: var(--butter); }
.cart-bar .btn { flex: none; box-shadow: none; }
body:has(.cart-bar[data-has-items="true"]) .flash { bottom: 86px; }
body:has(.cart-bar[data-has-items="true"]) .site-footer { padding-bottom: 72px; }

@media (max-width: 560px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .shop-card { border-radius: 18px; }
    .sc-media { margin: 6px 6px 0; border-radius: 13px; }
    .sc-body { padding: 10px 10px 12px; gap: 5px; }
    .sc-body .sc-name { font-size: .95rem; }
    .sc-tag { display: none; }
    .sc-amount { font-size: 1rem; }
    .stamp { font-size: .66rem; padding: 4px 8px; top: 8px; left: 8px; }
    .hero2-spot .sc-tag { display: -webkit-box; }
    .full-menu .search { width: 100%; }
    .full-menu .search input { width: 100%; }
    .menu-tabs a { padding: 6px 12px; font-size: .85rem; }
}

/* Newsletter band (NewsletterForm.razor.css): it sits right on top of the footer, so the footer drops its own gap. */
.news-band + .site-footer { margin-top: 0; }
/* The header cart: a bigger labelled button (bag, "Cart", count) in the place "Order now" had. */
.header-cart { margin-left: 6px; gap: 8px; min-height: 46px; padding: 10px 20px; font-size: 1rem; box-shadow: none; }
.header-cart:hover { box-shadow: none; }
.header-cart svg { width: 22px; height: 22px; flex: none; }
.header-cart .cart-count { position: static; min-width: 24px; height: 24px; background: #fff; color: var(--brand-700); font-size: .8rem; }
.header-cart .cart-count[hidden] { display: none; }
/* Small phones: tighter spacing so logo, search, account, the labelled cart and the menu still fit on one row (320px). */
@media (max-width: 400px) {
    .site-header .container { gap: 8px; }
    .header-actions { gap: 2px; }
    .header-cart { padding: 10px 12px; gap: 6px; margin-left: 2px; }
}
@media (max-width: 350px) { .header-actions .icon-btn { width: 38px; } .header-cart .cart-count { min-width: 20px; height: 20px; } }
.drop .sc-when { display: none; }
@media (max-width: 560px) {
    .hero2 .container { padding: 20px 0 26px; gap: 22px; }
    .hero2 h1 { font-size: 2rem; margin-bottom: 10px; }
    .hero2 .lede { font-size: 1rem; }
    .hero2-cta { margin-top: 18px; gap: 8px; }
    .hero2-cta .btn { padding: 12px 18px; font-size: .95rem; }
    .hero2-meta { margin-top: 14px; font-size: .88rem; }
    .hero2-spot .sc-media { aspect-ratio: 16 / 10; }
    .drop-head { margin-bottom: 18px; }
}

/* ===== ui-store review fixes (package D) ===== */
/* Phones: no sideways scrolling on /cart and /shop (H2, H3). */
@media (max-width: 560px) {
    .line-item { grid-template-columns: 56px minmax(0, 1fr) auto; }
    .line-item .thumb { width: 56px; height: 56px; }
    .line-item .actions { flex-wrap: wrap; }
    .panel { padding: 16px; }
    .toolbar form { flex-wrap: wrap; width: 100%; }
    .toolbar .search { flex: 1 1 100%; }
    .search input { min-width: 0; width: 100%; }
    .toolbar select { width: 100%; }
    .field-row { row-gap: 0; }
}
/* Tap targets of at least 44px on the phone ordering path (M11). */
@media (max-width: 560px) {
    .btn--sm, .menu-tabs a { min-height: 44px; }
    .line-item .actions .qty button { width: 44px; height: 44px; }
    .line-item .actions .qty input { height: 44px; }
}
.site-footer ul a { display: inline-block; padding-block: 10px; }
.site-footer ul { gap: 0; }
/* Product page on phones and tablets: a shorter photo so the price and Add are closer (M12). */
@media (max-width: 900px) { .gallery .main { aspect-ratio: 4 / 3; max-height: 45vh; } }
/* Order status: the even two-column layout only from 700px (M6 helper). */
.nowrap { white-space: nowrap; }

/* ===== Round 2 storefront UX (reviewer 3) ===== */
.flash-close { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; margin: -6px -10px -6px 0; border: 0; border-radius: 999px; background: transparent; color: #fff; cursor: pointer; }
.flash-close:hover { background: rgba(255, 255, 255, .14); }
.flash-close svg { width: 16px; height: 16px; color: inherit; }
/* The hero's product card: a 4:3 photo keeps its "Add to cart" above a 1280x800 fold and clear of the cart bar. */
@media (min-width: 561px) { .hero2-spot .sc-media { aspect-ratio: 4 / 3; } }
/* Phones: Shop and Help links side by side, so the footer is half as tall. */
@media (max-width: 520px) {
    .site-footer .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; }
    .site-footer .container > div:first-child, .site-footer .container > div:last-child { grid-column: 1 / -1; }
}
/* Screen-reader text inside buttons (e.g. "Add to cart: Meat Pies") is absolutely positioned: keep it inside the
   card, or it escapes the swipeable Saturday row and makes the whole page scroll sideways. */
.shop-card, .btn { position: relative; }
/* Longer messages wrap to several lines: a rounded box reads better than a pill there. */
.flash { border-radius: 16px; }
