/*
 * The shop page (v2): resources/views/storefront/*.
 *
 * Every colour is a variable printed by App\Support\Storefront\ThemeStyle
 * (--sf-*), for the shop's ONE look: the page looks the same for every
 * visitor whatever their own light/dark mode. The site's own variables
 * (--text-main, --card-bg, --nav-accent ...) are pointed at the shop's inside
 * .sf, so the site's cart, heart and size-list buttons follow the shop.
 *
 * No Tailwind dark: classes here; the page never depends on html.dark.
 */

.sf,
.sf *,
.sf *::before,
.sf *::after { box-sizing: border-box; }

.sf {
    --sf-hero-h: max(var(--sf-hero-min, 380px), calc(var(--sf-hero-vh, 70) * 1vh));
    --sf-bar-h: 64px;
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    background: var(--sf-page);
    color: var(--sf-ink);
    overflow-x: clip;
}

@supports (height: 1svh) {
    .sf { --sf-hero-h: max(var(--sf-hero-min, 380px), calc(var(--sf-hero-vh, 70) * 1svh)); }
}

.sf h1, .sf h2, .sf .sf-title, .sf .sf-dlg-title, .sf .sf-box-title {
    font-family: var(--sf-font);
    letter-spacing: -0.01em;
}

/* v3 round 3: the rest of the text in the shop's text font (when chosen),
   and headings in the shop's heading colour (ThemeStyle: --sf-head, which
   is the text colour unless the shop chose its own). */
.sf { font-family: var(--sf-text-font, inherit); }
.sf .sf-title, .sf .sf-dlg-title, .sf .sf-box-title, .sf .sf-menu-head { color: var(--sf-head, var(--sf-ink)); }

/* The heading font's own weight (fonts with one weight are never made bold). */
.sf .sf-hero-name,
.sf .sf-title,
.sf .sf-dlg-title,
.sf .sf-box-title { font-weight: var(--sf-head-weight, 700); }

/* Zero weight, so every class below sets its own text colour. */
:where(.sf) a { color: inherit; }

/* ── Top picture ─────────────────────────────────────────────────────── */

.sf-media {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--sf-media-h, var(--sf-hero-h));
    z-index: 0;
    pointer-events: none;
    overflow: clip;
}

.sf-media-fx {
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100%;
    overflow: hidden;
    opacity: var(--vis, 1);
    will-change: opacity;
}

.sf-media-el,
.sf-media-fx picture,
.sf-media-fx video {
    display: block;
    width: 100%;
    height: 100%;
}

.sf-media-el {
    transition: transform 160ms linear, filter 160ms linear, opacity 600ms ease;
    object-fit: cover;
    filter: blur(var(--sf-blur, 0px));
    transform: scale(var(--sf-scale, 1));
    transform-origin: 50% 40%;
    will-change: transform, filter;
}

.sf[data-effect="blur"] .sf-media-el { filter: blur(calc(var(--sf-blur, 0px) + var(--p, 0) * 18px)); }
.sf[data-effect="parallax"] .sf-media-el { transform: translateY(calc(var(--p, 0) * 22%)) scale(1.12); }
.sf[data-effect="zoom"] .sf-media-el { transform: scale(calc(1.02 + var(--p, 0) * 0.32)); }
.sf[data-effect="zoom_out"] .sf-media-el { transform: scale(calc(1.32 - var(--p, 0) * 0.28)); }
.sf[data-effect="rise"] .sf-media-el { transform: translateY(calc(var(--p, 0) * -24%)) scale(1.12); }
.sf[data-effect="mono"] .sf-media-el { filter: blur(var(--sf-blur, 0px)) grayscale(var(--p, 0)); }
.sf[data-effect="frame"] .sf-media-fx {
    clip-path: inset(calc(var(--p, 0) * 7%) calc(var(--p, 0) * 7%) round calc(var(--p, 0) * 36px));
}
.sf[data-effect="drift"] .sf-media-el { animation: sf-drift 26s ease-in-out infinite alternate; }

@keyframes sf-drift {
    from { transform: scale(1.06) translate(0, 0); }
    to { transform: scale(1.16) translate(-2.5%, -2%); }
}
.sf-media-fx .sf-media-el { --sf-scale: 1.04; }

.sf-media-over,
.sf-media-dim {
    position: absolute;
    inset: 0;
}

.sf-media-over { background: var(--sf-hero-over); }

.sf-media-dim {
    background: #000;
    opacity: 0;
}

.sf[data-effect="darken"] .sf-media-dim { opacity: calc(var(--p, 0) * 0.7); }

.sf-media-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: var(--sf-fade, 0px);
    background: linear-gradient(to bottom, var(--sf-page-0), var(--sf-page));
}

.sf-in {
    position: relative;
    z-index: 1;
}

/* ── Shop bar ────────────────────────────────────────────────────────── */

.sf-top {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: var(--sf-bar-h);
    padding: 12px 18px;
    transition: background 200ms ease, box-shadow 200ms ease;
}

.sf-top[data-solid] {
    background: var(--sf-page);
    box-shadow: 0 1px 0 var(--sf-line);
}

.sf-top-l,
.sf-top-r {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sf-top-l { flex: 0 1 auto; }
.sf-top-r { flex: 0 0 auto; }

/* Category pills in the bar (after scrolling past the top part). */
.sf-top-pills {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
}

.sf-top[data-bar-pills] .sf-top-pills {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.sf-pills.sf-pills--bar {
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    gap: 6px;
    overflow: hidden;
}

.sf-pills--bar .sf-pill-cat { height: 40px; padding: 0 14px 0 4px; font-size: 13px; flex: 0 0 auto; }
.sf-pills--bar .sf-pill-pic { width: 32px; height: 32px; }
.sf-pills--bar .sf-pill-more { padding: 0 16px; }
.sf-pills--bar [data-sf-fit-hidden] { display: none; }

.sf-pill,
.sf-site {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: var(--sf-glass);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: 0 0 0 1px var(--sf-line), 0 2px 8px rgba(0, 0, 0, .06);
    color: var(--sf-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    white-space: nowrap;
}

.sf-pill:hover,
.sf-site:hover { box-shadow: 0 0 0 2px var(--sf-accent-ui), 0 2px 8px rgba(0, 0, 0, .06); }

.sf-pill:focus-visible,
.sf-site:focus-visible,
.sf-pill-cat:focus-visible,
.sf-coll:focus-visible,
.sf-btn:focus-visible,
.sf-round:focus-visible {
    outline: 3px solid var(--sf-accent-ui);
    outline-offset: 2px;
}

.sf-site { padding: 0 14px 0 5px; }

.sf-site-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sf-accent);
    color: var(--sf-on-accent);
    font-size: 15px;
    font-weight: 800;
}

.sf-menu-btn { padding: 0 14px 0 5px; }

.sf-mini-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #0b0b0b;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
    flex-shrink: 0;
}

.sf-mini-logo img { width: 100%; height: 100%; object-fit: cover; }
.sf-mini-logo--lg { width: 48px; height: 48px; font-size: 15px; }

.sf-icon-btn { width: 42px; padding: 0; }

.sf-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--sf-accent);
    color: var(--sf-on-accent);
    font-size: 11px;
    font-weight: 800;
    line-height: 19px;
    text-align: center;
}

.sf-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sf-accent);
    color: var(--sf-on-accent);
    font-size: 13px;
    font-weight: 800;
}

.sf-search { flex: 0 1 320px; min-width: 150px; }
.sf-top[data-bar-pills] .sf-search { flex-basis: 220px; }

.sf-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--sf-glass);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: 0 0 0 1px var(--sf-line), 0 2px 8px rgba(0, 0, 0, .06);
    color: var(--sf-ink);
}

.sf-search-box:focus-within { box-shadow: 0 0 0 2px var(--sf-accent-ui); }

.sf-search-box input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--sf-ink);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 0;
}

.sf-search-box input::placeholder { color: var(--sf-soft); opacity: 1; }
.sf-search-box input::-webkit-search-cancel-button { filter: grayscale(1); }

.sf-search-toggle { display: none; }

/* ── Top part ────────────────────────────────────────────────────────── */

.sf-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: calc(var(--sf-hero-h) - var(--sf-bar-h));
    padding: 24px 16px 22px;
    color: var(--sf-hero-ink);
    text-align: center;
}

/* White text on a picture: a soft shadow keeps it readable on light spots
   of a picture the server could not measure (the cover photo). */
.sf[data-media="1"][data-hero-ink="light"] .sf-hero-in {
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 18px rgba(0, 0, 0, .3);
}

.sf-hero-in {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
}

.sf[data-media="0"] .sf-hero {
    min-height: 0;
    margin: 4px 16px 0;
    padding: 36px 16px 20px;
    border-radius: 28px;
    background: var(--sf-band);
}

.sf-logo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #0b0b0b;
    font-size: 26px;
    font-weight: 800;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .06);
}

.sf-logo img { width: 100%; height: 100%; object-fit: cover; }

.sf-hero-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 0;
    font-size: clamp(30px, 6.2vw, 68px);
    font-weight: 700;
    line-height: 1.04;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.sf-hero-sub {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 0;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.sf-hero-sub > span + span::before {
    content: "\00B7";
    margin: 0 8px;
}

.sf-hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

/* Where the pills sit in the top part (the shop's choice). */
.sf-hero-pills {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.sf[data-media="1"] .sf-hero[data-pills="high"] { justify-content: center; }
.sf[data-media="1"] .sf-hero[data-pills="high"] .sf-hero-in { flex: 0 0 auto; }
.sf[data-media="1"] .sf-hero[data-pills="middle"] .sf-hero-pills { flex: 1 1 0; align-items: center; margin-top: 0; }

/* Category pills */
.sf-pills {
    display: flex;
    gap: 10px;
    max-width: 100%;
    padding: 4px 6px 6px;
}

/* In the middle: centred in a wide row (one row by default, sliding
   sideways when full; more rows when the shop chose that). */
.sf-hero[data-pills-layout="center"] .sf-pills {
    flex-wrap: nowrap;
    justify-content: safe center;
    max-width: min(1320px, 100%);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.sf-hero[data-pills-rows="wrap"][data-pills-layout="center"] .sf-pills {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
}

.sf-hero[data-pills-rows="wrap"][data-pills-layout="full"] .sf-pills {
    flex-wrap: wrap;
    overflow: visible;
}

/* Whole width: one row across the page, sliding sideways when it is full. */
.sf-hero[data-pills-layout="full"] .sf-pills {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.sf-hero[data-pills-layout="full"] .sf-pills .sf-pill-cat { flex: 1 0 auto; justify-content: center; }

.sf-pills::-webkit-scrollbar { display: none; }

.sf-pill-cat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding: 0 13px 0 4px;
    border-radius: 999px;
    border: 0;
    background: var(--sf-glass-2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: 0 0 0 1px var(--sf-line), 0 2px 8px rgba(0, 0, 0, .08);
    color: var(--sf-ink);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    text-shadow: none;
    white-space: nowrap;
    scroll-snap-align: start;
    flex-shrink: 0;
    cursor: pointer;
}

.sf-pill-cat:hover { box-shadow: 0 0 0 2px var(--sf-accent-ui); }
.sf-pill-cat[hidden] { display: none; }

.sf-pill-cat[aria-current="true"] {
    background: var(--sf-accent);
    color: var(--sf-on-accent);
    box-shadow: none;
}

.sf-pill-pic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #0b0b0b;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.sf-pill-pic img { width: 100%; height: 100%; object-fit: cover; }

/* ── Sections ────────────────────────────────────────────────────────── */

.sf-section {
    max-width: var(--sf-page-max, 1320px);
    margin: 0 auto;
    padding: 30px 18px;
}

/* A section the picture reaches sits on a glass panel in the page colour. */
.sf[data-media="1"][data-reach="collections"] .sf-colls,
.sf[data-media="1"][data-reach="page"] .sf-section {
    margin: 18px auto;
    width: calc(100% - 32px);
    padding: 24px 20px;
    border-radius: 28px;
    background: var(--sf-glass);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: 0 0 0 1px var(--sf-line);
}

.sf-title {
    margin: 0 0 16px;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--sf-ink);
}

.sf-center { display: flex; justify-content: center; margin-top: 22px; }

/* Collections */
.sf-coll-grid {
    display: grid;
    grid-template-columns: repeat(var(--sf-coll-cols, 4), minmax(0, 1fr));
    gap: 22px 16px;
}

.sf-coll {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: var(--sf-ink);
    min-width: 0;
}

.sf-coll[hidden] { display: none; }

.sf-coll-pic {
    --sf-coll-gap: 0px;
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--sf-coll-r, 18px);
    background: var(--sf-tile);
    aspect-ratio: 1 / 1;
}

.sf-coll-grid[data-ratio="wide"] .sf-coll-pic { aspect-ratio: 16 / 10; }
.sf-coll-grid[data-ratio="tall"] .sf-coll-pic { aspect-ratio: 4 / 5; }
.sf-coll-grid[data-shape="square"] .sf-coll-pic { border-radius: 4px; }
.sf-coll-grid[data-shape="circle"] .sf-coll-pic { border-radius: 50%; aspect-ratio: 1 / 1; }

/* Border inside the picture: a line in the page colour, a little in from
   the edge, like a mount. */
.sf-coll-grid[data-border="inside"] .sf-coll-pic::after {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: 1;
    border: var(--sf-coll-bw, 1px) solid var(--sf-page);
    border-radius: max(0px, calc(var(--sf-coll-r, 18px) - 8px));
    pointer-events: none;
}
.sf-coll-grid[data-border="inside"][data-shape="circle"] .sf-coll-pic::after { border-radius: 50%; }
.sf-coll-grid[data-border="inside"][data-shape="square"] .sf-coll-pic::after { border-radius: 2px; }

/* Border around the picture: a line in the page's text colour with a small
   gap, like a frame. */
.sf-coll-grid[data-border="outside"] .sf-coll-pic {
    --sf-coll-gap: 5px;
    padding: calc(var(--sf-coll-bw, 1px) + var(--sf-coll-gap));
    background: transparent;
    box-shadow: inset 0 0 0 var(--sf-coll-bw, 1px) var(--sf-frame);
}
.sf-coll-grid[data-border="outside"] .sf-coll-pic img,
.sf-coll-grid[data-border="outside"] .sf-coll-letter {
    border-radius: max(0px, calc(var(--sf-coll-r, 18px) - var(--sf-coll-gap) - var(--sf-coll-bw, 1px)));
}
.sf-coll-grid[data-border="outside"][data-shape="circle"] .sf-coll-pic img { border-radius: 50%; }
.sf-coll-grid[data-border="outside"][data-shape="square"] .sf-coll-pic img { border-radius: 2px; }
.sf-coll-grid[data-border="outside"] .sf-coll-letter { position: static; height: 100%; background: var(--sf-tile); }
.sf-coll-grid[data-shape="circle"] .sf-coll { text-align: center; }

/* Border in the shop's main colour (data-border-colour="main"). The main
   colour already stands out from the page by 3 to 1 (ThemeStyle). */
.sf-coll-grid[data-border-colour="main"][data-border="outside"] .sf-coll-pic { box-shadow: inset 0 0 0 var(--sf-coll-bw, 1px) var(--sf-accent-ui); }
.sf-coll-grid[data-border-colour="main"][data-border="inside"] .sf-coll-pic::after { border-color: var(--sf-accent-ui); }

.sf-coll-pic img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.sf-coll:hover .sf-coll-pic img { transform: scale(1.05); }

.sf-coll-letter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sf-font);
    font-size: 44px;
    font-weight: 800;
    color: var(--sf-ink);
}

.sf-coll-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sf-coll-name { font-size: 15px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.sf-coll-n { font-size: 13px; font-weight: 600; color: var(--sf-soft); }

/* Name on the picture: white on a dark shade at the bottom. */
.sf-coll-grid[data-names="over"]:not([data-shape="circle"]) .sf-coll { position: relative; }
.sf-coll-grid[data-names="over"]:not([data-shape="circle"]) .sf-coll-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 16px 14px;
    border-radius: 0 0 var(--sf-coll-r, 18px) var(--sf-coll-r, 18px);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .72));
    color: #ffffff;
    pointer-events: none;
}
.sf-coll-grid[data-names="over"][data-shape="square"] .sf-coll-text { border-radius: 0 0 4px 4px; }
.sf-coll-grid[data-names="over"]:not([data-shape="circle"]) .sf-coll-n { color: #ffffff; }
.sf-coll-grid[data-names="over"]:not([data-shape="circle"]) .sf-coll-name { font-size: 17px; }

/* Products toolbar */
.sf-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.sf-bar .sf-title { margin: 0; }
.sf-bar-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sf-count { font-size: 14px; font-weight: 600; color: var(--sf-soft); }

.sf-tools { display: flex; align-items: center; gap: 8px; }

/* Order list (a <details> with links) */
.sf-dd { position: relative; }
.sf-dd > summary { list-style: none; }
.sf-dd > summary::-webkit-details-marker { display: none; }

.sf-dd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 14px 0 18px;
    border-radius: 999px;
    background: var(--sf-card);
    box-shadow: 0 0 0 1px var(--sf-line);
    color: var(--sf-ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.sf-dd-btn b { font-weight: 800; }
.sf-dd-btn:hover { box-shadow: 0 0 0 2px var(--sf-accent-ui); }
.sf-dd-btn:focus-visible { outline: 3px solid var(--sf-accent-ui); outline-offset: 2px; }
.sf-dd-chev { transition: transform 160ms ease; }
.sf-dd[open] .sf-dd-chev { transform: rotate(180deg); }
.sf-dd[open] .sf-dd-btn { box-shadow: 0 0 0 2px var(--sf-accent-ui); }

.sf-dd-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    min-width: 240px;
    padding: 6px;
    border-radius: 20px;
    background: var(--sf-card);
    box-shadow: 0 0 0 1px var(--sf-line), 0 18px 40px rgba(0, 0, 0, .18);
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: sf-dd-in 140ms ease-out;
}

@keyframes sf-dd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.sf-dd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--sf-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.sf-dd-item svg { opacity: 0; color: var(--sf-accent-text); }
.sf-dd-item:hover, .sf-dd-item:focus-visible { background: var(--sf-tile); outline: none; }
.sf-dd-item[aria-checked="true"] { font-weight: 800; background: var(--sf-tile); }
.sf-dd-item[aria-checked="true"] svg { opacity: 1; }



.sf-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: -4px 0 16px;
}

.sf-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--sf-tile);
    color: var(--sf-ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.sf-filter b { font-weight: 800; }
.sf-filter:hover { box-shadow: 0 0 0 2px var(--sf-accent-ui); }

.sf-empty {
    padding: 48px 16px;
    text-align: center;
    border-radius: 20px;
    background: var(--sf-tile);
    color: var(--sf-ink);
}

.sf-empty p { margin: 4px 0; }

/* Product grid and cards */
.sf-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 16px;
}

.sf-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sf-grid[data-cols="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.sf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.sf-pic {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: var(--sf-radius, 16px);
    background: var(--sf-pic);
    box-shadow: inset 0 0 0 var(--sf-border, 0px) var(--sf-line);
}

.sf-grid[data-shape="squircle"] .sf-pic,
.sf-grid[data-shape="arch"] .sf-pic { aspect-ratio: 4 / 5; }
.sf-grid[data-shape="square"] .sf-pic { border-radius: 4px; }
.sf-grid[data-shape="arch"] .sf-pic { border-radius: 999px 999px var(--sf-radius, 16px) var(--sf-radius, 16px); }
.sf-grid[data-shape="circle"] .sf-pic { border-radius: 50%; }

.sf-grid[data-shape="squircle"] .sf-pic,
.sf-grid[data-shape="cookie"] .sf-pic,
.sf-grid[data-shape="burst"] .sf-pic {
    border-radius: 0;
    box-shadow: none;
    -webkit-mask: var(--sf-mask) center / 100% 100% no-repeat;
    mask: var(--sf-mask) center / 100% 100% no-repeat;
}

.sf-grid[data-shape="squircle"] { --sf-mask: url("../images/storefront/shapes/squircle.svg"); }
.sf-grid[data-shape="cookie"] { --sf-mask: url("../images/storefront/shapes/cookie.svg"); }
.sf-grid[data-shape="burst"] { --sf-mask: url("../images/storefront/shapes/burst.svg"); }

.sf-pic img {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 78%;
    height: 78%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: opacity 250ms ease, transform 300ms ease;
}

.sf-grid[data-fit="cover"] .sf-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: normal;
}

.sf-pic-alt { opacity: 0; }

/* On hover (the shop's choice, data-hover on the grid). */

/* Every picture changes smoothly. */
.sf-pic img,
.sf-coll-pic img,
.sf-pill-pic img {
    transition: opacity 600ms cubic-bezier(.4, 0, .2, 1), transform 700ms cubic-bezier(.2, .7, .2, 1), filter 600ms ease;
}

/* A picture still loading fades in when it arrives (storefront-shop.js). */
.sf-loading { opacity: 0 !important; }

/* The second picture: shown once the visitor has rested on the card for a
   moment (storefront-shop.js adds .is-alt); a quick pass changes nothing,
   and the card fades back to the shop's first picture after the mouse
   leaves. The fade back is slower than the fade in. */
.sf-grid[data-hover^="swap"] .sf-card:not(.is-alt) .sf-pic img,
.sf-grid[data-dish-hover="swap"] .sf-card:not(.is-alt) .sf-pic img { transition-duration: 800ms; }
.sf-grid[data-hover="swap"] .sf-card.is-alt .sf-pic-alt,
.sf-grid[data-dish-hover="swap"] .sf-card.is-alt .sf-pic-alt { opacity: 1; }

/* Second picture: slide in from the right while the first slides away. */
.sf-grid[data-hover="swap_slide"] .sf-pic-alt { opacity: 1; transform: translateX(105%); }
.sf-grid[data-hover="swap_slide"] .sf-card.is-alt .sf-pic-alt { transform: translateX(0); }
.sf-grid[data-hover="swap_slide"] .sf-card.is-alt .sf-pic:has(.sf-pic-alt) .sf-pic-main { transform: translateX(-40%); opacity: 0; }

/* Second picture: grows in from slightly bigger. */
.sf-grid[data-hover="swap_zoom"] .sf-pic-alt { transform: scale(1.18); }
.sf-grid[data-hover="swap_zoom"] .sf-card.is-alt .sf-pic-alt { opacity: 1; transform: scale(1); }
.sf-grid[data-hover="swap_zoom"] .sf-card.is-alt .sf-pic:has(.sf-pic-alt) .sf-pic-main { opacity: 0; transform: scale(.94); }

/* A product with one picture: a small zoom while the mouse is on it. */
.sf-grid[data-hover^="swap"] .sf-card:hover .sf-pic:not(:has(.sf-pic-alt)) img,
.sf-grid[data-dish-hover="swap"] .sf-card:hover .sf-pic:not(:has(.sf-pic-alt)) img { transform: scale(1.05); }

.sf-grid[data-hover="zoom"] .sf-card:hover .sf-pic img { transform: scale(1.1); }
.sf-grid[data-hover="lift"] .sf-card { transition: transform 220ms ease, box-shadow 220ms ease; }
.sf-grid[data-hover="lift"] .sf-card:hover { transform: translateY(-5px); }
.sf-grid[data-hover="lift"][data-style="plain"] .sf-card:hover .sf-pic,
.sf-grid[data-hover="lift"][data-style="overlay"] .sf-card:hover .sf-pic { filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .18)); }
.sf-grid[data-hover="lift"][data-style="panel"] .sf-card:hover { box-shadow: 0 0 0 1px var(--sf-line), 0 16px 30px rgba(0, 0, 0, .16); }

/* Outline in the main colour, on the card's own edge so it reads as one:
   the panel's border turns into the main colour; without a panel the
   picture's border does (masked shapes get a soft glow, as a line cannot
   follow them). */
.sf-grid[data-hover="glow"] .sf-card,
.sf-grid[data-hover="glow"] .sf-pic { transition: box-shadow 180ms ease, filter 180ms ease; }
.sf-grid[data-hover="glow"][data-style="panel"] .sf-card:hover { box-shadow: 0 0 0 2px var(--sf-accent-ui); }
.sf-grid[data-hover="glow"]:not([data-style="panel"]) .sf-card:hover .sf-pic { box-shadow: inset 0 0 0 2px var(--sf-accent-ui); }
.sf-grid[data-hover="glow"]:not([data-style="panel"])[data-shape="squircle"] .sf-card:hover,
.sf-grid[data-hover="glow"]:not([data-style="panel"])[data-shape="cookie"] .sf-card:hover,
.sf-grid[data-hover="glow"]:not([data-style="panel"])[data-shape="burst"] .sf-card:hover { filter: drop-shadow(0 0 8px var(--sf-accent-ui)); }

/* Card designs (data-style). */
.sf-grid[data-style="panel"] .sf-card {
    padding: 10px 10px 12px;
    /* The panel's corners follow the picture's: its radius plus the gap. */
    border-radius: calc(var(--sf-radius, 16px) + 10px);
    background: var(--sf-card);
    box-shadow: 0 0 0 1px var(--sf-line);
}

.sf-grid[data-style="panel"] .sf-badges { top: 18px; left: 18px; }
.sf-grid[data-style="panel"] .sf-fav { top: 16px; right: 16px; }

/* Name and price on the picture (picture on top only): white on a dark
   shade, the card's own buttons in white too. */
.sf-grid[data-style="overlay"][data-layout="top"] .sf-pic {
    border-radius: var(--sf-radius, 16px);
    -webkit-mask: none;
    mask: none;
    aspect-ratio: 4 / 5;
}

.sf-grid[data-style="overlay"][data-layout="top"] .sf-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 46px 12px 12px;
    border-radius: 0 0 var(--sf-radius, 16px) var(--sf-radius, 16px);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .78));
    --sf-ink: #ffffff;
    --sf-soft: rgba(255, 255, 255, .88);
    --text-muted: #ffffff;
    --nav-border: rgba(255, 255, 255, .7);
    --nav-accent: #ffffff;
}

.sf-grid[data-style="overlay"][data-layout="top"] .sf-name { color: #ffffff; }

/* Picture beside the name: a list, like a menu. */
.sf-grid[data-layout="left"],
.sf-grid[data-layout="right"] {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important;
    gap: 16px;
}

.sf-grid[data-layout="left"] .sf-card,
.sf-grid[data-layout="right"] .sf-card {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.sf-grid[data-layout="right"] .sf-card { grid-template-columns: minmax(0, 1fr) 38%; }
.sf-grid[data-layout="right"] .sf-pic { order: 2; }
.sf-grid[data-layout="left"] .sf-pic,
.sf-grid[data-layout="right"] .sf-pic { aspect-ratio: 1 / 1; }
.sf-grid[data-layout="left"] .sf-fav { right: auto; left: calc(38% - 42px); }
.sf-grid[data-layout="right"] .sf-badges { left: calc(62% + 24px); }
.sf-grid[data-layout="left"] .sf-name,
.sf-grid[data-layout="right"] .sf-name { font-size: 15px; -webkit-line-clamp: 3; }

.sf-pic-none { width: 36%; height: 36%; color: #6b6b6b; }

.sf-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    pointer-events: none;
}

.sf-off {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #c8281c;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.sf-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.sf-card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 0 2px; }

.sf-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--sf-ink);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
}

.sf-name:hover { text-decoration: underline; }

.sf-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
}

.sf-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--sf-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-price small { font-size: 11px; font-weight: 700; color: var(--sf-soft); }
.sf-price s { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--sf-soft); }
.sf-out { font-size: 12px; font-weight: 700; color: var(--sf-soft); white-space: nowrap; }
.sf-add { flex-shrink: 0; }

/* Page numbers */
.sf-pager {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.sf-pager-info { margin: 0; font-size: 14px; font-weight: 600; color: var(--sf-soft); }

.sf-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

.sf-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--sf-card);
    box-shadow: 0 0 0 1px var(--sf-line);
    color: var(--sf-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.sf-page:hover { box-shadow: 0 0 0 2px var(--sf-accent-ui); }
.sf-page[aria-current="page"] { background: var(--sf-accent); color: var(--sf-on-accent); box-shadow: none; }
.sf-page-gap { background: transparent; box-shadow: none; min-width: 20px; padding: 0; }

/* A restaurant's menu: a part per category, dish cards. */
.sf-menu-part { margin-top: 26px; scroll-margin-top: 140px; }
.sf-menu-part:first-of-type { margin-top: 6px; }
.sf-menu-part[hidden] { display: none; }

.sf-menu-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sf-accent-ui);
    font-family: var(--sf-font);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: var(--sf-head-weight, 700);
    color: var(--sf-ink);
}

.sf-menu-head small { font-family: inherit; font-size: 14px; font-weight: 500; color: var(--sf-soft); }

.sf-card[hidden] { display: none; }
.sf-dish { cursor: pointer; }
.sf-dish:focus-visible { outline: 3px solid var(--sf-accent-ui); outline-offset: 4px; border-radius: 12px; }
.sf-dish-emoji { font-size: 44px; line-height: 1; }

.sf-tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .66);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.sf-tag--main { background: var(--sf-accent); color: var(--sf-on-accent); }

.sf-dish-place {
    font-size: 12px;
    font-weight: 600;
    color: var(--sf-soft);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-dish-place:hover { text-decoration: underline; }

/* The description shows when the picture is beside the name (a menu list). */
.sf-dish-desc { display: none; margin: 0; font-size: 13px; line-height: 1.4; color: var(--sf-soft); }
.sf-grid[data-layout="left"] .sf-dish-desc,
.sf-grid[data-layout="right"] .sf-dish-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sf-dish .sf-card-foot { flex-wrap: wrap; }
.sf-dish-meta { display: inline-flex; gap: 8px; margin-left: auto; font-size: 12px; font-weight: 700; color: var(--sf-soft); white-space: nowrap; }
.sf-dish-meta:empty { display: none; }

/* The site's quick-add + (components/menu-quick-add, inline colours): the
   card design's own main colour and readable text; white with dark text on
   a name-on-picture card. */
.sf-dish .menu-quick-add {
    background: var(--sf-accent) !important;
    color: var(--sf-on-accent) !important;
}

.sf-grid[data-style="overlay"][data-layout="top"] .sf-dish .menu-quick-add {
    background: #ffffff !important;
    color: #0b0b0b !important;
}

/* ── Dish designs (restaurants: data-dish-style on the grid) ───────── */

.sf-dish-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sf-dish-head .sf-name { flex: 0 1 auto; min-width: 0; }
.sf-dish-lead, .sf-dish-inline-price { display: none; }

.sf-grid[data-dish-style] .sf-card { border-radius: calc(var(--sf-radius, 16px) + 10px); }
.sf-grid[data-dish-style] .sf-name { font-size: 15px; font-weight: 750; }

/* Photo sizes (data-dish-size) for Floating plate, Small photo and
   Pop-out photo. Percentages of the card's width, so a photo never ends up
   bigger than its card. */
.sf-grid[data-dish-style] { --sf-plate-w: 58%; --sf-plate-up: 23%; --sf-spot-w: 50%; --sf-spot-col: 30%; --sf-pop-w: 70%; --sf-pop-up: 28%; --sf-pop-shift: 21.4%; --sf-pop-side: 88%; }
.sf-grid[data-dish-size="small"] { --sf-plate-w: 46%; --sf-plate-up: 18%; --sf-spot-w: 36%; --sf-spot-col: 22%; --sf-pop-w: 58%; --sf-pop-up: 23%; --sf-pop-shift: 36.2%; --sf-pop-side: 72%; }
.sf-grid[data-dish-size="large"] { --sf-plate-w: 70%; --sf-plate-up: 28%; --sf-spot-w: 64%; --sf-spot-col: 38%; --sf-pop-w: 82%; --sf-pop-up: 33%; --sf-pop-shift: 11%; --sf-pop-side: 100%; }
.sf-grid[data-dish-style] .sf-pic { transition: transform 520ms cubic-bezier(.2, .7, .2, 1), box-shadow 520ms ease; }

/* No photo: a clean text card. The name and description lead, the price
   sits at the bottom, a thin line in the shop's colour on the left.
   (Menu line keeps its printed-menu look.) */
.sf-grid[data-dish-image="none"] .sf-pic { display: none !important; }
.sf-grid[data-dish-image="none"] .sf-card { grid-template-columns: minmax(0, 1fr) !important; }
.sf-grid[data-dish-image="none"] .sf-badges { position: static; margin: 0 0 6px; }
.sf-grid[data-dish-image="none"] .sf-dish-head { padding-right: 40px; }
.sf-grid[data-dish-image="none"]:not([data-dish-style="menu_line"]) .sf-card {
    display: flex !important;
    flex-direction: column;
    min-height: 132px;
    margin-top: 0 !important;
    padding: 16px 16px 14px 20px !important;
    text-align: left !important;
    background: var(--sf-dish-tint, var(--sf-card)) !important;
    box-shadow: 0 0 0 1px var(--sf-line) !important;
    overflow: hidden;
}
.sf-grid[data-dish-image="none"]:not([data-dish-style="menu_line"]) .sf-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    height: auto;
    border-radius: 0 4px 4px 0;
    background: var(--sf-accent);
}
.sf-grid[data-dish-image="none"]:not([data-dish-style="menu_line"]) .sf-card-body {
    position: static !important;
    flex: 1 1 auto;
    padding: 0 !important;
    background: none !important;
    --sf-ink: inherit;
}
.sf-grid[data-dish-image="none"]:not([data-dish-style="menu_line"]) .sf-dish-head { justify-content: flex-start !important; }
.sf-grid[data-dish-image="none"]:not([data-dish-style="menu_line"]) .sf-name { font-size: 16px; color: var(--sf-ink) !important; }
.sf-grid[data-dish-image="none"]:not([data-dish-style="menu_line"]) .sf-dish-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: none !important;
    opacity: 1 !important;
}
.sf-grid[data-dish-image="none"]:not([data-dish-style="menu_line"]) .sf-card-foot { margin-top: auto; padding-top: 6px; justify-content: flex-start !important; }
.sf-grid[data-dish-image="none"]:not([data-dish-style="menu_line"]) .sf-fav { display: block !important; top: 12px !important; right: 12px !important; left: auto !important; }

/* Photo tile: photo on top, or beside the dish when chosen. */
.sf-grid[data-dish-style="tile"] .sf-card {
    padding: 10px 10px 12px;
    background: var(--sf-card);
    box-shadow: 0 0 0 1px var(--sf-line);
}
.sf-grid[data-dish-style="tile"][data-dish-image="left"],
.sf-grid[data-dish-style="tile"][data-dish-image="right"],
.sf-grid[data-dish-style="split"],
.sf-grid[data-dish-style="menu_line"] { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important; }
.sf-grid[data-dish-style="tile"][data-dish-image="left"] .sf-card,
.sf-grid[data-dish-style="tile"][data-dish-image="right"] .sf-card {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}
.sf-grid[data-dish-style="tile"][data-dish-image="right"] .sf-card { grid-template-columns: minmax(0, 1fr) 40%; }
.sf-grid[data-dish-image="right"] .sf-pic { order: 2; }

/* Floating plate: a round photo on a ring, standing out of the top of the
   card, centred, the dish under it. Always on top, whatever the photo
   position says. With a hover chosen, the plate rises a little. */
.sf-grid[data-dish-style="plate"] { row-gap: 18px; }
.sf-grid[data-dish-style="plate"] .sf-card {
    margin-top: var(--sf-plate-up);
    padding: 0 16px 16px;
    text-align: center;
    background: var(--sf-dish-tint, var(--sf-card));
    box-shadow: 0 0 0 1px var(--sf-line), 0 10px 24px rgba(0, 0, 0, .06);
    border-radius: 28px;
}
.sf-grid[data-dish-style="plate"] .sf-pic {
    order: 0 !important;
    width: var(--sf-plate-w);
    aspect-ratio: 1 / 1 !important;
    margin: calc(var(--sf-plate-up) * -1) auto 8px;
    border-radius: 50% !important;
    -webkit-mask: none !important;
    mask: none !important;
    box-shadow: 0 0 0 5px var(--sf-dish-tint, var(--sf-card)), 0 14px 26px rgba(0, 0, 0, .24);
}
.sf-grid[data-dish-style="plate"] .sf-pic img { width: 100% !important; height: 100% !important; object-fit: cover !important; mix-blend-mode: normal !important; }
.sf-grid[data-dish-style="plate"] .sf-dish-head { justify-content: center; }
.sf-grid[data-dish-style="plate"] .sf-name { font-size: 16px; }
.sf-grid[data-dish-style="plate"] .sf-dish-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-grid[data-dish-style="plate"] .sf-card-foot { justify-content: center; gap: 10px; }
.sf-grid[data-dish-style="plate"] .sf-dish-meta { margin-left: 0; }
.sf-grid[data-dish-style="plate"] .sf-badges { top: 14px; left: 14px; }
.sf-grid[data-dish-style="plate"] .sf-fav { top: 12px; right: 12px; }
.sf-grid[data-dish-style="plate"]:not([data-dish-hover="none"]) .sf-card:hover .sf-pic {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 0 0 5px var(--sf-dish-tint, var(--sf-card)), 0 24px 34px rgba(0, 0, 0, .28);
}

/* Menu line: name ..... price, the description under it, a small photo. */
.sf-grid[data-dish-style="menu_line"] { gap: 0 32px; }
.sf-grid[data-dish-style="menu_line"] .sf-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 14px;
    align-items: center;
    padding: 14px 4px;
    border-radius: 0;
    border-bottom: 1px dashed var(--sf-line);
}
.sf-grid[data-dish-style="menu_line"][data-dish-image="left"] .sf-card { grid-template-columns: 84px minmax(0, 1fr); }
.sf-grid[data-dish-style="menu_line"][data-dish-image="left"] .sf-pic { order: 0; }
.sf-grid[data-dish-style="menu_line"]:not([data-dish-image="left"]) .sf-pic { order: 2; }
.sf-grid[data-dish-style="menu_line"] .sf-pic {
    width: 84px;
    aspect-ratio: 1 / 1 !important;
}
.sf-grid[data-dish-style="menu_line"] .sf-pic img { width: 100% !important; height: 100% !important; object-fit: cover !important; mix-blend-mode: normal !important; }
.sf-grid[data-dish-style="menu_line"] .sf-dish-lead {
    display: block;
    flex: 1 1 auto;
    min-width: 16px;
    border-bottom: 2px dotted var(--sf-line);
    transform: translateY(-4px);
}
.sf-grid[data-dish-style="menu_line"] .sf-dish-inline-price { display: inline; font-size: 15px; font-weight: 800; color: var(--sf-ink); white-space: nowrap; }
.sf-grid[data-dish-style="menu_line"] .sf-name { -webkit-line-clamp: 1; }
.sf-grid[data-dish-style="menu_line"] .sf-price { display: none; }
.sf-grid[data-dish-style="menu_line"] .sf-dish-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-grid[data-dish-style="menu_line"] .sf-dish-meta { margin-left: 0; }
.sf-grid[data-dish-style="menu_line"] .sf-badges { position: static; margin: 0 0 4px; order: -1; grid-column: 1 / -1; }
/* The heart sits on the corner of the small photo, away from the price. */
.sf-grid[data-dish-style="menu_line"] .sf-fav { top: 6px; right: -2px; left: auto; }
.sf-grid[data-dish-style="menu_line"][data-dish-image="left"] .sf-fav { top: auto; bottom: 10px; right: auto; left: 60px; }
.sf-grid[data-dish-style="menu_line"][data-dish-image="none"] .sf-fav { position: static; order: 3; }
.sf-grid[data-dish-style="menu_line"][data-dish-image="none"] .sf-card { grid-template-columns: minmax(0, 1fr) auto !important; }

/* Split card: the photo fills one half, the dish the other. */
.sf-grid[data-dish-style="split"] .sf-card {
    display: grid;
    grid-template-columns: 44% minmax(0, 1fr);
    overflow: hidden;
    background: var(--sf-card);
    box-shadow: 0 0 0 1px var(--sf-line);
}
.sf-grid[data-dish-style="split"][data-dish-image="right"] .sf-card { grid-template-columns: minmax(0, 1fr) 44%; }
.sf-grid[data-dish-style="split"] .sf-pic {
    height: 100%;
    min-height: 150px;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    -webkit-mask: none !important;
    mask: none !important;
}
.sf-grid[data-dish-style="split"] .sf-pic img { width: 100% !important; height: 100% !important; object-fit: cover !important; mix-blend-mode: normal !important; }
.sf-grid[data-dish-style="split"] .sf-card-body { padding: 14px; justify-content: center; }
.sf-grid[data-dish-style="split"] .sf-dish-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Story: a tall photo with the dish on it. */
.sf-grid[data-dish-style="story"] .sf-card { overflow: hidden; }
.sf-grid[data-dish-style="story"] .sf-pic {
    aspect-ratio: 3 / 4 !important;
    border-radius: calc(var(--sf-radius, 16px) + 10px) !important;
    -webkit-mask: none !important;
    mask: none !important;
}
.sf-grid[data-dish-style="story"] .sf-pic img { width: 100% !important; height: 100% !important; object-fit: cover !important; mix-blend-mode: normal !important; }
.sf-grid[data-dish-style="story"]:not([data-dish-image="none"]) .sf-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 60px 14px 14px;
    border-radius: 0 0 calc(var(--sf-radius, 16px) + 10px) calc(var(--sf-radius, 16px) + 10px);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .82));
    --sf-ink: #ffffff;
    --sf-soft: rgba(255, 255, 255, .88);
    --text-muted: #ffffff;
}
.sf-grid[data-dish-style="story"]:not([data-dish-image="none"]) .sf-name { color: #ffffff; font-size: 17px; }
.sf-grid[data-dish-style="story"]:not([data-dish-image="none"]) .sf-dish .menu-quick-add { background: #ffffff !important; color: #0b0b0b !important; }

/* Compact: small and tight. */
.sf-grid[data-dish-style="compact"] { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; gap: 10px; }
.sf-grid[data-dish-style="compact"] .sf-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    padding: 8px;
    border-radius: 16px;
    background: var(--sf-card);
    box-shadow: 0 0 0 1px var(--sf-line);
}
.sf-grid[data-dish-style="compact"][data-dish-image="right"] .sf-card { grid-template-columns: minmax(0, 1fr) 64px; }
.sf-grid[data-dish-style="compact"] .sf-pic { width: 64px; aspect-ratio: 1 / 1 !important; }
.sf-grid[data-dish-style="compact"] .sf-pic img { width: 100% !important; height: 100% !important; object-fit: cover !important; mix-blend-mode: normal !important; }
.sf-grid[data-dish-style="compact"] .sf-name { font-size: 14px; -webkit-line-clamp: 1; }
.sf-grid[data-dish-style="compact"] .sf-badges,
.sf-grid[data-dish-style="compact"] .sf-dish-desc { display: none !important; }
/* The name at the top; the price (left) and the time (right) always on the
   line of the photo's bottom edge, whatever else changes. The heart is
   small, at the top right. */
.sf-grid[data-dish-style="compact"] .sf-pic { align-self: start; }
.sf-grid[data-dish-style="compact"] .sf-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 64px;
    padding: 0;
}
.sf-grid[data-dish-style="compact"] .sf-card-foot {
    margin-top: auto;
    min-height: 0;
    align-items: flex-end;
    line-height: 1.1;
}
.sf-grid[data-dish-style="compact"] .sf-card-foot .sf-price { line-height: 1; }
.sf-grid[data-dish-style="compact"] .sf-dish-meta { align-self: flex-end; line-height: 1; }
.sf-grid[data-dish-style="compact"] .sf-fav { top: 6px; right: 6px; left: auto; transform: scale(.72); transform-origin: top right; }
.sf-grid[data-dish-style="compact"][data-dish-image="right"] .sf-fav { right: 80px; }
.sf-grid[data-dish-style="compact"] .sf-dish-head { padding-right: 28px; }

/* Small photo: half the card wide on top (centred), or a narrow photo
   beside the dish. */
.sf-grid[data-dish-style="spot"] .sf-card {
    padding: 16px 14px 14px;
    background: var(--sf-card);
    box-shadow: 0 0 0 1px var(--sf-line);
}
.sf-grid[data-dish-style="spot"] .sf-pic {
    aspect-ratio: 1 / 1 !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}
.sf-grid[data-dish-style="spot"] .sf-pic img { width: 100% !important; height: 100% !important; object-fit: cover !important; mix-blend-mode: normal !important; }
.sf-grid[data-dish-style="spot"]:not([data-dish-image="left"]):not([data-dish-image="right"]) .sf-card { text-align: center; }
.sf-grid[data-dish-style="spot"]:not([data-dish-image="left"]):not([data-dish-image="right"]) .sf-pic { width: var(--sf-spot-w); margin: 6px auto 12px; }
.sf-grid[data-dish-style="spot"]:not([data-dish-image="left"]):not([data-dish-image="right"]):not([data-dish-hover="none"]) .sf-card:hover .sf-pic { transform: translateY(-8px) scale(1.04); box-shadow: 0 18px 28px rgba(0, 0, 0, .18); }
.sf-grid[data-dish-style="spot"]:not([data-dish-image="left"]):not([data-dish-image="right"]) .sf-dish-head { justify-content: center; }
.sf-grid[data-dish-style="spot"][data-dish-image="left"],
.sf-grid[data-dish-style="spot"][data-dish-image="right"] { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important; }
.sf-grid[data-dish-style="spot"][data-dish-image="left"] .sf-card,
.sf-grid[data-dish-style="spot"][data-dish-image="right"] .sf-card {
    display: grid;
    grid-template-columns: var(--sf-spot-col) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
}
.sf-grid[data-dish-style="spot"][data-dish-image="right"] .sf-card { grid-template-columns: minmax(0, 1fr) var(--sf-spot-col); }
/* Beside the dish: the photo fills its column; tags sit over the name. */
.sf-grid[data-dish-style="spot"][data-dish-image="left"] .sf-card,
.sf-grid[data-dish-style="spot"][data-dish-image="right"] .sf-card { grid-template-rows: auto auto; align-content: center; row-gap: 4px; }
.sf-grid[data-dish-style="spot"][data-dish-image="left"] .sf-pic { grid-column: 1; grid-row: 1 / span 2; }
.sf-grid[data-dish-style="spot"][data-dish-image="right"] .sf-pic { grid-column: 2; grid-row: 1 / span 2; order: 0; }
.sf-grid[data-dish-style="spot"][data-dish-image="left"] .sf-badges,
.sf-grid[data-dish-style="spot"][data-dish-image="right"] .sf-badges { position: static; margin: 0; grid-row: 1; align-self: end; }
.sf-grid[data-dish-style="spot"][data-dish-image="left"] .sf-badges,
.sf-grid[data-dish-style="spot"][data-dish-image="left"] .sf-card-body { grid-column: 2; }
.sf-grid[data-dish-style="spot"][data-dish-image="right"] .sf-badges,
.sf-grid[data-dish-style="spot"][data-dish-image="right"] .sf-card-body { grid-column: 1; }
.sf-grid[data-dish-style="spot"][data-dish-image="left"] .sf-card-body,
.sf-grid[data-dish-style="spot"][data-dish-image="right"] .sf-card-body { grid-row: 2; align-self: start; }
.sf-grid[data-dish-style="spot"][data-dish-image="left"] .sf-card:not(:has(.sf-badges)) .sf-card-body,
.sf-grid[data-dish-style="spot"][data-dish-image="right"] .sf-card:not(:has(.sf-badges)) .sf-card-body { grid-row: 1 / span 2; align-self: center; }
.sf-grid[data-dish-style="spot"][data-dish-image="left"] .sf-card-body > .sf-dish-head,
.sf-grid[data-dish-style="spot"][data-dish-image="right"] .sf-card-body > .sf-dish-head { padding-right: 34px; }
.sf-grid[data-dish-style="spot"][data-dish-image="right"] .sf-fav { right: calc(var(--sf-spot-col) + 18px); }

/* Pop-out photo. On top: a soft coloured card with the photo breaking out
   of its top corner. Left or right: a colour block beside the dish with the
   photo standing out of its top. The photo takes the card shape chosen
   in "Online shop design" (Circle gives the round plate look). Menu line
   and Compact follow that shape too. */
.sf-grid[data-dish-style="pop"] .sf-pic {
    aspect-ratio: 1 / 1 !important;
    box-shadow: 0 16px 28px rgba(0, 0, 0, .22);
}
.sf-grid[data-dish-style="pop"] .sf-pic img { width: 100% !important; height: 100% !important; object-fit: cover !important; mix-blend-mode: normal !important; }
.sf-grid[data-dish-style="pop"] .sf-badges { position: static; margin: 0; }

.sf-grid[data-dish-style="pop"]:not([data-dish-image="left"]):not([data-dish-image="right"]) { column-gap: 22px; row-gap: 22px; }
.sf-grid[data-dish-style="pop"]:not([data-dish-image="left"]):not([data-dish-image="right"]) .sf-card {
    margin-top: var(--sf-pop-up);
    padding: 0 16px 16px;
    border-radius: 28px;
    background: var(--sf-dish-tint, var(--sf-card));
    box-shadow: 0 0 0 1px var(--sf-line);
}
.sf-grid[data-dish-style="pop"]:not([data-dish-tint="none"]):not([data-dish-image="left"]):not([data-dish-image="right"]) .sf-card { box-shadow: none; }
.sf-grid[data-dish-style="pop"]:not([data-dish-image="left"]):not([data-dish-image="right"]) .sf-pic {
    width: var(--sf-pop-w);
    margin: calc(var(--sf-pop-up) * -1) 0 6px -16px;
}
/* With a hover chosen: the photo glides up into the middle of the card. */
.sf-grid[data-dish-style="pop"]:not([data-dish-image="left"]):not([data-dish-image="right"]):not([data-dish-hover="none"]) .sf-card:hover .sf-pic {
    transform: translate(calc(var(--sf-pop-shift) + 16px), -8px);
    box-shadow: 0 24px 34px rgba(0, 0, 0, .26);
}
.sf-grid[data-dish-style="pop"]:not([data-dish-image="left"]):not([data-dish-image="right"]) .sf-fav { top: 12px; right: 12px; }

.sf-grid[data-dish-style="pop"][data-dish-image="left"],
.sf-grid[data-dish-style="pop"][data-dish-image="right"] { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important; row-gap: 26px; }
.sf-grid[data-dish-style="pop"][data-dish-image="left"] .sf-card,
.sf-grid[data-dish-style="pop"][data-dish-image="right"] .sf-card {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 16px;
    row-gap: 4px;
    padding-top: 14px;
    background: transparent;
    box-shadow: none;
}
.sf-grid[data-dish-style="pop"][data-dish-image="right"] .sf-card { grid-template-columns: minmax(0, 1fr) 42%; }
.sf-grid[data-dish-style="pop"][data-dish-image="left"] .sf-card::before,
.sf-grid[data-dish-style="pop"][data-dish-image="right"] .sf-card::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42%;
    height: 78%;
    border-radius: 26px;
    background: var(--sf-dish-tint, var(--sf-tile));
}
.sf-grid[data-dish-style="pop"][data-dish-image="right"] .sf-card::before { left: auto; right: 0; }
.sf-grid[data-dish-style="pop"][data-dish-image="left"] .sf-pic,
.sf-grid[data-dish-style="pop"][data-dish-image="right"] .sf-pic { z-index: 1; width: var(--sf-pop-side); margin: 0 auto 14px; grid-row: 1 / span 2; }
.sf-grid[data-dish-style="pop"]:is([data-dish-image="left"], [data-dish-image="right"]):not([data-dish-hover="none"]) .sf-card:hover .sf-pic { transform: translateY(-8px) scale(1.03); }
.sf-grid[data-dish-style="pop"][data-dish-image="left"] .sf-pic { grid-column: 1; }
.sf-grid[data-dish-style="pop"][data-dish-image="right"] .sf-pic { grid-column: 2; order: 0; }
.sf-grid[data-dish-style="pop"][data-dish-image="left"] .sf-badges,
.sf-grid[data-dish-style="pop"][data-dish-image="left"] .sf-card-body { grid-column: 2; }
.sf-grid[data-dish-style="pop"][data-dish-image="right"] .sf-badges,
.sf-grid[data-dish-style="pop"][data-dish-image="right"] .sf-card-body { grid-column: 1; }
.sf-grid[data-dish-style="pop"][data-dish-image="left"] .sf-badges,
.sf-grid[data-dish-style="pop"][data-dish-image="right"] .sf-badges { grid-row: 1; align-self: end; }
.sf-grid[data-dish-style="pop"][data-dish-image="left"] .sf-card-body,
.sf-grid[data-dish-style="pop"][data-dish-image="right"] .sf-card-body { grid-row: 2; align-self: start; }
.sf-grid[data-dish-style="pop"][data-dish-image="left"] .sf-card:not(:has(.sf-badges)) .sf-card-body,
.sf-grid[data-dish-style="pop"][data-dish-image="right"] .sf-card:not(:has(.sf-badges)) .sf-card-body { grid-row: 1 / span 2; align-self: center; }
.sf-grid[data-dish-style="pop"][data-dish-image="left"] .sf-price,
.sf-grid[data-dish-style="pop"][data-dish-image="right"] .sf-price { font-size: 20px; color: var(--sf-accent-text); }
.sf-grid[data-dish-style="pop"][data-dish-image="left"] .sf-fav { top: 8px; right: 0; }
.sf-grid[data-dish-style="pop"][data-dish-image="right"] .sf-fav { top: 8px; right: calc(42% + 8px); }
.sf-grid[data-dish-style="pop"][data-dish-image="left"] .sf-dish-head,
.sf-grid[data-dish-style="pop"][data-dish-image="right"] .sf-dish-head { padding-right: 34px; }
.sf-grid[data-dish-style="pop"][data-dish-hover="lift"] .sf-card:hover { box-shadow: none; }
.sf-grid[data-dish-style="pop"][data-dish-hover="lift"]:not([data-dish-image="left"]):not([data-dish-image="right"]) .sf-card:hover { box-shadow: 0 18px 34px rgba(0, 0, 0, .12); }

/* Card colour (data-dish-tint), mixed with the page's card colour so the
   text keeps its contrast in both looks. Menu line and Story have no card
   colour; Small photo on top gets a colour band behind the photo; Pop-out
   beside the dish colours its block only. */
.sf-grid[data-dish-tint="accent"] .sf-card { --sf-dish-tint: color-mix(in srgb, var(--sf-accent) 16%, var(--sf-card)); }
.sf-grid[data-dish-tint="mixed"] .sf-card[data-tint-i="0"] { --sf-dish-tint: color-mix(in srgb, #f4a259 26%, var(--sf-card)); }
.sf-grid[data-dish-tint="mixed"] .sf-card[data-tint-i="1"] { --sf-dish-tint: color-mix(in srgb, #e8737f 24%, var(--sf-card)); }
.sf-grid[data-dish-tint="mixed"] .sf-card[data-tint-i="2"] { --sf-dish-tint: color-mix(in srgb, #5fb0ec 24%, var(--sf-card)); }
.sf-grid[data-dish-tint="mixed"] .sf-card[data-tint-i="3"] { --sf-dish-tint: color-mix(in srgb, #7cc47a 24%, var(--sf-card)); }
.sf-grid[data-dish-tint="mixed"] .sf-card[data-tint-i="4"] { --sf-dish-tint: color-mix(in srgb, #ad94dc 24%, var(--sf-card)); }
.sf-grid[data-dish-tint="mixed"] .sf-card[data-tint-i="5"] { --sf-dish-tint: color-mix(in srgb, #f0c64e 28%, var(--sf-card)); }
.sf-grid[data-dish-tint="accent"]:is([data-dish-style="tile"], [data-dish-style="plate"], [data-dish-style="split"], [data-dish-style="compact"]) .sf-card,
.sf-grid[data-dish-tint="mixed"]:is([data-dish-style="tile"], [data-dish-style="plate"], [data-dish-style="split"], [data-dish-style="compact"]) .sf-card,
.sf-grid[data-dish-tint="accent"][data-dish-style="spot"]:is([data-dish-image="left"], [data-dish-image="right"], [data-dish-image="none"]) .sf-card,
.sf-grid[data-dish-tint="mixed"][data-dish-style="spot"]:is([data-dish-image="left"], [data-dish-image="right"], [data-dish-image="none"]) .sf-card {
    background: var(--sf-dish-tint);
    box-shadow: none;
}
.sf-grid[data-dish-tint="accent"][data-dish-style="spot"][data-dish-image="top"] .sf-card,
.sf-grid[data-dish-tint="mixed"][data-dish-style="spot"][data-dish-image="top"] .sf-card {
    background: linear-gradient(to bottom, var(--sf-dish-tint) 0, var(--sf-dish-tint) 34%, var(--sf-card) 34%);
}

/* Photo shape (data-dish-photo). "card" keeps the card shape. Floating
   plate is always round; Split card and Story fill the card. */
.sf-grid[data-dish-photo="round"]:not([data-dish-style="plate"]):not([data-dish-style="split"]):not([data-dish-style="story"]) .sf-pic,
.sf-grid[data-dish-photo="squircle"]:not([data-dish-style="plate"]):not([data-dish-style="split"]):not([data-dish-style="story"]) .sf-pic,
.sf-grid[data-dish-photo="rounded"]:not([data-dish-style="plate"]):not([data-dish-style="split"]):not([data-dish-style="story"]) .sf-pic {
    aspect-ratio: 1 / 1 !important;
    -webkit-mask: none !important;
    mask: none !important;
}
.sf-grid[data-dish-photo="round"]:not([data-dish-style="plate"]):not([data-dish-style="split"]):not([data-dish-style="story"]) .sf-pic { border-radius: 50% !important; }
.sf-grid[data-dish-photo="rounded"]:not([data-dish-style="plate"]):not([data-dish-style="split"]):not([data-dish-style="story"]) .sf-pic { border-radius: 22% !important; }
.sf-grid[data-dish-photo="squircle"]:not([data-dish-style="plate"]):not([data-dish-style="split"]):not([data-dish-style="story"]) .sf-pic {
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-mask: url("../images/storefront/shapes/squircle.svg") center / 100% 100% no-repeat !important;
    mask: url("../images/storefront/shapes/squircle.svg") center / 100% 100% no-repeat !important;
}

/* Dish hovers (data-dish-hover). */
.sf-grid[data-dish-hover] .sf-card { transition: transform 260ms cubic-bezier(.2, .7, .2, 1), box-shadow 260ms ease; }
.sf-grid[data-dish-hover="lift"] .sf-card:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--sf-line), 0 18px 34px rgba(0, 0, 0, .14); }
.sf-grid[data-dish-style="menu_line"][data-dish-hover="lift"] .sf-card:hover { box-shadow: none; }
.sf-grid[data-dish-hover="zoom"] .sf-card:hover .sf-pic img { transform: scale(1.1); }
.sf-grid[data-dish-hover="tilt"] { perspective: 900px; }
.sf-grid[data-dish-hover="tilt"] .sf-card:hover { transform: rotateX(4deg) rotateY(-5deg) translateY(-3px); box-shadow: 0 0 0 1px var(--sf-line), 14px 18px 30px rgba(0, 0, 0, .14); }
.sf-grid[data-dish-hover="shine"] .sf-pic::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 70%);
    transform: translateX(-120%);
    transition: transform 900ms cubic-bezier(.2, .7, .2, 1);
    pointer-events: none;
}
.sf-grid[data-dish-hover="shine"] .sf-card:hover .sf-pic::after { transform: translateX(120%); }
.sf-grid[data-dish-hover="reveal"] .sf-dish-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 420ms ease, opacity 420ms ease;
}
.sf-grid[data-dish-hover="reveal"] .sf-card:hover .sf-dish-desc,
.sf-grid[data-dish-hover="reveal"] .sf-card:focus-within .sf-dish-desc { max-height: 4.5em; opacity: 1; }

/* Phones and tablets have no hover: their dish shows its description. */
@media (hover: none) {
    .sf-grid[data-dish-hover="reveal"] .sf-dish-desc { max-height: none; opacity: 1; }
}

@media (max-width: 760px) {
    .sf-grid[data-dish-style="tile"][data-dish-image="left"],
    .sf-grid[data-dish-style="tile"][data-dish-image="right"],
    .sf-grid[data-dish-style="split"],
    .sf-grid[data-dish-style="menu_line"],
    .sf-grid[data-dish-style="compact"] { grid-template-columns: minmax(0, 1fr) !important; }
    .sf-grid[data-dish-style="spot"][data-dish-image="left"],
    .sf-grid[data-dish-style="spot"][data-dish-image="right"] { grid-template-columns: minmax(0, 1fr) !important; }
    .sf-grid[data-dish-style="pop"][data-dish-image="left"],
    .sf-grid[data-dish-style="pop"][data-dish-image="right"] { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 1px) {
    .sf-grid[data-dish-hover] .sf-card,
    .sf-grid[data-dish-hover] .sf-pic img,
    .sf-grid[data-dish-hover] .sf-pic::after { transition: none !important; }
}

/* One dish card in its restaurant's design on a page that is not the
   restaurant's own (Food & Drinks): the card stays an item of that page's
   grid, in the site's colours. */
.sf-solo {
    display: contents;
    --sf-ink: var(--text-main);
    --sf-soft: var(--text-muted);
    --sf-card: var(--card-bg);
    --sf-tile: var(--nav-hover-bg);
    --sf-line: var(--card-border);
    --sf-pic: #f2f2ef;
    --sf-accent: var(--nav-accent);
    --sf-on-accent: #ffffff;
    --sf-accent-ui: var(--nav-accent);
    --sf-accent-text: var(--accent-text, var(--nav-accent));
    --sf-font: inherit;
}

.sf-solo .sf-card { min-width: 0; }

/* Properties (the site's own property cards) */
.sf-prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.sf-team {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* ── Buttons and links ───────────────────────────────────────────────── */

.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.sf-btn:disabled { opacity: .55; cursor: not-allowed; }
.sf-btn-main { background: var(--sf-accent); color: var(--sf-on-accent); }
.sf-btn-plain { background: var(--sf-card); color: var(--sf-ink); box-shadow: 0 0 0 1px var(--sf-line); }
.sf-btn-soft { background: var(--sf-tile); color: var(--sf-ink); }
.sf-btn-soft:hover, .sf-btn-plain:hover { box-shadow: 0 0 0 2px var(--sf-accent-ui); }
.sf-btn-block { width: 100%; }

.sf-link {
    color: var(--sf-accent-text);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

/* ── Windows (menu, about, contact) ──────────────────────────────────── */

.sf-dlg {
    position: fixed;
    top: 10px;
    bottom: 10px;
    margin: 0;
    width: min(440px, calc(100vw - 20px));
    max-width: none;
    height: calc(100% - 20px);
    max-height: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sf-ink);
    overflow: visible;
}

.sf-dlg--left { left: 10px; right: auto; }
.sf-dlg--right { right: 10px; left: auto; }

.sf-dlg::backdrop {
    background: rgba(0, 0, 0, .45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.sf-dlg[open].sf-dlg--left .sf-dlg-in { animation: sf-in-left 220ms ease-out; }
.sf-dlg[open].sf-dlg--right .sf-dlg-in { animation: sf-in-right 220ms ease-out; }

@keyframes sf-in-left { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sf-in-right { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.sf-dlg-in {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
    border-radius: 28px;
    background: var(--sf-page);
    box-shadow: 0 0 0 1px var(--sf-line), 0 20px 60px rgba(0, 0, 0, .3);
    scrollbar-width: thin;
    scrollbar-color: var(--sf-line) transparent;
}

/* A thin scroll bar in the page's own colours, kept off the round corners. */
.sf-dlg-in::-webkit-scrollbar { width: 6px; }
.sf-dlg-in::-webkit-scrollbar-track { background: transparent; margin: 26px 0; }
.sf-dlg-in::-webkit-scrollbar-thumb { background: var(--sf-line); border-radius: 999px; }

.sf-dlg-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 2px 4px;
}

.sf-dlg-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--sf-ink);
    overflow-wrap: anywhere;
}

.sf-dlg-sub { display: block; margin-top: 3px; font-size: 14px; font-weight: 700; color: var(--sf-ink); }

.sf-round {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sf-tile);
    color: var(--sf-ink);
    cursor: pointer;
    flex-shrink: 0;
}

.sf-round:hover { box-shadow: 0 0 0 2px var(--sf-accent-ui); }

.sf-box {
    padding: 16px 18px;
    border-radius: 22px;
    background: var(--sf-card);
    box-shadow: 0 0 0 1px var(--sf-line);
}

.sf-box-title { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: var(--sf-ink); }

.sf-about {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    white-space: pre-line;
    color: var(--sf-ink);
}

.sf-facts { margin: 0; }
.sf-facts dt { font-size: 13px; font-weight: 600; color: var(--sf-soft); }
.sf-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--sf-ink); }

.sf-tags { display: flex; flex-wrap: wrap; gap: 6px; }


.sf-rows { list-style: none; margin: 0; padding: 0; }

.sf-rows li {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--sf-line);
}

.sf-rows li:last-child { border-bottom: 0; }

.sf-row-link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    color: var(--sf-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.sf-row-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-row-link:hover span { text-decoration: underline; }
.sf-row-none { padding: 12px 0; font-size: 14px; font-weight: 600; }

.sf-copy {
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: var(--sf-tile);
    color: var(--sf-ink);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
}

.sf-row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.sf-copied {
    margin: 0;
    min-height: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--sf-ink);
}

.sf-copied:empty { display: none; }

/* Tabs in the shop window */
.sf-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: var(--sf-tile);
}

.sf-tab {
    flex: 1;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--sf-ink);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.sf-tab[aria-selected="true"] {
    background: var(--sf-card);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12), 0 0 0 1px var(--sf-line);
}

.sf-tab:focus-visible { outline: 3px solid var(--sf-accent-ui); outline-offset: 2px; }

.sf-tab-panel { display: flex; flex-direction: column; gap: 14px; }
.sf-tab-panel[hidden] { display: none; }

.sf-box--head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }

.sf-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sf-fact { padding: 10px 14px; border-radius: 16px; background: var(--sf-tile); min-width: 0; }
.sf-fact--wide { grid-column: 1 / -1; }

.sf-chip-link {
    display: inline-flex;
    align-items: center;
    height: 32px;
    margin-top: 8px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--sf-card);
    box-shadow: 0 0 0 1px var(--sf-line);
    color: var(--sf-ink);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.sf-chip-link:hover { box-shadow: 0 0 0 2px var(--sf-accent-ui); }

.sf-team-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.sf-team-list li { padding: 6px 14px; border-radius: 999px; background: var(--sf-tile); font-size: 14px; font-weight: 700; }

/* Menu */
.sf-menu { display: flex; flex-direction: column; gap: 2px; }
.sf-box.sf-menu { padding: 8px; }

.sf-menu a,
.sf-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--sf-ink);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.sf-menu a:hover,
.sf-menu button:hover { background: var(--sf-tile); }

.sf-menu a[aria-current="page"] { background: var(--sf-tile); color: var(--sf-accent-text); }
.sf-menu small { font-size: 13px; font-weight: 600; color: var(--sf-soft); }

.sf-menu-label {
    margin: 6px 14px 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--sf-soft);
}

/* ── Phones and tablets ──────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .sf-grid[data-cols="5"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sf-coll-grid { grid-template-columns: repeat(min(var(--sf-coll-cols, 4), 3), minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .sf-site-name { display: none; }
    .sf-site { width: 42px; padding: 0; }
    .sf-grid,
    .sf-grid[data-cols="3"],
    .sf-grid[data-cols="5"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .sf { --sf-bar-h: 60px; }
    .sf-top { padding: 10px 12px; gap: 8px; }
    .sf-hide-sm { display: none !important; }
    .sf-about-btn { width: 42px; padding: 0; }
    .sf-search { display: none; order: 3; flex: 1 1 100%; }
    .sf-top[data-search-open] .sf-search { display: block; }
    .sf-top[data-search-open] { background: var(--sf-page); box-shadow: 0 1px 0 var(--sf-line); }
    .sf-search-toggle { display: inline-flex; }
    .sf-top-pills { order: 5; flex: 1 1 100%; max-height: 0; overflow: hidden; transition: opacity 220ms ease, transform 220ms ease, max-height 220ms ease; }
    .sf-top[data-bar-pills] .sf-top-pills { max-height: 48px; }
    .sf-top[data-bar-pills] { background: var(--sf-page); box-shadow: 0 1px 0 var(--sf-line); }
    .sf-pills.sf-pills--bar { justify-content: flex-start; }
    .sf-contact-btn { width: 42px; padding: 0; }

    .sf-grid,
    .sf-grid[data-cols="3"],
    .sf-grid[data-cols="5"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
    .sf-grid[data-layout="left"],
    .sf-grid[data-layout="right"] { grid-template-columns: minmax(0, 1fr) !important; }

    .sf-coll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
    .sf-coll-grid[data-shape="circle"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .sf-section { padding: 24px 14px; }
    .sf[data-media="1"][data-reach="collections"] .sf-colls,
    .sf[data-media="1"][data-reach="page"] .sf-section { width: calc(100% - 20px); padding: 18px 14px; border-radius: 22px; }

    .sf-logo { width: 72px; height: 72px; }
    .sf-hero-sub { font-size: 14px; }
    .sf-hero[data-pills-rows="one"] .sf-pills:not(.sf-pills--bar) { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; max-width: 100vw; width: 100vw; }
    .sf-hero[data-pills-layout="full"] .sf-pills .sf-pill-cat { flex: 0 0 auto; }
    .sf-facts { grid-template-columns: 1fr; }
    .sf-bar { align-items: flex-start; }
    .sf-dd-label { display: none; }
    .sf-dd-menu { right: auto; left: 0; }
    .sf-dlg { top: 8px; bottom: 8px; height: calc(100% - 16px); width: calc(100vw - 16px); }
    .sf-dlg--left { left: 8px; }
    .sf-dlg--right { right: 8px; }
    .sf-dlg-in { border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 1px) {
    .sf-dlg[open] .sf-dlg-in { animation: none; }
    .sf-media-el { animation: none !important; }
    .sf-card, .sf-card * { transition: none !important; }
    .sf-coll-pic img, .sf-pic img { transition: none; }
}

/* ── Posted (a business's posts, sections/posted) ────────────────────────
   Drawn with the collection settings (.sf-coll-grid); the price sits under
   the name in the shop's main colour, a small play mark on video posts. */
.sf[data-media="1"][data-reach="collections"] .sf-posted {
    margin: 18px auto;
    width: calc(100% - 32px);
    padding: 24px 20px;
    border-radius: 28px;
    background: var(--sf-glass);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: 0 0 0 1px var(--sf-line);
}

.sf-posted .sf-coll-pic { background: var(--sf-pic); }
.sf-posted .sf-posted-price { font-size: 14px; font-weight: 800; color: var(--sf-accent-text); }
.sf-posted .sf-coll-grid[data-names="over"]:not([data-shape="circle"]) .sf-posted-price { color: #ffffff; }

.sf-posted-play {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .6);
    color: #ffffff;
}

@media (max-width: 760px) {
    .sf[data-media="1"][data-reach="collections"] .sf-posted { width: calc(100% - 20px); padding: 18px 14px; border-radius: 22px; }
}

/* ── Catalogue cards (data-style="catalog") ──────────────────────────────
   The picture on a soft tile, the price in the shop's colour above the name,
   the cart or call button on the right, a thin line, then the brand as a
   small pill. The card's own parts are placed on a grid; the price row and
   the button come out of .sf-card-foot (display: contents). */
.sf-card-meta { display: none; }

.sf-grid[data-style="catalog"] .sf-card { gap: 12px; }

/* Square catalogue pictures have no rounded corners at all. */
.sf-grid[data-style="catalog"][data-shape="square"] .sf-pic { border-radius: 0; }

.sf-grid[data-style="catalog"] .sf-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "price add"
        "name add"
        "meta meta";
    align-items: center;
    column-gap: 10px;
    row-gap: 3px;
    padding: 0;
}

.sf-grid[data-style="catalog"] .sf-card-foot { display: contents; }

.sf-grid[data-style="catalog"] .sf-price {
    grid-area: price;
    min-height: 17px;
    font-size: 13px;
    font-weight: 700;
    color: var(--sf-accent-text);
}

.sf-grid[data-style="catalog"] .sf-price small { font-size: 13px; font-weight: 700; color: inherit; }

.sf-grid[data-style="catalog"] .sf-name {
    grid-area: name;
    -webkit-line-clamp: 1;
    font-size: 14px;
    font-weight: 600;
}

.sf-grid[data-style="catalog"] .sf-add,
.sf-grid[data-style="catalog"] .sf-out { grid-area: add; align-self: center; }

.sf-grid[data-style="catalog"] .sf-card-meta {
    grid-area: meta;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--sf-line);
}

/* No brand: the line still closes the card. */
.sf-grid[data-style="catalog"] .sf-card-body:not(:has(.sf-card-meta)) {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sf-line);
}

.sf-brand {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--sf-line);
    color: var(--sf-ink);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Shop bar "Post" button (people who may post for this shop): the shop's own
   accent colour and the bar's pill shape, so it follows the shop's theme. */
.sf-post-btn {
    background: var(--sf-accent);
    color: var(--sf-on-accent);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0 14px 0 11px;
    gap: 6px;
    font-size: 13px;
}
.sf-post-btn:hover { box-shadow: 0 0 0 2px var(--sf-accent-ui), 0 2px 8px rgba(0, 0, 0, .1); }
@media (max-width: 760px) {
    .sf-post-btn { width: 42px; padding: 0; }
    .sf-post-btn .sf-post-label { display: none; }
}

/* ── v3 round 4 (21 Nov 2026): shop bar, announcement, icons, name, top
   picture layouts. Every value comes from ThemeStyle (CSS variables) or a
   data attribute on .sf picked from a fixed list. ─────────────────────── */

/* Bar height (--sf-bar-h) and where it sits. */
.sf .sf-top { min-height: var(--sf-bar-h, 64px); }
.sf[data-bar-pos="static"] .sf-top { position: relative; }
.sf[data-bar-pos="hide"] .sf-top { transition: transform 260ms ease, background 200ms ease, box-shadow 200ms ease; }
.sf[data-bar-pos="hide"] .sf-top[data-hidden] { transform: translateY(-100%); }

/* Bar colour: glass keeps the old behaviour (glass on the picture, page
   colour once past it); the others are always solid. */
.sf:not([data-bar-colour="glass"]) .sf-top { background: var(--sf-bar-bg); color: var(--sf-bar-ink); }
.sf:not([data-bar-colour="glass"]) .sf-top[data-solid] { background: var(--sf-bar-bg); }
.sf[data-bar-colour="accent"] .sf-top .sf-search-box,
.sf[data-bar-colour="dark"] .sf-top .sf-search-box { background: rgba(255, 255, 255, .92); color: #0b0b0b; }
.sf[data-bar-colour="accent"] .sf-top .sf-search-box input,
.sf[data-bar-colour="dark"] .sf-top .sf-search-box input { color: #0b0b0b; }
.sf[data-bar-line="0"] .sf-top[data-solid],
.sf[data-bar-line="0"]:not([data-bar-colour="glass"]) .sf-top { box-shadow: none; }

/* Search in the middle (wide screens only). */
@media (min-width: 900px) {
    .sf[data-bar-layout="center"] .sf-top { justify-content: space-between; }
    .sf[data-bar-layout="center"] .sf-top .sf-search { position: absolute; left: 50%; transform: translateX(-50%); width: min(440px, 36vw); flex: none; }
}

/* Icons: weight, colour and what is behind them, following the shop's colours. */
.sf .sf-top svg,
.sf .sf-pill-pic--all svg { stroke-width: var(--sf-icon-sw, 2); }
.sf .sf-top .sf-pill,
.sf .sf-top .sf-search-box { color: var(--sf-icon, var(--sf-ink)); }
.sf .sf-top .sf-pill { background: var(--sf-icon-bg, var(--sf-glass)); }
.sf[data-icon-bg="none"] .sf-top .sf-pill { box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sf[data-icon-bg="accent"] .sf-top .sf-pill,
.sf[data-icon-bg="solid"] .sf-top .sf-pill { -webkit-backdrop-filter: none; backdrop-filter: none; }
.sf .sf-pill-pic--all { color: var(--sf-icon, var(--sf-ink)); }

/* Announcement line. */
.sf-announce { position: relative; z-index: 41; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 6px 48px; background: var(--sf-accent); color: var(--sf-on-accent); text-align: center; }
.sf-announce[hidden] { display: none; }
.sf-announce-text { margin: 0; font-size: 14px; font-weight: 700; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.sf-announce-link { border: 0; padding: 0; background: none; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sf-announce-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sf-announce-x:hover { background: rgba(0, 0, 0, .12); }
.sf-announce-x:focus-visible, .sf-announce-link:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }

/* Shop name: size, short line, place. */
.sf .sf-hero-name { font-size: var(--sf-name-size, clamp(30px, 6.2vw, 68px)); }
.sf-hero-tagline { margin: 2px 0 0; max-width: 40em; font-size: clamp(15px, 1.6vw, 19px); font-weight: 600; line-height: 1.4; }
.sf[data-name-place="left"] .sf-hero,
.sf[data-name-place="bottom_left"] .sf-hero { align-items: flex-start; text-align: left; padding-left: max(16px, 5vw); padding-right: max(16px, 5vw); }
.sf[data-name-place="left"] .sf-hero-in,
.sf[data-name-place="bottom_left"] .sf-hero-in { align-items: flex-start; }
.sf[data-name-place="bottom_left"] .sf-hero-in { justify-content: flex-end; }
.sf[data-name-place="left"] .sf-hero-name,
.sf[data-name-place="bottom_left"] .sf-hero-name { justify-content: flex-start; }
.sf-name-under { max-width: var(--sf-page-max, 1320px); margin: 0 auto; padding: 22px 18px 0; }
.sf-name-under-t { margin: 0; font-family: var(--sf-font); font-weight: var(--sf-head-weight, 700); font-size: var(--sf-name-size); line-height: 1.05; color: var(--sf-head, var(--sf-ink)); }
.sf-name-under .sf-hero-tagline { color: var(--sf-ink); }

/* Top picture: half picture, half text. The text sits on the page colour,
   so it uses the page's own heading and text colours. */
.sf[data-hero-layout="split"] .sf-media { right: auto; width: 50%; }
.sf[data-hero-layout="split"][data-hero-side="right"] .sf-media { left: auto; right: 0; }
.sf[data-hero-layout="split"] .sf-media-fade { display: none; }
.sf[data-hero-layout="split"] .sf-hero { margin-left: 50%; color: var(--sf-head, var(--sf-ink)); text-shadow: none; }
.sf[data-hero-layout="split"][data-hero-side="right"] .sf-hero { margin-left: 0; margin-right: 50%; }
.sf[data-hero-layout="split"] .sf-hero-in { text-shadow: none !important; }
.sf[data-hero-layout="split"] .sf-hero-tagline { color: var(--sf-ink); }

/* Top picture: a rounded picture inside the page, under the bar. */
.sf[data-hero-layout="boxed"] .sf-media { top: calc(var(--sf-bar-h, 64px) + 8px); left: 16px; right: 16px; border-radius: 28px; height: calc(var(--sf-media-h, var(--sf-hero-h)) - var(--sf-bar-h, 64px) - 8px); }
.sf[data-hero-layout="boxed"] .sf-media-fade { display: none; }

@media (max-width: 760px) {
    /* Phones: the half picture goes on top, the text under it. */
    .sf[data-hero-layout="split"] .sf-media { width: 100%; left: 0; right: 0; height: 46svh; }
    .sf[data-hero-layout="split"] .sf-hero { margin: 0; padding-top: calc(46svh - var(--sf-bar-h, 60px) + 20px); }
    .sf[data-hero-layout="boxed"] .sf-media { left: 8px; right: 8px; border-radius: 22px; }
    .sf-announce { padding: 6px 44px; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 1px) {
    .sf[data-bar-pos="hide"] .sf-top { transition: none; }
}


/* ── v3 round 5 (21 Nov 2026) ─────────────────────────────────────────── */

/* Category pills on one row: never cut. The row may shrink inside the top
   part and slides sideways when there is not room for all; it is centred
   (auto margins) only while everything fits. Arrows show on computers when
   there is more to see (storefront-shop.js). */
.sf-hero-pills { position: relative; min-width: 0; }
.sf-hero-pills > .sf-pills { min-width: 0; }
.sf-hero[data-pills-rows="one"] .sf-pills { justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; }
.sf-hero[data-pills-rows="one"][data-pills-layout="center"] .sf-pills > :first-child { margin-left: auto; }
.sf-hero[data-pills-rows="one"][data-pills-layout="center"] .sf-pills > :last-child { margin-right: auto; }
.sf-hero[data-pills-rows="one"] .sf-pill-cat { flex-shrink: 0; scroll-snap-align: start; }
.sf-pills-arrow { position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; background: var(--sf-card); color: var(--sf-ink); box-shadow: 0 0 0 1px var(--sf-line), 0 6px 16px rgba(0, 0, 0, .14); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sf-pills-arrow[hidden] { display: none; }
.sf-pills-arrow[data-dir="prev"] { left: 4px; }
.sf-pills-arrow[data-dir="next"] { right: 4px; }
.sf-pills-arrow:focus-visible { outline: 3px solid var(--sf-accent-ui); outline-offset: 2px; }
@media (hover: none) { .sf-pills-arrow { display: none !important; } }

/* Texts with line breaks (the shop pressed Enter): printed escaped, shown as lines. */
.sf-announce-text > span,
.sf-hero-tagline { white-space: pre-line; }

/* The text half of "Half picture, half text": its own background and colours. */
.sf[data-hero-layout="split"] .sf-hero { background: var(--sf-split-bg, var(--sf-page)); color: var(--sf-split-head, var(--sf-ink)); }
.sf[data-hero-layout="split"] .sf-hero .sf-hero-name { color: var(--sf-split-head, var(--sf-ink)); }
.sf[data-hero-layout="split"] .sf-hero .sf-hero-tagline { color: var(--sf-split-ink, var(--sf-ink)); }

/* The area behind the products (and product rows): plain, or a panel. */
.sf[data-panel="panel"] .sf-products,
.sf[data-panel="panel"] .sf-row,
.sf[data-panel="border"] .sf-products,
.sf[data-panel="border"] .sf-row,
.sf[data-panel="shadow"] .sf-products,
.sf[data-panel="shadow"] .sf-row {
    width: calc(100% - 32px);
    margin: 18px auto;
    padding: 26px clamp(14px, 2.4vw, 32px);
    border-radius: 28px;
    background: var(--sf-card);
}
.sf[data-panel="border"] .sf-products,
.sf[data-panel="border"] .sf-row { box-shadow: 0 0 0 1px var(--sf-line); }
.sf[data-panel="shadow"] .sf-products,
.sf[data-panel="shadow"] .sf-row { box-shadow: 0 18px 44px rgba(0, 0, 0, .09); }

/* Search as a floating box at the bottom of the screen. */
.sf[data-search-place="bottom"] { padding-bottom: 84px; }
.sf[data-search-place="bottom"] .sf-top .sf-search {
    display: block !important;
    position: fixed;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(560px, calc(100% - 32px));
    z-index: 45;
}
.sf[data-search-place="bottom"] .sf-top .sf-search-box { height: 52px; background: var(--sf-card); box-shadow: 0 0 0 1px var(--sf-line), 0 14px 34px rgba(0, 0, 0, .2); }
.sf[data-search-place="bottom"] .sf-top .sf-search-toggle { display: none !important; }

/* The bar down the left or right side of the page (computers and tablets):
   icons only, fixed to the window, so the page width never moves it. */
@media (min-width: 901px) {
    .sf[data-bar-pos="left"],
    .sf[data-bar-pos="right"] { --sf-rail: 76px; }
    .sf[data-bar-pos="left"] { padding-left: var(--sf-rail); }
    .sf[data-bar-pos="right"] { padding-right: var(--sf-rail); }
    .sf[data-bar-pos="left"] .sf-top,
    .sf[data-bar-pos="right"] .sf-top {
        position: fixed;
        top: 0;
        bottom: 0;
        width: var(--sf-rail);
        min-height: 0;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 14px 0;
        background: var(--sf-bar-bg);
        z-index: 50;
    }
    .sf[data-bar-pos="left"][data-bar-colour="glass"] .sf-top,
    .sf[data-bar-pos="right"][data-bar-colour="glass"] .sf-top { background: var(--sf-page); }
    .sf[data-bar-pos="left"] .sf-top { left: 0; box-shadow: 1px 0 0 var(--sf-line); }
    .sf[data-bar-pos="right"] .sf-top { right: 0; box-shadow: -1px 0 0 var(--sf-line); }
    .sf[data-bar-pos="left"][data-bar-line="0"] .sf-top,
    .sf[data-bar-pos="right"][data-bar-line="0"] .sf-top { box-shadow: none; }
    .sf[data-bar-pos="left"] .sf-top-l, .sf[data-bar-pos="left"] .sf-top-r,
    .sf[data-bar-pos="right"] .sf-top-l, .sf[data-bar-pos="right"] .sf-top-r { flex-direction: column; gap: 10px; }
    .sf[data-bar-pos="left"] .sf-top-pills,
    .sf[data-bar-pos="right"] .sf-top-pills { display: none; }
    .sf[data-bar-pos="left"] .sf-top .sf-pill,
    .sf[data-bar-pos="right"] .sf-top .sf-pill { width: 46px; height: 46px; padding: 0; justify-content: center; }
    .sf[data-bar-pos="left"] .sf-top .sf-hide-sm,
    .sf[data-bar-pos="right"] .sf-top .sf-hide-sm,
    .sf[data-bar-pos="left"] .sf-top .sf-post-label,
    .sf[data-bar-pos="right"] .sf-top .sf-post-label { display: none; }
    .sf[data-bar-pos="left"]:not([data-search-place="bottom"]) .sf-top .sf-search-toggle,
    .sf[data-bar-pos="right"]:not([data-search-place="bottom"]) .sf-top .sf-search-toggle { display: inline-flex; }
    .sf[data-bar-pos="left"]:not([data-search-place="bottom"]) .sf-top .sf-search,
    .sf[data-bar-pos="right"]:not([data-search-place="bottom"]) .sf-top .sf-search { display: none; }
    .sf[data-bar-pos="left"]:not([data-search-place="bottom"]) .sf-top[data-search-open] .sf-search,
    .sf[data-bar-pos="right"]:not([data-search-place="bottom"]) .sf-top[data-search-open] .sf-search {
        display: block;
        position: fixed;
        top: 14px;
        width: min(440px, 50vw);
    }
    .sf[data-bar-pos="left"] .sf-top[data-search-open] .sf-search { left: calc(var(--sf-rail) + 12px); }
    .sf[data-bar-pos="right"] .sf-top[data-search-open] .sf-search { right: calc(var(--sf-rail) + 12px); }
    .sf[data-bar-pos="left"] .sf-top[data-search-open] .sf-search-box,
    .sf[data-bar-pos="right"] .sf-top[data-search-open] .sf-search-box { background: var(--sf-card); box-shadow: 0 0 0 1px var(--sf-line), 0 14px 34px rgba(0, 0, 0, .2); }
    .sf[data-bar-pos="left"][data-search-place="bottom"] .sf-top .sf-search { left: calc(50% + var(--sf-rail) / 2); width: min(560px, calc(100% - var(--sf-rail) - 32px)); }
    .sf[data-bar-pos="right"][data-search-place="bottom"] .sf-top .sf-search { left: calc(50% - var(--sf-rail) / 2); width: min(560px, calc(100% - var(--sf-rail) - 32px)); }
}

/* Product cards: picture shape, name lines, alignment, button, heart. */
.sf-grid[data-ratio="square"] .sf-pic { aspect-ratio: 1 / 1; }
.sf-grid[data-ratio="portrait"] .sf-pic { aspect-ratio: 4 / 5; }
.sf-grid[data-ratio="tall"] .sf-pic { aspect-ratio: 3 / 4; }
.sf-grid[data-ratio="wide"] .sf-pic { aspect-ratio: 4 / 3; }
.sf-grid[data-lines="1"] .sf-name { -webkit-line-clamp: 1; }
.sf-grid[data-align="center"] .sf-card-body { align-items: center; text-align: center; }
.sf-grid[data-button="none"] .sf-add { display: none; }
.sf-grid[data-button="hover"] .sf-add { opacity: 0; transform: translateY(4px); transition: opacity 180ms ease, transform 180ms ease; }
.sf-grid[data-button="hover"] .sf-card:hover .sf-add,
.sf-grid[data-button="hover"] .sf-card:focus-within .sf-add { opacity: 1; transform: none; }
@media (hover: none) { .sf-grid[data-button="hover"] .sf-add { opacity: 1; transform: none; } }
.sf-grid[data-heart="0"] .sf-fav { display: none; }

/* More hovers (no border change, rule 8). */
.sf-grid[data-hover="darken"] .sf-pic::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity 220ms ease; pointer-events: none; }
.sf-grid[data-hover="darken"] .sf-card:hover .sf-pic::after { opacity: .16; }
.sf-grid[data-hover="tilt"] .sf-card { transition: transform 260ms ease; transform-origin: 50% 100%; }
.sf-grid[data-hover="tilt"] .sf-card:hover { transform: perspective(700px) rotateX(5deg) translateY(-3px); }
.sf-grid[data-hover="rise"] .sf-pic { transition: transform 260ms ease, box-shadow 260ms ease; }
.sf-grid[data-hover="rise"] .sf-card:hover .sf-pic { transform: translateY(-6px); box-shadow: 0 14px 26px rgba(0, 0, 0, .14); }

/* Card design: grid with lines (cells side by side, thin lines between).
   No line on the outer left and right edges; on a full-width page the grid
   reaches from edge to edge of the screen. */
.sf-grid[data-style="lined"] { gap: 0; box-shadow: inset 0 1px 0 var(--sf-line); }
.sf-grid[data-style="lined"] .sf-card { padding: 14px; box-shadow: inset -1px -1px 0 var(--sf-line); }
.sf-grid[data-style="lined"][data-cols="3"] .sf-card:nth-child(3n),
.sf-grid[data-style="lined"][data-cols="4"] .sf-card:nth-child(4n),
.sf-grid[data-style="lined"][data-cols="5"] .sf-card:nth-child(5n),
.sf-grid[data-style="lined"]:not([data-cols]) .sf-card:nth-child(4n),
.sf-grid[data-style="lined"] .sf-card:last-child { box-shadow: inset 0 -1px 0 var(--sf-line); }
.sf[data-width="full"] .sf-grid[data-style="lined"] { margin-left: -18px; margin-right: -18px; }
@media (max-width: 760px) {
    .sf-grid[data-style="lined"] .sf-card { box-shadow: inset -1px -1px 0 var(--sf-line) !important; }
    .sf-grid[data-style="lined"] .sf-card:nth-child(2n),
    .sf-grid[data-style="lined"] .sf-card:last-child { box-shadow: inset 0 -1px 0 var(--sf-line) !important; }
}
.sf-grid[data-style="lined"] .sf-pic { background: transparent; border-radius: 0; box-shadow: none; }
.sf-grid[data-style="lined"] .sf-card-body { order: -1; }
.sf-grid[data-style="lined"] .sf-name { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sf-grid[data-style="lined"] .sf-badges { top: auto; bottom: 14px; left: 14px; }
.sf-grid[data-style="lined"] .sf-fav { top: 10px; right: 10px; }

/* Card design: floating name box over the bottom of the picture. */
.sf-grid[data-style="float_panel"] .sf-card { gap: 0; border-radius: calc(var(--sf-radius, 16px) + 4px); overflow: hidden; background: var(--sf-pic); }
.sf-grid[data-style="float_panel"] .sf-pic { aspect-ratio: 4 / 5; border-radius: 0; }
.sf-grid[data-style="float_panel"] .sf-card-body {
    position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
    padding: 12px 14px; border-radius: var(--sf-radius, 16px); background: var(--sf-card);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

/* Card design: soft box (the whole card on a soft tile). */
.sf-grid[data-style="soft_box"] .sf-card { padding: 12px; border-radius: calc(var(--sf-radius, 16px) + 8px); background: var(--sf-tile); }
.sf-grid[data-style="soft_box"] .sf-pic { background: var(--sf-card); }
.sf-grid[data-style="soft_box"] .sf-badges { top: 20px; left: 20px; }
.sf-grid[data-style="soft_box"] .sf-fav { top: 18px; right: 18px; }

/* Card design: cart button cut into the picture's corner. */
.sf-grid[data-style="notch"] .sf-card { container-type: inline-size; }
.sf-grid[data-style="notch"] .sf-pic { aspect-ratio: 1 / 1 !important; border-radius: calc(var(--sf-radius, 16px) + 6px); }
.sf-grid[data-style="notch"] .sf-add { position: absolute; right: 0; top: calc(100cqw - 54px); z-index: 3; padding: 6px; border-radius: 50%; background: var(--sf-page); opacity: 1 !important; transform: none !important; }

/* Card design: outlined card. */
.sf-grid[data-style="outlined"] .sf-card { padding: 10px 10px 12px; border-radius: calc(var(--sf-radius, 16px) + 8px); box-shadow: inset 0 0 0 1.5px var(--sf-soft); }
.sf-grid[data-style="outlined"] .sf-pic { background: var(--sf-tile); }
.sf-grid[data-style="outlined"] .sf-badges { top: 18px; left: 18px; }
.sf-grid[data-style="outlined"] .sf-fav { top: 16px; right: 16px; }

/* Card design: gallery tile (picture and text on one soft tile). */
.sf-grid[data-style="tile"] .sf-card { gap: 0; border-radius: calc(var(--sf-radius, 16px) + 6px); background: var(--sf-tile); overflow: hidden; }
.sf-grid[data-style="tile"] .sf-pic { background: transparent; border-radius: 0; box-shadow: none; }
.sf-grid[data-style="tile"] .sf-card-body { padding: 0 14px 14px; }

@media (prefers-reduced-motion: reduce) and (max-width: 1px) {
    .sf-grid[data-hover="tilt"] .sf-card:hover,
    .sf-grid[data-hover="rise"] .sf-card:hover .sf-pic { transform: none; }
}


/* ── 21 Nov 16:06 ─────────────────────────────────────────────────────── */

/* Price (left) and cart (right) above the name instead of under it. */
.sf-grid[data-foot="top"] .sf-card-foot { order: -1; }

/* "Show more" under the products. */
.sf-more-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; }
.sf-more-btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* A product row like the collections: their corners, shape and picture
   shape (data-cshape, data-cratio, --sf-coll-r), name under the picture. */
.sf-grid[data-style="collection"] .sf-pic { border-radius: var(--sf-coll-r, 18px); background: var(--sf-tile); aspect-ratio: 1 / 1; -webkit-mask: none; mask: none; box-shadow: none; }
.sf-grid[data-style="collection"][data-cratio="wide"] .sf-pic { aspect-ratio: 16 / 10; }
.sf-grid[data-style="collection"][data-cratio="tall"] .sf-pic { aspect-ratio: 4 / 5; }
.sf-grid[data-style="collection"][data-cshape="square"] .sf-pic { border-radius: 4px; }
.sf-grid[data-style="collection"][data-cshape="circle"] .sf-pic { border-radius: 50%; aspect-ratio: 1 / 1; }
.sf-grid[data-style="collection"] .sf-pic img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.sf-grid[data-style="collection"] .sf-name { font-size: 15px; font-weight: 700; }
.sf-grid[data-style="collection"][data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Price on the left, cart on the right, always across the whole card, even
   when the name is centred. */
.sf-card-foot { align-self: stretch; width: 100%; }
/* Grid with lines: the heart at the bottom corner, clear of the name. */
.sf-grid[data-style="lined"] .sf-fav { top: auto; bottom: 10px; right: 10px; }

/* ===== v3 round 5c (21 Nov 16:44) ===== */

/* Price and cart line up with the name: centred names, centred price and
   cart side by side; left names, price on the left and cart on the right. */
.sf-grid[data-align="center"] .sf-card-foot { justify-content: center; gap: 12px; }
.sf-grid[data-align="center"] .sf-card-foot .sf-price { text-align: center; }
.sf-grid[data-align="center"] .sf-card-meta { justify-content: center; }

/* Cart and call buttons on cards in the shop's icon colour and background,
   a real round button, never a thin outline. */
.sf .sf-add :is(button, a) {
    min-width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 0 !important;
    background: var(--sf-icon-bg, var(--sf-accent)) !important;
    color: var(--sf-icon, var(--sf-accent-ink, #ffffff)) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sf .sf-add :is(button, a) svg { stroke: currentColor; stroke-width: var(--sf-icon-sw, 2); }
.sf .sf-add :is(button, a):hover { filter: brightness(1.06); }

/* Behind the pictures. auto: a see-through or one-colour picture shown whole
   on a tile of its own colour (a white-background picture sits on white,
   whatever the shop's colours); a busy photo fills the card. */
.sf-grid[data-pbg="auto"] .sf-pic[data-bg="plain"] { background: var(--sf-pic-bg, var(--sf-tile)); }
.sf-grid[data-pbg="auto"] .sf-pic[data-bg="plain"] img,
.sf-grid[data-pbg="auto"] .sf-pic[data-bg="clear"] img { object-fit: contain; padding: 6%; }
.sf-grid[data-pbg="auto"] .sf-pic[data-bg="busy"] img { object-fit: cover; padding: 0; }
.sf-grid[data-pbg="soft"] .sf-pic { background: color-mix(in srgb, var(--sf-accent) 12%, #ffffff); }
.sf-grid[data-pbg="mixed"] .sf-card:nth-child(6n+1) .sf-pic { background: #fdecef; }
.sf-grid[data-pbg="mixed"] .sf-card:nth-child(6n+2) .sf-pic { background: #eaf4ff; }
.sf-grid[data-pbg="mixed"] .sf-card:nth-child(6n+3) .sf-pic { background: #eefaf0; }
.sf-grid[data-pbg="mixed"] .sf-card:nth-child(6n+4) .sf-pic { background: #fff6e6; }
.sf-grid[data-pbg="mixed"] .sf-card:nth-child(6n+5) .sf-pic { background: #f3eefe; }
.sf-grid[data-pbg="mixed"] .sf-card:nth-child(6n+6) .sf-pic { background: #eafaf8; }
.sf-grid:is([data-pbg="soft"], [data-pbg="mixed"]) .sf-pic[data-bg="plain"] img,
.sf-grid:is([data-pbg="soft"], [data-pbg="mixed"]) .sf-pic[data-bg="clear"] img { object-fit: contain; padding: 6%; mix-blend-mode: multiply; }

/* 6 and 7 a row (full-width page only; the server keeps others at 5). */
.sf-grid[data-cols="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sf-grid[data-cols="7"] { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.sf-grid[data-cols="6"] .sf-name, .sf-grid[data-cols="7"] .sf-name { font-size: 13.5px; }
@media (max-width: 1500px) { .sf-grid[data-cols="7"] { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1300px) { .sf-grid:is([data-cols="6"], [data-cols="7"]) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .sf-grid:is([data-cols="6"], [data-cols="7"]) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1300px) { .sf-coll-grid { grid-template-columns: repeat(min(var(--sf-coll-cols, 4), 5), minmax(0, 1fr)); } }

/* Side bar: the shop logo, then the menu button on its own below it. */
@media (min-width: 901px) {
    .sf:is([data-bar-pos="left"], [data-bar-pos="right"]) .sf-top .sf-menu-btn {
        flex-direction: column;
        height: auto !important;
        gap: 10px;
        background: transparent !important;
        box-shadow: none !important;
    }
    .sf:is([data-bar-pos="left"], [data-bar-pos="right"]) .sf-top .sf-menu-btn .sf-mini-logo { width: 46px; height: 46px; }
    .sf:is([data-bar-pos="left"], [data-bar-pos="right"]) .sf-top .sf-menu-btn svg {
        box-sizing: content-box;
        padding: 14px;
        border-radius: 999px;
        background: var(--sf-icon-bg, var(--sf-glass));
        color: var(--sf-icon, var(--sf-ink));
    }
}

/* Search in the bar, moving to the bottom of the screen once customers
   scroll (storefront-shop.js sets data-search-down). */
.sf[data-search-place="scroll"][data-search-down] .sf-top .sf-search {
    display: block !important;
    position: fixed;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(560px, calc(100% - 32px));
    z-index: 45;
    animation: sf-search-up 220ms ease;
}
.sf[data-search-place="scroll"][data-search-down] .sf-top .sf-search-box { height: 52px; background: var(--sf-card); box-shadow: 0 0 0 1px var(--sf-line), 0 14px 34px rgba(0, 0, 0, .2); }
.sf[data-search-place="scroll"][data-search-down] .sf-top .sf-search-toggle { display: none !important; }
@keyframes sf-search-up { from { transform: translate(-50%, 24px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) and (max-width: 1px) { .sf[data-search-place="scroll"][data-search-down] .sf-top .sf-search { animation: none; } }

/* ===== v3 round 5d (21 Nov 17:41) ===== */

/* A picture on one plain colour fills its tile edge to edge: the tile is that
   same colour, so no band shows and the product keeps its full size. */
.sf-grid[data-pbg="auto"] .sf-pic[data-bg="plain"] img { padding: 0; }

/* Grid with lines: the shop's line colour and thickness (--sf-grid-line is
   always visible on the page, ThemeStyle). Lines only between cards. */
.sf-grid[data-style="lined"] { --sf-line: var(--sf-grid-line, var(--sf-line)); box-shadow: inset 0 var(--sf-grid-lw, 1px) 0 var(--sf-grid-line, var(--sf-line)); }
.sf-grid[data-style="lined"] .sf-card { box-shadow: inset calc(var(--sf-grid-lw, 1px) * -1) calc(var(--sf-grid-lw, 1px) * -1) 0 var(--sf-grid-line, var(--sf-line)); }
.sf-grid[data-style="lined"][data-cols="3"] .sf-card:nth-child(3n),
.sf-grid[data-style="lined"][data-cols="4"] .sf-card:nth-child(4n),
.sf-grid[data-style="lined"][data-cols="5"] .sf-card:nth-child(5n),
.sf-grid[data-style="lined"][data-cols="6"] .sf-card:nth-child(6n),
.sf-grid[data-style="lined"][data-cols="7"] .sf-card:nth-child(7n),
.sf-grid[data-style="lined"] .sf-card:last-child { box-shadow: inset 0 calc(var(--sf-grid-lw, 1px) * -1) 0 var(--sf-grid-line, var(--sf-line)); }
@media (max-width: 760px) {
    .sf-grid[data-style="lined"] .sf-card { box-shadow: inset calc(var(--sf-grid-lw, 1px) * -1) calc(var(--sf-grid-lw, 1px) * -1) 0 var(--sf-grid-line, var(--sf-line)) !important; }
    .sf-grid[data-style="lined"] .sf-card:nth-child(2n),
    .sf-grid[data-style="lined"] .sf-card:last-child { box-shadow: inset 0 calc(var(--sf-grid-lw, 1px) * -1) 0 var(--sf-grid-line, var(--sf-line)) !important; }
}

/* Floating name box: a short box (one line of name, the price and cart
   beside each other); the whole name shows when the mouse is on the card
   or the box has focus. */
.sf-grid[data-style="float_panel"] .sf-card-body { padding: 7px 10px; gap: 3px; left: 8px; right: 8px; bottom: 8px; transition: box-shadow 180ms ease; }
.sf-grid[data-style="float_panel"] .sf-name { -webkit-line-clamp: 1; line-clamp: 1; font-size: 13.5px; line-height: 1.3; }
.sf-grid[data-style="float_panel"] .sf-card-foot { margin-top: 0; min-height: 0; }
.sf-grid[data-style="float_panel"] .sf-add :is(button, a) { width: 30px !important; height: 30px !important; min-width: 30px; }
.sf-grid[data-style="float_panel"] .sf-card-meta { display: none; }
@media (hover: hover) {
    .sf-grid[data-style="float_panel"] .sf-card:is(:hover, :focus-within) .sf-name { -webkit-line-clamp: 4; line-clamp: 4; }
    .sf-grid[data-style="float_panel"] .sf-card:is(:hover, :focus-within) .sf-card-body { box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
}

/* Picture and name joined: no gap, one rounded card, the name band in the
   shop's tile colour right under the picture. */
.sf-grid[data-style="joined"] .sf-card { gap: 0; overflow: hidden; border-radius: calc(var(--sf-radius, 16px) + 4px); background: var(--sf-tile); }
.sf-grid[data-style="joined"] .sf-pic { border-radius: 0; box-shadow: none; }
.sf-grid[data-style="joined"] .sf-card-body { padding: 10px 12px 12px; }
.sf-grid[data-style="joined"][data-hover="lift"] .sf-card:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .12); }

/* ===== v3 round 5e (21 Nov 18:54) ===== */

/* Floating name box: only the name (one line) and a small arrow; with the
   mouse on the card (or keyboard focus) the box grows smoothly upward and
   shows the whole name, the price and the cart. Phones and tablets without
   a mouse show it open. */
.sf-grid[data-style="float_panel"] .sf-card-body { display: grid; grid-template-rows: auto 0fr; gap: 0; padding: 9px 38px 9px 12px; transition: grid-template-rows 260ms cubic-bezier(.2, .8, .2, 1), box-shadow 200ms ease, padding 260ms ease; }
.sf-grid[data-style="float_panel"] .sf-card-body::after {
    content: ""; position: absolute; right: 12px; top: 13px; width: 8px; height: 8px;
    border-right: 2px solid currentColor; border-top: 2px solid currentColor;
    color: var(--sf-ink); transform: rotate(-45deg); transition: transform 260ms ease;
}
.sf-grid[data-style="float_panel"] .sf-card-foot { overflow: hidden; min-height: 0; margin: 0; opacity: 0; transition: opacity 200ms ease 60ms; }
.sf-grid[data-style="float_panel"] .sf-name { -webkit-line-clamp: 1; line-clamp: 1; }
@media (hover: hover) {
    .sf-grid[data-style="float_panel"] .sf-card:is(:hover, :focus-within) .sf-card-body { grid-template-rows: auto 1fr; padding-bottom: 10px; }
    .sf-grid[data-style="float_panel"] .sf-card:is(:hover, :focus-within) .sf-card-foot { opacity: 1; padding-top: 6px; }
    .sf-grid[data-style="float_panel"] .sf-card:is(:hover, :focus-within) .sf-card-body::after { transform: rotate(135deg); top: 10px; }
}
@media (hover: none) {
    .sf-grid[data-style="float_panel"] .sf-card-body { grid-template-rows: auto 1fr; padding-right: 12px; }
    .sf-grid[data-style="float_panel"] .sf-card-foot { opacity: 1; padding-top: 6px; }
    .sf-grid[data-style="float_panel"] .sf-card-body::after { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 1px) {
    .sf-grid[data-style="float_panel"] .sf-card-body,
    .sf-grid[data-style="float_panel"] .sf-card-foot,
    .sf-grid[data-style="float_panel"] .sf-card-body::after { transition: none; }
}

/* Grid with lines: the column lines run the full height of the grid, also
   past an unfilled last row, and the grid's own bottom line closes it. Cards
   draw only their bottom line. Lines between columns only (no outer edges). */
.sf-grid[data-style="lined"] { position: relative; --lc: 4; box-shadow: inset 0 var(--sf-grid-lw, 1px) 0 var(--sf-grid-line), inset 0 calc(var(--sf-grid-lw, 1px) * -1) 0 var(--sf-grid-line); }
.sf-grid[data-style="lined"][data-cols="3"] { --lc: 3; }
.sf-grid[data-style="lined"][data-cols="5"] { --lc: 5; }
.sf-grid[data-style="lined"][data-cols="6"] { --lc: 6; }
.sf-grid[data-style="lined"][data-cols="7"] { --lc: 7; }
@media (max-width: 1500px) { .sf-grid[data-style="lined"][data-cols="7"] { --lc: 6; } }
@media (max-width: 1300px) { .sf-grid[data-style="lined"]:is([data-cols="6"], [data-cols="7"]) { --lc: 5; } }
@media (max-width: 1100px) { .sf-grid[data-style="lined"]:is([data-cols="5"], [data-cols="6"], [data-cols="7"]) { --lc: 4; } }
@media (max-width: 760px) { .sf-grid[data-style="lined"] { --lc: 2; } }
.sf-grid[data-style="lined"]::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: calc(100% / var(--lc));
    background: linear-gradient(to left, var(--sf-grid-line) 0 var(--sf-grid-lw, 1px), transparent var(--sf-grid-lw, 1px)) 0 0 / calc(100% / (var(--lc) - 1)) 100% repeat-x;
    pointer-events: none; z-index: 1;
}
.sf-grid[data-style="lined"] .sf-card,
.sf-grid[data-style="lined"] .sf-card:nth-child(n),
.sf-grid[data-style="lined"] .sf-card:last-child { box-shadow: inset 0 calc(var(--sf-grid-lw, 1px) * -1) 0 var(--sf-grid-line) !important; }

/* Cart in the corner: a clean cut in the picture's corner in the page
   colour, with the round cart button inside it (no extra circle). */
.sf-grid[data-style="notch"] .sf-add {
    position: absolute; right: 0; top: calc(100cqw - 52px); z-index: 3;
    width: 52px; height: 52px; padding: 8px 0 0 8px; box-sizing: border-box;
    display: flex; align-items: flex-end; justify-content: flex-end;
    background: var(--sf-page); border-radius: 22px 0 0 0;
    opacity: 1 !important; transform: none !important;
}
.sf-grid[data-style="notch"] .sf-add :is(button, a) { width: 44px !important; height: 44px !important; }
.sf-grid[data-style="notch"] .sf-add > * { margin: 0; }

/* Each part of the page in its own plain block (templates/classic). */
.sf-sec { display: block; min-width: 0; }

/* ===== Round C (21 Nov 22:36): cards on tablets and phones. Last in the
   file so it wins over every "N in a row" rule above (6 and 7 a row and the
   collection-look rows were keeping their computer columns on a phone). ===== */
@media (max-width: 1000px) {
    .sf-grid:is([data-cols="4"], [data-cols="5"], [data-cols="6"], [data-cols="7"]) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .sf-grid[data-style="lined"]:is([data-cols="4"], [data-cols="5"], [data-cols="6"], [data-cols="7"]) { --lc: 3; }
    .sf-coll-grid { grid-template-columns: repeat(min(var(--sf-coll-cols, 4), 3), minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
    .sf-grid, .sf-grid[data-cols] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px 10px; }
    .sf-grid[data-style="lined"], .sf-grid[data-style="lined"][data-cols] { --lc: 2; gap: 0; }
    .sf-grid[data-layout="left"], .sf-grid[data-layout="right"] { grid-template-columns: minmax(0, 1fr) !important; }
    .sf-coll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px 12px; }
    .sf-coll-grid[data-shape="circle"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .sf-grid .sf-name { font-size: 13.5px; }
    .sf-grid .sf-card-body { min-width: 0; }
    .sf-grid .sf-card-foot { gap: 6px; flex-wrap: nowrap; }
    .sf-grid .sf-price { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
    .sf .sf-add :is(button, a) { width: 34px !important; height: 34px !important; min-width: 34px; }
    .sf-grid[data-style="float_panel"] .sf-card-body { left: 6px; right: 6px; bottom: 6px; padding: 7px 9px; }
    .sf-grid[data-style="notch"] .sf-add { width: 46px; height: 46px; top: calc(100cqw - 46px); padding: 6px 0 0 6px; border-radius: 18px 0 0 0; }
    .sf-grid[data-style="notch"] .sf-add :is(button, a) { width: 38px !important; height: 38px !important; }
}
@media (max-width: 380px) {
    .sf-grid, .sf-grid[data-cols] { gap: 10px 8px; }
    .sf-grid .sf-name { font-size: 13px; }
}

/* ── 22 Nov: left and right in one row (product rows only) ───────────── */
/* The grid is data-layout="left"; a card marked sf-flip puts its picture
   on the right, like data-layout="right". All products is never mixed. */
.sf-grid[data-mix][data-layout="left"] .sf-card.sf-flip { grid-template-columns: minmax(0, 1fr) 38%; }
.sf-grid[data-mix][data-layout="left"] .sf-card.sf-flip .sf-pic { order: 2; }
.sf-grid[data-mix][data-layout="left"] .sf-card.sf-flip .sf-fav { left: auto; right: 10px; }
.sf-grid[data-mix][data-layout="left"] .sf-card.sf-flip .sf-badges { left: calc(62% + 24px); }

/* ── 22 Nov: the top with no picture at all ──────────────────────────── */
/* The shop wanted a picture but has none (no upload, no cover, no product
   photo big enough): the top keeps the template's height and is filled
   from the shop's own colours. "plain" keeps the old short band. Colours
   come from ThemeStyle variables only (checked #rrggbb). */
.sf[data-media="0"]:is([data-backdrop="gradient"], [data-backdrop="glow"], [data-backdrop="dots"], [data-backdrop="lines"]) .sf-hero {
    min-height: calc(var(--sf-hero-h) - var(--sf-bar-h));
    margin: 8px 16px 0;
    padding: 36px 16px 24px;
    border-radius: 28px;
    color: var(--sf-ink);
    overflow: hidden;
}
.sf[data-media="0"][data-backdrop="gradient"] .sf-hero {
    background: linear-gradient(135deg, var(--sf-tint) 0%, var(--sf-band) 55%, var(--sf-page) 100%);
}
.sf[data-media="0"][data-backdrop="glow"] .sf-hero {
    background:
        radial-gradient(60% 70% at 20% 20%, var(--sf-tint) 0%, transparent 70%),
        radial-gradient(55% 65% at 85% 80%, var(--sf-tint) 0%, transparent 70%),
        var(--sf-band);
}
.sf[data-media="0"][data-backdrop="dots"] .sf-hero {
    background:
        radial-gradient(circle, var(--sf-line) 1.4px, transparent 1.6px) 0 0 / 18px 18px,
        linear-gradient(180deg, var(--sf-tint), var(--sf-band));
}
.sf[data-media="0"][data-backdrop="lines"] .sf-hero {
    background:
        repeating-linear-gradient(135deg, var(--sf-line) 0 1px, transparent 1px 16px),
        linear-gradient(180deg, var(--sf-band), var(--sf-tint));
}
.sf[data-media="0"]:not([data-backdrop="plain"]):not([data-backdrop="none"]) .sf-hero .sf-hero-name { color: var(--sf-head, var(--sf-ink)); }
.sf[data-media="0"]:not([data-backdrop="plain"]):not([data-backdrop="none"]) .sf-hero .sf-hero-tagline { color: var(--sf-ink); }
@media (max-width: 640px) {
    .sf[data-media="0"]:is([data-backdrop="gradient"], [data-backdrop="glow"], [data-backdrop="dots"], [data-backdrop="lines"]) .sf-hero {
        min-height: max(300px, calc(var(--sf-hero-h) * .7 - var(--sf-bar-h)));
        margin: 6px 10px 0;
        border-radius: 22px;
    }
}

/* ── 22 Nov: search moving to the bottom with the bar down the side ──── */
/* Once customers scroll, the search leaves the side bar and floats at the
   bottom, centred in the page beside the bar (never at the top, never as
   the icon only). */
@media (min-width: 901px) {
    .sf:is([data-bar-pos="left"], [data-bar-pos="right"])[data-search-place="scroll"][data-search-down] .sf-top .sf-search {
        display: block !important;
        position: fixed;
        top: auto;
        bottom: max(16px, env(safe-area-inset-bottom));
        width: min(560px, calc(100% - var(--sf-rail, 76px) - 32px));
        z-index: 45;
    }
    .sf[data-bar-pos="left"][data-search-place="scroll"][data-search-down] .sf-top .sf-search { left: calc(50% + var(--sf-rail, 76px) / 2); right: auto; }
    .sf[data-bar-pos="right"][data-search-place="scroll"][data-search-down] .sf-top .sf-search { left: calc(50% - var(--sf-rail, 76px) / 2); right: auto; }
    .sf:is([data-bar-pos="left"], [data-bar-pos="right"])[data-search-place="scroll"][data-search-down] .sf-top .sf-search-box { height: 52px; background: var(--sf-card); box-shadow: 0 0 0 1px var(--sf-line), 0 14px 34px rgba(0, 0, 0, .2); }
    .sf:is([data-bar-pos="left"], [data-bar-pos="right"])[data-search-place="scroll"][data-search-down] .sf-top .sf-search-toggle { display: none !important; }
}

/* ── 22 Nov: Gallery tile: room between the picture and the name ─────── */
.sf-grid[data-style="tile"] .sf-card-body { padding: 12px 14px 14px; }
.sf-grid[data-style="tile"][data-layout="left"] .sf-card-body,
.sf-grid[data-style="tile"][data-layout="right"] .sf-card-body { padding: 12px 14px; }

/* ── 22 Nov: rounded top picture beside a side bar ───────────────────── */
/* The rounded picture (and a rounded top with no picture) start after the
   bar, so both sides stay rounded. */
@media (min-width: 901px) {
    .sf[data-bar-pos="left"][data-hero-layout="boxed"] .sf-media { left: calc(var(--sf-rail, 76px) + 16px); top: 16px; height: calc(var(--sf-media-h, var(--sf-hero-h)) - 16px); }
    .sf[data-bar-pos="right"][data-hero-layout="boxed"] .sf-media { right: calc(var(--sf-rail, 76px) + 16px); top: 16px; height: calc(var(--sf-media-h, var(--sf-hero-h)) - 16px); }
    /* Split top beside a side bar: the picture takes half of the page beside
       the bar, on the side the shop chose. */
    .sf[data-bar-pos="left"][data-hero-layout="split"] .sf-media { left: var(--sf-rail, 76px); right: auto; width: calc((100% - var(--sf-rail, 76px)) / 2); }
    .sf[data-bar-pos="left"][data-hero-layout="split"][data-hero-side="right"] .sf-media { left: auto; right: 0; }
    .sf[data-bar-pos="right"][data-hero-layout="split"] .sf-media { left: 0; right: auto; width: calc((100% - var(--sf-rail, 76px)) / 2); }
    .sf[data-bar-pos="right"][data-hero-layout="split"][data-hero-side="right"] .sf-media { left: auto; right: var(--sf-rail, 76px); }
    /* An open search beside the side bar is never moved by the centring of
       the bottom search (it was cut off on the left). */
    .sf:is([data-bar-pos="left"], [data-bar-pos="right"]):not([data-search-down]) .sf-top[data-search-open] .sf-search { transform: none; bottom: auto; top: 14px; }
}

/* ── 22 Nov: the shop name ───────────────────────────────────────────── */
.sf[data-name-colour="own"] .sf-hero .sf-hero-name,
.sf[data-name-colour="own"] .sf-name-under-t { color: var(--sf-name-ink); text-shadow: none; }

/* On the picture half of "Half picture, half text": placed by the shop. */
.sf-hero-picname {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    width: 100%;
    display: flex;
    padding: max(24px, 4vw);
    color: var(--sf-hero-ink);
    pointer-events: none;
    z-index: 2;
}
.sf[data-hero-side="right"] .sf-hero-picname { right: auto; left: 100%; }
.sf-hero-picname-in { display: flex; flex-direction: column; gap: 8px; max-width: 100%; pointer-events: auto; }
.sf-hero-picname .sf-hero-name { margin: 0; color: var(--sf-hero-ink); }
.sf-hero-picname .sf-hero-tagline { color: var(--sf-hero-ink); }
.sf[data-hero-ink="light"] .sf-hero-picname { text-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 18px rgba(0, 0, 0, .3); }
.sf[data-name-v="top"] .sf-hero-picname { align-items: flex-start; }
.sf[data-name-v="middle"] .sf-hero-picname { align-items: center; }
.sf[data-name-v="bottom"] .sf-hero-picname { align-items: flex-end; }
.sf[data-name-h="left"] .sf-hero-picname { justify-content: flex-start; text-align: left; }
.sf[data-name-h="center"] .sf-hero-picname { justify-content: center; text-align: center; }
.sf[data-name-h="right"] .sf-hero-picname { justify-content: flex-end; text-align: right; }
.sf[data-name-h="left"] .sf-hero-picname-in { align-items: flex-start; }
.sf[data-name-h="center"] .sf-hero-picname-in { align-items: center; }
.sf[data-name-h="right"] .sf-hero-picname-in { align-items: flex-end; }
@media (max-width: 760px) {
    .sf-hero-picname { right: 0; left: 0; width: auto; bottom: auto; height: calc(46svh - var(--sf-bar-h, 60px)); padding: 20px; }
    .sf[data-hero-side="right"] .sf-hero-picname { left: 0; }
}

/* The text half: where the text sits and its inner space. */
.sf[data-hero-layout="split"] .sf-hero { padding: var(--sf-copy-pad, 40px); }
.sf[data-hero-layout="split"][data-copy-v="top"] .sf-hero-in { justify-content: flex-start; }
.sf[data-hero-layout="split"][data-copy-v="middle"] .sf-hero-in { justify-content: center; }
.sf[data-hero-layout="split"][data-copy-v="bottom"] .sf-hero-in { justify-content: flex-end; }
.sf[data-hero-layout="split"][data-copy-align="left"] .sf-hero-in { align-items: flex-start; text-align: left; align-self: stretch; }
.sf[data-hero-layout="split"][data-copy-align="right"] .sf-hero-in { align-items: flex-end; text-align: right; align-self: stretch; }
.sf[data-hero-layout="split"][data-copy-align="center"] .sf-hero-in { align-items: center; text-align: center; }
@media (max-width: 760px) {
    .sf[data-hero-layout="split"] .sf-hero { padding: calc(46svh - var(--sf-bar-h, 60px) + 20px) 18px 24px; }
}

/* ── 22 Nov: text and buttons on the top part ────────────────────────── */
.sf-topcopy { display: flex; flex-direction: column; gap: 14px; max-width: var(--sf-copy-w, 600px); width: 100%; }
.sf[data-copy-align="left"] .sf-topcopy { align-items: flex-start; text-align: left; }
.sf[data-copy-align="center"] .sf-topcopy { align-items: center; text-align: center; }
.sf[data-copy-align="right"] .sf-topcopy { align-items: flex-end; text-align: right; }
.sf-topcopy-rule { display: block; width: 120px; height: 3px; border-radius: 3px; background: var(--sf-accent-ui); }
.sf-topcopy-head {
    margin: 0;
    font-family: var(--sf-copy-head-font, var(--sf-font));
    font-size: var(--sf-copy-head, clamp(30px, 4.8vw, 64px));
    line-height: var(--sf-copy-head-lh, 1.08);
    letter-spacing: -.01em;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.sf-topcopy[data-weight="bold"] .sf-topcopy-head { font-weight: var(--sf-head-weight, 700); }
.sf-topcopy[data-weight="normal"] .sf-topcopy-head { font-weight: 400; }
.sf-topcopy-sub { margin: 0; font-family: var(--sf-copy-sub-font, inherit); font-size: var(--sf-copy-sub, 16px); line-height: var(--sf-copy-sub-lh, 1.55); white-space: pre-line; max-width: 100%; }
.sf[data-hero-layout="split"] .sf-topcopy-head { color: var(--sf-split-head, var(--sf-head)); }
.sf[data-hero-layout="split"] .sf-topcopy-sub { color: var(--sf-split-ink, var(--sf-ink)); }
.sf-topcopy-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.sf[data-copy-align="center"] .sf-topcopy-btns { justify-content: center; }
.sf[data-copy-align="right"] .sf-topcopy-btns { justify-content: flex-end; }
.sf-topcopy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-shadow: none;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease;
}
.sf-topcopy-btn[hidden] { display: none; }
.sf-topcopy[data-corner="soft"] .sf-topcopy-btn { border-radius: 12px; }
.sf-topcopy[data-corner="square"] .sf-topcopy-btn { border-radius: 4px; }
.sf-topcopy-btn[data-style="filled"] { background: var(--sf-accent); color: var(--sf-on-accent); }
.sf-topcopy-btn[data-style="outline"] { background: transparent; border-color: currentColor; color: inherit; }
.sf-topcopy-btn[data-style="arrow"] { padding: 0 4px; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.sf-topcopy-btn:hover { transform: translateY(-1px); }
.sf-topcopy-btn[data-style="filled"]:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.sf-topcopy-btn:focus-visible { outline: 3px solid var(--sf-accent-ui); outline-offset: 3px; }
.sf[data-media="1"]:not([data-hero-layout="split"]) .sf-topcopy-btn[data-style="outline"] { background: var(--sf-glass); color: var(--sf-ink); border-color: transparent; }
@media (prefers-reduced-motion: reduce) and (max-width: 1px) { .sf-topcopy-btn { transition: none; } .sf-topcopy-btn:hover { transform: none; } }
.sf-sec { scroll-margin-top: calc(var(--sf-bar-h, 64px) + 12px); }

/* ── 22 Nov: category pill designs (top part only) ───────────────────── */
.sf-hero-pills { --pp: 34px; }
.sf-hero-pills[data-pill-size="s"] { --pp: 28px; }
.sf-hero-pills[data-pill-size="l"] { --pp: 42px; }
.sf-hero-pills .sf-pill-pic { width: var(--pp); height: var(--pp); }
.sf-hero-pills[data-pill-shape="rounded"] .sf-pill-pic { border-radius: 28%; }
.sf-hero-pills[data-pill-shape="square"] .sf-pill-pic { border-radius: 6px; }
.sf-hero-pills[data-pill-shape="squircle"] .sf-pill-pic { border-radius: 38%; }
.sf-hero-pills[data-pill-shape="arch"] .sf-pill-pic { border-radius: 50% 50% 12% 12% / 45% 45% 12% 12%; }
.sf-pill-go { display: none; }

/* Big pill */
.sf-hero-pills[data-pill-design="big"] { --pp: 46px; }
.sf-hero-pills[data-pill-design="big"][data-pill-size="s"] { --pp: 38px; }
.sf-hero-pills[data-pill-design="big"][data-pill-size="l"] { --pp: 58px; }
.sf-hero-pills[data-pill-design="big"] .sf-pill-cat { height: calc(var(--pp) + 12px); padding: 0 20px 0 6px; font-size: 15px; gap: 10px; }

/* Circle picture, name under it */
.sf-hero-pills[data-pill-design="circle"] { --pp: 104px; }
.sf-hero-pills[data-pill-design="circle"][data-pill-size="s"] { --pp: 78px; }
.sf-hero-pills[data-pill-design="circle"][data-pill-size="l"] { --pp: 136px; }
.sf-hero-pills[data-pill-design="circle"] .sf-pills { gap: 18px; align-items: flex-start; }
.sf-hero-pills[data-pill-design="circle"] .sf-pill-cat {
    flex-direction: column;
    height: auto;
    width: calc(var(--pp) + 12px);
    padding: 0;
    gap: 8px;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.sf-hero-pills[data-pill-design="circle"] .sf-pill-pic { box-shadow: 0 0 0 1px var(--sf-line), 0 6px 18px rgba(0, 0, 0, .12); }
.sf-hero-pills[data-pill-design="circle"] .sf-pill-pic--all { background: var(--sf-tint); color: var(--sf-ink); }
.sf-hero-pills[data-pill-design="circle"] .sf-pill-pic--all svg { width: 40%; height: 40%; }
.sf-hero-pills[data-pill-design="circle"] .sf-pill-name {
    max-width: 100%;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--sf-glass-2);
    color: var(--sf-ink);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
}
.sf-hero-pills[data-pill-design="circle"] .sf-pill-cat:hover .sf-pill-pic { box-shadow: 0 0 0 3px var(--sf-accent-ui); }
.sf-hero-pills[data-pill-design="circle"] .sf-pill-cat:hover { box-shadow: none; }
.sf-hero-pills[data-pill-design="circle"] .sf-pill-cat[aria-current="true"] { background: none; color: var(--sf-ink); }
.sf-hero-pills[data-pill-design="circle"] .sf-pill-cat[aria-current="true"] .sf-pill-pic { box-shadow: 0 0 0 3px var(--sf-accent-ui); }

/* Tile, card and bento: a picture panel with the name on it. */
.sf-hero-pills:is([data-pill-design="tile"], [data-pill-design="card"], [data-pill-design="bento"]) { --tw: 170px; --th: 200px; --tr: 18px; }
.sf-hero-pills:is([data-pill-design="tile"], [data-pill-design="card"], [data-pill-design="bento"])[data-pill-size="s"] { --tw: 130px; --th: 150px; }
.sf-hero-pills:is([data-pill-design="tile"], [data-pill-design="card"], [data-pill-design="bento"])[data-pill-size="l"] { --tw: 220px; --th: 260px; }
.sf-hero-pills[data-pill-shape="square"] { --tr: 6px; }
.sf-hero-pills[data-pill-shape="squircle"] { --tr: 28px; }
.sf-hero-pills[data-pill-shape="circle"] { --tr: 30px; }
.sf-hero-pills:is([data-pill-design="tile"], [data-pill-design="card"], [data-pill-design="bento"]) .sf-pills { gap: 14px; align-items: stretch; }
.sf-hero-pills:is([data-pill-design="tile"], [data-pill-design="card"], [data-pill-design="bento"]) .sf-pill-cat {
    position: relative;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    width: var(--tw);
    height: var(--th);
    padding: 14px;
    gap: 8px;
    border-radius: var(--tr);
    overflow: hidden;
    white-space: normal;
    text-align: left;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.sf-hero-pills[data-pill-shape="arch"]:is([data-pill-design="tile"], [data-pill-design="card"], [data-pill-design="bento"]) .sf-pill-cat { border-radius: calc(var(--tw) / 2) calc(var(--tw) / 2) 16px 16px; }
.sf-hero-pills:is([data-pill-design="tile"], [data-pill-design="bento"]) .sf-pill-cat .sf-pill-pic {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: var(--sf-tile);
    color: var(--sf-ink);
    font-size: 42px;
}
.sf-hero-pills:is([data-pill-design="tile"], [data-pill-design="bento"]) .sf-pill-cat::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .62));
    pointer-events: none;
}
.sf-hero-pills:is([data-pill-design="tile"], [data-pill-design="bento"]) .sf-pill-name {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}
.sf-hero-pills:is([data-pill-design="tile"], [data-pill-design="bento"]) .sf-pill-pic--all { background: var(--sf-accent); color: var(--sf-on-accent); }
.sf-hero-pills:is([data-pill-design="tile"], [data-pill-design="bento"]) .sf-pill-pic--all svg { width: 34%; height: 34%; margin-bottom: 20%; }
.sf-hero-pills:is([data-pill-design="tile"], [data-pill-design="card"], [data-pill-design="bento"]) .sf-pill-cat:hover { box-shadow: 0 0 0 3px var(--sf-accent-ui), 0 10px 26px rgba(0, 0, 0, .16); }
.sf-hero-pills:is([data-pill-design="tile"], [data-pill-design="bento"]) .sf-pill-cat[aria-current="true"] { box-shadow: 0 0 0 3px var(--sf-accent-ui); background: none; }
.sf-hero-pills:is([data-pill-design="tile"], [data-pill-design="bento"]) .sf-pill-cat img { transition: transform 300ms ease; }
.sf-hero-pills:is([data-pill-design="tile"], [data-pill-design="bento"]) .sf-pill-cat:hover img { transform: scale(1.05); }

/* Card: a soft colour panel, the picture standing in it, name and View. */
.sf-hero-pills[data-pill-design="card"] .sf-pill-cat {
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    height: auto;
    min-height: var(--th);
    padding: 12px 12px 14px;
    background: var(--sf-tint);
    color: var(--sf-ink);
    box-shadow: 0 0 0 1px var(--sf-line);
}
.sf-hero-pills[data-pill-design="card"] .sf-pill-cat:nth-child(3n+2) { background: color-mix(in srgb, var(--sf-tint) 70%, var(--sf-card)); }
.sf-hero-pills[data-pill-design="card"] .sf-pill-pic {
    align-self: stretch;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-bottom: 4px;
    background: var(--sf-card);
    font-size: 28px;
}
.sf-hero-pills[data-pill-design="card"] .sf-pill-pic--all svg { width: 40%; height: 40%; }
.sf-hero-pills[data-pill-design="card"] .sf-pill-pic img { object-fit: cover; }
.sf-hero-pills[data-pill-design="card"] .sf-pill-name { font-size: 15px; font-weight: 800; line-height: 1.2; color: inherit; }
.sf-hero-pills[data-pill-design="card"] .sf-pill-go {
    display: inline-flex;
    align-items: center;
    align-self: center;
    margin-top: auto;
    height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--sf-card);
    color: var(--sf-ink);
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: 0 0 0 1px var(--sf-line);
}
.sf-hero-pills[data-pill-design="card"] .sf-pill-cat[aria-current="true"] { background: var(--sf-accent); color: var(--sf-on-accent); }

/* Bento: one big tile and small ones of one size beside it. */
.sf-hero-pills[data-pill-design="bento"] .sf-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: calc(var(--th) * .7);
    width: min(1200px, 100%);
    overflow: visible;
    margin: 0 auto;
}
.sf-hero-pills[data-pill-design="bento"] .sf-pills:has(> :nth-child(8)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sf-hero-pills[data-pill-design="bento"] .sf-pill-cat { width: auto; height: auto; }
.sf-hero-pills[data-pill-design="bento"] .sf-pill-cat:nth-child(2) { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.sf-hero-pills[data-pill-design="bento"] .sf-pill-cat:nth-child(2) .sf-pill-name { font-size: 24px; }
.sf-hero-pills[data-pill-design="bento"] .sf-pill-cat:not(:nth-child(2)) .sf-pill-name { font-size: 15px; }
.sf-hero-pills[data-pill-design="bento"] .sf-pills > * { margin: 0 !important; }
@media (max-width: 760px) {
    .sf-hero-pills[data-pill-design="bento"] .sf-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sf-hero-pills:is([data-pill-design="tile"], [data-pill-design="card"]) { --tw: 140px; --th: 170px; }
    .sf-hero-pills[data-pill-design="circle"] { --pp: 78px; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 1px) { .sf-hero-pills .sf-pill-cat img { transition: none !important; } }

/* The name on the picture half keeps the picture's readable colour (or the
   shop's own), never the text half's colours. */
.sf[data-hero-layout="split"] .sf-hero .sf-hero-picname .sf-hero-name,
.sf[data-hero-layout="split"] .sf-hero .sf-hero-picname .sf-hero-tagline { color: var(--sf-hero-ink); }
.sf[data-hero-layout="split"][data-name-colour="own"] .sf-hero .sf-hero-picname .sf-hero-name { color: var(--sf-name-ink); }

/* 22 Nov 16:04: more button looks. */
.sf-topcopy-arrow { display: inline-flex; }
.sf-topcopy-btn[data-style="circle"] { gap: 0; padding: 0 4px 0 22px; background: var(--sf-accent); color: var(--sf-on-accent); }
.sf-topcopy-btn[data-style="circle"] .sf-topcopy-arrow { width: 38px; height: 38px; margin-left: 12px; border-radius: 50%; align-items: center; justify-content: center; background: var(--sf-on-accent); color: var(--sf-accent); }
.sf-topcopy[data-corner="soft"] .sf-topcopy-btn[data-style="circle"] .sf-topcopy-arrow { border-radius: 10px; }
.sf-topcopy[data-corner="square"] .sf-topcopy-btn[data-style="circle"] .sf-topcopy-arrow { border-radius: 3px; }
.sf-topcopy-btn[data-style="tint"] { background: var(--sf-tint); color: var(--sf-ink); }
.sf-topcopy-btn[data-style="dark"] { background: #0b0b0b; color: #ffffff; }
.sf[data-mode="dark"] .sf-topcopy-btn[data-style="dark"] { background: #ffffff; color: #0b0b0b; }
.sf-topcopy-btn[data-style="glass"] { background: var(--sf-glass); color: var(--sf-ink); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px var(--sf-line); }
.sf-topcopy-btn[data-style="underline"] { padding: 0 2px; min-height: 36px; background: transparent; color: inherit; border-radius: 0; border-bottom: 2px solid currentColor; }

/* ── 22 Nov: half picture, half text on phones (the shop's choice) ───── */
@media (max-width: 760px) {
    /* Text first: the text at the top, the picture right under it (its top
       is measured by storefront-shop.js, --sf-media-top). */
    .sf[data-hero-layout="split"][data-hero-phone="text"] .sf-hero { padding-top: calc(var(--sf-bar-h, 60px) + 16px); padding-bottom: calc(46svh + 16px); }
    .sf[data-hero-layout="split"][data-hero-phone="text"] .sf-media { top: var(--sf-media-top, auto); }
    .sf[data-hero-layout="split"][data-hero-phone="text"] .sf-hero-picname { top: auto; bottom: 0; height: 46svh; }
    /* Picture behind the text: like the full picture top, the text in the
       picture's readable colour. */
    .sf[data-hero-layout="split"][data-hero-phone="behind"] .sf-media { height: var(--sf-media-h, 100%); }
    .sf[data-hero-layout="split"][data-hero-phone="behind"] .sf-hero { padding-top: calc(var(--sf-bar-h, 60px) + 24px); background: transparent; color: var(--sf-hero-ink); }
    .sf[data-hero-layout="split"][data-hero-phone="behind"] .sf-hero .sf-hero-name,
    .sf[data-hero-layout="split"][data-hero-phone="behind"] .sf-hero .sf-hero-tagline,
    .sf[data-hero-layout="split"][data-hero-phone="behind"] .sf-topcopy-head,
    .sf[data-hero-layout="split"][data-hero-phone="behind"] .sf-topcopy-sub { color: var(--sf-hero-ink); }
    .sf[data-hero-layout="split"][data-hero-phone="behind"][data-hero-ink="light"] .sf-hero-in { text-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 18px rgba(0, 0, 0, .3) !important; }
    .sf[data-hero-layout="split"][data-hero-phone="behind"] .sf-media-over { display: block; }
    .sf[data-hero-layout="split"][data-hero-phone="behind"] .sf-hero-picname { position: relative; inset: auto; width: auto; height: auto; padding: 0 0 12px; }
}

/* ── 22 Nov 17:51: top text colours, background and place ────────────── */
.sf:not([data-copy-bg="none"]) .sf-topcopy { padding: clamp(18px, 3vw, 32px); border-radius: 22px; background: var(--sf-copy-bg); color: var(--sf-copy-auto, var(--sf-ink)); text-shadow: none; }
.sf[data-copy-bg="glass"] .sf-topcopy { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px var(--sf-line); }
.sf:not([data-copy-bg="none"]) .sf-hero .sf-topcopy .sf-topcopy-head,
.sf:not([data-copy-bg="none"]) .sf-hero .sf-topcopy .sf-topcopy-sub { color: var(--sf-copy-auto, inherit); text-shadow: none; }
.sf[data-copy-hink="set"] .sf-hero .sf-topcopy .sf-topcopy-head { color: var(--sf-copy-head-ink); }
.sf[data-copy-sink="set"] .sf-hero .sf-topcopy .sf-topcopy-sub { color: var(--sf-copy-sub-ink); }
/* On a full or rounded picture the text block may sit left, middle or
   right of the page. */
.sf:not([data-hero-layout="split"]) .sf-hero-in:has(> .sf-topcopy) { width: 100%; max-width: var(--sf-page-max, 1320px); align-self: center; }
.sf:not([data-hero-layout="split"])[data-copy-place="left"] .sf-topcopy { align-self: flex-start; }
.sf:not([data-hero-layout="split"])[data-copy-place="center"] .sf-topcopy { align-self: center; }
.sf:not([data-hero-layout="split"])[data-copy-place="right"] .sf-topcopy { align-self: flex-end; }

/* 18:17: the small line sits under the shop name and follows the name,
   not the text block. The text block keeps space at both sides of the page,
   also at "The whole side". */
.sf-name-rule { align-self: center; margin: 2px 0 6px; }
.sf[data-name-place="left"] .sf-hero-in > .sf-name-rule,
.sf[data-name-place="bottom_left"] .sf-hero-in > .sf-name-rule { align-self: flex-start; }
.sf[data-name-h="left"] .sf-hero-picname .sf-name-rule { align-self: flex-start; }
.sf[data-name-h="right"] .sf-hero-picname .sf-name-rule { align-self: flex-end; }
.sf[data-hero-layout="split"] .sf-hero-in > .sf-name-rule { align-self: inherit; }
.sf:not([data-hero-layout="split"]) .sf-hero-in:has(> .sf-topcopy) { padding-inline: clamp(16px, 4vw, 56px); box-sizing: border-box; }
.sf-hero .sf-topcopy { box-sizing: border-box; max-width: min(var(--sf-copy-w, 600px), 100%); }

/* ── 22 Nov: picture grid ─────────────────────────────────────────────── */
.sf-grid-sec { --pg-h: 440px; --pg-gap: 14px; }
.sf-grid-sec[data-height="s"] { --pg-h: 320px; }
.sf-grid-sec[data-height="l"] { --pg-h: 560px; }
.sf-grid-sec[data-height="xl"] { --pg-h: 680px; }
.sf-grid-sec[data-gap="s"] { --pg-gap: 8px; }
.sf-grid-sec[data-gap="l"] { --pg-gap: 22px; }
.sf-pgrid { display: flex; gap: var(--pg-gap); height: var(--pg-h); }
/* Widths in twelfths as shares: a column left out gives its room to the others. */
.sf-pgrid-col { flex: var(--span, 4) 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--pg-gap); min-height: 0; }
.sf-pblock { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; border-radius: var(--sf-radius, 16px); background: var(--sf-tile); color: var(--sf-ink); text-decoration: none; }
.sf-pblock--pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
a.sf-pblock--pic:hover img { transform: scale(1.04); }
a.sf-pblock:focus-visible { outline: 3px solid var(--sf-accent-ui); outline-offset: 2px; }
.sf-pblock-cap { position: absolute; left: 12px; bottom: 12px; right: 12px; display: inline-flex; flex-direction: column; gap: 2px; width: fit-content; max-width: calc(100% - 24px); padding: 8px 12px; border-radius: 12px; background: var(--sf-glass-2); color: var(--sf-ink); font-size: 14px; font-weight: 700; line-height: 1.25; }
.sf-pblock-cap--product b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-pblock-cap--product span { font-size: 13.5px; font-weight: 700; color: var(--sf-accent-text); }
.sf-pblock--text { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: clamp(18px, 2.4vw, 32px); }
.sf-pblock--text[data-bg="tint"] { background: var(--sf-tint); color: var(--sf-ink); }
.sf-pblock--text[data-bg="page"] { background: var(--sf-page); color: var(--sf-ink); box-shadow: inset 0 0 0 1px var(--sf-line); }
.sf-pblock--text[data-bg="accent"] { background: var(--sf-accent); color: var(--sf-on-accent); }
.sf-pblock--text[data-bg="dark"] { background: #111111; color: #ffffff; }
.sf-pblock-head { margin: 0; font-family: var(--sf-font); font-weight: var(--sf-head-weight, 700); font-size: clamp(20px, 2.2vw, 30px); line-height: 1.15; }
.sf-pblock-text { margin: 0; font-size: 15px; line-height: 1.55; white-space: pre-line; }
.sf-pblock-btn { align-self: flex-start; }
.sf-pblock--text[data-bg="accent"] .sf-pblock-btn { background: var(--sf-on-accent); color: var(--sf-accent); }
.sf-pblock--empty { display: flex; align-items: center; justify-content: center; padding: 12px; border: 2px dashed var(--sf-line); background: transparent; font-size: 14px; font-weight: 700; text-align: center; }
@media (max-width: 760px) {
    .sf-pgrid { flex-direction: column; height: auto; }
    .sf-pgrid-col { flex: none; }
    .sf-pblock { flex: none; }
    .sf-pblock--pic { aspect-ratio: 4 / 3; }
    .sf-pblock--text { min-height: 180px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
    .sf-pgrid { height: calc(var(--pg-h) * .8); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 1px) { .sf-pblock--pic img { transition: none; } }

/* 20:43: grid pictures: fill, whole or stretched, at the shop's point and zoom. */
.sf-pblock--pic img { object-position: var(--x, 50%) var(--y, 50%); transform: scale(var(--z, 1)); transform-origin: var(--x, 50%) var(--y, 50%); }
.sf-pblock--pic[data-fit="contain"] img { object-fit: contain; }
.sf-pblock--pic[data-fit="fill"] img { object-fit: fill; }
a.sf-pblock--pic:hover img { transform: scale(calc(var(--z, 1) * 1.04)); }

/* ── 22 Nov 22:29: two card designs from the owner's shoe, bag and kids
   pictures. Layout and choices that do not fit are moved by card_fits. ── */
/* Box with a shop button: a bordered box, the cart button across the bottom. */
.sf-grid[data-style="shop_button"] .sf-card { padding: 10px 10px 12px; border-radius: calc(var(--sf-radius, 16px) + 4px); background: var(--sf-card); box-shadow: 0 0 0 1px var(--sf-line); }
.sf-grid[data-style="shop_button"] .sf-badges { top: 18px; left: 18px; }
.sf-grid[data-style="shop_button"] .sf-fav { top: 16px; right: 16px; }
.sf-grid[data-style="shop_button"] .sf-card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
.sf-grid[data-style="shop_button"][data-align="center"] .sf-card-foot .sf-price { text-align: center; }
.sf-grid[data-style="shop_button"] .sf-add { width: 100%; }
.sf-grid[data-style="shop_button"] .sf-add > *,
.sf-grid[data-style="shop_button"] .sf-add button,
.sf-grid[data-style="shop_button"] .sf-add a { width: 100%; min-height: 40px; justify-content: center; border-radius: 999px; background: var(--sf-ink); color: var(--sf-page); box-shadow: none; }
/* Picture on a grey tile: products photographed on white sit on a soft grey. */
.sf-grid[data-style="grey_tile"] .sf-pic { background: var(--sf-tile); border-radius: var(--sf-radius, 16px); }
.sf-grid[data-style="grey_tile"] .sf-pic img { mix-blend-mode: multiply; }
.sf[data-mode="dark"] .sf-grid[data-style="grey_tile"] .sf-pic img { mix-blend-mode: normal; }
.sf-grid[data-style="grey_tile"] .sf-card-body { padding-top: 10px; }
.sf-grid[data-style="grey_tile"][data-align="center"] .sf-card-body { text-align: center; }

/* ===== 30 Nov 2026: dish cards with the picture beside the dish ========
   1. Phones: one card a row. The "Round C" rule above (.sf-grid[data-cols],
      2 a row, !important) came later in the file with the same weight as
      the one-column rules for Split card, Menu line, Compact and the
      picture-beside designs, so it won: two narrow cards a row, the price
      running into the time and the button cut off at the edge.
   2. Every size: in a picture-beside card the foot never overflows. Price on
      the left, button on the right, the time (and rating) on its own line
      under them when there is no room on one line.
   Shop pages only (.sf); the home page and /menu-items keep their own. */
@media (max-width: 760px) {
    .sf .sf-grid:is([data-dish-style="split"], [data-dish-style="menu_line"], [data-dish-style="compact"]),
    .sf .sf-grid:is([data-dish-style="tile"], [data-dish-style="spot"], [data-dish-style="pop"]):is([data-dish-image="left"], [data-dish-image="right"]),
    .sf .sf-grid:is([data-layout="left"], [data-layout="right"]) { grid-template-columns: minmax(0, 1fr) !important; }
    .sf .sf-grid[data-dish-style="pop"]:is([data-dish-image="left"], [data-dish-image="right"]) .sf-price { font-size: 17px; }
}

.sf-grid:is([data-dish-image="left"], [data-dish-image="right"], [data-dish-style="split"], [data-dish-style="compact"]) .sf-dish .sf-card-foot { flex-wrap: wrap; row-gap: 4px; }
.sf-grid:is([data-dish-image="left"], [data-dish-image="right"], [data-dish-style="split"], [data-dish-style="compact"]) .sf-dish .sf-card-foot > .sf-price { flex: 1 1 auto; min-width: 0; }
.sf-grid:is([data-dish-image="left"], [data-dish-image="right"], [data-dish-style="split"], [data-dish-style="compact"]) .sf-dish .sf-card-foot > .sf-add { flex: 0 0 auto; margin-left: auto; }
.sf-grid:is([data-dish-image="left"], [data-dish-image="right"], [data-dish-style="split"]) .sf-dish .sf-card-foot > .sf-dish-meta { order: 3; flex: 1 0 100%; justify-content: flex-start; }

/* ===== 30 Nov 2026 (b): phone fixes =====================================
   1. Half picture, half text, picture first on phones: the text half's
      background (page colour) was painted over the picture from the bar
      down, so only a strip behind the bar showed and the rest was blank.
      The background now starts where the text starts (the end of the top
      padding that makes room for the picture); storefront-shop.js sets the
      picture's height to reach that point.
   2. Menu line cards: the dish name was squeezed to nothing between the
      dotted line and the price; it keeps room for a few words. */
@media (max-width: 760px) {
    .sf[data-hero-layout="split"][data-hero-phone="picture"] .sf-hero {
        background: linear-gradient(to bottom, transparent 0, transparent calc(46svh - var(--sf-bar-h, 60px)), var(--sf-split-bg, var(--sf-page)) calc(46svh - var(--sf-bar-h, 60px)));
    }
}
.sf-grid[data-dish-style="menu_line"] .sf-dish-head .sf-name { flex: 0 1 auto; min-width: 6em; }

/* ===== 30 Nov 2026 (c): the shop bar on phones after scrolling ==========
   Once the category pills have moved into the bar (data-bar-pills), phones
   get ONE slim row: the shop's logo and menu on the left, the pills sliding
   sideways in the middle, search on the right. The site mark, Post, cart,
   account and Contact step aside while scrolled and come back at the top
   (cart and Contact stay in the dish window and the shop window). An open
   search still gets its own line under the row. */
@media (max-width: 760px) {
    .sf-top[data-bar-pills] { flex-wrap: nowrap; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
    .sf-top[data-bar-pills][data-search-open] { flex-wrap: wrap; }
    .sf-top[data-bar-pills] .sf-site,
    .sf-top[data-bar-pills] .sf-post-btn,
    .sf-top[data-bar-pills] .sf-top-r > :not(.sf-search-toggle) { display: none !important; }
    .sf-top[data-bar-pills] .sf-top-l { flex: 0 0 auto; }
    .sf-top[data-bar-pills] .sf-top-pills { order: 0; flex: 1 1 0; min-width: 0; max-height: none; }
    .sf-top[data-bar-pills] .sf-pills.sf-pills--bar { justify-content: flex-start; }
    .sf-top[data-bar-pills] .sf-pill { height: 38px; }
    .sf-top[data-bar-pills] .sf-icon-btn { width: 38px; }
    .sf-top[data-bar-pills] .sf-pills--bar .sf-pill-cat { height: 36px; font-size: 12.5px; }
    .sf-top[data-bar-pills] .sf-pills--bar .sf-pill-pic { width: 28px; height: 28px; }
}

/* ===== 1 Dec 2026: one movement for every card (owner) ==================
   Shop pages, dish cards (home Popular dishes, /menu-items) and picture
   grids move like the home page's Trending shops: .35s, ease, the same in
   and out, on every device. Only the timing; how far a picture zooms or a
   card lifts stays each design's own. The second-picture fade (swap hovers)
   keeps its slower fade back. */
.sf-pic img,
.sf-coll-pic img,
.sf-pill-pic img,
.sf-pblock--pic img { transition: opacity .35s ease, transform .35s ease, filter .35s ease; }
.sf-grid .sf-card,
.sf-grid[data-dish-style] .sf-pic,
.sf-grid[data-hover] .sf-pic { transition: transform .35s ease, box-shadow .35s ease, filter .35s ease; }
.sf-grid[data-hover^="swap"] .sf-card:not(.is-alt) .sf-pic img,
.sf-grid[data-dish-hover="swap"] .sf-card:not(.is-alt) .sf-pic img { transition-duration: 800ms; }
