/* SS Shop — the whole front-end stylesheet.

   Tokens come from the active treatment and are inlined into :root at runtime,
   so this file never changes between industries or looks.

   HOW THIS FILE IS ORDERED. Every property is set in exactly one place. If you
   need to change how something looks, change it where it is defined — do not
   append an override at the bottom. Four of the eight bugs in the first build
   came from stacked override blocks where a later rule silently beat an
   earlier intent.

     1  tokens
     2  reset and base elements
     3  layout primitives      container, shell, grid, carousel track
     4  header
     5  section framework
     6  components             in rough page order, each with its own media queries
     7  WooCommerce
     8  shop filters
     9  single product
    10  site-wide layout options
    11  treatments             per-treatment overrides, necessarily last
    12  invariants             the few rules that must outrank a treatment

   Sections 11 and 12 are the only places that may restate a property set
   earlier, and section 12 exists solely because per-treatment rules tie on
   specificity with plain ones and would otherwise win on source order.
   ========================================================================= */

/* =========================================================================
   1. Tokens
   ========================================================================= */

:root {
	--ss-accent: #111111;
	--ss-accent-ink: #ffffff;
	--ss-accent-on-bg: #111111;
	/* The cart glyph, used as a mask so the icons card style can turn Woo's
	   own text button into an icon without touching Woo's markup. Inline, so
	   it costs no request. Matches ss_icon('cart'). */
	--ss-cart-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h2l2.2 9.4A2 2 0 0 0 9.2 16h7.2a2 2 0 0 0 2-1.6L20 8H6'/%3E%3Ccircle cx='10' cy='19.5' r='1.4'/%3E%3Ccircle cx='17' cy='19.5' r='1.4'/%3E%3C/svg%3E");
	--ss-ink: #16181d;
	/* Treatments emit --ss-mute (their token key is "mute"). This is only the
	   default for a site with no treatment active. --ss-muted is a deprecated
	   alias kept so an existing child theme does not break. */
	--ss-mute: #667085;
	--ss-muted: var(--ss-mute);
	--ss-line: #e5e7eb;
	--ss-bg: #ffffff;
	--ss-bg-alt: #f7f8fa;
	--ss-sale: #d92d20;
	--ss-radius: 8px;
	--ss-gap: 16px;
	--ss-container: 1280px;
	--ss-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ss-cols: 4;
}

/* Column count is a token, so any grid can opt into the site rhythm. */
@media (min-width: 1500px) { :root { --ss-cols: 5; } }
@media (max-width: 1024px) { :root { --ss-cols: 3; } }
@media (max-width: 720px)  { :root { --ss-cols: 2; } }

/* =========================================================================
   2. Reset and base elements
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

/* clip, not hidden: hidden makes an ancestor a scroll container and silently
   breaks position: sticky inside it. It is set on html as well as body because
   overflow-x on body alone does not propagate to the viewport in Chrome. */
html {
	-webkit-text-size-adjust: 100%;
	overflow-x: clip;
}

body {
	margin: 0;
	overflow-x: clip;
	font-family: var(--ss-font);
	font-size: 15px;
	line-height: 1.5;
	color: var(--ss-ink);
	background: var(--ss-bg);
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
	margin: 0 0 .5em;
	font-family: var(--ss-font-display);
	font-weight: 600;
	line-height: 1.2;
}

.ss-skip {
	position: absolute;
	left: -9999px;
}
.ss-skip:focus {
	left: 8px;
	top: 8px;
	z-index: 100;
	padding: 8px 12px;
	background: var(--ss-accent);
	color: var(--ss-accent-ink);
}

/* =========================================================================
   3. Layout primitives
   ========================================================================= */

.ss-container {
	width: 100%;
	max-width: var(--ss-container);
	margin-inline: auto;
	padding-inline: clamp(16px, 3.5vw, 32px);
}

.ss-grid {
	display: grid;
	grid-template-columns: repeat(var(--ss-cols), minmax(0, 1fr));
	gap: var(--ss-gap);
}

.ss-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--ss-cols) - 1) * var(--ss-gap)) / var(--ss-cols));
	gap: var(--ss-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.ss-track::-webkit-scrollbar { display: none; }
.ss-track > * { scroll-snap-align: start; }

/* ---------- per-section columns and rows ----------

   Set as classes on the section, never as an inline style — an inline style
   outranks media queries, which is exactly how six sections once ended up
   with responsive rules that had never applied.

   The desktop count is what the client picked; the phone and tablet counts
   are capped, because "six across" on a 360px screen is not six columns, it
   is six slivers. Capping here rather than trusting the choice is the whole
   reason this is a class. */

.ss-section.is-cols-2 { --ss-cols: 2; }
.ss-section.is-cols-3 { --ss-cols: 3; }
.ss-section.is-cols-4 { --ss-cols: 4; }
.ss-section.is-cols-5 { --ss-cols: 5; }
.ss-section.is-cols-6 { --ss-cols: 6; }

@media (max-width: 1024px) {
	.ss-section.is-cols-4,
	.ss-section.is-cols-5,
	.ss-section.is-cols-6 { --ss-cols: 3; }
}

@media (max-width: 720px) {
	.ss-section.is-cols-3,
	.ss-section.is-cols-4,
	.ss-section.is-cols-5,
	.ss-section.is-cols-6 { --ss-cols: 2; }
}

/* Rows. A grid gets them for nothing by filling; a carousel has to be told,
   because its flow is column-first. */
.ss-section.is-rows-2 .ss-track { grid-template-rows: repeat(2, auto); }
.ss-section.is-rows-3 .ss-track { grid-template-rows: repeat(3, auto); }

.ss-carousel { position: relative; }
.ss-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: none;
	width: 34px;
	height: 34px;
	border: 1px solid var(--ss-line);
	border-radius: 999px;
	background: color-mix(in srgb, var(--ss-bg) 92%, transparent);
	box-shadow: 0 2px 10px rgb(0 0 0 / .10);
	color: var(--ss-ink);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: opacity .2s;
}
.ss-carousel__nav.is-prev { inset-inline-start: -10px; }
.ss-carousel__nav.is-next { inset-inline-end: -10px; }
.ss-carousel:hover .ss-carousel__nav { opacity: 1; }

/* The arrows are a pointer affordance: shown from 900px, resting invisible
   until the carousel is hovered. */
@media (min-width: 900px) {
	.ss-carousel__nav { display: block; opacity: 0; }
}

/* =========================================================================
   4. Header
   ========================================================================= */

.ss-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--ss-bg);
	border-bottom: 1px solid var(--ss-line);
}

.ss-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--ss-gap);
	min-height: 68px;
}

/* ---------- header arrangement ----------

   Two settings, one flex row. Nothing here sets a width or a percentage: the
   auto margin decides which gap opens up, so the row keeps working whatever
   length the client's menu turns out to be. */

.ss-header__brand { order: 1; }
.ss-nav { order: 2; }
.ss-header__actions { order: 3; }

.ss-menu-left .ss-header__actions { margin-inline-start: auto; }
.ss-menu-center .ss-nav { margin-inline: auto; }
.ss-menu-right .ss-nav { margin-inline-start: auto; }

/* Logo position comes after menu position deliberately: at equal specificity
   these win, which is how "centring the logo takes the row over" is enforced
   rather than merely documented. */
.ss-logo-right .ss-header__brand { order: 4; }

/* A centred logo is only actually centred if it ignores what is either side
   of it, so it comes out of the flow. The wrapper spans the row and passes
   clicks through; only the logo itself is clickable. */
.ss-logo-center .ss-header__brand {
	position: absolute;
	inset-inline: 0;
	text-align: center;
	pointer-events: none;
}
/* inline-block is load-bearing. The logo link is inline by default, and an
   inline box wrapping a block-level <img> stretches its line box across the
   whole container — so the anchor measured 1320px wide, and with pointer
   events switched back on it swallowed every click in the header. The cart
   was not clickable. inline-block makes it shrink-wrap to the logo itself. */
.ss-logo-center .ss-logo { display: inline-block; pointer-events: auto; }
.ss-logo-center .ss-nav { margin-inline: 0; }
.ss-logo-center .ss-header__actions { margin-inline-start: auto; }

/* ---------- top bar ---------- */

.ss-topbar {
	background: var(--ss-ink);
	color: color-mix(in srgb, var(--ss-bg) 88%, transparent);
	font-size: 12.5px;
}
.ss-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 34px;
}
.ss-topbar__contact { display: inline-flex; align-items: center; gap: 18px; }
.ss-topbar__contact a { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.ss-topbar__contact a:hover { color: var(--ss-bg); }

/* On a phone the promise and the hours both lose to the phone number, which is
   the only thing on this strip anyone taps. */
@media (max-width: 720px) {
	.ss-topbar__note,
	.ss-topbar__hours { display: none; }
	.ss-topbar__inner { justify-content: center; }
}
.ss-logo--text { font-weight: 700; font-size: 20px; }
.ss-logo img { max-height: 44px; width: auto; }

.ss-menu {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ss-menu a { font-size: 14px; padding-block: 6px; }
.ss-menu a:hover { text-decoration: none; color: var(--ss-mute); }

/* Sub-menus. The primary menu is registered three deep, but without these a
   nested menu rendered fully expanded across the header. CSS only: opens on
   hover and on keyboard focus (:focus-within), no script. */
.ss-menu li { position: relative; }
.ss-menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-inline-start: 7px;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	transform: translateY(-3px) rotate(45deg);
}
.ss-menu .sub-menu {
	position: absolute;
	inset-block-start: 100%;
	inset-inline-start: -16px;
	z-index: 50;
	min-width: 210px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: var(--ss-bg);
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	box-shadow: 0 10px 28px rgb(0 0 0 / .08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.ss-menu li:hover > .sub-menu,
.ss-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ss-menu .sub-menu a { display: block; padding: 8px 16px; white-space: nowrap; }
.ss-menu .sub-menu .sub-menu { inset-block-start: -9px; inset-inline-start: 100%; }
.ss-menu .sub-menu .menu-item-has-children > a::after { transform: translateY(-1px) rotate(-45deg); }

.ss-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ss-phone { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.ss-phone .ss-icon { flex: none; opacity: .75; }
/* The alternate number is listed where there is room for it — the footer
   columns and the mobile drawer — and hidden where the phone is a single call
   action and a second number competes with the first. Measured rather than
   assumed: the blanket `display: none` this replaces was already being beaten
   in the footer by `.ss-footer .ss-phone`, so the number was showing there and
   missing only from the drawer, which is where someone holding a phone would
   most want a second line to try. */
.ss-header .ss-phone--alt,
.ss-footer-compact .ss-phone--alt { display: none; }
/* A thumb needs ~44px. The cart link measured 52x21, so it gets vertical
   padding rather than a bigger font. */
/* The gap has to clear the COUNT, not the glyph. The badge deliberately
   overhangs the glyph's right edge by about 7px, so an 8px gap left exactly
   1px between the number and the word. */
.ss-cart { display: inline-flex; align-items: center; gap: 15px; padding-block: 12px; font-size: 14px; }

/* The count rides the corner of the glyph rather than sitting after the word.
   That is what a shopper's eye is trained to look for, and it means the count
   survives when the word is dropped on a narrow header. */
.ss-cart__mark { position: relative; display: inline-flex; }
.ss-cart__count {
	position: absolute;
	inset-block-start: -7px;
	inset-inline-start: 11px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--ss-accent);
	color: var(--ss-accent-ink);
	font-size: 11px;
	line-height: 17px;
	font-weight: 600;
	text-align: center;
}

/* The glyph carries it alone at every width — the word was redundant beside a
   cart icon. It also means the tap target has to be stated rather than
   inherited from the text that used to pad it out: without this the link
   measured 21px wide, half a thumb, on the one control every phone shopper
   reaches for. */
.ss-cart { min-width: 44px; justify-content: center; }

@media (max-width: 720px) {
	.ss-header__actions .ss-phone { display: none; }
}

/* ---------- mobile navigation ----------
   The inline menu has no room below 900px, so it collapses to a button that
   opens a drawer. The drawer carries the shop's categories as well as the
   menu: a client's menu is four items, their catalogue is thirty departments,
   and the departments are what a shopper came for.

   It opens without JavaScript — the button is a link to #ss-drawer and the
   panel answers on :target. The script adds the scrim and Escape on top. */

.ss-navtoggle,
.ss-callbtn { display: none; }

.ss-drawer {
	position: fixed;
	inset-block: 0;
	inset-inline-start: 0;
	z-index: 95;
	display: none;
	grid-template-rows: auto auto 1fr auto;
	width: min(86vw, 340px);
	background: var(--ss-bg);
	transform: translateX(-102%);
	transition: transform .22s ease, box-shadow .22s ease;
	overflow-y: auto;
}
/* The shadow belongs to the open state only. Closed, the drawer sits just
   2% past the edge and a 40px shadow bled back in as a grey strip down the
   left of every page on a phone. */
.ss-drawer:target,
.ss-drawer.is-open { transform: none; box-shadow: 0 0 40px rgb(0 0 0 / .2); }

.ss-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--ss-line);
}
/* The drawer covers the header, logo included, so it carries its own. */
.ss-drawer__head .ss-logo img { max-height: 34px; }
.ss-drawer__head .ss-logo--text { font-size: 17px; }
.ss-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-inline-end: -10px;
	color: var(--ss-mute);
}

.ss-drawer__search { display: flex; gap: 8px; padding: 14px 16px 6px; }
.ss-drawer__search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	background: var(--ss-bg);
	font: inherit;
	color: inherit;
}
.ss-drawer__go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	flex: none;
}

.ss-drawer__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 12px 16px 0;
	border-bottom: 1px solid var(--ss-line);
}
.ss-drawer__tab {
	padding: 12px 8px;
	border: 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	background: none;
	color: var(--ss-mute);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}
.ss-drawer__tab[aria-selected="true"] { color: var(--ss-ink); border-bottom-color: var(--ss-accent-on-bg); }

.ss-drawer__panel { padding: 6px 0 10px; }
.ss-drawer__heading {
	margin: 14px 16px 6px;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ss-mute);
}
.ss-drawer__list { list-style: none; margin: 0; padding: 0; }
.ss-drawer__list li + li { border-top: 1px solid color-mix(in srgb, var(--ss-line) 60%, transparent); }
.ss-drawer__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 48px;
	padding: 10px 16px;
	font-size: 15px;
}
.ss-drawer__list a:hover { text-decoration: none; background: var(--ss-bg-alt); }
.ss-drawer__n { color: var(--ss-mute); font-size: 12px; }

.ss-drawer__foot {
	padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--ss-line);
	font-size: 14px;
}
.ss-drawer__foot .ss-hours { margin: 4px 0 0; color: var(--ss-mute); }
/* Two numbers stack rather than running together on one line. */
.ss-drawer__foot .ss-phone { display: block; padding-block: 6px; }

@media (max-width: 900px) {
	.ss-nav { display: none; }
	.ss-drawer { display: grid; }

	.ss-navtoggle {
		display: inline-flex;
		align-items: center;
		gap: 7px;
		min-height: 44px;
		margin-inline-start: -6px;
		padding-inline: 6px;
		color: var(--ss-ink);
	}
	.ss-navtoggle:hover { text-decoration: none; }
	.ss-navtoggle__label { font-size: 13px; font-weight: 500; letter-spacing: .02em; }

	/* The number is hidden at this width, so the call stays reachable as an
	   icon. In this market a lot of orders still arrive by phone. */
	.ss-callbtn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border: 1px solid var(--ss-line);
		border-radius: 999px;
		color: var(--ss-ink);
	}
	.ss-callbtn:hover { text-decoration: none; }

	/* With the toggle on the left, the logo reads better centred. */
	.ss-header__brand { margin-inline: auto; }
}

@media (max-width: 380px) {
	.ss-navtoggle__label { display: none; }
}

/* =========================================================================
   5. Section framework

   Tinted bands are opt-in by class rather than :nth-child, which changed
   meaning every time a section was reordered.
   ========================================================================= */

.ss-section { padding-block: clamp(28px, 3.4vw, 48px); }

/* Opt-in by class. An older :nth-child(even) scheme was cancelled with
   `background: none`, but that cancel rule was (0,2,0) and silently outranked
   these (0,1,0) rules, so any tinted band on an even position lost its tint. */
.ss-usp-bar,
.ss-cta-band,
.ss-price-tiers,
.ss-testimonials,
.ss-faq { background: var(--ss-bg-alt); }

.ss-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--ss-gap);
	margin-bottom: 18px;
}
.ss-section__head h2 {
	margin: 0;
	font-size: var(--ss-h-size, clamp(17px, 1.9vw, 22px));
	font-weight: var(--ss-h-weight, 600);
	text-transform: var(--ss-h-transform, none);
	letter-spacing: var(--ss-h-tracking, -0.01em);
}
.ss-section__more { font-size: 14px; color: var(--ss-mute); white-space: nowrap; }
.ss-section__more:hover { color: var(--ss-ink); }

/* =========================================================================
   6. Components
   ========================================================================= */

/* ---------- buttons ---------- */

/* inline-FLEX, not inline-block. Under (pointer: coarse) every button gets
   min-height: 44px, and on an inline-block that grows the box while leaving
   the label sitting on the first line — so a two-line "Select options" was
   top-aligned inside a 48px pill. It also makes the centring that the product
   card already asked for actually apply. */
.ss-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border: 0;
	border-radius: var(--ss-radius-btn, var(--ss-radius));
	background: var(--ss-accent);
	color: var(--ss-accent-ink);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}
.ss-btn:hover { text-decoration: none; opacity: .9; }
.ss-btn--ghost { background: transparent; color: var(--ss-ink); border: 1px solid var(--ss-line); }
.ss-btn--wa { background: #25d366; color: #fff; }
.ss-btn--sm { padding: 6px 12px; font-size: 13px; }

/* ---------- announcement bar ---------- */

.ss-announcement {
	background: var(--ss-accent);
	color: var(--ss-accent-ink);
	font-size: 13px;
	letter-spacing: .01em;
	padding-block: 9px;
	text-align: center;
}
.ss-announcement__inner { display: flex; align-items: center; justify-content: center; gap: 12px; }

/* A continuous marquee, the way the pre-footer bar on maxproofficial.com does
   it. The list is repeated end to end enough times to overflow any viewport
   (parts/announcement.php decides how many), every copy carries the same
   animation so they move as one, and each is translated by exactly its own
   width PLUS the gap — so as one copy leaves, the next is standing precisely
   where it started and the seam cannot be seen.

   The gap has to be in the transform as well as the layout; leave it out and
   the loop jumps by one gap every cycle. That is the whole trick.

   This replaced a marquee over a list printed exactly twice, which ran out of
   content on a desktop: at 1440 both copies were on screen with a moving hole
   behind them, so the strip read as repeating itself rather than scrolling. */
.ss-ticker {
	--ss-ticker-gap: 52px;
	display: flex;
	gap: var(--ss-ticker-gap);
	width: 100%;
	overflow: hidden;
}
.ss-ticker__track {
	display: flex;
	flex: none;
	gap: var(--ss-ticker-gap);
	animation: ss-marquee 18s linear infinite;
}
/* Duration tracks the list's width so the SPEED stays the same — about 30px a
   second, a little over twice the reference bar's — instead of a long list
   crawling and a short one sprinting. */
.ss-ticker.is-n-3 .ss-ticker__track { animation-duration: 27s; }
.ss-ticker.is-n-4 .ss-ticker__track { animation-duration: 36s; }
.ss-ticker__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 500; }
.ss-ticker__item .ss-icon { flex: none; opacity: .9; }

@keyframes ss-marquee { to { transform: translateX(calc(-100% - var(--ss-ticker-gap))); } }

/* Reduced motion stops the SCROLL, not the content. Switching the animation
   off would leave one copy frozen mid-strip and the rest of the messages off
   screen for ever — a content bug wearing an accessibility fix. The filler
   copies go, the one real list stays, and it is swipeable if it does not fit.
   NOTE Khan's own Windows desktop reports reduce, so this is what HE sees. */
@media (prefers-reduced-motion: reduce) {
	.ss-ticker { overflow-x: auto; justify-content: center; scrollbar-width: none; }
	.ss-ticker__track { animation: none; }
	.ss-ticker__track + .ss-ticker__track { display: none; }
}

/* ---------- hero ----------
   The copy layer spans the whole slide so its text can align to the container
   grid rather than floating in a card. It therefore must never carry a
   background of its own — see section 12. */

/* padding-block for the hero is set in section 12, where it can outrank the
   per-treatment .ss-section rules. */
.ss-hero { background: none !important; }
.ss-hero__viewport { position: relative; }
.ss-hero__track { --ss-cols: 1; gap: 0; scroll-snap-type: x mandatory; }
.ss-hero__track > * { scroll-snap-align: start; }

.ss-hero__slide { position: relative; display: block; overflow: hidden; }

/* THE SCRIM IS A CONTRAST GUARANTEE, NOT A MOOD.

   The client uploads the banner and nobody checks it, so the overlay has to
   work against an image we will never see. That is solvable, because there is
   a worst case and it is pure white: a scrim at alpha a over white composites
   to 255(1-a) plus the scrim's own colour, so past a certain alpha the image
   cannot make the text unreadable whatever it contains.

   The old gradient (.62 -> .34 @46% -> .05) decayed below that line before the
   text ended. Measured at 1440: the headline runs to 54.2% of the slide where
   the scrim was .30 — 2.18:1 over a white banner, 2.97:1 over a pastel one,
   against a 3:1 threshold. It had never shown up because every demo banner in
   the repo is nearly black: luminance .02, contrast 17:1.

   Where the text actually is was MEASURED, at thirteen viewports and on all
   three treatments, not guessed. From 600px up the headline never passes 57%
   and the sub-line never passes 53%; below 600 they reach 93% and 87%, because
   the copy is nearly full width — so a left-to-right gradient cannot work
   there at all and the scrim turns vertical.

   57% was the first answer and it failed on Warm Boutique alone: 18ch of
   serif display type runs to 62% where Bold Retail's 15ch uppercase stops at
   54%. Measure every treatment, not the one in front of you.

   The fall-off stop is .53 rather than the .50 the maths needs, because .50
   put the worst combination — Warm Boutique's headline over a pure white
   banner — at 3.03:1 against a 3:1 threshold. A guarantee with a 1% margin is
   not a guarantee. At .53 the worst case is 3.5:1.

   The stops are sized for the TINTED case, which needs more alpha than black
   to do the same work: Warm Boutique's rgb(36 31 27) at .60 gives 4.35:1 over
   white and fails, at .64 it gives 4.94:1. Hence one set of stops at .64/.50
   and a --ss-scrim colour, rather than a per-treatment gradient — which is
   also what stops a treatment quietly opting out of the guarantee, as Warm
   Boutique's own fade-to-transparent override used to.

   If you retune these, re-measure first. The numbers are the point. */
:root { --ss-scrim: 0 0 0; }

.ss-hero__slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg,
		rgb(var(--ss-scrim) / .68) 0%,
		rgb(var(--ss-scrim) / .64) 34%,
		rgb(var(--ss-scrim) / .53) 64%,
		rgb(var(--ss-scrim) / .08) 100%);
	pointer-events: none;
}
/* The sub-line reaches 53% here rather than 34%, so the plateau has to run
   further before it may fall away. */
@media (max-width: 1023px) {
	.ss-hero__slide::after {
		background: linear-gradient(90deg,
			rgb(var(--ss-scrim) / .68) 0%,
			rgb(var(--ss-scrim) / .64) 53%,
			rgb(var(--ss-scrim) / .53) 59%,
			rgb(var(--ss-scrim) / .08) 100%);
	}
}
/* Phone: the copy spans the slide, so the scrim runs top to bottom instead.
   The text band is 24%-76%; everything from 18% down is at or above .64. */
@media (max-width: 599px) {
	.ss-hero__slide::after {
		background: linear-gradient(180deg,
			rgb(var(--ss-scrim) / .34) 0%,
			rgb(var(--ss-scrim) / .64) 18%,
			rgb(var(--ss-scrim) / .66) 100%);
	}
}
/* A banner whose artwork already carries its own headline. Our text is off,
   so the scrim would be dirtying their design for nothing. */
.ss-hero__slide.is-plain::after { content: none; }
.ss-hero__img { width: 100%; height: clamp(300px, 40vw, 560px); object-fit: cover; }
/* Layout → Hero images → Whole banner: designed artwork keeps its own shape.
   Three classes deep so it also holds against the treatment and overlay
   heights further down. */
.ss-herofit-whole .ss-hero .ss-hero__img { height: auto; min-height: 0; }

.ss-hero__copy {
	position: absolute;
	inset-block: 0;
	inset-inline: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 14px;
	width: 100%;
	max-width: none;
	padding: 18px 20px;
	padding-inline: max(calc((100% - var(--ss-container)) / 2 + 40px), 40px);
	border-radius: 0;
	color: #fff;
}
/* A scrim answers the image's overall luminance; it does not answer a bright
   detail sitting behind one word. The shadow costs nothing and covers that. */
.ss-hero__copy strong,
.ss-hero__copy em { text-shadow: 0 1px 3px rgb(0 0 0 / .34); }
.ss-hero__copy strong {
	max-width: 15ch;
	color: #fff;
	font-family: var(--ss-font-display);
	font-size: clamp(30px, 5vw, 68px);
	font-weight: var(--ss-h-weight, 700);
	line-height: 1.02;
	letter-spacing: var(--ss-h-tracking, -0.03em);
	text-transform: var(--ss-h-transform, none);
}
.ss-hero__copy em {
	max-width: 40ch;
	color: rgb(255 255 255 / .88);
	font-style: normal;
	font-size: clamp(14px, 1.3vw, 17px);
}
.ss-hero__copy .ss-btn {
	margin-top: 8px;
	background: #fff;
	color: #111;
	font-weight: 600;
	padding: 13px 28px;
}

/* The hero's own slider controls sit inside the image rather than outside it,
   and are always faintly visible: .ss-carousel's reveal-on-hover rule is
   scoped to .ss-carousel, which the hero viewport is not. */
.ss-hero__viewport .ss-carousel__nav {
	opacity: .82;
	width: 42px;
	height: 42px;
	font-size: 22px;
	background: color-mix(in srgb, var(--ss-bg) 88%, transparent);
}
.ss-hero__viewport:hover .ss-carousel__nav,
.ss-hero__viewport .ss-carousel__nav:focus-visible { opacity: 1; }
.ss-hero__viewport .ss-carousel__nav.is-prev { inset-inline-start: 18px; }
.ss-hero__viewport .ss-carousel__nav.is-next { inset-inline-end: 18px; }

.ss-dots {
	position: absolute;
	inset-block-end: 6px;
	inset-inline-start: max(calc((100% - var(--ss-container)) / 2 + 40px), 40px);
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 7px;
}
/* The button is a transparent 44px-tall hit area; the dot itself is drawn by
   the pseudo-element. Clipping a rounded background to the content box was
   the obvious trick and it squares the dot off, because border-radius applies
   to the border box. */
.ss-dots__dot {
	display: grid;
	place-items: center;
	width: 20px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	transition: width .2s;
}
.ss-dots__dot::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: rgb(255 255 255 / .42);
	/* White on the photograph itself — invisible on a light banner, and on a
	   plain slide there is no scrim beneath them at all. */
	box-shadow: 0 1px 3px rgb(0 0 0 / .55);
	transition: width .2s, background .2s;
}
.ss-dots__dot.is-on { width: 34px; }
.ss-dots__dot.is-on::before { width: 22px; background: #fff; }

/* Hero variants that are not a slider. */
.ss-hero__intro { padding-block: 24px 14px; }
.ss-hero__intro h1 {
	margin-bottom: 4px;
	font-family: var(--ss-font-display);
	font-size: clamp(20px, 2.6vw, 30px);
	font-weight: var(--ss-h-weight, 600);
	letter-spacing: var(--ss-h-tracking, -0.02em);
}
.ss-hero__intro p { margin: 0; color: var(--ss-mute); }

.ss-hero__tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: clamp(110px, 12vw, 165px);
	gap: var(--ss-gap);
	padding-bottom: 8px;
}
.ss-hero__tile { position: relative; overflow: hidden; border-radius: var(--ss-radius); }
.ss-hero__tile.is-feature { grid-column: span 2; grid-row: span 2; }
.ss-hero__tile img { width: 100%; height: 100%; object-fit: cover; }
.ss-hero__tile-label {
	position: absolute;
	inset-block-end: 10px;
	inset-inline-start: 10px;
	padding: 5px 10px;
	border-radius: 4px;
	background: color-mix(in srgb, var(--ss-bg) 88%, transparent);
	font-weight: 600;
	font-size: 14px;
}

@media (max-width: 720px) {
	.ss-hero__copy { padding-inline: 20px; gap: 10px; }
	.ss-hero__viewport .ss-carousel__nav { display: none; }
	.ss-dots { inset-inline-start: 14px; inset-block-end: 2px; }
	.ss-hero__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
	.ss-hero__tile.is-feature { grid-column: span 2; grid-row: span 1; }
}

/* ---------- USP / trust bar ---------- */

.ss-usp-bar { border-block: 1px solid var(--ss-line); }

/* Fit to however many items Theme Settings produced rather than a fixed
   count: a shop with two USP items should not sit in a four-column grid, and
   four items must not stay four columns wide on a phone. */
.ss-usp-bar .ss-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ss-usp__item { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ss-usp__item strong { display: block; font-size: 13.5px; }
.ss-usp__item span { color: var(--ss-mute); font-size: 13px; }
.ss-usp__item .ss-icon { color: var(--ss-accent-on-bg); flex: none; }

/* ---------- categories ----------
   Category navigation should be small enough that a shopper takes in every
   option at once. Columns fit to what is actually there, so a shop with four
   categories does not leave ragged gaps in a six-column grid. */

.ss-cat { display: block; text-align: center; }
.ss-cat__media {
	/* display: block is load-bearing and was missing from the day this was
	   written. The element is a <span>, and aspect-ratio DOES NOT APPLY to a
	   non-replaced inline element — so every ratio on a category tile, the
	   original 1/1 and the 4/5 the grid layout asks for included, has been
	   inert since the section was built. Tile height came from whatever
	   proportions the client happened to upload. overflow: hidden was not
	   clipping properly either, for the same reason. */
	display: block;
	aspect-ratio: 1 / 1;
	max-width: 168px;
	margin-inline: auto;
	border-radius: var(--ss-cat-radius, var(--ss-radius));
	overflow: hidden;
	background: var(--ss-bg-alt);
}
.ss-cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ss-cat:hover .ss-cat__media img { transform: scale(1.04); }
.ss-cat__name { display: block; margin-top: 10px; font-size: 13px; font-weight: 500; }
.ss-cat:hover .ss-cat__name { text-decoration: underline; }

/* Column count comes from --ss-cat-min, not --ss-cols: fitting to what is
   actually there stops a shop with four categories leaving ragged gaps.
   The min() caps the minimum at half the row, so a phone always gets two
   tiles a row: Warm Boutique's 168px left a 360px phone one tile per row,
   six categories two and a half screens tall. */
.ss-categories .ss-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(var(--ss-cat-min, 150px), calc((100% - var(--ss-gap)) / 2)), 1fr));
}
.ss-categories .ss-track { --ss-cols: 8; }
.ss-categories.is-grid .ss-cat__media,
.ss-categories.is-masonry .ss-cat__media { max-width: none; aspect-ratio: 4 / 5; }
.ss-categories.is-circles .ss-cat__media { max-width: 148px; border-radius: 999px; }

/* ---------- category tile styles ----------

   A second axis over the layout above, the same way the card behaviours sit
   over the card archetypes: the layout decides grid, carousel or circles, and
   this decides what a tile looks like. Six, modelled on Woodmart's category
   hover set but cut to the ones that differ in behaviour rather than in trim.

   The count comes free — WP_Term already carries it, so no query is added to
   show it.

   Every hover effect resolves to its resting state under (pointer: coarse);
   the block at the end of this section does that in one place. */

.ss-cat__body { display: block; }
.ss-cat__count { display: none; font-size: 11.5px; color: var(--ss-mute); }

/* Tile shape belongs to the STYLE, not to the layout — but the layout got
   there first: `.ss-categories.is-grid .ss-cat__media` is 0,3,0 and beat every
   `.ss-catstyle-* .ss-cat__media` rule at 0,2,0, so three of the six styles
   were asking for a square and silently getting 4:5. Carrying the
   .ss-categories ancestor puts them on equal footing, and these rules sit
   after the layout block so they win on order.

   `plain` is deliberately absent: it defers to the layout, which is what it
   did before any of this existed and what the live sites are running.
   `circles` is excluded because a circle is a circle whatever the style. */
.ss-catstyle-overlay .ss-categories:not(.is-circles) .ss-cat__media,
.ss-catstyle-reveal .ss-categories:not(.is-circles) .ss-cat__media { max-width: none; aspect-ratio: 4 / 5; }

.ss-catstyle-zoom .ss-categories:not(.is-circles) .ss-cat__media,
.ss-catstyle-framed .ss-categories:not(.is-circles) .ss-cat__media,
.ss-catstyle-tinted .ss-categories:not(.is-circles) .ss-cat__media { max-width: none; aspect-ratio: 1 / 1; }

/* Name on the picture. */
.ss-catstyle-overlay .ss-cat { position: relative; }
.ss-catstyle-overlay .ss-cat__body {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	padding: 30px 12px 12px;
	background: linear-gradient(to top, rgb(0 0 0 / .72), rgb(0 0 0 / 0));
	color: #fff;
	border-end-start-radius: var(--ss-cat-radius, var(--ss-radius));
	border-end-end-radius: var(--ss-cat-radius, var(--ss-radius));
}
.ss-catstyle-overlay .ss-cat__name { margin-top: 0; }

/* Zoom. The frame holds still and the photograph grows inside it, which reads
   as deliberate where scaling the whole tile reads as a wobble. */
.ss-catstyle-zoom .ss-cat:hover .ss-cat__media img { transform: scale(1.12); }

/* Reveal. The count is the point: it answers "is there anything in here"
   before the shopper spends a tap finding out. */
.ss-catstyle-reveal .ss-cat { position: relative; overflow: hidden; border-radius: var(--ss-cat-radius, var(--ss-radius)); }
.ss-catstyle-reveal .ss-cat__media { border-radius: 0; }
.ss-catstyle-reveal .ss-cat__body {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	padding: 34px 12px 14px;
	background: linear-gradient(to top, rgb(0 0 0 / .78), rgb(0 0 0 / 0));
	color: #fff;
	transform: translateY(22px);
	transition: transform .25s ease;
}
.ss-catstyle-reveal .ss-cat__name { margin-top: 0; }
.ss-catstyle-reveal .ss-cat__count { display: block; opacity: 0; color: rgb(255 255 255 / .82); transition: opacity .25s ease; }
.ss-catstyle-reveal .ss-cat:hover .ss-cat__body { transform: none; }
.ss-catstyle-reveal .ss-cat:hover .ss-cat__count { opacity: 1; }

/* Framed. For shops whose category pictures are inconsistent — a border and a
   surface give ragged photography something to sit in. */
.ss-catstyle-framed .ss-cat {
	padding: 12px 12px 14px;
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	background: var(--ss-bg);
	transition: border-color .2s ease, background .2s ease;
}
.ss-catstyle-framed .ss-cat__count { display: block; margin-top: 2px; }
.ss-catstyle-framed .ss-cat:hover { border-color: var(--ss-accent-on-bg); background: var(--ss-bg-alt); }

/* Tinted. The wash clears on hover, so the tile the shopper is pointing at is
   the only one at full strength. */
.ss-catstyle-tinted .ss-cat__media { position: relative; }
.ss-catstyle-tinted .ss-cat__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--ss-accent) 34%, transparent);
	transition: opacity .25s ease;
}
.ss-catstyle-tinted .ss-cat:hover .ss-cat__media::after { opacity: 0; }

/* No hover on a phone: every style resolves to what it looks like at rest,
   and the two that hide the count show it. */
@media (pointer: coarse) {
	.ss-catstyle-reveal .ss-cat__body { transform: none; }
	.ss-catstyle-reveal .ss-cat__count { opacity: 1; }
	.ss-catstyle-tinted .ss-cat__media::after { opacity: 0; }
}


/* ---------- product card ---------- */

.ss-product {
	background: var(--ss-bg);
	border: 1px solid color-mix(in srgb, var(--ss-line) 70%, transparent);
	border-radius: var(--ss-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color .2s, box-shadow .2s;
}
.ss-product:hover { border-color: var(--ss-line); box-shadow: 0 4px 16px rgb(0 0 0 / .06); }

.ss-product__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.ss-product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ss-product:hover .ss-product__media img { transform: scale(1.03); }

.ss-product__body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ss-product__title { margin: 0; font-size: 13.5px; font-weight: var(--ss-title-weight, 500); line-height: 1.35; }
.ss-product__title a:hover { text-decoration: underline; }
.ss-product__price { font-size: 14px; font-weight: 600; }
.ss-product__price del { color: var(--ss-mute); font-weight: 400; margin-inline-end: 6px; }
.ss-product__price ins { text-decoration: none; color: var(--ss-sale); }
.ss-product .added_to_cart { display: none; }

.ss-badge {
	position: absolute;
	inset-block-start: 8px;
	inset-inline-start: 8px;
	padding: 3px 8px;
	border-radius: 3px;
	background: var(--ss-sale);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
}
.ss-badge--out { background: var(--ss-mute); }

/* Card archetypes. Image-led is the base above; these two vary it. */
.ss-card-spec .ss-product__media { aspect-ratio: 1 / 1; }
.ss-card-spec .ss-product__specs {
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	font-size: 12px;
	color: var(--ss-mute);
}

.ss-card-density { --ss-cols: 6; }
.ss-card-density .ss-product__media { aspect-ratio: 1 / 1; }
.ss-card-density .ss-product__title { font-size: 13px; }
.ss-card-density .ss-product__body { padding: 8px 10px 10px; }
@media (max-width: 1024px) { .ss-card-density { --ss-cols: 4; } }
@media (max-width: 720px)  { .ss-card-density { --ss-cols: 2; } }

/* ---------- card behaviour: the six styles ----------

   A second axis over the archetypes above, and independent of them: the
   archetype decides WHAT a card shows, this decides HOW it behaves. Six
   options rather than Woodmart's eleven, because several of theirs differ
   only in decoration and a client choosing between near-identical cards is
   being given work rather than a choice.

   Everything here is CSS on a body class. The action row is a direct child of
   the card, which is what makes the anchoring work without knowing any
   heights: the top of the card is the top of the image, the bottom of the
   card is the bottom of the text.

   All of it collapses on a touch screen — see the (pointer: coarse) block. */

.ss-product { position: relative; }

.ss-product__media-alt {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .35s ease;
}

/* The body is the positioning context for the action row, which is how the
   hover styles land the row on the bottom edge of the photograph without any
   rule knowing how tall the photograph is. */
.ss-product__body { position: relative; }
/* stretch, not center: the WhatsApp chip is a fixed 34px and the button is
   whatever its text makes it (30px), so centring left the pair visibly
   mismatched. The chip keeps its own height; the button grows to meet it. */
.ss-product__actions { display: flex; align-items: stretch; gap: 8px; margin-block-start: auto; padding-block-start: 4px; }
.ss-product__actions .ss-btn { flex: 1; }

.ss-product__ask {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: none;
	border: 1px solid var(--ss-line);
	/* The button beside it is a pill on most treatments; a 2px-radius square
	   next to a pill reads as two unrelated controls rather than one row. */
	border-radius: var(--ss-radius-btn, var(--ss-radius));
	color: var(--ss-accent-on-bg);
}
.ss-product__ask:hover { background: var(--ss-bg-alt); }

.ss-product__excerpt { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ss-mute); }

/* The reveal shared by the styles that hide their actions until hover. */
/* A surface under the row, because it now sits on a photograph and a
   photograph can be any colour. Without it the black accent button and the
   dark chip both vanished on a dark product image — the same mistake as the
   hero button that painted itself with the treatment's ink. A control over an
   image needs a background of its own, not a colour that happens to work. */
.ss-cardstyle-hover .ss-product__actions,
.ss-cardstyle-swap .ss-product__actions {
	position: absolute;
	inset-inline: 10px;
	inset-block-end: calc(100% + 8px);
	margin: 0;
	padding: 6px;
	border-radius: var(--ss-radius);
	background: color-mix(in srgb, var(--ss-bg) 94%, transparent);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
}
.ss-cardstyle-hover .ss-product:hover .ss-product__actions,
.ss-cardstyle-swap .ss-product:hover .ss-product__actions {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

/* On the overlay style the actions are already over the image, so they only
   need to fade rather than move — but they sit on a dark scrim, where an
   accent that happens to be near-black is invisible. A pale button on a dark
   ground is what this needs, so it reads from --ss-bg the way the Warm
   Boutique hero button does. */
.ss-cardstyle-overlay .ss-product__actions {
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: none;
}
.ss-cardstyle-overlay .ss-product:hover .ss-product__actions { opacity: 1; pointer-events: auto; }
.ss-cardstyle-overlay .ss-product__actions .ss-btn { background: var(--ss-bg); color: var(--ss-ink); border-color: transparent; }
.ss-cardstyle-overlay .ss-product__ask { background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .38); color: #fff; }
.ss-cardstyle-overlay .ss-product__ask:hover { background: rgb(255 255 255 / .28); }

/* Image swap. A product with one photograph simply does not swap, which is
   the honest behaviour — better than a card that flickers to the same image. */
.ss-cardstyle-swap .ss-product:hover .ss-product__media-alt { opacity: 1; }
.ss-cardstyle-swap .ss-product:hover .ss-product__media img { transform: none; }

/* Icons. Add to cart and WhatsApp as marks in the image corner. Woodmart puts
   wishlist and compare here; this theme has neither, and asking about a
   product on WhatsApp is worth more in this market than a wishlist is. */
/* The icons style makes the body static so the row's containing block becomes
   the card itself — whose top edge is the top of the photograph. Same element,
   opposite corner, one line of CSS. */
.ss-cardstyle-icons .ss-product__body { position: static; }
.ss-cardstyle-icons .ss-product__actions {
	position: absolute;
	inset-block-start: 8px;
	inset-inline-end: 8px;
	flex-direction: column;
	padding: 0;
	opacity: 0;
	transform: translateX(6px);
	transition: opacity .2s ease, transform .2s ease;
}
.ss-cardstyle-icons .ss-product:hover .ss-product__actions { opacity: 1; transform: none; }
.ss-cardstyle-icons .ss-product__actions .ss-btn,
.ss-cardstyle-icons .ss-product__ask {
	flex: none;
	width: 34px;
	height: 34px;
	min-height: 0;
	padding: 0;
	background: var(--ss-bg);
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	color: var(--ss-ink);
	font-size: 0;
}
/* Woo writes the button's label as text. Rather than fight its markup, the
   label is collapsed to nothing and the glyph drawn as a mask on a
   pseudo-element, which keeps the accessible name intact. display: block is
   load-bearing — an inline pseudo-element ignores width and height, which is
   how this first rendered as an empty circle. */
.ss-cardstyle-icons .ss-product__actions .ss-btn::before {
	content: "";
	display: block;
	width: 17px;
	height: 17px;
	background: currentColor;
	-webkit-mask-image: var(--ss-cart-mark);
	mask-image: var(--ss-cart-mark);
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

/* Summary on hover. The excerpt is printed only for this style, so it costs
   nothing on the other five. */
.ss-cardstyle-info .ss-product__excerpt {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height .25s ease, opacity .25s ease;
}
.ss-cardstyle-info .ss-product:hover .ss-product__excerpt { max-height: 4em; opacity: 1; }

/* Two cards to a row on a phone leaves the action row about 128px. A 44px
   WhatsApp chip and an 8px gap take a third of that, so the button was left
   with 76px and "Select options" wrapped onto two lines inside a pill — the
   fault in the screenshot. The chip moves onto the photograph, where there is
   room for it, and the button takes the whole row.

   Scoped to a coarse pointer as well as the width on purpose: four of the six
   card styles use this same element as an absolutely-positioned overlay on a
   fine pointer, and a narrow desktop window must not inherit this. The icons
   style is excluded because its controls carry no label at all — nothing to
   wrap — and its body is deliberately position: static, which would send an
   absolute chip to the wrong containing block. */
@media (max-width: 720px) and (pointer: coarse) {
	body:not(.ss-cardstyle-icons) .ss-product__actions .ss-btn { flex: 1 1 100%; }
	body:not(.ss-cardstyle-icons) .ss-product__ask {
		/* .ss-product__body is the containing block, so 100% of its height
		   lands the chip's bottom edge on the photograph's bottom edge. */
		position: absolute;
		inset-block-end: calc(100% + 8px);
		inset-inline-end: 8px;
		z-index: 2;
		border-radius: 999px;
		/* A control sitting on a photograph needs a surface of its own — the
		   photograph can be any colour. */
		background: var(--ss-bg);
		border: 1px solid var(--ss-line);
		color: var(--ss-accent-on-bg);
		box-shadow: 0 1px 4px rgb(0 0 0 / .16);
	}
}

/* On image. The media fills the card and the text sits on it, which needs no
   absolute positioning at all — the card is a flex column, the image is the
   background layer, and everything else stacks above it. */
.ss-cardstyle-overlay .ss-product { aspect-ratio: 3 / 4; justify-content: flex-end; }
.ss-cardstyle-overlay .ss-product__media { position: absolute; inset: 0; aspect-ratio: auto; }
.ss-cardstyle-overlay .ss-product__body {
	position: relative;
	z-index: 1;
	flex: none;
	padding-block-start: 44px;
	background: linear-gradient(to top, rgb(0 0 0 / .74) 0%, rgb(0 0 0 / .45) 55%, rgb(0 0 0 / 0) 100%);
	color: #fff;
}
.ss-cardstyle-overlay .ss-product__title a,
.ss-cardstyle-overlay .ss-product__price { color: #fff; }
.ss-cardstyle-overlay .ss-product__price del { color: rgb(255 255 255 / .7); }
.ss-cardstyle-overlay .ss-product__price ins { color: #fff; }

/* ---------- promo banner row ---------- */

.ss-banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--ss-gap); }
.ss-banner {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: var(--ss-radius);
}
.ss-banner img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.ss-banner__label {
	position: absolute;
	inset-block-end: 12px;
	inset-inline-start: 12px;
	padding: 6px 12px;
	border-radius: 4px;
	background: color-mix(in srgb, var(--ss-bg) 88%, transparent);
	font-weight: 600;
	font-size: 14px;
}

.ss-promo-banners.is-one-large-two-small .ss-banners { grid-template-columns: 2fr 1fr; grid-auto-rows: 1fr; }
.ss-promo-banners.is-one-large-two-small .ss-banner { aspect-ratio: auto; }
.ss-promo-banners.is-one-large-two-small .ss-banner:first-child { grid-row: span 2; }
.ss-promo-banners.is-one-large-two-small .ss-banner img { height: 100%; min-height: 180px; }

@media (max-width: 720px) {
	.ss-promo-banners.is-one-large-two-small .ss-banners { grid-template-columns: 1fr; }
	.ss-promo-banners.is-one-large-two-small .ss-banner:first-child { grid-row: auto; }
}

/* ---------- category showcase ---------- */

.ss-showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--ss-gap); align-items: start; }
.ss-cat-showcase.is-image-right .ss-showcase { direction: rtl; }
.ss-cat-showcase.is-image-right .ss-showcase > * { direction: ltr; }
.ss-showcase__feature {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	border-radius: var(--ss-radius);
}
.ss-showcase__feature img { width: 100%; height: 100%; object-fit: cover; }
.ss-showcase__label {
	position: absolute;
	inset-block-end: 14px;
	inset-inline-start: 14px;
	display: grid;
	padding: 10px 14px;
	border-radius: var(--ss-radius);
	background: color-mix(in srgb, var(--ss-bg) 90%, transparent);
}
.ss-showcase__label strong { font-size: 18px; }
.ss-showcase__label em { font-style: normal; font-size: 13px; color: var(--ss-mute); }
@media (max-width: 900px) { .ss-showcase { grid-template-columns: 1fr; } }

/* ---------- product tabs ---------- */

.ss-tabs__bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ss-tabs__btn {
	padding: 8px 16px;
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius-btn, var(--ss-radius));
	background: transparent;
	color: var(--ss-mute);
	font: inherit;
	cursor: pointer;
}
.ss-tabs__btn[aria-selected="true"] { background: var(--ss-accent); border-color: var(--ss-accent); color: var(--ss-accent-ink); }

/* ---------- deal countdown ---------- */

.ss-countdown {
	display: inline-flex;
	gap: 2px;
	padding: 6px 12px;
	border-radius: var(--ss-radius);
	background: var(--ss-sale);
	color: #fff;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

/* ---------- testimonials ---------- */

.ss-quote { margin: 0; padding: 20px; border: 1px solid var(--ss-line); border-radius: var(--ss-radius); background: var(--ss-bg); }
.ss-quote blockquote { margin: 0 0 12px; }
.ss-quote figcaption strong { display: block; }
.ss-quote figcaption span { color: var(--ss-mute); font-size: 13px; }

/* ---------- brand / payment logos ---------- */

.ss-brands__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; }
.ss-brands__item img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .65; transition: opacity .15s, filter .15s; }
.ss-brands__item:hover img { filter: none; opacity: 1; }

/* ---------- column counts for the remaining sections ----------
   These counts used to be written as inline style="--ss-cols:N" in the
   template, which beat every stylesheet rule including the media queries —
   so none of these sections had ever responded to screen width. They live
   here now, and auto-fit does the responsive work without a breakpoint. */

.ss-blog .ss-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ss-testimonials .ss-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ss-testimonials.is-single .ss-grid { grid-template-columns: 1fr; max-width: 720px; }
.ss-testimonials .ss-track { --ss-cols: 3; }
.ss-gallery .ss-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ss-gallery .ss-track { --ss-cols: 6; }
.ss-deal.is-single .ss-grid { grid-template-columns: 1fr; }
.ss-showcase__products { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

@media (max-width: 720px) {
	.ss-testimonials .ss-track { --ss-cols: 1; }
	.ss-gallery .ss-track { --ss-cols: 3; }
}

/* ---------- lookbook / gallery ---------- */

.ss-gallery__item { display: block; overflow: hidden; border-radius: var(--ss-radius); aspect-ratio: 1 / 1; }
.ss-gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- story / about ---------- */

/* The variant class is on the <section> (.ss-story.is-image-right); the grid
   is the inner .ss-story__inner. They used to share the name .ss-story, which
   made the section wrapper the grid and left the variant unmatched. */
.ss-story__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.ss-story.is-image-right .ss-story__inner { direction: rtl; }
.ss-story.is-image-right .ss-story__inner > * { direction: ltr; }
.ss-story.is-text-only .ss-story__inner { grid-template-columns: 1fr; max-width: 720px; }
.ss-story__media img { width: 100%; border-radius: var(--ss-radius); }
@media (max-width: 720px) { .ss-story__inner { grid-template-columns: 1fr; } }

/* ---------- blog posts ---------- */

.ss-post__media { display: block; overflow: hidden; border-radius: var(--ss-radius); aspect-ratio: 16 / 10; margin-bottom: 10px; }
.ss-post__media img { width: 100%; height: 100%; object-fit: cover; }
.ss-post__title { font-size: 16px; margin-bottom: 4px; }
.ss-post__excerpt { margin: 0; color: var(--ss-mute); font-size: 14px; }

/* ---------- FAQ ---------- */

.ss-faq__list { max-width: 820px; }
.ss-faq__list.is-two-column { max-width: none; columns: 2; column-gap: 32px; }
.ss-faq__item { break-inside: avoid; border-bottom: 1px solid var(--ss-line); padding-block: 12px; }
.ss-faq__item summary { cursor: pointer; font-weight: 500; }
.ss-faq__item p { margin: 8px 0 0; color: var(--ss-mute); }
@media (max-width: 720px) { .ss-faq__list.is-two-column { columns: 1; } }

/* ---------- CTA band ---------- */

.ss-cta-band { border-block: 1px solid var(--ss-line); }
.ss-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.ss-cta__copy h2 {
	margin-bottom: 4px;
	font-size: var(--ss-h-size, clamp(17px, 1.9vw, 22px));
	font-weight: var(--ss-h-weight, 600);
	text-transform: var(--ss-h-transform, none);
	letter-spacing: var(--ss-h-tracking, -0.01em);
}
.ss-cta__copy p { margin: 0; color: var(--ss-mute); }

/* ---------- footer ----------
   One kit, five arrangements, three tones. The variant class and the tone
   class both sit on <body> and are independent: any tone works with any
   arrangement, so neither has to know about the other.

   Every colour below reads from a --ss-footer-* token. The tone blocks set
   those tokens and nothing else, which is what keeps contrast correct in all
   three tones across all three treatments — the dark and accent tones derive
   from --ss-ink and --ss-accent-ink, so a treatment that changes its palette
   carries the footer with it. */

.ss-footer {
	--ss-footer-bg: var(--ss-bg-alt);
	--ss-footer-ink: var(--ss-ink);
	--ss-footer-mute: var(--ss-mute);
	--ss-footer-line: var(--ss-line);
	--ss-footer-surface: var(--ss-bg);
	--ss-footer-hover-bg: var(--ss-accent);
	--ss-footer-hover-ink: var(--ss-accent-ink);

	margin-top: 0;
	padding-block: 44px 0;
	background: var(--ss-footer-bg);
	border-top: 1px solid var(--ss-footer-line);
	color: var(--ss-footer-mute);
	font-size: 14px;
}

/* Dark: built from the treatment's own ink, so it is never a flat #000 sitting
   apart from the palette. Chips hover to the page background rather than the
   accent — Bold Retail's accent is near-black and would vanish here. */
.ss-footer-tone-dark .ss-footer {
	--ss-footer-bg: var(--ss-ink);
	--ss-footer-ink: var(--ss-bg);
	--ss-footer-mute: color-mix(in srgb, var(--ss-bg) 66%, transparent);
	--ss-footer-line: color-mix(in srgb, var(--ss-bg) 16%, transparent);
	--ss-footer-surface: color-mix(in srgb, var(--ss-bg) 8%, transparent);
	--ss-footer-hover-bg: var(--ss-bg);
	--ss-footer-hover-ink: var(--ss-ink);
}

/* Accent: --ss-accent-ink is the treatment's own answer to "what reads on the
   accent", so text contrast is already solved. */
.ss-footer-tone-accent .ss-footer {
	--ss-footer-bg: var(--ss-accent);
	--ss-footer-ink: var(--ss-accent-ink);
	--ss-footer-mute: color-mix(in srgb, var(--ss-accent-ink) 74%, transparent);
	--ss-footer-line: color-mix(in srgb, var(--ss-accent-ink) 22%, transparent);
	--ss-footer-surface: color-mix(in srgb, var(--ss-accent-ink) 10%, transparent);
	--ss-footer-hover-bg: var(--ss-accent-ink);
	--ss-footer-hover-ink: var(--ss-accent);
}

.ss-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 32px 28px;
	padding-bottom: 36px;
}

.ss-footer h3 {
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ss-footer-ink);
}

.ss-footer__contact { max-width: 34ch; }
.ss-footer .ss-phone, .ss-footer .ss-email { display: block; margin-block: 3px; color: var(--ss-footer-ink); }
.ss-footer .ss-address { font-style: normal; color: var(--ss-footer-mute); margin-bottom: 6px; }
.ss-footer .ss-hours { margin: 8px 0 0; color: var(--ss-footer-mute); }

.ss-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 9px;
}
.ss-footer__menu a { color: var(--ss-footer-mute); }
.ss-footer__menu a:hover { color: var(--ss-footer-ink); text-decoration: none; }

/* The second half of a split category list keeps its column alignment
   without repeating the heading. */
.ss-footer__links--continued h3 { visibility: hidden; }

/* ---------- social marks ---------- */

.ss-socials {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ss-socials__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--ss-footer-line);
	border-radius: 999px;
	background: var(--ss-footer-surface);
	color: var(--ss-footer-mute);
	transition: color .15s, border-color .15s, background .15s;
}
.ss-socials__link:hover {
	color: var(--ss-footer-hover-ink);
	background: var(--ss-footer-hover-bg);
	border-color: var(--ss-footer-hover-bg);
	text-decoration: none;
}
.ss-social-mark { display: block; }

/* ---------- payment strip ----------
   Its own line rather than the bottom bar: the floating WhatsApp button is
   fixed to the bottom-right, which is where a right-aligned strip in the bar
   would sit once the reader has scrolled far enough to see the footer. */

.ss-footer__strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding-bottom: 20px;
}
.ss-footer__strip-label {
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ss-footer-mute);
}
.ss-paylist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.ss-paylist__item {
	padding: 4px 10px;
	border: 1px solid var(--ss-footer-line);
	border-radius: 4px;
	background: var(--ss-footer-surface);
	font-size: 12px;
	color: var(--ss-footer-mute);
	white-space: nowrap;
}

/* ---------- bottom bar ---------- */

.ss-footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	border-top: 1px solid var(--ss-footer-line);
	padding-block: 16px;
	font-size: 13px;
	color: var(--ss-footer-mute);
}
.ss-footer__bar p { margin: 0; }

/* ---------- variant: stacked ---------- */

.ss-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--ss-footer-line);
}
.ss-footer__brand h3 { margin-bottom: 4px; font-size: 19px; letter-spacing: -0.01em; text-transform: none; }
.ss-footer__brand strong { color: var(--ss-footer-ink); }
.ss-footer__brand .ss-hours { margin: 0; }
.ss-footer-stacked .ss-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 32px 36px; }

/* ---------- variant: compact ---------- */

.ss-footer-compact .ss-footer { padding-block: 26px 0; }
.ss-footer__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding-bottom: 22px;
}
.ss-footer__row .ss-footer__brand strong { display: block; }
.ss-footer__inline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
}
.ss-footer__inline a { color: var(--ss-footer-mute); }
.ss-footer__inline a:hover { color: var(--ss-footer-ink); text-decoration: none; }

/* ---------- variant: newsletter ---------- */

.ss-footer__signup {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 36px;
	padding: 22px 24px;
	border: 1px solid var(--ss-footer-line);
	border-radius: var(--ss-radius);
	background: var(--ss-footer-surface);
}
.ss-footer__signup h3 { margin-bottom: 4px; font-size: 17px; letter-spacing: -0.01em; text-transform: none; }
.ss-footer__signup p { margin: 0; color: var(--ss-footer-mute); max-width: 52ch; }
.ss-footer__signup .ss-btn { display: inline-flex; align-items: center; gap: 9px; flex: none; }

/* ---------- variant: mega ---------- */

.ss-footer-mega .ss-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 0.9fr; }

/* ---------- touch targets ----------
   Buttons that clear 44px on a phone. Applied by pointer type rather than
   width so a small laptop window does not grow its buttons. */

@media (pointer: coarse) {
	.ss-woo .button,
	.ss-woo button.button,
	.ss-woo input.button,
	.ss-woo a.button,
	.ss-btn { min-height: 44px; }

	.ss-woo form.cart .button,
	.ss-woo .single_add_to_cart_button { padding-block: 12px; }

	.ss-menu a { padding-block: 12px; }
	.ss-footer__menu a { display: inline-block; padding-block: 4px; }
	.ss-socials__link { width: 44px; height: 44px; }

	/* Woo's block cart. The quantity control is the thing people actually
	   press on this page and it ships at 30x25; remove was a 24px square.
	   Everything here carries the body-class prefix and the element type:
	   without both, Woo's own rules win and the sizes silently do nothing —
	   which is how the first attempt at this shipped half-inert. The input
	   size matters twice over: below 16px, tapping it makes iOS zoom the
	   whole page in. */
	.woocommerce-cart .wc-block-components-quantity-selector { display: flex; align-items: stretch; width: auto; max-width: none; min-height: 44px; }
	.woocommerce-cart button.wc-block-components-quantity-selector__button { flex: 0 0 44px; width: 44px; height: 44px; font-size: 18px; }
	.woocommerce-cart input.wc-block-components-quantity-selector__input { flex: 0 0 48px; width: 48px; height: 44px; font-size: 16px; }
	.woocommerce-cart .wc-block-cart-item__remove-link { min-width: 44px; min-height: 44px; }

	/* Woo's classic forms — login, register, lost password, edit address.
	   font: inherit gives them the 15px body size, and under 16px iOS zooms
	   the whole page the moment a field is tapped, which on a login form is
	   the first thing anyone does. */
	.ss-woo input[type="text"],
	.ss-woo input[type="email"],
	.ss-woo input[type="tel"],
	.ss-woo input[type="password"],
	.ss-woo input[type="number"],
	.ss-woo textarea { font-size: 16px; }
	.ss-woo input[type="checkbox"] { width: 18px; height: 18px; }

	/* THERE IS NO HOVER ON A PHONE. Every card style that hides something
	   behind a hover shows it instead, which is why the reveal is worth
	   offering at all: the desktop version can be clean because the phone
	   version is not depending on it. */
	.ss-cardstyle-hover .ss-product__actions,
	.ss-cardstyle-swap .ss-product__actions,
	.ss-cardstyle-icons .ss-product__actions,
	.ss-cardstyle-overlay .ss-product__actions {
		position: static;
		flex-direction: row;
		margin-block-start: auto;
		padding: 0;
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}
	.ss-cardstyle-info .ss-product__excerpt { max-height: none; opacity: 1; }
	.ss-cardstyle-icons .ss-product__actions .ss-btn { width: auto; flex: 1; font-size: 13px; }
	.ss-cardstyle-icons .ss-product__actions .ss-btn::before { display: none; }
	.ss-product__ask { width: 44px; height: 44px; }
}

/* ---------- footer, small screens ---------- */

@media (max-width: 980px) {
	.ss-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ss-footer-mega .ss-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ss-footer-stacked .ss-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ss-footer__links--continued h3 { display: none; }
}

@media (max-width: 620px) {
	.ss-footer__grid { grid-template-columns: 1fr; gap: 26px; }
	.ss-footer-mega .ss-footer__grid { grid-template-columns: 1fr; }
	.ss-footer-stacked .ss-footer__grid { grid-template-columns: 1fr; }
	.ss-footer__contact { max-width: none; }
	.ss-footer__row { flex-direction: column; align-items: flex-start; }
	.ss-footer__inline { justify-content: flex-start; }
	.ss-footer__signup { padding: 18px; }
	.ss-footer__signup .ss-btn { width: 100%; justify-content: center; }
}

/* ---------- floating WhatsApp button ---------- */

.ss-wa-float {
	position: fixed;
	inset-block-end: 18px;
	inset-inline-end: 18px;
	z-index: 60;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 999px;
	background: #25d366;
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.ss-wa-float:hover { text-decoration: none; }
@media (max-width: 720px) {
	.ss-wa-float__label { display: none; }
	.ss-wa-float { padding: 12px; }
}

/* =========================================================================
   7. WooCommerce

   Woo's three stylesheets are dequeued, so everything its templates output is
   styled here.
   ========================================================================= */

.ss-woo { padding-block: 24px 48px; }

.ss-crumbs { font-size: 13px; color: var(--ss-mute); margin-bottom: 14px; }
.ss-crumb__sep { margin-inline: 6px; opacity: .6; }

.ss-woo .woocommerce-products-header__title,
.ss-woo .product_title {
	margin-bottom: 12px;
	font-size: var(--ss-h-size, clamp(17px, 1.9vw, 22px));
	font-weight: var(--ss-h-weight, 600);
	text-transform: var(--ss-h-transform, none);
	letter-spacing: var(--ss-h-tracking, -0.01em);
}
.ss-woo h1.entry-title { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }

.woocommerce-result-count { color: var(--ss-mute); font-size: 14px; margin: 0; }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select,
.ss-woo select {
	padding: 8px 12px;
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	background: var(--ss-bg);
	font: inherit;
	color: inherit;
}
/* Here rather than in the touch block above: `font: inherit` just set the
   15px body size again, and under 16px iOS zooms the page when the shop's
   sort menu is tapped. */
@media (pointer: coarse) {
	.woocommerce-ordering select,
	.ss-woo select { min-height: 44px; font-size: 16px; }
}

.ss-woo .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	list-style: none;
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: var(--ss-radius);
	border: 1px solid var(--ss-line);
	background: var(--ss-bg-alt);
}
.woocommerce-error { border-color: var(--ss-sale); color: var(--ss-sale); }

/* ---------- product loop ---------- */

.ss-woo ul.products {
	display: grid;
	grid-template-columns: repeat(var(--ss-cols), minmax(0, 1fr));
	gap: var(--ss-gap);
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
}
.ss-woo ul.products::before,
.ss-woo ul.products::after { content: none; }
.ss-product-item { list-style: none; display: flex; }
.ss-product-item > .ss-product { width: 100%; }

/* Woo's own loop wrapper, for when its cached template path wins over ours. */
.ss-woo ul.products > li { list-style: none; display: flex; }
.ss-woo ul.products > li > .ss-product { width: 100%; }

.ss-woo .woocommerce-pagination { margin-top: 28px; }
.ss-woo .woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}
.ss-woo .woocommerce-pagination a,
.ss-woo .woocommerce-pagination span {
	display: block;
	min-width: 38px;
	padding: 8px 10px;
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	text-align: center;
}
.ss-woo .woocommerce-pagination .current { background: var(--ss-accent); border-color: var(--ss-accent); color: var(--ss-accent-ink); }

/* ---------- single product, base Woo markup ---------- */

.ss-woo div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}
.ss-woo div.product .woocommerce-product-gallery { grid-column: 1; }
.ss-woo div.product .summary { grid-column: 2; }
.ss-woo div.product .woocommerce-tabs,
.ss-woo div.product .related,
.ss-woo div.product .upsells { grid-column: 1 / -1; }

.woocommerce-product-gallery__image img { border-radius: var(--ss-radius); }
.flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}
.flex-control-thumbs img { border-radius: 6px; cursor: pointer; }

.ss-woo .summary .price { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.ss-woo .summary .price del { color: var(--ss-mute); font-weight: 400; margin-inline-end: 8px; }
.ss-woo .summary .price ins { text-decoration: none; color: var(--ss-sale); }
.ss-woo .woocommerce-product-details__short-description { color: var(--ss-mute); margin-bottom: 16px; }
.ss-woo .product_meta { margin-top: 18px; font-size: 13px; color: var(--ss-mute); display: grid; gap: 4px; }

.ss-woo form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-block: 16px; }
.ss-woo .quantity input {
	width: 76px;
	padding: 10px;
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	font: inherit;
	text-align: center;
}
.ss-woo .stock.in-stock { color: #0f8a3c; }
.ss-woo .stock.out-of-stock { color: var(--ss-sale); }

.ss-woo .woocommerce-tabs { margin-top: 40px; }
.ss-woo .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	border-bottom: 1px solid var(--ss-line);
}
.ss-woo .woocommerce-tabs ul.tabs li { margin-bottom: -1px; }
.ss-woo .woocommerce-tabs ul.tabs a {
	display: block;
	padding: 10px 16px;
	border: 1px solid transparent;
	border-bottom: 0;
	border-radius: var(--ss-radius) var(--ss-radius) 0 0;
}
.ss-woo .woocommerce-tabs ul.tabs li.active a { border-color: var(--ss-line); background: var(--ss-bg); }
.ss-woo table.shop_attributes { width: 100%; border-collapse: collapse; }
.ss-woo table.shop_attributes th,
.ss-woo table.shop_attributes td { padding: 8px 10px; border-bottom: 1px solid var(--ss-line); text-align: start; }
.ss-woo table.shop_attributes th { font-weight: 600; width: 200px; }

.ss-woo .related > h2, .ss-woo .upsells > h2 { margin-top: 36px; }

@media (max-width: 860px) {
	.ss-woo div.product { grid-template-columns: 1fr; gap: 20px; }
	.ss-woo div.product .woocommerce-product-gallery,
	.ss-woo div.product .summary { grid-column: 1; }
}

/* ---------- Woo buttons ----------
   woocommerce_template_loop_add_to_cart() renders with whatever class it is
   given, not .button — so both are targeted. */

.ss-woo .button,
.ss-woo button.button,
.ss-woo input.button,
.ss-woo a.button,
.ss-product .button {
	display: inline-block;
	padding: 10px 18px;
	border: 0;
	border-radius: var(--ss-radius-btn, var(--ss-radius));
	background: var(--ss-accent);
	color: var(--ss-accent-ink);
	font: inherit;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	text-align: center;
}
.ss-woo .button:hover, .ss-product .button:hover { text-decoration: none; opacity: .9; }
.ss-woo .button.alt { background: var(--ss-accent); }
.ss-card-image .ss-product .button,
.ss-card-spec .ss-product .button { display: none; }
.ss-card-density .ss-product .button { width: 100%; padding: 8px 10px; font-size: 13px; }
.ss-card-density .ss-product .ss-btn {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 7px 10px;
	font-size: 12.5px;
	text-align: center;
}
.ss-product .ss-btn--sm { line-height: 1.4; }

/* ---------- cart, checkout and forms ---------- */

.ss-woo table.shop_table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.ss-woo table.shop_table th,
.ss-woo table.shop_table td { padding: 12px 10px; border-bottom: 1px solid var(--ss-line); text-align: start; vertical-align: middle; }
.ss-woo table.shop_table img { width: 60px; border-radius: 6px; }
.ss-woo .cart_totals, .ss-woo .cross-sells { margin-top: 24px; }

.ss-woo .woocommerce-form__label { display: block; margin-bottom: 10px; }
.ss-woo .form-row { display: grid; gap: 6px; margin-bottom: 14px; }
.ss-woo label { font-size: 14px; font-weight: 500; }
.ss-woo input[type="text"],
.ss-woo input[type="email"],
.ss-woo input[type="tel"],
.ss-woo input[type="password"],
.ss-woo input[type="number"],
.ss-woo textarea,
.ss-woo .select2-container .select2-selection {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	background: var(--ss-bg);
	font: inherit;
	color: inherit;
}
.ss-woo .col2-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 720px) { .ss-woo .col2-set { grid-template-columns: 1fr; } }

/* ---------- cart and checkout: Woo's block markup ----------

   Woo ships cart and checkout as blocks now, so the classic rules above only
   reach the pages still on the old templates — order received, my account.
   That is why the cart arrived on the dev site looking like no theme was
   installed: the theme had CSS for markup WooCommerce had stopped emitting.

   Scoped on Woo's own body classes rather than .ss-woo. Cart and checkout are
   ordinary pages that happen to contain a block, so they render through
   page.php and never get the .ss-woo wrapper the shop templates add.

   These rules reach into Woo's internal class names, which is a liability
   across Woo versions and across every client at once. They are kept together
   here, and limited to sizing and tokens, so a Woo release that renames
   something is one place to look and degrades to Woo's own styling rather
   than to a broken checkout. */

.woocommerce-cart .wc-block-cart,
.woocommerce-checkout .wc-block-checkout { font-family: var(--ss-font); }

.woocommerce-cart .wc-block-cart-item__product a { color: var(--ss-ink); text-decoration: none; }

/* The theme carries woocommerce-block-theme-has-button-styles (see
   ss_body_class), which is Woo's own opt-out hook and stands its button rules
   down. That was necessary — Woo's selector is 0,3,1 and set min-height: 3em,
   which is 39px at its 13px font, so Place Order was 40px tall and no shorter
   selector was going to move it. Claiming them means styling them fully. */

.woocommerce-cart .wc-block-components-button:not(.is-link),
.woocommerce-checkout .wc-block-components-button:not(.is-link) {
	min-height: 44px;
	padding: 12px 24px;
	border: 0;
	border-radius: var(--ss-radius-btn, var(--ss-radius));
	font-size: 15px;
	font-weight: 600;
}

/* The two that carry the order forward get the accent and a little more
   height. They are the only buttons on these pages that matter.
   :not(.is-link) is repeated here only to match the specificity of the rule
   above — without it the 44px base wins and the 48 does nothing. */
.woocommerce-cart .wc-block-cart__submit-button:not(.is-link),
.woocommerce-checkout .wc-block-components-checkout-place-order-button:not(.is-link) {
	min-height: 48px;
	background: var(--ss-accent);
	color: var(--ss-accent-ink);
}

/* The line items are a <table>, and a table is sized by its content rather
   than by its container. Woo's own phone layout gives the row two fixed
   tracks, 80px and 132px, and expects the price to live inside the product
   cell; here it is a sibling <td>, so it was auto-placed into a third
   implicit track. The row demanded 356px inside a 328px column, and the
   shell's overflow-x: clip cut the price off in silence — no scrollbar, no
   clue, and the customer could not see what they were being charged.

   Two tracks, the second flexible, and the price on its own line under the
   product name.

   The selectors carry .wc-block-cart and the table type because Woo's rule
   is .is-mobile table.wc-block-cart-items .wc-block-cart-items__row and a
   shorter selector simply loses. Being loaded later is not enough. */

@media (max-width: 600px) {
	.woocommerce-cart .wc-block-cart table.wc-block-cart-items,
	.woocommerce-cart .wc-block-cart table.wc-block-cart-items > thead,
	.woocommerce-cart .wc-block-cart table.wc-block-cart-items > tbody { display: block; width: 100%; }

	.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
		grid-template-columns: 72px minmax(0, 1fr);
		column-gap: 14px;
		row-gap: 6px;
		width: 100%;
		margin: 0;
	}
	.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__image {
		grid-column: 1;
		grid-row: 1 / span 2;
		align-self: start;
		width: 72px;
		padding: 0;
	}
	.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__product {
		grid-column: 2;
		grid-row: 1;
		min-width: 0;
		padding: 0;
	}
	.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__total {
		grid-column: 2;
		grid-row: 2;
		min-width: 0;
		justify-content: flex-start;
		text-align: start;
		margin: 0;
		padding: 0;
	}
	/* The wrapper stacks price over sale badge and right-aligns them, which
	   is right in a right-hand column and wrong under the product name. */
	.woocommerce-cart .wc-block-cart-item__total-price-and-sale-badge-wrapper { align-items: flex-start; }
}

/* =========================================================================
   8. Shop filters

   Plain links that toggle URL parameters. JS only opens and closes the
   top-bar panels and the mobile drawer; without it the panels stay open.
   ========================================================================= */

.ss-check,
.ss-chip,
.ss-filter__title { -webkit-tap-highlight-color: transparent; }

/* ---------- a filter group, shared by both layouts ---------- */

.ss-filter__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .01em;
}
.ss-filter__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--ss-accent);
	color: var(--ss-accent-ink);
	font-size: 11px;
}
.ss-filter__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.ss-check {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 6px 4px;
	border-radius: 4px;
	font-size: 13.5px;
	color: var(--ss-ink);
}
.ss-check:hover { background: var(--ss-bg-alt); text-decoration: none; }
.ss-check__box {
	flex: none;
	width: 16px;
	height: 16px;
	border: 1.5px solid var(--ss-line);
	border-radius: 3px;
	background: var(--ss-bg);
	position: relative;
}
.ss-check.is-on .ss-check__box { background: var(--ss-accent); border-color: var(--ss-accent); }
.ss-check.is-on .ss-check__box::after {
	content: "";
	position: absolute;
	inset-block-start: 1px;
	inset-inline-start: 5px;
	width: 4px;
	height: 8px;
	border: solid var(--ss-accent-ink);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.ss-check__label { flex: 1; }
.ss-check__n { color: var(--ss-mute); font-size: 12px; }
.ss-check.is-on .ss-check__label { font-weight: 500; }

.ss-price { display: flex; align-items: center; gap: 7px; }
.ss-price input[type="number"] {
	width: 100%;
	min-width: 0;
	padding: 7px 8px;
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	background: var(--ss-bg);
	font: inherit;
	font-size: 13px;
	color: inherit;
}
.ss-price .ss-btn { flex: none; padding: 7px 12px; font-size: 12.5px; }

/* ---------- active filter chips ---------- */

.ss-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 4px; }
.ss-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 11px;
	border: 1px solid var(--ss-line);
	border-radius: 999px;
	background: var(--ss-bg-alt);
	font-size: 12.5px;
}
.ss-chip:hover { text-decoration: none; border-color: var(--ss-ink); }
.ss-chip__x { color: var(--ss-mute); font-size: 14px; line-height: 1; }
.ss-chips__clear { font-size: 12.5px; color: var(--ss-mute); text-decoration: underline; }

/* ---------- brand ⇄ part chips (inc/scope.php) ----------
   Navigation, not a filter state: the chosen chip is filled with the
   accent; the others are plain outlines a tap can switch to. */

.ss-scope { display: grid; gap: 10px; margin: 6px 0 18px; }
.ss-scope__row { display: flex; align-items: baseline; gap: 12px; }
.ss-scope__label {
	flex: none;
	min-width: 52px;
	color: var(--ss-mute);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.ss-scope__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ss-scope__chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 13px;
	border: 1px solid var(--ss-line);
	border-radius: 999px;
	background: var(--ss-bg);
	color: var(--ss-ink);
	font-size: 13px;
	line-height: 1.2;
	-webkit-tap-highlight-color: transparent;
}
.ss-scope__chip:hover { text-decoration: none; border-color: var(--ss-ink); }
.ss-scope__chip.is-on { border-color: var(--ss-accent); background: var(--ss-accent); color: var(--ss-accent-ink); font-weight: 600; }

@media (max-width: 599px) {
	.ss-scope__row { flex-direction: column; gap: 6px; }
	/* one swipeable line instead of a wall of wrapped chips */
	.ss-scope__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
	.ss-scope__chip { flex: none; }
}

/* ---------- layout: sidebar ---------- */

.ss-woo__split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start; }
.ss-filters--sidebar { display: grid; gap: 22px; position: sticky; top: 88px; }
.ss-filters--sidebar .ss-filter { display: grid; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--ss-line); }
.ss-filters--sidebar .ss-filter:last-child { border-bottom: 0; padding-bottom: 0; }
.ss-filters__head { display: flex; align-items: center; gap: 12px; }
.ss-filters__head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.ss-filters__clear { margin-inline-start: auto; font-size: 12.5px; color: var(--ss-mute); text-decoration: underline; }
.ss-filters__close, .ss-filters__open { display: none; }

/* ---------- layout: top bar ---------- */

.ss-filters--top { border-block: 1px solid var(--ss-line); margin-bottom: 4px; }
.ss-filters__row { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 12px; }
.ss-filters--top .ss-filter { position: relative; }
.ss-filters--top .ss-filter__title {
	padding: 8px 14px;
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius-btn, 999px);
	cursor: pointer;
	white-space: nowrap;
	user-select: none;
}
.ss-filters--top .ss-filter__title::after {
	content: "";
	width: 6px;
	height: 6px;
	margin-inline-start: 2px;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .15s;
}
.ss-filters--top .ss-filter.is-open .ss-filter__title { border-color: var(--ss-ink); }
.ss-filters--top .ss-filter.is-open .ss-filter__title::after { transform: translateY(1px) rotate(-135deg); }
.ss-filters--top .ss-filter__body {
	position: absolute;
	z-index: 30;
	inset-block-start: calc(100% + 6px);
	inset-inline-start: 0;
	min-width: 232px;
	max-height: 320px;
	overflow-y: auto;
	padding: 12px;
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	background: var(--ss-bg);
	box-shadow: 0 8px 28px rgb(0 0 0 / .12);
}
.js .ss-filters--top .ss-filter__body { display: none; }
.js .ss-filters--top .ss-filter.is-open .ss-filter__body { display: block; }

/* ---------- mobile: both layouts become a drawer ---------- */

@media (max-width: 900px) {
	.ss-woo__split { grid-template-columns: 1fr; gap: 0; }
	.ss-filters__open {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		margin-bottom: 14px;
	}
	.ss-filters__badge {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 18px;
		height: 18px;
		padding: 0 5px;
		border-radius: 999px;
		background: var(--ss-accent-ink);
		color: var(--ss-accent);
		font-size: 11px;
	}
	.ss-filters--sidebar {
		position: fixed;
		inset-block: 0;
		inset-inline-start: 0;
		z-index: 90;
		width: min(88vw, 340px);
		padding: 18px;
		overflow-y: auto;
		background: var(--ss-bg);
		box-shadow: 0 0 40px rgb(0 0 0 / .2);
		transform: translateX(-102%);
		transition: transform .22s ease;
	}
	.ss-filters--sidebar.is-open { transform: none; }
	.ss-filters__close { display: block; margin-inline-start: auto; border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: inherit; }
	.ss-filters__clear { margin-inline-start: 0; }
	.ss-filters--top .ss-filters__row { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
	.ss-filters--top .ss-filters__row::-webkit-scrollbar { display: none; }
	.ss-scrim {
		position: fixed;
		inset: 0;
		z-index: 80;
		background: rgb(0 0 0 / .42);
	}
}

/* =========================================================================
   9. Single product — four layouts over one shared kit
   ========================================================================= */

/* ---------- shared by all four ---------- */

.ss-product-page div.product { gap: 40px; align-items: start; }

.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image { border-radius: var(--ss-radius); overflow: hidden; }
.woocommerce-product-gallery__image img { width: 100%; height: auto; display: block; }
/* Woo prints .onsale as a child of .product, before the gallery, and nothing
   in that chain was positioned — so `position: absolute` resolved against the
   initial containing block and the badge flew to the top-left corner of the
   PAGE. It was rendering perfectly and sitting somewhere nobody would ever
   scroll to. */
.ss-product-page .product { position: relative; }
.ss-product-page .onsale {
	position: absolute;
	z-index: 2;
	inset-block-start: 12px;
	inset-inline-start: 12px;
	margin: 0;
	padding: 4px 10px;
	border-radius: 3px;
	background: var(--ss-sale);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}

.ss-product-page .summary .price { margin-bottom: 12px; }
.ss-product-page .summary form.cart { margin-block: 18px 12px; }

/* The flex row is for a SIMPLE product's form, where quantity, Add to cart and
   Buy now are the only children. On a variable product form.cart is the
   variations form, and making that a flex row put the attribute table and the
   price/stock/button block side by side as two columns — which is exactly the
   misalignment on the scarf page. */
.ss-product-page .summary form.cart:not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

/* ---------- variable products ----------

   Woo lays the attributes out as a <table>, which on a narrow summary column
   put the labels in one cell and the controls in another and left the price,
   stock and Add to cart block floating beside it. Rows, not columns: the
   label sits above its swatches, and the whole form reads down the page. */

.ss-product-page form.variations_form { display: block; }
.ss-product-page table.variations,
.ss-product-page table.variations tbody,
.ss-product-page table.variations tr,
.ss-product-page table.variations th,
.ss-product-page table.variations td { display: block; width: auto; padding: 0; border: 0; text-align: start; }
.ss-product-page table.variations tr { margin-bottom: 16px; }
.ss-product-page table.variations th.label label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }

/* The Clear link sat inline against the last control. It belongs under the
   choices, quiet, and only once something is chosen — Woo shows and hides it. */
.ss-product-page .reset_variations {
	display: inline-block;
	margin-top: 6px;
	font-size: 12.5px;
	color: var(--ss-mute);
}

.ss-product-page .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ss-product-page .woocommerce-variation-price { margin-bottom: 10px; }
.ss-product-page .woocommerce-variation-availability { font-size: 13px; color: var(--ss-mute); }

/* ---------- swatches ----------

   The select stays in the form and does all the work; it is only taken out of
   sight. Hiding it with display:none would take it out of the accessibility
   tree too, and Woo's own script still needs it focusable for validation
   messages, so it is clipped instead. */
.ss-swatches + select,
.ss-swatches ~ select {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.ss-swatches { display: flex; flex-wrap: wrap; gap: 8px; }

.ss-swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	background: var(--ss-bg);
	color: var(--ss-ink);
	font: inherit;
	font-size: 13.5px;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ss-swatch:hover { border-color: var(--ss-accent-on-bg); }

/* Chosen is a ring rather than a fill, so a pale colour still reads as chosen
   and a dark one is not swallowed by its own highlight. */
.ss-swatch.is-on { border-color: var(--ss-accent-on-bg); box-shadow: 0 0 0 2px var(--ss-accent-on-bg) inset; }

/* Unavailable in the current combination. Kept visible rather than removed:
   a shopper needs to see that the colour exists and this size is gone, not
   watch options silently vanish. */
.ss-swatch.is-out { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

/* Colour swatches: the circle with its name underneath. --ss-swatch is the one
   per-term value on the page, so it is a custom property rather than a
   background written inline. */
.ss-swatches.is-colour { align-items: flex-start; }

.ss-swatch--colour {
	flex-direction: column;
	gap: 5px;
	width: 44px;
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
}
.ss-swatch--colour .ss-swatch__dot {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: var(--ss-swatch, var(--ss-bg-alt));
	box-shadow: 0 0 0 1px rgb(0 0 0 / .12) inset;
	transition: box-shadow .15s ease;
}

/* The name is held to the circle's width. It WRAPS rather than truncating —
   "Off Wh…" tells a shopper nothing, and a colour name is the whole point of
   the label. Two words become two lines, and the group aligns to the top so a
   longer name never pushes its neighbours' circles out of line. The full name
   is on the title attribute either way. */
.ss-swatch--colour .ss-swatch__label {
	display: block;
	max-width: 100%;
	font-size: 10.5px;
	line-height: 1.25;
	color: var(--ss-mute);
	text-align: center;
	overflow-wrap: anywhere;
}
.ss-swatch--colour:hover .ss-swatch__dot { box-shadow: 0 0 0 1px rgb(0 0 0 / .12) inset, 0 0 0 2px var(--ss-line); }
.ss-swatch--colour.is-on .ss-swatch__dot {
	box-shadow: 0 0 0 1px rgb(0 0 0 / .12) inset, 0 0 0 2px var(--ss-bg), 0 0 0 4px var(--ss-accent-on-bg);
}
.ss-swatch--colour.is-on .ss-swatch__label { color: var(--ss-ink); font-weight: 600; }
.ss-swatch--colour.is-out { text-decoration: none; }
.ss-swatch--colour.is-out .ss-swatch__label { text-decoration: line-through; }

@media (pointer: coarse) {
	.ss-swatch { min-height: 44px; }
	.ss-swatch--colour { width: 48px; min-height: 0; }
	.ss-swatch--colour .ss-swatch__dot { width: 44px; height: 44px; }
}

/* Buy now sits beside Add to cart, not under it: side by side they read as a
   choice, stacked they read as a second step. */
.ss-buynow { min-height: 44px; }

/* Woo's own padding left Add to cart at 40px beside a 44px Buy now. A 4px
   step between two buttons on the same row reads as a mistake, so the
   primary matches the secondary at every viewport, not just on touch. */
.ss-product-page .summary form.cart .single_add_to_cart_button,
.ss-product-page .summary form.cart .ss-buynow { min-height: 44px; line-height: 1.3; }
@media (max-width: 480px) {
	.ss-product-page .summary form.cart .ss-buynow,
	.ss-product-page .summary form.cart .single_add_to_cart_button,
	.ss-product-page .woocommerce-variation-add-to-cart .ss-buynow,
	.ss-product-page .woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 1 1 100%; justify-content: center; }
}

.ss-product__wa {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 16px;
}

.ss-reassure {
	list-style: none;
	margin: 0 0 18px;
	padding: 14px 0 0;
	border-top: 1px solid var(--ss-line);
	display: grid;
	gap: 9px;
	font-size: 13.5px;
}
.ss-reassure li { display: flex; align-items: center; gap: 10px; color: var(--ss-mute); }
.ss-reassure .ss-icon { color: var(--ss-accent-on-bg); flex: none; }
.ss-reassure strong { color: var(--ss-ink); font-weight: 600; }

.ss-specs {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 18px;
	margin: 0 0 16px;
	font-size: 13.5px;
}
.ss-specs dt { color: var(--ss-mute); }
.ss-specs dd { margin: 0; font-weight: 500; }

.ss-flatsections { grid-column: 1 / -1; display: grid; gap: 34px; margin-top: 8px; max-width: 760px; }
.ss-flatsections h2 { font-size: 17px; margin-bottom: 10px; }

/* Quantity stepper. The buttons are added by app.js, so with no JavaScript
   this is Woo's plain number input and nothing here applies to it. */
.ss-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--ss-line); border-radius: var(--ss-radius); overflow: hidden; }
.ss-qty input.qty {
	width: 52px;
	border: 0;
	border-inline: 1px solid var(--ss-line);
	border-radius: 0;
	text-align: center;
	font: inherit;
	font-size: 16px;
	-moz-appearance: textfield;
	appearance: textfield;
}
.ss-qty input.qty::-webkit-outer-spin-button,
.ss-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ss-qty__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	border: 0;
	background: transparent;
	color: var(--ss-ink);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.ss-qty__btn:hover { background: var(--ss-bg-alt); }

/* Previous / next product, above the product. */
.ss-pnav { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; font-size: 14px; }
.ss-pnav__link { display: inline-flex; align-items: center; gap: 6px; color: var(--ss-mute); text-decoration: none; min-width: 0; }
.ss-pnav__link:hover { color: var(--ss-accent-on-bg); }
.ss-pnav__link--next { margin-inline-start: auto; text-align: end; }
.ss-pnav__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22ch; }
.ss-pnav .ss-icon { flex: none; }

/* Shipping & Delivery, from Theme Settings so it cannot go stale. */
.ss-shipping { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ss-shipping li { position: relative; padding-inline-start: 20px; }
.ss-shipping li::before {
	content: "";
	position: absolute;
	inset-block-start: .55em;
	inset-inline-start: 4px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ss-accent-on-bg);
}

/* ---------- layout: classic (the default) ---------- */

.ss-product-classic div.product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* The photograph fills its column down to the bottom of the summary beside it —
   Khan's call, and it is the right one for how these pages actually read: a
   short image leaves a slab of empty white under it that looks like a loading
   error rather than a design.
   
   The cost is real and worth knowing: the crop now depends on how much the
   client types, so the same garment shot the same way crops differently on a
   product with a long description, and editing that description re-crops the
   photography. The bounds below are what keeps that from getting silly —
   never a letterbox, never a skyscraper — and 3:4 imagery has enough room top
   and bottom to survive the range.
   
   Sticky is excluded: it stacks the whole gallery in a scrolling column on
   purpose, and matching a height there would mean cropping every image in it. */

@media (min-width: 861px) {
	.ss-product-page:not(.ss-product-sticky) div.product { align-items: stretch; }

	.ss-product-page:not(.ss-product-sticky) .woocommerce-product-gallery { display: flex; flex-direction: column; }
	.ss-product-page:not(.ss-product-sticky) .woocommerce-product-gallery__wrapper { flex: 1 1 auto; display: flex; }

	.ss-product-page:not(.ss-product-sticky) .woocommerce-product-gallery__image {
		flex: 1 1 auto;
		aspect-ratio: auto;
		min-height: 420px;
		max-height: 900px;
	}
	.ss-product-page:not(.ss-product-sticky) .woocommerce-product-gallery__image img { height: 100%; }
}

.ss-product-classic .woocommerce-product-gallery__image { aspect-ratio: 3 / 4; }
.ss-product-classic .woocommerce-product-gallery__image img { height: 100%; object-fit: cover; }

/* ---------- layout: sticky ---------- */

.ss-product-sticky div.product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.ss-product-sticky .woocommerce-product-gallery__wrapper { display: grid; gap: 12px; }
.ss-product-sticky .flex-control-thumbs { display: none; }
.ss-product-sticky .summary { position: sticky; top: 92px; }

/* ---------- layout: editorial ---------- */

.ss-product-editorial div.product { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; }
.ss-product-editorial .woocommerce-product-gallery__image { aspect-ratio: 4 / 5; }
.ss-product-editorial .woocommerce-product-gallery__image img { height: 100%; object-fit: cover; }
.ss-product-editorial .summary { padding-top: 8px; }
.ss-product-editorial .product_title { font-size: clamp(24px, 2.8vw, 36px); }
.ss-product-editorial .summary .price { font-size: 20px; }
.ss-product-editorial .woocommerce-product-details__short-description { font-size: 15.5px; line-height: 1.7; }

/* ---------- layout: compact ---------- */

.ss-product-compact div.product { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); gap: 32px; }
.ss-product-compact .woocommerce-product-gallery__image { aspect-ratio: 1 / 1; }
.ss-product-compact .woocommerce-product-gallery__image img { height: 100%; object-fit: cover; }
.ss-product-compact .product_title { font-size: clamp(18px, 2vw, 24px); }
.ss-product-compact .summary .price { font-size: 24px; font-weight: 700; }
.ss-product-compact .summary form.cart { margin-block: 14px 10px; }
.ss-product-compact .ss-reassure { padding-top: 12px; }

@media (max-width: 600px) {
	.ss-pnav__label { max-width: 11ch; }
}

/* ---------- the buy bar on phones ---------- */

.ss-buybar { display: none; }

@media (max-width: 860px) {
	.ss-product-page div.product { grid-template-columns: 1fr !important; gap: 22px; }
	.ss-product-sticky .summary { position: static; }
	.ss-product-page .summary { padding-bottom: 8px; }

	.ss-buybar {
		position: fixed;
		inset-inline: 0;
		inset-block-end: 0;
		z-index: 70;
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: var(--ss-bg);
		border-top: 1px solid var(--ss-line);
		box-shadow: 0 -4px 18px rgb(0 0 0 / .08);
		transform: translateY(102%);
		transition: transform .22s ease;
	}
	.ss-buybar.is-on { transform: none; }
	.ss-buybar__info { display: grid; min-width: 0; }
	.ss-buybar__info strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.ss-buybar__info span { font-size: 13.5px; font-weight: 600; }
	.ss-buybar .ss-btn { margin-inline-start: auto; flex: none; }

	/* the floating WhatsApp button would otherwise sit under the buy bar */
	.ss-product-page .ss-wa-float { inset-block-end: 78px; }
}

/* =========================================================================
   10. Site-wide layout options
   ========================================================================= */

/* ---------- shell: boxed ---------- */

.ss-shell-boxed { background: color-mix(in srgb, var(--ss-ink) 8%, var(--ss-bg-alt)); }
.ss-shell-boxed .ss-shell {
	/* Always leave visible page background at the sides, whatever the
	   treatment's container width — otherwise "boxed" looks identical to
	   full width on a 1440 screen. */
	max-width: min(calc(var(--ss-container) + 80px), calc(100vw - 72px));
	margin-inline: auto;
	background: var(--ss-bg);
	box-shadow: 0 2px 24px rgb(0 0 0 / .08);
	/* clip, not hidden: hidden would make it a scroll container and break the
	   sticky header inside it. */
	overflow: clip;
}
.ss-shell-boxed .ss-footer { margin-bottom: 0; }
@media (min-width: 1200px) {
	.ss-shell-boxed .ss-shell { margin-block: 24px; border-radius: 10px; }
}

/* ---------- header: overlay ---------- */

.ss-header-overlay .ss-header.is-overlay {
	position: absolute;
	inset-inline: 0;
	background: transparent;
	border-bottom-color: rgb(255 255 255 / .18);
	z-index: 40;
}
.ss-header.is-overlay,
.ss-header.is-overlay a,
.ss-header.is-overlay .ss-logo--text { color: #fff; }
.ss-header.is-overlay .ss-phone { color: rgb(255 255 255 / .8); }
.ss-header.is-overlay .ss-navtoggle { color: #fff; }
.ss-header.is-overlay .ss-callbtn { color: #fff; border-color: rgb(255 255 255 / .34); }
.ss-header.is-overlay .ss-cart__count { background: rgb(255 255 255 / .22); color: #fff; }
.ss-header.is-overlay .ss-menu a:hover { color: rgb(255 255 255 / .75); }
.ss-header.is-overlay .ss-menu .sub-menu a { color: var(--ss-ink); }
.ss-header.is-overlay .ss-menu .sub-menu a:hover { color: var(--ss-mute); }

/* The hero needs room for the header sitting on top of it, and a scrim so the
   nav stays legible over any photograph the client uploads. */
.ss-header-overlay .ss-hero { position: relative; }
.ss-header-overlay .ss-hero::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	height: 190px;
	background: linear-gradient(180deg, rgb(0 0 0 / .48) 0%, rgb(0 0 0 / .12) 60%, transparent 100%);
	z-index: 1;
	pointer-events: none;
}
.ss-header-overlay .ss-hero__viewport { position: relative; }
.ss-header-overlay .ss-hero__img { min-height: 420px; }

/* =========================================================================
   11. Treatments

   Per-treatment overrides only. Everything above reads from tokens, so a
   treatment that only changes colour and type needs nothing here at all.
   ========================================================================= */

/* ---------- Bold Retail ---------- */

.ss-treatment-bold-retail .ss-hero__copy strong { text-transform: uppercase; line-height: .94; }

/* ---------- Warm Boutique: breathes more, leans on the serif ---------- */

.ss-treatment-warm-boutique .ss-section { padding-block: clamp(36px, 4.4vw, 64px); }
.ss-treatment-warm-boutique .ss-product { border-color: color-mix(in srgb, var(--ss-line) 80%, transparent); }
.ss-treatment-warm-boutique .ss-categories .ss-grid { --ss-cat-min: 168px; }
/* The warmth is a TINT on the shared scrim, not a gradient of its own. As its
   own gradient it faded to fully transparent and took the treatment out of the
   contrast guarantee entirely — 1.75:1 over a white banner, under thin 300
   weight display type, which is the worst combination in the theme. */
.ss-treatment-warm-boutique { --ss-scrim: 36 31 27; }
.ss-treatment-warm-boutique .ss-hero__copy strong { font-weight: 300; line-height: 1.06; max-width: 18ch; }
/* A pale button on a dark hero image. It must stay pale whatever the accent
   is, so it reads from --ss-bg rather than --ss-accent-ink: with a dark brand
   colour the derived ink goes dark too, and this button went invisible. */
.ss-treatment-warm-boutique .ss-hero__copy .ss-btn { background: var(--ss-bg); color: var(--ss-ink); font-weight: 500; }

/* ---------- Dense Market: packs in more, add-to-cart on every card ---------- */

.ss-treatment-dense-market .ss-section { padding-block: clamp(22px, 2.6vw, 34px); }
.ss-treatment-dense-market .ss-product__media { aspect-ratio: 1 / 1; }
.ss-treatment-dense-market .ss-product__body { padding: 9px 10px 11px; }
.ss-treatment-dense-market .ss-product .button { display: block; width: 100%; margin-top: 6px; padding: 7px; font-size: 12.5px; }
.ss-treatment-dense-market .ss-product .ss-btn {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 7px 10px;
	font-size: 12.5px;
	text-align: center;
}
.ss-treatment-dense-market .ss-categories .ss-grid { --ss-cat-min: 118px; }
.ss-treatment-dense-market .ss-hero__img { height: clamp(220px, 26vw, 360px); }
.ss-treatment-dense-market .ss-hero__copy strong { font-size: clamp(22px, 2.8vw, 40px); line-height: 1.12; }


/* =========================================================================
   12. Invariants

   The only rules allowed to restate a property set earlier. Each is here
   because a per-treatment rule ties on specificity and would otherwise win on
   source order alone. Nothing else belongs in this section.
   ========================================================================= */

/* The hero copy layer spans the whole slide so its text can sit on the
   container grid. It must never carry a background of its own, whatever a
   treatment says — a 92%-opaque cream once hid the banner image entirely. */
.ss-hero__copy { background: none !important; }

/* The trust bar is a compact strip, not a full section band. Stated here
   because plain .ss-section and the per-treatment .ss-section rules would
   otherwise decide its padding. */
.ss-section.ss-usp-bar,
.ss-treatment-bold-retail .ss-section.ss-usp-bar,
.ss-treatment-warm-boutique .ss-section.ss-usp-bar,
.ss-treatment-dense-market .ss-section.ss-usp-bar { padding-block: 22px; }

/* The hero is flush against whatever sits above it, in every treatment. */
.ss-section.ss-hero,
.ss-treatment-bold-retail .ss-section.ss-hero,
.ss-treatment-warm-boutique .ss-section.ss-hero,
.ss-treatment-dense-market .ss-section.ss-hero { padding-block: 0; }


/* ---------- header search + category row ----------

   Both off by default; turned on per site from Homepage Layout. The search
   takes the flexible space on the logo row. Below 900px it wraps to its own
   full-width line inside the sticky header — for a shop people search by
   model number, the box is worth the 56px. The category row sits OUTSIDE the
   sticky header, like the other bars, and scrolls sideways on a phone. */

.ss-hsearch {
	order: 2;
	flex: 1 1 260px;
	max-width: 460px;
	display: flex;
	position: relative;
}
.ss-has-hsearch .ss-nav { order: 3; }
.ss-has-hsearch .ss-header__actions { order: 4; }
.ss-hsearch input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 42px;
	padding: 0 44px 0 14px;
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	background: var(--ss-bg);
	font: inherit;
	font-size: 14px;
	color: inherit;
}
.ss-hsearch input[type="search"]:focus { outline: 2px solid var(--ss-accent); outline-offset: 0; border-color: transparent; }
.ss-hsearch__go {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	width: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

@media (max-width: 900px) {
	.ss-has-hsearch .ss-header__inner { flex-wrap: wrap; row-gap: 0; }
	.ss-hsearch { order: 10; flex-basis: 100%; max-width: none; margin-block-end: 10px; }
}

.ss-catnav {
	background: var(--ss-bg);
	border-bottom: 1px solid var(--ss-line);
}
.ss-catmenu {
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.ss-catmenu::-webkit-scrollbar { display: none; }
.ss-catmenu a {
	display: block;
	padding-block: 11px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	color: inherit;
}
.ss-catmenu a:hover { text-decoration: none; color: var(--ss-accent-on-bg); }
.ss-catmenu .current-menu-item > a,
.ss-catmenu .current-product_cat-ancestor > a { box-shadow: inset 0 -2px 0 var(--ss-accent); }

@media (max-width: 900px) {
	.ss-catmenu { gap: 20px; }
	.ss-catmenu a { padding-block: 10px; font-size: 13.5px; }
}

/* Visually hidden, still read aloud. The theme labels its search fields this
   way but never defined the class, so the drawer's "Search" label was
   printing as visible text. */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}


/* ---------- live search results ----------

   Anchored under whichever search form owns it: the header box on desktop,
   the drawer on a phone. Scrolls inside itself so a long list never pushes
   the page. */

.ss-drawer__search { position: relative; }
.ss-live {
	position: absolute;
	inset-inline: 0;
	top: calc(100% + 6px);
	z-index: 60;
	max-height: min(70vh, 480px);
	overflow-y: auto;
	background: var(--ss-bg);
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	box-shadow: 0 12px 32px rgba(11, 31, 58, .14);
	padding: 6px;
}
.ss-drawer__search .ss-live { inset-inline: 16px; top: calc(100% + 2px); }
.ss-live__item {
	display: grid;
	grid-template-columns: 44px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: calc(var(--ss-radius) - 2px);
	color: inherit;
	font-size: 14px;
	line-height: 1.3;
}
.ss-live__item:hover,
.ss-live__item.is-active { background: var(--ss-bg-alt); text-decoration: none; }
.ss-live__item img,
.ss-live__noimg {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	background: var(--ss-line);
	display: block;
}
.ss-live__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.ss-live__price { font-weight: 600; font-size: 13.5px; }
.ss-live__price small,
.ss-live__price .woocommerce-price-suffix { display: none; }
.ss-live__out { font-size: 12px; color: var(--ss-mute); }
.ss-live__none { margin: 0; padding: 12px; color: var(--ss-mute); font-size: 14px; }
.ss-live__all {
	display: block;
	margin-top: 4px;
	padding: 10px 8px;
	border-top: 1px solid var(--ss-line);
	font-size: 13.5px;
	font-weight: 600;
	text-align: center;
	color: var(--ss-accent-on-bg);
}
.is-loading .ss-hsearch__go { opacity: .4; }
