/*
 * Global components: base type, buttons, header, mobile drawer, footer,
 * product cards and utilities. Loaded on every page.
 * Page-specific layout lives in home.css.
 */

/* ======================================================================
   1. Base
   ====================================================================== */
html {
	scroll-padding-top: 96px;
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	color: var(--color-text);
	letter-spacing: -0.012em;
	line-height: var(--lh-heading);
	text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { text-wrap: pretty; }

::selection { background: var(--color-travertine); color: var(--color-charcoal); }

img { height: auto; }

/* Visible keyboard focus everywhere */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

/* The earth-coloured ring is only 2.9:1 on charcoal: on dark sections, the footer and the
   transparent header over the hero it turns ivory (15:1 on charcoal) */
.on-dark :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.site-header--over-hero:not(.is-scrolled):not(.is-open) :where(a, button):focus-visible {
	outline-color: var(--color-on-dark);
}
/* The dropdown panel is ivory even while the header is transparent: keep the earth-coloured ring there */
.site-header .site-nav__list .sub-menu a:focus-visible { outline-color: var(--color-accent); }
/* The skip link is a charcoal block that can appear over a photograph or an ivory page */
.skip-link:focus-visible { outline: 2px solid var(--color-on-dark); outline-offset: 2px; box-shadow: 0 0 0 5px var(--color-charcoal); }

.skip-link {
	position: fixed;
	left: var(--gutter);
	top: -100px;
	z-index: 1000;
	padding: 12px 20px;
	background: var(--color-charcoal);
	color: var(--color-on-dark);
	font: 600 13px/1 var(--font-sans);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 12px; }

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

/* ======================================================================
   2. Editorial utilities (usable from Elementor via CSS classes)
   ====================================================================== */
.stone-eyebrow,
.stone-eyebrow .elementor-heading-title {
	font-family: var(--font-sans);
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	line-height: 1.4;
	color: inherit;
}

.stone-lead,
.stone-lead p {
	font-size: var(--fs-body-lg);
	line-height: 1.6;
}

.stone-measure { max-width: var(--content-max); }

/* ======================================================================
   3. Buttons — one system
   Plain markup:  <a class="btn btn--primary">
   Elementor:     add the classes  stone-btn stone-btn--primary  to the Button widget
                  (variants: --primary, --secondary, --text)
   ====================================================================== */
.btn,
.elementor .stone-btn .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: var(--button-h);
	padding: 0 32px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-family: var(--font-sans);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.btn--primary,
.elementor .stone-btn--primary .elementor-button {
	background: var(--color-charcoal);
	color: var(--color-on-dark);
	border-color: var(--color-charcoal);
}
.btn--primary:hover,
.elementor .stone-btn--primary .elementor-button:hover {
	background: #000;
	border-color: #000;
	color: var(--color-on-dark);
}

.btn--secondary,
.elementor .stone-btn--secondary .elementor-button {
	background: transparent;
	color: var(--color-text);
	border-color: rgba(25, 24, 23, 0.4);
}
.btn--secondary:hover,
.elementor .stone-btn--secondary .elementor-button:hover {
	background: var(--color-charcoal);
	border-color: var(--color-charcoal);
	color: var(--color-on-dark);
}

/* On dark backgrounds and over photography: add .on-dark to the section */
.on-dark .btn--primary,
.elementor .on-dark .stone-btn--primary .elementor-button {
	background: var(--color-surface);
	border-color: var(--color-surface);
	color: var(--color-charcoal);
}
.on-dark .btn--primary:hover,
.elementor .on-dark .stone-btn--primary .elementor-button:hover {
	background: #fff;
	border-color: #fff;
	color: var(--color-charcoal);
}
.on-dark .btn--secondary,
.elementor .on-dark .stone-btn--secondary .elementor-button {
	color: var(--color-on-dark);
	border-color: rgba(251, 250, 247, 0.5);
}
.on-dark .btn--secondary:hover,
.elementor .on-dark .stone-btn--secondary .elementor-button:hover {
	background: var(--color-surface);
	border-color: var(--color-surface);
	color: var(--color-charcoal);
}

/* Text call to action: label + a drawn arrow, no box */
.btn--text,
.elementor .stone-btn--text .elementor-button {
	min-height: 44px;
	padding: 12px 0;
	border: 0;
	/* the underline is a background, so the touch target can be 44px without a gap under the text */
	background: linear-gradient(currentColor, currentColor) no-repeat left calc(100% - 11px) / 100% 1px;
	color: inherit;
}
.btn--text::after,
.elementor .stone-btn--text .elementor-button::after {
	content: "";
	width: 18px;
	height: 1px;
	background: currentColor;
	transition: width var(--dur-fast) var(--ease);
	flex: none;
}
.btn--text:hover::after,
.elementor .stone-btn--text .elementor-button:hover::after { width: 30px; }
.btn--text:hover,
.elementor .stone-btn--text .elementor-button:hover { background-color: transparent; color: inherit; }

/* Elementor wraps the label in extra spans */
.elementor .stone-btn .elementor-button-content-wrapper,
.elementor .stone-btn .elementor-button-text { display: contents; }

/* Blocksy / WooCommerce / Forminator buttons follow the same system */
.button,
.wp-element-button,
.wc-block-components-button,
.single_add_to_cart_button,
.forminator-button {
	border-radius: var(--radius);
	letter-spacing: 0.12em;
}

/* ======================================================================
   4. Header
   ====================================================================== */
.site-header {
	--header-h: 68px;
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--color-surface);
	color: var(--color-text);
	border-bottom: 1px solid var(--color-border);
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header--over-hero {
	--header-h: 80px;
	position: fixed;
	left: 0;
	right: 0;
	background: transparent;
	color: var(--color-on-dark);
	border-bottom-color: transparent;
}

.site-header--over-hero.is-scrolled,
.site-header--over-hero.is-open {
	--header-h: 68px;
	background: var(--color-surface);
	color: var(--color-text);
	border-bottom-color: var(--color-border);
}

.site-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--space-4);
	height: var(--header-h);
	width: min(var(--container-header), 100% - 2 * var(--gutter));
	margin-inline: auto;
	transition: height var(--dur) var(--ease);
}

/* Brand: custom logo if set, otherwise a quiet wordmark */
.site-brand {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
	text-decoration: none;
}
.site-brand__name {
	font-family: var(--font-sans);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	white-space: nowrap;
}
.site-brand img,
.custom-logo-link img {
	display: block;
	max-height: 34px;
	width: auto;
}
/* Brand logo of assets/brand/ (stone_brand_logo()): the SVG is a mask over the text colour, so it follows the header and footer colours */
.site-brand__logo {
	display: block;
	height: 34px;
	aspect-ratio: var(--brand-ratio, 4.5);
	background-color: currentColor;
	-webkit-mask: var(--brand-logo) center / contain no-repeat;
	mask: var(--brand-logo) center / contain no-repeat;
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}
@media (max-width: 1099.98px) { .site-brand__logo { height: 28px; } }
@media (forced-colors: active) { .site-brand__logo { forced-color-adjust: none; background-color: CanvasText; } }

/* Primary navigation */
.site-nav { justify-self: center; }
.site-nav__list,
.site-nav__list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(20px, 2.1vw, 36px);
}
.site-nav__list > li { position: relative; }
.site-nav__list > li > a {
	display: block;
	padding: 30px 0;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	position: relative;
}
.site-nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 22px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--dur-fast) var(--ease);
}
.site-nav__list > li:hover > a::after,
.site-nav__list > li:focus-within > a::after,
.site-nav__list > li.current-menu-item > a::after,
.site-nav__list > li.current-menu-ancestor > a::after { transform: scaleX(1); }

/* Refined dropdown (no mega menu: the catalogue is small) */
.site-nav__list .sub-menu {
	position: absolute;
	top: calc(100% - 6px);
	left: -28px;
	min-width: 248px;
	padding: 18px 28px 20px;
	background: var(--color-surface);
	color: var(--color-text);
	border: 1px solid var(--color-border);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast);
}
.site-nav__list li:hover > .sub-menu,
.site-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}
.site-nav__list .sub-menu a {
	display: block;
	padding: 10px 0;
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 500;
	color: var(--color-text);
	text-decoration: none;
	white-space: nowrap;
}
.site-nav__list .sub-menu a:hover { color: var(--color-accent); }

/* Right-hand tools */
.site-header__tools {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: clamp(14px, 1.6vw, 26px);
}
.site-header__utility { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.site-header__utility a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: inherit;
	text-decoration: none;
}
.site-header__utility a:hover { opacity: 0.7; }

/* A quiet outlined link, shown only when the header has room for it */
.site-header__quote {
	display: none;
	align-items: center;
	height: 44px;
	padding: 0 20px;
	border: 1px solid currentColor;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.site-header__quote:hover { background: var(--color-charcoal); border-color: var(--color-charcoal); color: var(--color-on-dark); }
.site-header--over-hero:not(.is-scrolled):not(.is-open) .site-header__quote:hover { background: var(--color-surface); border-color: var(--color-surface); color: var(--color-charcoal); }
/* Needs a header wide enough to keep the navigation centred beside it */
@media (min-width: 1660px) { .site-header__quote { display: inline-flex; } }

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	text-decoration: none;
	-webkit-appearance: none;
	appearance: none;
}
.icon-btn svg { width: 22px; height: 22px; display: block; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { opacity: 0.7; }

.site-header__cart-count {
	position: absolute;
	top: 5px;
	right: 1px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--color-charcoal);
	color: var(--color-on-dark);
	font-size: 10px;
	font-weight: 600;
	line-height: 17px;
	text-align: center;
}
.site-header--over-hero:not(.is-scrolled):not(.is-open) .site-header__cart-count {
	background: var(--color-surface);
	color: var(--color-charcoal);
}
.site-header__cart-count[hidden] { display: none; }

.site-header__menu-toggle { display: none; }

/* Search panel under the header */
.site-search {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--color-surface);
	color: var(--color-text);
	border-bottom: 1px solid var(--color-border);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast);
}
.site-search.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}
.site-search form {
	display: flex;
	align-items: center;
	gap: 16px;
	width: min(var(--container-max), 100% - 2 * var(--gutter));
	margin: 0 auto;
	padding: 22px 0;
}
.site-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--color-border);
	background: transparent;
	color: var(--color-text);
	font: 400 20px/1 var(--font-display);
	border-radius: 0;
	box-shadow: none;
}
.site-search input[type="search"]::placeholder { color: var(--color-warm-gray); }
.site-search input[type="search"]:focus { outline: 0; border-bottom-color: var(--color-charcoal); }
.site-search button[type="submit"] { min-height: 48px; }

/* ---- Below 1100px: compact header + drawer ---------------------------- */
@media (max-width: 1099.98px) {
	.site-header,
	.site-header--over-hero { --header-h: 64px; }
	.site-header__inner { grid-template-columns: 1fr auto; }
	.site-nav,
	.site-header__utility,
	.site-header__quote { display: none; }
	.site-header__menu-toggle { display: inline-flex; }
	.site-brand__name { font-size: 13.5px; letter-spacing: 0.3em; }
}

/* ======================================================================
   5. Mobile drawer
   ====================================================================== */
html.drawer-open { overflow: hidden; }

.site-drawer {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	flex-direction: column;
	background: var(--color-surface);
	color: var(--color-text);
	opacity: 0;
	visibility: hidden;
	transform: translateX(24px);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.site-drawer.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.site-drawer__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	flex: none;
	padding: 0 var(--gutter);
	border-bottom: 1px solid var(--color-border);
}

.site-drawer__nav { padding: var(--space-3) var(--gutter) var(--space-4); flex: 1; }
.site-drawer__list,
.site-drawer__list ul { list-style: none; margin: 0; padding: 0; }
.site-drawer__list > li { border-bottom: 1px solid var(--color-border); position: relative; }
.site-drawer__list > li > a {
	display: flex;
	align-items: center;
	min-height: 54px;
	padding-right: 56px;
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: inherit;
	text-decoration: none;
}
.site-drawer__list .drawer-toggle {
	position: absolute;
	right: 0;
	top: 0;
	width: 56px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}
.site-drawer__list .drawer-toggle::before,
.site-drawer__list .drawer-toggle::after {
	content: "";
	position: absolute;
	width: 14px;
	height: 1px;
	background: currentColor;
	transition: transform var(--dur-fast) var(--ease);
}
.site-drawer__list .drawer-toggle::after { transform: rotate(90deg); }
.site-drawer__list .drawer-toggle[aria-expanded="true"]::after { transform: rotate(0); }

.site-drawer__list .sub-menu { padding: 0 0 14px; }
html.js .site-drawer__list .sub-menu { display: none; }
html.js .site-drawer__list li.is-expanded > .sub-menu { display: block; }
.site-drawer__list .sub-menu a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding-left: 2px;
	font-size: 16px;
	font-weight: 500;
	color: var(--color-warm-gray);
	text-decoration: none;
}
.site-drawer__list .sub-menu a:hover { color: var(--color-text); }

.site-drawer__foot {
	flex: none;
	padding: var(--space-3) var(--gutter) calc(var(--space-4) + env(safe-area-inset-bottom));
	display: grid;
	gap: 14px;
}
.site-drawer__foot .btn { width: 100%; }

/* ======================================================================
   6. Footer
   ====================================================================== */
.site-footer {
	position: relative;
	background: var(--color-charcoal);
	color: var(--color-on-dark);
	padding: var(--section-y-sm) 0 var(--space-4);
}
/* A thin band of star lattice along the top edge (decorative) */
.site-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 28px;
	background: var(--motif-lattice-light) repeat-x center top / 28px 28px;
	opacity: 0.2;
	-webkit-mask-image: linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
	pointer-events: none;
}
/* Keep the Arabic phrase whole: it moves to the next line rather than splitting */
.site-footer__arabic { display: inline-block; white-space: nowrap; font-size: 1.05em; }
/* On phones the Arabic line sits on its own line, without the dot separator */
@media (max-width: 640px) {
	.site-footer__sep { display: none; }
	.site-footer__arabic { display: block; margin-top: 6px; text-align: left; } /* an rtl block would otherwise sit on the right */
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.site-footer__inner {
	width: min(var(--container-max), 100% - 2 * var(--gutter));
	margin-inline: auto;
}

.site-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
	gap: var(--space-8) 72px;
	padding-bottom: var(--space-8);
	border-bottom: 1px solid var(--color-border-dark);
}
.site-footer__wordmark {
	margin: 0 0 var(--space-4);
	font-family: var(--font-display);
	font-size: clamp(28px, 1rem + 1.2vw, 38px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-on-dark);
}
.site-footer__wordmark--logo .site-brand__logo { height: clamp(40px, 1.6rem + 1.4vw, 56px); }
.site-footer__statement {
	margin: 0;
	max-width: 26ch;
	font-size: 17px;
	line-height: 1.55;
	color: var(--color-on-dark-muted);
}
.site-footer__intro { margin-top: var(--space-3); max-width: 38ch; color: var(--color-on-dark-muted); font-size: 15px; }

.site-footer__cols {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--space-6) var(--space-4);
}
.site-footer__heading {
	margin: 0 0 var(--space-3);
	font-family: var(--font-sans);
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--color-on-dark-muted);
}
.site-footer__list { list-style: none; margin: 0; padding: 0; display: block; }
.site-footer__list a { display: block; padding: 12px 0; font-size: 15px; line-height: 1.4; }

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2) var(--space-4);
	padding-top: var(--space-4);
	font-size: 13px;
	color: var(--color-on-dark-muted);
}
.site-footer__social { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.site-footer__social:empty { display: none; }
.site-footer__social a { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 1399.98px) {
	.site-footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 1099.98px) {
	.site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-3); }
	.site-footer__cols > nav:last-child { grid-column: 1 / -1; }
	.site-footer__cols > nav:last-child .site-footer__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-3); }
	.site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ======================================================================
   7. Product cards ([stone_products]) and journal cards ([stone_journal])
   ====================================================================== */
.product-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-6) var(--space-3);
}
@media (max-width: 1099.98px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Product card: the picture, then a quiet block of text (series, name, what it is, size) and the price on its own line at
   the foot, so that prices line up across a row whatever the text above. */
.product-card { margin: 0; position: relative; }
.product-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.product-card__link:focus-visible { outline: 2px solid var(--color-charcoal); outline-offset: 4px; }

.product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--color-stone);
}
/* Two classes: the page builder's own "img { height: auto }" must not win on the home page (a landscape picture would stop short of the square). */
.product-card .product-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity var(--dur-slow) var(--ease), transform 1.1s var(--ease);
}
.product-card__media .product-card__img--alt { opacity: 0; }
.product-card__link:hover .product-card__img--alt,
.product-card__link:focus-visible .product-card__img--alt { opacity: 1; }
.product-card__link:hover .product-card__media img:only-child { transform: scale(1.035); }

.product-card__body { display: flex; flex: 1; flex-direction: column; padding-top: 18px; }
.product-card__line { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; line-height: 1.3; text-transform: uppercase; color: var(--color-warm-gray); }
.product-card__name {
	display: block;
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(24px, 1.05rem + 0.45vw, 29px);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.005em;
	text-decoration: underline transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	transition: text-decoration-color var(--dur) var(--ease);
}
.product-card__link:hover .product-card__name,
.product-card__link:focus-visible .product-card__name { text-decoration-color: currentColor; }
.product-card__subtitle { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--color-warm-gray); }
.product-card__facts { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--color-warm-gray); font-variant-numeric: lining-nums; }
.product-card__dot { margin-inline: 4px; }
.product-card__price { margin: auto 0 0; padding-top: 18px; font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--color-text); font-variant-numeric: lining-nums; }
.product-card__price::before { content: ""; display: block; height: 1px; margin-bottom: 14px; background: var(--color-border); transition: background-color var(--dur) var(--ease); }
.product-card__link:hover .product-card__price::before,
.product-card__link:focus-visible .product-card__price::before { background: var(--color-charcoal); }
@media (max-width: 599.98px) {
	.product-card__body { padding-top: 14px; }
	.product-card__name { font-size: 22px; }
	.product-card__subtitle { margin-top: 6px; font-size: 13px; }
	.product-card__facts { font-size: 12.5px; }
	.product-card__price { padding-top: 14px; font-size: 14px; }
	.product-card__price::before { margin-bottom: 10px; }
}

/* Home page: one piece of each collection, then "Show more" */
.product-card[hidden] { display: none; }
@media (min-width: 900px) {
	.product-grid--picks-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.product-grid--picks-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .product-grid--picks-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.signature-more { margin: var(--space-6) 0 0; text-align: center; }

/* Placeholder tiles are shown only on the development site: quiet, numbered frames */
.product-grid,
.journal-grid { counter-reset: tile; }
.product-card--placeholder,
.journal-card--placeholder { counter-increment: tile; }
.product-card--placeholder .product-card__media,
.journal-card--placeholder .journal-card__media {
	background:
		linear-gradient(180deg, rgba(251, 250, 247, 0.4) 0%, rgba(25, 24, 23, 0.05) 100%),
		var(--color-stone);
	box-shadow: inset 0 0 0 1px var(--color-border);
}
.product-card--placeholder .product-card__media::before,
.journal-card--placeholder .journal-card__media::before {
	content: counter(tile, decimal-leading-zero);
	position: absolute;
	left: 20px;
	top: 14px;
	font-family: var(--font-display);
	font-size: clamp(32px, 1.6rem + 0.8vw, 44px);
	font-weight: 300;
	line-height: 1;
	color: rgba(25, 24, 23, 0.26);
}
/* Badges on pictures switched off (stone_image_badges_shown()): the captions written into page texts (image pack figures) and into
   Elementor image widgets of the pack (class slot-*) are not shown; the alt text of each picture is unchanged */
body.stone-no-image-badges .stone-image__caption,
body.stone-no-image-badges .elementor-widget-image[class*="slot-"] .widget-image-caption { display: none; }
.placeholder-tag {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 4px 8px;
	background: rgba(251, 250, 247, 0.82);
	color: var(--color-charcoal);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.3;
}

.journal-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-6) var(--space-4);
}
/* These blocks come before the base card rules below, so every selector is prefixed
   with .journal-grid to win on specificity rather than on source order. */
/* Phones and tablets in portrait: a compact list (thumbnail, label, title) instead of three
   full-width tiles, which made the section more than a screen and a half tall at 768 px */
@media (max-width: 899.98px) {
	.journal-grid { grid-template-columns: 1fr; gap: var(--space-4); }
	.journal-grid .journal-card__link { display: grid; grid-template-columns: clamp(112px, 24vw, 200px) minmax(0, 1fr); column-gap: clamp(18px, 3vw, 32px); align-items: center; }
	.journal-grid .journal-card__media { grid-row: 1 / span 2; aspect-ratio: 1 / 1; }
	.journal-grid .journal-card__label { margin-top: 0; align-self: end; }
	.journal-grid .journal-card__title { margin-top: 6px; font-size: clamp(23px, 3.4vw, 28px); align-self: start; }
	.journal-grid .journal-card--placeholder .journal-card__media::before { left: 12px; top: 8px; font-size: 34px; }
	.journal-grid .journal-card--placeholder .placeholder-tag { left: 8px; bottom: 8px; padding: 3px 6px; font-size: 9px; }
}
.journal-card { margin: 0; }
.journal-card__link { display: block; color: inherit; text-decoration: none; }
.journal-card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--color-stone);
}
.journal-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.1s var(--ease);
}
.journal-card__link:hover .journal-card__media img { transform: scale(1.035); }
.journal-card__label {
	display: block;
	margin-top: var(--space-3);
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--color-warm-gray);
}
.journal-card__title {
	display: block;
	margin: 10px 0 0;
	font-family: var(--font-display);
	font-size: clamp(26px, 1.1rem + 1vw, 34px);
	line-height: 1.08;
	letter-spacing: -0.005em;
	text-wrap: balance;
}

/* ======================================================================
   8. Scroll reveal (opacity + small translate only; off when reduced motion)
   ====================================================================== */
html.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}
	html.js .reveal { opacity: 1; transform: none; }
}

/* ======================================================================
   9. Announcement bar (promises, editable in Customize > Announcement bar)
   ====================================================================== */
.announcement-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0 var(--space-3);
	min-height: 44px;
	max-height: 80px;
	padding: 0 var(--gutter);
	overflow: hidden;
	background: var(--color-charcoal);
	color: var(--color-on-dark);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.3;
	text-align: center;
	transition: max-height var(--dur) var(--ease), min-height var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.announcement-bar__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--space-3); margin: 0; padding: 0; list-style: none; }
.announcement-bar__item { display: inline-flex; align-items: center; gap: var(--space-3); }
.announcement-bar__item + .announcement-bar__item::before { content: ""; width: 4px; height: 4px; background: var(--color-travertine); transform: rotate(45deg); flex: none; }
.announcement-bar__link { display: none; align-items: center; min-height: 44px; color: var(--color-on-dark-muted); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.announcement-bar__link:hover { color: var(--color-on-dark); }
@media (min-width: 900px) { .announcement-bar__link { display: inline-flex; } }
@media (max-width: 640px) {
	.announcement-bar { font-size: 10.5px; letter-spacing: 0.1em; }
	.announcement-bar__item:nth-child(n+3) { display: none; }
}
/* Over the hero the bar sits inside the fixed header and folds away once the page scrolls (no layout shift: the header is fixed). */
.site-header--over-hero.is-scrolled .announcement-bar,
.site-header--over-hero.is-open .announcement-bar { min-height: 0; max-height: 0; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .announcement-bar { transition: none; } }

/* ======================================================================
   10. Language switcher (EN / FR in the header, English / Français in the mobile menu). No flags.
   ====================================================================== */
.lang-switch__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.lang-switch__item + .lang-switch__item::before { content: "/"; margin-right: 2px; opacity: 0.45; }
.lang-switch__item { display: inline-flex; align-items: center; }
.lang-switch__link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: inherit; text-decoration: none; opacity: 0.68; transition: opacity var(--dur-fast) var(--ease); }
a.lang-switch__link:hover, a.lang-switch__link:focus-visible { opacity: 1; }
.lang-switch__link.is-current { opacity: 1; }
.site-header__tools .lang-switch { display: none; }
@media (min-width: 1100px) { .site-header__tools .lang-switch { display: block; } }
.site-drawer__foot .lang-switch { margin-bottom: var(--space-2); }
.lang-switch--long .lang-switch__link { min-width: 0; padding: 0 16px 0 0; font-size: 13px; letter-spacing: 0.08em; text-transform: none; }
.lang-switch--long .lang-switch__item + .lang-switch__item::before { content: ""; margin: 0 16px 0 0; width: 1px; height: 14px; background: currentColor; opacity: 0.3; }

/* Help bubble (bottom left) and WhatsApp button (bottom right): inc/bubble.php */
.stone-bubble { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(320px, calc(100vw - 96px)); padding: 16px 40px 16px 18px; background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); border-radius: 14px 14px 14px 4px; box-shadow: 0 10px 30px rgba(25, 24, 23, 0.14); opacity: 0; transform: translateY(10px); transition: opacity 0.25s ease, transform 0.25s ease; }
.stone-bubble[hidden] { display: none; }
.stone-bubble.is-in { opacity: 1; transform: none; }
.stone-bubble__title { margin: 0 0 4px; font-family: var(--font-display); font-size: 20px; line-height: 1.2; }
.stone-bubble__text { margin: 0 0 8px; font-size: var(--fs-small); line-height: 1.5; color: var(--color-text-muted); }
.stone-bubble__link { display: inline-flex; align-items: center; min-height: 32px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-charcoal); text-decoration: underline; text-underline-offset: 4px; }
.stone-bubble__link:hover { color: var(--color-accent); }
.stone-bubble__close { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--color-warm-gray); font-size: 24px; line-height: 1; cursor: pointer; }
.stone-bubble__close:hover { color: var(--color-charcoal); }
.stone-bubble__close:focus-visible, .stone-bubble__link:focus-visible, .stone-wa:focus-visible { outline: 2px solid var(--color-charcoal); outline-offset: 2px; }
.stone-wa { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 18px 0 16px; border-radius: 28px; background: #1f7a4d; color: #fff; text-decoration: none; box-shadow: 0 10px 30px rgba(25, 24, 23, 0.22); transition: background-color 0.2s ease; }
.stone-wa:hover { background: #17633e; color: #fff; }
.stone-wa__label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 700px) {
	.stone-wa { width: 56px; padding: 0; justify-content: center; }
	.stone-wa__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	/* the product page has its own bar at the bottom: the bubble stays out of it, the button rises above it */
	body.single-product .stone-bubble--product { display: none; }
	body.single-product .stone-wa { bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) { .stone-bubble { transition: none; transform: none; } }
@media print { .stone-bubble, .stone-wa { display: none !important; } }

/* Caption of a generated picture of the image pack (docs/IMAGES.md): small, quiet, on the picture */
.stone-image__figure, .collection-hero__media { position: relative; margin: 0; }
.stone-image__caption { position: absolute; right: 10px; top: 10px; margin: 0; padding: 3px 8px; background: rgba(25, 24, 23, 0.6); color: #fff; font-family: var(--font-sans); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; line-height: 1.3; border-radius: 2px; }
.collection-empty .btn { margin-top: var(--space-3); }

/* Consent banner of the visit recordings (inc/consent.php): bottom left, two buttons of the same weight; the help bubble and the WhatsApp
   button step aside while it is open */
.stone-consent { position: fixed; left: 16px; bottom: 16px; z-index: 70; width: min(440px, calc(100vw - 32px)); padding: 18px 20px; background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); border-radius: 12px; box-shadow: 0 12px 34px rgba(25, 24, 23, 0.18); }
.stone-consent[hidden] { display: none; }
.stone-consent__title { margin: 0 0 6px; font-family: var(--font-display); font-size: 21px; line-height: 1.2; }
.stone-consent__text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--color-text-muted); }
.stone-consent__text a { color: var(--color-text); }
.stone-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.stone-consent__btn { width: 100%; min-height: 44px; justify-content: center; }
body.stone-consent-open .stone-bubble, body.stone-consent-open .stone-wa { visibility: hidden; }
.site-footer__consent { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 24px; }
@media print { .stone-consent { display: none !important; } }
