/* =========================================================
 * Studio Florals — main stylesheet
 * Replicates the Next.js design: cream background, blush
 * sections, forest-green primary, Playfair Display display
 * type, Inter body. Mobile-first, no framework required.
 * ========================================================= */

:root {
	--background: oklch(0.99 0.004 84);
	--foreground: oklch(0.15 0.01 84);
	--card: #ffffff;
	--primary: oklch(0.30 0.07 158);   /* deep editorial hunter green — brand signature */
	--primary-foreground: oklch(0.99 0.004 84);
	--secondary: oklch(0.8 0.06 15);
	--secondary-15: color-mix(in oklch, var(--secondary) 15%, transparent);
	--secondary-20: color-mix(in oklch, var(--secondary) 20%, transparent);
	--muted: oklch(0.9 0.02 84);
	--muted-foreground: oklch(0.5 0.02 84);
	--border: oklch(0.93 0.02 84);
	--ring: var(--primary);
	--radius: 0.625rem;
	--radius-sm: 0.25rem;

	--font-serif: 'Playfair Display', ui-serif, Georgia, 'Times New Roman', serif;
	--font-sans:  'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;

	--container: 80rem;   /* 1280px */
	--container-narrow: 56rem;
	--container-form: 42rem;
	--nav-height: 4.25rem;
}

/* -------- Base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary); text-decoration: none; }
/* Override any remaining Woo/blocks underline defaults. */
.sf-body a, .sf-main a, .sf-nav a, .sf-footer a, .sf-card, .sf-card:hover { text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.screen-reader-text { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sf-skip {
	position: absolute; left: -9999px; top: 0; z-index: 10000;
	background: var(--foreground); color: var(--primary-foreground);
	padding: .75rem 1rem; border-radius: var(--radius-sm);
}
.sf-skip:focus { left: 1rem; top: 1rem; }

/* -------- Layout helpers ----------------------------------------------- */
.sf-container {
	width: 100%;
	max-width: var(--container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.sf-section { padding: 4rem 0; }
@media (min-width: 768px) { .sf-section { padding: 8rem 0; } }

/* Modest perf win: skip rendering work for sections well below the fold
 * until they approach the viewport. Hero + first section stay eager. */
.sf-section ~ .sf-section {
	content-visibility: auto;
	contain-intrinsic-size: 1px 720px;
}

/* Nav is sticky now — the hero only needs its own breathing room. */
.sf-section--hero { padding-top: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .sf-section--hero { padding-top: 4rem; padding-bottom: 5rem; } }

.sf-section--muted { background: var(--secondary-15); }
.sf-section--bordered { border-top: 1px solid var(--border); }

.sf-prose { max-width: var(--container-narrow); margin-left: auto; margin-right: auto; }

/* -------- Type --------------------------------------------------------- */
.sf-eyebrow {
	font-size: .75rem;
	letter-spacing: .18em;
	color: var(--muted-foreground);
	text-transform: uppercase;
	margin: 0 0 .5rem;
	font-weight: 400;
}

.sf-display {
	font-family: var(--font-serif);
	font-weight: 300;
	letter-spacing: -0.01em;
	line-height: 1.05;
	font-size: clamp(2.5rem, 6vw + 1rem, 4.5rem);
	margin: 0 0 1.25rem;
}

.sf-heading {
	font-family: var(--font-serif);
	font-weight: 300;
	line-height: 1.15;
	font-size: clamp(2rem, 3vw + 1rem, 2.5rem);
	margin: 0 0 1rem;
}

.sf-lead {
	font-size: 1.125rem;
	font-weight: 300;
	line-height: 1.7;
	max-width: 36rem;
	margin: 1rem 0 0;
}

.sf-muted { color: var(--muted-foreground); font-weight: 300; }

/* -------- Buttons ------------------------------------------------------- *
 * Primary CTA uses the deep editorial hunter green — the brand signature,
 * de-saturated from the original mint-forest so it reads "expensive" rather
 * than "craft-fair". Darkens subtly on hover.
 */
.sf-btn, .sf-main .button, .sf-main button[type="submit"].single_add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .7rem 1.2rem;
	font-size: .9rem;
	font-weight: 500;
	background: var(--primary);
	color: var(--primary-foreground);
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: background .2s ease, transform .1s ease, color .2s ease;
	text-decoration: none;
	line-height: 1;
}
.sf-btn:hover, .sf-main .button:hover, .sf-main button[type="submit"].single_add_to_cart_button:hover {
	background: color-mix(in oklch, var(--primary) 82%, black);
	color: var(--primary-foreground);
}
.sf-btn--lg { padding: .9rem 1.5rem; font-size: .95rem; }
.sf-btn--block { width: 100%; }
.sf-btn--ghost {
	background: transparent;
	color: var(--foreground);
	border: 1px solid var(--border);
}
.sf-btn--ghost:hover { background: var(--muted); color: var(--foreground); }
.sf-btn__arrow { width: .9rem; height: .9rem; }

/* -------- Announcement bar -------------------------------------------- *
 * Soft dark-olive on ivory text — warmer and lighter than pure black,
 * matches the palette and stops the bar from reading like a billboard.
 */
.sf-announce {
	background: var(--primary);
	color: var(--primary-foreground);
	font-size: .7rem;
	letter-spacing: .24em;
	text-transform: uppercase;
	font-weight: 500;
	padding: .7rem 0;
	text-align: center;
	position: relative;
	z-index: 60;
}
.sf-announce a { color: inherit; display: inline-flex; align-items: center; gap: .35rem; opacity: .95; }
.sf-announce a:hover { color: inherit; opacity: 1; }
.sf-announce__arrow { transition: transform .2s ease; }
.sf-announce a:hover .sf-announce__arrow { transform: translateX(3px); }

/* -------- Nav ---------------------------------------------------------- *
 * Editorial glass: translucent ivory (60%) with saturated blur. The border
 * is a very faint hairline that deepens subtly once the user scrolls so the
 * bar reads as "floating" at rest and "docked" when content is underneath.
 */
.sf-nav {
	position: sticky; top: 0; left: 0; right: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--background) 62%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	backdrop-filter: saturate(180%) blur(18px);
	border-bottom: 1px solid color-mix(in oklch, var(--foreground) 6%, transparent);
	transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.sf-nav.is-scrolled {
	background: color-mix(in srgb, var(--background) 82%, transparent);
	border-bottom-color: color-mix(in oklch, var(--foreground) 12%, transparent);
	box-shadow: 0 8px 24px -24px color-mix(in oklch, var(--foreground) 40%, transparent);
}

.sf-nav__inner {
	display: flex; align-items: center; justify-content: space-between;
	padding-top: 1rem; padding-bottom: 1rem;
	min-height: var(--nav-height);
	gap: 1.5rem;
}
.sf-brand, .sf-nav__brand .custom-logo-link {
	font-size: .85rem;
	letter-spacing: .25em;
	font-weight: 300;
	text-transform: uppercase;
}
.sf-brand { color: var(--foreground); }

/* Desktop menu */
.sf-nav__menu {
	display: flex; align-items: center; gap: 2.25rem;
	flex: 1 1 auto; justify-content: center;
}
.sf-menu {
	list-style: none; margin: 0; padding: 0;
	display: flex; gap: 2.25rem; align-items: center;
}
.sf-menu a {
	font-size: .875rem;
	font-weight: 400;
	color: var(--foreground);
}
.sf-menu a:hover { color: var(--primary); }
.sf-menu .current-menu-item > a,
.sf-menu .current_page_item > a { color: var(--primary); }

/* Nav icon actions (search, cart, menu trigger) */
.sf-nav__actions { display: inline-flex; align-items: center; gap: .25rem; }
.sf-nav__icon {
	background: transparent; border: 0;
	color: var(--foreground);
	width: 2.25rem; height: 2.25rem; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px;
	transition: background .15s ease, color .15s ease;
	position: relative;
	cursor: pointer;
}
.sf-nav__icon:hover { background: var(--secondary-15); color: var(--primary); }
.sf-nav__menu-toggle { display: none; }

.sf-cart {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
}
.sf-cart__count {
	position: absolute; top: -.1rem; right: -.1rem;
	min-width: 1.1rem; height: 1.1rem;
	border-radius: 999px;
	background: var(--primary); color: var(--primary-foreground);
	font-size: .65rem; line-height: 1.1rem; text-align: center;
	padding: 0 .3rem;
	font-weight: 500;
}

/* Search panel (slides down from nav) */
.sf-search-panel {
	border-top: 1px solid var(--border);
	background: var(--background);
	padding: 1rem 0;
}
.sf-search-panel form { display: flex; gap: .5rem; max-width: 40rem; margin: 0 auto; }
.sf-search-panel input[type="search"] {
	flex: 1 1 auto;
	font: inherit; font-size: 1rem; color: inherit;
	padding: .75rem 1rem;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
}
.sf-search-panel input[type="search"]:focus-visible {
	outline: none; border-color: var(--primary);
	box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 18%, transparent);
}
.sf-search-panel .search-submit, .sf-search-panel .sf-btn { padding: .75rem 1.25rem; }

/* Mobile nav drawer */
.sf-drawer { position: fixed; inset: 0; z-index: 100; display: block; }
.sf-drawer[hidden] { display: none; }
.sf-drawer__scrim {
	position: absolute; inset: 0;
	z-index: 1;
	background: color-mix(in oklch, var(--foreground) 4%, transparent);
	border: 0; cursor: pointer;
	animation: sf-fade .2s ease forwards;
}
.sf-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	z-index: 2;
	width: min(22rem, 88vw);
	background: var(--background);
	display: flex; flex-direction: column;
	box-shadow: -10px 0 30px rgba(20,20,18,.15);
	animation: sf-slide-in .25s ease forwards;
}
.sf-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid var(--border);
}
.sf-drawer__close {
	background: transparent; border: 0;
	width: 2.25rem; height: 2.25rem; border-radius: 999px;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--foreground); cursor: pointer;
	transition: background .15s ease;
}
.sf-drawer__close:hover { background: var(--secondary-15); }
.sf-drawer__body { padding: 1.5rem; overflow-y: auto; flex: 1 1 auto; }
.sf-drawer__menu {
	list-style: none; padding: 0; margin: 0;
	display: grid; gap: 0;
}
.sf-drawer__menu li { border-bottom: 1px solid var(--border); }
.sf-drawer__menu li:last-child { border-bottom: 0; }
.sf-drawer__menu a {
	display: block;
	font-family: var(--font-serif);
	font-weight: 300;
	font-size: 1.5rem;
	padding: 1rem 0;
	color: var(--foreground);
	transition: color .15s ease, padding .2s ease;
}
.sf-drawer__menu a:hover { color: var(--primary); padding-left: .25rem; }
.sf-drawer__foot {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	display: grid; gap: .75rem;
}
.sf-drawer__link { font-size: .9rem; color: var(--muted-foreground); }
.sf-drawer__link:hover { color: var(--primary); }

@keyframes sf-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes sf-slide-in { from { transform: translateX(100%) } to { transform: translateX(0) } }

/* Lock scroll when drawer / search open */
body.sf-no-scroll { overflow: hidden; }

/* Mobile: hide inline menu, show hamburger */
@media (max-width: 960px) {
	.sf-nav__menu { display: none; }
	.sf-nav__menu-toggle { display: inline-flex; }
}

/* -------- Hero --------------------------------------------------------- */
.sf-hero__grid {
	display: grid; gap: 3rem;
	grid-template-columns: 1fr;
	align-items: start;
}
@media (min-width: 960px) {
	.sf-hero__grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.sf-hero__copy { padding-top: 2rem; }
.sf-hero__copy .sf-display { margin-top: 1.5rem; }
.sf-hero__meta {
	margin: 1.25rem 0 0;
	font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
	color: var(--muted-foreground); font-weight: 500;
}
.sf-hero__ctas {
	margin-top: 2rem;
	display: flex; flex-wrap: wrap; gap: .75rem 1rem;
	align-items: center;
}
.sf-hero__ctas .sf-btn--ghost {
	padding: .9rem 1.2rem;
	color: var(--foreground);
	border-color: var(--border);
}
.sf-hero__ctas .sf-btn--ghost:hover {
	color: var(--primary);
	border-color: var(--primary);
	background: color-mix(in oklch, var(--primary) 6%, transparent);
}
.sf-hero__media {
	position: relative;
	aspect-ratio: 4 / 5;
	background: var(--muted);
	overflow: hidden;
	border-radius: var(--radius-sm);
}
@media (min-width: 960px) {
	.sf-hero__media { aspect-ratio: auto; height: calc(100vh - var(--nav-height)); max-height: 70rem; border-radius: 0; margin-right: -1.5rem; }
}
.sf-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* -------- Collections grid -------------------------------------------- */
.sf-collections__head { margin-bottom: 3rem; }
.sf-collections__grid {
	display: grid; gap: 2rem;
	grid-template-columns: 1fr;
}
@media (min-width: 768px) { .sf-collections__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.sf-card {
	display: block;
	color: inherit;
}
.sf-card__media {
	position: relative;
	aspect-ratio: 4/5;
	background: var(--muted);
	border-radius: var(--radius-sm);
	overflow: hidden;
	margin-bottom: 1rem;
}
.sf-card__media img, .sf-card__img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .5s ease;
}
.sf-card:hover .sf-card__img,
.sf-card:hover .sf-card__media img { transform: scale(1.04); }
.sf-card__title { font-family: var(--font-serif); font-weight: 300; font-size: 1.35rem; margin: .4rem 0 .25rem; }
.sf-card__desc { color: var(--muted-foreground); font-weight: 300; font-size: .95rem; margin: 0 0 .5rem; }
.sf-card__meta { display: flex; align-items: center; justify-content: space-between; padding-top: .35rem; }
.sf-card__price { font-weight: 300; font-size: .95rem; }
.sf-card__view {
	color: var(--primary); font-size: .75rem; font-weight: 500;
	letter-spacing: .18em; text-transform: uppercase;
	display: inline-flex; align-items: center; gap: .5rem;
}

/* -------- Arrangement list (2-col) ------------------------------------ */
.sf-arrangements__grid {
	display: grid; gap: 3rem;
	grid-template-columns: 1fr;
}
@media (min-width: 768px) { .sf-arrangements__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sf-arrangements__grid .sf-card__media { aspect-ratio: 5 / 4; }

/* -------- Process (numbered) ------------------------------------------
 * The hairline between steps wants equal breathing room on both sides, so
 * the rhythm is: <step> 1.75rem — line — 1.75rem <step> 1.75rem — line
 * rather than the old lopsided "3rem of padding below, 0 above" feel. */
.sf-process { max-width: var(--container-narrow); margin: 0 auto; }
.sf-process__item {
	display: flex; align-items: baseline;
	gap: 2rem;
	padding: 1.75rem 0;
	border-bottom: 1px solid var(--border);
}
.sf-process__item:first-of-type { padding-top: .25rem; }
.sf-process__item:last-child { border-bottom: 0; padding-bottom: .25rem; }
/* Numbers read as proper editorial markers (larger than the title) but
 * stay cap-aligned with it. Trick: both get identical computed line-box
 * heights (font-size × line-height ≈ 1.54rem), so with align-items:
 * baseline the caps sit on the same visual row rather than the number
 * towering above. */
.sf-process__num {
	flex: 0 0 auto;
	font-size: 1.4rem; font-weight: 300;
	line-height: 1.1;
	color: var(--muted-foreground);
	min-width: 2.75rem;
	font-variant-numeric: lining-nums tabular-nums;
	letter-spacing: .02em;
	align-self: baseline;
}
.sf-process__title {
	font-family: var(--font-serif); font-weight: 300;
	font-size: 1.1rem; line-height: 1.4;
	margin: 0 0 .45rem;
}
.sf-process__desc { color: var(--muted-foreground); font-weight: 300; margin: 0; max-width: 48ch; }

@media (max-width: 720px) {
	.sf-process__item { gap: 1.25rem; padding: 1.25rem 0; }
	.sf-process__num { font-size: 1.2rem; min-width: 2.25rem; }
	.sf-process__title { font-size: 1rem; }
}

/* -------- Testimonial -------------------------------------------------- */
.sf-testimonial { max-width: var(--container-narrow); margin: 0 auto; text-align: center; }
.sf-testimonial__quote {
	font-size: 1.125rem; font-style: italic; font-weight: 300;
	color: var(--muted-foreground); margin: 0 0 1rem;
}
.sf-testimonial__author {
	font-size: .875rem; letter-spacing: .18em; color: var(--muted-foreground);
	text-transform: uppercase;
}

/* -------- CTA ---------------------------------------------------------- */
.sf-cta { max-width: var(--container-narrow); margin: 0 auto; text-align: center; }
.sf-cta .sf-display { font-size: clamp(2.25rem, 4vw + 1rem, 3.25rem); }

/* -------- Form --------------------------------------------------------- */
.sf-form { display: grid; gap: 1.25rem; max-width: var(--container-form); }
.sf-form__row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .sf-form__row { grid-template-columns: 1fr 1fr; } }
.sf-field { display: grid; gap: .5rem; }
.sf-field label { font-size: .875rem; font-weight: 300; }
.sf-field input, .sf-field textarea, .sf-field select {
	width: 100%;
	padding: .625rem .85rem;
	font: inherit; color: inherit;
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.sf-field input:focus, .sf-field textarea:focus, .sf-field select:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.sf-form__honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; height: 0; width: 0; }
.sf-form__meta { font-size: .75rem; color: var(--muted-foreground); text-align: center; font-weight: 300; }

.sf-alert {
	background: color-mix(in srgb, var(--primary) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
	border-radius: var(--radius-sm);
	padding: 1.5rem;
	text-align: center;
}
.sf-alert--error {
	background: color-mix(in srgb, oklch(0.577 0.245 27.325) 10%, transparent);
	border-color: color-mix(in srgb, oklch(0.577 0.245 27.325) 30%, transparent);
}
.sf-alert p:first-child { color: var(--primary); margin: 0 0 .25rem; font-weight: 400; }
.sf-alert p:last-child { margin: 0; font-size: .875rem; color: var(--muted-foreground); font-weight: 300; }

/* -------- Contact info cards ------------------------------------------ */
.sf-contact-info {
	display: grid; gap: 3rem; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .sf-contact-info { grid-template-columns: repeat(3, 1fr); } }
.sf-contact-info__item h3 { font-size: .75rem; letter-spacing: .18em; color: var(--muted-foreground); text-transform: uppercase; margin: 0 0 .75rem; font-weight: 400; }
.sf-contact-info__item a, .sf-contact-info__item p { font-size: 1.05rem; font-weight: 300; margin: 0; }

/* -------- FAQ / stacked list ------------------------------------------ */
.sf-stack > * + * { margin-top: 3rem; }
.sf-stack__item { padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.sf-stack__item:last-child { border-bottom: 0; padding-bottom: 0; }
.sf-stack__title { font-family: var(--font-serif); font-weight: 300; font-size: 1.1rem; margin: 0 0 .75rem; }
.sf-stack__body { color: var(--muted-foreground); font-weight: 300; margin: 0; }

/* -------- About page --------------------------------------------------- */
.sf-about__story p { color: var(--muted-foreground); font-weight: 300; line-height: 1.8; margin: 0 0 1.5rem; }

.sf-team > * + * { margin-top: 2rem; }
.sf-team__item { padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.sf-team__item:last-child { border-bottom: 0; padding-bottom: 0; }
.sf-team__name { font-family: var(--font-serif); font-weight: 300; font-size: 1.05rem; margin: 0 0 .25rem; }
.sf-team__role { color: var(--primary); font-size: .875rem; font-weight: 300; margin: 0 0 .5rem; }
.sf-team__bio  { color: var(--muted-foreground); font-weight: 300; font-size: .95rem; margin: 0; }

/* -------- Breadcrumbs ------------------------------------------------- *
 * Quiet editorial trail that sits under the nav on every non-home page.
 * Slashes instead of chevrons; current page bumps to foreground weight.
 */
.sf-crumbs {
	padding: 1.5rem 0;
	font-size: .78rem;
	color: var(--muted-foreground);
}
/* On Woo archives the big hero follows immediately; collapse bottom padding. */
.sf-crumbs + .sf-section--hero { padding-top: 1.5rem; }
@media (min-width: 768px) { .sf-crumbs + .sf-section--hero { padding-top: 3rem; } }
.sf-crumbs__list {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .4rem;
	line-height: 1.4;
}
.sf-crumbs__item { display: inline-flex; align-items: center; gap: .5rem; }
.sf-crumbs__item a { color: var(--muted-foreground); transition: color .15s ease; }
.sf-crumbs__item a:hover { color: var(--foreground); }
.sf-crumbs__item--current { color: var(--foreground); }
.sf-crumbs__item--current span[aria-current="page"] {
	color: var(--foreground); font-weight: 500;
	/* Truncate very long product titles so the crumb never wraps onto 3+ lines. */
	max-width: min(60ch, 70vw);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	display: inline-block; vertical-align: bottom;
}
.sf-crumbs__sep {
	color: var(--muted-foreground); opacity: .45;
	font-weight: 300;
}

/* -------- Single product (WooCommerce) -------------------------------- */

.sf-product__grid {
	display: grid; gap: 3rem;
	grid-template-columns: 1fr;
	align-items: start;
}
@media (min-width: 960px) { .sf-product__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.sf-product__gallery {
	position: relative;
	background: var(--muted);
	border-radius: var(--radius-sm);
	overflow: hidden;
}
.sf-product__gallery img { width: 100%; height: auto; object-fit: cover; display: block; }
/* WooCommerce gallery layout tweaks */
.sf-product__gallery .woocommerce-product-gallery { position: relative; }
.sf-product__gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.sf-product__gallery .woocommerce-product-gallery__image a { display: block; }
.sf-product__gallery .flex-control-thumbs {
	list-style: none; padding: 0; margin: .75rem 0 0;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
}
.sf-product__gallery .flex-control-thumbs li { cursor: pointer; }
.sf-product__gallery .flex-control-thumbs img { opacity: .6; border-radius: var(--radius-sm); transition: opacity .2s ease; }
.sf-product__gallery .flex-control-thumbs img.flex-active,
.sf-product__gallery .flex-control-thumbs img:hover { opacity: 1; }
/* The default Woo magnifier overlay reads as clip-art next to the serif
 * editorial design and adds zero value — the image is already click-to-
 * lightbox via wc-product-gallery-lightbox. Hide it everywhere. */
.woocommerce-product-gallery__trigger,
.sf-product__gallery .woocommerce-product-gallery__trigger { display: none !important; }

.sf-product__info > * + * { margin-top: 2rem; }
.sf-product__category { font-size: .75rem; letter-spacing: .18em; color: var(--muted-foreground); text-transform: uppercase; margin: 0; }
.sf-product__title {
	font-family: var(--font-serif); font-weight: 300; line-height: 1.1;
	font-size: clamp(2rem, 3.5vw + 1rem, 3.25rem);
	margin: .75rem 0 1rem;
}
.sf-product__desc { color: var(--muted-foreground); font-size: 1.05rem; font-weight: 300; line-height: 1.7; margin: 0; }
.sf-product__price-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sf-product__price { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 300; }
.sf-product__price .woocommerce-Price-amount { font-weight: 300; }

.sf-stock { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; padding: .45rem .75rem; border-radius: 999px; background: var(--secondary-15); color: var(--muted-foreground); }
.sf-stock__dot { width: .5rem; height: .5rem; border-radius: 999px; background: currentColor; }
.sf-stock--ok { color: var(--primary); background: color-mix(in oklch, var(--primary) 10%, transparent); }
.sf-stock--low { color: oklch(0.68 0.15 65); background: color-mix(in oklch, oklch(0.68 0.15 65) 12%, transparent); }
.sf-stock--back { color: var(--muted-foreground); }
.sf-stock--out { color: oklch(0.577 0.245 27.325); background: color-mix(in oklch, oklch(0.577 0.245 27.325) 10%, transparent); }

.sf-product__assurances {
	list-style: none; padding: 0; margin: 1.25rem 0 0;
	display: grid; gap: .6rem;
	border-top: 1px solid var(--border);
	padding-top: 1.25rem;
}
.sf-product__assurances li {
	display: flex; align-items: center; gap: .6rem;
	font-size: .85rem; font-weight: 300; color: var(--muted-foreground);
}
.sf-product__assurances li svg { color: var(--primary); flex: 0 0 auto; }

.sf-product__share {
	margin: 1.5rem 0 0;
	display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .55rem;
	font-size: .78rem;
}
.sf-product__share-label {
	font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
	color: var(--muted-foreground); font-weight: 500;
	margin-right: .25rem;
}
.sf-product__share-link {
	color: var(--muted-foreground);
	border-bottom: 1px solid color-mix(in oklch, var(--foreground) 20%, transparent);
	padding-bottom: 1px;
	transition: color .15s ease, border-color .15s ease;
}
.sf-product__share-link:hover { color: var(--foreground); border-color: var(--foreground); }
.sf-product__share-sep { color: var(--muted-foreground); opacity: .6; }

.sf-product__details {
	padding: 2rem 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.sf-product__details h3 { font-size: .75rem; letter-spacing: .18em; color: var(--muted-foreground); text-transform: uppercase; margin: 0 0 1rem; font-weight: 400; }
.sf-product__details ul { list-style: none; padding: 0; margin: 0; }
.sf-product__details li { font-size: .9rem; color: var(--muted-foreground); font-weight: 300; margin-bottom: .5rem; }
.sf-product__details li::before { content: "✓ "; color: var(--primary); }

.sf-product__cta-note { font-size: .875rem; color: var(--muted-foreground); font-weight: 300; margin: 0 0 .75rem; }

.sf-product__care {
	background: var(--secondary-20);
	padding: 1.5rem;
	border-radius: var(--radius-sm);
}
.sf-product__care h4 { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 .75rem; font-weight: 400; }
.sf-product__care ul { list-style: none; padding: 0; margin: 0; font-size: .8rem; color: var(--muted-foreground); font-weight: 300; }
.sf-product__care li + li { margin-top: .4rem; }
.sf-product__care li::before { content: "• "; }

/* Long description (product body content) */
.sf-product__longdesc-section { padding-top: 5rem; padding-bottom: 5rem; }
.sf-product__longdesc { max-width: var(--container-narrow); margin: 0 auto; }
.sf-product__longdesc .sf-eyebrow { margin-bottom: 1.5rem; }
.sf-product__longdesc-body { font-size: 1.05rem; line-height: 1.8; font-weight: 300; color: var(--muted-foreground); }
.sf-product__longdesc-body > * + * { margin-top: 1.1rem; }
.sf-product__longdesc-body h2,
.sf-product__longdesc-body h3,
.sf-product__longdesc-body h4 {
	font-family: var(--font-serif); font-weight: 300;
	color: var(--foreground);
	margin-top: 2.25rem; margin-bottom: .5rem;
	line-height: 1.25;
}
.sf-product__longdesc-body h2 { font-size: 1.75rem; }
.sf-product__longdesc-body h3 { font-size: 1.35rem; }
.sf-product__longdesc-body h4 { font-size: 1.1rem; }
.sf-product__longdesc-body ul,
.sf-product__longdesc-body ol { padding-left: 1.25rem; }
.sf-product__longdesc-body li + li { margin-top: .4rem; }
.sf-product__longdesc-body a { color: var(--primary); border-bottom: 1px solid color-mix(in oklch, var(--primary) 40%, transparent); }
.sf-product__longdesc-body a:hover { border-bottom-color: var(--primary); }
.sf-product__longdesc-body blockquote {
	margin: 1.5rem 0; padding: 1rem 1.25rem;
	border-left: 2px solid var(--primary);
	font-style: italic; color: var(--foreground);
}
.sf-product__longdesc-body img { border-radius: var(--radius-sm); }

/* Add-to-cart form on single product */
form.cart { margin: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: .75rem; }

/* Quantity stepper — minimal outlined pill that matches form controls */
form.cart .quantity {
	display: inline-flex; align-items: stretch;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--background);
	overflow: hidden;
	height: 3rem;
}
form.cart .quantity input.qty,
form.cart .quantity input[type="number"] {
	width: 3rem; padding: 0; margin: 0;
	border: 0; background: transparent;
	text-align: center;
	font: inherit; color: inherit;
	font-weight: 300; font-size: 1rem;
	appearance: textfield; -moz-appearance: textfield;
}
form.cart .quantity input[type="number"]::-webkit-outer-spin-button,
form.cart .quantity input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none; appearance: none; margin: 0;
}
form.cart .quantity input.qty:focus { outline: none; background: var(--secondary-15); }
.sf-qty__btn {
	width: 2.5rem; padding: 0; margin: 0;
	border: 0; background: transparent;
	color: var(--muted-foreground);
	font-size: 1.15rem; font-weight: 300; line-height: 1;
	display: inline-flex; align-items: center; justify-content: center;
	transition: background .15s ease, color .15s ease;
	cursor: pointer;
}
.sf-qty__btn:hover { background: var(--secondary-15); color: var(--foreground); }
.sf-qty__btn:focus-visible { outline: none; background: var(--secondary-15); color: var(--foreground); }

/* Add to cart / place order button — takes the remaining row width, matches .sf-btn */
.sf-main .single_add_to_cart_button {
	flex: 1 1 auto;
	min-height: 3rem;
	padding: .95rem 1.75rem;
	font-size: .8rem; font-weight: 400;
	letter-spacing: .18em; text-transform: uppercase;
}
@media (min-width: 640px) { .sf-main .single_add_to_cart_button { flex: 1 1 auto; } }

/* Hide default WooCommerce elements we don't show */
.woocommerce-tabs, .woocommerce-product-rating, .sku_wrapper, .posted_in, .tagged_as { display: none !important; }
.related.products, .up-sells.upsells { }

/* Shop archive wrapper rebuilt via hooks — keep no fancy defaults */
ul.products { list-style: none; padding: 0; margin: 0; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; } }
ul.products li.product { margin: 0 !important; width: auto !important; float: none !important; }

/* Keep product tiles tighter on the shop than on the homepage "Collections" grid. */
ul.products .sf-card__media { aspect-ratio: 4/5; }
ul.products .sf-card__title { font-size: 1.15rem; }
ul.products .sf-card__desc { font-size: .85rem; }

/* Shop toolbar: result count (left) + ordering select (right). */
.woocommerce-notices-wrapper + .woocommerce-result-count,
.woocommerce-result-count { float: left; color: var(--muted-foreground); font-size: .8rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 2rem; }
.woocommerce-ordering { float: right; margin: 0 0 2rem; }
.woocommerce-ordering + ul.products,
.woocommerce-result-count + ul.products,
ul.products { clear: both; }

/* Styled sort dropdown — looks like our design system, not the browser default. */
.woocommerce-ordering select,
.woocommerce-ordering .orderby {
	appearance: none; -webkit-appearance: none; -moz-appearance: none;
	font: inherit; color: var(--foreground);
	font-size: .8rem; font-weight: 400;
	letter-spacing: .08em; text-transform: uppercase;
	background-color: transparent;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23666' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'><path d='M3 5l3 3 3-3'/></svg>");
	background-repeat: no-repeat;
	background-position: right .75rem center;
	background-size: .7rem .7rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: .55rem 2rem .55rem 1rem;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.woocommerce-ordering select:hover,
.woocommerce-ordering .orderby:hover { border-color: var(--foreground); }
.woocommerce-ordering select:focus-visible,
.woocommerce-ordering .orderby:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 18%, transparent); }

/* Related products grid (3 cols) */
.related.products, .up-sells.upsells { padding-top: 2rem; }
.related.products > h2, .up-sells.upsells > h2 {
	font-family: var(--font-serif); font-weight: 300;
	font-size: clamp(2rem, 3vw + 1rem, 2.5rem);
	margin: 0 0 3rem;
}
.related.products ul.products, .up-sells.upsells ul.products { grid-template-columns: 1fr; }
@media (min-width: 768px) {
	.related.products ul.products, .up-sells.upsells ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Notice styling */
.woocommerce-notices-wrapper { margin-bottom: 1.5rem; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	list-style: none;
	padding: 1rem 1.25rem;
	border-radius: var(--radius-sm);
	background: var(--muted);
	border: 1px solid var(--border);
	font-size: .9rem;
	color: var(--foreground);
	font-weight: 300;
	margin: 0 0 1rem;
}

/* -------- Trust strip (pre-footer) ------------------------------------- */
.sf-trust {
	border-top: 1px solid var(--border);
	padding: 3.5rem 0;
	background: var(--background);
}
.sf-trust__grid {
	list-style: none; padding: 0; margin: 0;
	display: grid; gap: 2rem;
	grid-template-columns: 1fr;
}
@media (min-width: 640px) { .sf-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .sf-trust__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; } }
.sf-trust__item { display: flex; align-items: flex-start; gap: 1rem; }
.sf-trust__icon { color: var(--primary); flex: 0 0 auto; margin-top: .2rem; }
.sf-trust__title { font-family: var(--font-serif); font-weight: 300; font-size: 1.05rem; margin: 0 0 .2rem; }
.sf-trust__desc { font-size: .825rem; font-weight: 300; color: var(--muted-foreground); line-height: 1.55; margin: 0; }

/* -------- Newsletter --------------------------------------------------- */
.sf-newsletter {
	padding: 5rem 0;
	background: var(--secondary-15);
	border-top: 1px solid var(--border);
}
.sf-newsletter__inner {
	display: grid; gap: 2.5rem;
	grid-template-columns: 1fr;
	align-items: center;
	max-width: var(--container-narrow);
	margin: 0 auto;
	text-align: center;
}
@media (min-width: 900px) {
	.sf-newsletter__inner { grid-template-columns: 1.1fr 1fr; text-align: left; gap: 3.5rem; max-width: none; }
}
.sf-newsletter__title { margin: 0 0 .75rem; font-size: clamp(1.75rem, 2.5vw + 1rem, 2.25rem); }
.sf-newsletter__blurb { margin: 0; font-size: 1rem; line-height: 1.65; max-width: 32rem; margin-left: auto; margin-right: auto; }
@media (min-width: 900px) { .sf-newsletter__blurb { margin-left: 0; margin-right: 0; } }
.sf-newsletter__form { position: relative; display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
@media (min-width: 900px) { .sf-newsletter__form { justify-content: flex-start; } }
.sf-newsletter__form input[type="email"] {
	flex: 1 1 18rem;
	min-width: 0;
	padding: .85rem 1rem;
	font: inherit; color: inherit;
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.sf-newsletter__form input[type="email"]:focus-visible {
	outline: none; border-color: var(--primary);
	box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 18%, transparent);
}
.sf-newsletter__form .sf-btn { padding: .85rem 1.4rem; }
.sf-newsletter__note {
	flex: 1 1 100%;
	margin: .5rem 0 0; font-size: .825rem; font-weight: 300;
	transition: opacity .4s ease;
}
.sf-newsletter__note--ok { color: var(--primary); }
.sf-newsletter__note--err { color: oklch(0.577 0.245 27.325); }

/* -------- Footer ------------------------------------------------------- */
.sf-footer {
	border-top: 1px solid var(--border);
	padding: 4rem 0 3rem;
	margin-top: 0;
}
.sf-footer__grid {
	display: grid; gap: 3rem;
	grid-template-columns: 1fr;
	margin-bottom: 3rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .sf-footer__grid { grid-template-columns: repeat(4, 1fr); } }
.sf-footer__col > .sf-eyebrow { margin-bottom: .75rem; }
.sf-footer__links { list-style: none; padding: 0; margin: 0; font-size: .875rem; font-weight: 300; }
.sf-footer__links li + li { margin-top: .25rem; }
.sf-footer__links a { color: var(--muted-foreground); }
.sf-footer__links a:hover { color: var(--foreground); }
.sf-footer__hours { color: var(--muted-foreground); }

.sf-footer__bar {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
	font-size: .75rem; color: var(--muted-foreground); font-weight: 300;
}
.sf-footer__legal { margin: 0; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; }
.sf-credit { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; }
.sf-credit__sep { color: var(--muted-foreground); opacity: .45; }
.sf-credit__link {
	color: var(--muted-foreground);
	border-bottom: 1px solid color-mix(in oklch, var(--foreground) 18%, transparent);
	padding-bottom: 1px;
	transition: color .15s ease, border-color .15s ease;
}
.sf-credit__link:hover { color: var(--foreground); border-bottom-color: var(--foreground); }
.sf-footer__social { display: flex; gap: 1.5rem; }
.sf-footer__social a:hover { color: var(--foreground); }
.sf-social { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.5rem; }

/* Floating pitch badge — demo / licensing CTA (Customizer → Studio · Pitch badge) */
.sf-pitch-badge {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right, 0px));
	bottom: max(1rem, env(safe-area-inset-bottom, 0px));
	z-index: 99990;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	max-width: min(19rem, calc(100vw - 2rem));
	padding: 1rem 1.2rem 1.05rem;
	background: var(--primary);
	color: var(--primary-foreground);
	border-radius: var(--radius);
	box-shadow:
		0 .55rem 2rem color-mix(in oklch, var(--foreground) 20%, transparent),
		0 0 0 1px color-mix(in oklch, var(--primary-foreground) 14%, transparent) inset;
	transition: transform .2s ease, box-shadow .2s ease;
}
.sf-pitch-badge:hover {
	transform: translateY(-3px);
	box-shadow:
		0 .85rem 2.5rem color-mix(in oklch, var(--foreground) 26%, transparent),
		0 0 0 1px color-mix(in oklch, var(--primary-foreground) 22%, transparent) inset;
}
.sf-pitch-badge__primary {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .3rem;
	width: 100%;
	color: inherit;
	text-decoration: none;
}
a.sf-pitch-badge__primary:hover { color: inherit; text-decoration: none; }
a.sf-pitch-badge__primary:focus-visible {
	outline: 2px solid var(--primary-foreground);
	outline-offset: 4px;
	border-radius: var(--radius-sm);
}
.sf-pitch-badge__primary--static { cursor: default; }
.sf-pitch-badge__email:only-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}
.sf-pitch-badge__email {
	display: block;
	margin-top: .65rem;
	padding-top: .6rem;
	border-top: 1px solid color-mix(in oklch, var(--primary-foreground) 22%, transparent);
	width: 100%;
	text-align: center;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: inherit;
	text-decoration: none;
	opacity: .92;
	transition: opacity .15s ease;
}
.sf-pitch-badge__email:hover {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sf-pitch-badge__email:focus-visible {
	outline: 2px solid var(--primary-foreground);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}
.sf-pitch-badge__title {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: 1.28rem;
	line-height: 1.15;
	letter-spacing: -0.02em;
}
.sf-pitch-badge__sub {
	font-size: .8rem;
	font-weight: 400;
	line-height: 1.45;
	opacity: .92;
}
@media (max-width: 639px) {
	.sf-pitch-badge {
		max-width: min(17.5rem, calc(100vw - 1.5rem));
		padding: .72rem .95rem .78rem;
		border-radius: var(--radius-sm);
	}
	.sf-pitch-badge__primary { gap: .2rem; }
	.sf-pitch-badge__title {
		font-size: 1.08rem;
		line-height: 1.18;
	}
	.sf-pitch-badge__sub {
		font-size: .74rem;
		line-height: 1.38;
	}
	.sf-pitch-badge__email {
		margin-top: .48rem;
		padding-top: .48rem;
		font-size: .64rem;
		letter-spacing: .1em;
	}
}
@media (min-width: 783px) {
	body.admin-bar .sf-pitch-badge { bottom: calc(32px + 1rem); }
@media (max-width: 782px) {
	body.admin-bar .sf-pitch-badge { bottom: calc(46px + 1rem); }
}
@media (prefers-reduced-motion: reduce) {
	.sf-pitch-badge { transition: none; }
	.sf-pitch-badge:hover { transform: none; }
}

/* -------- Utility ------------------------------------------------------ */
.sf-text-center { text-align: center; }
.sf-hide { display: none !important; }

/* Pagination */
.sf-pagination { margin-top: 3rem; }
.sf-pagination .page-numbers {
	list-style: none; padding: 0; margin: 0;
	display: flex; gap: .5rem; justify-content: center;
}
.sf-pagination .page-numbers a,
.sf-pagination .page-numbers span {
	padding: .5rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
	font-size: .875rem; font-weight: 400;
}
.sf-pagination .page-numbers .current { background: var(--foreground); color: var(--background); border-color: var(--foreground); }

/* Journal posts */
.sf-posts { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .sf-posts { grid-template-columns: repeat(2, 1fr); } }
.sf-post__media { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-sm); background: var(--muted); margin-bottom: 1rem; }
.sf-post__media img { width: 100%; height: 100%; object-fit: cover; }
.sf-post__title { font-family: var(--font-serif); font-weight: 300; font-size: 1.35rem; margin: 0 0 .5rem; }
.sf-post__excerpt { font-size: .95rem; }

/* ========================================================================
 * Empty cart state
 * ====================================================================== */
.sf-cart-empty__inner {
	max-width: var(--container-narrow);
	margin: 0 auto;
	text-align: center;
	padding: 2rem 0 4rem;
}
.sf-cart-empty__art { color: var(--primary); margin: 0 auto 1.5rem; display: block; opacity: .85; }
.sf-cart-empty__cta {
	margin-top: 2.5rem;
	display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ========================================================================
 * WooCommerce: cart / checkout / my-account
 * — Fully restyled to match the studio design system.
 * ====================================================================== */

/* Breadcrumb line at top of Woo pages (we still want some padding) */
.woocommerce-cart .sf-main,
.woocommerce-checkout .sf-main,
.woocommerce-account .sf-main {
	padding-top: 2.5rem;
	padding-bottom: 5rem;
}

/* Compact page header for Woo utility pages (cart / checkout / account).
 * Replaces the full editorial hero — they're transactional, not editorial. */
.sf-main--utility .sf-section--pageheader {
	padding-top: .25rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border);
	margin-bottom: 2rem;
}
.sf-pageheader__title {
	font-family: var(--font-serif); font-weight: 300;
	font-size: clamp( 2rem, 5.5vw, 3rem );
	letter-spacing: -.01em;
	line-height: 1.1;
	margin: 0;
}
.sf-main--utility .sf-section--utility {
	padding-top: 0;
}

/* Remove default WC label underline / italics */
.sf-main .woocommerce-info,
.sf-main .woocommerce-message,
.sf-main .woocommerce-error,
.sf-main .woocommerce-notice {
	margin: 0 0 1.5rem;
	padding: .9rem 1.1rem .9rem 2.5rem;
	border-radius: var(--radius-sm);
	background: var(--secondary-15);
	color: var(--foreground);
	font-size: .9rem;
	font-weight: 400;
	border: 1px solid color-mix(in oklch, var(--primary) 20%, transparent);
	border-left: 3px solid var(--primary);
	position: relative;
	list-style: none;
}
.sf-main .woocommerce-info::before,
.sf-main .woocommerce-message::before,
.sf-main .woocommerce-notice::before {
	content: "";
	position: absolute; left: 1rem; top: 1.05rem;
	width: 14px; height: 14px; border-radius: 999px;
	background: var(--primary);
	box-shadow: inset 0 0 0 3px var(--background);
}
.sf-main .woocommerce-error {
	background: color-mix(in oklch, oklch(0.577 0.245 27.325) 10%, transparent);
	border-color: color-mix(in oklch, oklch(0.577 0.245 27.325) 30%, transparent);
	border-left-color: oklch(0.577 0.245 27.325);
}
.sf-main .woocommerce-error::before { background: oklch(0.577 0.245 27.325); }
.sf-main .woocommerce-error,
.sf-main .woocommerce-info,
.sf-main .woocommerce-message { padding-left: 2.5rem; }
.sf-main .woocommerce-error li,
.sf-main .woocommerce-message li,
.sf-main .woocommerce-info li { margin: 0; }
.sf-main .woocommerce-message .button,
.sf-main .woocommerce-info .button {
	float: right; margin-top: -.35rem;
	padding: .45rem .9rem; font-size: .8rem;
}

/* Tables (cart / order review) */
.sf-main .shop_table, .sf-main table.cart, .sf-main table.shop_table_responsive {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 2rem;
	font-size: .95rem;
}
.sf-main .shop_table thead th {
	text-align: left;
	font-weight: 400;
	font-size: .72rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted-foreground);
	padding: 0 0 1rem;
	border-bottom: 1px solid var(--border);
}
.sf-main .shop_table tbody td {
	padding: 1.5rem 1rem 1.5rem 0;
	border-bottom: 1px solid var(--border);
	vertical-align: middle;
	font-weight: 300;
}
.sf-main .shop_table tbody td:first-child { padding-left: 0; }
.sf-main .shop_table .product-thumbnail { width: 96px; }
.sf-main .shop_table .product-thumbnail a { display: block; width: 80px; }
.sf-main .shop_table .product-thumbnail img {
	width: 80px; height: 100px; object-fit: cover;
	border-radius: var(--radius-sm);
}
.sf-main .shop_table .product-name a {
	font-family: var(--font-serif); font-weight: 300;
	font-size: 1.1rem; color: var(--foreground);
}
.sf-main .shop_table .product-name a:hover { color: var(--primary); }
.sf-main .shop_table .product-name .variation {
	font-size: .8rem; color: var(--muted-foreground); margin-top: .25rem;
	display: flex; gap: .5rem; flex-wrap: wrap;
}
.sf-main .shop_table .product-name .variation dt,
.sf-main .shop_table .product-name .variation dd { display: inline; margin: 0; padding: 0; }
.sf-main .shop_table .product-name .variation dd + dt::before { content: "· "; padding-left: .25rem; }
.sf-main .shop_table .product-price,
.sf-main .shop_table .product-subtotal { font-variant-numeric: tabular-nums; }
.sf-main .shop_table .product-remove a.remove {
	width: 24px; height: 24px; line-height: 22px; text-align: center;
	border-radius: 999px; color: var(--muted-foreground);
	font-size: 1.25rem; font-weight: 400; display: inline-block;
	text-decoration: none;
}
.sf-main .shop_table .product-remove a.remove:hover {
	background: oklch(0.577 0.245 27.325); color: #fff;
}
.sf-main .shop_table .actions { padding: 1.5rem 0; text-align: right; border: 0; }
.sf-main .coupon { display: inline-flex; gap: .5rem; align-items: center; }
.sf-main .coupon label { display: none; }
.sf-main .coupon input[type="text"] {
	padding: .65rem .85rem; font: inherit; font-size: .9rem;
	border: 1px solid var(--border); border-radius: var(--radius-sm);
	background: var(--background);
}
.sf-main .coupon input[type="text"]:focus-visible {
	outline: none; border-color: var(--primary);
	box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 18%, transparent);
}
.sf-main .actions button[name="update_cart"] { margin-left: .5rem; }

/* -----------------------------------------------------------------------
 * Mobile cart layout
 *
 * Desktop renders as a normal WooCommerce table. On mobile we flip each
 * row into a small editorial card: thumbnail left, title + unit price
 * center, remove × in the top-right as an overlay, and a second row with
 * the quantity stepper on the left and line subtotal on the right. The
 * coupon + update buttons become full-width stacked controls because the
 * inline Woo default truncates badly in a 390px viewport.
 * --------------------------------------------------------------------- */
@media (max-width: 720px) {
	.woocommerce-cart .sf-main,
	.woocommerce-checkout .sf-main { padding-top: 1rem; padding-bottom: 3rem; }

	.sf-main .shop_table thead { display: none; }

	/* Card layout: 72px thumbnail | content */
	.sf-main .shop_table,
	.sf-main table.cart { border-collapse: separate; border-spacing: 0; }
	.sf-main .shop_table tbody tr.cart_item {
		position: relative;
		display: grid;
		grid-template-columns: 72px 1fr;
		grid-template-areas:
			"thumb name    remove"
			"thumb price   remove"
			"qty   qty     subtotal";
		grid-template-columns: 72px 1fr auto;
		column-gap: 1rem; row-gap: .35rem;
		padding: 1.25rem 0;
		border-bottom: 1px solid var(--border);
	}
	.sf-main .shop_table tbody td { padding: 0; border: 0; display: block; }

	.sf-main .shop_table tbody td.product-thumbnail { grid-area: thumb; width: 72px; align-self: start; }
	.sf-main .shop_table tbody td.product-thumbnail a,
	.sf-main .shop_table tbody td.product-thumbnail img {
		width: 72px; height: 90px; border-radius: var(--radius-sm);
	}
	.sf-main .shop_table tbody td.product-name { grid-area: name; align-self: start; padding-right: 2rem; }
	.sf-main .shop_table tbody td.product-name a { font-size: 1.05rem; line-height: 1.35; }
	.sf-main .shop_table tbody td.product-price { grid-area: price; align-self: start; color: var(--muted-foreground); font-size: .9rem; }
	.sf-main .shop_table tbody td.product-quantity { grid-area: qty; align-self: center; margin-top: .5rem; }
	.sf-main .shop_table tbody td.product-subtotal {
		grid-area: subtotal; align-self: center; justify-self: end;
		margin-top: .5rem;
		font-family: var(--font-serif); font-size: 1.05rem;
	}
	.sf-main .shop_table tbody td.product-remove {
		grid-area: remove; align-self: start; justify-self: end;
	}

	/* Hide data-title pseudos on mobile — card layout doesn't need them */
	.sf-main .shop_table tbody td.product-price::before,
	.sf-main .shop_table tbody td.product-subtotal::before,
	.sf-main .shop_table tbody td.product-quantity::before { content: none; }

	/* Actions row: coupon input full-width, Apply + Update stacked */
	.sf-main .shop_table .actions { display: block; padding: 1.5rem 0 0; text-align: left; }
	.sf-main .coupon {
		display: grid; grid-template-columns: 1fr auto; gap: .5rem;
		margin-bottom: .75rem;
	}
	.sf-main .coupon input[type="text"] { width: 100%; min-width: 0; }
	.sf-main .coupon button.button { white-space: nowrap; padding: .75rem 1.1rem; font-size: .72rem; }
	.sf-main .actions button[name="update_cart"] {
		display: block; width: 100%; margin: 0;
		padding: .85rem 1rem; font-size: .72rem;
	}
}

/* --- Quantity stepper on the cart & checkout pages ---------------------
 * Woo renders the stepper inside td.product-quantity on the cart page and
 * inside the line-item block on the checkout. These live outside form.cart
 * so they don't pick up the single-product stepper styles — we have to
 * mirror them here. */
.sf-main .shop_table .product-quantity .quantity,
.sf-main .cart_item .quantity {
	display: inline-flex; align-items: stretch;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--background);
	overflow: hidden;
	height: 2.75rem;
}
.sf-main .shop_table .product-quantity .quantity input.qty,
.sf-main .cart_item .quantity input.qty {
	width: 3rem; max-width: 3rem; padding: 0; margin: 0;
	border: 0; background: transparent;
	text-align: center; font: inherit;
	font-weight: 300; font-size: 1rem;
	appearance: textfield; -moz-appearance: textfield;
}
.sf-main .shop_table .product-quantity .quantity input[type="number"]::-webkit-outer-spin-button,
.sf-main .shop_table .product-quantity .quantity input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none; appearance: none; margin: 0;
}

/* Cart totals / order review sidebar */
.sf-main .cart-collaterals {
	display: grid; gap: 2.5rem;
	grid-template-columns: 1fr;
	margin-top: 1rem;
}
@media (min-width: 900px) {
	.sf-main .cart-collaterals { grid-template-columns: 1fr 26rem; align-items: start; }
	.sf-main .cart-collaterals .cross-sells { grid-column: 1; }
	.sf-main .cart-collaterals .cart_totals { grid-column: 2; }
}
.sf-main .cart_totals, .sf-main .woocommerce-checkout-review-order {
	background: var(--secondary-15);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 1.75rem;
}
.sf-main .cart_totals h2,
.sf-main #order_review_heading,
.sf-main .woocommerce-checkout-review-order h3 {
	font-family: var(--font-serif); font-weight: 300;
	font-size: 1.35rem; margin: 0 0 1.25rem;
}
.sf-main .cart_totals table,
.sf-main .woocommerce-checkout-review-order-table {
	width: 100%; border-collapse: collapse;
	margin: 0;
}
.sf-main .cart_totals tr th,
.sf-main .cart_totals tr td,
.sf-main .woocommerce-checkout-review-order-table tr th,
.sf-main .woocommerce-checkout-review-order-table tr td {
	padding: .75rem 0;
	border-bottom: 1px solid var(--border);
	font-weight: 300; vertical-align: top;
}
.sf-main .cart_totals tr th,
.sf-main .woocommerce-checkout-review-order-table tr th {
	text-align: left;
	font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
	color: var(--muted-foreground); font-weight: 400;
}
.sf-main .cart_totals tr td,
.sf-main .woocommerce-checkout-review-order-table tr td { text-align: right; font-variant-numeric: tabular-nums; }
/* Line items: first column is the product title — keep under "Product" header. */
.sf-main .woocommerce-checkout-review-order-table tbody td.product-name {
	text-align: left;
}
.sf-main .cart_totals .order-total td,
.sf-main .cart_totals .order-total th,
.sf-main .woocommerce-checkout-review-order-table tfoot .order-total td,
.sf-main .woocommerce-checkout-review-order-table tfoot .order-total th {
	font-size: 1rem; font-weight: 400;
	padding-top: 1rem; color: var(--foreground);
	border-bottom: 0;
}
.sf-main .cart_totals .order-total .amount { font-family: var(--font-serif); font-weight: 400; font-size: 1.25rem; }
.sf-main .woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; }
.sf-main .woocommerce-shipping-methods li { margin: 0 0 .35rem; }
.sf-main .woocommerce-shipping-methods label { font-size: .9rem; font-weight: 300; }
.sf-main .shipping-calculator-button {
	display: inline-block; margin-top: .25rem;
	font-size: .8rem; color: var(--primary); text-decoration: underline;
	text-underline-offset: 3px;
}
.sf-main .wc-proceed-to-checkout { padding-top: 1.25rem; }
.sf-main .wc-proceed-to-checkout .checkout-button {
	display: inline-flex; align-items: center; justify-content: center;
	width: 100%; padding: .95rem 1.25rem;
	font-size: .95rem; font-weight: 500;
	background: var(--primary); color: var(--primary-foreground);
	border: 0; border-radius: var(--radius-sm);
	cursor: pointer; text-decoration: none;
	transition: background .15s ease;
}
.sf-main .wc-proceed-to-checkout .checkout-button:hover { background: color-mix(in oklch, var(--primary) 90%, black); }

/* Checkout two-column layout */
.sf-main form.checkout.woocommerce-checkout {
	display: grid; gap: 3rem;
	grid-template-columns: 1fr;
}
@media (min-width: 900px) {
	/* One sidebar grid cell (`.sf-checkout__order-review` in form-checkout
	 * template) keeps the heading + order box stacked without sharing row
	 * height with the billing column. */
	.sf-main form.checkout.woocommerce-checkout {
		grid-template-columns: 1fr 26rem;
		align-items: start;
	}
	.sf-main form.checkout .woocommerce-pay-buttons {
		grid-column: 1 / -1;
	}
	.sf-main form.checkout #customer_details {
		grid-column: 1;
		min-width: 0;
	}
	.sf-main form.checkout .sf-checkout__order-review {
		grid-column: 2;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		min-width: 0;
	}
}
.sf-main form.checkout h3 {
	font-family: var(--font-serif); font-weight: 300; font-size: 1.5rem;
	margin: 0 0 1.25rem;
}
.sf-main form.checkout .form-row { display: grid; gap: .4rem; margin: 0 0 1rem; }
.sf-main form.checkout .form-row label {
	font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--muted-foreground); font-weight: 400;
}
.sf-main form.checkout .form-row .required { color: var(--primary); }
.sf-main form.checkout input[type="text"],
.sf-main form.checkout input[type="email"],
.sf-main form.checkout input[type="tel"],
.sf-main form.checkout input[type="password"],
.sf-main form.checkout textarea,
.sf-main form.checkout .select2-selection,
.sf-main .woocommerce-form-login input,
.sf-main .woocommerce-EditAccountForm input[type="text"],
.sf-main .woocommerce-EditAccountForm input[type="email"],
.sf-main .woocommerce-EditAccountForm input[type="password"],
.sf-main .woocommerce-address-fields input[type="text"],
.sf-main .woocommerce-address-fields input[type="email"],
.sf-main .woocommerce-address-fields input[type="tel"] {
	width: 100%;
	padding: .75rem .9rem;
	font: inherit;
	background: var(--background);
	color: var(--foreground);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	min-height: 2.75rem;
	line-height: 1.4;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.sf-main form.checkout input:focus-visible,
.sf-main form.checkout textarea:focus-visible,
.sf-main .woocommerce-form-login input:focus-visible,
.sf-main .woocommerce-EditAccountForm input:focus-visible,
.sf-main .woocommerce-address-fields input:focus-visible {
	outline: none; border-color: var(--primary);
	box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 18%, transparent);
}
.sf-main form.checkout textarea { min-height: 6rem; resize: vertical; }
/* Checkout name/phone split fields: stack full-width on mobile, two-up on
 * tablet+ where there's real estate. WooCommerce's float-based defaults
 * leave them at ~47% even at 390px, which truncates placeholders. */
.sf-main form.checkout .form-row-first,
.sf-main form.checkout .form-row-last {
	display: block; width: 100%;
}
@media (min-width: 640px) {
	.sf-main form.checkout p.form-row-first,
	.sf-main form.checkout p.form-row-last {
		width: calc(50% - .5rem);
		display: inline-grid;
	}
	.sf-main form.checkout p.form-row-first { margin-right: 1rem; }
}
.sf-main .select2-container--default .select2-selection--single {
	height: auto; padding: .35rem .25rem;
	border-radius: var(--radius-sm);
	background: var(--background); border-color: var(--border);
}
.sf-main .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--foreground); line-height: 1.9;
}
.sf-main .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; }

.sf-main #payment ul.payment_methods {
	list-style: none; margin: 0 0 1.5rem; padding: 0;
	border: 1px solid var(--border); border-radius: var(--radius-sm);
	background: var(--background);
}
.sf-main #payment ul.payment_methods li {
	padding: 1rem 1.1rem;
	border-bottom: 1px solid var(--border);
}
.sf-main #payment ul.payment_methods li:last-child { border-bottom: 0; }
.sf-main #payment ul.payment_methods label { font-size: .95rem; font-weight: 400; margin-left: .35rem; }
.sf-main #payment .payment_box {
	margin-top: .75rem; padding: .9rem 1rem;
	background: var(--secondary-15); border-radius: var(--radius-sm);
	font-size: .875rem; color: var(--muted-foreground);
}
.sf-main #payment .place-order { padding-top: 1rem; }
.sf-main #payment .place-order .button,
.sf-main #place_order {
	display: inline-flex; align-items: center; justify-content: center;
	width: 100%; padding: 1rem 1.25rem;
	font-size: .95rem; font-weight: 500;
	background: var(--primary); color: var(--primary-foreground);
	border: 0; border-radius: var(--radius-sm);
	cursor: pointer;
	transition: background .15s ease;
}
.sf-main #place_order:hover { background: color-mix(in oklch, var(--primary) 90%, black); }
.sf-main .woocommerce-terms-and-conditions-wrapper { margin: 1rem 0; font-size: .85rem; color: var(--muted-foreground); }

/* My account */
.sf-main .woocommerce-MyAccount-navigation {
	margin: 0 0 2rem;
}
.sf-main .woocommerce-MyAccount-navigation ul {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-wrap: wrap; gap: .25rem;
	border-bottom: 1px solid var(--border);
}
.sf-main .woocommerce-MyAccount-navigation ul li a {
	display: inline-block;
	padding: .85rem 1.1rem;
	font-size: .85rem; font-weight: 400;
	color: var(--muted-foreground);
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color .15s ease, border-color .15s ease;
}
.sf-main .woocommerce-MyAccount-navigation ul li.is-active a,
.sf-main .woocommerce-MyAccount-navigation ul li a:hover {
	color: var(--foreground); border-bottom-color: var(--primary);
}
@media (min-width: 900px) {
	.sf-main .woocommerce-account .woocommerce {
		display: grid; grid-template-columns: 14rem 1fr; gap: 3rem;
	}
	.sf-main .woocommerce-MyAccount-navigation ul {
		flex-direction: column; border-bottom: 0; gap: 0;
	}
	.sf-main .woocommerce-MyAccount-navigation ul li a {
		border-bottom: 0; border-left: 2px solid transparent;
		padding: .65rem 1rem; margin-bottom: 0;
	}
	.sf-main .woocommerce-MyAccount-navigation ul li.is-active a,
	.sf-main .woocommerce-MyAccount-navigation ul li a:hover {
		border-bottom-color: transparent; border-left-color: var(--primary);
	}
	.sf-main .woocommerce-MyAccount-content { min-width: 0; }
}
.sf-main .woocommerce-MyAccount-content .woocommerce-Address {
	background: var(--secondary-15);
	padding: 1.5rem; border-radius: var(--radius-md);
	border: 1px solid var(--border);
	margin-bottom: 1.5rem;
}
.sf-main .woocommerce-form-login-toggle,
.sf-main .woocommerce-form-coupon-toggle { margin-bottom: 1rem; }

/* -----------------------------------------------------------------------
 * My account — Login / Register forms
 *
 * WooCommerce stuffs the rememberme checkbox AND the submit button into
 * the same <p class="form-row">, which breaks any grid/stack layout. The
 * form also ships with an empty show-password toggle (relies on Woo's
 * icon font we don't load). Everything below is geared at turning the
 * stock form into a polished, calm login card. */

.sf-main .u-columns > .col-1,
.sf-main .u-columns > .col-2 { padding: 0; }

.sf-main .woocommerce-form-login,
.sf-main .woocommerce-form-register,
.sf-main .woocommerce-ResetPassword,
.sf-main .woocommerce-form-coupon {
	background: color-mix(in oklch, var(--secondary-15) 50%, var(--background));
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 1.75rem 1.5rem;
	margin: .25rem 0 1.5rem;
	max-width: 28rem;
}
@media (min-width: 640px) {
	.sf-main .woocommerce-form-login,
	.sf-main .woocommerce-form-register,
	.sf-main .woocommerce-ResetPassword { padding: 2rem 2rem 1.75rem; }
}

/* "Login" / "Register" subheadings — tone them down so the page title
 * ("My account") is still the star. Scoped to the account body class so
 * we don't touch h2s elsewhere on the site. */
.woocommerce-account .sf-main h2,
.woocommerce-lost-password .sf-main h2 {
	font-family: var(--font-sans); font-weight: 400;
	font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
	color: var(--muted-foreground);
	margin: 0 0 .85rem;
}

/* Field rows — stack cleanly, but let the rememberme row (which also
 * contains the submit button) flow horizontally. */
.sf-main .woocommerce-form-login .form-row,
.sf-main .woocommerce-form-register .form-row,
.sf-main .woocommerce-ResetPassword .form-row {
	display: block;
	margin: 0 0 1rem;
}
.sf-main .woocommerce-form-login label:not(.woocommerce-form-login__rememberme),
.sf-main .woocommerce-form-register label:not(.woocommerce-form-login__rememberme),
.sf-main .woocommerce-ResetPassword label {
	display: block;
	font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--muted-foreground);
	margin-bottom: .4rem;
}
/* Make the reset-password field behave like login fields (full-width,
 * padded input). */
.sf-main .woocommerce-ResetPassword input[type="text"],
.sf-main .woocommerce-ResetPassword input[type="email"] {
	width: 100%; padding: .75rem .9rem;
	font: inherit;
	background: var(--background); color: var(--foreground);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	min-height: 2.75rem; line-height: 1.4;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.sf-main .woocommerce-ResetPassword input:focus-visible {
	outline: none; border-color: var(--primary);
	box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 18%, transparent);
}
/* Reset-password submit button — primary action. */
.sf-main .woocommerce-ResetPassword button[name="wc_reset_password"],
.sf-main .woocommerce-ResetPassword button.woocommerce-Button {
	background: var(--primary); border-color: var(--primary); color: var(--primary-foreground);
	width: 100%; padding: .95rem 1.25rem;
	font-size: .78rem; letter-spacing: .18em;
}
.sf-main .woocommerce-ResetPassword button[name="wc_reset_password"]:hover,
.sf-main .woocommerce-ResetPassword button.woocommerce-Button:hover {
	background: color-mix(in oklch, var(--primary) 82%, black);
	border-color: color-mix(in oklch, var(--primary) 82%, black);
	color: var(--primary-foreground);
}
/* Lead copy above forms (e.g. "Lost your password? Please enter…"). */
.woocommerce-lost-password .sf-main .sf-container > p,
.woocommerce-account .sf-main .sf-container > p {
	max-width: 32rem; margin: 0 0 1.25rem;
	color: var(--muted-foreground); font-size: .95rem; line-height: 1.6;
}

/* Show/hide password toggle — replace Woo's missing font-icon with a
 * tasteful inline SVG eye. */
.sf-main .password-input {
	position: relative; display: block;
}
.sf-main .password-input input[type="password"],
.sf-main .password-input input[type="text"] { padding-right: 2.75rem; }
.sf-main .show-password-input {
	position: absolute;
	top: 50%; right: .65rem;
	transform: translateY(-50%);
	width: 1.75rem; height: 1.75rem;
	padding: 0; margin: 0;
	background: transparent; border: 0;
	cursor: pointer;
	color: var(--muted-foreground);
	display: inline-flex; align-items: center; justify-content: center;
	transition: color .15s ease;
}
.sf-main .show-password-input::before {
	content: "";
	width: 18px; height: 18px;
	background: currentColor;
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/><circle cx='12' cy='12' r='3'/></svg>");
	        mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/><circle cx='12' cy='12' r='3'/></svg>");
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	-webkit-mask-size: contain; mask-size: contain;
}
.sf-main .show-password-input.display-password::before {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M17.94 17.94A10.94 10.94 0 0 1 12 20c-7 0-11-8-11-8a19.79 19.79 0 0 1 4.22-5.22m3.11-1.94A10.94 10.94 0 0 1 12 4c7 0 11 8 11 8a19.85 19.85 0 0 1-3.17 4.17M9.88 9.88a3 3 0 1 0 4.24 4.24'/><line x1='1' y1='1' x2='23' y2='23'/></svg>");
	        mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M17.94 17.94A10.94 10.94 0 0 1 12 20c-7 0-11-8-11-8a19.79 19.79 0 0 1 4.22-5.22m3.11-1.94A10.94 10.94 0 0 1 12 4c7 0 11 8 11 8a19.85 19.85 0 0 1-3.17 4.17M9.88 9.88a3 3 0 1 0 4.24 4.24'/><line x1='1' y1='1' x2='23' y2='23'/></svg>");
	color: var(--primary);
}
.sf-main .show-password-input:hover { color: var(--foreground); }

/* Remember me + submit row — WooCommerce puts them both in one <p>. Turn
 * that paragraph into a two-row flex block: checkbox on top, full-width
 * submit button below. */
.sf-main .woocommerce-form-login p.form-row:has(.woocommerce-form-login__submit) {
	display: flex; flex-direction: column; gap: 1rem;
	margin-top: 1.25rem; margin-bottom: .5rem;
}
.sf-main .woocommerce-form-login__rememberme {
	display: inline-flex; align-items: center; gap: .55rem;
	margin: 0;
	font-size: .9rem; font-weight: 400;
	letter-spacing: 0; text-transform: none;
	color: var(--foreground);
	cursor: pointer;
}
.sf-main .woocommerce-form-login__rememberme input[type="checkbox"] {
	appearance: none; -webkit-appearance: none;
	width: 1.1rem; height: 1.1rem; min-height: 0;
	padding: 0; margin: 0; flex: 0 0 auto;
	border: 1px solid color-mix(in oklch, var(--foreground) 35%, transparent);
	border-radius: 3px; background: var(--background);
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
	display: inline-grid; place-content: center;
}
.sf-main .woocommerce-form-login__rememberme input[type="checkbox"]:checked {
	background: var(--primary); border-color: var(--primary);
}
.sf-main .woocommerce-form-login__rememberme input[type="checkbox"]:checked::after {
	content: "";
	width: .7rem; height: .7rem;
	background: var(--primary-foreground);
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
	        mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	-webkit-mask-size: contain; mask-size: contain;
}
.sf-main .woocommerce-form-login__rememberme input[type="checkbox"]:focus-visible {
	outline: none; box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 25%, transparent);
}

/* Log in / Register submit button — primary action on this form, should
 * be filled green, not the outlined secondary style. */
.sf-main .woocommerce-form-login__submit,
.sf-main .woocommerce-form-register__submit,
.sf-main .woocommerce-form button.button[name="login"],
.sf-main .woocommerce-form button.button[name="register"] {
	background: var(--primary); border-color: var(--primary); color: var(--primary-foreground);
	width: 100%;
	padding: .95rem 1.25rem;
	font-size: .78rem; letter-spacing: .18em;
}
.sf-main .woocommerce-form-login__submit:hover,
.sf-main .woocommerce-form-register__submit:hover {
	background: color-mix(in oklch, var(--primary) 82%, black);
	border-color: color-mix(in oklch, var(--primary) 82%, black);
	color: var(--primary-foreground);
}

/* "Lost your password?" — subtle editorial link, sits right below the form. */
.sf-main .woocommerce-LostPassword,
.sf-main .lost_password {
	margin: 1rem 0 0; font-size: .875rem;
}
.sf-main .woocommerce-LostPassword a,
.sf-main .lost_password a {
	color: var(--muted-foreground);
	text-decoration: none;
	border-bottom: 1px solid color-mix(in oklch, var(--foreground) 20%, transparent);
	padding-bottom: 1px;
	transition: color .15s ease, border-color .15s ease;
}
.sf-main .woocommerce-LostPassword a:hover,
.sf-main .lost_password a:hover {
	color: var(--primary);
	border-bottom-color: var(--primary);
}

/* Two-column login/register layout on account pages — stack to single
 * column below 720px so the forms breathe. */
@media (min-width: 720px) {
	.sf-main .u-columns.col2-set {
		display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
	}
}

/* -----------------------------------------------------------------------
 * WooCommerce action buttons — two tiers of emphasis
 *
 * PRIMARY ACTIONS  (.button.alt — "Proceed to checkout", "Place order",
 *                    "Save changes"): filled deep-hunter green, the single
 *                    clear next-step CTA on the page.
 *
 * SECONDARY ACTIONS (.button, unqualified — "Apply coupon", "Update cart",
 *                    "View order"): outlined / ghost, so they read as
 *                    supporting controls rather than competing with the
 *                    primary CTA. Filled dark buttons here used to fight
 *                    the primary for attention — especially on mobile where
 *                    they stack. Outlined keeps hierarchy clean.
 * --------------------------------------------------------------------- */
.sf-main .wc-forward:not(.checkout-button):not(.sf-btn),
.sf-main button.button, .sf-main a.button,
.sf-main input[type="submit"].button {
	display: inline-flex; align-items: center; justify-content: center;
	gap: .35rem;
	padding: .75rem 1.1rem;
	font: inherit; font-size: .78rem; font-weight: 500;
	letter-spacing: .12em; text-transform: uppercase;
	background: transparent; color: var(--foreground);
	border: 1px solid color-mix(in oklch, var(--foreground) 28%, transparent);
	border-radius: var(--radius-sm);
	cursor: pointer; text-decoration: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.sf-main button.button:hover, .sf-main a.button:hover,
.sf-main input[type="submit"].button:hover {
	background: var(--foreground);
	border-color: var(--foreground);
	color: var(--background);
}
.sf-main button.button.alt, .sf-main a.button.alt,
.sf-main input[type="submit"].button.alt {
	background: var(--primary); border-color: var(--primary); color: var(--primary-foreground);
}
.sf-main button.button.alt:hover, .sf-main a.button.alt:hover,
.sf-main input[type="submit"].button.alt:hover {
	background: color-mix(in oklch, var(--primary) 82%, black);
	border-color: color-mix(in oklch, var(--primary) 82%, black);
	color: var(--primary-foreground);
}
.sf-main button.button[disabled] { opacity: .5; cursor: not-allowed; }

/* Cross-sells / related already use .sf-card in loops. Heading: */
.sf-main .cross-sells h2, .sf-main .cart_totals h2 { font-family: var(--font-serif); font-weight: 300; font-size: 1.35rem; }

/* Order received / thank you */
.sf-main .woocommerce-order {
	max-width: 52rem; margin: 0 auto;
}
.sf-main .woocommerce-order-overview {
	display: grid; grid-template-columns: 1fr; gap: 1.25rem;
	list-style: none; padding: 1.5rem; margin: 0 0 2rem;
	background: var(--secondary-15); border: 1px solid var(--border);
	border-radius: var(--radius-md);
}
@media (min-width: 640px) { .sf-main .woocommerce-order-overview { grid-template-columns: repeat(4, 1fr); } }
.sf-main .woocommerce-order-overview li strong {
	display: block;
	font-family: var(--font-serif); font-weight: 300; font-size: 1.1rem; color: var(--foreground);
	margin-top: .25rem;
}
.sf-main .woocommerce-order-overview li {
	font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-foreground);
	padding: 0;
}

/* (Legacy cart quantity reset removed — stepper styles live above.) */

/* ========================================================================
 * Utility: motion + focus rings
 * ====================================================================== */
@media (prefers-reduced-motion: no-preference) {
	.sf-card, .sf-card__img, .sf-card__media img, .sf-btn,
	.sf-nav__icon, .sf-drawer__menu a { transition-duration: .22s; }
}

/* Subtle, on-brand focus ring — only when visible (keyboard / a11y).
 * Warm-neutral tone so it sits beside ivory without going clinical. */
*:focus-visible {
	outline: 2px solid color-mix(in oklch, var(--foreground) 35%, transparent);
	outline-offset: 2px;
	border-radius: 3px;
}
.sf-nav a:focus-visible, .sf-menu a:focus-visible, .sf-drawer__menu a:focus-visible,
.sf-footer__links a:focus-visible { outline-offset: 4px; }
/* Inputs get a filled ring inside, see component rules above — kill the outer default */
.sf-main input:focus-visible, .sf-main textarea:focus-visible, .sf-main select:focus-visible,
.sf-newsletter__form input:focus-visible, .sf-search-panel input:focus-visible { outline: none; }

/* 404 search */
.sf-404__search { display: flex; gap: .5rem; max-width: 32rem; margin: 2.5rem auto 0; }
.sf-404__search input[type="search"] {
	flex: 1 1 auto;
	padding: .85rem 1rem;
	font: inherit;
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
}
.sf-404__search input[type="search"]:focus-visible {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 18%, transparent);
}
.sf-404__search .sf-btn { padding: .85rem 1.25rem; }

/* -------- Section head (title left, view-all link right) -------------- */
.sf-section__head {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 1.5rem; flex-wrap: wrap;
	margin-bottom: 3rem;
}
.sf-section__head .sf-heading { margin-top: .5rem; }
.sf-section__link {
	display: inline-flex; align-items: center; gap: .6rem;
	font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
	color: var(--foreground);
	padding-bottom: .2rem;
	border-bottom: 1px solid var(--border);
	transition: color .15s ease, border-color .15s ease, gap .2s ease;
	white-space: nowrap;
}
.sf-section__link:hover { color: var(--primary); border-color: var(--primary); gap: .9rem; }
.sf-section__link svg { transition: transform .2s ease; }
.sf-section__link:hover svg { transform: translateX(2px); }

/* -------- Featured products (homepage 3-up) --------------------------- */
.sf-featured__grid {
	display: grid; gap: 2rem;
	grid-template-columns: 1fr;
}
@media (min-width: 768px) { .sf-featured__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sf-featured__grid .sf-card__media { aspect-ratio: 4 / 5; }
.sf-card--product .sf-card__kicker {
	font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
	color: var(--muted-foreground); font-weight: 500; margin: .1rem 0 .25rem;
}
.sf-card--product .sf-card__title { font-size: 1.4rem; margin: 0 0 .6rem; }
.sf-card--product .sf-card__meta { border-top: 1px solid var(--border); padding-top: .85rem; margin-top: .2rem; }
.sf-card--product .sf-card__price,
.sf-card--product .sf-card__price .woocommerce-Price-amount {
	font-family: var(--font-sans);
	font-size: .95rem; font-weight: 500;
	letter-spacing: .01em;
	color: var(--foreground);
}

/* -------- Testimonials grid (3-up) — borderless editorial ------------- */
.sf-testimonials__grid {
	list-style: none; padding: 0; margin: 0;
	display: grid; gap: 3rem 2.5rem;
	grid-template-columns: 1fr;
}
@media (min-width: 768px) { .sf-testimonials__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; } }
.sf-testimonials__item {
	display: flex; flex-direction: column; gap: 1.25rem;
	background: transparent;
	border: 0; padding: 0;
}
.sf-testimonials__mark {
	color: color-mix(in oklch, var(--primary) 70%, var(--foreground));
	opacity: .55;
}
.sf-testimonials__quote {
	margin: 0;
	font-family: var(--font-serif);
	font-weight: 400; font-size: 1.18rem; line-height: 1.55;
	color: var(--foreground);
}
.sf-testimonials__footer {
	margin-top: .4rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
	display: grid; gap: .25rem;
}
.sf-testimonials__author {
	font-style: normal;
	font-weight: 500; font-size: .88rem;
	color: var(--foreground);
}
.sf-testimonials__context {
	font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
	color: var(--muted-foreground);
}

/* -------- Instagram strip (6-up) -------------------------------------- */
.sf-ig__grid {
	list-style: none; padding: 0; margin: 0;
	display: grid; gap: .65rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (min-width: 768px) { .sf-ig__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.sf-ig__item { position: relative; }
.sf-ig__link {
	display: block; position: relative; overflow: hidden;
	aspect-ratio: 1 / 1;
	background: var(--muted);
	border-radius: var(--radius-sm);
}
.sf-ig__img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .5s ease, filter .2s ease;
}
.sf-ig__overlay {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	color: #fff;
	background: color-mix(in oklch, var(--foreground) 40%, transparent);
	opacity: 0; transition: opacity .2s ease;
}
.sf-ig__link:hover .sf-ig__img { transform: scale(1.05); }
.sf-ig__link:hover .sf-ig__overlay { opacity: 1; }

/* -------- Cart free-delivery progress bar ----------------------------- */
.sf-cart-progress {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
}
.sf-cart-progress__copy {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	margin: 0 0 .65rem;
	font-size: .82rem; font-weight: 500;
	color: var(--foreground);
}
.sf-cart-progress__copy em {
	font-style: normal;
	color: var(--muted-foreground); font-weight: 400;
}
.sf-cart-progress__bar {
	height: 6px;
	background: color-mix(in oklch, var(--foreground) 8%, transparent);
	border-radius: 999px;
	overflow: hidden;
}
.sf-cart-progress__fill {
	display: block; height: 100%;
	background: var(--primary);
	border-radius: 999px;
	transition: width .35s ease;
}
.sf-cart-progress--done { border-color: color-mix(in oklch, var(--primary) 30%, var(--border)); }
.sf-cart-progress--done .sf-cart-progress__copy { color: var(--primary); }

}