/* IXXO Cart 8 storefront: the product page and the compare page (Phase 10a Task 11, ruling R40).
   Tokens from tokens.css and /theme.css only; logical properties, so the page reads right to left. */

/* The product page: pictures beside the buy box, one column on a tablet or phone. */
.sf-pdp{ display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; margin-block-start: 20px; align-items: start; }

/* The pictures: thumbnails in a column at the start, the main picture beside them. */
.sf-pdp-gallery{ display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "thumbs stage"; gap: 14px; position: sticky; inset-block-start: 20px; }
.sf-pdp-gallery:not(:has(.sf-pdp-thumbs)){ grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage"; }
.sf-pdp-stage{ grid-area: stage; aspect-ratio: 1; background: var(--tile); border-radius: calc(var(--r) * 2); display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.sf-pdp-stage img{ inline-size: 76%; block-size: auto; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.sf-pdp-stage:hover img{ transform: scale(1.1); }
/* A brand logo standing in for the photo (components.css) is not zoomed: no zoom cursor either. */
.sf-pdp-stage:has(.sf-noimg-logo){ cursor: auto; }
/* On the big stage the logo sits smaller than on a card (16% there): more room around it. */
.sf-pdp-stage .sf-noimg-logo{ padding: 26%; }
.sf-pdp-thumbs{ grid-area: thumbs; display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.sf-pdp-thumb{ display: grid; place-items: center; inline-size: 76px; block-size: 76px; border-radius: var(--r); background: var(--tile); overflow: hidden; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 0.2s; }
.sf-pdp-thumb[aria-current="true"]{ box-shadow: inset 0 0 0 2px var(--ink); }
.sf-pdp-thumb img{ inline-size: 80%; block-size: auto; }

/* The buy box. */
.sf-pdp-buy{ display: flex; flex-direction: column; gap: 20px; }
.sf-pdp-brand{ font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.sf-pdp-title{ font-family: var(--font-heading); font-size: calc(clamp(26px, 2.4vw, 34px) * var(--sf-heading-scale, 1)); line-height: 1.12; letter-spacing: -0.025em; font-weight: 720; margin: 8px 0 0; text-wrap: balance; }
/* The shown variant's part number under the name (a preset's `part_numbers`, Spool). */
.sf-pdp-subtitle{ margin: 8px 0 0; font-size: 16px; line-height: 1.4; color: var(--muted); }
.sf-pdp-pn{ display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 10px 0 0; }
.sf-pdp-pn-label{ font-size: 14px; color: var(--muted); }
.sf-pdp-pn-code{ font-family: var(--font-mono); font-size: 22px; font-weight: 600; letter-spacing: 0.03em; overflow-wrap: anywhere; }
.sf-pdp-price{ display: flex; flex-direction: column; gap: 6px; padding-block: 20px; border-block: 1px solid var(--line); }
.sf-pdp-price .sf-price{ align-items: center; gap: 12px; }
.sf-pdp-price .sf-price-now{ font-size: 42px; font-weight: 720; letter-spacing: -0.03em; line-height: 1; }
.sf-pdp-price .sf-price-was{ font-size: 18px; }
.sf-pdp-note{ font-size: 13px; color: var(--muted); margin: 0; }

/* Option pickers: each value is a link to the variant that has it. */
.sf-pdp-option{ display: flex; flex-direction: column; gap: 10px; }
.sf-pdp-option-name{ font-size: 14.5px; margin: 0; }
.sf-pdp-option-name b{ font-weight: 650; }
.sf-pdp-values{ display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.sf-pdp-value{ display: inline-grid; place-items: center; min-inline-size: 52px; min-block-size: 44px; padding-inline: 14px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 600; transition: box-shadow 0.2s; }
.sf-pdp-value:hover{ box-shadow: inset 0 0 0 1px var(--ink); }
.sf-pdp-value[aria-current="true"]{ box-shadow: inset 0 0 0 2px var(--ink); }
.sf-pdp-value.is-unavailable{ color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
/* A colour swatch: a round chip of the colour; the chosen one gets the ring, an unavailable one fades. */
.sf-pdp-value.is-swatch{ min-inline-size: 44px; inline-size: 44px; padding: 5px; border-radius: 50%; }
.sf-pdp-swatch{ inline-size: 100%; block-size: 100%; display: block; }
.sf-pdp-swatch circle{ stroke: var(--line); stroke-width: 1; }
.sf-pdp-value.is-swatch.is-unavailable{ opacity: 0.35; }

/* The action: quantity, the button and the heart on one line. */
/* The heart sits beside the Add to cart button, the form's last row, below any add-ons or plans. */
.sf-pdp-act{ display: flex; gap: 10px; align-items: flex-end; }
.sf-pdp-act > :first-child{ flex: 1; }
.sf-pdp-form{ display: flex; gap: 10px; flex-wrap: wrap; }
/* The button takes the room left beside the quantity and the heart, so its own side padding is small and
   its words stay on one line on a phone, whatever the theme's text font. */
.sf-pdp-submit{ flex: 1; min-block-size: 52px; padding-inline: 12px; white-space: nowrap; }
.sf-pdp-qty{ display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); block-size: 52px; flex: none; }
.sf-pdp-qty button{ inline-size: 44px; block-size: 50px; border: 0; background: none; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.sf-pdp-qty input{ inline-size: 56px; block-size: 50px; border: 0; background: none; text-align: center; font: inherit; font-weight: 650; }
.sf-pdp-plans{ display: flex; flex-direction: column; gap: 8px; inline-size: 100%; border: 0; margin: 0; padding: 0; }
.sf-pdp-plans legend{ font-size: 14.5px; font-weight: 650; margin-block-end: 4px; }
/* Add-ons (gift wrap, engraving): one field each, full width above the quantity and button. */
.sf-pdp-addon{ display: flex; flex-direction: column; gap: 6px; inline-size: 100%; border: 0; margin: 0; padding: 0; }
.sf-pdp-addon legend{ margin-block-end: 4px; }
.sf-pdp-addon-required{ color: var(--muted); font-weight: 400; }
.sf-pdp-addon-input{ inline-size: 100%; min-block-size: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); font: inherit; }
.sf-pdp-addon-input:focus{ border-color: var(--ink); outline: none; }
.sf-pdp-addon-check{ display: flex; gap: 8px; align-items: center; font-size: 14.5px; }
.sf-pdp-wish{ inline-size: 52px; block-size: 52px; border-radius: var(--r); border: 0; box-shadow: inset 0 0 0 1px var(--line); background: var(--paper); display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
.sf-pdp-wish[aria-pressed="true"] .sf-ico{ fill: var(--accent-ink); stroke: var(--accent-ink); }
.sf-pdp-reason{ margin: 0; padding: 14px 16px; border-radius: var(--r); background: var(--tile); font-size: 14.5px; }
.sf-pdp-reason p{ margin: 0; }
.sf-pdp-reason ul{ margin: 6px 0; padding-inline-start: 20px; }
.sf-pdp-stock{ margin: 0; font-size: 14px; font-weight: 600; }

/* The booking picker (bookings Task 10): the facts, "With", the day strip or the sessions
   between two arrows, the free times, the venue's time zone; the Book button below. */
.sf-booking-picker{ display: flex; flex-direction: column; gap: 12px; inline-size: 100%; }
.sf-booking-picker p{ margin: 0; }
.sf-booking-body{ display: flex; flex-direction: column; gap: 12px; }
.sf-booking-body[hidden]{ display: none; }
/* A range of full sessions hides Book and the quantity (storefront.js, QA 2026-11-19). */
.sf-booking .sf-pdp-qty[hidden], .sf-booking .sf-pdp-submit[hidden]{ display: none; }
.sf-booking-facts{ font-size: 14.5px; color: var(--ink-2); }
.sf-booking-facts span + span::before{ content: " · "; }
.sf-booking-staff{ display: flex; gap: 10px; align-items: center; font-size: 14.5px; font-weight: 650; }
.sf-booking-staff select{ flex: 1; min-block-size: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); font: inherit; font-weight: 400; }
.sf-booking-nav{ display: flex; gap: 6px; align-items: flex-start; }
.sf-booking-arrow{ flex: none; inline-size: 36px; block-size: 52px; border: 0; border-radius: var(--r); background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.sf-booking-arrow:disabled{ color: var(--line); cursor: default; }
.sf-booking-days, .sf-booking-times, .sf-booking-sessions{ list-style: none; margin: 0; padding: 0; }
/* Seven days: each its short weekday over its day number (storefront.js drawDays()); a screen too narrow for seven scrolls the strip instead of squeezing it. */
.sf-booking-days{ flex: 1; min-inline-size: 0; display: grid; grid-template-columns: repeat(7, minmax(32px, 1fr)); gap: 6px; overflow-x: auto; }
/* The day's times by part of the day (storefront.js drawTimes()): each part an even grid of equal buttons, no ragged rows. */
.sf-booking-times{ display: flex; flex-direction: column; gap: 14px; }
.sf-booking-part-name{ margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sf-booking-part-times{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.sf-booking-day, .sf-booking-time{ inline-size: 100%; min-block-size: 44px; padding: 4px; border: 0; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sf-booking-day{ min-block-size: 52px; line-height: 1.2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.sf-booking-weekday{ font-size: 12px; font-weight: 500; }
.sf-booking-number{ font-size: 16px; font-weight: 700; }
.sf-booking-time{ padding-inline: 6px; font-size: 14.5px; white-space: nowrap; }
.sf-booking-day:hover, .sf-booking-time:hover{ box-shadow: inset 0 0 0 1px var(--ink); }
.sf-booking-day[aria-pressed="true"], .sf-booking-time[aria-pressed="true"]{ box-shadow: inset 0 0 0 2px var(--ink); }
.sf-booking-day:disabled{ color: var(--muted); box-shadow: none; background: var(--tile); cursor: default; }
.sf-booking-sessions{ flex: 1; display: flex; flex-direction: column; gap: 6px; }
.sf-booking-session label{ display: flex; gap: 10px; align-items: center; min-block-size: 44px; padding: 8px 12px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; cursor: pointer; }
.sf-booking-session.is-full label{ color: var(--muted); background: var(--tile); box-shadow: none; cursor: default; }
.sf-booking-seats{ margin-inline-start: auto; font-size: 13px; color: var(--muted); }
.sf-booking-status:empty{ display: none; }
.sf-booking-status, .sf-booking-zone{ font-size: 14px; color: var(--muted); }
@media (max-width: 420px){
	.sf-booking-nav, .sf-booking-days{ gap: 4px; }
	.sf-booking-arrow{ inline-size: 28px; }
	.sf-booking-day{ padding: 2px; }
	.sf-booking-weekday{ font-size: 11px; }
}
.sf-pdp-compare{ display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0; font-size: 14px; }
.sf-pdp-compare a{ color: var(--ink-2); }

/* Delivery and returns, then the seller box (a marketplace only). */
.sf-pdp-facts ul{ list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: calc(var(--r) * 1.5); }
.sf-pdp-facts li{ display: flex; gap: 14px; padding: 16px 18px; align-items: flex-start; font-size: 14.5px; }
.sf-pdp-facts li + li{ border-block-start: 1px solid var(--line); }
.sf-pdp-seller{ display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: calc(var(--r) * 1.5); }
.sf-pdp-seller p{ margin: 0; }
.sf-pdp-seller-label{ font-size: 12.5px; color: var(--muted); }
.sf-pdp-seller-name{ font-size: 16px; font-weight: 650; }
.sf-pdp-seller a{ font-size: 13.5px; color: var(--ink); }

/* Below the fold: the section links, the description, the specs and the related products. */
.sf-pdp-tabs{ display: flex; gap: 4px; border-block-end: 1px solid var(--line); margin: 80px 0 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
/* "All specifications" scrolls here: room above the list, more under a sticky header. */
.sf-pdp-tabs{ scroll-margin-block-start: 20px; }
body:has(.sf-hdr--sticky) .sf-pdp-tabs{ scroll-margin-block-start: 170px; }
.sf-pdp-tabs li{ display: flex; }
.sf-pdp-tabs a{ padding: 14px 16px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; }
.sf-pdp-tabs a:hover{ color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
/* With storefront.js the links are tabs (owner list 1, C3): the chosen one marked, one panel shown, its heading the tab's word again (kept for screen readers). */
.sf-pdp-tabs a[aria-selected="true"]{ color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.sf-pdp-tabs a:focus-visible{ outline: 2px solid var(--accent-ink); outline-offset: -2px; }
.sf-pdp-sec[hidden]{ display: none; }
.sf-pdp-sec[role="tabpanel"]{ margin-block-start: 28px; }
.sf-pdp-sec[role="tabpanel"] > h2{ position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sf-pdp-sec{ margin-block-start: 40px; scroll-margin-block-start: 20px; }
.sf-pdp-text p + p{ margin-block-start: 0.8em; }
.sf-pdp-sec h2{ font-family: var(--font-heading); font-size: calc(22px * var(--sf-heading-scale, 1)); letter-spacing: -0.02em; margin: 0 0 16px; }
/* The first section right under the tabs: its heading is the tab's word again, so it is kept for screen readers only. */
.sf-pdp-tabs + .sf-pdp-sec > h2{ position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sf-pdp-text{ color: var(--ink-2); font-size: 16px; max-inline-size: 68ch; text-wrap: pretty; }
/* A content block shown as a tab (Content blocks app): its sections keep their own layout across
   the whole panel, not the prose measure above. The panel is a size container, so in a narrow one
   (the stacked layout's accordion, the compact layout's side tabs) the sections follow its width
   the way they follow a column's. The first section starts where Description's text starts: its
   own space above is the page's gap between sections, which a panel already has. */
.sf-pdp-blocks{ container-type: inline-size; }
.sf-pdp-blocks > .sf-section:first-child .sf-sec,
.sf-pdp-blocks > .sf-section:first-child .sf-slideshow,
.sf-pdp-blocks > .sf-section:first-child .sf-progress{ margin-block-start: 0; }
@container (max-width: 720px){
	.sf-pdp-blocks .sf-sec-title{ font-size: calc(24px * var(--sf-heading-scale, 1)); }
	.sf-pdp-blocks .sf-iwt{ grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.sf-pdp-blocks .sf-iwt-end .sf-iwt-media{ order: 0; }
	.sf-pdp-blocks .sf-iwt-chat{ padding: 24px; }
	.sf-pdp-blocks .sf-columns{ grid-template-columns: minmax(0, 1fr); }
}
.sf-pdp-specs{ display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; margin: 0; }
.sf-pdp-specs div{ display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-block-end: 1px solid var(--line); font-size: 14.5px; }
.sf-pdp-specs dt{ color: var(--muted); }
.sf-pdp-specs dd{ margin: 0; overflow-wrap: anywhere; }

/* The stacked layout (a preset's `product_layout = stacked`, Moda theme phase, spec §A4): every
   picture in the column at the start, two a row, the buying column beside it staying in view;
   the details as an accordion at the column's end. */
.sf-pdp--stacked{ grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 64px; }
.sf-pdp-stack{ display: block; position: static; }
.sf-pdp-stack-list{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
/* An odd number of pictures: the first one takes the whole row, so no hole is left at the end. */
.sf-pdp-stack-list > :first-child:nth-last-child(odd){ grid-column: 1 / -1; }
.sf-pdp-stack-pic{ aspect-ratio: 3 / 4; background: var(--tile); border-radius: var(--r); overflow: hidden; display: grid; place-items: center; }
.sf-pdp-stack-pic img{ inline-size: 100%; block-size: 100%; object-fit: contain; }
/* No photo, only the brand logo (components.css): the column's width but at most 640 px tall (about where
   the buying column's description starts), not a 3:4 picture's height; a block (not a grid) so the logo's
   100% height resolves. */
.sf-pdp-stack-pic:has(.sf-noimg-logo){ display: block; aspect-ratio: auto; block-size: clamp(320px, 70vh, 640px); }
.sf-pdp-stack-pic .sf-noimg-logo{ display: flex; align-items: center; justify-content: center; padding: 64px; }
.sf-pdp--stacked .sf-pdp-buy{ position: sticky; inset-block-start: 20px; }
/* The stacked buying column (moved from moda.css in the Section styles phase, so every theme that
   picks the layout gets it): the price and its tax line on one row, taller choices and buttons, and
   size buttons sharing the column's width in equal cells. The look of each is the theme's. */
.sf-pdp--stacked .sf-pdp-price{ flex-direction: row; flex-wrap: wrap; align-items: baseline; }
.sf-pdp--stacked .sf-pdp-value{ min-block-size: 52px; }
.sf-pdp--stacked .sf-pdp-submit, .sf-pdp--stacked .sf-pdp-wish, .sf-pdp--stacked .sf-pdp-qty{ min-block-size: 56px; }
.sf-pdp--stacked .sf-pdp-wish{ inline-size: 56px; block-size: 56px; }
.sf-pdp--stacked .sf-pdp-values:not(:has(.is-swatch)){ display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.sf-pdp--stacked .sf-pdp-values:not(:has(.is-swatch)) .sf-pdp-value{ display: grid; inline-size: 100%; }
.sf-pdp--stacked .sf-pdp-compare .sf-btn-line{ min-block-size: 44px; }
.sf-pdp-restock{ margin: 0; font-size: 13.5px; color: var(--muted); }
.sf-pdp-acc{ border-block-start: 1px solid var(--line); }
.sf-pdp-acc-item{ border-block-end: 1px solid var(--line); scroll-margin-block-start: 20px; }
/* A header that stays at the top covers the first ~150px (classic, with its menu band; centred
   above 1200px, the menu on its own row) or ~80px (centred, menu folded): what stays in view, and
   what a link scrolls to, starts below it. */
body:has(.sf-hdr--sticky) :is(.sf-pdp-gallery, .sf-pdp--stacked .sf-pdp-buy){ inset-block-start: 170px; }
body:has(.sf-hdr--sticky) :is(.sf-pdp-sec, .sf-pdp-acc-item){ scroll-margin-block-start: 170px; }
@media (max-width: 1200px){
	body:has(.sf-hdr--sticky.sf-hdr--centred) :is(.sf-pdp-gallery, .sf-pdp--stacked .sf-pdp-buy){ inset-block-start: 100px; }
	body:has(.sf-hdr--sticky.sf-hdr--centred) :is(.sf-pdp-sec, .sf-pdp-acc-item){ scroll-margin-block-start: 100px; }
}
.sf-pdp-acc-item summary{ display: flex; justify-content: space-between; align-items: center; gap: 12px; min-block-size: 56px; cursor: pointer; list-style: none; }
.sf-pdp-acc-item summary::-webkit-details-marker{ display: none; }
.sf-pdp-acc-item summary:focus-visible{ outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.sf-pdp-acc-item summary .sf-ico{ flex: none; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.sf-pdp-acc-item[open] summary .sf-ico{ transform: rotate(180deg); }
.sf-pdp-acc-title{ font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.3; margin: 0; }
.sf-pdp-acc-body{ padding-block-end: 18px; }
.sf-pdp-acc-body .sf-pdp-text{ font-size: 15px; }
.sf-pdp-acc-body .sf-pdp-specs{ grid-template-columns: 1fr; }
.sf-pdp-acc-body .sf-pdp-specs div{ grid-template-columns: 120px minmax(0, 1fr); }

/* The compact layout (`product_layout = compact`, product page layouts 2026-11-14): the classic
   gallery made smaller with the thumbnails in a row under the picture, a Key specs box in the buy
   box (beside the buying part on a wide screen), the tabs listed down the side. The look of each
   block is still the theme's. */
.sf-pdp--compact{ grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 48px; }
.sf-pdp--compact .sf-pdp-gallery{ grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "thumbs"; gap: 10px; }
.sf-pdp--compact .sf-pdp-thumbs{ flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.sf-pdp--compact .sf-pdp-thumbs li{ flex: none; }
.sf-pdp--compact .sf-pdp-thumb{ inline-size: 72px; block-size: 72px; }
.sf-pdp--compact .sf-pdp-title{ font-size: calc(clamp(24px, 2vw, 30px) * var(--sf-heading-scale, 1)); }
.sf-pdp--compact .sf-pdp-price .sf-price-now{ font-size: 36px; }
.sf-pdp-keyspecs{ padding: 16px 18px; border: 1px solid var(--line); border-radius: calc(var(--r) * 1.5); background: var(--paper); }
.sf-pdp-keyspecs-title{ margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sf-pdp-keyspecs-list{ margin: 0; }
.sf-pdp-keyspecs-list div{ display: grid; grid-template-columns: minmax(90px, 40%) minmax(0, 1fr); gap: 12px; padding-block: 9px; border-block-end: 1px solid var(--line); font-size: 14px; }
.sf-pdp-keyspecs-list dt{ color: var(--muted); }
.sf-pdp-keyspecs-list dd{ margin: 0; overflow-wrap: anywhere; }
/* 44px to tap (components.css). */
.sf-pdp-keyspecs-all{ display: inline-flex; align-items: center; min-block-size: 44px; font-size: 14px; font-weight: 600; color: var(--ink); }
/* Wide enough for both: the buying part in the first column, the Key specs box beside it from the
   price down. Spacing by margins, not row gaps, so the rows the box spans add no height. */
@media (min-width: 1240px){
	.sf-pdp--compact .sf-pdp-buy{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 280px); column-gap: 32px; row-gap: 0; align-items: start; }
	.sf-pdp--compact .sf-pdp-buy > *{ grid-column: 1; }
	.sf-pdp--compact .sf-pdp-buy > * + *{ margin-block-start: 20px; }
	.sf-pdp--compact .sf-pdp-buy > .sf-pdp-keyspecs{ grid-column: 2; grid-row: 2 / span 40; }
}
/* The tabs down the side on a wide screen; on a tablet or phone they are the classic row. */
@media (min-width: 901px){
	.sf-pdp-details--side{ display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 48px; align-items: start; margin-block-start: 64px; padding-block-start: 32px; border-block-start: 1px solid var(--line); }
	.sf-pdp-details--side .sf-pdp-tabs{ grid-column: 1; grid-row: 1 / span 20; flex-direction: column; gap: 4px; margin: 0; border: 0; overflow: visible; }
	.sf-pdp-details--side .sf-pdp-tabs a{ display: block; inline-size: 100%; padding: 12px 14px; border-radius: var(--r); white-space: normal; }
	.sf-pdp-details--side .sf-pdp-tabs a:hover, .sf-pdp-details--side .sf-pdp-tabs a[aria-selected="true"]{ box-shadow: none; background: var(--tile); color: var(--ink); }
	.sf-pdp-details--side > .sf-pdp-sec{ grid-column: 2; margin-block-start: 0; }
	/* Without the script every panel shows, one under the other. */
	.sf-pdp-details--side > .sf-pdp-sec:not([role]) ~ .sf-pdp-sec:not([role]){ margin-block-start: 40px; }
}

/* The phone's buy bar (`buy_bar`): fixed at the bottom while the buy box's button is out of
   view (storefront-product.js adds .is-shown); never on a wide screen. The page gets room
   underneath it so the footer is not covered. */
.sf-buy-bar{ display: none; }

/* The "added to cart" pop-up (`cart_feedback = popup`) at the end side: storefront-product.js
   puts it inside the header while the header is in view (it hangs under it), else at the end
   of the page, fixed at the top of the window. */
.sf-hdr:has(> .sf-added){ position: relative; }
.sf-hdr > .sf-added{ position: absolute; inset-block-start: calc(100% + 10px); }
.sf-added{ position: fixed; inset-block-start: 10px; inset-inline-end: 24px; z-index: 60; inline-size: min(380px, calc(100vw - 32px)); padding: 20px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 30px 50px -24px var(--shadow); }
.sf-added[hidden]{ display: none; }
.sf-added:focus{ outline: none; }
.sf-added:focus-visible{ outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.sf-added-head{ display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block-end: 12px; }
.sf-added-title{ display: inline-flex; gap: 8px; align-items: center; margin: 0; font-weight: 600; font-size: 14.5px; }
.sf-added-item{ display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-block-end: 16px; margin-block-end: 16px; border-block-end: 1px solid var(--line); }
.sf-added-img{ inline-size: 72px; aspect-ratio: 3 / 4; background: var(--tile); border-radius: var(--r); overflow: hidden; display: grid; place-items: center; }
.sf-added-img[hidden]{ display: none; }
.sf-added-img img{ inline-size: 100%; block-size: 100%; object-fit: contain; }
.sf-added-text p{ margin: 0; }
.sf-added-name{ font-size: 14px; line-height: 1.35; }
.sf-added-text .sf-added-options{ font-size: 13px; color: var(--muted); margin-block-start: 4px; }
.sf-added-price{ margin: 0; font-weight: 600; font-size: 14px; align-self: start; }
.sf-added-acts{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sf-added-acts .sf-btn{ justify-content: center; text-align: center; }

/* The compare page: one column per product, the labels in the first. */
.sf-cmp-title{ font-family: var(--font-heading); font-size: calc(clamp(26px, 2.4vw, 34px) * var(--sf-heading-scale, 1)); letter-spacing: -0.025em; margin: 24px 0 16px; }
.sf-cmp-bar{ display: flex; gap: 10px 20px; align-items: center; flex-wrap: wrap; margin-block-end: 16px; font-size: 14.5px; }
.sf-cmp-diff{ inline-size: 18px; block-size: 18px; accent-color: var(--ink); margin: 0; }
.sf-cmp-clear-form{ margin-inline-start: auto; }
.sf-cmp-clear{ background: none; border: 0; padding: 0; min-block-size: 44px; color: var(--ink-2); text-decoration: underline; cursor: pointer; font: inherit; }
.sf-cmp-scroll{ overflow-x: auto; }
.sf-cmp-table{ inline-size: 100%; border-collapse: collapse; table-layout: fixed; min-inline-size: 560px; }
.sf-cmp-table th, .sf-cmp-table td{ padding: 14px 12px; border-block-end: 1px solid var(--line); text-align: start; vertical-align: top; font-size: 14.5px; overflow-wrap: anywhere; }
.sf-cmp-table tbody th{ inline-size: 160px; color: var(--muted); font-weight: 500; }
.sf-cmp-table thead th{ font-weight: 400; }
.sf-cmp-table .is-missing{ color: var(--muted); }
.sf-cmp-table .is-different td{ font-weight: 600; }
.sf-cmp-head{ position: relative; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sf-cmp-head img, .sf-cmp-head .sf-card-noimg{ inline-size: 100%; max-inline-size: 160px; block-size: auto; aspect-ratio: 1; background: var(--tile); border-radius: var(--r); }
/* A product without a photo shows its brand's logo (frame/brand_logo) in the photo's square: contained, padded. */
.sf-cmp-head .sf-noimg-logo{ inline-size: 100%; max-inline-size: 160px; block-size: auto; aspect-ratio: 1; border-radius: var(--r); }
.sf-cmp-head .sf-noimg-logo > img{ inline-size: 100%; max-inline-size: none; block-size: 100%; aspect-ratio: auto; object-fit: contain; background: none; border-radius: 0; }
.sf-cmp-name{ font-weight: 600; color: var(--ink); text-decoration: none; }
.sf-cmp-name:hover{ text-decoration: underline; }
.sf-cmp-remove-form{ position: absolute; inset-block-start: 0; inset-inline-end: 0; margin: 0; }
.sf-cmp-remove{ display: grid; place-items: center; inline-size: 44px; block-size: 44px; border: 0; padding: 0; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px var(--shadow); cursor: pointer; }

/* "Only show differences": while the box is ticked, rows where every product agrees hide. */
.sf-cmp:has(#sf-cmp-diff:checked) .is-same{ display: none; }

@media (max-width: 1100px){
	.sf-pdp{ gap: 36px; }
}

@media (max-width: 900px){
	.sf-pdp{ grid-template-columns: 1fr; }
	.sf-pdp-gallery{ position: static; }
	.sf-pdp-specs{ grid-template-columns: 1fr; }
	/* Stacked: the pictures become one row that swipes sideways; the buying column scrolls with the page. */
	.sf-pdp--stacked{ gap: 28px; }
	.sf-pdp-stack-list{ grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 6px; }
	.sf-pdp-stack-list::-webkit-scrollbar{ display: none; }
	.sf-pdp-stack-list > :first-child:nth-last-child(odd){ grid-column: auto; }
	/* One picture has nothing to swipe to: it takes the whole width. */
	.sf-pdp-stack-list:has(> :only-child){ grid-auto-columns: 100%; }
	.sf-pdp-stack-pic{ scroll-snap-align: start; }
	/* Compact: a shorter picture box, the picture kept whole inside it. */
	.sf-pdp--compact .sf-pdp-stage{ aspect-ratio: 4 / 3; }
	.sf-pdp--compact .sf-pdp-stage img{ inline-size: auto; max-inline-size: 76%; max-block-size: 86%; }
	.sf-pdp-stack-pic:has(.sf-noimg-logo){ aspect-ratio: 1; block-size: auto; }
	.sf-pdp-stack-pic .sf-noimg-logo{ padding: 32px; }
	.sf-pdp--stacked .sf-pdp-buy{ position: static; }
	.sf-buy-bar{ display: flex; position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 50; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--paper); border-block-start: 1px solid var(--line); transform: translateY(100%); visibility: hidden; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s; }
	.sf-buy-bar[hidden]{ display: none; }
	.sf-buy-bar.is-shown{ transform: none; visibility: visible; }
	.sf-buy-bar-price .sf-price-now{ font-size: 17px; font-weight: 650; }
	.sf-buy-bar-btn{ min-block-size: 48px; padding-inline: 22px; }
	.sf-buy-bar-on{ padding-block-end: 72px; }
}

@media (max-width: 720px){
	/* The "added to cart" box across the phone, the same room on both sides. */
	.sf-added{ inset-inline: 16px; inline-size: auto; }
	/* 44px to tap without moving anything (components.css). */
	.sf-pdp-brand, .sf-pdp-seller a, .sf-pdp-note a{ display: inline-block; padding: 13px 4px; margin: -13px -4px; }
}

/* On a phone the thumbnails sit under the main picture and scroll sideways. */
@media (max-width: 560px){
	.sf-pdp-gallery{ grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "thumbs"; }
	.sf-pdp-thumbs{ flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; }
	.sf-pdp-thumbs li{ scroll-snap-align: start; flex: none; }
	.sf-pdp-thumb{ inline-size: 64px; block-size: 64px; }
	.sf-pdp-specs div{ grid-template-columns: 120px minmax(0, 1fr); }
	.sf-pdp-act{ flex-wrap: wrap; }
	/* Stacked: a narrower quantity box (its buttons stay 44px to tap), so the add button sits beside it. */
	.sf-pdp--stacked .sf-pdp-qty input{ inline-size: 44px; }
}

@media (prefers-reduced-motion: reduce){
	.sf-pdp-stage img, .sf-pdp-thumb, .sf-pdp-value, .sf-pdp-acc-item summary .sf-ico, .sf-buy-bar{ transition: none; }
	.sf-pdp-stage:hover img{ transform: none; }
}
