/* Concept 03: preserve all configured artwork, theme roles and purchase flows. */
body.sf-enhanced {
 --sf-paper:var(--tdf-page,#f8f7f2); --sf-line:var(--tdf-border,#dce3dd);
 --sf-pine:var(--tdf-primary,#087a45); background:var(--sf-paper);
}
.sf-page-scroll { min-width:0; }
.sf-page-scroll:focus { outline:none!important; box-shadow:none!important; }
html body.sf-enhanced.web-order .main-head,
html body.sf-enhanced.web-order .main-head.has-realm-segments {
 position:static; display:flex!important; flex-wrap:wrap; gap:12px 20px;
 padding:16px max(20px,calc((100% - 1440px)/2)); background:var(--tdf-surface,#fff);
 border-bottom:1px solid var(--sf-line); box-shadow:none;
}
html body.sf-enhanced .main-head:before { display:none; }
html body.sf-enhanced .main-head .wordmark { order:0; flex:0 1 230px; min-width:0; }
html body.sf-enhanced .main-head .sf-header-search {
 display:block!important; order:1; flex:1 1 320px; min-width:180px; margin:0; width:auto;
}
html body.sf-enhanced .main-head .sf-header-search .search-hint { display:none; }
html body.sf-enhanced .main-head .sf-header-search .search-control {
 min-height:48px; border:1px solid var(--sf-line); border-radius:10px; background:var(--tdf-surface,#fff);
}
html body.sf-enhanced .main-head .sf-header-search input { min-width:0; width:100%; font-size:16px!important; }
html body.sf-enhanced .main-head #search-shortcut { display:none!important; }
html body.sf-enhanced .header-account-cart { order:2; flex:0 1 auto; width:auto; margin:0; gap:16px; }
html body.sf-enhanced .main-head .realm-segments { order:3; margin:0; border-radius:10px; }
html body.sf-enhanced .realm-segments button { border-radius:8px; min-height:44px; }
html body.sf-enhanced .main-head .commerce-realm-tools { order:4; }
html body.sf-enhanced:has(.sf-gift-entry:not([hidden])) .main-head .commerce-realm-tools { display:none; }
html body.sf-enhanced .main-head .reader-tools { order:5; margin-left:auto; }
html body.sf-enhanced .main-head .v9-account { font-size:14px; max-width:180px; }
html body.sf-enhanced .main-head #cart-open {
 display:flex; align-items:center; gap:7px; min-width:44px; min-height:44px;
 padding:10px 14px; border:1px solid var(--sf-pine); border-radius:9px;
 background:var(--sf-pine)!important; color:var(--tdf-on-primary,#fff)!important;
}
html body.sf-enhanced .v9-header-total { display:none; }
.sf-enhanced .v9-top-split { max-width:1480px; margin:20px auto 0; padding:0 20px; }
.sf-enhanced #events { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
.sf-enhanced #events>.v9-hero,.sf-enhanced #events>.hero { grid-column:1/-1; grid-row:1; margin:0; width:100%; }
.sf-enhanced #events>.fm-strip { grid-column:1/-1; grid-row:2; }
.sf-enhanced #events>.v9-category-strip { grid-column:1/-1; grid-row:3; }
.sf-enhanced #events>.v9-featured { grid-column:1/-1; grid-row:4; margin:0; }
.sf-enhanced .v9-hero { border:1px solid var(--sf-line); background:var(--tdf-surface,#fff); border-radius:14px; }
/* Reserve a compact frame so every event keeps the same height as slides rotate. */
.sf-enhanced .v9-hero-track { position:relative; aspect-ratio:4.5; max-height:320px; }
.sf-enhanced .v9-hero-slide { position:absolute; inset:0; height:100%; }
.sf-enhanced .v9-hero-slide picture,.sf-enhanced .v9-hero-slide img { display:block; width:100%; height:100%; max-height:none; object-fit:cover; object-position:center; }
.sf-enhanced .sf-hero-campaign { background:#14251d; text-decoration:none; color:#fff6de; }
.sf-hero-campaign::before {
 content:''; position:absolute; inset:0; pointer-events:none;
 background:linear-gradient(90deg,#0c160fe8 0%,#0c160fa6 34%,#0c160f33 55%,transparent 72%);
}
.sf-campaign-copy {
 position:absolute; inset:8px 52% 8px clamp(52px,5vw,76px); pointer-events:none;
 display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:6px;
 text-shadow:0 1px 3px #000b;
}
.sf-campaign-title { font:750 clamp(22px,3.35vw,52px)/1.12 'Segoe UI',system-ui,sans-serif; text-wrap:balance; }
.sf-campaign-subtitle { font-size:clamp(13px,1.35vw,19px); line-height:1.25; }
.sf-campaign-season { color:#f4d6a1; font-size:clamp(10px,1vw,13px); line-height:1.2; }
.sf-campaign-action { padding:4px 10px; border:1px solid #e9c889; border-radius:6px; font-size:clamp(11px,1.15vw,15px); font-weight:650; line-height:1.2; }
.sf-enhanced .v9-hero-controls { display:flex; align-items:center; justify-content:center; gap:8px; padding:5px 8px; }
html body.sf-enhanced .v9-hero-controls>button { display:inline-flex!important; flex:0 0 auto; min-height:44px; min-width:44px; }
.sf-enhanced .v9-hero-dots { display:flex; flex:1; justify-content:center; flex-wrap:wrap; gap:2px; }
html body.sf-enhanced.web-order .v9-hero-dots button { width:28px!important; min-width:28px!important; height:44px; padding:8px!important; }
.sf-enhanced .v9-hero-pause { font-size:12px!important; padding:8px!important; white-space:nowrap; }
.sf-gift-entry {
 display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
 min-width:0; padding:18px; gap:12px; border:1px solid #d0bd98; border-radius:14px;
 text-decoration:none; background:#f9efdc; color:#143a2f;
}
.sf-gift-entry[hidden] { display:none; }
.sf-gift-thumb { position:relative; display:block; width:100%; height:125px; overflow:hidden; border-radius:9px; }
.sf-gift-thumb .fm-picture { background-size:cover; }
.sf-gift-copy { min-width:0; display:grid; gap:6px; }
.sf-gift-copy strong { font-size:21px; line-height:1.35; }
.sf-gift-copy small { font-size:13px!important; line-height:1.5; }
.sf-gift-arrow { font-size:26px; line-height:1; }
.sf-enhanced .fm-strip { display:block; margin:0; width:100%; }
.sf-enhanced .fm-track { height:auto; gap:14px; }
.sf-enhanced .fm-track>.fm-art { flex:0 0 calc((100% - 28px)/3); height:clamp(120px,13vw,190px); }
.sf-enhanced .fm-art { border-radius:12px; }
.sf-enhanced .fm-picture.fm-gift { --sf-group-desktop:url('/assets/compact_banners/gift-desktop.webp'); --sf-group-mobile:url('/assets/compact_banners/gift-mobile.webp'); }
.sf-enhanced .fm-picture.fm-beef { --sf-group-desktop:url('/assets/compact_banners/beef-desktop.webp'); --sf-group-mobile:url('/assets/compact_banners/beef-mobile.webp'); }
.sf-enhanced .fm-picture.fm-pork { --sf-group-desktop:url('/assets/compact_banners/pork-desktop.webp'); --sf-group-mobile:url('/assets/compact_banners/pork-mobile.webp'); }
.sf-enhanced .fm-picture.fm-seafood { --sf-group-desktop:url('/assets/compact_banners/seafood-desktop.webp'); --sf-group-mobile:url('/assets/compact_banners/seafood-mobile.webp'); }
.sf-enhanced .fm-picture:is(.fm-gift,.fm-beef,.fm-pork,.fm-seafood) { background-image:var(--sf-group-desktop); }
.sf-enhanced .fm-controls { gap:8px; }
.sf-enhanced .v9-category-strip { display:flex; gap:8px; margin:0; padding:2px 0 10px; align-items:stretch; border:0; background:transparent; }
html body.sf-enhanced .v9-category-strip button {
 display:flex; flex-direction:row; align-items:center; gap:8px; flex:0 0 auto;
 min-height:48px; padding:8px 14px; font-size:13px; white-space:nowrap;
 border:1px solid var(--sf-line); border-radius:10px; background:var(--tdf-surface,#fff)!important;
}
html body.sf-enhanced .v9-category-strip button img { display:block; width:36px; height:30px; border-radius:6px; margin:0; object-fit:cover; }
html body.sf-enhanced .v9-category-strip .v9-category-all { width:36px; height:30px; margin:0; border-radius:6px; font-size:22px; }
html body.sf-enhanced .v9-category-strip button[aria-current=true] { background:var(--tdf-soft,#eaf7f0)!important; color:var(--sf-pine)!important; border-color:var(--sf-pine); }
html body.sf-enhanced .v9-category-strip button[aria-current=false] { color:var(--tdf-text,#17221c)!important; }
.sf-enhanced .main-content { width:100%; max-width:1480px; padding:20px; }
html body.sf-enhanced .products-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
html body.sf-enhanced .product-card { display:flex; flex-direction:column; border:1px solid var(--sf-line); border-radius:13px; background:var(--tdf-surface,#fff); box-shadow:none; min-width:0; text-decoration:none; }
html body.sf-enhanced .product-art { height:auto; aspect-ratio:1.5; min-height:0; background:#f3f5f2; }
html body.sf-enhanced .product-art img { width:100%; height:100%; object-fit:contain; }
.sf-enhanced .product-card .product-info { flex:1; padding:14px 14px 8px; min-width:0; }
html body.sf-enhanced .product-info h3 { font-size:15px!important; line-height:1.5!important; min-height:0; margin:8px 0; }
.sf-enhanced .product-price { font-variant-numeric:tabular-nums; }
.sf-card-action { display:flex; align-items:center; justify-content:center; min-height:44px; padding:8px; margin:6px 12px 12px; border:1px solid var(--sf-pine); border-radius:8px; color:var(--sf-pine); font-size:14px; font-weight:650; }
.sf-enhanced a.product-card:hover .sf-card-action { background:var(--tdf-soft,#eaf7f0); }
.sf-enhanced .sf-icon { display:block; width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
@media (min-width:701px)  and (min-height:501px),(min-width:1001px) {
 .sf-enhanced.web-order--product .sf-page-scroll { padding-bottom:0; }
 .sf-enhanced .fm-strip:has(>.sf-gift-entry:not([hidden])) { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,3fr); gap:14px; align-items:start; }
 .sf-enhanced .fm-track>.fm-art { height:var(--fm-height,190px); }
 .sf-enhanced .fm-strip>.sf-gift-entry { position:relative; display:block; overflow:hidden; height:var(--fm-height,190px); padding:0; border-radius:12px; }
 .sf-enhanced .fm-strip>.sf-gift-entry .sf-gift-thumb { position:absolute; inset:0; width:100%; height:100%; border-radius:0; }
 .sf-enhanced .fm-strip>.sf-gift-entry .sf-gift-copy { position:relative; display:block; }
 .sf-enhanced .fm-strip>.sf-gift-entry .sf-gift-copy strong { display:block; padding:12px 12px 28px; background:linear-gradient(#fff9ede8,#fff9edb0,transparent); font:650 19px/1.3 'Segoe UI',system-ui,sans-serif; color:#143a2f; overflow-wrap:anywhere; }
 .sf-enhanced .fm-strip>.sf-gift-entry :is(.sf-gift-copy small,.sf-gift-arrow) { display:none; }
}
@media (min-width:701px) and (max-width:1099px)  and (min-height:501px),(min-width:1001px) and (max-width:1099px) {
 html body.sf-enhanced .products-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:700px) ,(max-width:1000px)  and (max-height:500px){
 html.sf-root { height:100%; overflow:hidden; scroll-padding:0; }
 html body.sf-enhanced.web-order {
  display:grid; grid-template-rows:minmax(0,1fr) auto;
  height:100vh; height:100svh; min-height:0; width:100%; margin:0; padding:0!important; overflow:hidden;
 }
 .sf-enhanced .sf-page-scroll { grid-row:1; min-height:0; overflow:auto; scrollbar-gutter:stable; overscroll-behavior-y:contain; -webkit-overflow-scrolling:touch; scroll-padding:16px; padding-bottom:16px; }
 .sf-enhanced.tdf-overlay-active .sf-page-scroll { overflow:hidden; }
 html body.sf-enhanced.web-order .main-head,
 html body.sf-enhanced.web-order .main-head.has-realm-segments { display:grid!important; grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:12px; }
 html body.sf-enhanced .main-head .wordmark { grid-row:1; grid-column:1; order:0; flex:1 1 170px; margin:0; }
 html body.sf-enhanced .main-head .wordmark strong { font-size:19px; }
 html body.sf-enhanced .main-head .brand-logo { width:36px; height:36px; }
 html body.sf-enhanced .header-account-cart { grid-row:1; grid-column:2; order:1; flex:0 0 auto; }
 html body.sf-enhanced .header-account-cart .v9-account { display:none; }
 html body.sf-enhanced.web-order .main-head .header-account-cart #cart-open,
 html body.sf-enhanced.web-order .main-head>#cart-open { grid-row:1; grid-column:2; display:flex; flex-wrap:nowrap; font-size:12px!important; min-width:44px; width:auto; max-width:120px; padding:8px; }
 html body.sf-enhanced.web-order .main-head #cart-open:before,
 html body.sf-enhanced.web-order .main-head #cart-open:after { display:none!important; }
 html body.sf-enhanced .main-head #v9-header-search.sf-header-search { grid-row:2; grid-column:1/-1; order:2; flex:1 1 100%; min-width:0; width:100%; }
 html body.sf-enhanced.web-order .main-head .realm-segments:not([hidden]) { grid-row:3; grid-column:1/-1; order:3; display:flex; flex:1 1 100%; width:100%; max-width:none; }
 html body.sf-enhanced .realm-segments button { flex:1; min-width:0; }
 html body.sf-enhanced .main-head .reader-tools { grid-row:4; grid-column:1/-1; margin:0; width:100%; }
 .sf-enhanced .v9-top-split { margin:12px auto 0; padding:0 12px; }
 .sf-enhanced #events { display:flex; flex-direction:column; gap:12px; }
 .sf-enhanced #events>.v9-hero,.sf-enhanced #events>.hero { order:0; flex:none; }
 .sf-enhanced #events>.sf-gift-entry { order:1; }
 .sf-enhanced #events>.fm-strip { order:2; }
 .sf-enhanced #events>.v9-category-strip { order:3; }
 .sf-enhanced #events>.v9-featured { order:4; }
 .sf-enhanced .v9-hero-track { aspect-ratio:2.8; max-height:200px; }
 .sf-hero-campaign::before { background:linear-gradient(90deg,#0c160ff0 0%,#0c160fbb 42%,#0c160f44 65%,transparent 85%); }
 .sf-campaign-copy { inset:4px 37% 4px 10px; gap:2px; }
 .sf-campaign-title { font-size:clamp(16px,4.6vw,30px); line-height:1.1; text-wrap:wrap; }
 .sf-campaign-subtitle { font-size:clamp(11px,2.9vw,16px); line-height:1.15; }
 .sf-campaign-season { font-size:clamp(8px,2.15vw,12px); }
 .sf-campaign-action { padding:3px 7px; font-size:clamp(10px,2.3vw,14px); }
 /* The tabs provide direct slide navigation on phones. Reserve 44px targets
    rather than squeezing four dots between another pair of arrow buttons. */
 html body.sf-enhanced .v9-hero-controls>button:not(.v9-hero-pause) { display:none!important; }
 .sf-enhanced .v9-hero-dots { gap:0; }
 html body.sf-enhanced.web-order .v9-hero-dots button { width:44px!important; min-width:44px!important; }
 .sf-enhanced .sf-gift-entry { flex-direction:row; align-items:center; justify-content:flex-start; min-height:72px; padding:10px 12px; gap:12px; background:#143a2f; color:#fff; border-color:#143a2f; }
 .sf-enhanced .sf-gift-thumb { flex:0 0 48px; width:48px; height:48px; background:#fff8e9; }
 .sf-enhanced .sf-gift-copy { flex:1; gap:3px; }
 .sf-enhanced .sf-gift-copy strong { font-size:18px; }
 .sf-enhanced .sf-gift-copy small { color:#f7e4b9; font-size:12px!important; }
 .sf-enhanced .sf-gift-arrow { flex:none; }
 .sf-enhanced .fm-track>.fm-art { flex:0 0 46%; height:96px; }
 .sf-enhanced .fm-picture:is(.fm-gift,.fm-beef,.fm-pork,.fm-seafood) { background-image:var(--sf-group-mobile); }
 .sf-enhanced .fm-title { font-size:16px; }
 .sf-enhanced .v9-hero-controls { gap:3px; padding:2px; }
 html body.sf-enhanced .v9-hero-controls>button { min-width:36px; padding:6px!important; }
 html body.sf-enhanced .v9-hero-dots button { min-width:24px; width:24px; }
 .sf-enhanced .main-content { padding:16px 12px; }
 html body.sf-enhanced .products-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:10px; }
 .sf-enhanced .product-card .product-info { padding:10px 10px 6px; }
 html body.sf-enhanced .product-info h3 { font-size:14px!important; }
 .sf-card-action { margin:4px 8px 8px; font-size:12px; }
 html body.sf-enhanced .v9-bottom-nav {
  display:grid!important; grid-template-columns:repeat(5,minmax(0,1fr)); grid-row:2;
  position:static!important; inset:auto!important; transform:none!important;
  width:100%; min-width:0; height:auto; margin:0; gap:0; z-index:30;
  padding:7px max(4px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));
  background:var(--tdf-surface,#fff); border-top:1px solid var(--sf-line); box-shadow:none;
 }
 html body.sf-enhanced .v9-bottom-nav>a,
 html body.sf-enhanced .v9-bottom-nav>.v9-cart-shortcut {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  position:static!important; inset:auto!important; width:auto; min-width:0; height:auto;
  min-height:48px; margin:0; padding:4px 1px; border:0; border-radius:0;
  background:transparent!important; color:var(--tdf-text,#17221c)!important; box-shadow:none;
 }
 html body.sf-enhanced .v9-bottom-nav :is(small,.v9-cart-shortcut__label) { font-size:11px!important; line-height:1.3!important; white-space:nowrap; }
 html body.sf-enhanced .v9-bottom-nav>a[aria-current=page] { color:var(--sf-pine)!important; font-weight:700; }
 html body.sf-enhanced .v9-bottom-nav .v9-cart-shortcut__icon { display:block; line-height:1; }
 html body.sf-enhanced .v9-bottom-nav .v9-cart-shortcut__badge { position:absolute; margin-left:25px; margin-top:-25px; min-width:17px; font-size:10px; }
 /* Dialog viewport geometry is shared by ui_centered_layout.css. */

 .sf-enhanced .cart-panel>.cart-header { grid-row:1; }
 .sf-enhanced .cart-panel>.cart-panel__scroll { grid-row:2; }
 .sf-enhanced .cart-panel>.cart-panel__footer { grid-row:3; position:static; }
 html body.sf-enhanced>.sf-product-dock {
  grid-row:2; position:static!important; inset:auto!important; display:grid; grid-template-columns:1fr;
  gap:8px; margin:0; padding:10px 12px max(10px,env(safe-area-inset-bottom)); min-width:0;
  background:var(--tdf-surface,#fff); border-top:1px solid var(--sf-line); box-shadow:none; z-index:30;
 }
 .sf-enhanced>.sf-product-dock .variant-submit-meta { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
 .sf-enhanced>.sf-product-dock .variant-submit-meta strong { color:var(--sf-pine); font-size:20px; }
 .sf-enhanced>.sf-product-dock .product-buy-actions { display:grid; grid-template-columns:1fr 1fr!important; gap:8px; }
 .sf-enhanced>.sf-product-dock .product-buy-actions button { min-width:0; min-height:44px; white-space:normal; }
 html body.sf-enhanced>.sf-product-dock #product-cart-shortcut:not([hidden]) {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
  gap:4px 8px; min-height:44px; padding:8px 10px; border:1px solid var(--sf-pine);
  border-radius:8px; background:var(--tdf-soft,#eaf7f0); color:var(--sf-pine);
 }
 html body.sf-enhanced>.sf-product-dock #product-cart-shortcut :is(span,strong) { font-size:12px!important; color:var(--sf-pine)!important; line-height:1.35; }
 html body.sf-enhanced>.sf-product-dock .ux-cart-added:not([hidden]) { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; padding:8px; border:1px solid var(--sf-line); border-radius:8px; background:var(--tdf-soft,#eaf7f0); }
 .sf-enhanced>.sf-product-dock .ux-cart-added>div { min-width:0; }
 .sf-enhanced>.sf-product-dock .ux-cart-added :is(strong,small) { display:block; font-size:12px!important; line-height:1.4; color:var(--tdf-text,#17221c); overflow-wrap:anywhere; }
 /* Retain the row while the modal covers it, so a bottom-scrolled page is
    not clamped to a shorter scroll range and moved when the cart closes. */
 html body.sf-enhanced.tdf-overlay-active>.sf-product-dock { visibility:hidden; }
 .sf-enhanced .cart-panel__footer { max-height:48svh; overflow:auto; }
}
@media (max-width:360px) {
 .sf-enhanced .sf-gift-copy strong { font-size:16px; }
 .sf-enhanced .sf-gift-entry { gap:8px; }
 html body.sf-enhanced .product-info h3 { font-size:13px!important; }
 html body.sf-enhanced .product-price { font-size:17px!important; }
}
@media (prefers-reduced-motion:reduce) { .sf-enhanced * { scroll-behavior:auto!important; } }
@media print { .sf-enhanced .v9-bottom-nav,.sf-enhanced>.sf-product-dock { display:none!important; } .sf-enhanced .sf-page-scroll { overflow:visible; height:auto; } }
