/* Products are one continuous grid; optional filters and search stay together. */
.offerings-intro { padding-block: 30px 22px; }
.offerings-intro h1 { max-width: 850px; margin-top: 0; font-size: clamp(34px, 3.3vw, 44px); }
.offerings-intro > p:last-of-type { margin-top: 10px; max-width: 760px; font-size: 14px; }
.offerings-intro > a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: -10px; margin-bottom: 6px; color: var(--accent); font-size: 12px; }
.offerings-intro > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.catalogue-layout { padding-bottom: 42px; }
.catalogue-controls { padding-top: 2px; margin-bottom: 18px; }
.catalogue-tools { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(260px, 1fr); align-items: end; gap: 18px; max-width: 880px; padding: 16px 18px; border: 1px solid #dab6cf; border-radius: 4px; background: #f7eaf2; }
.catalogue-layout:not([data-catalogue-audience="retail"]) .catalogue-tools { grid-template-columns: minmax(0, 1.1fr) minmax(0, .85fr) minmax(0, 1.3fr); max-width: none; gap: 14px; }
.catalogue-tools > div { min-width: 0; }
.catalogue-tools label { display: block; color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.catalogue-tools select, .catalogue-search-row input { width: 100%; height: 46px; margin: 0; padding: 10px 12px; color: var(--cocoa); background: var(--white); border: 1px solid #b87da3; border-radius: 3px; font-size: 14px; }
.catalogue-tools select:hover, .catalogue-search-row input:hover { border-color: var(--accent); }
.catalogue-tools select:focus-visible, .catalogue-search-row input:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 3px; }
.catalogue-tools select { text-overflow: ellipsis; }
.catalogue-search-row { position: relative; }
.catalogue-search-row input { padding-right: 66px; }
.catalogue-search-row button { position: absolute; right: 5px; top: 1px; padding: 8px; min-height: 44px; background: none; border: 0; font-size: 12px; color: var(--accent); }
.catalogue-results { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; border-bottom: 1px solid var(--line); }
#catalogue-search-status { font-size: 12px; line-height: 1.5; color: var(--muted); }
#catalogue-reset { flex-shrink: 0; gap: 9px; color: var(--accent); font-size: 12px; }
#catalogue-reset > span { font-size: 17px; }
.catalogue-main { min-width: 0; }
.catalogue-anchor { display: none; }
.catalogue-main .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 24px; }
.catalogue-main .product-card { position: relative; min-width: 0; display: flex; flex-direction: column; }
.product-new, .product-best-seller, .product-seasonal { position: absolute; top: 12px; left: 0; z-index: 2; padding: 8px 20px 8px 12px; background: #efd0df; color: #702551; font: 600 10px/1.4 var(--sans); letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; pointer-events: none; clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%); }
.product-new { background: #ffe24c; color: #4f3308; }
.product-seasonal { background: #f3e6d6; color: #79512b; }
.product-new + .product-best-seller, .product-new + .product-seasonal, .product-best-seller + .product-seasonal { top: 48px; }
.product-new + .product-best-seller + .product-seasonal { top: 84px; }
.catalogue-main .product-image { width: 100%; height: auto; aspect-ratio: 5 / 4; flex-shrink: 0; border-radius: var(--image-radius); background: #fff; overflow: hidden; }
.catalogue-main .product-card .product-image.product-photograph { background: #f3e7d8; }
.catalogue-main .product-card .product-image.product-cutout { background: #fff; }
.preview-image.product-cutout { background: #fff; }
/* One frame shape keeps complete cake-and-slice arrangements and retail boxes visible. */
.catalogue-main .product-card .product-image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.catalogue-main .product-image:hover img { transform: none; }
.ingredient-brand-logo { display: block; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ingredient-brand-logo[src*="oreo-ingredient-logo"] { mix-blend-mode: normal; }
.catalogue-main .product-ingredient-mark { position: absolute; left: 12px; bottom: 12px; width: clamp(68px, 23%, 92px); pointer-events: none; line-height: 0; }
.catalogue-main .product-card .product-image .product-ingredient-mark img { width: 100%; height: auto; object-fit: contain; }
.catalogue-main [data-product-card="brasserie-godiva"] .product-ingredient-mark { left: auto; bottom: auto; right: 12px; top: 12px; width: clamp(60px, 21%, 80px); }
.catalogue-main .product-image .product-arrow { bottom: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: #fffdfaeb; color: var(--accent); }
.catalogue-main .product-info { display: flex; flex-direction: column; flex: 1; padding-top: 14px; }
.catalogue-main .card-brand { font-size: 11px; line-height: 1.5; color: var(--accent); font-weight: 600; }
.catalogue-main .card-format { font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.catalogue-main .card-availability { font-size: 11px; color: #79512b; line-height: 1.5; margin-top: 6px; }
.product-certifications { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; list-style: none; margin: 10px 0 0; padding: 0; }
.certification-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--cocoa); }
.certification-badge img { display: block; flex: 0 0 28px; width: 28px; height: 28px; object-fit: contain; }
.certification-badge span { font-size: 11px; line-height: 1.3; font-weight: 500; white-space: nowrap; }
/* Keep the back corner of the supplied pie boxes inside the shared 5:4 frame. */
.catalogue-main [data-brand="premium-pies"] .product-image img { object-position: center 46%; }
.catalogue-main [data-brand="lava-cakes"] .product-image img { object-position: center 65%; }
.catalogue-main [data-product-card="macaron-mango-passion-fruit"] .product-image img { object-position: center 70%; }
.catalogue-main .product-name { font: 23px/1.25 var(--serif); letter-spacing: -.3px; margin: 8px 0 0; }
.catalogue-main .product-description { font-size: 13px; line-height: 1.6; margin: 10px 0 15px; color: var(--muted); }
.product-trademark { margin: 8px 0 15px; font-size: 10px; line-height: 1.6; color: var(--muted); }
.catalogue-main .product-actions { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 4px 16px; }
.catalogue-main .product-actions a, .catalogue-main .product-static-details summary { font-size: 12px; min-height: 44px; line-height: 1.4; display: inline-flex; align-items: center; gap: 9px; }
.catalogue-main .product-actions a { color: var(--accent); }
.catalogue-main .product-actions .product-static-details[open] { flex-basis: 100%; }
.catalogue-main .product-static-details[open] summary { margin-bottom: 8px; }
.catalogue-main .product-static-details summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.catalogue-main .product-static-details .product-specs { line-height: 1.6; }
.catalogue-main .product-specs > div { grid-template-columns: minmax(85px, .5fr) minmax(0, 1fr); gap: 12px; }
.catalogue-main .product-specs dd { overflow-wrap: anywhere; }
.catalogue-empty { padding: 36px 24px; background: #eee4e9; text-align: center; border: 1px solid #dfcbd7; border-radius: 3px; }
.catalogue-empty h2 { font-size: 28px; }
.catalogue-empty p { font-size: 14px; margin-top: 12px; }
.catalogue-empty .text-link { color: var(--accent); margin-top: 8px; }
.catalogue-layout + .collection-end { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-block: 18px; }
.catalogue-layout + .collection-end p { font-size: 14px; }
.catalogue-layout + .collection-end .text-link { margin-top: 0; color: var(--accent); }
.product-specs { margin: 21px 0; font-size: 13px; }
.product-specs > div { display: grid; grid-template-columns: minmax(95px, .6fr) 1fr; gap: 15px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.product-specs dt { color: var(--muted); }
.product-specs dd { margin: 0; }
/* Awaiting product photography: keep specifications and enquiries available. */
.photo-pending,
.catalogue-main .product-image.photo-pending,
#product-dialog .product-detail-image.photo-pending {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px; text-align: center;
  color: #702551; background: #f1e8ed; border: 1px solid #dfcbd7;
}
.photo-pending-kicker { font: 9px/1.6 var(--sans); text-transform: uppercase; letter-spacing: 1.8px; }
.photo-pending-title { display: block; max-width: 200px; font: 29px/1.18 var(--serif); letter-spacing: -.4px; }
.flavour-logo { display: flex; align-items: center; gap: 16px; min-height: 72px; margin-top: 16px; }
.flavour-logo > span { color: var(--muted); font-size: 10px; }
.flavour-logo img { display: block; width: auto; height: 64px; max-width: 120px; object-fit: contain; }
.product-static-details { min-width: 0; flex: 1; }
.product-static-details summary { cursor: pointer; display: flex; align-items: center; gap: 9px; list-style: none; min-height: 44px; font-size: 11px; color: #8b356d; }
.product-static-details summary::-webkit-details-marker { display: none; }
.product-static-details .product-specs { margin-top: 0; font-size: 12px; }
.catalogue-main .product-actions:has(.product-static-details[open]) { display: block; }
.product-photo-options-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-photo-options img { object-fit: cover; object-position: center; }
.product-gallery-portrait .product-gallery-stage { height: auto; aspect-ratio: 5 / 4; }
.product-gallery-square { background: #fff; }
.product-gallery-square .product-gallery-stage { width: 100%; height: auto; aspect-ratio: 5 / 4; background: #fff; }
#product-dialog .product-gallery-stage { overflow: hidden; }
#product-dialog .product-gallery-stage img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
#product-dialog .product-photo-options img { aspect-ratio: 5 / 4; height: auto; object-fit: cover; }
#product-dialog[data-product-brand="premium-pies"] .product-gallery-stage { aspect-ratio: 1; }
/* Keep each gallery frame steady when switching between desserts and packaging. */
#product-dialog:is([data-product-brand="monteleone"], [data-product-group="brasserie-9"]) .product-gallery-stage,
#product-dialog[data-product-brand="monteleone"] .product-detail-image { aspect-ratio: 1; }
#product-dialog[data-product-brand="monteleone"] .product-photo-options { display: flex; justify-content: center; }
#product-dialog[data-product-brand="monteleone"] .product-photo-options button { flex: 1 1 0; max-width: 140px; }
#product-dialog[data-product-brand="monteleone"] .product-photo-options img { height: auto; aspect-ratio: 1; object-position: center; }
#product-dialog[data-product-brand="premium-pies"] .product-photo-options { display: flex; justify-content: center; }
#product-dialog[data-product-brand="premium-pies"] .product-photo-options button { flex: 1 1 0; max-width: 104px; }
#product-dialog[data-product-brand="premium-pies"] .product-photo-options img { aspect-ratio: 1; }
#product-dialog[data-product-group="brasserie-9"] .product-gallery-stage img { object-position: center 67%; }
#product-dialog[data-product-group="brasserie-9"] .product-gallery-stage img[src*="bakery-brasserie-box-"] { object-position: center; }
#product-dialog[data-product-group="brasserie-9"] .product-photo-options { display: flex; justify-content: center; }
#product-dialog[data-product-group="brasserie-9"] .product-photo-options button { flex: 1 1 0; max-width: 104px; }
#product-dialog[data-product-group="brasserie-9"] .product-photo-options img { aspect-ratio: 1; }
#product-dialog[data-product-id="macaron-mango-passion-fruit"] .product-gallery-stage img { object-position: center 70%; }
#product-dialog[data-product-group="cheesecakes-10"] .product-gallery-stage img:is([src*="-slice-800.webp"], [src*="-whole-800.webp"]) { transform: scale(1.12); }
#product-dialog[data-product-group="layer-cakes-10"] .product-gallery-stage img:is([src*="-slice-800.webp"], [src*="-whole-800.webp"]) { transform: scale(1.12); }
#product-dialog[data-product-brand="at-home"][data-product-group="single-slices"] .product-gallery-stage { aspect-ratio: 7 / 5; }
#product-dialog[data-product-brand="at-home"][data-product-group="single-slices"] .product-gallery-stage img { object-position: center 42%; }
#product-dialog[data-product-brand="at-home"][data-product-group="single-slices"] .product-gallery-stage:has(img[src*="-top-800.webp"]) { aspect-ratio: 8 / 5; }
#product-dialog[data-product-brand="at-home"][data-product-group="single-slices"] .product-gallery-stage:has(img[src*="-top-800.webp"]) img { object-position: center; }
#product-dialog[data-product-brand="at-home"][data-product-group="mini-cupcakes"] .product-gallery-stage { aspect-ratio: 5 / 4; }
#product-dialog[data-product-brand="at-home"][data-product-group="mini-cupcakes"] .product-gallery-stage img { object-position: center; }
#product-dialog[data-product-brand="at-home"][data-product-group="mini-cupcakes"] .product-gallery-stage:has(img[src*="-top-800.webp"]) { aspect-ratio: 5 / 2; }
#product-dialog[data-product-brand="at-home"] .product-gallery-stage:has(img[src*="-tray-800.webp"]) { aspect-ratio: 5 / 4; }
#product-dialog[data-product-brand="at-home"] .product-gallery-stage:has(img[src*="-tray-800.webp"]) img { object-position: center; }
#product-dialog[data-product-group="boxed-cheesecakes-6"] .product-gallery-stage:has(img[src*="-lying-800.webp"]) { aspect-ratio: 5 / 3; }
#product-dialog[data-product-group="boxed-cheesecakes-6"] .product-gallery-stage:has(img[src*="-grand-selection-slice-800.webp"]) { aspect-ratio: 2 / 1; }
#product-dialog[data-product-group="boxed-cheesecakes-6"] .product-gallery-stage img[src*="-slice-800.webp"] { transform: scale(1.4); }
#product-dialog[data-product-group="boxed-cheesecakes-6"] .product-gallery-stage img[src*="-grand-selection-slice-800.webp"] { transform: none; }
#product-dialog .product-detail-image { background: #fff; }
/* Soft grey presentation keeps the supplied packaging photographs intact. */
.product-soft-grey,
.catalogue-main .product-card .product-image.product-soft-grey,
.preview-image.product-soft-grey,
.product-soft-grey .product-gallery-stage,
.product-soft-grey .product-photo-options button,
.product-soft-grey .product-photo-options img { background: #f0f0f0; }
.product-soft-grey { isolation: isolate; }
.product-soft-grey img { mix-blend-mode: multiply; }
/* Product details: full photographs with compact facts and a shared action row. */
.product-brand-logo { display: block; width: 160px; height: 86px; max-width: 100%; object-fit: contain; object-position: left center; margin-bottom: 14px; }
.product-static-details .product-brand-logo { margin-top: 16px; width: 140px; height: 76px; }
.product-logo-lockup { display: flex; align-items: center; gap: 18px; min-width: 0; margin-bottom: 14px; }
.product-logo-lockup .product-brand-logo { flex: none; width: 140px; height: 76px; margin: 0; }
.product-logo-lockup .ingredient-brand-logo { flex: none; width: 80px; height: 58px; }
.product-static-details .product-logo-lockup { margin-top: 16px; }
#product-dialog { width: min(1040px, calc(100% - 40px)); }
#product-dialog[data-photo-aspect="portrait"] { width: min(940px, calc(100% - 40px)); }
#product-dialog .dialog-close { width: 44px; height: 44px; }
#product-dialog .product-detail-layout { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; }
#product-dialog[data-photo-aspect="portrait"] .product-detail-layout { grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); }
#product-dialog .product-gallery { align-self: center; }
#product-dialog .product-detail-copy { min-width: 0; padding: 48px 26px 24px; }
#product-dialog .product-detail-copy .eyebrow { padding-right: 34px; font-size: 9px; line-height: 1.5; }
#product-dialog .product-detail-copy h2 { margin-top: 8px; font-size: 30px; line-height: 1.15; overflow-wrap: anywhere; }
#product-dialog .product-certifications { margin-top: 14px; }
#product-dialog .product-detail-copy > p:not(.eyebrow) { margin-top: 12px; font-size: 13px; line-height: 1.6; }
#product-dialog .product-detail-copy > p.product-trademark { margin-top: 8px; font-size: 10px; line-height: 1.6; }
#product-dialog .product-specs { margin: 18px 0 0; font-size: 13px; line-height: 1.45; }
#product-dialog .product-specs > div { grid-template-columns: minmax(95px, .42fr) minmax(0, 1fr); gap: 14px; padding: 7px 0; }
#product-dialog .product-specs dd { overflow-wrap: anywhere; }
#product-dialog .product-detail-specifications { padding: 0 26px 24px; }
#product-dialog .product-detail-specifications .product-specs { margin-top: 0; }
#product-dialog .product-detail-specifications .product-specs > div { grid-template-columns: 180px minmax(0, 1fr); }
#product-dialog .product-detail-image { align-self: center; min-height: 0; height: auto; aspect-ratio: 5 / 4; overflow: hidden; }
#product-dialog .product-detail-image img { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; }
/* Portrait cupcake and lava photos fill the frame without sidebars. */
#product-dialog[data-gallery-fit="fill"] .product-gallery-stage { aspect-ratio: 1; overflow: hidden; }
#product-dialog[data-gallery-fit="fill"] .product-gallery-stage img { object-fit: cover; object-position: center 40%; }
#product-dialog[data-product-id="molten-lava-cake"] .product-gallery-stage img { object-position: center 65%; }
#product-dialog[data-gallery-fit="fill"] .product-photo-options { display: flex; justify-content: center; }
#product-dialog[data-gallery-fit="fill"] .product-photo-options button { flex: 1 1 0; max-width: 104px; }
#product-dialog[data-gallery-fit="fill"] .product-photo-options img { height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 40%; }
#product-dialog[data-product-id="molten-lava-cake"] .product-photo-options img { object-position: center 65%; }
/* One portrait frame preserves the open box lid and tray without sidebars. */
#product-dialog[data-product-id="molten-lava-cake"] .product-gallery-stage { aspect-ratio: 4 / 5; }
#product-dialog[data-product-id="molten-lava-cake"] .product-gallery-stage img[src*="lava-cake-box-"],
#product-dialog[data-product-id="molten-lava-cake"] .product-photo-options img[src*="lava-cake-box-"] { object-fit: cover; object-position: center; }
.product-detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 26px; border-top: 1px solid var(--line); }
.product-detail-footer-copy { max-width: 490px; }
.product-detail-footer .product-disclaimer { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.product-detail-footer .product-source-link { margin-top: 6px; font-size: 12px; }
.product-detail-footer .button { flex-shrink: 0; margin: 0; min-height: 46px; padding: 12px 18px; font-size: 12px; gap: 14px; }
@media (max-width: 760px) {
 #product-dialog, #product-dialog[data-photo-aspect="portrait"] { width: min(540px, calc(100% - 28px)); }
 #product-dialog[data-product-id="retail-6-grand-selection"] .product-gallery-stage img[src*="-grand-selection-slice-800.webp"] { object-position: center 25%; }
 #product-dialog .product-detail-layout, #product-dialog[data-photo-aspect="portrait"] .product-detail-layout { grid-template-columns: minmax(0, 1fr); }
 #product-dialog .product-detail-copy { padding: 24px; }
 #product-dialog .product-detail-specifications { padding: 0 24px 24px; }
 #product-dialog .product-detail-specifications .product-specs > div { grid-template-columns: minmax(95px, .42fr) minmax(0, 1fr); }
 #product-dialog .product-detail-copy .eyebrow { padding-right: 0; }
 #product-dialog .product-detail-copy h2 { font-size: 28px; }
 .product-detail-footer { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px 24px 22px; }
 .product-detail-footer .button { order: -1; justify-content: center; }
}
@media (max-width: 380px) {
 #product-dialog .product-detail-copy { padding: 20px; }
 #product-dialog .product-detail-specifications { padding-inline: 20px; }
 #product-dialog .product-detail-copy h2 { font-size: 26px; }
 #product-dialog .product-specs > div { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
 #product-dialog .product-detail-specifications .product-specs > div { grid-template-columns: 88px minmax(0, 1fr); }
 .product-detail-footer { padding-inline: 20px; }
}
@media (max-width: 1000px) {
 .catalogue-layout:not([data-catalogue-audience="retail"]) .catalogue-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .catalogue-layout:not([data-catalogue-audience="retail"]) .catalogue-search { grid-column: 1 / -1; }
 .catalogue-main .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
}
@media (max-width: 760px) {
 .offerings-intro { padding-block: 24px 18px; }
 .offerings-intro > p:last-of-type { font-size: 14px; line-height: 1.65; }
 .catalogue-tools, .catalogue-layout:not([data-catalogue-audience="retail"]) .catalogue-tools { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
 .catalogue-tools select, .catalogue-search-row input { font-size: 16px; }
 .catalogue-results { min-height: 56px; }
 .catalogue-layout { padding-bottom: 30px; }
 .catalogue-main .product-name { font-size: 22px; }
 .catalogue-main .product-description { font-size: 13px; }
 .catalogue-main .card-brand, .catalogue-main .card-format { font-size: 11px; }
 .catalogue-layout + .collection-end { gap: 12px; }
}
@media (max-width: 540px) {
 .catalogue-main .product-grid { grid-template-columns: 1fr; gap: 28px; }
 .catalogue-main .product-info { padding-top: 12px; }
 .catalogue-main .product-name { font-size: 23px; }
 .catalogue-main .product-actions a, .catalogue-main .product-static-details summary { font-size: 13px; }
}
