/* IXXO Cart 8 storefront: the home page's sections (Phase 10a Task 9, the Ampere mockup's home).
   Templates: content/templates/storefront/sections/<type>/section.php inside storefront/home.php,
   and above and below the content of other pages and in the footer group (.sf-slot--above/--below/--footer, Theme editor 2).
   Tokens only (tokens.css and /theme.css) and logical properties, so the page also reads right to left. */

/* The page: the hero and the promo tiles share the first row when they follow each other,
   every other section takes the full width. Each section sits in its wrapper
   (.sf-section--<type>, Phase 10c); the promo tiles' wrapper is a grid so the tiles still
   stretch to the hero's height. */
.sf-home{ display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); column-gap: 16px; padding-block-end: 72px; }
.sf-home > *{ grid-column: 1 / -1; min-inline-size: 0; }
.sf-home > .sf-section--hero:has(+ .sf-section--promo_tiles){ grid-column: 1; }
.sf-home > .sf-section--hero + .sf-section--promo_tiles{ grid-column: 2; display: grid; }
/* Section style (spec §2): a full-width hero or tiles leave the shared row, as does a pair whose
   other half is hidden on a computer, so no half row is left empty. */
.sf-home > .sf-section--hero:is(.sf-width-full, .sf-show-phone):has(+ .sf-section--promo_tiles), .sf-home > .sf-section--hero:has(+ .sf-section--promo_tiles:is(.sf-width-full, .sf-show-phone)), .sf-home > .sf-section--hero:is(.sf-width-full, .sf-show-phone) + .sf-section--promo_tiles, .sf-home > .sf-section--hero + .sf-section--promo_tiles:is(.sf-width-full, .sf-show-phone){ grid-column: 1 / -1; }

/* A section's heading line: the title, and "See all" at the end. */
/* The section gap (72px, 48px on a phone) times Styles > Spacing (0.6, 1 or 1.5; 1 when theme.css
   sets none) times the section's own Space above (--sf-space-top, see the Section style rules). */
.sf-sec{ margin-block-start: calc(var(--sf-sec-gap, 72px) * var(--sf-gap, 1) * var(--sf-space-top, 1)); }
.sf-sec-head{ display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block-end: 24px; }
.sf-sec-title{ margin: 0; font-family: var(--font-heading); font-size: calc(clamp(26px, 2.4vw, 34px) * var(--sf-heading-scale, 1)); line-height: 1.05; letter-spacing: -0.03em; font-weight: 740; text-wrap: balance; }
.sf-sec-more{ display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.sf-sec-more:hover{ gap: 10px; text-decoration: underline; }
/* The Recently viewed row's Clear (R1) is a button that looks like the See all link. */
button.sf-sec-more{ border: 0; padding: 0; background: none; font-family: inherit; cursor: pointer; }
/* The theme editor's note in an empty Recently viewed row (R1). */
.sf-sec-note{ margin: 0; padding: 18px 20px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); font-size: 14px; }
.sf-ico-s{ inline-size: 16px; block-size: 16px; }
[dir="rtl"] .sf-sec-more .sf-ico, [dir="rtl"] .sf-promo-go .sf-ico{ transform: scaleX(-1); }

/* The hero: slides side by side in a strip the shopper scrolls (no script needed). */
.sf-hero{ margin-block-start: calc(24px * var(--sf-space-top, 1)); min-inline-size: 0; }
.sf-hero-slides{ display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: calc(var(--r) * 2); background: var(--tile); }
.sf-hero-slide{ position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-block-size: 500px; scroll-snap-align: start; }
.sf-hero-copy{ display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 56px 88px; padding-inline-start: 56px; }
.sf-hero-title{ margin: 0; font-family: var(--font-heading); font-size: clamp(40px, 4.6vw, 68px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 760; text-wrap: balance; }
.sf-hero-text{ margin: 0; max-inline-size: 40ch; font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.sf-hero-cta{ margin: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.sf-hero-media{ display: flex; align-items: center; justify-content: center; padding: 24px; block-size: 100%; }
.sf-hero-media img{ inline-size: 100%; max-inline-size: 460px; block-size: auto; }

/* Hero style `stage`: a dark ground of its own whatever the theme's colours, the photo fading
   into it. The slides scroll like the classic strip, so they need no JavaScript; the scrollbar is
   hidden (a swipe or trackpad still scrolls it) and with two or more slides the slider script
   shows Previous and Next arrows over the bottom end corner. The ink and accent change inside it,
   so filled and outlined buttons both read on the dark; the arrows take the dark ground too. */
.sf-stage{ --ink: var(--stage-text); --accent: var(--stage-text); --on-accent: var(--stage-ground); --accent-ink: var(--stage-text); position: relative; margin-block-start: calc(24px * var(--sf-space-top, 1)); min-inline-size: 0; border-radius: calc(var(--r) * 2); overflow: hidden; background: var(--stage-ground); color: var(--stage-text); }
.sf-stage-slides{ display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sf-stage-slides::-webkit-scrollbar{ display: none; }
.sf-stage-nav{ --paper: var(--stage-ground); --line: var(--stage-soft); position: absolute; inset-block-end: 24px; inset-inline-end: 24px; }
.sf-stage-slide{ position: relative; display: flex; align-items: center; min-block-size: 560px; overflow: hidden; scroll-snap-align: start; }
.sf-stage-photo{ position: absolute; inset-block: 0; inset-inline-end: 0; inline-size: 66%; overflow: hidden; -webkit-mask-image: linear-gradient(var(--ic-fade-to-end), transparent, var(--mask-solid) 45%); mask-image: linear-gradient(var(--ic-fade-to-end), transparent, var(--mask-solid) 45%); }
.sf-stage-photo img{ display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.sf-stage-copy{ position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-inline-size: 560px; padding: 64px 56px; }
.sf-stage-title{ margin: 0; font-family: var(--font-heading); font-size: clamp(40px, 5vw, 76px); line-height: 1.02; color: inherit; text-wrap: balance; }
.sf-stage-text{ margin: 0; max-inline-size: 40ch; font-size: 17px; line-height: 1.55; color: var(--stage-soft); text-wrap: pretty; }
.sf-stage-cta{ margin: 0; }
@media (prefers-reduced-motion: no-preference){
	.sf-stage-photo img{ animation: sf-stage-push 7s cubic-bezier(0.16, 1, 0.3, 1) both; }
	.sf-stage-photo::after{ content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, var(--stage-sweep) 50%, transparent 60%); transform: translateX(calc(-100% * var(--ic-dir))); animation: sf-stage-sweep 2.4s ease-out 0.6s both; pointer-events: none; }
}
@keyframes sf-stage-push{ from{ transform: scale(1); } to{ transform: scale(1.06); } }
@keyframes sf-stage-sweep{ from{ transform: translateX(calc(-100% * var(--ic-dir))); } to{ transform: translateX(calc(100% * var(--ic-dir))); } }

/* Hero style `lookup`: the first slide's words on a dark ground of its own (its photo behind
   them, shaded toward the words' side), then a part number search on a light plate. A theme
   may dress the plate (Spool draws a brushed nameplate); the layout is here for every theme. */
.sf-lookup{ position: relative; display: flex; align-items: center; min-block-size: 580px; margin-block-start: calc(24px * var(--sf-space-top, 1)); min-inline-size: 0; overflow: hidden; border-radius: calc(var(--r) * 2); background: var(--lookup-ground); color: var(--lookup-text); }
.sf-lookup-photo{ position: absolute; inset: 0; }
.sf-lookup-photo img{ display: block; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 60% 50%; }
.sf-lookup-photo::after{ content: ''; position: absolute; inset: 0; background: linear-gradient(var(--ic-fade-to-end), var(--lookup-shade) 0%, var(--lookup-shade-mid) 38%, var(--lookup-shade-end) 72%); }
.sf-lookup-copy{ position: relative; display: flex; flex-direction: column; gap: 22px; inline-size: 100%; max-inline-size: 656px; padding: 56px; }
.sf-lookup-title{ margin: 0; font-family: var(--font-heading); font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; color: inherit; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.sf-lookup-text{ margin: 0; max-inline-size: 52ch; font-size: 18px; line-height: 1.5; color: var(--lookup-soft); text-wrap: pretty; }
.sf-lookup-form{ display: flex; flex-direction: column; gap: 10px; max-inline-size: 520px; margin-block-start: 8px; padding: 22px 24px 20px; border: 1px solid var(--lookup-plate-line); border-radius: var(--r); background: var(--lookup-plate); color: var(--lookup-plate-text); }
.sf-lookup-label{ font-size: 14px; font-weight: 600; }
.sf-lookup-row{ display: flex; flex-wrap: wrap; gap: 8px; }
.sf-lookup-input{ flex: 1 1 220px; min-inline-size: 0; block-size: 52px; padding-inline: 16px; border: 1px solid var(--lookup-plate-line); border-radius: var(--r); background: var(--lookup-plate); color: var(--lookup-plate-text); font-family: var(--font-mono); font-size: 20px; letter-spacing: 0.04em; }
.sf-lookup-go{ flex: 0 0 auto; min-block-size: 52px; }
.sf-lookup-help{ display: inline-flex; align-items: center; align-self: flex-start; min-block-size: 44px; font-size: 14px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* Photo with label (Agros theme, spec §6): the first slide's words beside its photo with rounded corners;
   over the photo a paper card of the picked product (bottom start, the whole card one link) and the round
   stamp (top end). Neutral here, tokens only; a theme restyles the surfaces in its own stylesheet. */
.sf-hero--label{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 56px; padding-block: 32px 48px; }
.sf-hero-label-copy{ display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-inline-size: 0; }
/* At most 600px tall on wider screens, so the product card still shows on the first screen (a phone lifts
   the cap below, where the photo and the card stack). */
.sf-hero-label-photo{ position: relative; inline-size: 100%; min-block-size: 360px; max-block-size: 600px; aspect-ratio: 5 / 6; overflow: hidden; border-radius: calc(var(--r) * 3); background: var(--tile); }
.sf-hero-label-photo img{ position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
/* The stamp is a circle as wide as its longest word (104px at least, 160px at most), so a long word such as
   the Greek "ΠΙΣΤΟΠΟΙΗΜΕΝΟ" stays whole; only a word longer than that breaks. */
.sf-hero-stamp{ position: absolute; inset-block-start: 22px; inset-inline-end: 22px; display: grid; place-items: center; inline-size: min-content; min-inline-size: 104px; max-inline-size: 160px; aspect-ratio: 1; margin: 0; padding: 14px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--font-mono); font-size: 11px; font-weight: 600; line-height: 1.25; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; overflow-wrap: break-word; transform: rotate(calc(-8deg * var(--ic-dir, 1))); }
.sf-hero-label-card{ position: absolute; inset-inline-start: 24px; inset-block-end: 24px; display: flex; flex-direction: column; gap: 6px; inline-size: min(280px, calc(100% - 48px)); padding: 18px 20px; border-radius: calc(var(--r) * 1.5); background: var(--paper); color: var(--ink); box-shadow: 0 18px 40px -18px var(--shadow-lift); text-decoration: none; }
.sf-hero-label-card:hover .sf-hero-label-name{ text-decoration: underline; }
.sf-hero-label-sub{ font-size: 12px; color: var(--ink-2); }
.sf-hero-label-name{ font-family: var(--font-heading); font-size: 20px; line-height: 1.15; overflow-wrap: break-word; }
.sf-hero-label-specs{ display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 4px 0 0; font-size: 14px; }
.sf-hero-label-row{ display: contents; }
.sf-hero-label-specs dt{ color: var(--ink-2); }
.sf-hero-label-specs dd{ margin: 0; font-weight: 600; overflow-wrap: anywhere; }
/* Full width: the words keep some room from the screen's edges. */
.sf-width-full .sf-hero--label{ padding-inline: 16px; }

/* The promo tiles: stacked beside the hero (one under the other below it on a phone). */
.sf-promos{ display: grid; grid-auto-rows: 1fr; gap: 16px; margin-block-start: calc(24px * var(--sf-space-top, 1)); }
.sf-promo{ --sf-promo-pad: 32px; --sf-promo-media: 42%; position: relative; display: flex; flex-direction: column; gap: 10px; min-block-size: 242px; padding: var(--sf-promo-pad); overflow: hidden; border-radius: calc(var(--r) * 2); text-decoration: none; }
.sf-promo-accent, .sf-promo-accent:hover{ background: var(--accent); color: var(--on-accent); }
.sf-promo-dark, .sf-promo-dark:hover{ background: var(--ink); color: var(--on-ink); }
.sf-promo-title{ position: relative; margin: 0; max-inline-size: 11ch; font-family: var(--font-heading); font-size: 28px; line-height: 1.04; letter-spacing: -0.025em; font-weight: 740; }
.sf-promo-text{ position: relative; margin: 0; max-inline-size: 23ch; font-size: 15px; }
.sf-promo-go{ position: relative; display: inline-flex; align-items: center; gap: 6px; margin-block-start: auto; font-weight: 600; font-size: 15px; }
/* The picture never lies over the words. Stacked (a phone, or a narrow tile beside the hero) it
   runs edge to edge above them; on a wider tile it fills the end of the tile and the words keep
   to the rest. Its share of the tile is --sf-promo-media. */
.sf-promo-img{ order: -1; inline-size: calc(100% + 2 * var(--sf-promo-pad)); max-inline-size: none; block-size: auto; aspect-ratio: 16 / 10; margin-block: calc(-1 * var(--sf-promo-pad)) 6px; margin-inline: calc(-1 * var(--sf-promo-pad)); object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.sf-promo:hover .sf-promo-img{ transform: scale(1.03); }
@media (min-width: 721px){
	.sf-section--promo_tiles:not(.sf-section--hero + :has(.sf-promo:nth-child(3))) .sf-promo:has(> .sf-promo-img){ padding-inline-end: calc(var(--sf-promo-media) + 24px); }
	.sf-section--promo_tiles:not(.sf-section--hero + :has(.sf-promo:nth-child(3))) .sf-promo-img{ position: absolute; inset-block: 0; inset-inline-end: 0; inline-size: var(--sf-promo-media); block-size: 100%; aspect-ratio: auto; margin: 0; }
}
.sf-promo:focus-visible{ outline: 2px solid var(--ink); outline-offset: 3px; }
/* Three or four tiles (Theme editor 2 lists, up to 4): two per row, beside the hero too, so the
   column never grows far past it; a third tile alone takes the whole row. One or two stay as before. */
.sf-promos:has(> :nth-child(3)){ grid-template-columns: 1fr 1fr; }
.sf-promos:has(> :nth-child(3)) > :nth-child(3):last-child{ grid-column: 1 / -1; }
.sf-promos:has(> :nth-child(3)) .sf-promo{ --sf-promo-pad: 24px; min-block-size: 180px; }
.sf-promos:has(> :nth-child(3)) .sf-promo-title{ font-size: 22px; }

/* The trust strip: four reasons in one bordered row. */
.sf-trust{ margin-block-start: calc(16px * var(--sf-space-top, 1)); }
/* Right under the hero or the promo tiles the strip belongs to them; after anything else it is a
   section of its own, at the section gap (a statement brings its own air). */
.sf-home > .sf-section--trust_strip:not(:is(.sf-section--hero, .sf-section--slideshow, .sf-section--promo_tiles, .sf-section--rich_text) + *) .sf-trust{ margin-block-start: calc(var(--sf-sec-gap, 72px) * var(--sf-gap, 1) * var(--sf-space-top, 1)); }
/* A strip with a colour scheme is a band: that gap goes on its wrapper (beside the band's own rule in
   components.css), and the strip inside takes none, so the band does not start with an empty stripe. */
.sf-home > .sf-section--trust_strip:not(:is(.sf-section--hero, .sf-section--slideshow, .sf-section--promo_tiles, .sf-section--rich_text) + *):is(.sf-scheme-soft, .sf-scheme-accent, .sf-scheme-dark){ margin-block-start: calc(var(--sf-sec-gap, 72px) * var(--sf-gap, 1) * var(--sf-space-top, 1)); }
.sf-home > .sf-section.sf-section--trust_strip:is(.sf-scheme-soft, .sf-scheme-accent, .sf-scheme-dark) > .sf-trust{ margin-block-start: 0; }
.sf-trust-list{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: calc(var(--r) * 2); }
.sf-trust-item{ display: flex; align-items: center; gap: 14px; padding-block: 20px; padding-inline: 24px; }
.sf-trust-item + .sf-trust-item{ border-inline-start: 1px solid var(--line); }
.sf-trust-ico{ display: grid; place-items: center; flex: none; inline-size: 44px; block-size: 44px; border-radius: 50%; background: var(--tile); color: var(--ink); }
.sf-trust-copy{ margin: 0; }
.sf-trust-copy b{ display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.sf-trust-copy span{ font-size: 13.5px; color: var(--muted); }
/* Up to 8 items (Theme editor 2 lists): four per row, each row after the first under a line;
   fewer than four share the row. */
.sf-trust-item:nth-child(4n + 1){ border-inline-start: 0; }
.sf-trust-item:nth-child(n + 5){ border-block-start: 1px solid var(--line); }
@media (min-width: 1001px){
	.sf-trust-list:has(> :last-child:nth-child(1)){ grid-template-columns: minmax(0, 1fr); }
	.sf-trust-list:has(> :last-child:nth-child(2)){ grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sf-trust-list:has(> :last-child:nth-child(3)){ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The product row as one row (Phase 10c, ruling P11): the cards stay in a strip the shopper
   scrolls sideways, card by card, with or without JavaScript. storefront.js shows the
   Previous and Next bar only while some cards are out of view. */
.sf-carousel{ display: flex; flex-direction: column; gap: 12px; }
.sf-carousel-nav{ display: flex; justify-content: flex-end; gap: 8px; }
.sf-carousel-nav[hidden]{ display: none; }
.sf-carousel-btn{ display: grid; place-items: center; inline-size: 44px; block-size: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.sf-carousel-btn:hover{ border-color: var(--ink); }
.sf-carousel-btn:focus-visible{ outline: 2px solid var(--ink); outline-offset: 2px; }
.sf-carousel-btn[aria-disabled="true"]{ color: var(--muted); border-color: var(--line); cursor: default; }
[dir="rtl"] .sf-carousel-btn .sf-ico{ transform: scaleX(-1); }
.sf-carousel > .sf-grid{ grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scroll-behavior: smooth; padding-block-end: 12px; }
.sf-carousel > .sf-grid > .sf-grid-item{ scroll-snap-align: start; }
/* The slider's cards take the width of the grid's at the same cards per row (components.css), so a
   slider and a grid line up: only on a computer, at the same widths. */
@media (min-width: 1201px){
	.sf-per-row-3 .sf-carousel > .sf-grid{ grid-auto-columns: calc((100% - 2 * 16px) / 3); }
	.sf-per-row-4 .sf-carousel > .sf-grid{ grid-auto-columns: calc((100% - 3 * 16px) / 4); }
	.sf-per-row-5 .sf-carousel > .sf-grid{ grid-auto-columns: calc((100% - 4 * 16px) / 5); }
}
@media (min-width: 1001px) and (max-width: 1200px){
	.sf-per-row-3 .sf-carousel > .sf-grid{ grid-auto-columns: calc((100% - 2 * 16px) / 3); }
	.sf-per-row-4 .sf-carousel > .sf-grid, .sf-per-row-5 .sf-carousel > .sf-grid{ grid-auto-columns: calc((100% - 3 * 16px) / 4); }
}

/* The free slots below a product, below a category, below the cart and above the footer keep
   their distance from what follows them (Phase 10c). */
.sf-slot--below, .sf-slot--footer{ padding-block-end: 72px; }
/* The sections above and below a page's content stand in a column, as on the home page's grid:
   margins there never collapse, so a section's Space below adds its whole amount to the next
   section's gap instead of melting into it. Each section's own top gap stays inside the slot. */
.sf-slot--above, .sf-slot--below{ display: flex; flex-direction: column; }
/* The column also keeps the first section's top gap inside, where it used to swallow the bottom
   margin of what stands just before it; each page family drops that margin where a slot follows
   (pages.css, listing.css), so the gap above the first section stays the one it always was. */

/* The category tiles. */
/* As many as fit, the row always filled; up to four tiles keep a tile's size, centred, so a short
   list never grows huge. Sizes below skip the slider and its `:where()` adds no weight, so the
   index's own column rules still win. */
.sf-cats{ display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, var(--sf-cat-max, 1fr))); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sf-cats:where(:not(.sf-cats--slider, .sf-cats--index):not(:has(> :nth-child(5)))){ --sf-cat-max: 240px; justify-content: center; }
.sf-cat{ display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.sf-cat-img{ display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--r) * 1.5); background: var(--tile); }
.sf-cat-img img{ inline-size: 80%; block-size: auto; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.sf-cat:hover .sf-cat-img img{ transform: scale(1.07); }
.sf-cat-meta b{ display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.sf-cat-meta span{ font-size: 13px; color: var(--muted); }

/* The seller row. */
.sf-seller-cards{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.sf-seller-card{ display: flex; flex-direction: column; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: calc(var(--r) * 2); transition: border-color 0.2s; }
.sf-seller-card:hover{ border-color: var(--ink); }
.sf-seller-card-top{ display: flex; align-items: center; gap: 14px; }
.sf-seller-card-mark{ display: grid; place-items: center; flex: none; inline-size: 52px; block-size: 52px; border-radius: var(--r); background: var(--ink); color: var(--on-ink); font-weight: 800; font-size: 17px; }
.sf-seller-card-mark-logo{ overflow: hidden; background: var(--tile); }
.sf-seller-card-mark-logo img{ inline-size: 100%; block-size: 100%; object-fit: cover; }
.sf-seller-card-name{ margin: 0; font-size: 17px; font-weight: 650; line-height: 1.25; }
.sf-seller-card-meta{ font-size: 13px; color: var(--muted); }
.sf-seller-card-summary{ margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.sf-seller-card-visit{ display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; margin-block-start: auto; font-weight: 600; font-size: 14.5px; color: var(--ink); text-decoration: none; }
.sf-seller-card-visit:hover{ text-decoration: underline; }

/* Progress tabs (Moda theme phase), the hero's and the slideshow's `progress` style: one slide at a
   time, the picture or video beside the texts, the bars under the texts. The slides sit in one grid
   cell; only the slide on show (`is-on`, the first one as printed) is visible, so without the script
   the first slide shows. storefront-sections.js shows the bars and fills them (an animation of the
   browser); `is-still` when nothing moves by itself: the current bar then shows full. */
.sf-progress{ position: relative; margin-block-start: calc(24px * var(--sf-gap, 1) * var(--sf-space-top, 1)); min-inline-size: 0; overflow: hidden; border-radius: calc(var(--r) * 2); background: var(--tile); }
.sf-progress-slides{ display: grid; }
.sf-progress-slide{ grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-block-size: 560px; opacity: 0; visibility: hidden; transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s; }
.sf-progress-slide.is-on{ opacity: 1; visibility: visible; }
.sf-progress-media{ position: relative; min-block-size: 100%; overflow: hidden; }
.sf-progress-media img, .sf-progress-media video{ position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.sf-progress-copy{ display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding-block: 56px 132px; padding-inline: 48px; }
.sf-progress-title{ margin: 0; font-family: var(--font-heading); font-size: clamp(36px, 4.4vw, 68px); line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; }
.sf-progress-text{ margin: 0; max-inline-size: 36ch; font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.sf-progress-cta{ margin: 0; }
.sf-progress--small .sf-progress-slide{ min-block-size: 320px; }
.sf-progress--medium .sf-progress-slide{ min-block-size: 480px; }
.sf-progress--large .sf-progress-slide{ min-block-size: 640px; }
.sf-progress--full .sf-progress-slide{ min-block-size: 100svh; }
.sf-progress--full{ border-radius: 0; }

/* The bars sit under the texts' column, at the bottom of the section. */
.sf-progress-controls{ position: absolute; inset-block-end: 36px; inset-inline-start: calc(100% * 7 / 12 + 48px); inset-inline-end: 48px; display: flex; align-items: center; gap: 14px; }
.sf-progress-controls[hidden]{ display: none; }
.sf-progress-bars{ flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; min-inline-size: 0; }
.sf-progress-bar{ display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; min-block-size: 44px; min-inline-size: 0; padding: 0; border: 0; background: none; color: var(--muted); text-align: start; cursor: pointer; }
.sf-progress-bar[aria-selected="true"]{ color: var(--ink); }
.sf-progress-bar:focus-visible, .sf-progress-pause:focus-visible{ outline: 2px solid var(--ink); outline-offset: 3px; }
.sf-progress-track{ display: block; block-size: 2px; overflow: hidden; background: var(--line); }
/* Fills from the start side: 0% left to right, 100% right to left. */
.sf-progress-fill{ display: block; block-size: 100%; background: var(--ink); transform: scaleX(0); transform-origin: calc(50% - 50% * var(--ic-dir)) 50%; }
.sf-progress-bar.is-done .sf-progress-fill, .sf-progress.is-still .sf-progress-bar[aria-selected="true"] .sf-progress-fill{ transform: scaleX(1); }
/* A label wraps and is never cut: its words are the only name the bar shows. */
.sf-progress-label{ font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; overflow-wrap: normal; hyphens: auto; }
/* Between 1001 and 1200 px the two columns leave the bars about 70 px each, so a label would break one
   word per line: the bars alone show, and the label stays the bar's name for screen readers (as .sf-sr). */
@media (min-width: 1001px) and (max-width: 1200px){
	.sf-progress-label{ position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.sf-progress-pause{ display: grid; place-items: center; flex: none; inline-size: 44px; block-size: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.sf-progress-pause[hidden]{ display: none; }
.sf-progress-pause-icon{ box-sizing: border-box; inline-size: 10px; block-size: 12px; border-inline: 3px solid currentColor; }
.sf-progress-pause[aria-pressed="true"] .sf-progress-pause-icon{ inline-size: 11px; block-size: 13px; margin-inline-start: 3px; border: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* The category tiles as a slider (Moda theme phase): one row that scrolls sideways with scroll snap,
   six tiles in view (four on a tablet, two and a bit on a phone). The arrows (storefront-sections.js)
   sit at the end of the heading line. */
.sf-cats--slider{ grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 12px) / 6); overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.sf-cats--slider::-webkit-scrollbar{ display: none; }
/* The band (Salve theme): the strip on the accent colour, larger titles, no icons, and the stamp text turning slowly. */
.sf-trust--band{ display: flex; align-items: center; gap: 40px; padding: 48px; border-radius: calc(var(--r) * 1.5); background: var(--accent); color: var(--on-accent); }
.sf-trust--band .sf-trust-list{ flex: 1; gap: 24px; border: 0; border-radius: 0; }
.sf-trust--band .sf-trust-item{ padding: 16px 0 0; border: 0; border-block-start: 1px solid currentColor; }
.sf-trust--band .sf-trust-ico{ display: none; }
.sf-trust--band .sf-trust-copy b{ font-family: var(--font-heading); font-size: 20px; font-weight: 400; }
.sf-trust--band .sf-trust-copy span{ color: inherit; opacity: 0.85; }
.sf-trust-stamp{ flex: none; inline-size: 116px; block-size: 116px; overflow: visible; animation: sf-stamp-turn 40s linear infinite; }
.sf-trust-stamp text{ fill: currentColor; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
@keyframes sf-stamp-turn{ to{ transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .sf-trust-stamp{ animation: none; } }
/* Numbered steps (Kinesis and Agon, any theme's "How it works"): the same grid, each item's number in a large figure where the icon sits. Themes restyle it in their own stylesheet. */
.sf-trust--steps .sf-trust-num{ inline-size: auto; min-inline-size: 44px; block-size: auto; border-radius: 0; background: none; color: var(--ink); font-family: var(--font-heading); font-size: 40px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
/* The index (Salve theme): two columns of rows, each a small round picture, the name and the count. */
.sf-cats--index{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.sf-cats--index .sf-cat{ display: flex; flex-direction: row; align-items: center; gap: 14px; min-block-size: 76px; padding-block: 12px; border-block-end: 1px solid var(--line); }
.sf-cats--index .sf-cat-img{ flex: none; inline-size: 52px; block-size: 52px; aspect-ratio: auto; border-radius: 50%; }
.sf-cats--index .sf-cat-img img{ inline-size: 100%; block-size: 100%; object-fit: cover; }
.sf-cats--index .sf-cat-meta{ display: flex; flex: 1; align-items: baseline; justify-content: space-between; gap: 12px; }
.sf-cats--slider > li{ scroll-snap-align: start; }
[data-section="category_tiles"] .sf-sec-head .sf-carousel-nav{ margin-inline-start: auto; }

/* The brand strip as a slow endless strip (Moda theme phase). The list is printed twice and the
   track moves by one copy, so it loops without a jump; each copy is at least as wide as the strip
   (container units), so a short list leaves no gap. Stops on hover and focus; still for reduced motion. */
.sf-marquee{ container-type: inline-size; overflow: hidden; border-block: 1px solid var(--line); }
.sf-marquee-track{ display: flex; inline-size: max-content; animation: sf-marquee 50s linear infinite; }
.sf-marquee:hover .sf-marquee-track, .sf-marquee:focus-within .sf-marquee-track{ animation-play-state: paused; }
.sf-marquee-list{ display: flex; align-items: center; justify-content: space-around; gap: 72px; min-inline-size: 100cqi; margin: 0; padding-block: 30px; padding-inline: 36px; list-style: none; }
.sf-marquee-brand{ display: grid; place-items: center; min-block-size: 44px; color: var(--ink); text-decoration: none; white-space: nowrap; transition: opacity 0.25s; }
.sf-marquee-list:hover .sf-marquee-brand{ opacity: 0.45; }
.sf-marquee-list .sf-marquee-brand:hover, .sf-marquee-brand:focus-visible{ opacity: 1; }
.sf-marquee-brand:focus-visible{ outline: 2px solid var(--ink); outline-offset: 3px; }
.sf-marquee-brand img{ inline-size: auto; max-inline-size: 160px; block-size: auto; max-block-size: 48px; object-fit: contain; }
.sf-marquee-brand .sf-brand-name{ font-size: 22px; }
@keyframes sf-marquee{ to{ transform: translateX(calc(-50% * var(--ic-dir))); } }

/* Rich text as a statement (Moda theme phase): one large sentence, a short line under it, set to the side. */
.sf-statement{ display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-block: 64px 48px; }
.sf-statement-title{ grid-column: 1 / 11; margin: 0; font-family: var(--font-heading); font-size: clamp(32px, 3.9vw, 60px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.sf-statement-line{ grid-column: 7 / 12; margin-block-start: 20px; font-size: 17px; }

/* The seller row's "sell with us" line (Moda theme phase). */
.sf-sell-line{ display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-block-start: 32px; padding-block: 24px; padding-inline: 28px; border: 1px solid var(--line); border-radius: var(--r); }
.sf-sell-line p{ margin: 0; color: var(--ink-2); }

/* The brand strip: logos (or names) in equal cells that always fill the row. */
.sf-brands{ display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sf-brand{ display: grid; place-items: center; min-block-size: 88px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.sf-brand:hover{ border-color: var(--ink); }
.sf-brand img{ max-inline-size: 100%; block-size: auto; max-block-size: 48px; object-fit: contain; }
.sf-brand-name{ font-weight: 700; font-size: 16px; }

/* Picture and text, and plain text. */
.sf-iwt{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.sf-iwt-end .sf-iwt-media{ order: 2; }
.sf-iwt-media img{ display: block; inline-size: 100%; block-size: auto; border-radius: calc(var(--r) * 2); background: var(--tile); }
/* Question and answer beside the text (Salve theme): two bubbles, an example the shop wrote. */
.sf-iwt-chat{ display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 48px; border-radius: calc(var(--r) * 2); background: var(--tile); }
.sf-iwt-chat p{ margin: 0; line-height: 1.5; }
.sf-iwt-question, .sf-iwt-answer{ max-inline-size: 85%; padding: 16px 18px; border-radius: var(--r); }
.sf-iwt-question{ align-self: flex-end; background: var(--ink); color: var(--on-ink); border-end-end-radius: 4px; }
.sf-iwt-answer{ align-self: flex-start; background: var(--paper); border-end-start-radius: 4px; }
.sf-iwt-signed{ margin-block-start: 8px; font-size: 13px; color: var(--muted); }
.sf-iwt-copy{ display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sf-iwt-copy p{ margin: 0; }
.sf-rich-text{ max-inline-size: 72ch; }
.sf-rich-text p + p{ margin-block-start: 0.8em; }
/* The contact form section (contact form Task 6): the checkout's form parts, one readable column; the message box taller. */
.sf-contact{ max-inline-size: 640px; }
.sf-contact-intro{ margin-block: 0 16px; color: var(--ink-2); max-inline-size: 60ch; }
.sf-contact .sf-co-field{ max-inline-size: 100%; }
.sf-contact-message{ min-block-size: 160px; padding-block: 10px; resize: vertical; }
.sf-contact-privacy{ margin: 0; font-size: 14px; color: var(--muted); }
.sf-prose{ font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.sf-prose > :first-child{ margin-block-start: 0; }
.sf-prose > :last-child{ margin-block-end: 0; }
.sf-prose a{ color: var(--ink); }

/* Section style (spec §2), on the section's wrapper (ShopSectionStyle::classes()); only a value
   other than today's look prints a class. Space above re-points --sf-space-top, which every
   section's own top gap multiplies (.sf-sec, the hero, the tiles, the strip, the slideshows);
   space below is new, a margin of the same gap. A column resets the multiplier (columns.css). */
.sf-space-top-none{ --sf-space-top: 0; }
.sf-space-top-small{ --sf-space-top: 0.5; }
.sf-space-top-large{ --sf-space-top: 1.5; }
.sf-space-bottom-small{ margin-block-end: calc(var(--sf-sec-gap, 72px) * var(--sf-gap, 1) * 0.5); }
.sf-space-bottom-normal{ margin-block-end: calc(var(--sf-sec-gap, 72px) * var(--sf-gap, 1)); }
.sf-space-bottom-large{ margin-block-end: calc(var(--sf-sec-gap, 72px) * var(--sf-gap, 1) * 1.5); }
/* Full width: from the page's width out to both edges of the window, the words kept off the
   edge by the page's own side padding. 100vw counts a scrollbar, so .sf-main clips the few
   pixels past the window (base.css) and the page never scrolls sideways. */
.sf-width-full{ margin-inline: calc(50% - 50vw); padding-inline: 32px; }
/* A full-width hero or slideshow touches the screen's edges: its words already sit inside the
   picture with padding of their own. Square corners at the edge; the `.sf .sf-section` start
   outweighs a theme's own edge-to-edge hero (Moda's first hero pulls itself out by its gutter). */
.sf-width-full:is(.sf-section--hero, .sf-section--slideshow){ padding-inline: 0; }
.sf .sf-section.sf-width-full:is(.sf-section--hero, .sf-section--slideshow) :is(.sf-hero-slides, .sf-stage, .sf-progress, .sf-slideshow){ margin-inline: 0; border-radius: 0; }
/* Show on: phone means under 768px, the editor's phone width. The section stays in the page,
   hidden here, so the editor's Desktop and Mobile buttons each show the right view. It must
   win over a wrapper's own display (the tiles' grid), as [hidden] does in base.css. */
@media (max-width: 767px){ .sf-show-computer{ display: none !important; } }
@media (min-width: 768px){ .sf-show-phone{ display: none !important; } }

@media (max-width: 1000px){
	.sf-home{ grid-template-columns: minmax(0, 1fr); }
	.sf-home > .sf-section--hero:has(+ .sf-section--promo_tiles), .sf-home > .sf-section--hero + .sf-section--promo_tiles{ grid-column: 1; }
	.sf-promos{ grid-template-columns: 1fr 1fr; grid-auto-rows: auto; margin-block-start: calc(16px * var(--sf-space-top, 1)); }
	.sf-hero-slide{ grid-template-columns: minmax(0, 1fr); min-block-size: 0; }
	.sf-stage-slide{ flex-direction: column; align-items: stretch; min-block-size: 0; }
	.sf-stage-photo{ position: relative; inset: auto; inline-size: 100%; aspect-ratio: 4 / 3; -webkit-mask-image: linear-gradient(to bottom, var(--mask-solid) 60%, transparent); mask-image: linear-gradient(to bottom, var(--mask-solid) 60%, transparent); }
	.sf-stage-copy{ padding: 24px 24px 40px; }
	/* The photo sits above the words here: room under the words so the arrows never cover them. */
	.sf-stage[data-sf="slider"] .sf-stage-copy{ padding-block-end: 92px; }
	.sf-lookup{ min-block-size: 0; }
	.sf-lookup-photo::after{ background: var(--lookup-shade-mid); }
	.sf-lookup-copy{ padding: 32px 24px; }
	.sf-hero--label{ grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.sf-hero-label-photo{ aspect-ratio: 4 / 3; }
	.sf-trust-list{ grid-template-columns: 1fr 1fr; }
	.sf-trust-item:nth-child(2n + 1){ border-inline-start: 0; }
	.sf-trust-item:nth-child(2n){ border-inline-start: 1px solid var(--line); }
	.sf-trust-item:nth-child(n + 3){ border-block-start: 1px solid var(--line); }
	.sf-cats:where(:not(.sf-cats--slider)){ grid-template-columns: repeat(auto-fit, minmax(160px, var(--sf-cat-max, 1fr))); }
	.sf-carousel > .sf-grid{ grid-auto-columns: calc((100% - 2 * 16px) / 3); }
	.sf-seller-cards{ grid-template-columns: 1fr 1fr; }
	.sf-iwt{ grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.sf-cats.sf-cats--index{ grid-template-columns: minmax(0, 1fr); }
	.sf-trust--band{ flex-direction: column; align-items: flex-start; padding: 32px 24px; }
	.sf-trust--band .sf-trust-list{ grid-template-columns: minmax(0, 1fr); inline-size: 100%; }
	.sf-iwt-end .sf-iwt-media{ order: 0; }
	.sf-progress-slide{ grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
	.sf-progress-media{ aspect-ratio: 4 / 3; }
	.sf-progress-copy{ padding-block: 32px 112px; padding-inline: 32px; }
	.sf-progress-controls{ inset-inline: 32px; inset-block-end: 28px; }
	.sf-cats--slider{ grid-auto-columns: calc((100% - 3 * 12px) / 4); }
	.sf-statement{ display: block; padding-block: 48px 32px; }
	.sf-statement-line{ max-inline-size: 56ch; margin-block-start: 20px; }
}

/* The class timetable (Kinesis and Agon themes): day headings over rows of time, class, seats and
   Book. On a phone the class takes the row's width and the seats and button go under it. */
.sf-tt-empty{ margin: 0; padding-block: 20px; color: var(--muted); }
.sf-tt-day + .sf-tt-day{ margin-block-start: 28px; }
.sf-tt-day-title{ margin: 0 0 8px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); }
.sf-tt-list{ margin: 0; padding: 0; list-style: none; border-block-start: 1px solid var(--line); }
.sf-tt-row{ display: grid; grid-template-columns: 5.5em minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding-block: 14px; border-block-end: 1px solid var(--line); }
.sf-tt-time{ font-weight: 700; font-variant-numeric: tabular-nums; }
.sf-tt-name{ margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.sf-tt-meta{ display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.sf-tt-seats{ font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.sf-tt-row--full .sf-tt-seats{ grid-column: span 2; font-weight: 700; color: var(--ink); }
.sf-tt-book{ min-block-size: 44px; }
@media (max-width: 560px){
	.sf-tt-row{ grid-template-columns: 4.5em minmax(0, 1fr); row-gap: 10px; }
	/* start, so a theme that paints the seats as a pill keeps it short instead of a full-width bar. */
	.sf-tt-seats{ grid-column: 2; justify-self: start; }
	.sf-tt-row--full .sf-tt-seats{ grid-column: 2; }
	.sf-tt-book{ grid-column: 2; justify-self: start; }
}

/* The Season strip (Agros theme, spec §5): a box with the heading and its text side by side, the 12
   months in one row, then the cards four to a row. The current month sits on the accent; the months
   before it take the muted grey (4.5:1 on the ground, ShopThemeTokensCss); the rest the second
   grey. No fill under the other months, so their words are read on the section's own ground.
   Neutral here, tokens only; a theme restyles the surfaces in its own stylesheet. */
.sf-season-box{ padding: 40px; border: 1px solid var(--line); border-radius: calc(var(--r) * 3); background: var(--paper); color: var(--ink); }
.sf-season-head{ display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: end; gap: 12px 48px; margin-block-end: 24px; }
.sf-season-text{ margin: 0; font-size: 17px; color: var(--ink-2); }
.sf-season-months{ display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; }
.sf-season-month{ display: flex; align-items: center; justify-content: center; min-block-size: 44px; min-inline-size: 0; padding-inline: 2px; border: 1px solid var(--line); border-radius: var(--r); font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; color: var(--ink-2); overflow-wrap: anywhere; }
.sf-season-month.is-past{ color: var(--muted); }
.sf-season-month.is-now{ border-color: var(--accent); background: var(--accent); color: var(--on-accent); }

/* Quick links (Agros theme, spec §8): the heading, its text, then the links as pills that wrap
   onto more lines (never a sideways scroll), each at least 44px tall to tap. Tokens only; a
   theme restyles the pills in its own stylesheet. */
.sf-quick-text{ margin: 8px 0 0; font-size: 17px; color: var(--ink-2); }
.sf-quick-list{ display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.sf-quick-list:first-child{ margin-block-start: 0; }
.sf-quick-link{ display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.sf-quick-link:hover{ border-color: var(--ink); }
.sf-quick-link:focus-visible{ outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.sf-quick-link .sf-ico{ inline-size: 18px; block-size: 18px; color: var(--accent-ink); }

/* Numbered steps: the heading above the list. The columns follow the number of steps, never the
   window: on a computer the shared rules above (up to three share the row, four and more go four
   to a row); between a phone and a computer up to three steps still share one row, with a line
   between them, and four or more go two to a row as the shared rule lays them out, so no row
   starts with a lone step behind a line. On a phone the shared rule below stacks them. The
   borders sit in :where() so a theme that frames each step (agon.css) keeps its frame. */
.sf-trust-title{ margin-block-end: 24px; }
@media (min-width: 561px) and (max-width: 1000px){
	.sf-trust--steps .sf-trust-list:has(> :last-child:nth-child(1)){ grid-template-columns: minmax(0, 1fr); }
	.sf-trust--steps .sf-trust-list:has(> :last-child:nth-child(3)){ grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sf-trust--steps .sf-trust-list:where(:has(> :last-child:nth-child(-n + 3))) > .sf-trust-item{ border-block-start: 0; border-inline-start: 1px solid var(--line); }
	.sf-trust--steps .sf-trust-list:where(:has(> :last-child:nth-child(-n + 3))) > .sf-trust-item:first-child{ border-inline-start: 0; }
}

/* A full-width section keeps the phone's side padding of base.css. */
@media (max-width: 720px){
	.sf-width-full{ padding-inline: 16px; }
	/* Photo with label: the card leaves the photo and sits under it, full width, so the photo stays clear. */
	.sf-hero--label{ gap: 24px; padding-block: 16px 32px; }
	.sf-hero-label-photo{ display: flex; flex-direction: column; gap: 12px; min-block-size: 0; max-block-size: none; aspect-ratio: auto; overflow: visible; border-radius: 0; background: none; }
	.sf-hero-label-photo img{ position: static; block-size: auto; aspect-ratio: 4 / 5; border-radius: calc(var(--r) * 3); }
	.sf-hero-stamp{ inset-block-start: 14px; inset-inline-end: 14px; min-inline-size: 84px; max-inline-size: 128px; padding: 10px; font-size: 10px; }
	.sf-hero-label-card{ position: static; inline-size: auto; border: 1px solid var(--line); box-shadow: none; }
	/* Without a photo nothing is under the stamp to sit on: it takes its own line above the card instead of covering it. */
	.sf-hero-label-photo:not(:has(> img)) .sf-hero-stamp{ position: static; align-self: flex-end; }
	/* Season strip: the heading over its text, and the months in two rows of six, so the row never scrolls sideways. */
	.sf-season-box{ padding: 28px 20px; }
	.sf-season-head{ grid-template-columns: minmax(0, 1fr); }
	.sf-season-months{ grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 560px){
	/* The phone's section gap, read by every rule that spaces sections. */
	.sf{ --sf-sec-gap: 48px; }
	.sf-hero-copy{ padding-block: 32px 64px; padding-inline: 24px; }
	.sf-lookup-copy{ padding: 28px 16px; }
	.sf-lookup-form{ padding: 18px 16px 14px; }
	.sf-lookup-go{ flex-basis: 100%; }
	.sf-promos, .sf-promos:has(> :nth-child(3)){ grid-template-columns: minmax(0, 1fr); }
	.sf-promo{ --sf-promo-pad: 24px; min-block-size: 200px; }
	.sf-trust-list{ grid-template-columns: minmax(0, 1fr); }
	.sf-trust-item + .sf-trust-item, .sf-trust-item:nth-child(2n){ border-inline-start: 0; border-block-start: 1px solid var(--line); }
	.sf-cats:where(:not(.sf-cats--slider)){ grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* A little of the next card shows, so the shopper sees there is more to scroll. */
	.sf-carousel > .sf-grid{ grid-auto-columns: 72%; }
	.sf-seller-cards{ grid-template-columns: minmax(0, 1fr); }
	.sf-brands{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* The bars follow the words here, not over them, so labels of any length have room. */
	.sf-progress-copy{ padding-block: 28px 20px; padding-inline: 16px; }
	.sf-progress-controls{ position: static; padding-block-end: 20px; padding-inline: 16px; gap: 10px; }
	.sf-progress-bars{ gap: 10px; }
	/* Three bars leave about 100 px each: a long word ("COMFORTABLE") wraps inside its own bar
	   where the browser cannot hyphenate it, never into the next one (theme polish 2026-11-27). */
	.sf-progress-label{ letter-spacing: 0.02em; overflow-wrap: break-word; }
	.sf-cats--slider{ grid-auto-columns: 44%; }
	.sf-marquee-list{ gap: 48px; padding-block: 24px; padding-inline: 24px; }
	.sf-statement-title{ font-size: 32px; }
}

@media (prefers-reduced-motion: reduce){
	.sf-promo-img, .sf-cat-img img, .sf-seller-card{ transition: none; }
	.sf-carousel > .sf-grid, .sf-cats--slider{ scroll-behavior: auto; }
	.sf-progress-slide, .sf-marquee-brand{ transition: none; }
	/* The strip stands still: the brands wrap onto more lines and the copy is left out. */
	.sf-marquee-track{ inline-size: auto; animation: none; }
	.sf-marquee-list{ flex-wrap: wrap; justify-content: center; row-gap: 24px; }
	.sf-marquee-list[aria-hidden="true"]{ display: none; }
	.sf-promo:hover .sf-promo-img, .sf-cat:hover .sf-cat-img img{ transform: none; }
}
