/*
Theme Name:        ShopFlow e-commerce
Theme URI:         https://getproservices.net/shopflow
Author:            Get Pro Services
Author URI:        https://getproservices.net
Description:       A modern, responsive WooCommerce theme for fashion brands, with one-click demo content (sample categories, products and pages) and a dynamic homepage built on real store data. Built to pair with WP Shop Customizer: deliberately leaves the WooCommerce product loop and single-product templates untouched, so every setting in WP Shop Customizer (columns, card style, badges, buttons, sliders, category tiles, page margins) applies cleanly with nothing to fight.
Version:           1.6.0
Requires at least: 6.0
Tested up to:      6.8
Requires PHP:      7.4
Requires Plugins:  woocommerce
License:           GNU General Public License v2 or later
License URI:       LICENSE
Text Domain:       shopflow
Tags:              e-commerce, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-patterns

ShopFlow e-commerce is based on Underscores, https://underscores.me/, (C) 2012-2026 Automattic, Inc.,
licensed under GPLv2 or later. Reset rules below are adapted from Normalize.css, (C) Nicolas
Gallagher and Jonathan Neal, MIT licensed.
*/

/* =========================================================================
   Table of contents
   1.0  Design tokens (CSS custom properties)
   2.0  Reset
   3.0  Base typography
   4.0  Layout helpers
   5.0  Forms
   6.0  Links, buttons
   7.0  Site header
   8.0  Navigation menu
   9.0  Content: posts and pages
   10.0 Comments
   11.0 Widgets
   12.0 Footer
   13.0 Accessibility
   14.0 Media
   15.0 WooCommerce base layout (loop grid intentionally left to the plugin)
   ========================================================================= */

/* ------------------------------------------------------------------------
   1.0 Design tokens
   Every color, spacing and radius the theme uses is a custom property, so
   child themes and the Customizer (see inc/customizer.php) can override
   them without touching selectors.
   ------------------------------------------------------------------------ */
:root {
	--sf-ink: #0B1B3B;
	--sf-ink-soft: #52627F;
	--sf-paper: #FFFFFF;
	--sf-canvas: #F7F9FC;
	--sf-surface: #EEF3FA;
	--sf-navy: #0B1B3B;
	--sf-line: #E2E8F2;
	--sf-accent: #1D5CFF;
	--sf-accent-ink: #FFFFFF;
	--sf-accent-2: #5B8CFF;
	--sf-brand-gradient: linear-gradient(135deg, var(--sf-accent), var(--sf-accent-2));
	--sf-brand-fill: var(--sf-accent);
	--sf-brand-shadow: none;
	--sf-cat-size: 180px;
	--sf-cat-fit: cover;
	--sf-focus: #1D5CFF;

	--sf-font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--sf-font-heading: var(--sf-font-body);
	--sf-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--sf-container: 1240px;
	--sf-gutter: 24px;
	--sf-radius: 12px;
	--sf-radius-sm: 8px;

	--sf-space-1: 8px;
	--sf-space-2: 16px;
	--sf-space-3: 24px;
	--sf-space-4: 40px;
	--sf-space-5: 64px;
}

/* Dark mode is opt-in: it only applies when a visitor uses the header toggle
   (Customize → ShopFlow Layout), never automatically from their system setting,
   so the storefront always matches the light design by default. */
:root[data-sf-theme="dark"] {
	--sf-ink: #EAF0FB;
	--sf-ink-soft: #A9B6CE;
	--sf-paper: #121A2C;
	--sf-canvas: #0D1424;
	--sf-surface: #1B2540;
	--sf-line: #26324D;
}

/* ------------------------------------------------------------------------
   2.0 Reset (trimmed Normalize + box-sizing)
   ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; overflow-x: clip; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ------------------------------------------------------------------------
   3.0 Base typography
   ------------------------------------------------------------------------ */
body {
	background: var(--sf-canvas);
	color: var(--sf-ink);
	font-family: var(--sf-font-body);
	font-size: 16px;
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--sf-font-heading);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--sf-ink);
}

h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { color: var(--sf-ink-soft); }
p + p { margin-top: var(--sf-space-2); }

.sf-eyebrow {
	display: block;
	font-family: var(--sf-font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sf-ink-soft);
	margin-bottom: 8px;
}

/* ------------------------------------------------------------------------
   4.0 Layout helpers
   ------------------------------------------------------------------------ */
.sf-container {
	max-width: var(--sf-container);
	margin-inline: auto;
	padding-inline: var(--sf-gutter);
}

.sf-section { padding-block: var(--sf-space-5); }
.sf-section-sm { padding-block: var(--sf-space-4); }

.sf-grid {
	display: grid;
	gap: var(--sf-space-3);
}

.sf-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.sf-skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	z-index: 999;
	background: var(--sf-ink);
	color: var(--sf-paper);
	padding: 12px 20px;
	border-radius: 0 0 8px 0;
}

.sf-skip-link:focus {
	left: 0;
	top: 0;
}

/* ------------------------------------------------------------------------
   5.0 Forms
   ------------------------------------------------------------------------ */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--sf-paper);
	border: 1px solid var(--sf-line);
	border-radius: var(--sf-radius-sm);
	color: var(--sf-ink);
}

textarea { min-height: 120px; }

label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.92rem;
	font-weight: 600;
}

/* ------------------------------------------------------------------------
   6.0 Links, buttons
   ------------------------------------------------------------------------ */
a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--sf-accent); }

.sf-btn,
button,
input[type="submit"],
.button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	background: var(--sf-brand-fill);
	color: var(--sf-accent-ink);
	border: 1px solid var(--sf-accent);
	border-radius: var(--sf-radius-sm);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.sf-btn:hover,
button:hover,
input[type="submit"]:hover,
.button:hover,
.wp-block-button__link:hover {
	opacity: 0.9;
	color: var(--sf-accent-ink);
}

.sf-btn-outline {
	background: transparent;
	color: var(--sf-ink);
}

/* ------------------------------------------------------------------------
   7.0 Site header
   ------------------------------------------------------------------------ */
.sf-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: color-mix(in srgb, var(--sf-paper) 92%, transparent);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--sf-line);
}

.sf-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sf-space-3);
	min-height: 72px;
	padding-block: 8px;
}

/* Sizing is explicit so the row never wraps: the logo truncates before it
   crowds the menu, the icons never shrink, and the menu takes whatever is left
   and wraps *inside* its own slot if it is very long. */
.sf-branding {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 0 1 auto;
	max-width: 32%;
	text-decoration: none;
}

.sf-branding > * {
	min-width: 0;
}

.sf-site-title {
	font-family: var(--sf-font-heading);
	font-size: 1.6rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--sf-ink);
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sf-site-title a { text-decoration: none; color: inherit; }
.sf-logo-accent { color: var(--sf-accent); }

.sf-site-description {
	font-size: 0.8rem;
	color: var(--sf-ink-soft);
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sf-custom-logo-link img {
	max-height: 44px;
	width: auto;
}

.sf-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.sf-icon-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 50%;
	color: var(--sf-ink);
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease;
}

.sf-icon-link:hover { background: var(--sf-canvas); color: var(--sf-ink); transform: translateY(-1px); }

.sf-cart-count {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 16px;
	height: 16px;
	padding: 0 3px;
	background: var(--sf-brand-fill);
	color: var(--sf-accent-ink);
	border-radius: 999px;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

@media (max-width: 420px) {
	.sf-site-description { display: none; }
	.sf-icon-link { width: 36px; height: 36px; }
	.sf-header-actions { gap: 4px; }
}

/* ---- Top bar ---- */
.sf-topbar {
	background: var(--sf-navy);
	color: #DCE5F7;
	font-size: 0.8rem;
}

.sf-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sf-space-2);
	min-height: 38px;
}

.sf-topbar-text { margin: 0; color: inherit; }

.sf-topbar-menu ul {
	display: flex;
	align-items: center;
	gap: var(--sf-space-3);
	list-style: none;
}

.sf-topbar-menu a {
	color: #DCE5F7;
	text-decoration: none;
	font-weight: 500;
}

.sf-topbar-menu a:hover { color: #fff; }

@media (max-width: 640px) {
	.sf-topbar-inner { justify-content: center; text-align: center; }
	.sf-topbar-menu { display: none; }
}

/* ---- Header search panel ---- */
.sf-search-panel {
	background: var(--sf-paper);
	border-bottom: 1px solid var(--sf-line);
	padding-block: 14px;
}

.sf-search-panel[hidden] { display: none; }

.sf-search-form {
	display: flex;
	gap: 10px;
}

.sf-search-form input[type="search"] { flex: 1 1 auto; min-width: 0; }
.sf-search-form button { flex: 0 0 auto; }

/* The account link lives in the top bar on wide screens and in the slide-out panel on narrow ones. */
.sf-primary-nav .sf-nav-account { display: none; }

/* ------------------------------------------------------------------------
   8.0 Navigation menu
   ------------------------------------------------------------------------ */
.sf-nav-backdrop { display: none; }
.sf-nav-close { display: none; }

.sf-nav-toggle {
	display: none;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--sf-line);
	border-radius: var(--sf-radius-sm);
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.sf-nav-toggle .bar {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--sf-ink);
	position: relative;
	transition: background 0.2s ease 0.05s;
}

.sf-nav-toggle .bar::before,
.sf-nav-toggle .bar::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: var(--sf-ink);
	transition: transform 0.25s ease, top 0.25s ease;
}

.sf-nav-toggle .bar::before { top: -6px; }
.sf-nav-toggle .bar::after { top: 6px; }

.sf-nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.sf-nav-toggle[aria-expanded="true"] .bar::before { top: 0; transform: rotate(45deg); }
.sf-nav-toggle[aria-expanded="true"] .bar::after { top: 0; transform: rotate(-45deg); }

.sf-primary-nav {
	flex: 1 1 0;
	min-width: 0;
}

.sf-primary-nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0 clamp(14px, 1.8vw, var(--sf-space-3));
	list-style: none;
}

.sf-primary-nav a {
	position: relative;
	display: block;
	padding: 8px 1px;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.96rem;
	color: var(--sf-ink);
}

.sf-primary-nav > ul > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 2px;
	height: 2px;
	background: var(--sf-brand-fill);
	transition: right 0.2s ease;
}

.sf-primary-nav > ul > li > a:hover::after,
.sf-primary-nav > ul > li > a:focus-visible::after { right: 0; }

.sf-primary-nav .current-menu-item > a { color: var(--sf-accent); }

.sf-primary-nav ul ul {
	display: block;
	visibility: hidden;
	opacity: 0;
	position: absolute;
	flex-direction: column;
	align-items: stretch;
	background: var(--sf-paper);
	border: 1px solid var(--sf-line);
	border-radius: var(--sf-radius-sm);
	padding: 8px;
	min-width: 200px;
	box-shadow: 0 18px 34px -22px rgba(20, 20, 20, 0.35);
	gap: 0;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.sf-primary-nav li { position: relative; }

.sf-primary-nav li:hover > ul,
.sf-primary-nav li:focus-within > ul {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}

/* The last item sits at the screen edge, and navigation.js flips any other
   dropdown that would run off the right side, so they open leftward instead. */
.sf-primary-nav > ul > li:last-child > ul,
.sf-primary-nav li.sf-submenu-flip > ul { left: auto; right: 0; }

.sf-primary-nav ul ul a { padding: 8px 10px; border-radius: 6px; font-size: 0.92rem; }
.sf-primary-nav ul ul a::after { display: none; }
.sf-primary-nav ul ul a:hover { background: var(--sf-canvas); }

@media (prefers-reduced-motion: reduce) {
	.sf-primary-nav ul ul,
	.sf-nav-toggle .bar,
	.sf-nav-toggle .bar::before,
	.sf-nav-toggle .bar::after { transition: none; }
}

/* Below this width, a real-world menu (8–10 items) plus the logo and icons no
   longer reliably fits on one line, so it moves to the slide-out panel. */
@media (max-width: 1024px) {
	/* backdrop-filter would make the header the containing block for the
	   position:fixed panel and backdrop below, shrinking them to header size. */
	.sf-header {
		backdrop-filter: none;
		background: var(--sf-paper);
	}

	.sf-nav-toggle { display: inline-flex; }

	.sf-branding { flex: 1 1 0; max-width: none; }

	.sf-nav-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 39;
		background: rgba(23, 26, 33, 0.35);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s ease, visibility 0.25s;
	}

	.sf-nav-backdrop.is-open { opacity: 1; visibility: visible; }

	.sf-primary-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 41;
		width: min(340px, 86vw);
		background: var(--sf-paper);
		padding: 90px 24px 24px;
		transform: translateX(100%);
		transition: transform 0.28s ease;
		overflow-y: auto;
		box-shadow: -20px 0 50px -20px rgba(20, 20, 20, 0.3);
	}

	.sf-primary-nav.is-open { transform: none; }

	.sf-nav-close {
		position: absolute;
		top: 18px;
		right: 18px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
		background: var(--sf-canvas);
		color: var(--sf-ink);
		border: 1px solid var(--sf-line);
		border-radius: 50%;
	}

	.sf-primary-nav {
		flex: none;
	}

	.sf-primary-nav ul {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
	}

	.sf-primary-nav > ul > li > a::after { display: none; }

	.sf-primary-nav ul ul {
		position: static;
		visibility: visible;
		opacity: 1;
		transform: none;
		display: none;
		box-shadow: none;
		border: 0;
		padding-left: var(--sf-space-2);
	}

	.sf-primary-nav li.sf-submenu-open > ul { display: flex; }

	.sf-primary-nav li { border-bottom: 1px solid var(--sf-line); }
	.sf-primary-nav a { padding: 13px 2px; font-size: 1.02rem; }

	.sf-primary-nav .sf-nav-account {
		display: flex;
		align-items: center;
		gap: 10px;
		margin-top: 18px;
		font-weight: 600;
	}
}

/* ------------------------------------------------------------------------
   9.0 Content: posts and pages
   ------------------------------------------------------------------------ */
.sf-content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: var(--sf-space-4);
	align-items: start;
}

.sf-content-grid.no-sidebar { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 900px) {
	.sf-content-grid { grid-template-columns: 1fr; }
}

article.sf-post + article.sf-post {
	margin-top: var(--sf-space-4);
	padding-top: var(--sf-space-4);
	border-top: 1px solid var(--sf-line);
}

.sf-post-thumb {
	border-radius: var(--sf-radius);
	overflow: hidden;
	margin-bottom: var(--sf-space-2);
}

.sf-post-meta {
	font-family: var(--sf-font-mono);
	font-size: 0.8rem;
	color: var(--sf-ink-soft);
	margin-bottom: 6px;
}

.sf-post-meta a { text-decoration: none; }

.sf-entry-title a { text-decoration: none; }

.sf-pagination {
	display: flex;
	gap: 8px;
	margin-top: var(--sf-space-4);
	flex-wrap: wrap;
}

.sf-pagination a,
.sf-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--sf-line);
	border-radius: var(--sf-radius-sm);
	text-decoration: none;
}

.sf-pagination .current {
	background: var(--sf-ink);
	color: var(--sf-paper);
	border-color: var(--sf-ink);
}

/* ------------------------------------------------------------------------
   10.0 Comments
   ------------------------------------------------------------------------ */
.comment-list { list-style: none; margin: 0; }
.comment-list .children { list-style: none; margin-left: var(--sf-space-3); }

.comment-body {
	padding: var(--sf-space-2) 0;
	border-bottom: 1px solid var(--sf-line);
}

.comment-meta { font-size: 0.85rem; color: var(--sf-ink-soft); margin-bottom: 6px; }
.comment-author .avatar { border-radius: 50%; float: left; margin-right: 10px; }
.comment-reply-link { font-size: 0.85rem; }

/* ------------------------------------------------------------------------
   11.0 Widgets
   ------------------------------------------------------------------------ */
.widget { margin-bottom: var(--sf-space-4); }
.widget-title {
	font-family: var(--sf-font-mono);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--sf-ink-soft);
	margin-bottom: var(--sf-space-2);
}
.widget ul { list-style: none; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--sf-line); }
.widget li:last-child { border-bottom: 0; }

/* ------------------------------------------------------------------------
   12.0 Footer
   ------------------------------------------------------------------------ */
.sf-footer {
	background: var(--sf-navy);
	color: #C9CCD3;
	padding-block: var(--sf-space-5) var(--sf-space-3);
	margin-top: var(--sf-space-5);
}

.sf-footer a { color: #fff; text-decoration: none; }
.sf-footer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--sf-space-4);
	margin-bottom: var(--sf-space-4);
}

@media (max-width: 780px) {
	.sf-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

.sf-footer-grid .widget-title { color: #8B93A3; }
.sf-footer-grid li { border-bottom: 1px solid #2C303A; }

.sf-footer-links ul {
	display: flex;
	gap: var(--sf-space-3);
	list-style: none;
	flex-wrap: wrap;
}

.sf-footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: var(--sf-space-3);
	border-top: 1px solid #2C303A;
	font-size: 0.85rem;
	color: #8B93A3;
}

/* ------------------------------------------------------------------------
   13.0 Accessibility
   ------------------------------------------------------------------------ */
:focus-visible {
	outline: 2px solid var(--sf-focus);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

/* ------------------------------------------------------------------------
   14.0 Media
   ------------------------------------------------------------------------ */
.wp-caption-text, figcaption { font-size: 0.85rem; color: var(--sf-ink-soft); margin-top: 6px; }
.alignwide { max-width: calc(var(--sf-container) + 120px); margin-inline: auto; }
.alignfull { max-width: none; }

/* ------------------------------------------------------------------------
   15.0 WooCommerce base layout
   Deliberately minimal: WP Shop Customizer controls the product loop, card
   design, category tiles and single-product layout via its own settings and
   body classes (see readme). This just gives sane page-level structure and
   spacing when that plugin is inactive.
   ------------------------------------------------------------------------ */
.woocommerce-breadcrumb {
	font-size: 0.85rem;
	color: var(--sf-ink-soft);
	margin-bottom: var(--sf-space-3);
}

.woocommerce-breadcrumb a { text-decoration: none; }

/* ---- Product grid (fallback; WP Shop Customizer overrides all of this when active) ---- */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--sf-space-3);
	list-style: none;
	margin: 0 0 var(--sf-space-4);
	padding: 0;
}

@media (max-width: 1024px) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: var(--sf-space-2); } }

/* WooCommerce's own stylesheet lays products out as floated boxes (width: 22%, side margins)
   and adds clearfix ::before/::after elements. Inside a grid, the width becomes 22% of the
   grid *cell* (a 60px-wide card) and the clearfix becomes an empty first cell, so neutralise
   both. Every rule below is prefixed with `html`, which makes it one step more specific than
   WooCommerce's matching rule, so it wins no matter which stylesheet prints first. */
html .woocommerce ul.products::before,
html .woocommerce ul.products::after,
html .woocommerce-page ul.products::before,
html .woocommerce-page ul.products::after {
	content: none;
	display: none;
}

html .woocommerce ul.products li.product:nth-child(n),
html .woocommerce-page ul.products li.product:nth-child(n),
html .woocommerce ul.products[class*="columns-"] li.product:nth-child(n),
html .woocommerce-page ul.products[class*="columns-"] li.product:nth-child(n) {
	float: none;
	clear: none;
	width: auto;
	max-width: none;
	margin: 0;
}

/* ---- Product card: soft image tile, bold title, stars, price ---- */
html .woocommerce ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	list-style: none;
	background: transparent;
	border: 0;
	border-radius: var(--sf-radius);
	padding: 0;
}

html .woocommerce ul.products li.product .woocommerce-LoopProduct-link {
	display: block;
	flex: 1 1 auto;
	color: inherit;
	text-decoration: none;
}

html .woocommerce ul.products li.product a img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	margin: 0 0 14px;
	background: var(--sf-surface);
	border-radius: var(--sf-radius);
}

html .woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 0 0 6px;
	padding: 0;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
}

html .woocommerce .star-rating { margin: 0 0 6px; font-size: 0.78rem; }
html .woocommerce .star-rating::before { color: #CBD5E4; }
html .woocommerce .star-rating span::before { color: #F5A524; }

html .woocommerce ul.products li.product .price,
html .woocommerce div.product p.price,
html .woocommerce div.product span.price {
	color: var(--sf-ink);
	font-weight: 700;
}

html .woocommerce ul.products li.product .price {
	display: block;
	margin: 0 0 12px;
	font-size: 0.95rem;
}

html .woocommerce .price del { margin-right: 4px; color: #94A3B8; font-weight: 400; opacity: 1; }
html .woocommerce .price ins { background: none; text-decoration: none; }

/* The button is a sibling of the link, so it drops to the bottom and lines up across cards. */
html .woocommerce ul.products li.product .button {
	display: flex;
	width: 100%;
	margin-top: auto;
	background: color-mix(in srgb, var(--sf-accent) 10%, var(--sf-paper));
	color: var(--sf-accent);
	border: 0;
}

html .woocommerce ul.products li.product .button:hover {
	background: var(--sf-brand-fill);
	color: var(--sf-accent-ink);
	opacity: 1;
}

html .woocommerce ul.products li.product .added_to_cart {
	display: block;
	margin-top: 8px;
	text-align: center;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--sf-accent);
}

/* Two cards across a ~320-400px phone leave little room, so tighten the button
   rather than letting "Add to cart" wrap onto two lines. */
@media (max-width: 400px) {
	html .woocommerce ul.products li.product .button {
		padding: 12px 8px;
		font-size: 0.88rem;
	}
}

html .woocommerce ul.products li.product-category .woocommerce-loop-category__title {
	margin: 0;
	padding: 0;
	font-size: 1rem;
}

html .woocommerce ul.products li.product-category .count {
	background: none;
	color: var(--sf-ink-soft);
	font-size: 0.85em;
}

/* ---- WooCommerce buttons and badges: replace its default gray/purple with the theme's colors ---- */
html .woocommerce a.button,
html .woocommerce button.button,
html .woocommerce input.button,
html .woocommerce #respond input#submit {
	background: var(--sf-brand-fill);
	color: var(--sf-accent-ink);
	border-radius: var(--sf-radius-sm);
	padding: 12px 22px;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}

html .woocommerce a.button:hover,
html .woocommerce button.button:hover,
html .woocommerce input.button:hover,
html .woocommerce #respond input#submit:hover {
	background: var(--sf-brand-fill);
	color: var(--sf-accent-ink);
	opacity: 0.9;
}

html .woocommerce a.button.alt,
html .woocommerce button.button.alt,
html .woocommerce input.button.alt,
html .woocommerce a.button.alt:hover,
html .woocommerce button.button.alt:hover,
html .woocommerce input.button.alt:hover {
	background: var(--sf-brand-fill);
	color: var(--sf-accent-ink);
}

html .woocommerce a.button.disabled,
html .woocommerce button.button:disabled,
html .woocommerce button.button.disabled { opacity: 0.5; }

html .woocommerce span.onsale {
	top: 10px;
	left: 10px;
	min-width: 0;
	min-height: 0;
	padding: 5px 10px;
	background: var(--sf-brand-fill);
	color: var(--sf-accent-ink);
	border-radius: 6px;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
}

/* ---- Shop toolbar: result count on the left, sorting on the right ---- */
html .woocommerce-products-header { margin-bottom: var(--sf-space-3); }

html .sf-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sf-space-2);
	margin-bottom: var(--sf-space-3);
}

html .sf-shop-toolbar:empty { display: none; }

html .sf-shop-toolbar .woocommerce-result-count,
html .sf-shop-toolbar .woocommerce-ordering {
	float: none;
	margin: 0;
}

html .sf-shop-toolbar .woocommerce-ordering select {
	width: auto;
	min-width: 200px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: var(--sf-space-2);
	list-style: none;
	border-bottom: 1px solid var(--sf-line);
	margin-bottom: var(--sf-space-3);
	flex-wrap: wrap;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 10px 4px;
	text-decoration: none;
	font-weight: 600;
	color: var(--sf-ink-soft);
	border-bottom: 2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--sf-ink);
	border-color: var(--sf-ink);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews {
	background: var(--sf-paper);
	border: 1px solid var(--sf-line);
	border-left: 3px solid var(--sf-accent);
	border-radius: var(--sf-radius-sm);
	padding: 14px 18px;
	list-style: none;
	margin-bottom: var(--sf-space-3);
}

.woocommerce-error { border-left-color: #C0392B; }

table.shop_table {
	width: 100%;
	border: 1px solid var(--sf-line);
	border-radius: var(--sf-radius-sm);
	overflow: hidden;
}

table.shop_table th, table.shop_table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--sf-line);
	text-align: left;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li { margin-bottom: 6px; }
.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 10px 14px;
	border-radius: var(--sf-radius-sm);
	text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	background: var(--sf-canvas);
}

/* ------------------------------------------------------------------------
   16.0 Front page: hero slider, features, categories, product tabs, promos, newsletter
   ------------------------------------------------------------------------ */
.sf-btn-pill { padding: 13px 26px; border-radius: 999px; }
.sf-btn-arrow svg { width: 16px; height: 16px; }

/* ---- Hero slider ---- */
.sf-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(120deg, #E6EEFF 0%, #F4F8FF 52%, #E2EBFF 100%);
}

:root[data-sf-theme="dark"] .sf-hero { background: linear-gradient(120deg, #16213C 0%, #0F1729 100%); }

/* All slides share one grid cell, so the banner is as tall as the tallest slide and never jumps. */
.sf-slides { display: grid; }

.sf-slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0.5s;
}

.sf-slide.is-active { opacity: 1; visibility: visible; }

.sf-slide-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: var(--sf-space-4);
	min-height: clamp(380px, 40vw, 500px);
	padding-block: var(--sf-space-4) 56px;
}

.sf-hero-eyebrow {
	display: block;
	margin-bottom: 14px;
	color: var(--sf-accent);
	font-size: 0.92rem;
	font-weight: 700;
}

.sf-hero-title {
	font-size: clamp(2.2rem, 4.6vw, 3.5rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.sf-hero-accent { display: block; color: var(--sf-accent); }

.sf-hero-lead {
	max-width: 44ch;
	margin-top: 18px;
	font-size: 1.02rem;
}

.sf-hero-ctas { margin-top: 28px; }

.sf-slide-media {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	align-self: end;
	min-width: 0;
}

.sf-slide-media img {
	width: auto;
	max-width: 100%;
	max-height: 460px;
	object-fit: contain;
}

.sf-slider-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	margin-top: -21px;
	background: var(--sf-paper);
	color: var(--sf-ink);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(11, 27, 59, 0.16);
}

.sf-slider-arrow:hover { background: var(--sf-paper); color: var(--sf-accent); opacity: 1; }
.sf-slider-arrow svg { width: 18px; height: 18px; }
.sf-slider-prev { left: 18px; }
.sf-slider-next { right: 18px; }

.sf-slider-dots {
	position: absolute;
	right: 0;
	bottom: 20px;
	left: 0;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.sf-slider-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	background: rgba(11, 27, 59, 0.22);
	border: 0;
	border-radius: 50%;
	transition: background 0.2s ease, transform 0.2s ease;
}

.sf-slider-dot:hover { background: rgba(11, 27, 59, 0.4); opacity: 1; }
.sf-slider-dot.is-active { background: var(--sf-brand-fill); transform: scale(1.25); }

@media (max-width: 820px) {
	.sf-slide-inner { grid-template-columns: 1fr; gap: var(--sf-space-2); padding-block: var(--sf-space-3) 60px; min-height: 0; }
	.sf-slide-media { order: 2; }
	.sf-slide-media img { max-height: 260px; }
	.sf-slider-arrow { top: auto; bottom: 8px; margin-top: 0; width: 38px; height: 38px; }
	.sf-slider-prev { left: 12px; }
	.sf-slider-next { right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.sf-slide, .sf-slider-dot { transition: none; }
}

/* ---- Features strip ---- */
.sf-features {
	background: var(--sf-paper);
	border-bottom: 1px solid var(--sf-line);
}

.sf-features-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--sf-space-2);
}

.sf-feature {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 22px 6px;
}

.sf-feature-icon { flex: 0 0 auto; width: 40px; height: 40px; color: var(--sf-accent); }
.sf-feature strong { display: block; font-size: 0.9rem; line-height: 1.3; }
.sf-feature span { display: block; color: var(--sf-ink-soft); font-size: 0.8rem; line-height: 1.4; }

@media (max-width: 900px) { .sf-features-grid { grid-template-columns: repeat(2, 1fr); } }
.sf-feature-icon svg { width: 100%; height: 100%; }

@media (max-width: 460px) {
	.sf-feature { gap: 10px; padding: 14px 4px; }
	.sf-feature-icon { width: 30px; height: 30px; }
	.sf-feature strong { font-size: 0.82rem; }
	.sf-feature span { font-size: 0.74rem; }
}

/* ---- Section headings ---- */
.sf-home-section { padding-block: 48px 8px; }
.sf-home-section:last-of-type { padding-bottom: 48px; }

.sf-sec-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--sf-space-2);
	margin-bottom: 22px;
}

.sf-sec-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }

.sf-viewall {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--sf-accent);
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
}

.sf-viewall svg { width: 14px; height: 14px; }
.sf-viewall:hover { text-decoration: underline; }

/* ---- Popular categories ---- */
.sf-cat-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}

@media (max-width: 1024px) { .sf-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .sf-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.sf-cat-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--sf-paper);
	border: 1px solid var(--sf-line);
	border-radius: var(--sf-radius);
	color: var(--sf-ink);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sf-cat-card:hover {
	color: var(--sf-ink);
	transform: translateY(-3px);
	box-shadow: 0 14px 30px -18px rgba(11, 27, 59, 0.35);
}

.sf-cat-media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--sf-surface);
}

.sf-cat-media img { width: 100%; height: 100%; object-fit: cover; }

.sf-cat-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--sf-accent);
	font-size: 2.4rem;
	font-weight: 800;
}

.sf-cat-name { padding: 14px 10px 2px; text-align: center; font-size: 0.92rem; font-weight: 700; }

.sf-cat-link {
	padding-bottom: 14px;
	text-align: center;
	color: var(--sf-accent);
	font-size: 0.75rem;
	font-weight: 700;
}

@media (prefers-reduced-motion: reduce) { .sf-cat-card { transition: none; } .sf-cat-card:hover { transform: none; } }

/* ---- Featured products tabs ---- */
.sf-tabs {
	display: flex;
	gap: 26px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--sf-line);
	overflow-x: auto;
	scrollbar-width: none;
}

.sf-tabs::-webkit-scrollbar { display: none; }

.sf-tab {
	display: inline-block;
	flex: 0 0 auto;
	padding: 8px 0 12px;
	margin-bottom: -1px;
	background: none;
	color: var(--sf-ink);
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
}

.sf-tab:hover { background: none; color: var(--sf-accent); opacity: 1; }
.sf-tab[aria-selected="true"] { color: var(--sf-accent); border-bottom-color: var(--sf-accent); }
.sf-tab-panel[hidden] { display: none; }

/* ---- Promo banners ---- */
.sf-promos {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 20px;
}

.sf-promo-main {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: var(--sf-space-2);
	min-height: 270px;
	padding: 28px 32px 28px 16px;
	overflow: hidden;
	background: linear-gradient(120deg, #D9E6FF 0%, #C3D8FF 100%);
	border-radius: 16px;
}

:root[data-sf-theme="dark"] .sf-promo-main { background: linear-gradient(120deg, #1B2A4D, #14203B); }

.sf-promo-badge {
	position: absolute;
	top: 18px;
	left: 18px;
	padding: 4px 10px;
	background: var(--sf-brand-fill);
	color: var(--sf-accent-ink);
	border-radius: 6px;
	font-size: 0.7rem;
	font-weight: 700;
}

.sf-promo-main img { width: 100%; max-height: 240px; object-fit: contain; }
.sf-promo-main h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 800; line-height: 1.2; }
.sf-promo-main p { margin: 8px 0 18px; font-size: 0.85rem; }

.sf-promo-tile {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	min-height: 270px;
	padding: 18px;
	overflow: hidden;
	color: #fff;
	text-decoration: none;
	border-radius: 16px;
	background: var(--sf-navy);
}

.sf-promo-tile:hover { color: #fff; }

.sf-promo-tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.sf-promo-tile:hover img { transform: scale(1.04); }

.sf-promo-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(11, 27, 59, 0.78), rgba(11, 27, 59, 0) 55%);
}

.sf-promo-tile > * { position: relative; z-index: 1; }
.sf-promo-tile::after { z-index: 0; }
.sf-promo-tile strong { font-size: 1rem; font-weight: 700; }

.sf-promo-go {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: rgba(255, 255, 255, 0.22);
	border-radius: 50%;
}

.sf-promo-go svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
	.sf-promos { grid-template-columns: 1fr 1fr; }
	.sf-promo-main { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
	.sf-promos { grid-template-columns: 1fr; }
	.sf-promo-main { grid-template-columns: 1fr; padding: 56px 20px 24px; }
	.sf-promo-main img { max-height: 200px; }
	.sf-promo-tile { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) { .sf-promo-tile img { transition: none; } .sf-promo-tile:hover img { transform: none; } }

/* ---- Newsletter ---- */
.sf-newsletter {
	margin-top: 48px;
	background: var(--sf-navy);
	color: #fff;
}

.sf-newsletter h2 { color: #fff; }
.sf-newsletter p { color: #C5D0E6; }

.sf-newsletter-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sf-space-3);
	padding-block: var(--sf-space-4);
}

.sf-newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; }

.sf-newsletter-form input {
	min-width: 250px;
	background: #14264B;
	color: #fff;
	border: 1px solid #263A66;
}

.sf-newsletter-form input::placeholder { color: #8DA0C6; }

/* ------------------------------------------------------------------------
   17.0 Design refinements (1.3.0)
   Fine-tuning of the sections above to match the approved storefront design:
   full-bleed hero art, contained category/product imagery, a self-sufficient
   product grid when WP Shop Customizer is not active, and tighter responsive
   behaviour. Everything here is additive; the plugin's body.wpsc-active rules
   keep priority because the fallback is scoped to body:not(.wpsc-active).
   ------------------------------------------------------------------------ */

/* Header: slightly tighter, semi-bold desktop menu. */
@media (min-width: 1025px) {
	.sf-primary-nav > ul > li > a { font-size: 0.9rem; font-weight: 600; }
}
.sf-topbar { font-size: 0.78rem; }

/* Hero: artwork sits flush on the bottom edge, controls float over it. */
.sf-slide-inner {
	min-height: clamp(360px, 36vw, 460px);
	padding-block: clamp(24px, 4vw, 48px) 0;
}
.sf-hero-copy { padding-bottom: clamp(32px, 5vw, 72px); }
.sf-hero-title { text-wrap: balance; }
.sf-slide-media { justify-content: flex-end; }
.sf-slide-media img {
	width: 100%;
	height: auto;
	max-height: clamp(300px, 34vw, 440px);
	object-fit: contain;
	object-position: center bottom;
}
.sf-slider-dots { bottom: 16px; }

@media (max-width: 820px) {
	.sf-slide-inner { padding-block: 28px 0; gap: 0; }
	.sf-hero-copy { padding-bottom: 8px; text-align: center; }
	.sf-hero-lead { margin-inline: auto; }
	.sf-slide-media { justify-content: center; }
	.sf-slide-media img { max-height: 280px; }
	.sf-slider-arrow { bottom: 14px; }
}

/* Features strip: separators on wide screens. */
@media (min-width: 901px) {
	.sf-feature { justify-content: center; }
	.sf-feature + .sf-feature { border-left: 1px solid var(--sf-line); }
}

/* Section rhythm. */
.sf-home-section { padding-block: clamp(36px, 5vw, 60px) 0; }
.sf-home-section:last-of-type { padding-bottom: clamp(36px, 5vw, 60px); }

/* Categories: image fills a soft tile; photos are cropped to fit, never stretched. */
.sf-cat-media { aspect-ratio: auto; height: var(--sf-cat-size); }
.sf-cat-media img { width: 100%; height: 100%; padding: 0; object-fit: var(--sf-cat-fit); mix-blend-mode: normal; }
.sf-cat-contain .sf-cat-media img { padding: 10%; }
.sf-cat-card { box-shadow: 0 1px 2px rgba(11, 27, 59, 0.04); }

@media (min-width: 641px) and (max-width: 1024px) {
	.sf-cat-grid { gap: 16px; }
}

/* Product tabs: touch-friendly, scrolls sideways instead of wrapping. */
.sf-tabs { -webkit-overflow-scrolling: touch; }

/* Product cards fallback: homepage tabs, On Sale, shop/category archives and related products.
   Only when WP Shop Customizer is not active. */
body:not(.wpsc-active) :is(.sf-tab-panel, .sf-deals, main.sf-section) ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
body:not(.wpsc-active) :is(.sf-tab-panel, .sf-deals, main.sf-section) ul.products::before,
body:not(.wpsc-active) :is(.sf-tab-panel, .sf-deals, main.sf-section) ul.products::after { display: none; }
body:not(.wpsc-active) :is(.sf-tab-panel, .sf-deals) .woocommerce ul.products li.product,
body:not(.wpsc-active) :is(.sf-tab-panel, .sf-deals, main.sf-section) ul.products li.product {
	position: relative;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	text-align: left;
}
body:not(.wpsc-active) :is(.sf-tab-panel, .sf-deals, main.sf-section) ul.products li.product a.woocommerce-LoopProduct-link { display: block; color: var(--sf-ink); text-decoration: none; }
body:not(.wpsc-active) :is(.sf-tab-panel, .sf-deals, main.sf-section) ul.products li.product img {
	width: 100%;
	height: auto;
	margin: 0 0 14px;
	background: var(--sf-surface);
	border-radius: 14px;
	aspect-ratio: 1;
	object-fit: contain;
}
body:not(.wpsc-active) :is(.sf-tab-panel, .sf-deals, main.sf-section) ul.products li.product .woocommerce-loop-product__title {
	padding: 0;
	margin: 0 0 6px;
	font-size: 0.92rem;
	font-weight: 700;
}
body:not(.wpsc-active) :is(.sf-tab-panel, .sf-deals, main.sf-section) ul.products li.product .price { display: block; color: var(--sf-ink); font-weight: 800; font-size: 0.95rem; }
body:not(.wpsc-active) :is(.sf-tab-panel, .sf-deals, main.sf-section) ul.products li.product .price del { color: var(--sf-ink-soft); font-weight: 500; font-size: 0.85em; }
body:not(.wpsc-active) :is(.sf-tab-panel, .sf-deals, main.sf-section) ul.products li.product .price ins { text-decoration: none; }
body:not(.wpsc-active) :is(.sf-tab-panel, .sf-deals, main.sf-section) ul.products li.product .star-rating { margin: 0 0 6px; font-size: 0.78rem; }
body:not(.wpsc-active) :is(.sf-tab-panel, .sf-deals, main.sf-section) ul.products li.product .onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	min-height: 0;
	min-width: 0;
	margin: 0;
	padding: 4px 11px;
	background: var(--sf-brand-fill);
	color: var(--sf-accent-ink);
	border-radius: 6px;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.4;
}
body:not(.wpsc-active) :is(.sf-tab-panel, .sf-deals, main.sf-section) ul.products li.product .button {
	display: block;
	margin-top: 12px;
	padding: 10px 14px;
	background: transparent;
	color: var(--sf-accent);
	border: 1.5px solid var(--sf-line);
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	text-align: center;
}
body:not(.wpsc-active) :is(.sf-tab-panel, .sf-deals, main.sf-section) ul.products li.product .button:hover { background: var(--sf-brand-fill); color: var(--sf-accent-ink); border-color: transparent; }
@media (max-width: 1024px) { body:not(.wpsc-active) :is(.sf-tab-panel, .sf-deals, main.sf-section) ul.products { gap: 18px; } }
@media (max-width: 780px) { body:not(.wpsc-active) :is(.sf-tab-panel, .sf-deals, main.sf-section) ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

body:not(.wpsc-active) main.sf-section ul.products { margin-bottom: var(--sf-space-4); }

/* Promos: keep art crisp, labels readable. */
.sf-promo-main img { width: 100%; height: auto; }
.sf-promo-tile img { object-position: center top; }
.sf-promo-tile strong { font-size: 1.05rem; text-shadow: 0 1px 8px rgba(11, 27, 59, 0.45); }
@media (min-width: 561px) and (max-width: 900px) {
	.sf-promo-tile { min-height: 260px; }
}

/* Newsletter: one tidy row on wide screens, stacked on phones. */
.sf-newsletter-inner > div:first-child { flex: 1 1 320px; }
.sf-newsletter h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-bottom: 6px; }
.sf-newsletter-form { flex: 1 1 380px; max-width: 520px; flex-wrap: nowrap; }
.sf-newsletter-form input { flex: 1 1 auto; min-width: 0; border-radius: 999px; padding-inline: 20px; }
.sf-newsletter-form .sf-btn { flex: 0 0 auto; border-radius: 999px; padding-inline: 26px; }
@media (max-width: 560px) {
	.sf-newsletter-form { flex-wrap: wrap; max-width: none; width: 100%; }
	.sf-newsletter-form input, .sf-newsletter-form .sf-btn { flex: 1 1 100%; }
}

/* The newsletter band already closes the page; no extra gap before the footer. */
body.home .sf-footer { margin-top: 0; }

/* Phones: comfortable gutters and no sideways scrolling. */
@media (max-width: 480px) {
	:root { --sf-gutter: 16px; }
	.sf-hero-title { font-size: clamp(1.9rem, 9vw, 2.4rem); }
	.sf-hero-ctas .sf-btn { width: 100%; justify-content: center; }
}
html, body { overflow-x: clip; }

/* Tablets and phones: categories become a swipeable row (no orphaned card); promo tiles stay side by side. */
@media (max-width: 900px) {
	.sf-cat-grid {
		display: grid;
		grid-auto-flow: column;
		grid-template-columns: none;
		grid-auto-columns: minmax(160px, 30%);
		gap: 12px;
		margin-inline: calc(var(--sf-gutter) * -1);
		padding-inline: var(--sf-gutter);
		padding-bottom: 6px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--sf-gutter);
		scrollbar-width: none;
	}
	.sf-cat-grid::-webkit-scrollbar { display: none; }
	.sf-cat-card { scroll-snap-align: start; }
}
@media (max-width: 640px) { .sf-cat-grid { grid-auto-columns: minmax(150px, 44%); } }
/* The closed off-canvas menu must not cast a shadow onto the page. */
@media (max-width: 1024px) { .sf-primary-nav:not(.is-open) { box-shadow: none; } }
@media (max-width: 560px) {
	.sf-promos { grid-template-columns: 1fr 1fr; gap: 12px; }
	.sf-promo-main { grid-column: 1 / -1; }
	.sf-promo-tile { min-height: 210px; padding: 14px; }
	.sf-promo-tile strong { font-size: 0.92rem; }
	.sf-promo-go { width: 30px; height: 30px; }
}


/* ------------------------------------------------------------------------
   18.0 Brand styles, new homepage sections, category banner (1.4.0)
   ------------------------------------------------------------------------ */

/* Brand fill: solid, gradient or glossy (set under Customize → ShopFlow Colors). */
.sf-brand-glossy .sf-btn,
.sf-brand-glossy .wp-block-button__link,
.sf-brand-glossy input[type="submit"],
.sf-brand-glossy .sf-promo-badge,
.sf-brand-glossy .sf-logo-mark,
.sf-brand-glossy .sf-cart-count { box-shadow: var(--sf-brand-shadow); }

.sf-brand-gradient .sf-btn, .sf-brand-glossy .sf-btn { border-color: transparent; }

.sf-brand-gradient .sf-hero-accent,
.sf-brand-glossy .sf-hero-accent,
.sf-brand-gradient .sf-logo-accent,
.sf-brand-glossy .sf-logo-accent {
	width: fit-content;
	background: var(--sf-brand-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}
.sf-brand-gradient .sf-logo-accent, .sf-brand-glossy .sf-logo-accent { display: inline-block; }

.sf-brand-surfaces .sf-topbar,
.sf-brand-surfaces .sf-newsletter { background: var(--sf-brand-fill); color: var(--sf-accent-ink); }
.sf-brand-surfaces .sf-topbar a, .sf-brand-surfaces .sf-newsletter h2, .sf-brand-surfaces .sf-newsletter p { color: var(--sf-accent-ink); }
.sf-brand-surfaces .sf-newsletter .sf-btn { background: #fff; color: var(--sf-ink); border-color: #fff; box-shadow: none; }

/* Logo mark and top-bar icon. */
.sf-site-title a { display: inline-flex; align-items: center; gap: 10px; }
.sf-logo-text { display: inline; }
.sf-logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	background: var(--sf-brand-fill);
	color: var(--sf-accent-ink);
	border-radius: 10px;
}
.sf-logo-mark svg { width: 18px; height: 18px; }
.sf-topbar-text { display: inline-flex; align-items: center; gap: 8px; }
.sf-topbar-text svg { flex: 0 0 auto; }

/* Hero eyebrow as a pill. */
.sf-hero-eyebrow {
	display: inline-block;
	padding: 5px 12px;
	margin-bottom: 16px;
	background: color-mix(in srgb, var(--sf-accent) 12%, #fff);
	border-radius: 999px;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Category tile: product count. */
.sf-cat-count {
	padding-bottom: 14px;
	text-align: center;
	color: var(--sf-ink-soft);
	font-size: 0.78rem;
}

/* Section sub-heading and centered heading. */
.sf-sec-sub { margin: 6px 0 0; color: var(--sf-ink-soft); font-size: 0.95rem; }
.sf-sec-head-center { justify-content: center; text-align: center; }

/* Customer reviews. */
.sf-reviews { padding-bottom: clamp(36px, 5vw, 60px); }
.sf-review-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.sf-review {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px 26px 22px;
	background: var(--sf-paper);
	border: 1px solid var(--sf-line);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(11, 27, 59, 0.04);
}
.sf-review-quote {
	position: absolute;
	top: 20px;
	right: 22px;
	color: var(--sf-accent);
	opacity: 0.16;
}
.sf-review-quote svg { width: 38px; height: 38px; }
.sf-stars { display: flex; gap: 2px; }
.sf-star { display: inline-flex; color: var(--sf-line); }
.sf-star.is-on { color: #F5A623; }
.sf-star svg { width: 18px; height: 18px; }
.sf-review-text { flex: 1 1 auto; margin: 0; color: var(--sf-ink); font-size: 0.97rem; line-height: 1.65; }
.sf-review-by { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--sf-line); }
.sf-review-by strong { display: block; font-size: 0.92rem; line-height: 1.3; }
.sf-review-by small { display: block; color: var(--sf-ink-soft); font-size: 0.78rem; line-height: 1.4; }
.sf-review-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	overflow: hidden;
	background: var(--sf-brand-fill);
	color: var(--sf-accent-ink);
	border-radius: 50%;
	font-weight: 700;
}
.sf-review-avatar img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 960px) {
	.sf-review-grid {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(280px, 46%);
		margin-inline: calc(var(--sf-gutter) * -1);
		padding: 0 var(--sf-gutter) 6px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--sf-gutter);
		scrollbar-width: none;
	}
	.sf-review-grid::-webkit-scrollbar { display: none; }
	.sf-review { scroll-snap-align: start; }
}
@media (max-width: 560px) { .sf-review-grid { grid-auto-columns: 86%; } }

/* Category page banner. */
.sf-cat-banner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--sf-banner-h, 260px);
	overflow: hidden;
	background: var(--sf-brand-fill);
	color: #fff;
}
.sf-cat-banner-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sf-cat-banner.has-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(11, 27, 59, var(--sf-banner-overlay, 0.45)) 0%, rgba(11, 27, 59, calc(var(--sf-banner-overlay, 0.45) * 0.35)) 100%);
}
.sf-cat-banner-inner { position: relative; z-index: 1; width: 100%; padding-block: 32px; }
.sf-cat-banner-title { margin: 0 0 8px; color: inherit; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; }
.sf-cat-banner-desc { max-width: 60ch; margin-bottom: 14px; color: rgba(255, 255, 255, 0.92); }
.sf-cat-banner-desc p { margin: 0; color: inherit; }
.sf-cat-banner-count { display: inline-block; padding: 5px 14px; background: rgba(255, 255, 255, 0.2); border-radius: 999px; font-size: 0.8rem; font-weight: 700; backdrop-filter: blur(4px); }
.sf-cat-banner .woocommerce-breadcrumb { margin-bottom: 12px; color: rgba(255, 255, 255, 0.85); }
.sf-cat-banner .woocommerce-breadcrumb a { color: #fff; }
.sf-cat-banner-title, .sf-cat-banner-desc, .sf-cat-banner-count { text-shadow: 0 1px 10px rgba(11, 27, 59, 0.35); }
.sf-cat-banner-count { text-shadow: none; }
@media (max-width: 640px) {
	.sf-cat-banner { min-height: min(var(--sf-banner-h, 260px), 200px); }
	.sf-cat-banner-inner { padding-block: 22px; }
}
.tax-product_cat .sf-section { padding-top: var(--sf-space-4); }

/* ------------------------------------------------------------------------
   17.0 v1.5.0: full-width hero banners, pre-order button, product card image slider
   ------------------------------------------------------------------------ */

/* ---- Hero: full-width banner images (edge to edge) ---- */
.sf-hero--banner { background: var(--sf-surface); }
.sf-hero--banner > .sf-container { max-width: none; padding-inline: 0; }

.sf-slide--banner { position: relative; }

.sf-banner-media {
	position: relative;
	height: clamp(300px, 33.34vw, var(--sf-hero-max-h, 640px));
	overflow: hidden;
	background: var(--sf-surface);
}
.sf-banner-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(11, 27, 59, var(--sf-hero-overlay, 0));
	pointer-events: none;
}
.sf-banner-img,
.sf-banner-link { display: block; width: 100%; height: 100%; }
.sf-banner-img { max-width: none; object-fit: cover; object-position: center; }

/* Text sits over the image, aligned to the page container. */
.sf-banner-copy {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	pointer-events: none;
}
.sf-banner-copy > .sf-container { width: 100%; }
.sf-banner-copy .sf-hero-copy {
	max-width: min(540px, 52%);
	padding-bottom: 0;
	pointer-events: auto;
}
.sf-banner-copy .sf-hero-title { font-size: clamp(1.9rem, 4vw, 3.4rem); }

/* Light text for dark images or photos. */
.sf-hero--banner.is-light .sf-hero-title,
.sf-hero--banner.is-light .sf-hero-lead { color: #fff; text-shadow: 0 1px 14px rgba(11, 27, 59, 0.35); }
.sf-hero--banner.is-light .sf-hero-accent { color: #fff; opacity: 0.92; }
.sf-hero--banner.is-light.sf-brand-gradient .sf-hero-accent,
.sf-brand-gradient .sf-hero--banner.is-light .sf-hero-accent,
.sf-brand-glossy .sf-hero--banner.is-light .sf-hero-accent {
	background: none;
	-webkit-text-fill-color: #fff;
	color: #fff;
}
.sf-hero--banner.is-light .sf-hero-eyebrow { background: rgba(255, 255, 255, 0.2); color: #fff; }
.sf-hero--banner.is-light .sf-slider-dot { background: rgba(255, 255, 255, 0.55); }
.sf-hero--banner.is-light .sf-slider-dot.is-active { background: #fff; }

:root[data-sf-theme="dark"] .sf-hero--banner:not(.is-light) .sf-hero-title,
:root[data-sf-theme="dark"] .sf-hero--banner:not(.is-light) .sf-hero-lead { color: #0B1B3B; }

.sf-hero--banner .sf-slider-dots { bottom: 18px; }
.sf-hero--banner .sf-slider-arrow { opacity: 0.92; }

@media (max-width: 820px) {
	/* Phones and tablets: image on top, text underneath, so nothing covers the artwork. */
	.sf-banner-media { height: clamp(200px, 56vw, 340px); }
	.sf-banner-img { object-position: 70% center; }
	.sf-banner-copy { position: static; display: block; padding: 20px 0 64px; }
	.sf-banner-copy .sf-hero-copy { max-width: none; text-align: center; }
	.sf-banner-copy .sf-hero-lead { margin-inline: auto; }
	.sf-banner-copy .sf-hero-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
	.sf-hero--banner.is-light .sf-banner-copy { background: var(--sf-navy); }
	.sf-hero--banner.is-image-only .sf-slider-arrow { top: calc(clamp(200px, 56vw, 340px) / 2); bottom: auto; margin-top: -19px; }
	.sf-hero--banner.is-image-only .sf-slider-dots { bottom: auto; top: calc(clamp(200px, 56vw, 340px) - 28px); }
}

/* ---- Pre-order button and badge (out-of-stock products) ---- */
html body ul.products li.product a.button.sf-preorder-btn.sf-preorder-btn,
html body .sf-preorder-product .single_add_to_cart_button.button.alt {
	background: #FFF4DB;
	color: #7A4A00;
	border: 1.5px solid #FFC85C;
	box-shadow: none;
}
html body ul.products li.product a.button.sf-preorder-btn.sf-preorder-btn:hover,
html body .sf-preorder-product .single_add_to_cart_button.button.alt:hover {
	background: #FFB92E;
	color: #2E1B00;
	border-color: #FFB92E;
}
:root[data-sf-theme="dark"] body ul.products li.product a.button.sf-preorder-btn.sf-preorder-btn {
	background: rgba(255, 185, 46, 0.14);
	color: #FFD58A;
	border-color: rgba(255, 185, 46, 0.5);
}

.sf-preorder-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 4;
	padding: 4px 11px;
	background: #FFB92E;
	color: #2E1B00;
	border-radius: 6px;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.4;
	text-transform: uppercase;
	pointer-events: none;
}
.woocommerce ul.products li.product.outofstock { position: relative; }
.woocommerce .stock.sf-preorder-note,
.woocommerce div.product p.stock.sf-preorder-note { color: #9A5B00; font-weight: 700; }

/* ---- Product card image slider ---- */
.sf-card-slider {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1;
	margin: 0 0 14px;
	overflow: hidden;
	background: var(--sf-surface);
	border-radius: 14px;
	touch-action: pan-y;
}
.sf-card-track {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}
.woocommerce ul.products li.product .sf-card-slider .sf-card-track img.sf-card-img {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
	border-radius: 0;
	aspect-ratio: auto;
	object-fit: contain;
	box-shadow: none;
}
.sf-card-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin-top: -15px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--sf-ink);
	border-radius: 50%;
	box-shadow: 0 3px 10px rgba(11, 27, 59, 0.18);
	opacity: 0;
	transition: opacity 0.2s ease;
	cursor: pointer;
	user-select: none;
}
.sf-card-arrow svg { width: 14px; height: 14px; }
.sf-card-prev { left: 8px; }
.sf-card-next { right: 8px; }
.sf-card-slider:hover .sf-card-arrow { opacity: 1; }
@media (hover: none) { .sf-card-arrow { display: none; } }

.sf-card-dots {
	position: absolute;
	right: 0;
	bottom: 8px;
	left: 0;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 5px;
	pointer-events: none;
}
.sf-card-dot {
	width: 6px;
	height: 6px;
	background: rgba(11, 27, 59, 0.28);
	border-radius: 50%;
	transition: background 0.2s ease, transform 0.2s ease;
}
.sf-card-dot.is-active { background: var(--sf-accent); transform: scale(1.3); }

@media (prefers-reduced-motion: reduce) {
	.sf-card-track, .sf-card-arrow, .sf-card-dot { transition: none; }
}

/* ------------------------------------------------------------------------
   18.0 Hero layout: sidebar menu + banner slider
   Customize > ShopFlow Homepage > Hero Layout & Banners > "Sidebar menu + banner slider".
   Reuses the banner slides; the menu comes from Appearance > Menus > "Hero Sidebar Menu"
   (or the product categories when no menu is assigned).
   ------------------------------------------------------------------------ */
.sf-hero--side {
	--sf-side-fill: var(--sf-side-bg, #FFF6E3);
	--sf-side-text: var(--sf-side-ink, var(--sf-ink));
	--sf-side-hover: color-mix(in srgb, var(--sf-side-text) 16%, var(--sf-side-fill));
	padding-block: 16px 14px;
	background: var(--sf-side-fill);
}
:root[data-sf-theme="dark"] .sf-hero--side:not(.has-custom-bg) { --sf-side-fill: #16213C; }

/* The base banner rule removes the container's padding; this layout wants the normal page container back. */
.sf-hero--banner.sf-hero--side > .sf-container {
	max-width: var(--sf-container);
	padding-inline: var(--sf-gutter);
}

.sf-hero-side {
	display: grid;
	grid-template-columns: var(--sf-side-w, 280px) minmax(0, 1fr);
	gap: 16px;
	align-items: stretch;
}
.sf-hero--side.has-no-menu .sf-hero-side { grid-template-columns: minmax(0, 1fr); }

/* ---- The menu: as tall as the banner, scrolls when it has more items than fit ---- */
.sf-hero-menu { position: relative; min-width: 0; }
.sf-hero-menu__scroll {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--sf-side-text) 28%, transparent) transparent;
}
/* Leave room for the dots under the banner so the menu ends where the banner ends. */
.sf-hero--side.has-dots .sf-hero-menu__scroll { bottom: 21px; }

.sf-hero-menu__list,
.sf-hero-menu__list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.sf-hero-menu__list li {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	margin: 0;
	padding: 0;
	border: 0;
}
.sf-hero-menu__list a {
	display: block;
	flex: 1 1 100%;
	padding: 10px 14px;
	color: var(--sf-side-text);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.sf-hero-menu__list a:hover,
.sf-hero-menu__list a:focus-visible { color: var(--sf-side-text); }

/* Items with a sub-menu: the chevron sits right after the label and the button fills the rest of the row. */
.sf-hero-menu__list li.menu-item-has-children > a { flex: 0 1 auto; max-width: calc(100% - 36px); padding-right: 6px; }
.sf-hero-menu__list .sf-hm-toggle {
	flex: 1 1 0;
	min-width: 36px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0;
	padding: 0 12px 0 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--sf-side-text);
	font-size: inherit;
	opacity: 1;
}
.sf-hero-menu__list .sf-hm-toggle:hover { color: var(--sf-side-text); opacity: 1; }
.sf-hero-menu__list .sf-hm-toggle svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.sf-hero-menu__list li.is-open > .sf-hm-toggle svg { transform: rotate(180deg); }
.sf-hero-menu__list a:focus-visible,
.sf-hero-menu__list .sf-hm-toggle:focus-visible { outline: 2px solid var(--sf-focus); outline-offset: -2px; }

/* Sub-menus open in place. Opaque, so a highlighted parent row never shows through. */
.sf-hero-menu__list .sub-menu {
	display: none;
	flex: 1 1 100%;
	background: var(--sf-side-fill);
}
.sf-hero-menu__list li.is-open > .sub-menu { display: block; }
.sf-hero-menu__list .sub-menu a { padding-left: 30px; font-weight: 600; }

@media (min-width: 821px) {
	.sf-hero-menu__list li:has(> a:hover, > a:focus-visible, > .sf-hm-toggle:hover, > .sf-hm-toggle:focus-visible),
	.sf-hero-menu__list li.current-menu-item:not(.menu-item-has-children) { background: var(--sf-side-hover); }
	/* Browsers without :has() still highlight the link itself. */
	.sf-hero-menu__list a:hover { background: var(--sf-side-hover); }
}

/* ---- The banner ---- */
.sf-hero-stage { min-width: 0; }
.sf-hero-viewport {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	background: var(--sf-surface);
}
.sf-hero--side .sf-banner-media {
	height: auto;
	min-height: 220px;
	max-height: var(--sf-hero-max-h, 640px);
	aspect-ratio: 3 / 1;
}
.sf-hero--side .sf-banner-img,
.sf-hero--side .sf-banner-link {
	position: absolute;
	inset: 0;
}

/* Text on the banner is a little smaller here, because the banner is narrower than a full-width one. */
.sf-hero--side .sf-banner-copy > .sf-container { padding-inline: clamp(18px, 3vw, 40px); }
.sf-hero--side .sf-banner-copy .sf-hero-copy { max-width: min(460px, 64%); }
.sf-hero--side .sf-banner-copy .sf-hero-title { font-size: clamp(1.5rem, 2.8vw, 2.5rem); }
.sf-hero--side .sf-banner-copy .sf-hero-lead { margin-top: 12px; font-size: 0.95rem; }
.sf-hero--side .sf-banner-copy .sf-hero-ctas { margin-top: 18px; }

/* Arrows sit on the banner; the dots sit below it. */
.sf-hero--side .sf-slider-arrow {
	width: 36px;
	height: 36px;
	margin-top: -18px;
	background: rgba(11, 27, 59, 0.34);
	color: #fff;
	box-shadow: none;
	opacity: 1;
}
.sf-hero--side .sf-slider-arrow:hover { background: rgba(11, 27, 59, 0.6); color: #fff; }
.sf-hero--side .sf-slider-prev { left: 12px; }
.sf-hero--side .sf-slider-next { right: 12px; }

.sf-hero--side .sf-slider-dots { position: static; margin-top: 12px; }
/* Dots sit on the hero background, so they follow the menu text color (readable on light and dark backgrounds). */
.sf-hero--side .sf-slider-dot,
.sf-hero--side.is-light .sf-slider-dot { background: color-mix(in srgb, var(--sf-side-text) 28%, transparent); }
.sf-hero--side .sf-slider-dot.is-active,
.sf-hero--side.is-light .sf-slider-dot.is-active { background: var(--sf-brand-fill); }

/* ---- Phones and tablets: the menu becomes a row of scrollable buttons above the banner ---- */
@media (max-width: 820px) {
	.sf-hero--side {
		--sf-side-mh: clamp(180px, 52vw, 320px);
		padding-block: 12px 10px;
	}
	.sf-hero-side { grid-template-columns: minmax(0, 1fr); gap: 12px; }

	.sf-hero-menu__scroll,
	.sf-hero--side.has-dots .sf-hero-menu__scroll {
		position: static;
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
	}
	.sf-hero-menu__scroll::-webkit-scrollbar { display: none; }
	.sf-hero-menu .sf-hero-menu__list { display: flex; gap: 8px; width: max-content; padding-inline: 1px; }
	.sf-hero-menu .sf-hero-menu__list > li { display: block; flex: 0 0 auto; }
	.sf-hero-menu .sf-hero-menu__list > li > a {
		display: block;
		padding: 8px 15px;
		background: var(--sf-paper);
		border: 1px solid var(--sf-line);
		border-radius: 999px;
		white-space: nowrap;
	}
	/* Sub-items are reached from the category page on small screens. */
	.sf-hero-menu .sf-hero-menu__list li.menu-item-has-children > .sf-hm-toggle,
	.sf-hero-menu .sf-hero-menu__list li.menu-item-has-children > .sub-menu { display: none; }
	.sf-hero-menu .sf-hero-menu__list li.menu-item-has-children > a { max-width: none; padding-right: 15px; }

	.sf-hero-viewport { border-radius: 12px; }
	.sf-hero--side .sf-banner-media { height: var(--sf-side-mh); min-height: 0; max-height: none; aspect-ratio: auto; }
	.sf-hero--side .sf-banner-img { object-position: 70% center; }
	.sf-hero--side .sf-banner-copy { padding: 16px 0 20px; }
	.sf-hero--side .sf-banner-copy > .sf-container { padding-inline: 18px; }
	.sf-hero--side .sf-banner-copy .sf-hero-copy { max-width: none; }
	.sf-hero--side .sf-banner-copy .sf-hero-title { font-size: clamp(1.4rem, 6vw, 1.9rem); }

	/* Arrows stay centred on the image even when the text sits underneath it. */
	.sf-hero--side .sf-slider-arrow,
	.sf-hero--side.is-image-only .sf-slider-arrow { top: calc(var(--sf-side-mh) / 2); bottom: auto; margin-top: -18px; }
	.sf-hero--side.is-image-only .sf-slider-dots { top: auto; bottom: auto; }
}
