/* Storefront: the shop's menu, item sheet and basket. Mobile first, light first.
   Colours only through theme variables (the business's brand colours are set
   on [data-theme] by theme.css()), so light and dark both work. The pages
   after the menu (checkout, tracking, receipt) add sf-pages.css. */

.sf-body {
  --sf-top-h: 60px; --sf-r: 14px; --sf-r-lg: 20px; --sf-ease: cubic-bezier(.2, .8, .2, 1);
  --sf-line: var(--color-base-300); --sf-card: var(--color-base-100); --sf-muted: var(--counta-muted);
  --sf-tint: color-mix(in oklab, var(--color-primary) 9%, var(--color-base-100));
  --sf-shadow: 0 1px 2px rgba(14, 59, 46, .06), 0 6px 18px rgba(14, 59, 46, .06);
  --sf-shadow-pop: 0 18px 48px rgba(14, 59, 46, .22);
  font-family: var(--sf-font, "Figtree", ui-sans-serif, system-ui, sans-serif); font-size: 16px; line-height: 1.5;
  min-height: 100vh; display: flex; flex-direction: column; background: var(--color-base-200);
  color: var(--color-base-content); -webkit-tap-highlight-color: transparent;
}
[data-theme="counta-dark"] .sf-body { --sf-shadow: 0 0 0 1px rgba(243, 234, 214, .05); --sf-shadow-pop: 0 18px 48px rgba(0, 0, 0, .55); }
.sf-wrap { width: 100%; max-width: 1232px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .sf-wrap { padding: 0 24px; } }
.sf-main { flex: 1 0 auto; padding-bottom: 96px; }
.sf-hidden { display: none !important; }
.sf-muted { color: var(--sf-muted); }
.sf-small { font-size: 14px; line-height: 20px; }
.sf-strong { font-weight: 600; }
.sf-grow { flex: 1 1 auto; min-width: 0; }
.sf-row-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sf-justify-center { justify-content: center; }
.sf-mt-3 { margin-top: 12px; } .sf-mt-4 { margin-top: 16px; }
.sf-link { color: var(--color-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.sf-help { font-size: 14px; color: var(--sf-muted); margin-top: 6px; }
.sf-error { color: var(--color-error); font-size: 14px; margin-top: 6px; }
.sf-error:empty, .sf-problems:empty { display: none; }
.tabular, .num { font-variant-numeric: tabular-nums; }
.i16 { width: 16px; height: 16px; flex: none; } .i18 { width: 18px; height: 18px; flex: none; }
.i20 { width: 20px; height: 20px; flex: none; } .i24 { width: 24px; height: 24px; flex: none; }
.i28 { width: 28px; height: 28px; flex: none; } .i48 { width: 48px; height: 48px; flex: none; }
.sf-skip { position: absolute; left: -999px; top: 8px; }
.sf-skip:focus { left: 8px; z-index: 60; background: var(--sf-card); padding: 8px 16px; border-radius: 8px; }
.sf-body :focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
img[data-fade] { opacity: 0; transition: opacity 320ms var(--sf-ease); }
img[data-fade].is-in, html:not(.js) img[data-fade] { opacity: 1; }

/* Buttons */
.sf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer;
  transition: transform 120ms var(--sf-ease), background-color 120ms, box-shadow 120ms; white-space: nowrap; }
.sf-btn:active { transform: scale(.97); }
.sf-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.sf-btn-primary { background: var(--color-primary); color: var(--color-primary-content); box-shadow: 0 2px 0 color-mix(in oklab, var(--color-primary) 60%, #000); }
.sf-btn-primary:hover { background: color-mix(in oklab, var(--color-primary) 88%, #000); }
.sf-btn-secondary { background: var(--color-secondary); color: var(--color-secondary-content); }
.sf-btn-soft { background: var(--sf-card); color: var(--color-base-content); border-color: var(--sf-line); }
.sf-btn-soft:hover { border-color: var(--color-base-content); }
.sf-btn-ghost { background: transparent; color: var(--color-base-content); }
.sf-btn-danger { background: transparent; color: var(--color-error); border-color: color-mix(in oklab, var(--color-error) 45%, transparent); }
.sf-btn-danger.is-sure { background: var(--color-error); color: var(--color-error-content, #fff); border-color: var(--color-error); }
.sf-btn-ghost:hover { background: color-mix(in oklab, var(--color-base-content) 7%, transparent); }
.sf-btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.sf-btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.sf-btn-block { width: 100%; }
.sf-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  color: var(--color-base-content); background: transparent; border: 0; cursor: pointer; transition: background-color 120ms; }
.sf-icon-btn:hover { background: color-mix(in oklab, var(--color-base-content) 8%, transparent); }
.sf-icon-btn-sm { width: 32px; height: 32px; }

/* Top bar */
.sf-top { position: sticky; top: 0; z-index: 30; height: var(--sf-top-h);
  background: color-mix(in oklab, var(--color-base-100) 90%, transparent); border-bottom: 1px solid var(--sf-line);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
.sf-top-row { height: 100%; display: flex; align-items: center; gap: 8px; }
.sf-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.sf-brand-logo, .sf-brand-mark { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: none; background: var(--sf-card); }
.sf-brand-mark { display: grid; place-items: center; background: var(--color-primary); color: var(--color-primary-content);
  font-family: var(--sf-display); font-weight: 700; font-size: 18px; }
.sf-brand-name { font-family: var(--sf-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  /* Long names get two short lines on a phone instead of "Mama Pizza & C...". */
  .sf-brand-name { font-size: 15px; line-height: 18px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
.sf-top-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.sf-basket-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 12px; margin-left: 6px;
  border-radius: 999px; background: var(--color-primary); color: var(--color-primary-content); font-weight: 700; }
.sf-basket-count { min-width: 1ch; }
.sf-basket-total { display: none; font-weight: 600; }
.sf-basket-total:not(:empty) { padding-left: 8px; border-left: 1px solid color-mix(in oklab, var(--color-primary-content) 35%, transparent); }
@media (min-width: 768px) { .sf-basket-total:not(:empty) { display: inline; } }

/* Hero: the cover photo under a scrim, or a brand-colour band without one */
.sf-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff8e8; background: var(--color-secondary);
  min-height: 260px; display: flex; align-items: flex-end; }
.sf-hero:not(.has-cover) { color: var(--color-secondary-content); min-height: 220px; }
@media (min-width: 1024px) {
  .sf-hero { max-width: 1184px; margin: 20px auto 0; border-radius: 24px; min-height: 380px; }
  .sf-hero:not(.has-cover) { min-height: 280px; }
}
.sf-hero-media { position: absolute; inset: 0; z-index: -1; }
.sf-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sf-hero-blur { filter: blur(20px); transform: scale(1.1); }
.sf-hero-scrim { position: absolute; inset: 0; background: linear-gradient(to right, rgba(7, 26, 19, .62), rgba(7, 26, 19, .12) 65%), linear-gradient(to top, rgba(7, 26, 19, .9) 0%, rgba(7, 26, 19, .55) 45%, rgba(7, 26, 19, .15) 100%); }
.sf-hero-pattern { position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 12%, color-mix(in oklab, var(--color-primary) 70%, transparent) 0 90px, transparent 91px),
              radial-gradient(circle at 96% 70%, color-mix(in oklab, var(--color-accent) 55%, transparent) 0 46px, transparent 47px),
              radial-gradient(color-mix(in oklab, var(--color-secondary-content) 14%, transparent) 1.2px, transparent 1.4px) 0 0 / 16px 16px; }
.sf-hero-body { position: relative; padding-top: 28px; padding-bottom: 22px; }
@media (min-width: 1024px) { .sf-hero-body { padding: 40px 40px 34px; } }
.sf-hero-logo { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: var(--sf-card);
  box-shadow: 0 0 0 3px rgba(255, 248, 232, .92), 0 8px 20px rgba(0, 0, 0, .25); margin-bottom: 12px; }
@media (min-width: 1024px) { .sf-hero-logo { width: 80px; height: 80px; border-radius: 20px; } }
.sf-hero-title { font-family: var(--sf-display); font-weight: 700; letter-spacing: -.02em; font-size: 32px; line-height: 36px; text-wrap: balance; }
@media (min-width: 1024px) { .sf-hero-title { font-size: 52px; line-height: 56px; } }
.sf-hero-tagline { margin-top: 6px; font-size: 16px; line-height: 22px; max-width: 52ch; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
@media (min-width: 1024px) { .sf-hero-tagline { font-size: 19px; line-height: 28px; } }
.sf-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sf-hero-chip, .sf-status { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; background: rgba(255, 248, 232, .16); border: 1px solid rgba(255, 248, 232, .28);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sf-hero:not(.has-cover) .sf-hero-chip, .sf-hero:not(.has-cover) .sf-status {
  background: color-mix(in oklab, var(--color-secondary-content) 12%, transparent); border-color: color-mix(in oklab, var(--color-secondary-content) 26%, transparent); }
.sf-status-dot { width: 8px; height: 8px; border-radius: 999px; background: #f2b705; }
.sf-status.is-open .sf-status-dot { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .28); }
.sf-branch { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 4px 4px 4px 12px; border-radius: 999px;
  background: rgba(255, 248, 232, .95); color: #14261f; font-size: 14px; }
.sf-branch-label { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.sf-branch-select { height: 32px; border: 0; border-radius: 999px; background: var(--color-base-100); color: var(--color-base-content); padding: 0 10px; font-weight: 600; font-size: 14px; }

/* Notice and callouts */
.sf-note, .sf-callout { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: var(--sf-r);
  font-size: 15px; line-height: 22px; }
.sf-note { background: color-mix(in oklab, var(--color-accent) 22%, var(--sf-card)); border: 1px solid color-mix(in oklab, var(--color-accent) 50%, var(--sf-line)); }
.sf-callout-warn { background: color-mix(in oklab, var(--color-warning) 12%, var(--sf-card)); border: 1px solid color-mix(in oklab, var(--color-warning) 35%, var(--sf-line)); }
.sf-note svg, .sf-callout svg { margin-top: 1px; }

/* Category chips and search (sticky under the top bar) */
.sf-cats { position: sticky; top: var(--sf-top-h); z-index: 20; margin-top: 12px;
  background: color-mix(in oklab, var(--color-base-200) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sf-cats.is-stuck { border-bottom: 1px solid var(--sf-line); }
.sf-cats-row { display: flex; align-items: center; gap: 8px; min-height: 56px; }
.sf-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; scroll-behavior: smooth; }
.sf-chips::-webkit-scrollbar { display: none; }
.sf-chip { flex: none; height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; white-space: nowrap;
  font-size: 15px; font-weight: 600; background: var(--sf-card); border: 1px solid var(--sf-line); transition: background-color 160ms, color 160ms; }
.sf-chip:hover { border-color: var(--color-base-content); }
.sf-chip.is-active { background: var(--color-secondary); color: var(--color-secondary-content); border-color: var(--color-secondary); }
[data-theme="counta-dark"] .sf-chip.is-active { background: var(--color-primary); color: var(--color-primary-content); border-color: var(--color-primary); }
.sf-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 4px 0 14px; border-radius: 999px;
  background: var(--sf-card); border: 1px solid var(--sf-line); }
.sf-search-input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; color: inherit; outline: none; }

/* Menu */
.sf-section { padding-top: 24px; scroll-margin-top: calc(var(--sf-top-h) + 64px); }
.sf-section-title { font-family: var(--sf-display); font-weight: 700; letter-spacing: -.015em; font-size: 22px; line-height: 28px;
  margin-bottom: 12px; display: flex; align-items: baseline; gap: 8px; }
.sf-section-img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; align-self: center; flex: none; }
.sf-chip.has-photo { padding-left: 4px; gap: 8px; }
.sf-chip-img { width: 28px; height: 28px; border-radius: 999px; object-fit: cover; flex: none; }
@media (min-width: 1024px) { .sf-section-title { font-size: 26px; line-height: 32px; } }
.sf-section-count { font-family: var(--sf-font); font-size: 14px; font-weight: 600; color: var(--sf-muted); }
.sf-items { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
/* auto-fill, not auto-fit: a one-item category keeps the same column width as the rest. */
@media (min-width: 900px) { .sf-items { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; } }
.sf-item { position: relative; background: var(--sf-card); border: 1px solid var(--sf-line); border-radius: var(--sf-r);
  box-shadow: var(--sf-shadow); transition: transform 160ms var(--sf-ease), box-shadow 160ms; }
@media (hover: hover) { .sf-item:hover { transform: translateY(-2px); box-shadow: var(--sf-shadow-pop); } }
.sf-item-link { display: flex; gap: 14px; padding: 14px; min-height: 124px; border-radius: inherit; }
.sf-item-media { order: 2; position: relative; flex: none; width: 112px; height: 112px; border-radius: 12px; overflow: hidden; background: var(--sf-tint); }
.sf-item-media img { width: 100%; height: 100%; object-fit: cover; }
.sf-item-plate { position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in oklab, var(--color-primary) 55%, var(--sf-card)); }
.sf-item-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-right: 4px; }
.sf-item-name { font-weight: 700; font-size: 16px; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-item-desc { font-size: 14px; line-height: 20px; color: var(--sf-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-item-price { margin-top: 8px; font-weight: 700; font-size: 16px; }
.sf-add { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: var(--color-primary); color: var(--color-primary-content); border: 3px solid var(--sf-card); cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18); transition: transform 120ms var(--sf-ease); }
.sf-add:active { transform: scale(.9); }
.sf-add-count { display: none; font-weight: 800; font-size: 15px; }
.sf-add.in-basket { background: var(--color-secondary); color: var(--color-secondary-content); }
.sf-add.in-basket svg { display: none; } .sf-add.in-basket .sf-add-count { display: inline; }
.sf-add.bump { animation: sf-bump 360ms var(--sf-ease); }
@keyframes sf-bump { 40% { transform: scale(1.25); } }
.sf-item.no-photo .sf-item-link { padding-right: 64px; min-height: 96px; }

/* Photo grid: photo on top, square */
[data-layout="grid"] .sf-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { [data-layout="grid"] .sf-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { [data-layout="grid"] .sf-items { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
[data-layout="grid"] .sf-item { overflow: hidden; }
[data-layout="grid"] .sf-item-link { flex-direction: column; padding: 0; gap: 0; min-height: 0; }
[data-layout="grid"] .sf-item-media { order: 0; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 0; }
[data-layout="grid"] .sf-item-body { padding: 10px 12px 14px; min-height: 104px; }
[data-layout="grid"] .sf-item-name { font-size: 15px; line-height: 20px; }
[data-layout="grid"] .sf-item-desc { font-size: 13px; line-height: 18px; }
[data-layout="grid"] .sf-item-price { padding-right: 44px; margin-top: auto; }
[data-layout="grid"] .sf-item.no-photo .sf-item-link { padding-right: 0; }
@media (min-width: 768px) { [data-layout="grid"] .sf-item-body { padding: 14px 16px 16px; } }

/* Compact list: dense rows for long menus */
[data-layout="compact"] .sf-items { gap: 0; border: 1px solid var(--sf-line); border-radius: var(--sf-r); background: var(--sf-card); overflow: hidden; }
@media (min-width: 900px) { [data-layout="compact"] .sf-items { grid-template-columns: minmax(0, 1fr); } }
[data-layout="compact"] .sf-item { border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--sf-line); transform: none; }
[data-layout="compact"] .sf-item:last-child { border-bottom: 0; }
[data-layout="compact"] .sf-item-link { min-height: 64px; padding: 12px 64px 12px 16px; }
[data-layout="compact"] .sf-item-body { flex-direction: row; align-items: center; gap: 12px; }
[data-layout="compact"] .sf-item-price { margin: 0 0 0 auto; white-space: nowrap; }
[data-layout="compact"] .sf-add { top: 50%; bottom: auto; margin-top: -18px; width: 36px; height: 36px; border-width: 0; box-shadow: none; }

/* Hours and where to find us */
.sf-info { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 768px) { .sf-info { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sf-info-card { background: var(--sf-card); border: 1px solid var(--sf-line); border-radius: var(--sf-r); padding: 20px; }
.sf-info-title { display: flex; align-items: center; gap: 8px; font-family: var(--sf-display); font-weight: 700; font-size: 20px; margin-bottom: 12px; }
.sf-hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed var(--sf-line); font-size: 15px; }
.sf-hours-row:last-child { border-bottom: 0; }
.sf-hours-row.is-today { font-weight: 700; color: var(--color-secondary); }
[data-theme="counta-dark"] .sf-hours-row.is-today { color: var(--color-base-content); }
.sf-hours-row.is-today dt::after { content: " (today)"; font-weight: 500; color: var(--sf-muted); }

/* Empty states */
.sf-empty { text-align: center; padding: 48px 20px; margin-top: 24px; background: var(--sf-card); border: 1px solid var(--sf-line); border-radius: var(--sf-r-lg); }
.sf-empty .sf-btn { margin-top: 16px; }
.sf-empty-art { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; margin-bottom: 12px;
  background: var(--sf-tint); color: var(--color-primary); box-shadow: 0 2px 0 var(--color-secondary); }
.sf-empty-title { font-family: var(--sf-display); font-weight: 700; font-size: 20px; line-height: 26px; margin-bottom: 4px; }

/* Footer */
.sf-footer { border-top: 1px solid var(--sf-line); background: var(--sf-card); padding: 24px 0 calc(96px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--sf-muted); }
.sf-footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.sf-footer-name { font-family: var(--sf-display); font-weight: 700; font-size: 16px; color: var(--color-base-content); }
.sf-footer a { color: inherit; text-decoration: underline; }

/* Basket bar (phones and tablets) */
.sf-cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  pointer-events: none; animation: sf-rise 280ms var(--sf-ease); }
.sf-cartbar-btn { pointer-events: auto; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px 0 10px;
  border-radius: 999px; background: var(--color-primary); color: var(--color-primary-content); font-weight: 700; box-shadow: var(--sf-shadow-pop); }
.sf-cartbar-count { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 999px;
  background: color-mix(in oklab, var(--color-primary-content) 20%, transparent); }
.sf-cartbar-text { flex: 1; }
@media (min-width: 1024px) { .sf-cartbar { display: none !important; } }
@keyframes sf-rise { from { transform: translateY(100%); } to { transform: none; } }

/* Product page */
.sf-crumbs { display: flex; align-items: center; gap: 6px; padding: 16px 0 12px; font-size: 14px; color: var(--sf-muted); }
.sf-crumbs a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.sf-crumbs a:hover { color: var(--color-base-content); }
.sf-product { display: grid; gap: 20px; background: var(--sf-card); border: 1px solid var(--sf-line); border-radius: var(--sf-r-lg);
  overflow: hidden; box-shadow: var(--sf-shadow); }
@media (min-width: 900px) { .sf-product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; } }
.sf-product-media { position: relative; aspect-ratio: 1 / 1; background: var(--sf-tint); overflow: hidden; }
.sf-product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sf-product-media .sf-item-plate svg { width: 64px; height: 64px; }
.sf-product-blur { filter: blur(18px); transform: scale(1.1); }
.sf-product-body { padding: 0 20px 24px; display: flex; flex-direction: column; }
@media (min-width: 900px) { .sf-product-body { padding: 40px; justify-content: center; } }
.sf-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-primary); }
.sf-product-title { font-family: var(--sf-display); font-weight: 700; letter-spacing: -.02em; font-size: 30px; line-height: 34px; margin-top: 4px; text-wrap: balance; }
@media (min-width: 900px) { .sf-product-title { font-size: 42px; line-height: 46px; } }
.sf-product-price { font-size: 22px; font-weight: 700; margin-top: 8px; }
.sf-product-desc { margin-top: 12px; font-size: 17px; line-height: 26px; color: var(--sf-muted); max-width: 52ch; }
.sf-product-sizes { margin-top: 16px; border-top: 1px solid var(--sf-line); }
.sf-product-sizes li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--sf-line); font-weight: 500; }

/* Stepper */
.sf-stepper { display: inline-flex; align-items: center; gap: 4px; height: 48px; padding: 4px; border-radius: 999px; border: 1px solid var(--sf-line); background: var(--sf-card); }
.sf-stepper output { min-width: 28px; text-align: center; font-weight: 700; font-size: 17px; }
.sf-step-btn { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; border: 0; cursor: pointer; font-size: 20px; font-weight: 600;
  background: color-mix(in oklab, var(--color-base-content) 7%, transparent); color: inherit; }
.sf-step-btn:hover { background: color-mix(in oklab, var(--color-base-content) 13%, transparent); }
.sf-stepper-sm { height: 36px; padding: 2px; margin-top: 6px; }
.sf-stepper-sm .sf-step-btn { width: 30px; height: 30px; font-size: 17px; }
.sf-stepper-sm output { min-width: 22px; font-size: 15px; }

/* Item sheet: bottom sheet on phones, two columns from 768px */
.sf-sheet, .sf-drawer { padding: 0; border: 0; background: transparent; color: var(--color-base-content); max-width: none; max-height: none; }
.sf-sheet::backdrop, .sf-drawer::backdrop { background: var(--counta-scrim, rgba(7, 34, 25, .72)); animation: sf-fade 200ms var(--sf-ease); }
.sf-sheet { width: 100%; margin: auto 0 0; }
.sf-sheet-box { position: relative; display: flex; flex-direction: column; max-height: 92vh; max-height: 92dvh; background: var(--sf-card);
  border-radius: 24px 24px 0 0; overflow: hidden; animation: sf-rise 280ms var(--sf-ease); }
.sf-sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  border: 0; cursor: pointer; background: color-mix(in oklab, var(--sf-card) 88%, transparent); color: var(--color-base-content); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.sf-sheet-media { position: relative; flex: none; aspect-ratio: 16 / 10; background: var(--sf-tint); overflow: hidden; }
.sf-sheet-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sf-sheet.no-photo .sf-sheet-media { aspect-ratio: auto; height: 64px; }
.sf-sheet-plate { position: absolute; inset: 0; }
.sf-sheet-main { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.sf-sheet-scroll { overflow-y: auto; padding: 20px 20px 8px; overscroll-behavior: contain; }
.sf-sheet-title { font-family: var(--sf-display); font-weight: 700; letter-spacing: -.02em; font-size: 26px; line-height: 30px; padding-right: 36px; }
.sf-sheet-price { font-weight: 700; font-size: 18px; margin-top: 4px; }
.sf-sheet-desc { margin-top: 8px; color: var(--sf-muted); font-size: 15px; line-height: 22px; }
.sf-sheet-desc:empty { display: none; }
.sf-sheet-foot { display: flex; gap: 12px; align-items: center; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sf-line); background: var(--sf-card); }
.sf-sheet-foot .sf-btn { min-height: 48px; }
@media (min-width: 768px) {
  .sf-sheet { width: min(880px, calc(100vw - 48px)); margin: auto; }
  .sf-sheet-box { flex-direction: row; height: min(600px, 86vh); max-height: none; border-radius: 20px; animation: sf-pop 220ms var(--sf-ease); }
  .sf-sheet-media, .sf-sheet.no-photo .sf-sheet-media { aspect-ratio: auto; height: auto; width: 46%; }
  .sf-sheet-scroll { padding: 28px 28px 8px; flex: 1 1 auto; }
  .sf-sheet-foot { padding: 14px 28px 18px; }
}
.sf-group { margin-top: 20px; border: 0; padding: 0; min-width: 0; }
.sf-group-head { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 0 0 8px; }
.sf-group-title { font-weight: 700; font-size: 16px; }
.sf-group-hint { font-size: 13px; font-weight: 600; color: var(--sf-muted); background: color-mix(in oklab, var(--color-base-content) 6%, transparent); padding: 2px 10px; border-radius: 999px; }
.sf-group-hint.is-required { color: var(--color-primary); background: var(--sf-tint); }
.sf-choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 2px; border-bottom: 1px solid var(--sf-line); cursor: pointer; }
.sf-choice:last-child { border-bottom: 0; }
.sf-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sf-choice-mark { flex: none; width: 22px; height: 22px; border: 2px solid color-mix(in oklab, var(--color-base-content) 35%, transparent); border-radius: 999px; transition: border-color 120ms, background-color 120ms; }
.sf-choice input[type="checkbox"] + .sf-choice-mark { border-radius: 6px; }
.sf-choice input:checked + .sf-choice-mark { border-color: var(--color-primary); background: var(--color-primary); box-shadow: inset 0 0 0 4px var(--sf-card); }
.sf-choice input[type="checkbox"]:checked + .sf-choice-mark { box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); background-size: 14px; background-position: center; background-repeat: no-repeat; }
.sf-choice input:focus-visible + .sf-choice-mark { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.sf-choice input:disabled ~ span { opacity: .45; }
.sf-choice-name { flex: 1; font-size: 16px; }
.sf-choice-price { color: var(--sf-muted); font-size: 15px; font-weight: 600; }

/* Basket drawer: from the right on wide screens, up from the bottom on phones */
.sf-drawer { width: 100%; margin: auto 0 0; }
.sf-drawer-box { display: flex; flex-direction: column; max-height: 88vh; max-height: 88dvh; background: var(--sf-card); border-radius: 24px 24px 0 0; animation: sf-rise 280ms var(--sf-ease); }
@media (min-width: 768px) {
  .sf-drawer { width: 420px; height: 100vh; height: 100dvh; margin: 0 0 0 auto; }
  .sf-drawer-box { height: 100%; max-height: none; border-radius: 20px 0 0 20px; animation: sf-slide 240ms var(--sf-ease); }
}
.sf-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 20px; border-bottom: 1px solid var(--sf-line); }
.sf-drawer-title { font-family: var(--sf-display); font-weight: 700; font-size: 22px; }
.sf-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 4px 20px; }
.sf-drawer-empty { padding: 40px 24px; text-align: center; }
.sf-drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sf-line); }
.sf-drawer-sum { display: flex; justify-content: space-between; font-size: 17px; font-weight: 600; }
.sf-drawer-foot .sf-btn { margin-top: 12px; min-height: 52px; }
.sf-bline { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--sf-line); }
.sf-bline:last-child { border-bottom: 0; }
.sf-bline-media { flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--sf-tint); }
.sf-bline-media img { width: 100%; height: 100%; object-fit: cover; }
.sf-bline-body { flex: 1 1 auto; min-width: 0; }
.sf-bline-name { font-weight: 600; line-height: 20px; }
.sf-bline-detail { font-size: 13px; line-height: 18px; color: var(--sf-muted); }
.sf-bline-total { font-weight: 700; white-space: nowrap; }
.sf-top.is-scrolled { box-shadow: 0 6px 20px rgba(14, 59, 46, .08); }
@keyframes sf-fade { from { opacity: 0; } }
@keyframes sf-pop { from { opacity: 0; transform: scale(.96); } }
@keyframes sf-slide { from { transform: translateX(100%); } }

/* Toast */
/* Above the basket bar, clear of the category chips at the top. */
.sf-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 8px;
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 999px; background: var(--color-neutral); color: var(--color-neutral-content);
  font-weight: 600; font-size: 15px; box-shadow: var(--sf-shadow-pop); animation: sf-drop 220ms var(--sf-ease); }
@keyframes sf-drop { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (prefers-reduced-motion: reduce) { .sf-body *, .sf-body *::before { animation: none !important; transition: none !important; } }
