/* Storefront + staff order pages. Loaded after site.css. */
body.shop {
  --accent: #2f5d46; --accent-ink: #fff; --accent-soft: #e3ece5; --clay: #a4552f;
  --bg: #f6f1e7; --surface: #fffdf8; --line: #e4dccb; --text: #1f2421; --muted: #5a625c;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --shadow: 0 1px 2px rgba(40, 32, 16, .06), 0 8px 24px rgba(40, 32, 16, .06);
}
@media (prefers-color-scheme: dark) {
  body.shop {
    --accent: #7cc49d; --accent-ink: #0f1a14; --accent-soft: #1f2d25; --clay: #e39a72;
    --bg: #15130f; --surface: #1e1b16; --line: #34302a; --text: #f0ece4; --muted: #b0a99c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}

/* shared bits (also used on staff order pages) */
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-wide { width: 100%; padding: 13px; text-align: center; display: block; }
.num { text-align: right; white-space: nowrap; }
.totals { min-width: 240px; display: grid; gap: 6px; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; }
.totals .grand { font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); padding-top: 8px; }
.totals .btn { margin-top: 8px; text-align: center; text-decoration: none; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.summary.narrow { max-width: 560px; margin: 0 auto 20px; }
.summary h2 { margin-top: 0; font-size: 18px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary .totals { margin-top: 12px; }
textarea { font: inherit; width: 100%; padding: 10px 12px; margin-top: 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
label.radio, label.check { display: flex; gap: 10px; align-items: center; color: var(--text); font-size: 15px; }
label.radio input, label.check input { width: auto; margin: 0; }
.badge { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; text-align: center; line-height: 20px; }

/* accessibility helpers */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 20; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
body.shop :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
body.shop main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { body.shop * { transition: none !important; } }

/* header + footer */
body.shop { font-size: 16px; }
.shop-head { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.shop-head-inner { max-width: 1160px; margin: 0 auto; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.shop-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 21px/1.15 var(--serif); text-decoration: none; letter-spacing: .2px; min-width: 0; }
.shop-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; flex: none; color: var(--accent); }
.shop-nav { display: flex; gap: 6px; align-items: center; flex: none; }
.shop-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.shop-nav a:hover { background: var(--accent-soft); }
.shop-nav a[aria-current="page"] { color: var(--accent); }
.shop-nav svg { width: 22px; height: 22px; }
.shop-main { max-width: 1160px; margin: 0 auto; padding: 20px 16px 72px; }
.shop-foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 15px; }
.shop-foot-inner { max-width: 1160px; margin: 0 auto; padding: 28px 16px 36px; display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.foot-brand { font: 700 18px var(--serif); color: var(--text); margin-bottom: 4px; }
.foot-note { text-align: right; }
@media (max-width: 560px) {
  .shop-brand { font-size: 18px; }
  .brand-mark { width: 26px; height: 26px; }
  .shop-nav a { padding: 0 8px; }
  .shop-nav .nav-text { display: none; } /* the brand links to the landing page, which offers both */
  .foot-note { text-align: left; }
}
@media (max-width: 400px) { .cart-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* home / catalog */
.eyebrow { margin: 0 0 6px; color: var(--clay); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.shop-hero { margin: 4px 0 24px; padding: clamp(28px, 6vw, 64px) 20px; text-align: center; border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(120% 140% at 50% 0%, var(--surface) 0%, var(--accent-soft) 100%); border: 1px solid var(--line); }
.shop-hero h1 { font: 700 clamp(30px, 5.4vw, 52px)/1.08 var(--serif); margin: 0 0 10px; text-wrap: balance; }
.shop-hero .lead { margin: 0 auto; max-width: 560px; color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); }
.perks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.perks li { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.perks li::before { content: "✓"; color: var(--accent); margin-right: 6px; }
.shop-hero .msg { max-width: 560px; margin: 16px auto 0; }
.shop-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.search-form { display: flex; gap: 8px; flex: 0 1 340px; }
.search-form .search { margin: 0; min-height: 44px; }
.search-form .btn { min-height: 44px; }
.result-count { margin: 0 0 14px; }
@media (max-width: 720px) {
  /* one swipeable row of categories instead of a tall wall of chips */
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { scroll-snap-align: start; }
  .search-form { flex: 1 1 100%; }
}
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.card { height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card-img { position: relative; aspect-ratio: 1; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .25s; }
.card:hover .card-img img { transform: scale(1.03); }
.no-img { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.no-img svg { width: 56px; height: 56px; opacity: .7; }
.path-placeholder { color: var(--clay); opacity: .55; }
.path-placeholder svg { width: 96px; height: 96px; }
.tag { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag-out { background: #1d2125; color: #fff; }
.card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-name { font-size: 16px; font-weight: 600; line-height: 1.3; margin: 0; }
.card-price { margin: auto 0 0; padding-top: 4px; font-weight: 700; }
.card-price .from { font-weight: 400; color: var(--muted); font-size: 14px; }
.card-meta { margin: 0; color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .card-body { padding: 10px 10px 12px; } .card-name { font-size: 14px; } }
.empty { padding: 56px 0; text-align: center; }
.empty .btn { text-decoration: none; display: inline-block; }

/* product */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 4px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--text); }
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 800px) { .product { grid-template-columns: 1fr; } }
.product-img { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
@media (min-width: 801px) { .product-img { position: sticky; top: 84px; } }
.product-buy h1 { font: 700 clamp(28px, 3.6vw, 38px)/1.12 var(--serif); margin: 0 0 8px; text-wrap: balance; }
.product-price { font-size: 26px; font-weight: 700; margin: 0 0 2px; color: var(--accent); }
/* gallery thumbnails + "About this piece" (product content import) */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumb { width: 64px; height: 64px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--accent); }
@media (min-width: 801px) { .product-media { position: sticky; top: 84px; } .product-media .product-img { position: static; } }
.product-desc { max-width: 72ch; margin-top: 36px; line-height: 1.65; }
.product-desc h2 { font: 700 22px/1.2 var(--serif); }
.product-desc p { margin: 0 0 12px; }
.product-bullets { margin: 4px 0 0; padding-left: 1.2em; }
.product-bullets li { margin: 0 0 6px; }
.opt { border: 0; padding: 0; margin: 20px 0; }
.opt legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { margin: 0; color: var(--text); font-size: 14px; position: relative; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch span { display: inline-flex; align-items: center; gap: 4px; min-height: 42px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.swatch span:hover { border-color: var(--accent); }
.swatch em { font-style: normal; color: var(--muted); font-size: 12px; }
.swatch input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; background: var(--accent-soft); font-weight: 600; }
.swatch input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.buy-row { display: flex; gap: 12px; align-items: end; margin-top: 16px; }
.buy-row .qty { width: 92px; margin: 0; }
.buy-row .btn { flex: 1; min-height: 48px; padding: 12px 16px; font-size: 17px; }
.pickup-note { display: flex; margin-bottom: 0; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); font-size: 14px; }
.pickup-note svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 1px; }

/* cart */
.page-title { font: 700 clamp(28px, 4vw, 36px)/1.15 var(--serif); margin: 8px 0 18px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }
table.cart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
table.cart th { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
table.cart td { vertical-align: middle; }
.cart-item { display: flex; gap: 12px; align-items: center; }
.cart-thumb { display: block; width: 64px; height: 64px; flex: none; border-radius: 8px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
table.cart .qty-in { width: 72px; margin: 0; padding: 8px; min-height: 40px; }
.cart-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 620px) {
  /* stack each line into a small card */
  table.cart thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.cart, table.cart tbody, table.cart tr, table.cart td { display: block; width: 100%; }
  table.cart tr { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 12px; }
  table.cart tr:last-child { border-bottom: 0; }
  table.cart td { padding: 0; border: 0; text-align: left; }
  table.cart td.cart-item { grid-column: 1 / -1; display: flex; }
  table.cart td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
  table.cart td.num { text-align: right; }
  table.cart td.cart-remove { grid-column: 1 / -1; text-align: right; }
}

/* checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 800px) { .checkout { grid-template-columns: 1fr; } .checkout .summary { order: -1; } }
@media (min-width: 801px) { .checkout .summary { position: sticky; top: 84px; } }
.checkout fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px 4px; margin: 0 0 16px; }
.checkout legend { font-weight: 700; padding: 0 6px; font-size: 17px; }
.checkout label { color: var(--text); font-weight: 600; }
.checkout label input, .checkout label textarea { font-weight: 400; min-height: 44px; }
.checkout label.radio { min-height: 44px; padding: 8px 12px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; cursor: pointer; }
.checkout label.radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.checkout label.radio input { min-height: 0; accent-color: var(--accent); }
.checkout label .muted { font-weight: 400; }
.req { color: var(--clay); }

/* order confirmation */
.order-hero { text-align: center; padding: 28px 0 18px; }
.order-hero h1 { font: 700 clamp(26px, 4vw, 34px)/1.2 var(--serif); margin: 8px 0; }
.order-check { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.order-check svg { width: 34px; height: 34px; }
.back-link { text-align: center; }

/* staff */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 18px; }
.panel h2 { margin-top: 0; font-size: 18px; }
.stack-wide { max-width: 640px; }
.stack-wide fieldset { border: 0; padding: 0; margin: 8px 0 14px; }
.stack-wide legend { font-weight: 600; margin-bottom: 6px; }
.order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--line); color: var(--text); vertical-align: middle; }
.status-paid { background: #d1fadf; color: #05603a; }
.status-ready { background: #fef0c7; color: #93370d; }
.status-pending_payment { background: #e0eaff; color: #1d3a8a; }
.status-cancelled { background: #fee4e2; color: #912018; }
.note { padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--bg); }
.topbar nav { flex-wrap: wrap; }

/* ---------------------------------------------------------------- two ways to shop */
.landing-hero { text-align: center; padding: clamp(20px, 5vw, 48px) 8px 8px; }
.landing-hero h1 { font: 700 clamp(32px, 6vw, 56px)/1.06 var(--serif); margin: 0 0 10px; text-wrap: balance; }
.landing-hero .lead { margin: 0 auto; max-width: 560px; color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); }
.landing-address { margin: 10px 0 0; font-weight: 600; }
.landing-hero .msg { max-width: 560px; margin: 16px auto 0; }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 3vw, 28px); margin: 24px 0 32px; }
@media (max-width: 720px) { .paths { grid-template-columns: 1fr; } }
.path { display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--line); border-radius: calc(var(--radius) + 6px); overflow: hidden; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.path:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.path-stock:hover { border-color: var(--accent); }
.path-catalog:hover { border-color: var(--clay); }
.path-img { position: relative; aspect-ratio: 16 / 9; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.path-img img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.path-tag { position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.tag-stock { background: var(--accent); color: var(--accent-ink); }
.tag-special { background: var(--clay); color: #fff; }
.path-body { position: relative; padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.path-step { position: absolute; top: -22px; right: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 20px var(--serif); background: var(--surface); border: 2px solid var(--line); }
.path-title { font: 700 clamp(24px, 3vw, 30px)/1.15 var(--serif); margin: 0; }
.path-body p { margin: 0; color: var(--muted); }
.path-body p strong { color: var(--text); }
.path-facts { list-style: none; padding: 0; margin: 4px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.path-facts li { padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.path-cta { margin-top: auto; align-self: flex-start; min-height: 48px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.path-catalog .path-cta { border-color: var(--clay); color: var(--clay); }
.landing-delivery { text-align: center; color: var(--muted); padding: 8px 0 0; }
.landing-delivery h2 { font: 700 20px var(--serif); color: var(--text); margin: 0 0 4px; }

.list-hero { margin: 0 0 20px; padding: clamp(20px, 4vw, 36px) clamp(16px, 4vw, 32px); border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line); background: var(--surface); }
.list-hero-stock { border-left: 6px solid var(--accent); }
.list-hero-catalog { border-left: 6px solid var(--clay); }
.list-hero h1 { font: 700 clamp(28px, 4.6vw, 44px)/1.1 var(--serif); margin: 0 0 8px; }
.list-hero .lead { margin: 0 0 12px; max-width: 680px; font-size: clamp(16px, 2vw, 19px); }
.list-hero .notice { max-width: 680px; }
.switch-path { margin: 12px 0 0; color: var(--muted); }
.switch-path a { font-weight: 600; color: var(--text); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 0; }
.pager .btn { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; margin: 12px 0; font-size: 15px; line-height: 1.5; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.notice-catalog { background: color-mix(in srgb, var(--clay) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--clay) 45%, var(--line)); }
.notice-catalog svg { color: var(--clay); }
.notice-stock { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.notice-stock svg { color: var(--accent); }

.option-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 15px; cursor: pointer; }
.option-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; background: var(--accent-soft); }
.option-card input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.option-card em { font-style: normal; color: var(--muted); }
.option-card .small { display: block; margin-top: 2px; }
.inline-check { display: flex; width: fit-content; gap: 8px; align-items: center; margin: 6px 0 0; color: var(--text); min-height: 32px; }
.inline-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.tag-inline { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }

.parked { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 14px; margin: 0 0 14px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface); }
.parked p { margin: 0; flex: 1 1 260px; }
.order-kind { margin: 0 0 10px; padding: 6px 10px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.kind-stock, .kind.kind-in_stock { background: var(--accent-soft); color: var(--accent); }
.kind-catalog, .kind.kind-catalog { background: color-mix(in srgb, var(--clay) 14%, var(--surface)); color: var(--clay); }
.kind { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; vertical-align: middle; }
.totals .sub { font-size: 14px; color: var(--muted); }

.conflict { max-width: 640px; margin: 8px auto; }
.conflict-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.conflict-actions form { margin: 0; }
.conflict-actions .btn { min-height: 48px; display: inline-flex; align-items: center; text-decoration: none; }

.checkout .radio-card { align-items: flex-start; }
.checkout .radio-card input { margin-top: 4px; }
.block { display: block; font-weight: 400; margin-top: 2px; }
.fulfil-hint { margin: -4px 0 10px; }
.delivery-fields { margin: 4px 0 14px; padding: 14px 14px 2px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.delivery-fields[hidden] { display: none; }
.delivery-fields > p:first-child { margin-top: 0; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 420px) { .row-2 { grid-template-columns: 1fr; gap: 0; } }
.zone-msg { margin: -6px 0 12px; font-weight: 600; min-height: 1em; }
.zone-msg:empty { display: none; }
.checkout label.ack { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 400; }
.checkout label.ack input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--accent); }

/* full catalog (catalog_store.py): collection filter, long option lists, category counts */
.collection-select, .option-select { max-width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.collection-select { max-width: 220px; }
/* with the collection filter the search row needs room: give it the full width and let the box grow */
.search-form:has(.collection-select) { flex: 1 1 100%; flex-wrap: wrap; }
.search-form:has(.collection-select) .search { flex: 1 1 200px; min-width: 0; }
.option-select { width: 100%; }
.chip-count { opacity: .65; font-size: 12px; margin-left: 2px; }
@media (max-width: 600px) { .collection-select { max-width: 100%; flex: 1 1 100%; } }
.lead-time { margin: 10px 0 0; color: var(--muted); }
.lead-time strong { color: var(--text); }
.cushion-toggle { flex: 1 1 100%; margin: 0; }
.option-filter { width: 100%; min-height: 44px; margin: 0 0 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.option-filter-count { margin: -4px 0 6px; }
