:root {
  --banner-orchard: #651e29;
  --market-warm: #faf6ef;
  --market-leaf: #eef4ed;
  --gutter: max(24px, calc((100vw - 1200px) / 2));
  color: var(--ink);
  background: var(--paper);
}
.ui-icon {
  inline-size: var(--icon-size);
  block-size: var(--icon-size);
  flex: 0 0 auto;
  vertical-align: middle;
}
:is(button,input,select,textarea) { border-radius: var(--control-radius); }
:is(input,select,textarea) { border-color: var(--interactive-line); }
:focus-visible { outline-color: var(--focus); }
.with-icon { display: inline-flex; align-items: center; gap: 8px; }
button.with-icon, a.with-icon { justify-content: center; }
.site-header {
  grid-template-columns: auto minmax(160px,1fr) auto;
  gap: 0 26px;
  padding: 0 var(--gutter);
  border-color: var(--line);
}
.site-header .brand { min-height: 70px; }
#market-search {
  border: 1px solid var(--interactive-line);
  background: var(--surface);
  border-radius: var(--control-radius);
  gap: 0;
}
#market-search :is(input,button) { border: 0; background: transparent; }
#market-search input { flex: 1; min-height: 44px; color: var(--ink); }
#market-search:focus-within { border-color: var(--focus); }
#market-search button {
  margin: 2px;
  background: var(--surface);
  border-radius: calc(var(--control-radius) - 2px);
  color: var(--ink);
  min-height: 44px;
  padding: 6px 13px;
}
#market-search button:where(:not(:disabled)):hover { background: var(--surface-strong); }
.shop-tools { justify-content: end; gap: 5px; }
.shop-tools > button:hover, #operator-nav button:hover { background: var(--surface); color: var(--deep); }
.shop-tools > button[aria-current="page"], #operator-nav button[aria-current="page"] {
  box-shadow: inset 0 -2px var(--accent);
  color: var(--deep);
}
.basket-shell {
  display: flex;
  align-items: center;
  align-self: center;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0 9px 0 0;
  border-radius: var(--card-radius);
}
.basket-shell:has([aria-current="page"]) { border-color: var(--accent); background: var(--accent-soft); }
.site-header #menu-cart {
  background: transparent;
  color: var(--ink);
  padding: 6px 8px;
}
#menu-cart:hover { text-decoration: underline; }
#cart-count { font-weight: 650; }
.cart-header-subtotal { border-left: 1px solid var(--line); padding-left: 7px; display: grid; min-width: 0; line-height: 1.2; }
.cart-header-subtotal small { color: var(--muted); font-size: 11px; }
#cart-value { font-variant-numeric: tabular-nums; color: var(--ink); }
.delivery-strip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 46px;
  color: var(--muted);
  background: var(--surface);
  box-shadow: 0 0 0 100vmax var(--surface);
  clip-path: inset(0 -100vmax);
  font-size: .86rem;
}
.delivery-strip .ui-icon { color: currentColor; }
.delivery-divider { width: 4px; height: 4px; background: var(--interactive-line); border-radius: 50%; }
.header-buying-guide { min-height: 44px; padding: 0 8px; color: var(--ink); font-size: inherit; font-weight: 700; }
.header-buying-guide:hover { text-decoration: underline; }
#delivery-help { min-height: 44px; margin-left: auto; padding: 5px 10px; border-color: var(--info-line); background: var(--info-surface); color: var(--info-ink); }
#delivery-help:hover { text-decoration: underline; }
#delivery-help.secondary:not(:disabled):hover { background: var(--info-surface); color: var(--info-ink); }
.delivery-button-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; text-align: start; }
.delivery-button-copy small { text-decoration: underline; }
#delivery-help-label { overflow-wrap: anywhere; }
#operator-nav button { color: var(--deep); }
main { max-width: 1248px; padding: 20px 24px 34px; }
#market-shortcuts {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 10px;
  margin-bottom: 13px;
}
#market-shortcuts a {
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: 59px;
  padding: 5px 12px 5px 7px;
  border-radius: var(--card-radius);
  border-color: var(--line);
  color: var(--ink);
  background: var(--paper);
  text-align: center;
  line-height: 1.25;
}
#market-shortcuts a[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--deep);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
#market-shortcuts :is(img,.ui-icon) {
  flex: 0 0 auto;
  width: 52px;
  height: 43px;
  object-fit: cover;
  border-radius: 6px;
}
#market-shortcuts .ui-icon { width: 42px; padding: 9px; color: var(--ink); background: var(--surface); }
#products #campaign-shortcut { display: grid; align-content: center; justify-content: center; gap: 2px; color: var(--deep); background: var(--accent-soft); border-color: var(--accent-line); }
#products #campaign-shortcut[hidden] { display: none; }
#campaign-shortcut small { font-size: .7rem; font-weight: 500; }
#market-shortcuts [aria-current="true"] .ui-icon { color: var(--deep); background: var(--accent-soft); }
.market-feature { position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; background: #391923; }
.carousel-jump:focus { border-radius: 8px; }
.carousel-return:focus { top: auto; bottom: 10px; }
@media (min-width: 1296px) {
  .market-feature { margin-inline: max(-72px,calc((1248px - 100vw) / 2)); }
}
#market-slides { display: grid; touch-action: pan-y pinch-zoom; }
.market-slide {
  --hero-surface: #391923;
  display: grid;
  grid-area: 1 / 1;
  grid-template-columns: minmax(0,3fr) minmax(0,5fr);
  min-height: clamp(306px,30vw,434px);
  background: var(--hero-surface);
  color: var(--paper);
}
/* Hidden banners still size the shared grid so automatic rotation keeps the controls in place. */
.market-slide[hidden] { display: grid !important; visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .market-slide:not([hidden]) { animation: show-market-banner .22s ease-out; }
  @keyframes show-market-banner { from { opacity: .65; } }
}
.market-slide[data-kind="collection"] { --hero-surface: var(--banner-orchard); }
.market-slide[data-creative="mushrooms"] { --hero-surface: #25382c; }
.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  min-width: 0;
  padding: 34px clamp(20px,4.1vw,66px);
}
.hero-copy h2, .campaign-copy :is(h3,h4), .campaign-section h2, .catalog-title h2 {
  line-height: 1.25;
  letter-spacing: -.037em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hero-copy h2 { margin: 12px 0 14px; font-size: clamp(1.85rem,3.8vw,3.38rem); font-weight: 820; line-height: 1.08; }
.hero-copy p { margin: 0 0 22px; max-width: 30ch; font-size: 1rem; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.hero-copy .hero-eyebrow { margin: 0; color: #ffe8cf; font-size: .85rem; font-weight: 700; }
.hero-eyebrow::before { content: ''; display: inline-block; width: 18px; height: 2px; margin-inline-end: 8px; background: currentColor; vertical-align: middle; }
.hero-cta { min-height: 44px; max-width: 100%; border-radius: var(--control-radius); padding: 6px 17px; background: var(--paper); color: var(--deep); font-size: .875rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.hero-cta:hover { background: var(--surface-strong); text-decoration: underline; text-underline-offset: 3px; }
.market-slide :focus-visible { outline-color: var(--paper); }
.market-hero-media, .campaign-media { position: relative; min-width: 0; background: var(--surface); overflow: hidden; }
.market-hero-media img, .campaign-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.market-hero-media { background: var(--hero-surface); }
.market-hero-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg,var(--hero-surface) 0,transparent 23%); }
#market-intro .market-hero-media img { object-position: right 56%; }
.market-slide[data-creative="orchard"] .market-hero-media img { object-position: 65% center; }
.market-slide[data-creative="kitchen"] .market-hero-media img { object-position: 69% center; }
.market-slide:has(.market-hero-media:empty) { grid-template-columns: minmax(0,1fr); }
:is(.market-hero-media,.campaign-media):empty { display: none; }
#campaign-controls { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: flex; align-items: center; max-width: 55%; padding: 2px 4px; border: 1px solid #ffffff50; border-radius: 12px; background: #24171aeb; }
#campaign-controls button { flex: 0 0 44px; height: 44px; min-width: 44px; width: 44px; margin: 0; padding: 0; color: #fff; border-color: transparent; background: transparent; }
#campaign-controls button:hover { background: #ffffff22; }
#campaign-controls button:focus-visible { outline-color: #ffe8cf; outline-offset: -3px; }
#campaign-controls .ui-icon { width: 18px; height: 18px; }
#campaign-dots { position: relative; display: flex; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.campaign-dot::before { content: ""; display: block; width: 8px; height: 8px; margin: auto; border-radius: 50%; border: 1px solid #f5ece7; }
.campaign-dot[aria-current="true"]::before { width: 18px; border-radius: 8px; background: #ffd394; border-color: #ffd394; }
#campaign-position { display: none; }
.campaign-section { margin: clamp(28px,3.5vw,48px) 0 10px; }
.campaign-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.campaign-section-heading h2,#buying-guide-title,#box-guide-title,.featured-heading h2 { font-size: clamp(1.25rem,2.3vw,1.75rem); margin: 0; line-height: 1.25; letter-spacing: -.032em; scroll-margin-top: 12px; }
.market-section-lead { margin: 5px 0 0; max-width: 48ch; color: var(--muted); font-size: .92rem; line-height: 1.5; word-break: keep-all; }
.campaign-browse-controls { display: none; }
.advertisement-section { margin-top: 22px; }
#advertisement-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,350px),1fr)); gap: 14px; }
.ad-banner {
  --ad-background: #263b30;
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(0,1fr);
  min-height: 190px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--ad-background);
  color: var(--paper);
}
.ad-banner[data-creative="box5"] { --ad-background: #4b2d22; }
.ad-copy { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: clamp(14px,2vw,26px); }
.ad-copy :is(h3,h4) { margin: 0; font-size: clamp(1.12rem,1.9vw,1.58rem); font-weight: 820; line-height: 1.23; letter-spacing: -.03em; word-break: keep-all; overflow-wrap: anywhere; }
.ad-copy .status-sign { color: var(--paper); background: transparent; border-color: #ffffff87; }
.ad-meta { display: contents; }
.ad-meta .campaign-facts { order: 1; }
.ad-copy p { margin: 0; color: var(--paper); font-size: .9rem; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.ad-copy .campaign-products,.ad-copy .campaign-facts { color: #eeede9; font-size: .76rem; }
.ad-copy .campaign-offer { color: #ffdf9a; font-weight: 800; }
.ad-media { position: relative; grid-area: 1 / 2; min-width: 0; }
.ad-media img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: center; }
.ad-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,var(--ad-background),transparent 19%); }
.ad-media:empty { display: none; }
.ad-banner:has(.ad-media:empty) .ad-copy { grid-column: 1 / -1; }
.ad-cta { order: 2; min-height: 44px; margin-top: auto; padding-inline: 12px; border: 1px solid #fff; border-radius: var(--control-radius); background: var(--paper); color: var(--ink); font-size: .875rem; }
.ad-cta:where(:not(:disabled)):hover { background: var(--surface-strong); }
.ad-cta:focus-visible { outline-color: var(--paper); }
.editorial-section { padding: clamp(14px,2.25vw,28px); border-radius: 16px; background: var(--market-warm); }
#campaign-list .campaign-card:not(.ad-banner) { background: var(--paper); }
#campaign-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); gap: 18px; }
.campaign-card:not(.ad-banner) { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--market-warm); }
.campaign-card:not(.ad-banner)[data-creative="mushrooms"] { background: #eef3f8; }
.campaign-card:not(.ad-banner)[data-creative="leafy"] { background: #f0f4e5; }
.campaign-card .campaign-media { aspect-ratio: 16 / 9; }
.campaign-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; padding: clamp(12px,1.8vw,22px); }
.campaign-copy :is(h3,h4) { margin: 0; font-size: clamp(1.12rem,1.8vw,1.48rem); font-weight: 780; }
.campaign-copy p { margin: 0; color: var(--muted); font-size: .89rem; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.campaign-copy .campaign-products { font-size: .78rem; }
.campaign-copy .campaign-offer { color: var(--deep); font-weight: 800; }
.campaign-facts { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.hero-copy .campaign-facts { color: var(--paper); margin-bottom: 10px; }
.campaign-card .campaign-cta { min-height: 44px; margin-top: auto; padding: 3px 0; background: transparent; border: 0; font-size: .87rem; color: var(--deep); }
.campaign-card .campaign-cta:hover { text-decoration: underline; text-underline-offset: 3px; }
@media(min-width:1050px) {
  #campaign-list .campaign-card:has(.campaign-media img) { display: grid; grid-template-columns: minmax(0,4fr) minmax(0,5fr); }
  #campaign-list .campaign-media { aspect-ratio: auto; min-height: 228px; }
  #campaign-list .campaign-media img { object-position: 58% center; }
  #campaign-list .campaign-copy { padding: 20px; }
}
:is(.ad-cta,.hero-cta,.campaign-cta) .ui-icon { order: 1; width: 16px; height: 16px; }
.featured-shelf { margin: 24px 0; padding: 0; }
.featured-shelf + .featured-shelf { border-top: 1px solid var(--line); padding-top: 18px; }
#featured-primary .featured-shelf { border-top: 2px solid var(--accent); padding-top: 12px; }
.featured-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 10px; }
.featured-heading h2 { margin: 0; overflow-wrap: anywhere; }
.featured-heading > div > .status-sign { margin-bottom: 4px; }
.featured-heading > button { flex: none; margin: 0; }
.featured-heading > button .ui-icon { order: 1; }
.featured-products { grid-template-columns: repeat(4,minmax(0,1fr)); }
.featured-products .product { border-radius: 8px; }
.featured-products .product-media { height: clamp(112px,13vw,148px); aspect-ratio: auto; background: var(--surface); }
.featured-products .product-media img { object-fit: contain; }
#featured-other .featured-products .product-name { font-weight: 750; }
#featured-other .featured-products .product-price strong { font-size: 1.24rem; }
#featured-other [data-layout] { margin-block: clamp(26px,4vw,56px); padding: 0; border: 0; }
#featured-other [data-layout] .featured-heading { overflow: hidden; border-radius: 14px; }
#featured-other [data-layout] .featured-heading h2 { word-break: keep-all; }
#featured-other [data-layout] .featured-products { grid-auto-flow: row; }
.shelf-cover { width: 100%; display: block; object-fit: cover; }
#featured-other [data-layout="vegetables"] { display: grid; grid-template-columns: minmax(205px,1fr) minmax(0,2.8fr); gap: 12px; padding: 12px; background: var(--market-leaf); border: 1px solid #dbe5d9; border-radius: 17px; }
[data-layout="vegetables"] .featured-heading { flex-direction: column; align-items: start; justify-content: start; gap: 12px; margin: 0; padding: 0 15px 15px; background: #f9fbf6; }
[data-layout="vegetables"] .shelf-cover { order: -1; flex: 1; width: calc(100% + 30px); max-width: none; margin-inline: -15px; min-height: 150px; aspect-ratio: 5 / 3; }
[data-layout="vegetables"] .featured-products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
[data-layout="vegetables"] .product { display: grid; grid-template-columns: minmax(58px,29%) minmax(0,1fr); background: var(--paper); }
[data-layout="vegetables"] .product > .product-media { height: auto; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); background: #f7f3eb; }
[data-layout="vegetables"] .product-info { display: flex; flex-direction: column; align-items: start; gap: 4px; padding: 9px 10px; }
[data-layout="vegetables"] .product-identification:has(.product-signs:empty),[data-layout="weights"] .product-identification:has(.product-signs:empty) { display: none; }
[data-layout="vegetables"] .card-quantity { margin-top: auto; width: min(100%,148px); }
#featured-other [data-layout="mushrooms"] .featured-heading,#featured-other [data-layout="weights"] .featured-heading { position: relative; isolation: isolate; align-items: flex-start; }
[data-layout="mushrooms"] .featured-heading { min-height: 180px; flex-direction: column; justify-content: center; padding: 19px 20px; background: #303941; color: #fff; }
[data-layout="mushrooms"] .featured-heading > div { max-width: min(55%,380px); }
[data-layout="mushrooms"] .market-section-lead { color: #fff; }
[data-layout="mushrooms"] .shelf-cover,[data-layout="weights"] .shelf-cover { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 58%; height: 100%; mask-image: linear-gradient(90deg,transparent,#000 38%); }
[data-layout="mushrooms"] .featured-products { grid-template-columns: repeat(4,minmax(0,1fr)); }
[data-layout="mushrooms"] .product > .product-media { height: clamp(150px,16vw,208px); background: #f6eee2; }
[data-layout="weights"] .featured-heading { flex-direction: column; padding: 16px 18px; background: #fbf0e2; }
[data-layout="weights"] .featured-heading > div { max-width: min(60%,440px); }
[data-layout="weights"] .shelf-cover { width: 45%; object-position: 62% center; }
[data-layout="weights"] .featured-products { grid-template-columns: minmax(0,1fr); gap: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; }
[data-layout="weights"] .product { display: grid; grid-template-columns: 86px minmax(0,1fr); overflow: visible; border: 0; border-radius: 0; }
[data-layout="weights"] .product + .product { border-top: 1px solid var(--line); }
[data-layout="weights"] .product > .product-media { align-self: center; height: auto; aspect-ratio: 1; margin: 6px 0 6px 8px; border: 0; border-radius: 8px; }
[data-layout="weights"] .product-info { grid-template-columns: minmax(0,1.3fr) minmax(0,.85fr) minmax(110px,.65fr) 132px; grid-template-rows: auto; grid-template-areas: "labels labels labels labels" "name price stock buy" "origin price stock buy" "spec price stock buy" "feedback feedback feedback feedback"; column-gap: 12px; align-items: center; padding-block: 7px; }
[data-layout="weights"] .product-identification { grid-area: labels; }
[data-layout="weights"] .product-info h3 { grid-area: name; }
[data-layout="weights"] .product-origin { grid-area: origin; }
[data-layout="weights"] .product-spec { grid-area: spec; }
[data-layout="weights"] .product-price { grid-area: price; }
[data-layout="weights"] .product-stock { grid-area: stock; }
[data-layout="weights"] .card-quantity { grid-area: buy; }
[data-layout="weights"] .cart-feedback { grid-area: feedback; }
.featured-shelf[data-layout] .product-name { word-break: keep-all; overflow-wrap: anywhere; }
@media(max-width:800px) {
  #featured-other [data-layout="vegetables"] { grid-template-columns: minmax(0,1fr); }
  [data-layout="vegetables"] .featured-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(90px,42%); padding: 10px 0 10px 10px; }
  [data-layout="vegetables"] .featured-heading > div { grid-area: 1 / 1; }
  [data-layout="vegetables"] .featured-heading > button { grid-area: 2 / 1; justify-self: start; }
  [data-layout="vegetables"] .shelf-cover { grid-area: 1 / 2 / 3; margin: -10px 0; min-height: 0; width: 100%; height: calc(100% + 20px); aspect-ratio: auto; }
  [data-layout="vegetables"] .featured-heading:not(:has(.shelf-cover)) { grid-template-columns: minmax(0,1fr); padding-right: 10px; }
  #featured-other [data-layout="mushrooms"] .featured-products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  [data-layout="weights"] .product-info { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "labels labels" "name name" "origin spec" "price buy" "stock buy" "feedback feedback"; column-gap: 5px; }
  [data-layout="weights"] .card-quantity { width: 112px; align-self: center; }
  [data-layout="weights"] .card-quantity.has-quantity { grid-template-columns: 44px minmax(0,1fr) 44px; }
  [data-layout="weights"] .card-count { font-size: .79rem; }
  [data-layout="weights"] .product { grid-template-columns: 60px minmax(0,1fr); }
}
@media(max-width:640px) {
  #featured-other [data-layout="vegetables"] { padding: 7px; }
  #featured-other [data-layout="vegetables"] .featured-products { grid-template-columns: minmax(0,1fr); gap: 6px; }
  #featured-other [data-layout] .featured-products { grid-auto-columns: auto; overflow: visible; }
  [data-layout="vegetables"] .product > .product-media { aspect-ratio: 1; align-self: center; margin-left: 5px; border: 0; border-radius: 6px; }
  [data-layout="vegetables"] .product-info { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: none; grid-template-areas: "labels labels" "name name" "origin origin" "spec stock" "price price" "buy buy" "feedback feedback"; align-items: center; gap: 3px; padding: 5px 8px 8px; }
  [data-layout="vegetables"] .product-identification { grid-area: labels; }
  [data-layout="vegetables"] .product-info h3 { grid-area: name; }
  [data-layout="vegetables"] .product-origin { grid-area: origin; }
  [data-layout="vegetables"] .product-spec { grid-area: spec; }
  [data-layout="vegetables"] .product-price { grid-area: price; }
  [data-layout="vegetables"] .product-stock { grid-area: stock; justify-self: end; }
  [data-layout="vegetables"] .card-quantity { grid-area: buy; }
  [data-layout="vegetables"] .cart-feedback { grid-area: feedback; }
  [data-layout="mushrooms"] .featured-heading { min-height: 142px; padding: 11px 10px; }
  [data-layout="mushrooms"] .product > .product-media { height: auto; aspect-ratio: 1.25; }
  [data-layout="mushrooms"] .product-info { padding: 8px 8px 11px; }
  [data-layout="weights"] .featured-heading { padding: 10px; }
  [data-layout="weights"] .product-info .product-spec { padding-inline: 4px; font-size: .73rem; }
  [data-layout="weights"] .product-info .product-price strong { font-size: 1.02rem; }
  [data-layout="weights"] .product { grid-template-columns: 60px minmax(0,1fr); }
  [data-layout="weights"] .product-info { gap: 2px 5px; padding-block: 4px; }
}
.featured-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(12px,2vw,24px);
  padding: clamp(12px,2.1vw,26px);
  border-radius: 16px;
  background: #f2f4eb;
}
.featured-story .campaign-card {
  border-color: #d7dfce;
  background: #fcfdf9;
}
.featured-story .campaign-media { aspect-ratio: 5 / 4; }
.featured-story .campaign-copy { gap: 10px; }
.featured-story .campaign-copy h3 { font-size: clamp(1.25rem,2.2vw,1.8rem); color: #263a28; }
.featured-story .featured-products { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-flow: row; }
.featured-story-copy-only { grid-template-columns: minmax(0,420px); }
@media(min-width:1100px) {
  .featured-story:not(.featured-story-copy-only) { grid-template-columns: minmax(0,1.1fr) minmax(0,3.4fr); align-items: stretch; }
  .featured-story .featured-products { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .featured-story .product-media { height: 132px; }
  .featured-story .campaign-media { aspect-ratio: 16 / 10; }
}
@media(max-width:760px) {
  .featured-story { grid-template-columns: minmax(0,1fr); }
  .featured-story .campaign-media { aspect-ratio: 16 / 8; }
}
#box-guide { margin: clamp(22px,4vw,54px) 0 24px; }
.box-guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.box-guide-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(76px,34%); align-items: center; column-gap: 8px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--market-warm); }
.box-guide-card:nth-child(2) { background: var(--market-leaf); }
.box-guide-card:nth-child(3) { background: #f4efeb; }
.box-guide-card img { grid-column: 2; grid-row: 1; width: 100%; height: auto; border-radius: 50%; }
.box-guide-card div { grid-column: 1; grid-row: 1; min-width: 0; }
.box-guide-card h3 { margin: 0; color: var(--ink); font-size: 1.22rem; line-height: 1.2; }
.box-guide-card p { margin: 5px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.45; word-break: keep-all; }
.box-guide-card a { justify-content: start; min-height: 44px; color: var(--deep); font-size: .85rem; font-weight: 760; }
.box-guide-card a .ui-icon { order: 1; width: 16px; height: 16px; }
#buying-guide:not([hidden]) { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2.65fr); align-items: stretch; gap: 14px; margin: 28px 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--market-warm); }
.buying-guide-intro { display: flex; flex-direction: column; justify-content: center; padding: clamp(13px,2vw,24px); border-radius: 11px; background: var(--banner-orchard); color: var(--paper); }
.buying-guide-intro .market-section-lead { color: var(--paper); }
.buying-guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.buying-guide-grid article { display: flex; flex-direction: column; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--paper); }
.buying-guide-grid h3 { margin: 0; font-size: .97rem; line-height: 1.35; word-break: keep-all; }
.buying-guide-grid p { margin: 7px 0 4px; color: var(--muted); font-size: .87rem; word-break: keep-all; }
.buying-guide-grid :is(a,button.secondary) { min-height: 44px; margin: auto 0 0; padding: 0; color: var(--deep); border: 0; background: transparent; font-size: .84rem; font-weight: 750; text-align: start; }
.buying-guide-grid :is(a,button.secondary):hover { color: var(--deep); background: transparent; text-decoration: underline; }
.buying-guide-grid :is(a,button) .ui-icon { width: 16px; height: 16px; order: 1; }
@media(max-width:800px) {
  #buying-guide:not([hidden]) { grid-template-columns: minmax(0,1fr); }
  .box-guide-grid { grid-template-columns: minmax(0,1fr); gap: 7px; }
  .box-guide-card { grid-template-columns: minmax(0,1fr) minmax(66px,23%); padding-block: 8px; }
  .box-guide-card img { max-width: 104px; justify-self: end; }
}
#campaign-catalog-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; padding: 10px 13px; margin: 8px 0 12px; border-left: 3px solid var(--accent); border-radius: 5px; background: var(--info-surface); }
#campaign-catalog-summary p { margin: 0; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.status-sign {
  gap: 4px;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: .76rem;
  font-weight: 780;
  white-space: normal;
}
.status-sign .ui-icon { width: var(--badge-icon); height: var(--badge-icon); }
.status-sign[data-tone="success"] { background: var(--success-surface); color: var(--success-ink); border-color: var(--success-line); }
.status-sign[data-tone="warning"] { background: var(--warning-surface); color: var(--warning-ink); border-color: var(--warning-line); }
.status-sign[data-tone="info"] { background: var(--info-surface); color: var(--info-ink); border-color: var(--info-line); }
.status-sign[data-tone="error"] { background: var(--error-surface); color: var(--error-ink); border-color: var(--error-line); }
.status-sign[data-tone="brand"] { background: var(--accent-soft); color: var(--deep); border-color: var(--accent-line); }
.catalog-title { margin: 14px 0 3px; }
.catalog-title h2 { font-size: clamp(1.3rem,2.8vw,1.7rem); }
.catalog-more { position: relative; }
.catalog-more summary { cursor: pointer; align-content: center; min-height: 44px; padding: 4px 8px; border: 1px solid var(--interactive-line); border-radius: var(--control-radius); font-size: .84rem; font-weight: 750; color: var(--deep); }
.catalog-more-fields { display: grid; gap: 8px; position: absolute; right: 0; top: calc(100% + 4px); z-index: 2; width: min(76vw,300px); padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--control-radius); box-shadow: 0 6px 24px #16213124; }
.catalog-more-fields button { justify-self: end; }
#campaign-search { max-width: 610px; margin: 8px 0; }
#campaign-search label { margin: 0 0 4px; font-size: .86rem; font-weight: 740; }
.campaign-search-field,.delivery-query { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
.campaign-search-field button,.delivery-query button { white-space: nowrap; }
#market-status { margin: 2px 0 4px; font-size: .82rem; }
#catalog { margin-top: 10px; }
#market-readiness {
  gap: 7px;
  margin: 8px 0;
  padding: 5px 8px;
  background: var(--surface);
  border-radius: 6px;
  font-size: .77rem;
  line-height: 1.35;
}
#market-readiness .ui-icon { width: 16px; height: 16px; color: var(--deep); }
.product { border-color: var(--line); border-radius: var(--card-radius); box-shadow: none; }
.product > .product-media { border-bottom: 1px solid var(--line); }
.product-info h3 { letter-spacing: -.022em; }
.product-info .hint { color: var(--muted); }
.product-origin { font-size: .83rem; overflow-wrap: anywhere; }
.product-info { grid-template-rows: auto minmax(44px,auto) auto auto auto auto 1fr auto; gap: 4px; }
.product-identification { display: flex; align-items: start; justify-content: space-between; gap: 3px; min-height: 27px; }
.product-signs { display: flex; flex-wrap: wrap; justify-content: end; gap: 2px; }
.product-signs:empty { display: none; }
.product-signs .status-sign { font-size: .71rem; }
.product-group { color: var(--muted); }
.product-info .product-spec { justify-self: start; padding: 2px 6px; border-radius: 4px; background: var(--surface); color: var(--ink); font-weight: 720; }
.card-quantity { display: grid; grid-template-columns: minmax(0,1fr); gap: 3px; align-content: end; }
.card-quantity.has-quantity { grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; }
.card-quantity button { min-height: 44px; padding-inline: 4px; margin: 0; font-size: .86rem; }
.card-quantity .ui-icon { width: var(--control-icon); height: var(--control-icon); }
.card-count { text-align: center; font-weight: 800; color: var(--deep); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.detail-actions .basket-add { min-height: 44px; }
.basket-add .ui-icon { width: var(--control-icon); height: var(--control-icon); }
.product-price { color: var(--ink); font-variant-numeric: tabular-nums; }
.product-price strong { font-size: 1.16rem; letter-spacing: -.025em; }
.price-unit { font-size: .74rem; color: var(--muted); font-weight: 600; }
.price-kg { display: block; min-height: 1.35em; color: var(--muted); font-size: .76rem; line-height: 1.35; font-weight: 650; }
.product-detail-spec .price-kg:empty { display: none; }
#product-detail { width: min(calc(100% - 24px),820px); }
#product-detail form { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px; }
#product-detail-content { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; align-items: start; }
.product-detail-spec { min-width: 0; overflow-wrap: anywhere; }
.product-detail-spec > .product-signs { justify-content: start; margin-bottom: 4px; }
.product-detail-spec label { margin-bottom: 4px; }
.quantity-stepper { display: flex; gap: 5px; }
.quantity-stepper input { width: 72px; text-align: center; padding-inline: 2px; }
.quantity-stepper button { width: 44px; flex: 0 0 auto; padding: 0; }
.detail-actions { margin-top: 10px; }
.detail-actions .basket-add { width: 100%; white-space: nowrap; }
#delivery-dialog { border: 1px solid var(--line); border-radius: var(--card-radius); width: min(calc(100% - 24px),480px); color: inherit; }
#delivery-dialog::backdrop { background: var(--backdrop); }
#address-search-dialog { border: 1px solid var(--line); border-radius: var(--card-radius); width: min(calc(100% - 24px),500px); max-height: calc(100dvh - 24px); color: inherit; }
#address-search-dialog::backdrop { background: var(--backdrop); }
.address-search-header,.address-controls,.order-payment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.address-search-header { justify-content: space-between; }
.address-search-header h2 { margin: 0; }
.address-controls { margin: 8px 0 12px; }
.address-controls label { flex: 1 1 180px; min-width: 0; margin: 0; }
.address-controls label[hidden] { display: none; }
.address-controls button,#address-search-close,#address-book-search,.order-payment-actions button { min-height: 44px; }
#address-search-frame:not(:empty) { height: min(52dvh,390px); min-height: 230px; border: 1px solid var(--line); overflow: hidden; }
.order-payment,.order-cutoffs { padding: 12px; margin: 12px 0; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--surface); }
.order-payment-actions { margin-top: 10px; }
.tracking-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; font-weight: 700; }
.auth-panel { width: min(100%, 448px); margin: clamp(12px, 3vw, 32px) auto; padding: clamp(16px, 4vw, 32px); }
.auth-panel:has(#member:not([hidden])) { width: min(100%, 635px); }
body:has(#account:not([hidden]) #login-options:not([hidden])) { background: var(--market-warm); }
.auth-heading { margin-bottom: 16px; }
.auth-heading h1 { width: fit-content; max-width: 100%; margin: 0; color: var(--ink); font-size: 1.5rem; line-height: 1.25; font-weight: 700; letter-spacing: -.035em; }
.auth-heading h1:focus-visible { outline-offset: 3px; }
html[data-auth-return=pending] #products { display: none; }
html[data-auth-return=pending] #auth-boot { display: block; }
#auth-boot h1 { margin: 0; font-size: 1.375rem; }
#auth-boot p { margin: 8px 0 0; color: var(--muted); }
.auth-panel .auth-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0; margin: 0; border: 0; }
.auth-panel .auth-choice label { position: relative; display: grid; align-items: stretch; min-height: 44px; margin: 0; cursor: pointer; }
.auth-panel .auth-choice span { display: grid; place-items: center; padding: 4px; border-bottom: 2px solid var(--line); text-align: center; font-size: .9375rem; font-weight: 600; color: var(--muted); }
.auth-panel .auth-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.auth-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.auth-panel .auth-choice input:checked + span { color: var(--deep); border-color: var(--accent); font-weight: 700; }
.auth-panel .auth-choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -3px; }
#auth-signup-progress:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 0; margin: 14px 0 0; list-style: none; }
#auth-signup-progress li { display: flex; align-items: center; gap: 6px; min-height: 24px; color: var(--muted); font-size: .8125rem; font-weight: 600; word-break: keep-all; }
#auth-signup-progress li + li::before { content: ''; width: 16px; margin-inline-end: 4px; border-top: 1px solid var(--interactive-line); }
#auth-signup-progress li > span { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--surface-strong); color: var(--ink); }
#auth-signup-progress li[aria-current=step] { color: var(--deep); font-weight: 750; }
#auth-signup-progress li[aria-current=step] > span { background: var(--accent); color: var(--paper); }
.auth-note { font-size: .875rem; line-height: 1.5; font-weight: 400; color: var(--muted); margin: 8px 0; word-break: keep-all; }
.auth-return { padding: 8px 10px; border-radius: var(--control-radius); background: var(--surface); color: var(--ink); }
.auth-methods { display: grid; gap: 8px; margin-top: 12px; }
.auth-provider { display: grid; gap: 4px; }
.auth-provider-purpose { margin: 0; font-size: .8125rem; font-weight: 700; color: var(--ink); }
.auth-methods .login { margin: 0; padding: 0 8px; min-height: 44px; height: 46px; border-radius: var(--control-radius); }
.auth-methods .login img { display: block; max-width: 100%; height: auto; }
.auth-methods .kakao { background: #fee500; }
.auth-methods .naver { background: var(--paper); border: 1px solid var(--interactive-line); }
.auth-methods .naver img { width: 196px; clip-path: inset(12% 6%); }
.auth-methods .login[aria-disabled=true] { opacity: .55; }
.auth-email { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.auth-email label,.auth-agreements label { font-size: .875rem; font-weight: 650; }
.auth-email label { margin: 0; gap: 6px; }
.auth-email input[type=email] { font-size: 1rem; }
#email-guidance { font-size: .8125rem; }
#email-send { margin-top: 8px; }
#email-local-open:not([hidden]) { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-bottom: 8px; border-radius: var(--control-radius); font-size: .875rem; font-weight: 650; }
#email-resume-check { margin-bottom: 4px; }
#email-complete-browse:not([hidden]) { display: flex; justify-content: center; align-items: center; min-height: 44px; border-radius: var(--control-radius); font-size: .875rem; font-weight: 600; }
#email-complete-status { margin-block: 8px; }
#email-complete-return { margin-bottom: 14px; }
body:has(#account:not([hidden]) #login-options:not([hidden]) #email-complete:not([hidden])) .site-header :is(#market-search,.basket-shell) { display: none; }
#login-options button { min-height: 44px; width: 100%; font-size: .9375rem; font-weight: 650; }
#login-options button > .ui-icon { width: var(--control-icon); height: var(--control-icon); }
.auth-help { border-bottom: 1px solid var(--line); }
.auth-help summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; font-size: .875rem; cursor: pointer; }
.auth-help summary::-webkit-details-marker { display: none; }
.auth-help summary::after { content: ''; width: 6px; height: 6px; margin-inline-end: 3px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); flex: none; }
.auth-help[open] summary::after { transform: rotate(225deg); }
.auth-help .auth-note { margin: 0 0 8px; }
.auth-feedback:empty { margin: 0; padding: 0; }
.auth-feedback:not(:empty) { margin: 8px 0; font-size: 13px; line-height: 1.6; font-weight: 400; overflow-wrap: anywhere; }
.auth-agreements { min-inline-size: 0; margin: 12px 0; padding: 0; border: 0; }
.auth-agreements > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; border-bottom: 1px solid var(--line); }
.auth-agreements label { flex: 1; gap: 10px; margin: 0; cursor: pointer; word-break: keep-all; }
.auth-agreements input { width: 20px; height: 20px; margin: 0; flex: 0 0 20px; }
.auth-agreements label small { color: var(--muted); white-space: nowrap; }
.auth-agreements .auth-agreement-all { padding-inline: 12px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--surface); }
.auth-agreement-all label { min-height: 48px; font-size: .9375rem; font-weight: 700; }
.auth-agreements .auth-agreement-item { padding-inline: 12px 0; }
#auth-agreement-guide { margin: 0 0 12px; }
.auth-agreements a { display: grid; place-items: center; min-width: 44px; min-height: 44px; font-size: 13px; }
#login-options #cancel-auth { justify-content: flex-start; width: auto; margin-top: 8px; padding-inline: 0 8px; border: 0; background: var(--paper); color: var(--muted); font-size: .875rem; }
#login-options #cancel-auth:hover { color: var(--deep); text-decoration: underline; }
@media(max-width: 440px) {
  .auth-heading h1 { font-size: 1.375rem; }
  .auth-panel { margin-block: 8px; }
  .auth-heading { margin-bottom: 12px; }
  #auth-signup-progress:not([hidden]) { gap: 4px 8px; margin-top: 8px; }
  #auth-signup-progress li { gap: 4px; }
  #auth-signup-progress li + li::before { display: none; }
  .auth-methods { margin-top: 8px; }
  .auth-email { margin-top: 10px; padding-top: 8px; }
  body:has(#account:not([hidden]) #login-options:not([hidden])) { background: var(--paper); }
  .auth-panel:has(#login-options:not([hidden])) { border: 0; padding: 10px 4px 16px; }
  body:has(#account:not([hidden]) #login-options:not([hidden])) #market-search { display: none; }
}
.order-payment > p[role=status] { margin: 0; }
.order-cutoffs h3,.order-cutoffs p { margin: 0; }
.order-cutoffs ul { margin: 6px 0; padding-inline-start: 20px; }
.delivery-result,.market-message,.cart-empty { padding: 12px; margin: 10px 0; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--surface); }
.delivery-result[data-tone=success] { background: var(--success-surface); color: var(--success-ink); }
.delivery-result[data-tone=warning] { background: var(--warning-surface); color: var(--warning-ink); }
.delivery-note { margin: 12px 0 0; }
.market-message { grid-column: 1 / -1; }
.market-empty button { margin: 3px 5px 0 0; }
.cart-empty { display: grid; justify-items: start; gap: 4px; }
.cart-empty p { margin: 0; }
#cart-preview { width: min(calc(100% - 24px),520px); border: 1px solid var(--line); border-radius: var(--card-radius); color: var(--ink); max-height: calc(100dvh - 24px); }
#cart-preview::backdrop { background: var(--backdrop); }
.cart-preview-heading, #cart-preview-lines li, .cart-preview-total, #recent-purchases-list article { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-preview-heading h2, .cart-preview-heading form { margin: 0; }
#cart-preview-lines { list-style: none; padding: 0; }
#cart-preview-lines li, #recent-purchases-list article { padding: 8px 0; border-bottom: 1px solid var(--line); }
#cart-preview-lines small, #recent-purchases-list small { display: block; color: var(--muted); }
.cart-preview-total { padding: 7px 0; }
.cart-preview-total strong { color: var(--deep); }
#cart-preview-lines li > strong { flex-shrink: 0; }
#cart-preview-note { word-break: keep-all; overflow-wrap: anywhere; }
#recent-purchases-link { color: var(--deep); }
#recent-purchases-list article p:empty { display: none; }
#recent-purchases-list article button { flex-shrink: 0; }
.cart-quantity { display: flex; align-items: center; gap: 4px; }
.cart-quantity input { width: 62px; text-align: center; padding-inline: 4px; }
.cart-quantity button { min-width: 44px; padding-inline: 4px; }
.line-details .line-total { color: var(--deep); font-weight: 750; font-variant-numeric: tabular-nums; }
#checkout-delivery-area { padding: 6px 8px; border-left: 2px solid var(--info-line); background: var(--info-surface); color: var(--info-ink); }
.campaign-benefits { grid-column: 1 / -1; }
.section-heading { gap: 10px; }
.section-heading .ui-icon { width: 24px; height: 24px; color: var(--ink); }
.data-row { display: grid; grid-template-columns: minmax(68px,.9fr) minmax(0,1.4fr); align-items: baseline; gap: 7px; margin: 0; padding: 6px 0; border-bottom: 1px solid var(--line); }
.data-row > span { color: var(--muted); }
.data-row > strong { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
:is(#order-quote,#receipt-content,#ledger-content,#admin) .data-row > strong { text-align: end; }
.checkout-summary .amount-due { display: flex; justify-content: space-between; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--control-radius); padding: 8px 10px; font-size: 1.04rem; }
.next-step { display: flex; margin-top: 4px; gap: 6px; }
.next-step .ui-icon { width: 17px; height: 17px; }
.order-reference { font-weight: 750; word-break: break-word; }
.order-state { display: flex; }
.dispatch-status .status-sign { margin-left: 3px; }
.status-message:not(:empty), #address-error:not(:empty), #address-saved:not(:empty) {
  --message-bg: var(--info-surface);
  --message-ink: var(--info-ink);
  --message-line: var(--info-line);
  margin-block: 8px;
  border-left: 3px solid var(--message-line);
  border-radius: var(--badge-radius);
  background: var(--message-bg);
  color: var(--message-ink);
  padding: 7px 9px;
  font-weight: 650;
}
.status-message[data-tone="warning"] { --message-bg: var(--warning-surface); --message-ink: var(--warning-ink); --message-line: var(--warning-line); }
.status-message[data-tone="error"], #address-error:not(:empty) { --message-bg: var(--error-surface); --message-ink: var(--error-ink); --message-line: var(--error-line); }
.status-message[data-tone="success"], #address-saved:not(:empty) { --message-bg: var(--success-surface); --message-ink: var(--success-ink); --message-line: var(--success-line); }
.status-message:empty { display: none; }
#auth-return-status:empty { display: block; position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }
#admin-sections a { gap: 6px; }
#admin .dispatch-queue, #order-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
#order-list > :not(article) { grid-column: 1 / -1; }
#admin .dispatch-queue > article, #order-list > article { margin: 0; }
#admin .dispatch-queue > article .dispatch-status { margin-bottom: 7px; }
#admin-trade .order-filters { border-top: 1px solid var(--line); padding: 12px; }
body:has(#admin:not([hidden]),#account:not([hidden])) .delivery-strip { display: none; }
.shop-footer {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(120px,.66fr) minmax(115px,.66fr) minmax(0,1.8fr);
  gap: 12px 28px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: .86rem;
}
.footer-brand p { margin: 4px 0 0; }
.footer-brand strong,.shop-footer h2 { color: var(--ink); }
.shop-footer h2 { margin: 0 0 6px; font-size: .92rem; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; align-content: start; gap: 2px; }
.footer-links :is(a,p) { margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--deep); text-underline-offset: .16em; }
.footer-links a:hover { color: var(--accent); }
.footer-company dl { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
.footer-company dl > div { display: flex; gap: 5px; align-items: baseline; max-width: 100%; }
.footer-company dt { flex-shrink: 0; font-weight: 700; }
.footer-company dd { margin: 0; overflow-wrap: anywhere; }
.footer-company a { color: var(--deep); text-underline-offset: .16em; }
@media (max-width: 960px) {
  .site-header { grid-template-columns: auto minmax(0,1fr); column-gap: 14px; }
  .shop-tools { justify-content: start; margin-bottom: 4px; }
  .buying-guide-grid,.shop-footer { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-company { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 12px; }
  .footer-brand { grid-column: 1 / -1; }
  .site-header, .site-header:has(+ main #cart:not([hidden])) { grid-template-columns: 1fr; padding: 4px var(--gutter) 0; gap: 4px; }
  .site-header .brand { min-height: 47px; }
  .shop-tools { justify-content: space-between; gap: 3px; margin: 0; }
  .shop-tools > button { flex-direction: column; gap: 2px; font-size: .72rem; padding: 1px 4px; }
  .shop-tools > button .ui-icon { width: 18px; height: 18px; }
  .basket-shell { padding-right: 4px; }
  .cart-header-subtotal { padding-left: 3px; text-align: center; align-self: center; }
  .cart-header-subtotal small { font-size: 10px; }
  #cart-value { font-size: .72rem; }
  .site-header #menu-cart { gap: 4px; padding: 3px 5px; font-size: .71rem; }
  #menu-cart .ui-icon { width: 16px; height: 16px; }
  #market-search button { padding-inline: 8px; font-size: .8rem; }
  .delivery-strip { font-size: .72rem; min-height: 44px; }
  .delivery-method.with-icon { display: none; }
  .header-buying-guide { padding-inline: 4px; white-space: nowrap; }
  .delivery-strip .with-icon { gap: 5px; }
  .delivery-strip .ui-icon { width: 16px; height: 16px; }
  #delivery-help { font-size: .76rem; padding-inline: 5px; }
  #delivery-help .ui-icon { width: 14px; height: 14px; }
  main { padding: 11px 12px 24px; }
  main:has(#market-feature:not([hidden])) { padding-top: 7px; }
  #market-shortcuts { gap: 4px; margin-bottom: 6px; }
  #market-shortcuts a { flex-direction: column; justify-content: center; gap: 1px; min-height: 47px; padding: 3px 1px; font-size: .68rem; }
  #market-shortcuts :is(img,.ui-icon) { width: 29px; height: 23px; padding: 0; }
  #market-shortcuts .ui-icon { padding: 5px; }
  .market-feature { display: flex; flex-direction: column; border-radius: 14px; }
  .market-slide { min-height: 164px; grid-template-columns: minmax(0,53%) minmax(0,47%); }
  .hero-copy { padding: 10px; }
  .hero-copy h2 { font-size: clamp(1.375rem,5.8vw,1.65rem); margin-block: 0 4px; line-height: 1.1; }
  .hero-copy p { font-size: .81rem; margin-bottom: 9px; }
  .hero-copy :is(.hero-eyebrow,.status-sign) { display: none; }
  .market-slide[data-kind="ad"] .status-sign { display: inline-flex; }
  .hero-copy .hero-description { margin: 4px 0 5px; font-size: .77rem; line-height: 1.4; }
  .hero-copy .campaign-facts { font-size: .72rem; margin-bottom: 6px; }
  .hero-cta { padding-inline: 7px; font-size: .81rem; gap: 5px; }
  #campaign-controls { position: static; order: 1; max-width: 100%; justify-content: center; padding: 0; border: 0; border-top: 1px solid #ffffff35; border-radius: 0; background: #24171a; }
  #campaign-position { display: block; flex: none; padding-inline: 6px; color: #fff; font-size: .72rem; font-variant-numeric: tabular-nums; }
  #market-readiness { margin-block: 4px; }
  .featured-shelf { margin-block: 12px 18px; }
  #featured-primary .featured-shelf { margin-top: 6px; padding-top: 6px; }
  .featured-heading { margin-bottom: 7px; }
  #featured-primary .featured-heading { margin-bottom: 4px; }
  .featured-heading h2 { font-size: clamp(1rem,4.4vw,1.25rem); }
  .featured-heading > button { padding-inline: 7px; font-size: .77rem; }
  .featured-products { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 8px) / 2); gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; overscroll-behavior-inline: contain; }
  .featured-products .product { scroll-snap-align: start; }
  .featured-products .product-info { padding-inline: 7px; }
  .featured-products .product-media { height: auto; aspect-ratio: 1.9; }
  #featured-primary .product-info { display: flex; flex-direction: column; gap: 3px; padding-block: 6px; }
  #featured-primary .product-spec { align-self: flex-start; }
  #featured-primary .card-quantity { margin-top: auto; }
  #featured-primary .product-media { aspect-ratio: 2.35; }
  #featured-primary .product-identification:has(.product-signs:empty) { display: none; }
  .featured-products .product-group { display: none; }
  .featured-products .product-identification { min-height: 0; }
  .featured-products .card-quantity button { gap: 4px; }
  .buying-guide-grid article { padding: 8px; }
  .buying-guide-grid :is(h3,a,button) { gap: 4px; }
  .buying-guide-grid p { font-size: .8rem; overflow-wrap: anywhere; }
  .market-section-lead { font-size: .83rem; }
  .campaign-section { margin-block: 14px 12px; }
  .campaign-section-heading { margin-bottom: 5px; }
  .campaign-section-heading h2 { font-size: clamp(1rem,4.8vw,1.25rem); }
  .campaign-browse-controls { display: flex; flex: none; gap: 3px; }
  .campaign-browse-controls button { width: 44px; padding: 0; border-radius: 50%; }
  :is(#campaign-list,#advertisement-list) { grid-template-columns: none; grid-auto-flow: column; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; }
  :is(#campaign-list,#advertisement-list) > .campaign-card { scroll-snap-align: start; }
  :is(#campaign-list,#advertisement-list):has(> .campaign-card:only-child) { grid-auto-columns: 100%; }
  .advertisement-section { margin-block: 17px 0; }
  #advertisement-list { grid-auto-columns: 100%; padding-bottom: 0; }
  #advertisement-list .ad-banner { min-height: 110px; grid-template-columns: minmax(0,1.42fr) minmax(0,1fr); }
  #advertisement-list .ad-copy { padding: 9px 8px; gap: 4px; }
  #advertisement-list .ad-copy h3 { font-size: 1.05rem; line-height: 1.2; }
  #advertisement-list .ad-copy p { font-size: .79rem; }
  #advertisement-list .ad-meta time { white-space: nowrap; }
  #advertisement-list .ad-copy :is(.campaign-products,.campaign-facts span) { display: none; }
  #advertisement-list .ad-copy .campaign-offer { font-size: .76rem; }
  .ad-cta { padding-inline: 6px; gap: 4px; font-size: .76rem; }
  .editorial-section { padding: 13px 8px; }
  #campaign-list { grid-auto-columns: min(77%,270px); }
  #campaign-list .campaign-copy { padding: 10px; gap: 5px; }
  #campaign-list .campaign-copy p { font-size: .79rem; }
  #campaign-list .campaign-facts { font-size: .71rem; }
  .catalog-title { display: grid; grid-template-columns: minmax(0,1fr) auto; margin-top: 5px; gap: 4px; }
  #open-cart { padding-inline: 7px; font-size: .82rem; }
  #catalog-tools { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) auto auto; gap: 4px; padding-block: 4px; }
  #catalog-tools > label { font-size: 0; }
  #catalog-tools select, #catalog-tools #reset-market { min-width: 0; padding-inline: 5px; font-size: .75rem; }
  .catalog-more summary { padding-inline: 4px; font-size: .73rem; white-space: nowrap; }
  #catalog-tools #reset-market .ui-icon { display: none; }
  #catalog-tools #reset-market { min-width: 44px; }
  #catalog { margin-top: 6px; }
  .campaign-search-field button,.delivery-query button { font-size: .78rem; padding-inline: 6px; gap: 4px; }
  .campaign-search-field .ui-icon,.delivery-query .ui-icon { width: 15px; height: 15px; }
  #reset-market .ui-icon { width: 13px; height: 13px; }
  #product-detail-content { grid-template-columns: minmax(0,1fr); gap: 8px; }
  #product-detail .product-media { width: 100%; max-height: min(22dvh,170px); margin: 0; }
  #product-detail form { margin-bottom: 8px; }
  #product-detail form button { padding-inline: 7px; font-size: .77rem; gap: 4px; }
  #product-detail form .ui-icon { width: 15px; height: 15px; }
  .product-info .status-sign { font-size: .7rem; }
  .product-identification { flex-wrap: wrap; justify-content: start; }
  .product-signs { justify-content: start; }
  .card-quantity button { font-size: .77rem; }
  .card-quantity.has-quantity { gap: 2px; }
  html:has(#cart:not([hidden])) { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  #cart:not([hidden]) { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 8px; }
  #cart > .section-heading { align-self: center; margin-block: 0 12px; }
  #cart > #buyer-file { align-self: center; margin-block: 0 12px; padding-block: 0; padding-inline: 9px; }
  #cart > #buyer-file summary { font-size: .82rem; }
  #cart > #buyer-file[open], #cart > #order-form { grid-column: 1 / -1; min-width: 0; }
  #cart-lines .line { grid-template-columns: minmax(0,1fr) auto; }
  #cart-lines .line-details { grid-column: 1 / -1; }
  #cart-lines .cart-quantity input { width: 58px; }
  #cart-lines .cart-quantity button { scroll-margin-block: 8px; }
  body:has(.cart-quantity:focus-within) .checkout-quick { display: none; }
  #admin .dispatch-queue, #order-list { grid-template-columns: 1fr; }
  body:has(#cart:not([hidden])) .shop-footer { padding-bottom: 70px; }
}

@media (max-width: 360px) {
  #campaign-position { display: none; }
  #products:has(#market-feature[hidden]) #market-shortcuts { display: none; }
}

@media (max-width: 640px) and (max-height: 840px), (max-width: 389px) and (max-height: 880px) {
  #featured-primary .featured-products { grid-auto-columns: min(93%,370px); }
  #featured-primary .product { display: grid; grid-template-columns: minmax(66px,29%) minmax(0,1fr); }
  #featured-primary .product-media { height: auto; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  #featured-primary .product-info {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-rows: none;
    grid-template-areas: "labels labels" "name spec" "origin stock" "price price" "buy buy" "feedback feedback";
    align-items: center;
    gap: 3px 5px;
  }
  #featured-primary .product-identification { grid-area: labels; }
  #featured-primary .product-info h3 { grid-area: name; }
  #featured-primary .product-name { font-size: .92rem; }
  #featured-primary .product-origin { grid-area: origin; font-size: .77rem; word-break: keep-all; }
  #featured-primary .product-info .product-spec { grid-area: spec; align-self: center; justify-self: end; font-size: .75rem; }
  #featured-primary .product-price { grid-area: price; line-height: 1.25; }
  #featured-primary .product-price strong { font-size: 1.04rem; }
  #featured-primary .price-unit { white-space: nowrap; }
  #featured-primary .product-stock { grid-area: stock; justify-self: end; }
  #featured-primary .card-quantity { grid-area: buy; }
  #featured-primary .cart-feedback { grid-area: feedback; }
  .advertisement-section { margin-block: 9px 14px; }
}

@media (max-width: 640px) and (max-height: 620px) {
  html:has(#cart:not([hidden])) { scroll-padding-bottom: 12px; }
  #cart .checkout-quick { position: static; grid-column: 1 / -1; }
  body:has(#cart:not([hidden])) .shop-footer { padding-bottom: 24px; }
}
