/*
Theme Name: FairyFlower-Custom
Theme URI:
Author:
Author URI:
Description: A lightweight, mobile-first WordPress theme built around the SiteOrigin Page Builder, with optional WooCommerce support and a card-based cart. Clean code, SEO-friendly markup, fully translation-ready.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fairyflower-custom
Domain Path: /languages
WC requires at least: 7.0
WC tested up to: 9.4
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, e-commerce, full-width-template
*/

/* -------------------------------------------------------------------------
 * Design tokens
 *
 * Every colour, spacing, type, shape, depth, motion and z-index value comes
 * from here. Nothing else should hard-code a colour.
 * ---------------------------------------------------------------------- */
:root {
	/* Layout */
	--ff-content-width: 1140px;
	--ff-content-width-wide: 1200px;
	--ff-page-gutter: 1rem;              /* side padding of the page content */

	/* Spacing scale */
	--ff-space-3xs: .25rem;
	--ff-space-2xs: .5rem;
	--ff-space-xs: .75rem;
	--ff-space-sm: 1rem;
	--ff-space-md: 1.5rem;
	--ff-space-lg: 2rem;
	--ff-space-xl: 3rem;
	--ff-space-2xl: 4.5rem;
	--ff-gap: var(--ff-space-md);

	/* Brand — plum, dusty rose, forest, sage and blush cream (trial palette:
	 * #6B2149 #B56576 #3A5A40 #A3B18A #F2E9E4).
	 * White labels read at 10.8:1 on the plum fill and 12.5:1 on its hover.
	 * The rose only reaches 4.13:1 under white text, so it is used as a tint
	 * (primary-tint*) rather than as a fill that carries small labels. */
	--ff-color-primary: #6b2149;          /* CTA fills, links, sale tags */
	--ff-color-primary-text: #6b2149;     /* links            10.8:1 */
	--ff-color-primary-strong: #5b1c3e;   /* hover deepens to it (plum + 15% black) */
	--ff-color-on-brand: #ffffff;         /* label on any brand fill */
	--ff-color-primary-tint: #f9f3f4;     /* greeting recap, order greeting (rose 8% on white) */
	--ff-color-primary-tint-strong: #f3e6e9; /* call-to-action band (rose 16% on white) */
	--ff-color-ink: #3a5a40;              /* forest: the top bar; white reads at 7.73:1 */
	--ff-color-ink-soft: #a3b18a;         /* sage: icons on the ink fill (3.39:1, graphics only, never text) */
	--ff-color-ink-tint: #ebeee5;         /* sage 22% on white: decorative panels; ink reads at 6.59:1 on it */
	--ff-color-on-ink-muted: #dfe4d6;     /* secondary text on the ink fill: 5.97:1 */

	--ff-color-sale: var(--ff-color-primary);

	/* Aliases: `accent` is the interactive colour throughout the stylesheets. */
	--ff-color-accent: var(--ff-color-primary);
	--ff-color-accent-text: var(--ff-color-primary-text);
	--ff-color-accent-strong: var(--ff-color-primary-strong);
	--ff-color-accent-ink: var(--ff-color-on-brand);

	/* Neutrals */
	--ff-color-text: #2b3135;             /* softened from #1d2327: 13.2:1 on the canvas, 11.0:1 on surface */
	--ff-color-muted: #6b5d62;            /* warm grey: 6.24:1 on the canvas, 5.21:1 on surface */
	--ff-color-bg: #ffffff;               /* canvas */
	--ff-color-panel: #ffffff;            /* cards, drawers, controls */
	--ff-color-surface: #f2e9e4;          /* blush cream: footer, payment box, action rows */
	--ff-color-tint: #e3dbd6;             /* a step deeper: neutral button fills (cream + 6% black) */
	--ff-color-border: #e6ddd9;           /* card framing (cream + 5% black) */
	--ff-color-border-strong: #c9c1bd;    /* outline buttons, chips; also the disabled stepper icon, so it stays neutral */
	--ff-color-on-dark: #ffffff;          /* text on the ink top bar and overlays */

	/* Status */
	--ff-color-success: #3a5a40;          /* forest: 7.73:1 on white, 6.59:1 on its bg */
	--ff-color-success-bg: #ebeee5;       /* sage 22% on white */
	--ff-color-error: #b32d2e;
	--ff-color-error-bg: #fdeaea;
	--ff-color-warning: #8a6d3b;
	--ff-color-info-bg: #eef3fa;
	--ff-color-overlay: rgba(29, 35, 39, .5);
	--ff-color-overlay-strong: rgba(29, 35, 39, .8);

	/* Text over the home photo (variant 2): cream and peach-gold, taken from
	 * the client's banner. */
	--ff-color-hero-text: #fffaf3;
	--ff-color-hero-gold: #e9bd9b;        /* ornament, button border and icon; the button's hover fill */
	--ff-color-hero-bg: #302c29;          /* the shop window's dark: the band under the photo on phones */
	--ff-color-hero-scrim: rgba(36, 31, 28, .72); /* darkens the photo's right side under the text */
	--ff-color-hero-cta-bg: rgba(36, 31, 28, .35);
	--ff-shadow-hero-text: 0 1px 10px rgba(0, 0, 0, .35);

	/* Type */
	--ff-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ff-font-heading: var(--ff-font);    /* swap for the brand's heading face */
	--ff-font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif; /* home photo: headline and button */
	--ff-font-script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive; /* home photo: "Fairy Flower" */
	--ff-text-sm: .85rem;
	--ff-text-lg: 1.125rem;

	/* Shape and depth */
	--ff-radius-sm: 6px;
	--ff-radius: 10px;
	--ff-radius-lg: 14px;
	--ff-shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
	--ff-shadow-md: 0 12px 30px rgba(0, 0, 0, .08);
	--ff-shadow-float: 0 2px 10px rgba(0, 0, 0, .25);
	--ff-shadow-panel: -4px 0 24px rgba(0, 0, 0, .15);
	--ff-shadow-bar: 0 -4px 12px rgba(0, 0, 0, .06);

	/* Motion */
	--ff-transition: .3s ease;
	--ff-transition-fast: .15s ease;

	/* Stacking order */
	--ff-z-sticky: 20;
	--ff-z-menu: 50;
	--ff-z-skiplink: 100000;
	--ff-z-drawer: 100001;
	--ff-z-lightbox: 100002;
}

/* -------------------------------------------------------------------------
 * Fonts (assets/fonts, SIL Open Font License; the licences sit beside them)
 *
 * Only the text over the home photo uses them. A browser downloads a web font
 * only when text on the page needs it, so other pages never load these;
 * inc/enqueue.php preloads them where the layout has that text.
 * ---------------------------------------------------------------------- */
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Pinyon Script";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/pinyon-script-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -------------------------------------------------------------------------
 * Reset-ish (minimal, mobile-first)
 * ---------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--ff-font);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--ff-color-text);
	background: var(--ff-color-bg);
	-webkit-text-size-adjust: 100%;
}

img,
svg,
video,
iframe { max-width: 100%; height: auto; }

a { color: var(--ff-color-accent-text); }

h1, h2, h3, h4, h5, h6 { font-family: var(--ff-font-heading); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.25rem; }

p, ul, ol, figure, table, pre { margin: 0 0 1rem; }

button,
input,
select,
textarea { font: inherit; }

/* Accessibility helper used by header/footer/template parts. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--ff-color-panel);
	clip: auto !important;
	clip-path: none;
	color: var(--ff-color-text);
	display: block;
	font-size: 1rem;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 12px 18px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: var(--ff-z-skiplink);
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 5px; top: 5px; }

/* -------------------------------------------------------------------------
 * Layout
 * ---------------------------------------------------------------------- */
.site { display: flex; flex-direction: column; min-height: 100vh; }
/* Clipped sideways so a full-width photo (.ff-banner, 100vw wide) never adds
 * a horizontal scroll where the vertical scrollbar takes up width. `clip`
 * rather than `hidden`, which would make this a scroll container and stop
 * position: sticky inside it. */
.site-content { flex: 1 0 auto; overflow-x: clip; }

.content-area {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ff-gap);
	margin-inline: auto;
	padding: 2rem 1rem;
}
.content-area--full { max-width: var(--ff-content-width-wide); }
.content-area--has-sidebar { max-width: var(--ff-content-width); }
.content-area .primary { flex: 1 1 100%; min-width: 0; }
#secondary { flex: 1 1 100%; min-width: 0; }

@media (min-width: 60em) {
	.content-area--has-sidebar .primary { flex: 1 1 0; }
	.content-area--has-sidebar #secondary { flex: 0 1 18rem; }
}

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */
.site-header {
	border-bottom: 1px solid var(--ff-color-border);
	background: var(--ff-color-bg);
}
.site-header__inner {
	max-width: var(--ff-content-width-wide);
	margin-inline: auto;
	padding: 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
/* Anchors the title/tagline when core hides them behind a logo (position:
 * absolute + clip-path); otherwise the tagline's width: 100% spans the page. */
.site-branding { position: relative; }
.site-title { margin: 0; font-size: 1.4rem; }
.site-title a { text-decoration: none; color: inherit; }
.site-description { margin: 0; color: var(--ff-color-muted); font-size: .9rem; width: 100%; }
/* Fixed height, width from the image's ratio (the uploaded file is far larger).
 * .site-branding outranks WooCommerce's `.woocommerce-page img { height: auto }`. */
.site-branding .custom-logo { display: block; width: auto; height: 64px; }

/* -------------------------------------------------------------------------
 * Navigation (mobile-first: hidden behind a toggle, expands on desktop)
 * ---------------------------------------------------------------------- */
.main-navigation { position: relative; margin-left: auto; }
.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-height: 44px;
	min-width: 44px;
	padding: .5rem .75rem;
	border-radius: var(--ff-radius);
	cursor: pointer;
}
.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	position: relative;
}
.menu-toggle__bar::before,
.menu-toggle__bar::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bar::before { top: -6px; }
.menu-toggle__bar::after { top: 6px; }

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: none;
}
.main-navigation.is-open ul {
	display: block;
	position: absolute;
	right: 0;
	top: calc(100% + .5rem);
	min-width: 12rem;
	background: var(--ff-color-bg);
	border: 1px solid var(--ff-color-border);
	border-radius: var(--ff-radius);
	box-shadow: var(--ff-shadow-md);
	z-index: var(--ff-z-menu);
}
.main-navigation li { border-bottom: 1px solid var(--ff-color-border); }
.main-navigation li:last-child { border-bottom: 0; }
.main-navigation a {
	display: block;
	padding: .75rem 1rem;
	min-height: 44px;
	text-decoration: none;
	color: inherit;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--ff-color-accent); }

@media (min-width: 48em) {
	.menu-toggle { display: none; }
	.main-navigation ul,
	.main-navigation.is-open ul {
		display: flex;
		position: static;
		min-width: 0;
		border: 0;
		box-shadow: none;
		gap: .25rem;
		background: transparent;
	}
	.main-navigation li { border: 0; }
	.main-navigation a { padding: .5rem .75rem; min-height: 0; }
}

/* -------------------------------------------------------------------------
 * Top bar (thin utility strip above the header)
 * ---------------------------------------------------------------------- */
.site-topbar {
	background: var(--ff-color-ink);
	color: var(--ff-color-on-dark);
	font-size: .85rem;
}
.site-topbar a { color: inherit; }
.site-topbar__inner {
	max-width: var(--ff-content-width-wide);
	margin-inline: auto;
	padding: .4rem 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .25rem 1.25rem;
}
.site-topbar__contact,
.site-topbar__links {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.topbar-link {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	min-height: 32px;
	text-decoration: none;
}
.topbar-link:hover,
.topbar-link:focus { color: var(--ff-color-accent); }
.topbar-link .ff-icon { width: 18px; height: 18px; flex: none; }

/* -------------------------------------------------------------------------
 * Header cart
 * ---------------------------------------------------------------------- */
.site-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin-left: auto;
	color: inherit;
	text-decoration: none;
}
/* When the nav is present it already claims the free space, so the cart
   sits right beside it rather than across the row. */
.main-navigation + .site-cart { margin-left: 0; }
.site-cart:hover,
.site-cart:focus { color: var(--ff-color-accent); }
.site-cart .ff-icon { width: 26px; height: 26px; }
.site-cart__count {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--ff-color-accent);
	color: var(--ff-color-accent-ink);
	font-size: .7rem;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}
.site-cart__count.is-empty { display: none; }

/* -------------------------------------------------------------------------
 * Mobile layout: hamburger (left) | logo (center) | cart (right),
 * and a compact single-line, icons-only top bar.
 * ---------------------------------------------------------------------- */
@media (max-width: 47.99em) {
	.site-header__inner {
		flex-wrap: nowrap;
		gap: .5rem;
	}
	.main-navigation {
		order: 1;
		margin-left: 0;
		flex: 0 0 auto;
	}
	.main-navigation.is-open ul {
		left: 0;
		right: auto;
	}
	.site-branding {
		order: 2;
		flex: 1 1 auto;
		min-width: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
	}
	.site-branding .site-title { font-size: 1.2rem; }
	.site-description { display: none; }
	.site-branding .custom-logo { height: 48px; }
	.site-cart {
		order: 3;
		margin-left: 0;
		flex: 0 0 auto;
	}

	/* Top bar: keep it to one line and show icons only. */
	.site-topbar__inner {
		flex-wrap: nowrap;
		gap: .75rem;
	}
	.site-topbar__contact,
	.site-topbar__links { gap: .9rem; }
	.topbar-link span:not(.screen-reader-text) { display: none; }
}

/* -------------------------------------------------------------------------
 * Content / posts
 * ---------------------------------------------------------------------- */
.page-header { margin-bottom: 1.5rem; }
.page-title { margin: 0; }

article { margin-bottom: 2.5rem; }
.entry-header { margin-bottom: 1rem; }
.entry-title { margin: 0 0 .25rem; }
.entry-title a { text-decoration: none; color: inherit; }
.entry-meta { color: var(--ff-color-muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.entry-footer { color: var(--ff-color-muted); font-size: .9rem; margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.post-thumbnail { display: block; margin-bottom: 1rem; }
.post-thumbnail img { border-radius: var(--ff-radius); width: 100%; object-fit: cover; }
.more-link, .more-link-wrap a {
	display: inline-block;
	margin-top: .5rem;
	font-weight: 600;
	text-decoration: none;
}

.posts-pagination,
.post-navigation { margin-top: 2rem; }
.posts-pagination .nav-links,
.post-navigation .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.posts-pagination a,
.posts-pagination .current,
.post-navigation a {
	display: inline-block;
	padding: .5rem .85rem;
	border: 1px solid var(--ff-color-border);
	border-radius: var(--ff-radius);
	text-decoration: none;
	color: inherit;
}
.posts-pagination .current { background: var(--ff-color-accent); border-color: var(--ff-color-accent); color: var(--ff-color-accent-ink); }

/* -------------------------------------------------------------------------
 * Widgets / sidebar
 * ---------------------------------------------------------------------- */
/* Scoped to the widget areas: Page Builder gives every block in a layout the
 * `widget` class too, and these list rules would rule lines under its items. */
:is(.widget-area, .site-footer__widgets) .widget { margin-bottom: 2rem; }
.widget-title { font-size: 1.1rem; margin-bottom: .75rem; }
:is(.widget-area, .site-footer__widgets) .widget ul { list-style: none; padding: 0; margin: 0; }
:is(.widget-area, .site-footer__widgets) .widget li { padding: .35rem 0; border-bottom: 1px solid var(--ff-color-border); }

/* -------------------------------------------------------------------------
 * Comments
 * ---------------------------------------------------------------------- */
.comments-area { margin-top: 2.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list ol { list-style: none; padding-left: 1.25rem; }
.comment-body { padding: 1rem 0; border-top: 1px solid var(--ff-color-border); }

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */
.site-footer {
	flex-shrink: 0;
	border-top: 1px solid var(--ff-color-border);
	background: var(--ff-color-surface);
}
.site-footer__widgets {
	max-width: var(--ff-content-width-wide);
	margin-inline: auto;
	padding: 2rem 1rem 0;
	display: grid;
	gap: var(--ff-gap);
}
@media (min-width: 48em) {
	.site-footer__widgets { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
}
.footer-navigation { max-width: var(--ff-content-width-wide); margin-inline: auto; padding: 1rem; }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; padding: 0; margin: 0; }
.footer-menu a { text-decoration: none; color: inherit; }
.site-info { max-width: var(--ff-content-width-wide); margin-inline: auto; padding: 1rem; color: var(--ff-color-muted); font-size: .9rem; }

/* -------------------------------------------------------------------------
 * Forms
 * ---------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
	width: 100%;
	max-width: 100%;
	padding: .65rem .75rem;
	border: 1px solid var(--ff-color-border);
	border-radius: var(--ff-radius);
	background: var(--ff-color-panel);
}
button,
input[type="submit"],
.button {
	display: inline-block;
	min-height: 44px;
	padding: .65rem 1.1rem;
	border: 0;
	border-radius: var(--ff-radius);
	background: var(--ff-color-accent);
	background-color: var(--ff-color-accent);
	color: var(--ff-color-accent-ink);
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}
button:hover,
input[type="submit"]:hover,
.button:hover { filter: brightness(.95); }

/* -------------------------------------------------------------------------
 * SiteOrigin Page Builder helper classes used by the bundled home layout
 * (layouts/home.json). Rows, columns and their spacing are Page Builder's;
 * these style the HTML inside the widgets. The product rows (carousels,
 * category tiles) are styled in assets/css/woocommerce.css.
 * ---------------------------------------------------------------------- */

/* Hero: photo (a Media Image widget with the ff-hero-media class) above the
 * text on phones, beside it from Page Builder's 780px breakpoint. */
.ff-eyebrow {
	margin: 0 0 var(--ff-space-2xs);
	color: var(--ff-color-accent-text);
	font-size: var(--ff-text-sm);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.ff-hero-text__title {
	margin: 0 0 var(--ff-space-xs);
	font-size: clamp(1.9rem, 6vw, 3rem);
	line-height: 1.1;
}
.ff-hero-text__lead {
	max-width: 32rem;
	margin: 0 0 var(--ff-space-md);
	color: var(--ff-color-muted);
	font-size: var(--ff-text-lg);
}
/* Buttons share the row and fill it on phones (one button takes the whole
 * width, under the thumb), and keep their own width from 48em. */
.ff-hero-text__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ff-space-xs);
	margin: 0;
}
.ff-hero-text__actions .button {
	flex: 1 1 auto;
	padding-inline: var(--ff-space-lg);
	text-align: center;
}
.ff-hero-media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--ff-radius-lg);
}
@media (min-width: 48em) {
	.ff-hero-text__actions .button { flex: none; }
}

/* A second, quieter button beside the main one: outlined in the accent,
 * filled on hover like the shop cards' buttons. */
.button.ff-button--outline {
	background: transparent;
	color: var(--ff-color-accent-text);
	box-shadow: inset 0 0 0 1px var(--ff-color-accent);
}
.button.ff-button--outline:hover {
	background: var(--ff-color-accent);
	color: var(--ff-color-accent-ink);
	filter: none;
}

/* Delivery promises: three short facts on a cream band. */
.ff-usps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--ff-space-xs);
	margin: 0;
	padding: var(--ff-space-sm) var(--ff-space-xs);
	list-style: none;
	border-radius: var(--ff-radius-lg);
	background: var(--ff-color-surface);
}
.ff-usps li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--ff-space-3xs);
	color: var(--ff-color-muted);
	font-size: .8125rem;
	line-height: 1.3;
	text-align: center;
}
.ff-usps svg { flex: none; width: 24px; height: 24px; fill: var(--ff-color-accent); }
.ff-usps strong { display: block; color: var(--ff-color-text); font-size: .875rem; }
.ff-usps li > span > span { display: block; }
@media (min-width: 48em) {
	.ff-usps { gap: var(--ff-gap); padding: var(--ff-space-md) var(--ff-space-lg); }
	.ff-usps li {
		flex-direction: row;
		align-items: flex-start;
		gap: var(--ff-space-xs);
		font-size: var(--ff-text-sm);
		text-align: start;
	}
	.ff-usps strong { font-size: 1rem; }
}

/* Section heading with an optional "See all" link on the right. */
.ff-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--ff-space-sm);
	margin-bottom: var(--ff-space-sm);
}
.ff-section__title { margin: 0; }
.ff-section__more {
	flex: none;
	color: var(--ff-color-accent-text);
	font-weight: 600;
	text-decoration: none;
}
.ff-section__more:hover { text-decoration: underline; }

/* How it works: numbered steps, stacked on phones, three across from 48em. */
.ff-steps {
	display: grid;
	gap: var(--ff-space-md);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ff-step;
}
/* Number and title share the first row, the text sits under the title. */
.ff-steps li {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr);
	column-gap: var(--ff-space-sm);
	row-gap: .25rem;
	align-content: start;   /* side by side the steps share a height; keep each one packed at the top */
	counter-increment: ff-step;
}
.ff-steps li::before {
	content: counter(ff-step);
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--ff-color-primary-tint-strong);
	color: var(--ff-color-accent-text);
	font-weight: 700;
}
.ff-steps h3 { align-self: center; margin: 0; font-size: 1.05rem; }
.ff-steps p { grid-column: 2; margin: 0; color: var(--ff-color-muted); }
@media (min-width: 48em) {
	.ff-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ff-gap); }
}

/* About: the closing paragraph (the live site's SEO text). */
.ff-about { max-width: 46rem; margin-inline: auto; text-align: center; }
.ff-about h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
.ff-about p { margin: 0; color: var(--ff-color-muted); }

.ff-cta { text-align: center; padding: 2.5rem 1rem; background: var(--ff-color-primary-tint-strong); border-radius: var(--ff-radius); }
.ff-cta h2 { margin-bottom: .5rem; }

/* -------------------------------------------------------------------------
 * Home, variant 2 (layouts/home-alt.json)
 *
 * A full-width photo with the introduction under it, a delivery band, then
 * the same product rows as the first layout plus occasion tiles, the shop's
 * story beside a photo, and an Instagram panel. The top bar's forest green
 * (ink) is the decoration: the band, the occasion tiles, the block behind
 * the story photo and the Instagram panel. Plum stays for what can be
 * pressed.
 * ---------------------------------------------------------------------- */

/* Full-width photo: a Media Image widget with the ff-banner class, widened
 * to the screen's edges. Pick a wide photo (1920px or more) with the subject
 * in the middle: phones show the middle 4:3 of it. As the layout's first
 * row it sits right under the header, over the page's top padding. */
.ff-banner { margin-inline: calc(50% - 50vw); }
.panel-layout > .panel-grid:first-child .ff-banner { margin-top: -2rem; }
.ff-banner img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 60vh;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
@media (min-width: 48em) {
	.ff-banner img { aspect-ratio: 21 / 9; }
}

/* Text over the photo: a Custom HTML widget (.ff-hero-overlay) after the
 * photo in the same cell of the photo's row (row class ff-home-banner).
 * The cell is a grid: below 60em the text is a dark band under the photo
 * that fades in over its lower edge (laid over the 4:3 phone crop it would
 * cover the bouquet, and beside it on a tablet the button doesn't fit); from
 * 60em both widgets share one grid area, and the text sits on the photo's
 * right, on a scrim that darkens only that side. The row, not the photo, is
 * pulled up under the header, so photo and text start level. */
.panel-layout > .panel-grid:first-child .ff-home-banner { margin-top: -2rem; }
.panel-layout > .panel-grid:first-child .ff-home-banner .ff-banner { margin-top: 0; }
.ff-home-banner > .panel-grid-cell { display: grid; }
/* Page Builder spaces widgets with an ID rule (#pl-<page> .so-panel), hence
 * !important: that margin would make the cell taller than the photo. Its
 * clearfix pseudo-elements would be extra grid items; nothing here floats. */
.ff-home-banner > .panel-grid-cell > .so-panel { min-width: 0; margin-bottom: 0 !important; }
.ff-home-banner > .panel-grid-cell > .so-panel::before,
.ff-home-banner > .panel-grid-cell > .so-panel::after { content: none; }
.ff-home-banner .widget_custom_html,
.ff-home-banner .widget_custom_html > .textwidget { display: grid; }

.ff-hero-overlay {
	display: grid;
	place-items: center;
	margin: -3rem calc(50% - 50vw) 0;
	padding: 3.5rem var(--ff-page-gutter) var(--ff-space-lg);
	background: linear-gradient(to bottom, transparent, var(--ff-color-hero-bg) 3rem);
	color: var(--ff-color-hero-text);
	text-align: center;
	text-shadow: var(--ff-shadow-hero-text);
	/* The page is Bulgarian, which switches Cormorant to its Bulgarian letter
	 * forms (т like m, в like ϐ). The client's banner uses the common forms;
	 * delete this line for the Bulgarian ones. */
	font-feature-settings: "locl" 0;
}
.ff-hero-overlay__content { width: 100%; max-width: 34rem; }
.ff-hero-overlay p { margin: 0; }
.ff-hero-overlay__brand {
	display: none;
	font-family: var(--ff-font-script);
	font-size: clamp(2.75rem, 5.2vw, 5.5rem);
	line-height: 1.2;
}
/* A thin gold rule each side of a bow. */
.ff-hero-overlay__divider {
	display: flex;
	align-items: center;
	gap: .75rem;
	width: min(75%, 24rem);
	margin: 0 auto var(--ff-space-sm);
	color: var(--ff-color-hero-gold);
}
.ff-hero-overlay__divider::before,
.ff-hero-overlay__divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: currentColor;
}
.ff-hero-overlay__divider svg { flex: none; width: 2.5rem; height: auto; }
.ff-hero-overlay__title {
	font-family: var(--ff-font-display);
	font-weight: 500;
	font-size: clamp(1.75rem, 3vw, 3.1rem);
	line-height: 1.12;
}
.ff-hero-overlay .ff-hero-overlay__actions { margin-top: var(--ff-space-md); }
.ff-hero-overlay__cta {
	display: inline-flex;
	align-items: center;
	gap: .65em;
	min-height: 44px;
	padding: .45em 1em;
	border: 2px solid var(--ff-color-hero-gold);
	border-radius: 999px;
	background: var(--ff-color-hero-cta-bg);
	color: var(--ff-color-hero-text);
	font-family: var(--ff-font-display);
	font-weight: 500;
	font-size: clamp(.85rem, 4.2vw, 1.15rem);  /* one line down to a 320px phone */
	line-height: 1.2;
	letter-spacing: .03em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--ff-transition-fast), color var(--ff-transition-fast);
}
.ff-hero-overlay__cta svg { flex: none; width: 1.6em; height: auto; color: var(--ff-color-hero-gold); }
.ff-hero-overlay__cta:hover,
.ff-hero-overlay__cta:focus-visible {
	background: var(--ff-color-hero-gold);
	color: var(--ff-color-hero-bg);
	text-shadow: none;
}
.ff-hero-overlay__cta:hover svg,
.ff-hero-overlay__cta:focus-visible svg { color: currentColor; }
.ff-hero-overlay__cta:focus-visible { outline: 2px solid var(--ff-color-hero-text); outline-offset: 3px; }

@media (min-width: 60em) {
	.ff-home-banner > .panel-grid-cell > .so-panel { grid-area: 1 / 1; }
	/* At 21:9 the photo shows its full width, so a share of the screen is a
	 * share of the photo: the bouquet ends at 56%, and the text column runs
	 * from 57vw to 3vw short of the edge, centred at 77% as in the client's
	 * banner. The overlay is as wide as the screen, so vw, not %, places it. */
	.ff-hero-overlay {
		place-items: center;
		margin-top: 0;
		padding: var(--ff-space-md) max(var(--ff-page-gutter), 3vw) var(--ff-space-md) 57vw;
		background: linear-gradient(to right, transparent 40%, var(--ff-color-hero-scrim) 60%);
	}
	.ff-hero-overlay__content { max-width: 40rem; }
	.ff-hero-overlay__divider { margin-bottom: var(--ff-space-md); }
	.ff-hero-overlay__divider svg { width: 3.25rem; }
	.ff-hero-overlay__cta { padding-inline: 1.4em; font-size: clamp(1.05rem, 1.55vw, 1.6rem); }
}

/* Introduction under the photo: the title, then the lead and the buttons,
 * which move beside the title from 60em. */
.ff-intro .ff-hero-text__lead { max-width: 36rem; }
@media (min-width: 60em) {
	.ff-intro {
		display: grid;
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		column-gap: var(--ff-space-xl);
		align-items: end;
	}
	.ff-intro .ff-hero-text__title { margin: 0; }
}

/* Delivery band: the three promises in the top bar's colour, running to the
 * screen's edges. The colour past the content width is a box-shadow clipped
 * to the band's height, so the band's own box (and the page) keep their width. */
.ff-trust {
	display: grid;
	gap: var(--ff-space-sm);
	margin: 0;
	padding: var(--ff-space-md) 0;
	list-style: none;
	background: var(--ff-color-ink);
	box-shadow: 0 0 0 100vmax var(--ff-color-ink);
	clip-path: inset(0 -100vmax);
	color: var(--ff-color-on-ink-muted);
	font-size: var(--ff-text-sm);
	line-height: 1.35;
}
.ff-trust li {
	display: flex;
	align-items: flex-start;
	gap: var(--ff-space-xs);
}
.ff-trust svg { flex: none; width: 24px; height: 24px; fill: var(--ff-color-ink-soft); }
.ff-trust strong { display: block; color: var(--ff-color-on-dark); font-size: 1rem; }
@media (min-width: 48em) {
	.ff-trust {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--ff-gap);
		padding-block: var(--ff-space-lg);
	}
}

/* Occasion tiles: links to the occasion tags' pages. Two across on
 * the narrowest phones, three from 24em, six from 60em: the widest one-word
 * label ("Поздравления") needs a tile about 110px wide. */
.ff-occasions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--ff-space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 24em) {
	.ff-occasions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 48em) {
	.ff-occasions { gap: var(--ff-gap); }
}
@media (min-width: 60em) {
	.ff-occasions { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.ff-occasions a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--ff-space-2xs);
	height: 100%;
	min-height: 6.5rem;
	padding: var(--ff-space-sm) var(--ff-space-2xs);
	border-radius: var(--ff-radius-lg);
	background: var(--ff-color-ink-tint);
	color: var(--ff-color-ink);
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	transition: background-color var(--ff-transition-fast), color var(--ff-transition-fast);
}
.ff-occasions svg { flex: none; width: 32px; height: 32px; fill: currentColor; }
.ff-occasions a:hover {
	background: var(--ff-color-ink);
	color: var(--ff-color-on-dark);
}
.ff-occasions a:focus-visible { outline: 2px solid var(--ff-color-ink); outline-offset: 2px; }
@media (min-width: 48em) {
	.ff-occasions a { min-height: 8rem; font-size: .9375rem; }
}

/* The story: a photo (Media Image widget, ff-story-media class) with an ink
 * block set behind it and showing at the bottom right, beside the text. */
.ff-story-media {
	position: relative;
	isolation: isolate;
	margin: 0 var(--ff-space-sm) var(--ff-space-sm) 0;
}
.ff-story-media::before {
	content: "";
	position: absolute;
	inset: var(--ff-space-sm) calc(-1 * var(--ff-space-sm)) calc(-1 * var(--ff-space-sm)) var(--ff-space-sm);
	z-index: -1;
	border-radius: var(--ff-radius-lg);
	background: var(--ff-color-ink);
}
.ff-story-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--ff-radius-lg);
}
/* Above the text on wider phones and tablets, until Page Builder puts the
 * two side by side at 780px: wider than tall, so it doesn't fill the screen. */
@media (min-width: 30em) and (max-width: 780px) {
	.ff-story-media img { aspect-ratio: 3 / 2; }
}
@media (min-width: 48em) {
	.ff-story-media { margin: 0 var(--ff-space-md) var(--ff-space-md) 0; }
	.ff-story-media::before { inset: var(--ff-space-md) calc(-1 * var(--ff-space-md)) calc(-1 * var(--ff-space-md)) var(--ff-space-md); }
}
.ff-story__title { font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.15; }
.ff-story__text { margin: 0 0 var(--ff-space-md); color: var(--ff-color-muted); }
.ff-story__actions { margin: 0; }

/* An eyebrow in the decoration colour, for the ink sections. */
.ff-eyebrow--ink { color: var(--ff-color-ink); }

/* Instagram panel: centred on the ink tint, a camera in an ink circle. */
.ff-callout {
	padding: var(--ff-space-xl) var(--ff-space-sm);
	border-radius: var(--ff-radius-lg);
	background: var(--ff-color-ink-tint);
	text-align: center;
}
.ff-callout__icon {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	margin: 0 auto var(--ff-space-sm);
	border-radius: 50%;
	background: var(--ff-color-ink);
}
.ff-callout__icon svg { width: 24px; height: 24px; fill: var(--ff-color-on-dark); }
.ff-callout__title { margin: 0 0 var(--ff-space-2xs); font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.ff-callout__lead { max-width: 32rem; margin: 0 auto var(--ff-space-md); color: var(--ff-color-muted); }
.ff-callout__actions { margin: 0; }

/* -----------------------------------------------------------------------
 * Contact page (layouts/contact.json)
 *
 * A short intro with the phone and email, then the shops as cards: map,
 * name, address, phone and a "Directions" button that opens Google Maps.
 * One card per row up to 60em (from 40em with the map beside the details,
 * so a tablet-wide map is not taller than the screen), three across from
 * 60em.
 * -------------------------------------------------------------------- */
.ff-contact__intro { max-width: 40rem; margin: 0 0 var(--ff-space-sm); font-size: 1.125rem; }
.ff-contact__direct {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ff-space-2xs) var(--ff-space-lg);
	margin: 0;
	padding: 0;
	list-style: none;
}
.ff-contact__direct a {
	display: inline-flex;
	align-items: center;
	gap: var(--ff-space-2xs);
	min-height: 44px;
	font-size: 1.125rem;
	font-weight: 600;
	text-decoration: none;
}
.ff-contact__direct a:hover { text-decoration: underline; }
.ff-contact__direct svg,
.ff-shop__details svg { flex: none; width: 20px; height: 20px; fill: currentColor; }

.ff-shops {
	display: grid;
	gap: var(--ff-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 60em) {
	.ff-shops { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ff-shop {
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--ff-color-border);
	border-radius: var(--ff-radius);
	background: var(--ff-color-panel);
}
.ff-shop__map { background: var(--ff-color-surface); }
.ff-shop__map iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	border: 0;
}
.ff-shop__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--ff-space-sm);
	padding: var(--ff-space-md);
}
.ff-shop__name { margin: 0; font-size: 1.25rem; }
.ff-shop__details {
	display: grid;
	gap: var(--ff-space-2xs);
	margin: 0;
	padding: 0;
	list-style: none;
}
.ff-shop__details li { display: flex; align-items: flex-start; gap: var(--ff-space-2xs); margin: 0; }
.ff-shop__details svg { margin-top: .2em; color: var(--ff-color-accent-text); }
.ff-shop__details a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; font-weight: 600; }
/* The button sits at the bottom, so the three cards' buttons line up. */
.ff-shop__route { margin-top: auto; }
@media (min-width: 40em) and (max-width: 59.99em) {
	.ff-shop { flex-direction: row; }
	.ff-shop__map { flex: 0 0 55%; }
	.ff-shop__map iframe { height: 100%; min-height: 15rem; aspect-ratio: auto; }
}
