.compose-art { display: flex; align-items: center; justify-content: center; isolation: isolate; background: radial-gradient(ellipse at 52% 65%, #fff3db 8%, #f4c5c4 68%, #efaabc); }
.compose-art::before { content: ""; position: absolute; inset: 7%; background: url('/static/images/brand/hotzeg-chili.png') center/contain no-repeat; opacity: .10; z-index: -1; }
.compose-art img { width: 32%; height: 76%; object-fit: contain; filter: drop-shadow(0 7px 4px #722c292b); }
.compose-art img:first-child { transform: translate(12%,4%) rotate(-11deg); }
.compose-art img:nth-child(2) { z-index: 1; transform: scale(1.09); }
.compose-art img:last-child { transform: translate(-12%,4%) rotate(11deg); }
.compose-card { background: var(--paper); }
.compose-card-copy { gap: .2rem; }
.compose-card-copy h2 { font-family: var(--sans); }
.compose-card-copy p, .compose-subtitle { margin: 0; color: var(--ink-soft); font: 400 .76rem/1.4 var(--sans); }
.compose-card-cta { justify-content: flex-start; padding-inline: .4rem; white-space: normal; }
.compose-card a:is(:hover, :focus-visible) .compose-card-cta { color: #a0006d; }
.compose-card a:focus-visible { outline: 2px solid var(--magenta); outline-offset: -3px; }
body[data-page="compose"] .cat-main { padding-block: clamp(10px, 2vw, 24px); }
.compose-page { width: min(96%, var(--max-w)); margin: .35rem auto 1.5rem; color: var(--ink); }
.compose-page [hidden] { display: none !important; }
.compose-page header { padding-block: clamp(.35rem, 1.3vw, .9rem); }
.compose-chili { width: 46px; height: 28px; object-fit: contain; }
/* The page title uses the shared .cat-h1 / .cat-h1 em treatment from stockists. */
.compose-page header p { margin: .55em 0 0; color: var(--ink-soft); }
.compose-mobile-formats { display: none; }
.compose-page :is(h2,legend) { margin: 0; font: 650 clamp(1.15rem,2vw,1.6rem)/1.25 var(--sans); }
.compose-heading a, .compose-edit, .compose-summary a {
    display: inline-flex; align-items: center; min-height: 40px; color: #a0006d; text-underline-offset: .2em;
}
.compose-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 1rem; }
.compose-picker { min-width: 0; }
.compose-formats { min-width: 0; margin: .65rem 0; padding: 0; border: 0; }
.compose-formats [data-formats] { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: .65rem; }
.compose-formats [data-size] { padding: .55rem .8rem; min-height: 44px; border-color: var(--rule); }
.compose-formats [data-size] small { display: block; font: inherit; font-weight: 500; }
.compose-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: .8rem 0 .45rem; }
.compose-heading a, .compose-summary .compose-edit { display: none; }
.compose-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 1fr; gap: .55rem; }
.compose-sauce .compose-photo .img-bg-fill__main { object-fit: contain; }
.compose-sauce .compose-photo .img-bg-fill { background-color: color-mix(in srgb, var(--bg-accent, var(--paper)) 18%, var(--paper)); }
.compose-sauce { align-self: stretch; }
.compose-sauce .hz-product-card__actions { grid-template-columns: 40px minmax(0,1fr) 40px; }
.compose-sauce .hz-product-card__name { white-space: normal; overflow-wrap: anywhere; }
.compose-sauce .hz-product-card__footer { margin-top: auto; }
.compose-sauce .compose-photo .hz-product-card__media { aspect-ratio: 4 / 3; }
.compose-sauce.is-chosen { border-color: var(--magenta); }
.compose-photo { position: relative; }
.compose-photo-action { position: absolute; inset: 0; width: 100%; z-index: 6; padding: 0; border: 0; background: transparent; cursor: pointer; }
.compose-photo-action:disabled { cursor: default; }
.compose-subtitle:empty { display: none; }
.compose-pick[aria-disabled=true] { opacity: .48; cursor: default; }
.compose-shortcut .hz-card-cart-count { position: static; }
.compose-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 30%); gap: 1rem; align-items: center; --product-accent: #a0006d; padding: clamp(1rem,2vw,1.6rem); border: 1px solid var(--rule); border-radius: 15px; background: var(--paper); }
.compose-summary [data-progress] { font-weight: 600; }
.compose-slots { display: flex; justify-content: center; gap: clamp(3px, 1.2vw, 14px); list-style: none; margin: 0; padding: 0; }
.compose-slot { position: relative; flex: 0 1 6rem; min-width: 0; display: grid; grid-template-rows: clamp(82px, 10vw, 135px) auto; text-align: center; }
.compose-slot::before, .compose-slot img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; }
.compose-slot::before { content: ""; background: url('/static/images/mini/bottle-empty.png') center/contain no-repeat; opacity: .56; }
.compose-slot img { opacity: 0; transform: translateY(4px) scale(.96); transition: opacity 180ms ease, transform 180ms ease; }
.compose-slot:not([data-id=""]) img { opacity: 1; transform: none; }
.compose-slot:not([data-id=""])::before { opacity: 0; }
.compose-slot span { margin-top: 4px; font: 600 .72rem/1.15 var(--sans); overflow-wrap: anywhere; }
.compose-tray [data-progress] { margin: .25rem 0 .55rem; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .compose-slot img { transition: none; transform: none; } }
.compose-summary dl { border-top: 1px solid var(--rule); margin: 0; padding-top: .5rem; }
.compose-summary dl div { display: flex; justify-content: space-between; gap: .6rem; padding: .25rem 0; }
.compose-summary dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.compose-summary dl div:nth-child(2) { color: #a0006d; }
.compose-summary dl div:last-child { font-weight: 700; }
.compose-summary [data-remaining] { color: var(--ink-soft); font-size: .85rem; }
.compose-add { width: 100%; min-height: 44px; margin-top: .6rem; white-space: normal; }
.compose-add:disabled { background: var(--rule); color: var(--ink-soft); cursor: default; transform: none; }
.compose-summary [data-new-pack] { display: block; font-size: .85rem; }
.compose-summary [data-message]:not(:empty) { padding-block: .6rem; }
.compose-page :is(a,button):focus-visible { outline: 2px solid var(--magenta); outline-offset: -2px; }
.compose-page :is(#pack-picker,#pack-summary) { scroll-margin-top: var(--hz-sticky-top); }
.compose-slots { scroll-margin-top: calc(var(--hz-sticky-top, 0px) + 12px); }
@media(max-width: 760px) {
    .compose-layout { display: block; }
    .compose-heading a, .compose-summary .compose-edit { display: inline-flex; }
    .compose-summary { grid-template-columns: minmax(0,1fr); gap: .55rem; margin-top: .7rem; }
    .compose-mobile-formats { display: block; margin: 0 0 .75rem; }
    .compose-mobile-formats .compose-formats { margin: 0; }
    .compose-mobile-formats [data-formats] { justify-content: center; }
    .compose-pack-fab:not([hidden]) { display: inline-flex; }
}
@media(max-width: 420px) {
    body[data-page="compose"] .cat-main { padding-inline: 4px; }
    .compose-page { width: 100%; }
    .compose-page > header, .compose-heading, .compose-formats { margin-inline: .4rem; }
}
.compose-slot-remove {
    position: absolute; top: 0; right: 0; width: 40px; height: 40px; padding: 0;
    display: grid; place-content: center; isolation: isolate; border: 0; border-radius: 50%;
    background: transparent; color: var(--ink); font: 600 18px/1 var(--sans); cursor: pointer;
}
.compose-slot-remove::before {
    content: ""; position: absolute; z-index: -1; inset: 8px;
    border: 1px solid var(--rule); border-radius: inherit; background: var(--paper);
}
.compose-slot-remove:is(:hover,:focus-visible) { color: #a0006d; }
@media (min-width: 700px) {
    .compose-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width: 1024px) {
    body[data-page="compose"] .cat-main { max-width: 1480px; padding: .5rem clamp(1rem,3vw,3rem) 1rem; }
    .compose-page { width: 100%; }
    .compose-page header { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; padding: .15rem 0 .65rem; }
    .compose-page header p { margin: 0; }
    .compose-formats legend { margin-bottom: .35rem; }
    .compose-formats [data-formats] { margin: 0; }
    .compose-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
/* LOT 8.4: concise presentation; keep headings, progress and price terms for screen readers. */
.compose-sr-only {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0,0,0,0) !important; white-space: nowrap !important;
    border: 0 !important;
}
.compose-formats { margin: 0 0 .65rem; }
.compose-formats [data-formats] { margin-top: 0; }
.compose-formats [data-size] { min-width: 64px; font-weight: 750; }
.compose-formats [data-size] small { font-size: .7rem; font-weight: 500; white-space: nowrap; }
.compose-summary .compose-tray [data-progress] { margin: 0; }
.compose-summary dl.compose-pricing {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end;
    column-gap: .85rem; row-gap: .25rem;
    padding-top: .65rem;
}
.compose-summary dl.compose-pricing div { padding: 0; }
.compose-summary dl.compose-pricing div:first-child dd {
    font-size: .85rem; color: var(--ink-soft); text-decoration: line-through;
}
.compose-summary dl.compose-pricing div:nth-child(2) dd { font-size: .85rem; color: #a0006d; }
.compose-summary dl.compose-pricing div:last-child { margin-left: auto; }
.compose-summary dl.compose-pricing div:last-child dd {
    font-weight: 800; font-size: clamp(1.3rem, 2vw, 1.65rem);
    color: var(--ink); line-height: 1.2;
}
.compose-summary .compose-checkout { min-width: 0; }
@media (max-width: 420px) {
    .compose-summary dl.compose-pricing { column-gap: .5rem; }
    .compose-summary dl.compose-pricing div:last-child dd { font-size: 1.35rem; }
}
/* Mobile-only shortcut: visible while the pack is further down the page. */
.compose-pack-fab {
    display: none;
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 70;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 46px;
    max-width: calc(100vw - 28px);
    padding: 10px 18px;
    border: 1px solid var(--ink);
    border-radius: 100px;
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
    white-space: nowrap;
    font: 650 .9rem/1.2 var(--sans);
    cursor: pointer;
}
.compose-pack-fab__count {
    font-variant-numeric: tabular-nums;
    font-size: .75rem;
    opacity: .85;
}
.compose-pack-fab:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }
@media (min-width: 761px) { .compose-pack-fab { display: none !important; } }
@media (min-width: 1160px) {
    .compose-layout {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        gap: .8rem clamp(16px, 2vw, 30px);
        align-items: start;
    }
    .compose-heading { margin: 0 0 .5rem; }
    .compose-sauce .compose-photo .hz-product-card__media {
        height: clamp(140px, 21vh, 220px);
        aspect-ratio: auto;
    }
    .compose-summary {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.2rem;
        padding: clamp(16px, 1.6vw, 26px);
    }
    .compose-slots { gap: clamp(4px, .65vw, 12px); margin-top: .9rem; }
    .compose-slot { grid-template-rows: clamp(155px, 21vh, 220px) auto; }
}
