/* Shared product presentation. Colors follow the admin semantic theme contract. */
.mp-card{position:relative;display:flex;flex-direction:column;min-width:0;height:100%;border:1px solid var(--theme-border);border-radius:22px;overflow:hidden;background:var(--theme-surface);color:var(--theme-text);box-shadow:0 8px 24px #00000008;transition:box-shadow .2s,border-color .2s}
.mp-card *{box-sizing:border-box}
.mp-card:hover{border-color:var(--theme-focus);box-shadow:0 14px 32px #00000012}
.mp-card :is(a,button):focus-visible{outline:2px solid var(--theme-focus);outline-offset:3px}
.mp-card__visual{position:relative;background:#fff;min-width:0;padding:46px 0 0;overflow:hidden}
.mp-card__channel{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:8px;min-height:42px;padding:10px 20px;background:var(--theme-icon-bg);color:var(--theme-icon-text);font:750 11px/1.4 system-ui,sans-serif;z-index:1}
.mp-card__channel svg{width:19px;height:19px;flex:0 0 19px}
.mp-card.product-card--affiliate .mp-card__channel{background:var(--theme-accent-bg);color:var(--theme-accent-text);border-color:var(--theme-border)}
.mp-card__media{position:relative;display:grid;place-items:center;aspect-ratio:1;background:transparent;padding:0;overflow:hidden;color:var(--theme-heading)}
.mp-card__media>img{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;object-fit:contain}
.mp-card__placeholder{width:64px;height:64px;color:#536555;stroke-width:1.5}
.mp-card__offer-badge{position:absolute;right:16px;bottom:12px;background:var(--theme-primary-bg);color:var(--theme-primary-text);padding:8px 13px;border:1px solid var(--theme-primary-bg);border-radius:10px;font:800 12px/1.4 system-ui,sans-serif}
.mp-card__content{position:relative;display:flex;flex-direction:column;flex:1;min-width:0;padding:22px;background:var(--theme-surface);border-top:1px solid var(--theme-border)}
.mp-card__meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-bottom:10px;color:var(--theme-text-muted);font:650 11px/1.4 system-ui,sans-serif}
.mp-card__selection-label,.mp-card__sponsored{border:1px solid var(--theme-border);border-radius:6px;padding:4px 7px;background:var(--theme-accent-bg);color:var(--theme-accent-text)}
.mp-card__title{margin:0 0 15px;color:var(--theme-heading);font:750 18px/1.4 var(--font-heading,Georgia,serif);overflow-wrap:anywhere}
.mp-card__title>a{color:var(--theme-heading);text-decoration:none}
.mp-card__title>a:hover{text-decoration:underline;text-underline-offset:4px}
.mp-card__selected-by{margin:0 0 18px;color:var(--theme-text-muted);font:400 13px/1.6 system-ui,sans-serif}
.mp-card__footer{margin-top:auto;min-width:0}
.mp-card__campaign{margin:0 0 10px;color:var(--theme-link);font:650 12px/1.5 system-ui,sans-serif;overflow-wrap:anywhere}
.mp-card__price-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:6px 0 15px}
.mp-card__price{color:var(--theme-heading);font:800 23px/1.3 system-ui,sans-serif;overflow-wrap:anywhere}
.mp-card__price del{display:inline-block;margin-left:4px;color:var(--theme-text-muted);font:400 12px/1.5 system-ui,sans-serif}
.mp-card__stock{padding:5px 8px;border-radius:7px;background:var(--theme-success-bg);color:var(--theme-success-text);font:700 10px/1.4 system-ui,sans-serif}
.mp-card__stock--out{background:var(--theme-warning-bg);color:var(--theme-warning-text)}
.mp-card__actions{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch}
.mp-card__cart{display:flex;flex:1;min-width:0;margin:0}
.mp-card__button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;width:100%;min-width:0;min-height:46px;margin:0;padding:11px 12px;border:1px solid var(--theme-border);border-radius:11px;text-decoration:none;font:750 12px/1.4 system-ui,sans-serif;cursor:pointer;text-align:center}
.mp-card .mp-card__button--primary{background:var(--theme-primary-bg)!important;color:var(--theme-primary-text)!important;border-color:var(--theme-primary-bg)!important}
.mp-card .mp-card__button--primary:hover{background:var(--theme-primary-hover-bg)!important;color:var(--theme-primary-hover-text)!important}
.mp-card .mp-card__button--secondary{background:var(--theme-surface-muted)!important;color:var(--theme-link)!important;border-color:var(--theme-border)!important}
.mp-card__fulfilment,.mp-card__disclosure{margin:12px 0 0;color:var(--theme-text-muted);font:400 11px/1.55 system-ui,sans-serif}
.mp-card__countdown{margin-top:14px;padding-top:12px;border-top:1px solid var(--theme-border)}
.mp-chef-note{padding:16px;margin:0 0 20px;border:1px solid var(--theme-border);border-left:3px solid var(--theme-focus);border-radius:13px;background:var(--theme-surface-muted)}
.mp-chef-note__byline{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.mp-chef-note__byline>div{flex:1;min-width:0}
.mp-chef-note__avatar{position:relative;display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;overflow:hidden;background:var(--theme-icon-bg);color:var(--theme-icon-text);font:750 11px/1 system-ui,sans-serif}
.mp-chef-note__avatar img{width:100%;height:100%;object-fit:cover}
.mp-chef-note__label{display:block;color:var(--theme-link);font:700 10px/1.5 system-ui,sans-serif;letter-spacing:.03em}
.mp-chef-note__byline strong{display:block;color:var(--theme-heading);font:750 12px/1.5 system-ui,sans-serif;overflow-wrap:anywhere}
.mp-chef-note__byline>svg{width:22px;height:22px;flex:0 0 22px;color:var(--theme-icon)}
.mp-chef-note blockquote{margin:0;color:var(--theme-text);font:italic 15px/1.65 var(--font-heading,Georgia,serif);overflow-wrap:anywhere}
.mp-card--chef{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.15fr);height:auto;min-height:390px;padding:26px;gap:26px;isolation:isolate;background:var(--theme-hero-bg);color:var(--theme-hero-text)}
.mp-card__scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2}
.mp-card--chef:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(100deg,color-mix(in srgb,var(--theme-hero-bg) 38%,transparent),color-mix(in srgb,var(--theme-hero-bg) 86%,transparent) 48%,var(--theme-hero-bg))}
.mp-card--chef .mp-card__visual{grid-column:1;grid-row:1;display:flex;align-self:center;align-items:center;justify-content:center;aspect-ratio:1;padding:10px;background:var(--theme-surface);border-radius:18px;overflow:hidden;min-width:0}
.mp-card--chef .mp-card__media{width:100%;height:auto;min-height:0;aspect-ratio:1;border:0;border-radius:0;box-shadow:none;background:transparent}
.mp-card--chef .mp-card__media>img{border-radius:0}
.mp-card--chef .mp-card__content{grid-column:2;grid-row:1;padding:0;background:transparent;border:0}
.mp-card--chef .mp-card__title,.mp-card--chef .mp-card__title>a,.mp-card--chef .mp-card__price,.mp-card--chef .mp-chef-note__byline strong,.mp-card--chef .mp-chef-note blockquote{color:var(--theme-hero-text)}
.mp-card--chef .mp-card__title{font-size:25px;line-height:1.3}
.mp-card--chef .mp-card__meta,.mp-card--chef .mp-card__selected-by,.mp-card--chef .mp-card__fulfilment,.mp-card--chef .mp-card__price del{color:var(--theme-hero-muted)}
.mp-card--chef .mp-chef-note{background:color-mix(in srgb,var(--theme-hero-bg) 65%,transparent);border-color:color-mix(in srgb,var(--theme-hero-text) 25%,transparent);border-left-color:var(--theme-hero-text);padding:14px;margin-bottom:18px}
.mp-card--chef .mp-chef-note__label,.mp-card--chef .mp-chef-note__byline>svg,.mp-card--chef .mp-card__campaign{color:var(--theme-hero-text)}
.mp-card--chef .mp-card__offer-badge{top:12px;right:12px;bottom:auto}
.mp-card__amazon-info{display:flex;flex-direction:column;gap:12px}
.mp-card__amazon-info [itemprop=offers]{margin-top:auto}
.mp-card__amazon-info .mp-card__price{margin-bottom:8px}
.mp-card__availability{color:var(--theme-text-muted);font:650 12px/1.4 system-ui,sans-serif}
/* Marketplace cards share the chef artwork treatment, without implying chef endorsement. */
.mp-card--pantry{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto auto 1fr;gap:12px;padding:0;isolation:isolate;background:var(--theme-hero-bg);color:var(--theme-hero-text)}
.mp-card--pantry:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(145deg,color-mix(in srgb,var(--theme-hero-bg) 76%,transparent),color-mix(in srgb,var(--theme-hero-bg) 88%,transparent) 52%,var(--theme-hero-bg))}
.mp-card__brand-row{grid-column:1/-1;grid-row:1;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px;min-width:0}
.mp-brand-stamp{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;flex:0 0 auto;padding:9px 12px;min-height:60px;border:1px solid var(--theme-focus);border-radius:12px;background:var(--theme-surface);color:var(--theme-heading);box-shadow:0 3px 12px #0001}
.mp-brand-stamp>img{width:90px;height:29px;object-fit:contain}
.mp-brand-stamp>strong{font:800 18px/1.1 Georgia,serif}
.mp-brand-stamp small{display:block;font:750 8px/1.5 system-ui,sans-serif;letter-spacing:.2em;text-align:center}
.mp-brand-stamp>span{font:650 9px/1.3 system-ui,sans-serif;color:var(--theme-text-muted)}
.mp-card--pantry .mp-card__channel{position:static;flex:1;justify-content:flex-end;min-height:32px;padding:0;background:transparent;color:var(--theme-hero-text);font-size:10px;max-width:180px}
.mp-card--pantry.product-card--affiliate .mp-card__channel{background:transparent;color:var(--theme-hero-text)}
.mp-card--pantry .mp-card__visual{grid-column:1;grid-row:2;align-self:start;padding:10px;background:var(--theme-surface);border-radius:22px;overflow:hidden}
.mp-card--pantry .mp-card__media{aspect-ratio:1;border:0;border-radius:0;background:var(--theme-surface)}
.mp-card--pantry .mp-card__media>img{border-radius:0}
.mp-card--pantry .mp-card__content{display:contents}
.mp-card--pantry .mp-card__content>*{grid-column:1/-1;min-width:0}
.mp-card--pantry .mp-card__meta{grid-column:1;grid-row:3;margin:4px 0 0;align-self:end;color:var(--theme-hero-muted);font-size:11px}
.mp-card--pantry .mp-card__title{grid-column:1;grid-row:4;align-self:start;font-size:22px;margin:0;line-height:1.35}
.mp-card--pantry :is(.mp-card__title,.mp-card__title>a,.mp-card__price,.mp-chef-note__byline strong,.mp-chef-note blockquote,.mp-chef-note__label,.mp-chef-note__byline>svg,.mp-card__campaign){color:var(--theme-hero-text)}
.mp-card--pantry :is(.mp-card__fulfilment,.mp-card__disclosure,.mp-card__availability,.mp-card__price del){color:var(--theme-hero-muted)}
.mp-card--pantry .mp-chef-note{grid-row:5;margin:8px 0 0;background:color-mix(in srgb,var(--theme-hero-bg) 75%,transparent);border-color:color-mix(in srgb,var(--theme-hero-text) 25%,transparent)}
.mp-card--pantry .mp-card__footer{grid-row:6;align-self:end;margin-top:12px}
.mp-card--pantry .mp-card__price-row{margin-top:0}
.mp-card--pantry .mp-card__offer-badge{top:8px;right:8px;bottom:auto;padding:5px 8px;font-size:10px}
.mp-card--pantry .mp-card__amazon-info .mp-card__price{margin:0}
.mp-card--pantry .mp-card__brand-row{margin:20px 20px 0}
.mp-card--pantry .mp-card__content>*{margin-left:20px;margin-right:20px}
.mp-card--pantry .mp-card__footer{padding-bottom:22px}
.mp-card--pantry .mp-card__content>.mp-card__button{width:auto}
.mp-card--pantry .mp-card__content>.mp-card__disclosure:last-child{margin-bottom:22px}
.rp-chef-products{scroll-margin-top:100px;min-width:0;max-width:100%;container-type:inline-size}
.rp .rp-chef-products__head{display:flex;justify-content:space-between;align-items:end;gap:20px;flex-wrap:wrap;border-bottom:1px solid var(--theme-border);padding-bottom:20px;margin-bottom:22px}
.rp-chef-products__eyebrow{display:block;color:var(--theme-link);font:750 10px/1.5 system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;margin-bottom:8px}
.rp .rp-chef-products__head h2{margin:0;border:0;padding:0;color:var(--theme-heading);font:750 27px/1.3 var(--font-heading,Georgia,serif)}
.rp-chef-products__head p{max-width:580px;margin:10px 0 0;color:var(--theme-text-muted);font:400 13px/1.6 system-ui,sans-serif}
.rp-chef-products__list{display:flex;width:100%;min-width:0;gap:18px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:var(--theme-border) transparent;padding-bottom:12px;align-items:stretch}
.rp-chef-products__list[data-carousel-ready]{scrollbar-width:none;padding-bottom:0}
.rp-chef-products__list[data-carousel-ready]::-webkit-scrollbar{display:none}
.rp-chef-products__list>.recommendation-item{min-width:0;flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always}
.rp-chef-products__list>.recommendation-item>.mp-card{height:100%}
.rp-chef-products__list:focus-visible{outline:2px solid var(--theme-focus);outline-offset:3px;border-radius:22px}
.rp-chef-products__controls{display:flex;align-items:center;gap:10px;margin:0 0 14px;color:var(--theme-text-muted);font:650 12px/1.4 system-ui,sans-serif}
.rp-chef-products__controls[hidden]{display:none}
.rp-chef-products__controls>span{margin-right:auto}
.rp-chef-products__controls button{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--theme-border);border-radius:50%;background:var(--theme-surface-muted);color:var(--theme-link);font:700 20px/1 system-ui;cursor:pointer}
.rp-chef-products__controls button:disabled{opacity:.4;cursor:default}
.rp-chef-products__controls button:focus-visible{outline:2px solid var(--theme-focus);outline-offset:3px}
.rp-chef-products__controls output{min-width:38px;text-align:center;font-variant-numeric:tabular-nums}
.rp-recipe-dock .rp-dock-products-link{display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:7px 10px;margin-bottom:6px;border:1px solid var(--theme-border);border-radius:11px;background:var(--theme-accent-bg);color:var(--theme-accent-text);text-decoration:none;font:750 11px/1.4 system-ui,sans-serif}
.rp-dock-products-link svg{width:17px;height:17px;flex:0 0 17px}
.rp-dock-products-link span:last-child{margin-left:auto}
@media(max-width:900px){.mp-card--chef{padding:22px;gap:20px}.mp-card--chef .mp-card__title{font-size:22px}}
@media(max-width:600px){.mp-card__content{padding:18px}.rp .rp-chef-products__head h2{font-size:25px}}
/* Fit the recipe column itself, including desktop pages with a side rail. */
@container(max-width:560px){
 .mp-card--chef{grid-template-columns:minmax(0,.9fr) minmax(0,1fr);grid-template-rows:auto auto auto auto auto;min-height:0;padding:18px;column-gap:15px;row-gap:0}
 .mp-card--chef:before{background:linear-gradient(145deg,color-mix(in srgb,var(--theme-hero-bg) 75%,transparent),color-mix(in srgb,var(--theme-hero-bg) 88%,transparent) 50%,color-mix(in srgb,var(--theme-hero-bg) 96%,transparent))}
 .mp-card--chef .mp-card__content{display:contents}
 .mp-card--chef .mp-card__visual{grid-column:1/-1;grid-row:1;align-self:start}
 .mp-card--chef .mp-card__media{border-radius:0;aspect-ratio:1}
 .mp-card--chef .mp-card__media>img{border-radius:0}
 .mp-card--chef .mp-card__meta{grid-column:1/-1;grid-row:2;margin-top:18px;align-self:end;font-size:11px}
 .mp-card--chef .mp-card__title{grid-column:1/-1;grid-row:3;font-size:22px;margin:8px 0 12px;align-self:start}
 .mp-card--chef .mp-card__selected-by{grid-column:1/-1;grid-row:4;font-size:12px}
 .mp-card--chef .mp-chef-note{grid-column:1/-1;grid-row:5;margin:12px 0}
 .mp-card--chef .mp-card__footer{grid-column:1/-1;grid-row:6;margin-top:12px}
 .mp-card--chef .mp-card__offer-badge{font-size:10px;padding:5px 8px}
}
@media(prefers-reduced-motion:reduce){.mp-card{transition:none}}
