/* IXXO Cart 8 storefront: the info pages, the seller directory and a seller's page, the
   page not found and the status pages (error, coming soon, closed, unknown shop), Phase 10a
   Task 13 (ruling R40). Colours, corners and fonts from the tokens only; logical properties
   only, so a right-to-left language mirrors by itself. The status pages also work without
   the shop's theme.css (the defaults in tokens.css). */

/* An info page: one readable column of rich text. */
/* The title in its own header (Theme editor 2: the page's sections above the body take the page's full width); the
   two keep the reading width and the spacing the page always had. */
.sf-info-head{ max-inline-size: 760px; margin-inline: auto; padding-block-start: 24px; }
.sf-info-article{ max-inline-size: 760px; margin-inline: auto; padding-block: 0 72px; }
.sf-info-title{ font-family: var(--font-heading); font-size: calc(clamp(28px, 4vw, 40px) * var(--sf-heading-scale, 1)); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); margin-block: 16px 24px; }
/* A contact form below an info page (the Contact page) stands in the same reading column as
   the title, so the heading, the form and the title share one left edge. Other sections below
   keep the page's full width. */
.sf-info + .sf-slot--below .sf-contact{ max-inline-size: 760px; margin-inline: auto; }
/* A page without text of its own (the Contact page is often only its title and the form) drops
   the empty text's bottom gap when sections follow, so the form starts right under the title. */
.sf-info:has(+ .sf-slot--below) .sf-info-article:has(> .sf-info-body:empty){ padding-block-end: 0; }
/* The sections above the page's content stand in a column (home.css) that keeps their top gap
   inside, so a head they follow gives up its bottom margin: the gap above them stays as it was.
   Only while one of them shows at this width (Show on): a slot of hidden ones leaves the gap be. */
@media (min-width: 768px){ .sf-info-head:has(+ .sf-slot--above > .sf-section:not(.sf-show-phone)) > .sf-info-title, .sf-sellers-head:has(+ .sf-slot--above > .sf-section:not(.sf-show-phone)), .sf-seller-head:has(+ .sf-slot--above > .sf-section:not(.sf-show-phone)){ margin-block-end: 0; } }
@media (max-width: 767px){ .sf-info-head:has(+ .sf-slot--above > .sf-section:not(.sf-show-computer)) > .sf-info-title, .sf-sellers-head:has(+ .sf-slot--above > .sf-section:not(.sf-show-computer)), .sf-seller-head:has(+ .sf-slot--above > .sf-section:not(.sf-show-computer)){ margin-block-end: 0; } }
.sf-info-body{ color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.sf-info-body > * + *{ margin-block-start: 1em; }
.sf-info-body h2, .sf-info-body h3{ font-family: var(--font-heading); color: var(--ink); line-height: 1.25; margin-block-start: 1.6em; }
.sf-info-body h2{ font-size: calc(24px * var(--sf-heading-scale, 1)); }
.sf-info-body h3{ font-size: calc(19px * var(--sf-heading-scale, 1)); }
.sf-info-body a{ color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.sf-info-body a:hover{ color: var(--accent-ink); }
.sf-info-body ul, .sf-info-body ol{ padding-inline-start: 1.4em; }
.sf-info-body img{ max-inline-size: 100%; block-size: auto; border-radius: var(--r); }
.sf-info-body blockquote{ margin-inline: 0; padding: 16px 20px; border-radius: var(--r); background: var(--tile); color: var(--ink-2); font-size: 1.1em; font-style: italic; }

/* The seller directory: a title, the search and sort, then tiles. */
.sf-sellers{ padding-block-end: 72px; }
.sf-sellers-head{ display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block: 16px 20px; }
.sf-sellers-title{ font-family: var(--font-heading); font-size: calc(clamp(26px, 3.5vw, 36px) * var(--sf-heading-scale, 1)); letter-spacing: -0.02em; color: var(--ink); }
.sf-sellers-count{ color: var(--muted); font-size: 14px; }
.sf-sellers-tools{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-block-end: 28px; }
.sf-sellers-input{ flex: 1 1 260px; min-inline-size: 0; block-size: 46px; padding-inline: 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); font: inherit; }
.sf-sellers-input:focus-visible{ outline: 2px solid var(--accent-ink); outline-offset: 2px; border-color: var(--ink); }
.sf-sellers-sort-label{ color: var(--muted); font-size: 14px; }
.sf-sellers-sort{ block-size: 46px; padding-inline: 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); font: inherit; }
.sf-seller-list{ display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.sf-seller-tile{ display: flex; }
.sf-seller-link{ display: flex; flex-direction: column; gap: 10px; inline-size: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); text-decoration: none; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.sf-seller-link:hover{ box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.sf-seller-link:focus-visible{ outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.sf-seller-tile-name{ font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.sf-seller-summary{ color: var(--muted); font-size: 14px; line-height: 1.5; }
.sf-seller-text{ display: flex; flex-direction: column; gap: 6px; }

/* A logo, or the name's first letter on a tile when there is none. */
.sf-seller-logo{ display: grid; place-items: center; inline-size: 56px; block-size: 56px; border-radius: 50%; overflow: hidden; background: var(--tile); flex: none; }
.sf-seller-logo img{ inline-size: 100%; block-size: 100%; object-fit: cover; }
.sf-seller-logo-lg{ inline-size: 96px; block-size: 96px; }
.sf-seller-initial{ font-family: var(--font-heading); font-weight: 800; font-size: 22px; color: var(--ink); }
.sf-seller-logo-lg .sf-seller-initial{ font-size: 36px; }

.sf-seller-facts{ display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13.5px; }
.sf-seller-away{ display: inline-flex; align-self: flex-start; padding-block: 3px; padding-inline: 10px; border-radius: 999px; background: var(--tile); color: var(--ink); font-size: 13px; font-weight: 600; }

/* A seller's page: the logo and name, the tabs (Overview, then the seller's texts), then the products. */
.sf-seller{ padding-block-end: 72px; }
.sf-seller-head{ display: flex; align-items: center; gap: 24px; margin-block: 20px 28px; }
.sf-seller-intro{ display: flex; flex-direction: column; gap: 8px; min-inline-size: 0; }
.sf-seller-name{ font-family: var(--font-heading); font-size: calc(clamp(26px, 3.5vw, 38px) * var(--sf-heading-scale, 1)); letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
.sf-seller-lead{ color: var(--ink-2); font-size: 16px; max-inline-size: 640px; }
/* The Overview's contact and legal details (only those the seller shows), and "Visit us" (its pickup points). */
.sf-seller-sub-sm{ margin-block: 24px 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
.sf-seller-details{ display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 24px; margin: 0; }
.sf-seller-details dt{ color: var(--muted); font-size: 13px; }
.sf-seller-details dd{ margin: 2px 0 0; color: var(--ink); font-size: 14.5px; overflow-wrap: anywhere; }
.sf-seller-details a{ color: inherit; }
.sf-seller-visit{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 24px; }
.sf-seller-visit p{ margin: 0; color: var(--ink); font-size: 14.5px; }
.sf-seller-visit .sf-seller-visit-name{ font-weight: 600; }
.sf-seller-visit .sf-seller-visit-note{ margin-block-start: 4px; color: var(--ink-2); white-space: pre-line; }
.sf-seller-notice{ margin-block-start: 16px; color: var(--muted); font-size: 13.5px; }
/* The tabs (storefront.js `tabs`, Phase 10b): without the script every panel shows, one after another. */
.sf-seller-tabs{ max-inline-size: 760px; margin-block-end: 36px; }
.sf-seller-tabs-list{ list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; border-block-end: 1px solid var(--line); }
.sf-seller-tabs-list a{ display: flex; align-items: center; min-block-size: 44px; padding-inline: 12px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.sf-seller-tabs-list a:hover{ color: var(--ink); }
.sf-seller-tabs-list a:focus-visible{ outline: 2px solid var(--accent-ink); outline-offset: -2px; }
.sf-seller-tabs-list a[aria-selected="true"]{ color: var(--ink); font-weight: 600; box-shadow: inset 0 -3px 0 var(--accent-ink); }
.sf-seller-tabs-panel{ display: flex; flex-direction: column; gap: 10px; padding-block: 20px 0; }
.sf-seller-tabs-panel[hidden]{ display: none; }
.sf-seller-sub{ font-family: var(--font-heading); font-size: calc(22px * var(--sf-heading-scale, 1)); color: var(--ink); margin-block-end: 18px; }

/* The page not found: the code, the words, a search, the top categories. */
.sf-404{ display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-block: 64px 88px; }
.sf-404-code{ font-family: var(--font-heading); font-size: clamp(64px, 12vw, 128px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--accent-ink); }
.sf-404 h1{ font-family: var(--font-heading); font-size: calc(clamp(24px, 3vw, 32px) * var(--sf-heading-scale, 1)); color: var(--ink); }
.sf-404-text{ color: var(--muted); max-inline-size: 520px; }
.sf-404-search{ display: flex; gap: 8px; inline-size: 100%; max-inline-size: 480px; margin-block-start: 8px; }
.sf-404-input{ flex: 1; min-inline-size: 0; block-size: 48px; padding-inline: 14px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--paper); color: var(--ink); font: inherit; }
.sf-404-input:focus-visible{ outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.sf-404-sub{ font-size: 15px; font-weight: 600; color: var(--ink); margin-block-start: 24px; }
.sf-404-links{ display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0; }
.sf-404-links a{ display: inline-flex; padding-block: 8px; padding-inline: 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; }
.sf-404-links a:hover{ border-color: var(--ink); }
.sf-404-home{ margin-block-start: 16px; }

/* The status pages (layouts/storefront_minimal): one card in the middle of the screen. */
.sf-minimal{ background: var(--tile); color: var(--ink); font-family: var(--font-body); }
.sf-state{ display: grid; place-items: center; min-block-size: 100vh; padding: 24px; }
.sf-state-card{ display: flex; flex-direction: column; align-items: center; gap: 12px; inline-size: 100%; max-inline-size: 520px; padding-block: 40px; padding-inline: 32px; border-radius: calc(var(--r) * 1.5); background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.sf-state-mark{ display: grid; place-items: center; inline-size: 56px; block-size: 56px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--font-heading); font-weight: 800; font-size: 24px; }
.sf-state-code{ font-family: var(--font-mono); color: var(--muted); font-size: 13px; letter-spacing: 0.08em; }
.sf-state-title{ font-family: var(--font-heading); font-size: calc(clamp(22px, 3vw, 30px) * var(--sf-heading-scale, 1)); line-height: 1.2; color: var(--ink); }
.sf-state-text{ color: var(--ink-2); line-height: 1.6; }
.sf-state-note{ color: var(--muted); font-size: 13px; }
.sf-state-card details{ inline-size: 100%; text-align: start; font-size: 13px; color: var(--muted); }

@media (max-width: 720px)
{
	.sf-seller-head{ flex-direction: column; align-items: flex-start; gap: 16px; }
	.sf-seller-logo-lg{ inline-size: 72px; block-size: 72px; }
	.sf-state-card{ padding-block: 32px; padding-inline: 20px; }
	.sf-404{ padding-block: 40px 64px; }
	.sf-404-links a{ align-items: center; min-block-size: 44px; }
}
