:root {
    --jam:        #b42636;  /* raspberry: the one strong colour */
    --jam-dark:   #8d1d2a;
    --jam-light:  #c74b56;
    --blush:      #f3f0e9;  /* page */
    --blush-deep: #ece5dc;  /* cards, borders */
    --dough:      #fffdf8;  /* panels */
    --plum:       #382925;  /* text */
    --plum-soft:  #75645d;  /* secondary text */
    --caramel:    #a4652b;  /* prices, allergens */
    --leaf:       #3f7d54;  /* 'in time', 'paid' */
    --rust:        #b23c2a; /* 'too late', errors */

    --edge:       1px solid var(--blush-deep);
    --round:      26px;
    --round-sm:   14px;
    --shadow:     0 1px 2px rgba(60, 34, 48, .06), 0 8px 24px rgba(60, 34, 48, .06);
    --shadow-lift: 0 2px 4px rgba(60, 34, 48, .08), 0 14px 32px rgba(60, 34, 48, .10);

    --measure:    66ch;
    --wide:       1120px;
}

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

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

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: var(--blush);
    color: var(--plum);
    font: 400 17px/1.6 Karla, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, h4 {
    font-family: Fraunces, Georgia, "Times New Roman", serif;
    font-weight: 600;
    line-height: 1.15;
    text-wrap: balance;
    margin: 0 0 .5em;
    color: var(--plum);
}

h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--jam); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--jam-dark); }

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

img { max-width: 100%; height: auto; display: block; }

.skip {
    position: absolute; left: -9999px;
    background: var(--jam); color: #fff; padding: .6rem 1rem; z-index: 50;
}
.skip:focus { left: 1rem; top: 1rem; }

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

.top {
    background: var(--dough);
    border-bottom: var(--edge);
    position: sticky; top: 0; z-index: 20;
}

.top-inner {
    max-width: var(--wide);
    margin: 0 auto;
    padding: .7rem 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.35rem; font-weight: 700;
    color: var(--plum); text-decoration: none;
    margin-right: auto;
}
.brand em { font-style: italic; color: var(--jam); }

/* A dot of jam. Cheaper than a logo file and it scales with the type. */
.brand-mark {
    width: 1.1em; height: 1.1em; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--jam-light), var(--jam) 60%, var(--jam-dark));
    flex: none;
}

.site-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a {
    padding: .4rem .7rem; border-radius: 999px;
    color: var(--plum); text-decoration: none; font-weight: 500;
}
.site-nav a:hover { background: var(--blush-deep); }
.site-nav a.on { background: var(--jam); color: #fff; }

.top-actions { display: flex; align-items: center; gap: .5rem; }

.lang {
    font-size: .9rem; font-weight: 500; color: var(--plum-soft);
    text-decoration: none; padding: .4rem .6rem; border-radius: 999px;
}
.lang:hover { background: var(--blush-deep); color: var(--plum); }

.cart-link {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .45rem .9rem; border-radius: 999px;
    border: 1px solid var(--jam); color: var(--jam);
    text-decoration: none; font-weight: 700; white-space: nowrap;
}
.cart-link.has-items { background: var(--jam); color: #fff; }
.cart-count {
    background: #fff; color: var(--jam);
    border-radius: 999px; padding: 0 .45rem;
    font-size: .85rem; font-variant-numeric: tabular-nums;
}

/* ---- main --------------------------------------------------------------- */

main {
    flex: 1 0 auto;
    width: 100%;
    max-width: var(--wide);
    margin: 0 auto;
    padding: 2rem 16px 4rem;
}

.notice {
    border-radius: var(--round-sm);
    padding: .8rem 1rem;
    margin: 0 0 1.5rem;
    border-left: 4px solid;
    background: var(--dough);
}
.notice.error   { border-color: var(--rust);  color: var(--rust); }
.notice.success { border-color: var(--leaf);  color: var(--leaf); }
.notice.warn    { border-color: var(--caramel); color: var(--caramel); }

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

.hero {
    background: linear-gradient(170deg, var(--dough), var(--blush-deep));
    border: var(--edge);
    border-radius: var(--round);
    padding: clamp(1.6rem, 1rem + 3vw, 3.2rem);
    margin-bottom: 2.5rem;
}
.hero p { max-width: var(--measure); color: var(--plum-soft); font-size: 1.1rem; }
.hero .actions { margin-top: 1.5rem; }

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

.actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

.button, button.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    font: 700 1rem/1 Karla, sans-serif;
    padding: .85rem 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--jam);
    background: var(--jam); color: #fff;
    text-decoration: none; cursor: pointer;
    transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { background: var(--jam-dark); border-color: var(--jam-dark); color: #fff; box-shadow: var(--shadow); }
.button:active { transform: translateY(1px); }
.button.ghost { background: transparent; color: var(--jam); }
.button.ghost:hover { background: var(--blush-deep); color: var(--jam-dark); }
.button.quiet {
    background: transparent; color: var(--plum-soft); border-color: var(--blush-deep);
    font-weight: 500; padding: .5rem .9rem;
}
.button.quiet:hover { background: var(--blush-deep); color: var(--plum); }
.button[disabled], .button:disabled {
    opacity: .45; cursor: not-allowed; transform: none; box-shadow: none;
}
.button.big { font-size: 1.1rem; padding: 1rem 1.8rem; }

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

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.25rem;
    margin: 0; padding: 0; list-style: none;
}

.card {
    background: var(--dough);
    border: var(--edge);
    border-radius: var(--round);
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow);
}

.card-photo {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(150deg, var(--blush-deep), #e8d9c7);
    display: grid; place-items: center;
}
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
/* No photograph yet: a jam dot rather than a broken-image icon. */
.card-photo .placeholder {
    width: 42%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff8, transparent 60%), var(--jam-light);
    opacity: .55;
}

.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; gap: .5rem; }
.card-body h3 { margin: 0; }
.card-body h3 a { color: var(--plum); text-decoration: none; }
.card-body h3 a:hover { color: var(--jam); }
.card-note { color: var(--plum-soft); font-size: .95rem; margin: 0; flex: 1; }

.price {
    font-family: Fraunces, Georgia, serif;
    font-weight: 600; font-size: 1.15rem;
    color: var(--caramel);
    font-variant-numeric: tabular-nums;
}
.price .unit { font-family: Karla, sans-serif; font-size: .85rem; font-weight: 400; color: var(--plum-soft); }

.tag {
    display: inline-block;
    font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: .2rem .55rem; border-radius: 999px;
    background: var(--blush-deep); color: var(--jam-dark);
}
.tag.pickup { background: #eee3d4; color: var(--caramel); }
.tag.allergen { background: transparent; color: var(--plum-soft); text-transform: none; font-weight: 500; letter-spacing: 0; padding-left: 0; }

/* ---- the box builder --------------------------------------------------- */

.builder { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) {
    .builder { grid-template-columns: 1fr 320px; align-items: start; }
    .builder-tray { position: sticky; top: 5.5rem; }
}

.pick-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .9rem; list-style: none; margin: 0; padding: 0;
}

/* A pick is a button, not a link with a click handler: it has to be reachable
   by keyboard and announce itself as pressable, and a <button> does both
   without any ARIA. */
.pick {
    width: 100%;
    background: var(--dough); border: var(--edge); border-radius: var(--round);
    padding: .65rem; cursor: pointer; text-align: left;
    display: flex; flex-direction: column; gap: .45rem;
    font: inherit; color: inherit;
    transition: border-color .12s ease, box-shadow .12s ease, transform .08s ease;
}
.pick:hover { border-color: var(--jam-light); box-shadow: var(--shadow); }
.pick:active { transform: translateY(1px); }
.pick[data-count]:not([data-count="0"]) {
    border-color: var(--jam); box-shadow: 0 0 0 1px var(--jam) inset;
}
.pick-photo {
    aspect-ratio: 1; border-radius: var(--round-sm); overflow: hidden;
    background: linear-gradient(150deg, var(--blush-deep), #e8d9c7);
    display: grid; place-items: center; position: relative;
}
.pick-photo img { width: 100%; height: 100%; object-fit: cover; }
.pick-name { font-weight: 700; font-size: .95rem; line-height: 1.25; }
.pick-count {
    position: absolute; inset: auto .35rem .35rem auto;
    background: var(--jam); color: #fff;
    min-width: 1.7rem; height: 1.7rem; border-radius: 999px;
    display: none; place-items: center;
    font-weight: 700; font-variant-numeric: tabular-nums;
}
.pick[data-count]:not([data-count="0"]) .pick-count { display: grid; }

.builder-tray {
    background: var(--dough); border: var(--edge); border-radius: var(--round);
    padding: 1.2rem; box-shadow: var(--shadow);
}
.tray-slots {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
    list-style: none; margin: 0 0 1rem; padding: 0;
}
.tray-slot {
    aspect-ratio: 1; border-radius: var(--round-sm);
    border: 1px dashed var(--blush-deep);
    background: var(--blush);
    display: grid; place-items: center; text-align: center;
    font-size: .72rem; line-height: 1.15; color: var(--plum-soft);
    padding: .25rem; overflow: hidden;
}
.tray-slot.filled {
    border-style: solid; border-color: var(--jam-light);
    background: #fff; color: var(--plum); font-weight: 700;
    cursor: pointer;
}
.tray-slot.filled:hover { border-color: var(--jam); }
.tray-status { font-weight: 700; margin-bottom: .75rem; }
.tray-price { font-family: Fraunces, Georgia, serif; font-size: 1.5rem; color: var(--caramel); }

/* ---- tables ------------------------------------------------------------ */

.lines { width: 100%; border-collapse: collapse; }
.lines th, .lines td { padding: .85rem .6rem; border-bottom: var(--edge); text-align: left; vertical-align: top; }
.lines th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--plum-soft); font-weight: 700; }
.lines td.num, .lines th.num { text-align: right; font-variant-numeric: tabular-nums; }
.lines .sub { color: var(--plum-soft); font-size: .92rem; margin: .3rem 0 0; }

.totals { margin-top: 1.25rem; margin-left: auto; max-width: 22rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.totals .grand {
    border-top: 2px solid var(--plum); margin-top: .4rem; padding-top: .6rem;
    font-family: Fraunces, Georgia, serif; font-size: 1.3rem; font-weight: 600;
}

/* ---- forms ------------------------------------------------------------- */

.panel {
    background: var(--dough); border: var(--edge); border-radius: var(--round);
    padding: 1.4rem; box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.panel > h2 { margin-top: 0; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .3rem; }
.field .hint { color: var(--plum-soft); font-size: .88rem; margin: .25rem 0 0; }

input:not([type]), input[type=text], input[type=search], input[type=url],
input[type=email], input[type=tel], input[type=number],
input[type=date], input[type=datetime-local], input[type=password], select, textarea {
    width: 100%; font: inherit; color: var(--plum);
    min-height: 2.8rem;
    padding: .65rem .8rem;
    background: #fff;
    border: 1px solid var(--blush-deep); border-radius: var(--round-sm);
}
textarea { min-height: 6rem; resize: vertical; }
input:not([type]):focus, input:not([type=checkbox]):not([type=radio]):not([type=hidden]):focus, select:focus, textarea:focus { border-color: var(--jam); box-shadow: 0 0 0 3px rgba(180, 38, 54, .1); }

.row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } .row.postal { grid-template-columns: 10rem 1fr; } }

/* A choice between two or three big targets: delivery type, payment method. */
.choices { display: grid; gap: .6rem; margin: 0; padding: 0; border: 0; }
.choice {
    display: flex; align-items: flex-start; gap: .7rem;
    padding: .9rem 1rem; background: #fff;
    border: 1px solid var(--blush-deep); border-radius: var(--round-sm);
    cursor: pointer;
}
.choice:hover { border-color: var(--jam-light); }
.choice input { margin: .25rem 0 0; accent-color: var(--jam); flex: none; }
.choice:has(input:checked) { border-color: var(--jam); box-shadow: 0 0 0 1px var(--jam) inset; }
.choice-body { display: flex; flex-direction: column; gap: .15rem; }
.choice-title { font-weight: 700; }
.choice-note { font-size: .9rem; color: var(--plum-soft); }
.choice-note.late { color: var(--rust); }
.choice-note.few { color: var(--caramel); font-weight: 700; }

.checkout { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 960px) {
    .checkout { grid-template-columns: 1fr 22rem; align-items: start; }
    .checkout-summary { position: sticky; top: 5.5rem; }
}

/* ---- content pages ----------------------------------------------------- */

.block { margin: 0 0 3rem; }
.block:last-child { margin-bottom: 0; }
.block-text { max-width: var(--measure); }
.block-text ul { padding-left: 1.2rem; }
.block-text li { margin-bottom: .35rem; }

.block-hero {
    background: linear-gradient(170deg, var(--dough), var(--blush-deep));
    border-radius: var(--round); padding: clamp(1.6rem, 1rem + 3vw, 3.4rem);
    border: var(--edge);
}
.block-hero.with-photo { position: relative; overflow: hidden; color: #fff; border: 0; }
.block-hero.with-photo img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
/* The scrim is what makes the text legible over an unknown photograph. */
.block-hero.with-photo::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(60,34,48,.78), rgba(60,34,48,.35));
}
.block-hero.with-photo > * { position: relative; z-index: 2; }
.block-hero.with-photo h2, .block-hero.with-photo p { color: #fff; }

.block-split { display: grid; gap: 1.75rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 760px) {
    .block-split { grid-template-columns: 1fr 1fr; }
    .block-split.right .block-split-photo { order: 2; }
}
.block-split-photo img { border-radius: var(--round); width: 100%; }

.block-full img { border-radius: var(--round); width: 100%; }
.block-full figcaption { color: var(--plum-soft); font-size: .92rem; margin-top: .5rem; }

.block-columns { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .block-columns .cols { grid-template-columns: 1fr 1fr; display: grid; gap: 1.75rem; } }

/* ---- status words ------------------------------------------------------ */

.state { font-weight: 700; }
.state.paid, .state.ok { color: var(--leaf); }
.state.pending { color: var(--caramel); }
.state.bad { color: var(--rust); }

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

.foot { background: var(--dough); border-top: var(--edge); margin-top: 3rem; }
.foot-inner {
    max-width: var(--wide); margin: 0 auto; padding: 2rem 16px;
    display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; align-items: center;
}
.foot-brand { font-family: Fraunces, Georgia, serif; font-size: 1.05rem; margin: 0; }
.foot-brand em { font-style: italic; color: var(--jam); }
.foot-nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.foot-nav a { color: var(--plum-soft); font-size: .95rem; }

/* ---- utilities --------------------------------------------------------- */

.lede { font-size: 1.1rem; color: var(--plum-soft); max-width: var(--measure); }
.stack > * + * { margin-top: 1.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.empty { background: var(--dough); border: var(--edge); border-radius: var(--round); padding: 2.5rem; text-align: center; color: var(--plum-soft); }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* Warm paper, cherry red, and rounded lettering echo the supplied identity. */
h1, h2, h3, h4, .foot-brand { font-family: "Lilita One", "Arial Rounded MT Bold", sans-serif; font-weight: 400; }
h1 { font-size: clamp(2.8rem, 5.5vw, 4.8rem); line-height: 1.02; color: var(--jam-dark); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.top { background: var(--blush); border-bottom: 1px solid #ded4c9; }
.top-inner { padding-top: 1rem; padding-bottom: 1rem; }
.brand { line-height: .76; padding: .3rem 0 .5rem; }
.brand-text { position: relative; font: 400 2.2rem/.76 "Lilita One", "Arial Rounded MT Bold", sans-serif; letter-spacing: -.08em; color: #b42636; text-shadow: none; transform: rotate(-5deg); }
.brand em { display: inline-block; padding-left: 1.5rem; font-style: normal; color: #b42636; }
.brand-heart { position: absolute; top: -.25rem; right: -.8rem; font-size: .8rem; letter-spacing: 0; }
.site-nav a { font-weight: 700; }
.home-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; background: var(--dough); border: 1px solid #ded4c9; border-radius: 28px; overflow: hidden; padding: clamp(1.5rem, 4vw, 3.5rem); }
.hero-copy { position: relative; z-index: 1; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--jam-dark); margin-bottom: 1.25rem; }
.hero p { color: #65514a; }
.hero .lede { font-size: .9rem; }
.hero-art { position: relative; min-height: 350px; display: grid; place-content: center; padding-bottom: 2rem; }
.cookie-heart { position: absolute; top: 0; right: 5%; font-size: 5rem; color: #b42636; transform: rotate(15deg); }
.hero-spark { position: absolute; color: var(--jam); font-size: 4.5rem; }
.spark-one { left: 0; top: 1rem; }.spark-two { right: 0; bottom: 2rem; font-size: 3rem; }
.love-note { position: absolute; bottom: 0; width: 100%; text-align: center; font: 400 1.6rem "Lilita One", sans-serif; color: var(--jam-dark); transform: rotate(-6deg); }
.button { box-shadow: 0 4px 0 #8d1d2a; }
.button.ghost { box-shadow: none; }
.card { border-radius: 24px; box-shadow: none; background: var(--dough); }
.card:hover { box-shadow: 0 6px 0 var(--blush-deep); }
.card-photo, .pick-photo { background: #ece5dc; }
.block-hero { background: #ece5dc; }
.foot { background: var(--jam); color: var(--dough); border-top: 0; }
.foot-brand { font-size: 2rem; color: var(--jam-dark); }
.foot-brand small { display: block; font: 500 .9rem Karla, sans-serif; margin-top: .4rem; }
@media (max-width: 760px) {
    .home-hero { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-art { min-height: 285px; }
    .hero-cookie-photo { width: 235px; height: 235px; }
    .top-inner { gap: .8rem; }
    .site-nav { order: 3; width: 100%; justify-content: center; font-size: .9rem; }
    .brand-text { font-size: 1.9rem; }
    .hero .actions { gap: 1rem; }
}

/* One reference-derived sheet, framed into individual cookie previews. */
.cookie-preview { display: block; width: 100%; height: 100%; min-height: 0; background-image: url('/public/images/cookie-collection.png'); background-size: 300% 200%; background-repeat: no-repeat; }
.card-photo, .pick-photo { overflow: hidden; }
.card-photo .cookie-preview { aspect-ratio: 1; }
.hero-cookie-photo { width: 290px; height: 290px; border-radius: 50%; background: url('/public/images/cookie-collection.png') 50% 0 / 300% 200% no-repeat; transform: rotate(-9deg); box-shadow: 9px 12px 0 #d8c7b6; }
@media (max-width:760px) { .hero-cookie-photo { width:235px; height:235px; } }

/* The red wordmark sits on warm paper, with restrained ink-like accents. */
.brand-text { letter-spacing: -.045em; line-height: .86; }
.brand em { padding-left: 1.1rem; }
.home-hero h1 { color: var(--jam); }
.button { box-shadow: none; }
.button:hover { box-shadow: 0 3px 0 #dec9bc; }
.panel, .builder-tray { box-shadow: none; }
.foot .foot-brand, .foot .foot-nav a, .foot .foot-brand small { color: var(--dough); }
.foot a:hover { text-decoration-thickness: 2px; }
.hero-cookie-photo { box-shadow: 7px 9px 0 #ded0bf; }

.cookie-notice { position: fixed; z-index: 40; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); width: calc(100% - 2rem); max-width: var(--wide); max-height: calc(100dvh - 2rem); overflow-y: auto; margin: 0; box-shadow: 0 8px 36px rgba(56, 41, 37, .2); padding: 1.25rem; border: var(--edge); border-radius: var(--round); background: var(--dough); display: flex; align-items: center; gap: 1.5rem; }
.cookie-notice p { font-size: .9rem; margin: .4rem 0 0; }
.cookie-notice .button { flex-shrink: 0; }
.cookie-notice[hidden], .cookie-notice [hidden] { display: none; }
.privacy-page { max-width: 75ch; margin: auto; }
.privacy-page section { margin: 2rem 0; }
@media (max-width:640px) { .cookie-notice { flex-direction: column; align-items: flex-start; } }

.announcement { background: var(--jam); color: var(--dough); text-align: center; padding: .6rem 1rem; font-size: .9rem; }
.home-section { margin-top: 4rem; scroll-margin-top: 9rem; }
.home-quality { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: .75rem; color: var(--jam); }
.ingredient-notes { list-style: none; padding: 2rem; margin: 0; background: var(--dough); border-radius: var(--round); }
.ingredient-notes li { padding: .8rem 0; border-bottom: var(--edge); font-weight: 700; }
.ingredient-notes li::before { content: '♥'; color: var(--jam); margin-right: .8rem; }.ingredient-notes li:last-child { border: 0; }
.home-reviews { display: flex; gap: 2rem; align-items: center; border-block: var(--edge); padding-block: 2.5rem; }
.review-count { font: 400 6rem/1 'Lilita One', sans-serif; color: var(--jam); }
.home-story { max-width: 720px; margin-inline: auto; text-align: center; padding: 1.5rem 0; }
.home-newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2.5rem; background: var(--blush-deep); border-radius: var(--round); }
.newsletter-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; margin: 1rem 0; }.newsletter-consent input { margin-top: .3rem; accent-color: var(--jam); }
.foot-company { flex-basis: 100%; font-size: .8rem; opacity: .9; margin: 0; }
@media(max-width:640px) { .home-quality, .home-newsletter { grid-template-columns: 1fr; gap: 1.5rem; }.home-newsletter { padding: 1.5rem; }.home-reviews { align-items: flex-start; gap: 1rem; }.review-count { font-size: 4rem; } }

.home-reviews[hidden] { display: none; }
.judgeme-badge { display: inline-flex; align-items: center; gap: 1rem; margin-top: 1rem; text-decoration: none; color: #246858; }
.judgeme-badge .review-count { display: block; color: inherit; font-size: 3.5rem; }
.judgeme-check { display: grid; place-items: center; width: 4rem; height: 4rem; border: 3px solid currentColor; border-radius: 50%; font-size: 2.5rem; }
.judgeme-label, .judgeme-attribution { display: block; }
.judgeme-label { font-weight: 700; }.judgeme-attribution { font-size: .85rem; }

/* Editorial cookie introductions, matching the original homepage presentation. */
.cookie-stories > h2 { margin-bottom: 2rem; }
.cookie-stories-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.cookie-story { min-width: 0; padding: 1.5rem; background: var(--dough); border: var(--edge); border-radius: var(--round); box-shadow: 0 4px 0 var(--blush-deep); }
.cookie-story-photo { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; object-position: center; border-radius: 50%; margin-bottom: 1.5rem; }
.cookie-story h3 { font-size: 1.65rem; margin-bottom: .75rem; }
.cookie-story p { color: var(--plum-soft); font-size: 1rem; line-height: 1.7; }
@media (max-width:900px) { .cookie-stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width:560px) { .cookie-stories-grid { grid-template-columns: 1fr; gap: 2.5rem; }.cookie-story-photo { max-width: 340px; margin-inline: auto; } }

/* The shopping shelf scrolls independently; editorial introductions keep their grid. */
.cookie-shop-strip { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: clamp(250px, 28vw, 305px); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: .25rem; overscroll-behavior-x: contain; padding: .25rem .25rem 1.25rem; scrollbar-width: thin; scrollbar-color: var(--jam) var(--blush-deep); }
.cookie-shop-strip > .card { min-width: 0; scroll-snap-align: start; }
.cookie-shop-strip:focus-visible { outline-offset: 4px; }
.cookie-scroll-hint { font-size: .85rem; color: var(--plum-soft); margin: -.5rem 0 1rem; }
@media (max-width:560px) { .cookie-shop-strip { grid-auto-columns: 82%; gap: 1rem; } }

/* Restore the original alternating photo-and-text homepage sections. */
.home-quality.original-split, .home-story.original-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; align-items: center; max-width: none; text-align: left; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.original-split-photo { width: 100%; height: auto; border-radius: var(--round-sm); }
.original-story-figure { margin: 0; }
.original-story-figure figcaption { margin-top: .5rem; font-size: .8rem; color: var(--plum-soft); }
.original-split-copy p { color: var(--plum-soft); }
@media(max-width:700px) { .home-quality.original-split, .home-story.original-split { grid-template-columns: 1fr; gap: 1.5rem; } }

.cart-icon { display: block; flex: none; }
.pick-grid > li { min-width: 0; }
.pick-grid .pick { padding: 0; overflow: hidden; display: block; margin-bottom: .65rem; }
.pick-grid .pick-photo { border-radius: inherit; width: 100%; position: relative; }
.pick-grid .pick-photo img { position: absolute; inset: 0; object-position: center 60%; }
.pick-grid .pick-name { display: block; text-align: center; }
.tray-slot { display: flex; flex-direction: column; justify-content: flex-start; aspect-ratio: auto; min-height: 6rem; gap: .3rem; }
.tray-slot img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 60%; border-radius: .4rem; }
.tray-slot span { padding-bottom: .2rem; }.tray-slot:not(.filled) { justify-content: center; }
.cart-box-dialog { width: min(720px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; padding: clamp(1rem, 4vw, 2rem); border: var(--edge); border-radius: var(--round); background: var(--dough); color: var(--plum); }
.cart-box-dialog::backdrop { background: rgba(56,41,37,.5); }
.cart-box-dialog .section-head { align-items: center; }.cart-box-dialog h2 { margin: 0; font-size: 1.8rem; }
.cart-box-options { display: grid; gap: .75rem; margin: 1.5rem 0; }
.cart-box-option { display: flex; align-items: center; gap: .75rem; padding: .6rem; background: var(--blush); border-radius: var(--round-sm); }
.cart-box-option img { width: 64px; height: 64px; flex: none; object-fit: cover; object-position: center 60%; border-radius: .6rem; }
.cart-box-option label { flex: 1; font-weight: 700; }.cart-box-option small { display: block; color: var(--plum-soft); font-weight: 400; }
.cart-box-option input { width: 4.5rem; flex: none; }
.cart-box-preview { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
.cart-box-preview li { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 4rem; border: var(--edge); border-radius: .5rem; overflow: hidden; font-size: .65rem; text-align: center; }
.cart-box-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 60%; }.cart-box-preview span { padding: .25rem; }
@media(max-width:480px) { .cart-box-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
#open-cart-box[hidden] { display: none; }
.product-allergens { color: var(--plum-soft); font-size: .95rem; white-space: pre-line; }
/* Frame the supplied transparent canvas without changing its pixels. */
.brand-logo-frame { position: relative; display: block; width: 166px; height: 84px; overflow: hidden; flex: none; }
.brand-logo-frame img { position: absolute; width: 320px; height: 320px; max-width: none; left: -76px; top: -123px; }
.brand:has(.brand-logo-frame) { padding: 0; line-height: 1; }
