/* ==========================================================================
   Footprint — main stylesheet
   Design tokens sourced from the Figma "Footprint Designs" variables.
   ========================================================================== */

:root {
	/* Colour */
	--fp-ink: #484834;
	--fp-primary: #5c7568;   /* sage (darkened to meet WCAG AA on cream) */
	--fp-olive: #cdcea2;
	--fp-deep: #484834;
	--fp-base: #fbf9f5;      /* cream */
	--fp-raised: #ffffff;
	--fp-inverse: #fbf9f5;
	--fp-primary-dark: #54695e;   /* sage hover/active */
	--fp-footer-bg: #151816;      /* near-black footer  */
	--fp-line: rgba(72, 72, 52, 0.12);
	--fp-border: #d6d1c4;          /* visible card/control border */
	--fp-card-border: #ece3d6;     /* warm border on product / PDP cards */
	--fp-chip-bg: #fcf9f3;         /* inactive chip/pill fill */
	--fp-card-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);   /* soft card shadow (Figma card spec) */
	--fp-muted: #6a6a5a;

	/* Soft pastel card tints (Shop by Gender) */
	--fp-tint-cream: #f4f2ea;
	--fp-tint-sand: #ecdfca;
	--fp-tint-sage: #dde4d8;
	--fp-sand-deep: #d8c9a8;

	/* Type */
	--fp-serif: "Cormorant Garamond", Georgia, serif;
	--fp-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	/* Layout */
	--fp-container: 1500px;
	--fp-gutter: clamp(20px, 4vw, 48px);
	--fp-radius-lg: 24px;   /* large floating panels (product card, toolbar, filters) */
	--fp-radius: 18px;      /* section / feature cards, thumbnails                     */
	--fp-radius-sm: 12px;   /* small inputs                                           */
	--fp-radius-xs: 5px;    /* tiny controls (checkbox)                               */
	--fp-radius-pill: 999px;/* chips, pills, buttons                                  */

	/* Universal spacing scale — every section/gap/padding derives from these,
	   so vertical rhythm is consistent across the whole site (desktop & mobile). */
	--fp-section-y: clamp(55px, 7vw, 95px);   /* section top/bottom padding   */
	--fp-head-gap:  clamp(30px, 3.5vw, 45px); /* section header -> content    */
	--fp-gap:       clamp(15px, 2vw, 30px);   /* grid / flex gaps             */
	--fp-gap-lg:    clamp(30px, 4.5vw, 70px); /* large 2-column layout gaps   */
	--fp-card-pad:  clamp(25px, 2.4vw, 40px); /* panel / card inner padding   */
	--fp-flow:      1.1em;                    /* stacked text rhythm          */

	/* Universal typography rhythm — the gap between stacked text elements is
	   the SAME everywhere, never tuned per section. */
	--fp-gap-eyebrow: 15px;                   /* eyebrow / kicker -> heading  */
	--fp-gap-title:   15px;                    /* heading -> supporting body   */
	--fp-gap-lede:    clamp(25px, 2.6vw, 30px);/* body / lede -> CTA buttons   */
	--fp-gap-micro:   5px;                     /* label -> value / sub line    */
}

/* Reset-ish ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--fp-sans);
	font-size: 15px;
	line-height: 1.53;
	color: var(--fp-ink);
	background: var(--fp-base);
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--fp-serif);
	font-weight: 600;
	line-height: 1.06;
	margin: 0 0 .4em;
	color: var(--fp-ink);
	letter-spacing: -0.01em;
}

/* Universal type scale (Footprint tokens) — applies everywhere unless a
   component class overrides it (pages, posts, WooCommerce, the editor). */
h1 { font-size: clamp(38px, 4.5vw, 56px); line-height: 1.02; }
h2 { font-size: clamp(30px, 3.6vw, 50px); }
h3 { font-size: clamp(28px, 3vw, 40px); }
h4 { font-size: clamp(24px, 2.6vw, 34px); }
h5 { font-size: 28px; }
h6 { font-size: 22px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
small { font-size: 13px; }
::selection { background: var(--fp-olive); color: var(--fp-ink); }

/* Universal focus ring for keyboard users. */
:focus-visible { outline: 2px solid var(--fp-primary); outline-offset: 2px; }

/* Body-content links (header/footer/component links opt out via their own colour). */
.fp-prose a, .fp-flow a:not(.fp-btn), .entry-content a:not(.fp-btn), .woocommerce-page :where(.woocommerce-info, .woocommerce-message, p) a {
	color: var(--fp-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.fp-prose a:hover, .fp-flow a:not(.fp-btn):hover, .entry-content a:not(.fp-btn):hover { color: var(--fp-deep); }

/* Universal form fields (contact forms, WooCommerce checkout, account, etc.) — cream rounded field. */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="number"], input[type="date"], input[type="search"], textarea, select {
	font: inherit;
	color: var(--fp-ink);
	background: var(--fp-chip-bg);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius-lg);
	padding: 20px;
	width: 100%;
	max-width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--fp-muted); }
input:focus, textarea:focus, select:focus { border-color: var(--fp-primary); outline: none; box-shadow: 0 0 0 3px rgba(97,122,109,.18); }
label { font-weight: 600; font-size: 14px; }

.fp-cform { display: flex; flex-direction: column; gap: 20px; }
.fp-cform__row { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 768px) { .fp-cform__row { grid-template-columns: 1fr 1fr; } }
.fp-field { display: flex; flex-direction: column; gap: 10px; }
.fp-field > span { font-weight: 600; font-size: 14px; color: var(--fp-ink); }
.fp-cform .wpcf7-form-control-wrap { display: block; }
.fp-cform .fp-btn { align-self: flex-start; margin-top: 5px; }

/* Universal buttons — core block buttons, WooCommerce buttons & form submits
   all adopt the Footprint pill (custom theme buttons keep their own styles). */
.wp-element-button, .wp-block-button__link,
.woocommerce a.button, .woocommerce button.button, .woocommerce .button,
.woocommerce input.button, .woocommerce #respond input#submit,
input[type="submit"], button[type="submit"]:not(.fp-search__btn) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	/* !important on size/shape: WooCommerce core CSS loads after the theme and
	   otherwise overrides these on specific buttons (checkout = 1.25em, update = .618em). */
	font-family: var(--fp-sans);
	font-weight: 600 !important;
	font-size: 15px !important;
	line-height: 1.2 !important;
	padding: 15px 25px !important;
	border: 1px solid transparent;
	border-radius: var(--fp-radius-pill) !important;
	background: var(--fp-primary);
	color: var(--fp-inverse);
	text-decoration: none;                                        /* button-links (e.g. Proceed to checkout) never underline */
	cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.wp-element-button:hover, .wp-block-button__link:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce .button:hover,
.woocommerce input.button:hover, .woocommerce #respond input#submit:hover,
input[type="submit"]:hover, button[type="submit"]:not(.fp-search__btn):hover {
	background: var(--fp-primary-dark);
	color: var(--fp-inverse);
}

.container {
	width: 100%;
	max-width: var(--fp-container);
	margin-inline: auto;
	padding-inline: var(--fp-gutter);
}

/* Content column is full width with no padding, so full-bleed sections reach the edges.
   overflow-x: clip on <html> absorbs the 100vw hero's scrollbar overflow WITHOUT
   creating a scroll container (so the sticky header still works). */
html { overflow-x: clip; }
html, body { margin: 0; padding: 0; }
.site-content, .fp-home { width: 100%; max-width: none; margin: 0; padding: 0; }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px,1px,1px,1px);
	width: 1px; height: 1px; overflow: hidden;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--fp-raised); padding: .6rem 1rem; z-index: 999; border-radius: var(--fp-radius-sm); }

/* Shared UI bits -------------------------------------------------------- */
.fp-eyebrow {
	font-family: var(--fp-sans);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--fp-primary);
	margin: 0 0 var(--fp-gap-eyebrow);
}
.fp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	padding: 15px 25px;
	border-radius: var(--fp-radius-pill);
	border: 1px solid transparent;
	transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.fp-btn--primary { background: var(--fp-primary); color: var(--fp-inverse); }
.fp-btn--primary:hover { background: var(--fp-primary-dark); color: var(--fp-inverse); }
.fp-btn--ghost { background: transparent; border-color: var(--fp-line); color: var(--fp-ink); }
.fp-btn--ghost:hover { background: var(--fp-primary-dark); color: var(--fp-inverse); border-color: var(--fp-primary-dark); }
.fp-btn--light { background: var(--fp-base); color: var(--fp-ink); border-color: var(--fp-line); }
.fp-btn--light:hover { background: var(--fp-primary-dark); color: var(--fp-inverse); border-color: var(--fp-primary-dark); }
.fp-btn:active { transform: translateY(1px); }

/* ==========================================================================
   Top bar
   ========================================================================== */
.fp-topbar {
	background: var(--fp-primary);
	color: var(--fp-inverse);
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	font-weight: 600;
}
.fp-topbar__inner {
	display: flex;
	gap: clamp(20px, 5vw, 65px);
	justify-content: space-between;
	align-items: center;
	min-height: 48px;
	flex-wrap: wrap;
}
.fp-topbar__item { white-space: nowrap; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.fp-header { background: var(--fp-raised); border-bottom: 1px solid var(--fp-line); position: sticky; top: 0; z-index: 50; }
.fp-header__inner {
	display: grid;
	grid-template-columns: auto auto 1fr auto;
	align-items: center;
	gap: clamp(20px, 2.6vw, 40px);
	min-height: 112px;
}
.fp-brand__link { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; line-height: 1; }
.fp-brand__mark { color: var(--fp-ink); display: inline-flex; }
.fp-brand__logo { max-height: 64px; width: auto; }
.fp-brand__name { font-family: var(--fp-serif); font-size: 26px; font-weight: 700; color: var(--fp-ink); letter-spacing: -0.01em; }

/* Primary nav — inline Women / Men / Kids */
.fp-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(15px, 2.2vw, 35px); align-items: center; }
.fp-nav__item > a { font-size: 15px; font-weight: 500; color: var(--fp-primary); padding: 5px 0; border-bottom: 2px solid transparent; transition: border-color .15s ease, color .15s ease; }
.fp-nav__item > a:hover { color: var(--fp-ink); border-color: var(--fp-primary); }

/* Mega-menu — full-width dropdown under the gender nav tabs */
.fp-nav__item { position: static; }
/* Narrow invisible bridge below each gender link → covers the gap down to the
   panel WITHOUT overlaying the neighbouring tabs. */
.fp-nav__item.fp-has-mega > a { position: relative; }
.fp-nav__item.fp-has-mega > a::after { content: ""; position: absolute; top: 100%; left: -14px; right: -14px; height: 56px; }
.fp-mega {
	position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
	padding-top: 10px;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	transition-delay: .22s;   /* linger before closing so moving between tabs/panel doesn't flicker */
	pointer-events: none;
}
.fp-nav__item.fp-has-mega:hover > .fp-mega,
.fp-nav__item.fp-has-mega:focus-within > .fp-mega {
	opacity: 1; visibility: visible; transform: none; pointer-events: auto;
	transition-delay: 0s;     /* open immediately */
}
.fp-mega__panel {
	background: var(--fp-raised);
	border: 1px solid var(--fp-line);
	border-radius: var(--fp-radius);
	box-shadow: 0 40px 80px -40px rgba(72, 72, 52, 0.45);
	padding: var(--fp-card-pad);
	display: grid;
	grid-template-columns: 1fr 1fr 1.5fr 300px;
	gap: clamp(25px, 3vw, 50px);
}
.fp-mega__heading { font-family: var(--fp-sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fp-muted); margin: 0 0 var(--fp-gap-title); }
.fp-mega__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fp-mega__list--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 25px; }
.fp-mega__list a { font-size: 15px; color: var(--fp-ink); border: 0; padding: 0; font-weight: 400; }
.fp-mega__list a:hover { color: var(--fp-primary); }
.fp-mega__feature { background: var(--fp-tint-cream); border-radius: var(--fp-radius-sm); padding: var(--fp-card-pad); display: flex; flex-direction: column; }
.fp-mega__feature-title { font-size: 28px; margin: 0 0 10px; }
.fp-mega__feature-sub { font-size: 14px; color: var(--fp-muted); margin: 0 0 var(--fp-gap-micro); }
.fp-mega__feature-note { font-size: 13px; color: var(--fp-muted); line-height: 1.5; margin: 0 0 auto; }
.fp-mega__feature .fp-btn { align-self: flex-start; margin-top: 20px; }

/* Search — large centred pill, icon on the left */
.fp-search { display: flex; align-items: center; gap: 10px; background: var(--fp-base); border: 1px solid var(--fp-line); border-radius: var(--fp-radius-pill); padding: 5px 10px 5px 20px; max-width: 480px; width: 100%; justify-self: center; }
.fp-search .fp-search__input { border: 0; background: transparent; border-radius: 0; flex: 1; padding: 10px 0; font-size: 14px; color: var(--fp-ink); outline: none; box-shadow: none; }
.fp-search__input::placeholder { color: var(--fp-muted); }
.fp-search__btn { background: transparent; color: var(--fp-ink); border: 0; width: 24px; height: 24px; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color .15s ease; }
.fp-search__btn:hover { color: var(--fp-primary); }

/* Account / Basket — outlined pill buttons */
.fp-header__actions { display: flex; align-items: center; gap: 10px; }
.fp-header__action { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--fp-ink); position: relative; background: var(--fp-base); border: 1px solid var(--fp-olive); border-radius: var(--fp-radius-pill); padding: 10px 20px; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.fp-header__action:hover { background: var(--fp-primary-dark); color: var(--fp-inverse); border-color: var(--fp-primary-dark); }
.fp-header__action svg { color: currentColor; }
.fp-header__action:hover .fp-header__count { background: var(--fp-inverse); color: var(--fp-primary-dark); }
.fp-header__count { position: absolute; top: -5px; right: -5px; background: var(--fp-primary); color: var(--fp-raised); font-size: 10px; min-width: 20px; height: 20px; border-radius: var(--fp-radius-pill); display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }

.fp-burger { display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; padding: 10px; }
.fp-burger span { width: 22px; height: 2px; background: var(--fp-ink); border-radius: var(--fp-radius-pill); transition: transform .2s ease, opacity .2s ease; transform-origin: center; }
.fp-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fp-burger.is-open span:nth-child(2) { opacity: 0; }
.fp-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer — opens below the header (which stays in place) */
.fp-mobile-menu { display: none; }
.fp-mobile-menu__genders { display: flex; gap: 10px; }
.fp-mobile-menu__shop-all { display: flex; width: 100%; justify-content: center; margin-top: 15px; }
.fp-gender-tab {
	flex: 1 1 0; min-width: 0;
	padding: 15px 10px;
	border: 1px solid var(--fp-line);
	border-radius: var(--fp-radius-pill);
	background: transparent;
	color: var(--fp-ink);
	font-family: var(--fp-sans); font-weight: 600; font-size: 15px;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.fp-gender-tab.is-active { background: var(--fp-primary); color: var(--fp-inverse); border-color: var(--fp-primary); }
.fp-mobile-menu__group { border-top: 1px solid var(--fp-line); margin-top: 20px; padding-top: 20px; }
.fp-mobile-menu__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 15px 25px; }
.fp-mobile-menu__list a { color: var(--fp-ink); font-size: 15px; }
.fp-mobile-menu__list a:hover { color: var(--fp-primary); }

/* ==========================================================================
   Hero
   ========================================================================== */
.fp-hero {
	position: relative;
	/* Break out to the full viewport width regardless of any container constraint.
	   `html { overflow-x: clip }` (below) absorbs the scrollbar width without breaking sticky. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: clamp(520px, 72vh, 760px);
	display: flex;
	align-items: center;
	background-color: var(--fp-deep);
	background-image: var(--fp-hero-img);
	background-size: cover;
	background-position: center 35%;
	background-repeat: no-repeat;
	isolation: isolate;
	overflow: hidden;
}
.fp-hero--noimg { background-color: var(--fp-olive); }
.fp-hero__overlay {
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(100deg, rgba(38,40,30,.82) 0%, rgba(38,40,30,.55) 38%, rgba(38,40,30,.12) 70%, rgba(38,40,30,0) 100%);
}
.fp-hero__inner { width: 100%; padding-block: clamp(50px, 8vw, 95px); }
.fp-hero__content { max-width: 600px; }
.fp-hero__eyebrow {
	font-family: var(--fp-sans); font-weight: 600; font-size: 13px;
	letter-spacing: .18em; text-transform: uppercase; color: var(--fp-inverse);
	opacity: .9; margin: 0 0 var(--fp-gap-eyebrow);
}
.fp-hero__title {
	font-size: clamp(38px, 4.5vw, 56px); line-height: 1.04;
	color: var(--fp-inverse); margin: 0 0 var(--fp-gap-title);   /* inverse: on dark hero image */
}
.fp-hero__sub {
	font-size: 16px; line-height: 1.6; color: rgba(251,249,245,.9);
	max-width: 44ch; margin: 0 0 var(--fp-gap-lede);
}
.fp-hero__cta { font-size: 16px; }

/* 50/50 split hero: copy on the deep panel (left) + an image filling the right half. */
.fp-hero--split { position: relative; background-color: var(--fp-deep); min-height: clamp(560px, 72vh, 720px); overflow: hidden; }
.fp-hero--split .fp-hero__inner {
	position: relative; z-index: 1;
	display: flex; align-items: center;
	padding-block: clamp(36px, 4vw, 64px);
}
.fp-hero--split .fp-hero__content { max-width: 460px; }
.fp-hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: clamp(380px, 42vw, 620px); }
.fp-hero__slider { position: absolute; inset: 0; }
.fp-hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.fp-hero__slide.is-active { opacity: 1; }
.fp-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.fp-hero__dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; display: flex; gap: 8px; justify-content: center; }
.fp-hero__dot {
	width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(251, 249, 245, .55); cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
	transition: width .25s ease, background-color .25s ease;
}
.fp-hero__dot.is-active { width: 22px; border-radius: 5px; background: var(--fp-inverse); }

@media ( prefers-reduced-motion: reduce ) {
	.fp-hero__slide { transition: none; }
}

/* ==========================================================================
   Brand strip
   ========================================================================== */
.fp-brands { border-block: 1px solid var(--fp-line); background: var(--fp-base); padding-block: 30px; }
.fp-brands__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.fp-brands__track { display: flex; width: max-content; animation: fp-marquee var(--fp-marquee-speed, 40s) linear infinite; will-change: transform; }
.fp-brands:hover .fp-brands__track { animation-play-state: paused; }
.fp-brands__set { display: flex; flex: 0 0 auto; }
.fp-brands__item { flex: 0 0 auto; width: clamp(150px, 12vw, 190px); display: inline-flex; align-items: center; justify-content: center; padding-inline: 15px; }
.fp-brands__name { font-family: var(--fp-serif); font-size: 22px; font-weight: 600; color: var(--fp-ink); white-space: nowrap; }
/* White-background logo crops: multiply drops the white onto the cream so only the black mark shows. */
.fp-brands__item img { max-height: 30px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
@keyframes fp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.fp-brands__track { animation: none; }
	.fp-brands__viewport { overflow-x: auto; }
	.fp-brands__set:last-child { display: none; }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.fp-section { padding-block: var(--fp-section-y); }
.fp-section--cream { background: var(--fp-base); }
.fp-section--white { background: var(--fp-raised); }
/* Consecutive sections that share a background collapse the doubled gap to a
   single rhythm (different-background sections keep full padding to separate). */
/* Universal: any two adjacent sections of the SAME tone collapse the seam to a
   single gap. Every full-width block (incl. heroes) carries a tone class. */
.fp-section--cream + .fp-section--cream,
.fp-section--white + .fp-section--white { padding-top: 0; }
.fp-section__head { max-width: 640px; margin-bottom: var(--fp-head-gap); }
.fp-section__head--center { max-width: 680px; margin-inline: auto; text-align: center; }
.fp-section__title { font-size: clamp(30px, 3.6vw, 50px); margin: 0 0 var(--fp-gap-title); }
.fp-section__body { font-size: 16px; line-height: 1.6; color: var(--fp-muted); margin: 0; }

/* Category circles (Shop by Category) ----------------------------------- */
/* `justify-content: safe center` centres the row when it fits (desktop) and
   falls back to scroll-from-start when it overflows (smaller screens = slider). */
.fp-cats {
	display: flex;
	gap: var(--fp-gap);
	justify-content: safe center;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-block: 5px;
}
.fp-cats::-webkit-scrollbar { display: none; }
.fp-drag-scroll { cursor: grab; -webkit-user-select: none; user-select: none; }
.fp-drag-scroll.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.fp-drag-scroll a, .fp-drag-scroll img { -webkit-user-drag: none; user-drag: none; }
.fp-cat {
	flex: 0 0 auto;
	width: 104px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	scroll-snap-align: center;
}
.fp-cat__circle {
	width: 104px; height: 104px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--fp-olive);
	display: flex; align-items: center; justify-content: center;
}
.fp-cat__circle img, .fp-cat__img { width: 100%; height: 100%; object-fit: cover; }
.fp-cat__label { font-family: var(--fp-serif); font-size: 18px; font-weight: 600; color: var(--fp-ink); line-height: 1.1; }
.fp-cat__sub { font-size: 12px; color: var(--fp-muted); }

/* Category cards -------------------------------------------------------- */
.fp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--fp-gap); }
.fp-card {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 280px; border-radius: var(--fp-radius); overflow: hidden;
	background: var(--fp-olive); color: var(--fp-inverse); padding: 20px;
	isolation: isolate;
}
.fp-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.fp-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(72,72,52,0) 30%, rgba(72,72,52,.72) 100%); }
.fp-card__label { font-family: var(--fp-serif); font-size: 26px; font-weight: 600; line-height: 1.05; }
.fp-card__sub { font-size: 13px; opacity: .9; margin-top: var(--fp-gap-micro); }

/* Gender cards — pastel text cards with a button (Shop by Gender) */
.fp-gcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--fp-gap); }
.fp-gcard {
	display: flex; flex-direction: column;
	min-height: 236px;
	padding: var(--fp-card-pad);
	border-radius: var(--fp-radius);
	position: relative;
	transition: transform .18s ease, box-shadow .18s ease;
}
.fp-gcard:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,0.08); }
.fp-gcard:hover .fp-gcard__btn { background: var(--fp-primary-dark); }
/* Stretched link — the whole card is clickable, button stays the visible CTA. */
.fp-gcard__btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.fp-gcard:nth-child(3n+1) { background: var(--fp-tint-cream); }
.fp-gcard:nth-child(3n+2) { background: var(--fp-tint-sand); }
.fp-gcard:nth-child(3n+3) { background: var(--fp-tint-sage); }
.fp-gcard__title { font-size: 28px; margin: 0 0 var(--fp-gap-title); }
.fp-gcard__body { font-size: 15px; line-height: 1.55; color: var(--fp-ink); margin: 0 0 auto; max-width: 30ch; }
.fp-gcard__btn { align-self: flex-start; margin-top: 25px; }

/* Benefits — "Why Footprint" cards (3 plain + 1 sage highlight) ---------- */
.fp-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--fp-gap); }
.fp-benefit {
	display: flex; flex-direction: column;
	background: var(--fp-raised);
	border: 1px solid var(--fp-line);
	border-radius: var(--fp-radius);
	padding: var(--fp-card-pad);
	transition: background .2s ease, border-color .2s ease;
}
.fp-benefit__dot { width: 24px; height: 24px; border-radius: 50%; background: var(--fp-primary); margin-bottom: 20px; transition: background .2s ease; }
.fp-benefit__title { font-family: var(--fp-sans); font-size: 16px; font-weight: 600; color: var(--fp-ink); margin: 0 0 var(--fp-gap-title); transition: color .2s ease; }
.fp-benefit__body { font-size: 15px; line-height: 1.55; color: var(--fp-muted); margin: 0; transition: color .2s ease; }
/* Hover turns a card sage (was a permanent highlight on the last card). */
.fp-benefit:hover { background: var(--fp-primary); border-color: transparent; }
.fp-benefit:hover .fp-benefit__dot { background: var(--fp-base); }
.fp-benefit:hover .fp-benefit__title { color: var(--fp-inverse); }
.fp-benefit:hover .fp-benefit__body { color: rgba(251, 249, 245, 0.82); }

/* Product grid + cards -------------------------------------------------- */
.fp-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--fp-gap); cursor: default; }
.fp-product-card { display: flex; flex-direction: column; background: var(--fp-raised); border: 1px solid var(--fp-card-border); border-radius: var(--fp-radius-lg); overflow: hidden; box-shadow: 0 10px 12px rgba(0,0,0,.06); transition: transform .18s ease, box-shadow .18s ease; }
.fp-product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 30px -20px rgba(72,72,52,.32); }
.fp-product-card__media { aspect-ratio: 7 / 5; background: var(--fp-base); display: block; overflow: hidden; }
.fp-product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.fp-product-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 20px; }
.fp-product-card__title { font-family: var(--fp-sans); font-size: 16px; font-weight: 600; line-height: 1.2; color: var(--fp-ink); }
.fp-product-card__meta { font-size: 14px; font-weight: 500; color: var(--fp-primary); }
.fp-product-card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 0px; }
.fp-product-card__condition { font-size: 14px; font-weight: 500; color: var(--fp-muted); }
.fp-product-card__price { font-size: 16px; font-weight: 600; color: var(--fp-primary); white-space: nowrap; }
.fp-product-card__price del { color: var(--fp-muted); font-weight: 500; margin-right: 5px; }

/* Delivery & returns — sage panel, header left, white cards stacked right */
.fp-deliver { background: var(--fp-primary); color: var(--fp-inverse); }
.fp-deliver__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--fp-gap-lg); align-items: center; }
.fp-eyebrow--light { color: rgba(251, 249, 245, 0.96); }
.fp-deliver__title { font-size: clamp(30px, 3.6vw, 50px); color: var(--fp-inverse); margin: 0 0 var(--fp-gap-title); }   /* inverse: on dark bg */
.fp-deliver__body { color: var(--fp-inverse); font-size: 16px; line-height: 1.6; max-width: 40ch; margin: 0; }
.fp-deliver__cards { display: flex; flex-direction: column; gap: var(--fp-gap); }
.fp-deliver__card { background: var(--fp-raised); border-radius: var(--fp-radius); padding: clamp(20px, 2vw, 30px) var(--fp-card-pad); }
.fp-deliver__card-label { font-family: var(--fp-sans); font-size: 16px; font-weight: 600; color: var(--fp-ink); margin: 0 0 var(--fp-gap-micro); }
.fp-deliver__card-text { font-size: 15px; color: var(--fp-muted); margin: 0; }

/* Help CTA — sand panel, text left, two buttons right -------------------- */
.fp-help { background: var(--fp-sand-deep); }
.fp-help__inner { display: grid; grid-template-columns: 1.3fr auto; gap: var(--fp-gap-lg); align-items: center; }
.fp-help__title { font-size: clamp(28px, 3vw, 40px); margin: 0 0 var(--fp-gap-title); max-width: 18ch; }
.fp-help__body { color: var(--fp-ink); max-width: 46ch; margin: 0; font-size: 15px; line-height: 1.6; }
.fp-help__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* ==========================================================================
   Footer
   ========================================================================== */
/* No margin-top — it would reveal the page background as a gap above the footer.
   The footer's own padding (and the preceding section's padding) handle spacing. */
.fp-footer { background: var(--fp-footer-bg); color: var(--fp-inverse); }
.fp-footer__inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: var(--fp-gap-lg); padding-block: clamp(50px, 6vw, 80px); }
.fp-footer__logo-tile { display: inline-flex; align-items: center; justify-content: center; background: var(--fp-raised); border-radius: var(--fp-radius); padding: 20px 25px; width: max-content; }
.fp-footer__logo-tile img { max-height: 84px; width: auto; }
.fp-footer__tagline { color: rgba(251,249,245,.74); max-width: 34ch; margin: 20px 0 0; line-height: 1.6; }
.fp-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--fp-gap); }
.fp-footer__heading { font-family: var(--fp-sans); font-size: 16px; font-weight: 600; color: var(--fp-inverse); margin: 0 0 var(--fp-gap-title); }
.fp-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fp-footer__menu a { color: rgba(251,249,245,.82); font-size: 14px; }
.fp-footer__menu a:hover { color: var(--fp-inverse); }
.fp-footer__bar { border-top: 1px solid rgba(251,249,245,.14); padding-block: 20px; }
.fp-footer__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.fp-footer__copyright { font-size: 12px; color: rgba(251,249,245,.6); margin: 0; text-align: left; }
.fp-footer__copyright a { color: rgba(251,249,245,.85); text-decoration: underline; }
.fp-footer__copyright a:hover { color: var(--fp-inverse); }
.fp-footer__legal { display: flex; gap: 20px; }
.fp-footer__legal a { font-size: 12px; color: rgba(251,249,245,.6); }
.fp-footer__legal a:hover { color: var(--fp-inverse); }

/* ==========================================================================
   Generic page / prose / pagination
   ========================================================================== */
.fp-page-head__title { font-size: clamp(38px, 4.5vw, 56px); }
.fp-flow > * + * { margin-top: 1.2em; }
.fp-prose { max-width: 760px; }
.fp-prose p { line-height: 1.7; }
.fp-post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 30px; }
.fp-pagination { display: flex; gap: 10px; justify-content: center; margin-top: 50px; }
.fp-pagination__nums { display: flex; gap: 5px; align-items: center; list-style: none; margin: 0; padding: 0; }
.fp-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 10px; border: 0; border-radius: var(--fp-radius-pill); background: transparent; color: var(--fp-ink); font-size: 14px; font-weight: 600; transition: background .15s ease; }
.fp-pagination a.page-numbers:hover { background: var(--fp-tint-sage); color: var(--fp-primary); }
.fp-pagination .current { background: var(--fp-primary); color: var(--fp-inverse); }
.fp-pagination a.page-numbers.current:hover { background: var(--fp-primary); color: var(--fp-inverse); cursor: default; }
.fp-pagination .next { color: var(--fp-ink); padding: 0 10px; }
.fp-pagination__more { display: none; }   /* mobile only (Load more) */

/* ==========================================================================
   Shop (product archive) + faceted filters
   ========================================================================== */
.fp-shop__hero { padding-block: clamp(40px, 5vw, 70px) clamp(25px, 3vw, 40px); }
.fp-shop__title { font-size: clamp(38px, 4.5vw, 56px); margin: 0 0 var(--fp-gap-title); }
.fp-shop__body { color: var(--fp-muted); max-width: 54ch; font-size: 16px; line-height: 1.6; margin: 0; }
.fp-shop__stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.fp-shop__stat { padding: 10px 20px; border: 1px solid var(--fp-border); border-radius: var(--fp-radius-pill); background: var(--fp-raised); font-size: 13px; font-weight: 600; color: var(--fp-ink); }
.fp-shop__layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(25px, 3vw, 50px); align-items: start; padding-bottom: var(--fp-section-y); }

/* Full-width results toolbar (white card above the sidebar + grid) */
.fp-shop__toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 15px; background: var(--fp-raised); border: 1px solid var(--fp-border); border-radius: var(--fp-radius-lg); box-shadow: var(--fp-card-shadow); padding: 20px 30px; margin-bottom: clamp(20px, 2.4vw, 30px); }
.fp-shop__chips { display: flex; flex: 1; min-width: 0; }
.fp-shop__chips .fp-active-filters { margin: 0; }
.fp-shop__controls { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.fp-shop__sort { display: inline-flex; align-items: center; gap: 5px; height: 44px; padding: 0 15px; border: 1px solid var(--fp-border); border-radius: var(--fp-radius-pill); background: var(--fp-raised); }
.fp-shop__summary { display: none; }

/* Filter sidebar */
.fp-filters { background: var(--fp-raised); border: 1px solid var(--fp-border); border-radius: var(--fp-radius-lg); box-shadow: var(--fp-card-shadow); padding: clamp(20px, 2vw, 30px); position: sticky; top: 128px; }
.fp-filters__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.fp-filters__title { font-size: 24px; margin: 0; }
.fp-filters__note { font-size: 14px; color: var(--fp-muted); line-height: 1.45; margin: var(--fp-gap-micro) 0 0; max-width: 28ch; }
.fp-filters__close,
.fp-filters__footer { display: none; }            /* desktop: sidebar only */
.fp-shop__filter-toggle { display: none; }          /* desktop: always-on sidebar, no toggle */
.fp-filter-group { border-top: 1px solid var(--fp-line); padding-top: 20px; margin-top: 20px; }
.fp-filter-group:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.fp-filter-group__heading { font-family: var(--fp-sans); font-size: 15px; font-weight: 600; margin: 0 0 var(--fp-gap-title); }
.fp-filter-pills, .fp-filter-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.fp-filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fp-pill input, .fp-chip input, .fp-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.fp-pill { display: inline-flex; cursor: pointer; }
.fp-pill span { padding: 10px 15px; background: var(--fp-chip-bg); border: 1px solid var(--fp-border); border-radius: var(--fp-radius-pill); font-size: 14px; font-weight: 600; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.fp-pill input:checked + span { background: var(--fp-primary); color: var(--fp-inverse); border-color: var(--fp-primary); }
.fp-pill input:focus-visible + span { outline: 2px solid var(--fp-primary); outline-offset: 2px; }

.fp-chip { cursor: pointer; }
.fp-chip span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 32px; padding: 0 10px; background: var(--fp-chip-bg); border: 1px solid var(--fp-border); border-radius: var(--fp-radius-pill); font-size: 13px; font-weight: 600; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.fp-chip input:checked + span { background: var(--fp-primary); color: var(--fp-inverse); border-color: var(--fp-primary); }
.fp-chip:hover input:not(:checked) + span,
.fp-pill:hover input:not(:checked) + span { border-color: var(--fp-primary); color: var(--fp-primary); }
.fp-chip input:focus-visible + span { outline: 2px solid var(--fp-primary); outline-offset: 2px; }


.fp-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.fp-check__dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--fp-muted); flex: 0 0 auto; transition: .15s; }
.fp-check input:checked + .fp-check__dot { background: var(--fp-primary); border-color: var(--fp-primary); box-shadow: 0 0 0 3px rgba(97,122,109,.18); }
.fp-check__label { color: var(--fp-ink); }
.fp-check input:checked ~ .fp-check__label { font-weight: 600; }

/* Results column */
.fp-shop__count { font-size: 14px; color: var(--fp-muted); white-space: nowrap; }
.fp-shop__count strong { color: var(--fp-ink); }
.fp-shop__sort-label { font-size: 14px; font-weight: 600; color: var(--fp-ink); }
.fp-shop__sort .woocommerce-ordering { margin: 0; display: inline-flex; align-items: center; }
/* The orderby <select> sits inside the .fp-shop__sort pill — strip the universal
   cream-field styling (which is !important) so it reads as one tidy pill. */
.fp-shop__sort select.orderby, .fp-shop__sort .woocommerce-ordering select { font: inherit; font-size: 14px; font-weight: 600; border: 0 !important; background: transparent !important; border-radius: 0 !important; box-shadow: none !important; color: var(--fp-ink); cursor: pointer; padding: 0 !important; min-height: 0 !important; appearance: none; -webkit-appearance: none; }
.fp-shop__sort-caret { color: var(--fp-muted); pointer-events: none; flex: 0 0 auto; }
.fp-active-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.fp-chip-active { display: inline-flex; align-items: center; gap: 10px; padding: 10px 15px; border: 1px solid var(--fp-line); border-radius: var(--fp-radius-pill); background: var(--fp-base); font-size: 13px; font-weight: 600; color: var(--fp-ink); cursor: pointer; }
.fp-chip-active span { color: var(--fp-muted); font-size: 15px; }
.fp-shop__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--fp-gap); }
.fp-shop__results.is-loading { opacity: .5; pointer-events: none; transition: opacity .15s ease; }
.fp-shop__empty { color: var(--fp-muted); padding: 50px 0; }
.fp-shop .fp-pagination { justify-content: flex-end; margin-top: clamp(30px, 4vw, 55px); }

/* ==========================================================================
   Product page (PDP) — node 440:35
   ========================================================================== */
.fp-pdp__hero { background: var(--fp-base); padding-block: var(--fp-section-y); }
.fp-pdp__crumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.fp-pdp__crumb a { color: var(--fp-primary); }
.fp-pdp__crumb span:last-child { color: var(--fp-muted); }
.fp-pdp__crumb span[aria-hidden] { color: var(--fp-border); }

.fp-pdp__top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: start; }

/* Gallery */
.fp-pdp__gallery { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; }
.fp-pdp__gallery--solo { grid-template-columns: 1fr; }
.fp-pdp__thumbs { display: flex; flex-direction: column; gap: 15px; }
.fp-pdp__thumb { width: 120px; aspect-ratio: 1; padding: 0; border: 1px solid var(--fp-card-border); border-radius: var(--fp-radius); overflow: hidden; background: var(--fp-raised); cursor: pointer; transition: border-color .15s ease; }
.fp-pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fp-pdp__thumb.is-active { border-color: var(--fp-primary); }
.fp-pdp__main { aspect-ratio: 502 / 620; border-radius: var(--fp-radius-lg); overflow: hidden; background: var(--fp-tint-cream); }
.fp-pdp__main img { width: 100%; height: 100%; object-fit: cover; }

/* Details */
.fp-pdp__details { display: flex; flex-direction: column; gap: 25px; }
.fp-pdp__title-row { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fp-pdp__title { font-size: clamp(38px, 4.5vw, 56px); margin: 0; }
.fp-pdp__price { font-family: var(--fp-sans); font-weight: 600; font-size: clamp(28px, 3vw, 40px); color: var(--fp-primary); white-space: nowrap; }
.fp-pdp__price del { color: var(--fp-muted); font-weight: 500; margin-right: 10px; }
.fp-pdp__meta { display: flex; flex-direction: column; gap: 10px; }
.fp-pdp__meta-line { font-size: 14px; font-weight: 500; color: var(--fp-primary); }
.fp-pdp__meta-cond { font-size: 14px; font-weight: 500; color: var(--fp-muted); }
.fp-pdp__trust { display: flex; flex-wrap: wrap; gap: 10px; }
.fp-pdp__chip { background: var(--fp-tint-cream); border: 0; border-radius: var(--fp-radius-pill); padding: 15px 20px; font-family: var(--fp-sans); font-size: 14px; font-weight: 500; color: var(--fp-ink); }
.fp-pdp__body { font-size: 15px; line-height: 1.55; color: var(--fp-ink); max-width: 56ch; }
.fp-pdp__body p { margin: 0 0 10px; }
.fp-pdp__body p:last-child { margin-bottom: 0; }
.fp-pdp__size-panel { display: flex; flex-direction: column; gap: 15px; background: var(--fp-raised); border: 1px solid var(--fp-card-border); border-radius: var(--fp-radius-lg); box-shadow: var(--fp-card-shadow); padding: 20px; }
.fp-pdp__size-title { font-family: var(--fp-sans); font-size: 22px; font-weight: 600; color: var(--fp-ink); margin: 0; }
.fp-pdp__sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.fp-pdp__size { min-width: 50px; text-align: center; cursor: pointer; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.fp-pdp__size.is-active { background: var(--fp-primary); color: var(--fp-inverse); }
.fp-pdp__size:not(.is-active):hover { box-shadow: inset 0 0 0 1px var(--fp-primary); color: var(--fp-primary); }
.fp-pdp__cta { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.fp-pdp__add { min-width: 240px; justify-content: center; align-self: flex-start; }

/* Support panels */
.fp-pdp__support { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 60px; }
.fp-pdp__panel { display: flex; flex-direction: column; gap: 10px; background: var(--fp-raised); border: 1px solid var(--fp-card-border); border-radius: var(--fp-radius-lg); box-shadow: var(--fp-card-shadow); padding: 25px; }
.fp-pdp__panel-title { font-family: var(--fp-sans); font-size: 20px; font-weight: 600; color: var(--fp-ink); margin: 0; }
.fp-pdp__panel-body { font-size: 15px; line-height: 1.6; color: var(--fp-muted); margin: 0; }

/* Related */
.fp-pdp__related { background: var(--fp-base); }
.fp-pdp__related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--fp-gap); }

/* ==========================================================================
   About page — node 457:50
   ========================================================================== */
.fp-about-hero { background: var(--fp-base); padding-block: var(--fp-section-y); }
.fp-about-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--fp-gap-lg); align-items: center; }
.fp-about-hero__copy { display: flex; flex-direction: column; align-items: flex-start; max-width: 560px; }
.fp-about-hero__title { margin: 0 0 var(--fp-gap-title); }   /* h1 styles come from the universal heading scale */
.fp-about-hero__body { font-size: 15px; line-height: 1.55; color: var(--fp-muted); margin: 0 0 var(--fp-gap-lede); max-width: 50ch; }
.fp-about-hero__media { aspect-ratio: 4 / 5; border-radius: var(--fp-radius-lg); overflow: hidden; border: 1px solid var(--fp-card-border); box-shadow: 0 18px 36px rgba(0,0,0,.08); background: var(--fp-tint-cream); }
.fp-about-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.fp-textmedia__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--fp-gap-lg); align-items: center; }
.fp-textmedia--reverse .fp-textmedia__media { order: 2; }
.fp-textmedia__media { aspect-ratio: 4 / 3; border-radius: var(--fp-radius-lg); overflow: hidden; border: 1px solid var(--fp-card-border); background: var(--fp-tint-cream); }
.fp-textmedia__media img { width: 100%; height: 100%; object-fit: cover; }
.fp-textmedia__text { max-width: 540px; }
.fp-textmedia__title { margin: 0 0 var(--fp-gap-title); }   /* h2 styles from the universal scale */
.fp-textmedia__body { font-size: 15px; line-height: 1.6; color: var(--fp-muted); margin: 0; }

/* ==========================================================================
   Help pages — FAQ + Contact
   ========================================================================== */
/* FAQ accordion */
.fp-faq { max-width: 820px; display: flex; flex-direction: column; gap: var(--fp-gap-lg); }
.fp-faq__item { background: var(--fp-raised); border: 1px solid var(--fp-card-border); border-radius: var(--fp-radius); overflow: hidden; }
.fp-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 15px; cursor: pointer; padding: 20px 25px; font-family: var(--fp-sans); font-weight: 600; font-size: 16px; color: var(--fp-ink); list-style: none; }
.fp-faq__q::-webkit-details-marker { display: none; }
.fp-faq__chev { color: var(--fp-muted); flex: 0 0 auto; transition: transform .2s ease; }
.fp-faq__item[open] .fp-faq__chev { transform: rotate(180deg); }
.fp-faq__a { padding: 0 25px 20px; color: var(--fp-muted); font-size: 15px; line-height: 1.6; }
.fp-faq__a p { margin: 0; }

/* Contact */
/* Contact hero — copy + chips | quick-contact card */
.fp-split-hero { background: var(--fp-base); padding-block: var(--fp-section-y); }
.fp-split-hero__inner { display: grid; grid-template-columns: 1.1fr 480px; gap: var(--fp-gap-lg); align-items: start; }
.fp-split-hero__title { font-size: clamp(38px, 4.5vw, 56px); margin: 0 0 var(--fp-gap-title); }
.fp-split-hero__body { font-size: 16px; line-height: 1.6; color: var(--fp-muted); margin: 0 0 var(--fp-gap-lede); max-width: 48ch; }
.fp-split-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* Soft cream info pill */
.fp-tag { display: inline-flex; align-items: center; background: var(--fp-tint-cream); border-radius: var(--fp-radius-pill); padding: 15px 20px; font-size: 14px; font-weight: 500; color: var(--fp-ink); }

/* Quick-contact card */
.fp-side-card { background: var(--fp-raised); border: 1px solid var(--fp-card-border); border-radius: var(--fp-radius-lg); box-shadow: var(--fp-card-shadow); padding: var(--fp-card-pad); }
.fp-side-card__title { font-size: clamp(28px, 2.6vw, 36px); margin: 0 0 var(--fp-gap-title); }
.fp-side-card__body { font-size: 15px; line-height: 1.6; color: var(--fp-muted); margin: 0 0 var(--fp-gap-lede); }
.fp-side-card__foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.fp-side-card__meta { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fp-side-card__meta div { display: flex; gap: 15px; }
.fp-side-card__meta dt { margin: 0; font-weight: 600; color: var(--fp-primary); font-size: 14px; }
.fp-side-card__meta dd { margin: 0; color: var(--fp-ink); font-size: 14px; }
a.fp-side-card__meta dd:hover { color: var(--fp-primary); }

/* Contact main — form card + sidebar info cards */
.fp-cmain__grid { display: grid; grid-template-columns: 1fr 480px; gap: var(--fp-gap-lg); align-items: start; }
.fp-cmain__form { background: var(--fp-raised); border: 1px solid var(--fp-card-border); border-radius: var(--fp-radius-lg); box-shadow: var(--fp-card-shadow); padding: var(--fp-card-pad); }
.fp-cmain__form-title { font-family: var(--fp-sans); font-size: 24px; font-weight: 600; color: var(--fp-ink); margin: 0 0 var(--fp-gap-title); }
.fp-cmain__form-body { font-size: 15px; line-height: 1.55; color: var(--fp-muted); margin: 0 0 var(--fp-gap-lede); max-width: 52ch; }

/* CF7 form layout (fields use the universal field style) */

/* Sidebar info cards */
.fp-cmain__side { display: flex; flex-direction: column; gap: var(--fp-gap); }
.fp-info-card { background: var(--fp-raised); border: 1px solid var(--fp-card-border); border-radius: var(--fp-radius-lg); box-shadow: var(--fp-card-shadow); padding: var(--fp-card-pad); }
.fp-info-card__title { font-family: var(--fp-sans); font-size: 20px; font-weight: 600; color: var(--fp-ink); margin: 0 0 var(--fp-gap-title); }
.fp-info-card__title--serif { font-family: var(--fp-serif); font-size: 28px; }
.fp-info-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fp-info-card__list li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.5; color: var(--fp-muted); }
.fp-info-card__list li::before { content: "•"; position: absolute; left: 0; color: var(--fp-primary); }
.fp-info-card--accent { background: var(--fp-primary); border-color: transparent; }
.fp-info-card--accent .fp-info-card__title { color: var(--fp-inverse); }
.fp-info-card__body { font-size: 15px; line-height: 1.6; color: var(--fp-muted); margin: 0; }
.fp-info-card--accent .fp-info-card__body { color: var(--fp-inverse); }
.fp-info-card--accent .fp-btn { margin-top: var(--fp-gap-title); }

/* FAQ — topic tabs + accordion + sidebar */
.fp-faqmain__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--fp-gap-lg); }
.fp-faq-tab { font-family: var(--fp-sans); font-size: 14px; font-weight: 600; color: var(--fp-ink); background: var(--fp-raised); border: 1px solid var(--fp-border); border-radius: var(--fp-radius-pill); padding: 15px 20px; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.fp-faq-tab:hover { border-color: var(--fp-primary); }
.fp-faq-tab.is-active { background: var(--fp-primary); border-color: var(--fp-primary); color: var(--fp-inverse); }
.fp-faqmain__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--fp-gap-lg); align-items: start; }
.fp-faq-panel { display: flex; flex-direction: column; gap: 10px; }
.fp-faq-panel[hidden] { display: none; }
.fp-faqmain__side { display: flex; flex-direction: column; gap: var(--fp-gap); }

/* ==========================================================================
   404
   ========================================================================== */
.fp-404__inner { max-width: 600px; margin-inline: auto; text-align: center; padding-block: clamp(40px, 8vw, 100px); }
.fp-404__title { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; margin: 0 0 var(--fp-gap-title); }
.fp-404__body { font-size: 16px; line-height: 1.6; color: var(--fp-muted); margin: 0 0 var(--fp-gap-lede); }
.fp-404__actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Legal / generic pages (Cookie, Privacy)
   ========================================================================== */
.fp-page-head { background: var(--fp-base); padding-block: var(--fp-section-y) var(--fp-gap); }
.fp-prose { padding-bottom: var(--fp-section-y); }
.fp-prose > * + * { margin-top: 1.1em; }
.fp-prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.6em; }
.fp-prose h3 { font-size: 22px; margin-top: 1.4em; }
.fp-prose ul, .fp-prose ol { padding-left: 20px; }
.fp-prose li + li { margin-top: 10px; }

/* ==========================================================================
   WooCommerce — account, cart, checkout (on-brand)
   ========================================================================== */
.wc-main { padding-block: var(--fp-section-y); }
.wc-main .container { max-width: 1080px; }                         /* keep WC pages from feeling sparse */
.wc-main h1, .wc-main h2, .wc-main h3 { color: var(--fp-ink); }
.woocommerce h2 { font-family: var(--fp-serif); font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 var(--fp-gap-title); }
.woocommerce-breadcrumb { font-size: 13px; color: var(--fp-muted); margin-bottom: var(--fp-gap); }
.woocommerce-breadcrumb a { color: var(--fp-primary); }

/* Brand fields — beat WooCommerce's own input styles */
.woocommerce .input-text,
.woocommerce input[type="text"], .woocommerce input[type="email"], .woocommerce input[type="tel"],
.woocommerce input[type="password"], .woocommerce input[type="number"], .woocommerce textarea,
.woocommerce select, .woocommerce .select2-selection {
	/* !important: override WooCommerce's own field CSS (loads after the theme). */
	background: var(--fp-chip-bg) !important; border: 1px solid var(--fp-border) !important;
	border-radius: var(--fp-radius-lg) !important; padding: 16px 20px !important;
	color: var(--fp-ink); width: 100%; box-shadow: none; min-height: 0;
}
.woocommerce form .form-row { margin: 0 0 20px; padding: 0; }
.woocommerce form .form-row label { display: block; margin-bottom: var(--fp-gap-micro); font-size: 14px; font-weight: 600; color: var(--fp-primary); }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
	border: 1px solid var(--fp-border); border-left: 3px solid var(--fp-primary);
	border-radius: var(--fp-radius); background: var(--fp-chip-bg); color: var(--fp-ink);
	padding: 15px 20px; margin: 0 0 var(--fp-gap); list-style: none; font-size: 15px;
}
.woocommerce-error { border-left-color: #b4534a; }
.woocommerce-message .button, .woocommerce-info .button { float: none; margin-left: 15px; }

/* My account — sidebar nav (left) + content (right) when logged in; logged-out = centred login card */
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: var(--fp-gap-xl, 50px); row-gap: var(--fp-gap); align-items: start; }
.woocommerce-account .woocommerce:not(:has(.woocommerce-MyAccount-navigation)) { max-width: 480px; margin-inline: auto; }
.woocommerce-account:not(.logged-in) .woocommerce > h2 { display: none; }   /* drop WC's "Login" form heading */
/* Notices span the full width; nav left, content right. */
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-account .woocommerce-MyAccount-navigation { grid-column: 1; width: auto; float: none; }
.woocommerce-account .woocommerce-MyAccount-content { grid-column: 2; width: auto; float: none; min-width: 0; }

/* Sidebar nav as a card */
.woocommerce-MyAccount-navigation { background: var(--fp-raised); border: 1px solid var(--fp-card-border); border-radius: var(--fp-radius-lg); box-shadow: var(--fp-card-shadow); padding: 10px; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 10px 15px; border-radius: var(--fp-radius); font-weight: 600; font-size: 15px; color: var(--fp-ink); text-decoration: none !important; white-space: nowrap; }
.woocommerce-MyAccount-navigation li.is-active a, .woocommerce-MyAccount-navigation li a:hover { background: var(--fp-chip-bg); color: var(--fp-primary); }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 5px; padding-top: 10px; border-top: 1px solid var(--fp-line); }

/* Account dashboard content — flex column guarantees a consistent vertical rhythm */
.fp-account-dash { display: flex; flex-direction: column; gap: 25px; }
.fp-account-dash__head { display: flex; flex-direction: column; gap: 10px; }
.fp-account-dash__greeting { font-family: var(--fp-serif); font-size: clamp(28px, 3vw, 38px); margin: 0; color: var(--fp-ink); }
.fp-account-dash__intro { color: var(--fp-muted); margin: 0; }
.fp-account-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; margin: 0; }
.fp-account-card { display: flex; flex-direction: column; gap: 5px; padding: 25px; background: var(--fp-raised); border: 1px solid var(--fp-card-border); border-radius: var(--fp-radius-lg); box-shadow: var(--fp-card-shadow); text-decoration: none !important; color: var(--fp-ink); transition: transform .15s ease, box-shadow .15s ease; }
.fp-account-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,0.08); }
.fp-account-card__title { font-family: var(--fp-serif); font-size: 22px; color: var(--fp-ink); }
.fp-account-card__desc { font-size: 14px; color: var(--fp-muted); line-height: 1.6; }
.fp-account-card__arrow { color: var(--fp-primary); margin-top: auto; }
.fp-account-dash__foot { font-size: 14px; color: var(--fp-muted); margin: 0; }
.fp-account-dash__foot a { color: var(--fp-primary); }

/* Account — Addresses as two cards (override WC's float / 48% width) */
.woocommerce-account .woocommerce-MyAccount-content > p:first-child { margin: 0 0 var(--fp-gap); color: var(--fp-muted); }
/* WC adds clearfix ::before/::after with content " " — they become stray grid items. */
.woocommerce-account .woocommerce-Addresses::before, .woocommerce-account .woocommerce-Addresses::after { display: none !important; }
.woocommerce-account .woocommerce-Address { float: none !important; width: auto !important; margin: 0 !important; display: flex; flex-direction: column; gap: 10px; background: var(--fp-raised); border: 1px solid var(--fp-card-border); border-radius: var(--fp-radius-lg); box-shadow: var(--fp-card-shadow); padding: 25px; }
/* display:contents lets the h2, address and edit link be ordered as one column. */
.woocommerce-account .woocommerce-Address-title { display: contents; }
.woocommerce-account .woocommerce-Address-title h2, .woocommerce-account .woocommerce-Address-title h3 { order: 0; font-family: var(--fp-serif); font-size: 22px; margin: 0; }
.woocommerce-account .woocommerce-Address address { order: 1; font-style: normal; color: var(--fp-muted); line-height: 1.7; margin: 0; }
.woocommerce-account .woocommerce-Address-title .edit { order: 2; align-self: flex-start; margin-top: 5px; float: none !important; padding: 10px 20px; border: 1px solid var(--fp-line); border-radius: var(--fp-radius-pill); font-size: 14px; font-weight: 600; color: var(--fp-ink); text-decoration: none !important; transition: border-color .15s ease, background .15s ease; }
.woocommerce-account .woocommerce-Address-title .edit:hover { background: var(--fp-primary-dark); color: var(--fp-inverse); border-color: var(--fp-primary-dark); }

/* Account — Account details password-change fieldset as a clean panel */
.woocommerce-EditAccountForm fieldset { border: 1px solid var(--fp-card-border); border-radius: var(--fp-radius-lg); padding: 25px; margin: 25px 0; }
.woocommerce-EditAccountForm legend { padding: 0 10px; font-weight: 600; font-size: 15px; color: var(--fp-ink); }
.woocommerce-EditAccountForm fieldset .form-row:last-child { margin-bottom: 0; }
/* Field helper text (e.g. Display name note) — spaced muted caption, not tight ink text */
.woocommerce-EditAccountForm span[id$="_description"], .woocommerce-EditAccountForm span[id$="_description"] em { display: block; margin-top: 10px; font-size: 13px; font-style: normal !important; color: var(--fp-muted); line-height: 1.5; }
.woocommerce-EditAccountForm span[id$="_description"] em { margin-top: 0; }

/* Order / customer-details address — drop WC phone & email icon glyphs, even spacing */
.woocommerce-customer-details address { font-style: normal; line-height: 1.8; color: var(--fp-muted); border: 1px solid var(--fp-card-border); border-radius: var(--fp-radius-lg); padding: 25px; }
.woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce-customer-details .woocommerce-customer-details--email { margin: 0 !important; padding-left: 0 !important; text-indent: 0; }
.woocommerce-customer-details .woocommerce-customer-details--phone::before,
.woocommerce-customer-details .woocommerce-customer-details--email::before { display: none !important; content: "" !important; }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.woocommerce-form-login {
	background: var(--fp-raised); border: 1px solid var(--fp-card-border); border-radius: var(--fp-radius-lg);
	box-shadow: var(--fp-card-shadow); padding: var(--fp-card-pad); margin: 0;
}
.woocommerce form.login .form-row, .woocommerce-form-login .form-row { padding: 0; }
.woocommerce-form-login__rememberme { font-size: 14px; }

/* Checkout */
.woocommerce .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: var(--fp-gap-lg); width: 100%; float: none; }
.woocommerce #order_review, .woocommerce .cart_totals {
	background: var(--fp-raised); border: 1px solid var(--fp-card-border); border-radius: var(--fp-radius-lg);
	box-shadow: var(--fp-card-shadow); padding: var(--fp-card-pad);
}
#order_review_heading { margin-top: var(--fp-gap); }

/* Cart */
.woocommerce table.shop_table { border: 1px solid var(--fp-border); border-radius: var(--fp-radius-lg); border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--fp-raised); }
.woocommerce table.shop_table th { background: var(--fp-chip-bg); font-family: var(--fp-sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--fp-muted); padding: 15px; text-align: left; }
.woocommerce table.shop_table td { padding: 16px 15px; border-top: 1px solid var(--fp-line); vertical-align: middle; }
.woocommerce-cart-form table.shop_table tr.cart_item td { background: transparent !important; }   /* kill WC zebra striping */
.woocommerce-cart-form td.product-name { width: 40%; }
.woocommerce-cart-form td.product-name a { text-decoration: none; color: var(--fp-ink); font-weight: 600; }
.woocommerce-cart-form__cart-item td.product-thumbnail { width: 80px; }
.woocommerce-cart-form__cart-item .product-thumbnail img { width: 64px !important; max-width: none !important; height: 64px; object-fit: cover; border-radius: var(--fp-radius-sm); display: block; }
.woocommerce-cart-form td.product-remove a.remove { text-decoration: none; color: var(--fp-muted); font-size: 20px; line-height: 1; }
.woocommerce-cart-form td.product-remove a.remove:hover { color: #b4534a; }
/* Cart layout — items table (left) + totals card (right sidebar), no float */
.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--fp-gap-lg); align-items: start; }
/* Everything except the cart form + totals spans the full width (incl. empty-cart state) */
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce > .woocommerce-message,
.woocommerce-cart .woocommerce > .woocommerce-info,
.woocommerce-cart .woocommerce > .cart-empty,
.woocommerce-cart .woocommerce > .wc-empty-cart-message,
.woocommerce-cart .woocommerce > .return-to-shop { grid-column: 1 / -1; }
.woocommerce-cart form.woocommerce-cart-form { grid-column: 1; margin: 0; }
.woocommerce .cart-collaterals { grid-column: 2; width: auto; margin: 0; float: none; }
.woocommerce .cart-collaterals .cart_totals { width: 100%; max-width: none; margin: 0; }
.woocommerce .cart_totals h2 { font-family: var(--fp-serif); }
.woocommerce .cart_totals table th, .woocommerce .cart_totals table td,
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { vertical-align: middle !important; padding: 16px 15px !important; line-height: 1.2; }
.woocommerce .wc-proceed-to-checkout { margin-top: var(--fp-gap-title); }

/* Empty cart — plain centred serif line, no notice chrome */
.woocommerce .cart-empty, .wc-empty-cart-message {
	font-family: var(--fp-serif); font-size: clamp(26px, 3vw, 38px); color: var(--fp-ink);
	text-align: center; margin: 0 0 var(--fp-gap);
	background: none; border: 0; padding: 0;
}
.woocommerce .return-to-shop { text-align: center; }

/* WC's accent "alt" buttons (Proceed to checkout / Place order) → brand sage */
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce #respond input#submit.alt, .woocommerce #place_order, .woocommerce .checkout-button {
	background: var(--fp-primary); color: var(--fp-inverse);
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
.woocommerce #place_order:hover, .woocommerce .checkout-button:hover { background: var(--fp-primary-dark); color: var(--fp-inverse); }

/* Quantity field — small, not the full-size cream pill */
.woocommerce .quantity .qty { width: 76px !important; padding: 10px !important; text-align: center; border-radius: var(--fp-radius-sm) !important; }
/* Coupon input — sensible width */
.woocommerce .coupon .input-text { width: auto !important; min-width: 180px; border-radius: var(--fp-radius-pill) !important; padding: 15px 25px !important; line-height: 1.2 !important; }

/* Hide WooCommerce's icon-font ::before glyphs on notices (render as boxes without the WC font) */
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before, .cart-empty::before { content: none !important; }

/* Checkout — billing + order notes on the left, order summary as a sidebar on the right */
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto auto 1fr; column-gap: var(--fp-gap-xl, 50px); row-gap: 0; align-items: start; }
/* Left column spans all rows; the empty 1fr row absorbs its extra height so the
   summary heading + card hug the top of the right column (no distributed gap). */
.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / 4; max-width: none; }
.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0 0 var(--fp-gap-title); }
.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; }
/* Billing and Additional info stack full-width within the left column. */
.woocommerce-checkout .col2-set { display: block; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { float: none; width: 100%; }
.woocommerce-checkout .woocommerce-additional-fields { margin-top: var(--fp-gap); }
/* Payment area — drop WooCommerce's grey/lavender panel; full-width Place order. */
.woocommerce-checkout #payment { background: transparent; border-radius: 0; padding: 0; margin-top: var(--fp-gap); }
.woocommerce-checkout #payment .place-order { padding: 0; margin: 0; }
.woocommerce-checkout #payment .woocommerce-privacy-policy-text { font-size: 13px; line-height: 1.6; color: var(--fp-muted); margin: var(--fp-gap-title) 0; }
.woocommerce-checkout #payment .woocommerce-privacy-policy-text p { margin: 0; }
.woocommerce-checkout #place_order { width: 100%; }
.woocommerce form .form-row-first { float: left; width: calc(50% - 10px); }
.woocommerce form .form-row-last { float: right; width: calc(50% - 10px); }
.woocommerce form .form-row-wide, .woocommerce form .clear { clear: both; }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Single universal breakpoint: tablet & mobile share one layout at 1024px and below. */
@media (max-width: 1024px) {
	/* Header → logo left, round basket + burger icons right, search full-width below */
	.fp-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 0; padding-block: 15px; }
	.fp-brand { order: 1; margin-right: auto; }
	.fp-header__actions { order: 2; gap: 10px; }
	.fp-header__action span:not(.fp-header__count) { display: none; }  /* icon-only (keep the basket count badge) */
	.fp-header__action { padding: 0; width: 44px; height: 44px; border-radius: 50%; justify-content: center; }
	.fp-burger { order: 3; display: flex; width: 44px; height: 44px; background: var(--fp-base); border: 1px solid var(--fp-olive); border-radius: 50%; align-items: center; justify-content: center; padding: 0; }
	.fp-search { order: 4; flex-basis: 100%; max-width: none; }
	.fp-nav { order: 5; flex-basis: 100%; display: none; border-top: 1px solid var(--fp-line); padding-top: 10px; margin-top: 5px; }
	.fp-nav.is-open { display: block; }
	.fp-nav__list { flex-direction: column; align-items: flex-start; gap: 5px; }
	.fp-mega { display: none; }   /* desktop-only; mobile uses the burger menu */

	/* Mobile drawer — fixed below the header (header stays put, on top) */
	.fp-mobile-menu.is-open {
		display: block;
		position: fixed; top: var(--fp-header-h, 192px); left: 0; right: 0; bottom: 0;
		background: var(--fp-base);
		overflow-y: auto; -webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		z-index: 45;
	}
	.fp-mobile-menu__inner { padding-block: 25px 50px; }
	.fp-mobile-menu__genders .fp-btn { flex: 1 1 0; width: auto; min-width: 0; padding-inline: 10px; }

	/* Shop → single column; filters open as an off-canvas drawer */
	.fp-shop__layout { grid-template-columns: 1fr; }
	/* Fluid grid (no second breakpoint): 1 column on phones, 2–3 as width allows. */
	.fp-shop__grid { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
	/* Wider landscape product image on mobile/tablet (matches the shop design). */
	.fp-shop__grid .fp-product-card__media { aspect-ratio: 342 / 190; }

	/* Toolbar → stacked: count, [Filters][Sort] row, active-filter summary */
	.fp-shop__toolbar { flex-direction: column; align-items: stretch; gap: 15px; padding: 20px 20px; }
	.fp-shop__count { white-space: normal; }
	.fp-shop__chips { display: none; }
	.fp-shop__controls { margin-left: 0; display: flex; gap: 10px; }
	.fp-shop__filter-toggle { flex: 1 1 0; justify-content: center; }
	.fp-shop__sort { flex: 1 1 0; height: 46px; justify-content: center; }
	.fp-shop__summary { display: block; margin: 0; font-size: 14px; color: var(--fp-muted); }

	/* Pagination → "Load more" button on mobile */
	.fp-shop .fp-pagination { justify-content: center; }
	.fp-pagination__nums { display: none; }
	.fp-pagination__more { display: inline-flex; }

	.fp-shop__filter-toggle {
		display: inline-flex; align-items: center; gap: 5px; height: 46px;
		padding: 0 20px; border: 1px solid var(--fp-border); border-radius: var(--fp-radius-pill);
		background: var(--fp-raised); color: var(--fp-ink); font-weight: 600; font-size: 14px; cursor: pointer;
	}
	.fp-shop__filter-badge { color: var(--fp-primary); font-weight: 600; }

	/* Mobile filters — full-screen white panel sitting directly under the sticky header. */
	.fp-filters { display: none; }
	.fp-filters.is-open {
		display: flex; flex-direction: column;
		position: fixed; inset: 0; z-index: 100;                    /* true full screen, over the header */
		background: var(--fp-raised);
		padding: 0; border: 0; border-radius: 0;
		overscroll-behavior: contain;
	}
	.fp-filters.is-open .fp-filters__form {
		flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
		margin: 0; padding: 0 var(--fp-gutter) 25px;
		background: transparent; border: 0; border-radius: 0;
	}
	/* Sticky full-width top bar with title + close */
	.fp-filters.is-open .fp-filters__head {
		position: sticky; top: 0; z-index: 2;
		display: flex; align-items: center; justify-content: space-between; gap: 15px;
		margin: 0 calc(-1 * var(--fp-gutter)) 25px; padding: 15px var(--fp-gutter);
		border-bottom: 1px solid var(--fp-line); background: var(--fp-raised);
	}
	.fp-filters.is-open .fp-filters__note { display: none; }        /* keep the bar compact */
	.fp-filters.is-open .fp-filters__close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--fp-olive); border-radius: 50%; background: var(--fp-base); color: var(--fp-ink); }
	.fp-filters__footer { display: flex; gap: 10px; padding: 15px var(--fp-gutter) calc(15px + env(safe-area-inset-bottom)); border-top: 1px solid var(--fp-line); background: var(--fp-raised); }
	.fp-filters__footer .fp-btn { flex: 1 1 0; width: auto; }
	body.fp-filters-open { overflow: hidden; }
	/* Keep the drawer clear of the WP admin bar when logged in (visitors never see it). */
	.admin-bar .fp-filters.is-open { top: 46px; }

	/* Drawer-only refinements to match node 422:32 */
	.fp-filters.is-open .fp-filter-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
	.fp-filters.is-open .fp-chip span { width: 100%; min-width: 0; height: 46px; border-radius: var(--fp-radius-pill); font-size: 15px; }
	.fp-filters.is-open .fp-check__dot { background: var(--fp-border); border: 0; }
	.fp-filters.is-open .fp-check input:checked + .fp-check__dot { background: var(--fp-primary); box-shadow: none; }

	/* Sections stack */
	.fp-hero { min-height: clamp(440px, 70vh, 560px); background-position: center 30%; }
	.fp-hero__content { max-width: none; }   /* let content + full-width CTA fill on mobile */

	/* 50/50 split stacks: copy on top, full-width image band below. */
	.fp-hero--split { min-height: 0; flex-direction: column; align-items: stretch; }
	.fp-hero--split .fp-hero__inner { padding-block: clamp(28px, 7vw, 40px); }
	.fp-hero--split .fp-hero__content { max-width: none; }
	.fp-hero__media { position: relative; width: 100%; height: clamp(300px, 44vh, 380px); }

	/* About page → single column, image on top of each row. */
	.fp-about-hero__inner,
	.fp-textmedia__inner { grid-template-columns: 1fr; gap: 30px; }
	.fp-textmedia--reverse .fp-textmedia__media { order: 0; }
	.fp-about-hero__copy { max-width: none; }
	.fp-about-hero__media { aspect-ratio: 5 / 4; }

	/* Contact → stack info above form. */
	.fp-split-hero__inner { grid-template-columns: 1fr; gap: 30px; }
	.fp-split-hero__chips { flex-direction: column; align-items: flex-start; }
	.fp-side-card__foot { flex-direction: column; align-items: stretch; }
	.fp-cmain__grid { grid-template-columns: 1fr; gap: 30px; }
	.fp-faqmain__grid { grid-template-columns: 1fr; gap: 30px; }
	.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) { grid-template-columns: 1fr; gap: 25px; }
	.woocommerce-account .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce-MyAccount-content { grid-column: 1; }
	/* Nav → compact horizontal tab strip (matches the FAQ/shop tab pattern) so content flows naturally below. */
	.woocommerce-account .woocommerce-MyAccount-navigation { padding: 10px; min-width: 0; overflow: hidden; }
	.woocommerce-MyAccount-navigation ul { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 5px; scrollbar-width: none; }
	.woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
	.woocommerce-MyAccount-navigation li a { white-space: nowrap; padding: 10px 15px; }
	.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding-top: 0; border-top: 0; }
	/* Dashboard cards stack one per row on mobile. */
	.fp-account-cards { grid-template-columns: 1fr; }
	.woocommerce-cart .woocommerce { grid-template-columns: 1fr; gap: 30px; }
	.woocommerce-cart form.woocommerce-cart-form,
	.woocommerce-cart .cart-collaterals { grid-column: 1 / -1; }

	/* At the universal 1024 breakpoint each cart line becomes a compact card:
	   [thumbnail] [name + price + qty]  with remove × top-right and line total.
	   Scoped to the cart form so the Cart-totals table keeps its own layout. */
	.woocommerce-cart-form table.shop_table,
	.woocommerce-cart-form table.shop_table tbody { display: block; }
	.woocommerce-cart-form table.shop_table thead { display: none; }
	.woocommerce-cart-form table.shop_table tbody tr { display: block; }
	.woocommerce-cart-form table.shop_table tbody tr.cart_item {
		position: relative;
		display: grid;
		grid-template-columns: 72px 1fr auto;
		grid-template-areas:
			"thumb name  name"
			"thumb price qty";
		column-gap: 15px; row-gap: 10px; align-items: center;
		padding: 20px; border-bottom: 1px solid var(--fp-line);
	}
	/* !important throughout: WooCommerce's own ≤768 responsive-cart CSS uses text-align:right!important
	   and sizes these cells; we override to drive our card layout. */
	.woocommerce-cart-form table.shop_table td { display: block; border: 0 !important; padding: 0 !important; text-align: left !important; }
	.woocommerce-cart-form table.shop_table td::before { display: none; }           /* clean card — no inline field labels */
	.woocommerce-cart-form table.shop_table td.product-thumbnail { grid-area: thumb; align-self: center; display: block !important; }
	.woocommerce-cart-form table.shop_table td.product-thumbnail a { display: block !important; width: 72px !important; height: 72px !important; }
	.woocommerce-cart-form table.shop_table td.product-thumbnail img { width: 72px !important; height: 72px !important; min-width: 0; object-fit: cover; border-radius: var(--fp-radius); display: block; }
	.woocommerce-cart-form table.shop_table td.product-name { grid-area: name; width: auto; padding-right: 35px !important; font-weight: 600; font-size: 16px; text-align: left !important; }
	.woocommerce-cart-form table.shop_table td.product-name a { text-decoration: none; color: var(--fp-ink); }
	.woocommerce-cart-form table.shop_table td.product-price { display: none; }      /* redundant with line total at qty 1 */
	.woocommerce-cart-form table.shop_table td.product-quantity { grid-area: qty; text-align: right !important; }
	.woocommerce-cart-form table.shop_table td.product-subtotal { grid-area: price; align-self: center; text-align: left !important; font-weight: 400; font-size: 15px; color: var(--fp-ink); }
	.woocommerce-cart-form table.shop_table td.product-remove { position: absolute; top: 20px; right: 20px; text-align: right !important; }
	.woocommerce-cart-form table.shop_table td.product-remove::before { display: none; }
	.woocommerce-cart-form table.shop_table td.product-remove a.remove {
		text-decoration: none; font-size: 20px; line-height: 1; width: 28px; height: 28px;
		display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
		color: var(--fp-muted); background: var(--fp-chip-bg);
	}
	.woocommerce-cart-form table.shop_table td.product-remove a.remove:hover { color: #fff; background: #b4534a; }
	.woocommerce-cart-form table.shop_table td.actions::before { display: none; }

	/* Actions toolbar — coupon input grows to fill, buttons sit inline and wrap on phones. */
	.woocommerce .cart td.actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px !important; }
	.woocommerce .cart td.actions .coupon { display: flex; flex-direction: column; flex: 1 1 100%; gap: 10px; float: none; margin: 0; }
	.woocommerce .cart td.actions .coupon .input-text { width: 100% !important; min-width: 0; }
	.woocommerce .cart td.actions .coupon .button { width: 100% !important; white-space: nowrap; }
	.woocommerce .cart td.actions button[name="update_cart"] { flex: 1 1 100%; width: 100%; float: none; margin: 0; }
	.woocommerce .col2-set { grid-template-columns: 1fr; gap: 30px; }
	/* Checkout stacks: billing → notes → order summary. */
	.woocommerce-checkout form.checkout { grid-template-columns: 1fr; gap: 30px; }
	.woocommerce-checkout #customer_details,
	.woocommerce-checkout #order_review_heading,
	.woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
	.woocommerce-checkout #order_review_heading { margin-top: 10px; }
	/* Empty-state notices (no orders / no downloads / added to cart) — stack text then full-width button with a gap. */
	.woocommerce-message, .woocommerce-info { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
	.woocommerce-message .button, .woocommerce-info .button { margin: 0; }
	/* Topic tabs → single-row edge-bleed slider on mobile. */
	.fp-faqmain__tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		cursor: grab;
		width: 100vw;
		margin-inline: calc(50% - 50vw);
		padding-inline: var(--fp-gutter);
		scroll-padding-inline: var(--fp-gutter);
	}
	.fp-faqmain__tabs::-webkit-scrollbar { display: none; }
	.fp-faq-tab { flex: 0 0 auto; }
	.fp-hero__overlay { background: linear-gradient(180deg, rgba(38,40,30,.35) 0%, rgba(38,40,30,.78) 100%); }
	.fp-footer__inner { grid-template-columns: 1fr; }
	.fp-footer__cols { grid-template-columns: 1fr; gap: 30px; }
	.fp-gcards { grid-template-columns: 1fr; }
	.fp-benefits { grid-template-columns: 1fr; }

	/* Featured products + PDP related become the same edge-bleed swipe slider as the categories. */
	.fp-products,
	.fp-pdp__related-grid {
		display: flex;
		grid-template-columns: none;
		gap: var(--fp-gap);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		cursor: grab;
		width: 100vw;
		margin-inline: calc(50% - 50vw);
		padding-inline: var(--fp-gutter);
		scroll-padding-inline: var(--fp-gutter);
	}
	.fp-products::-webkit-scrollbar,
	.fp-pdp__related-grid::-webkit-scrollbar { display: none; }
	.fp-products .fp-product-card,
	.fp-pdp__related-grid .fp-product-card { flex: 0 0 78%; max-width: 320px; scroll-snap-align: start; }
	.fp-product-card:hover { transform: none; box-shadow: none; }
	.fp-cards { grid-template-columns: 1fr 1fr; }
	.fp-card { min-height: 220px; }
	.fp-deliver__inner { grid-template-columns: 1fr; gap: var(--fp-gap); }
	.fp-help__inner { grid-template-columns: 1fr; gap: var(--fp-gap); }
	/* Universal: CTA buttons span full width on mobile (fill their container). */
	.fp-btn,
	.wp-element-button, .wp-block-button__link,
	.woocommerce a.button, .woocommerce button.button, .woocommerce .button, .woocommerce input.button {
		width: 100%;
		justify-content: center;
	}
	.fp-help__actions { flex-direction: column; align-items: stretch; gap: 10px; }
	.fp-gcard__btn { align-self: stretch; }

	/* Top bar rotates one announcement at a time on phones/small tablets. */
	.fp-topbar__inner { position: relative; justify-content: center; min-height: 40px; }
	.fp-topbar__item { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity .5s ease; white-space: nowrap; pointer-events: none; }
	.fp-topbar__item:first-child { opacity: 1; }                              /* no-JS / reduced-motion fallback */
	.fp-topbar__inner.js-active .fp-topbar__item:first-child { opacity: 0; }
	.fp-topbar__inner.js-active .fp-topbar__item.is-active { opacity: 1; }

	/* Category slider bleeds to the screen edges; gutter padding keeps the
	   first item aligned to the content and lets items peek off both sides. */
	.fp-cats {
		width: 100vw;
		margin-inline: calc(50% - 50vw);
		padding-inline: var(--fp-gutter);
		scroll-padding-inline: var(--fp-gutter);
		justify-content: flex-start;
	}

	/* PDP → single column; gallery main on top, thumbs as a row beneath. */
	.fp-pdp__top { grid-template-columns: 1fr; gap: 30px; }
	.fp-pdp__gallery { grid-template-columns: 1fr; }
	.fp-pdp__gallery .fp-pdp__thumbs { flex-direction: row; order: 2; gap: 10px; }
	.fp-pdp__thumb { width: auto; flex: 1 1 0; aspect-ratio: 106 / 90; }
	.fp-pdp__main { order: 1; aspect-ratio: 19 / 20; }
	.fp-pdp__support { grid-template-columns: 1fr; gap: 15px; margin-top: 30px; }
	.fp-pdp__title-row { gap: 15px; }
	.fp-pdp__add { min-width: 0; }
}
