/* ==========================================================================
   Blaisport: base, layout and site components
   WooCommerce screens are styled in woocommerce.css.
   ========================================================================== */

:root {
	--ink: #171614;
	--ink-soft: #33302c;
	--body: #55514b;
	--muted: #6e6a63;
	--faint: #8a857c;
	--line: #e2ddd3;
	--line-strong: #d4cec3;
	--sand: #ece8e0;
	--paper: #f5f2ec;
	--card: #fbfaf7;
	--accent: #a3401e;
	--accent-soft: #f3e2d9;
	--peach: #e8b49b;
	--success: #2e6a4c;
	--success-soft: #e3ece5;

	--serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
	--sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--gutter: clamp(16px, 4vw, 56px);
	--section: clamp(48px, 6vw, 96px);
	--radius: 6px;
	--radius-lg: 8px;
	--header-h: 68px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--hatch: repeating-linear-gradient(135deg, rgba(23, 22, 20, .035) 0 1px, transparent 1px 14px);
}

/* Base ------------------------------------------------------------------ */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: var(--body-size, 16px);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.has-overlay { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
svg { flex: none; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: var(--heading-weight, 400); line-height: 1.05; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

[hidden] { display: none !important; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	top: 8px; left: 8px; z-index: 1000;
	padding: 12px 18px; background: var(--ink); color: var(--card); border-radius: var(--radius);
}

.gutter { padding-left: var(--gutter); padding-right: var(--gutter); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Type helpers ----------------------------------------------------------- */

.eyebrow {
	font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow--accent { color: var(--accent); }
.eyebrow--peach { color: var(--peach); }

.section-title { font-size: calc(var(--hs, 1) * clamp(32px, 3.6vw, 52px)); margin: 0; }
.section-title--sm { font-size: calc(var(--hs, 1) * clamp(28px, 2.8vw, 40px)); margin-bottom: 24px; }
.section-sub { margin: 8px 0 0; font-size: 14px; color: var(--body); }
.section-sub b { color: var(--ink); }

.link-underline { font-size: 14px; font-weight: 500; text-underline-offset: 4px; white-space: nowrap; }

.text-success { color: var(--success); }

/* Buttons ---------------------------------------------------------------- */

.btn,
.button,
button.button,
input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	height: 52px; padding: 0 28px;
	border-radius: 999px; border: 1px solid transparent;
	background: var(--ink); color: var(--card);
	font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover,
.button:hover,
input[type="submit"]:hover { background: var(--ink-soft); color: var(--card); }

.btn--primary { background: var(--ink); color: var(--card); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--sand); color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--lg { height: 54px; padding: 0 30px; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--xs { height: 36px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn .countdown { color: var(--accent); }
.btn--outline:hover .countdown { color: var(--accent); }

.icon-btn {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	border: 0; background: none; color: var(--ink); text-decoration: none;
	border-radius: 50%;
}
.icon-btn:hover { color: var(--accent); }

.badge {
	position: absolute; top: 5px; right: 3px;
	min-width: 18px; height: 18px; padding: 0 4px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 9px; font-size: 10px; font-weight: 700; color: #fff; line-height: 1;
}
.badge--accent { background: var(--accent); }
.badge--ink { background: var(--ink); }
.btn .badge { position: static; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip {
	display: inline-flex; align-items: center; gap: 6px;
	height: 40px; padding: 0 18px;
	border-radius: 999px; border: 1px solid var(--line-strong);
	background: transparent; color: var(--ink);
	font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--card); }
.chip--removable { height: 34px; padding: 0 12px; background: var(--sand); border-color: transparent; font-size: 13px; }

/* Media placeholders ------------------------------------------------------ */

.media { position: relative; overflow: hidden; border-radius: 4px; background: #e3dacc; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-placeholder {
	background-color: #e3dacc; background-image: var(--hatch);
	display: flex; align-items: flex-end; padding: 16px;
	font: 500 10px/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: rgba(23, 22, 20, .35);
}

/* Announcement bar --------------------------------------------------------- */

.announcement {
	display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 18px;
	padding-top: 10px; padding-bottom: 10px;
	background: var(--ink); color: var(--paper);
	font-size: 13px; text-align: center;
}
.announcement__label { color: var(--peach); font-weight: 600; }
.announcement a { color: var(--paper); }
.announcement a:hover { color: var(--peach); }
.countdown { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .04em; }

/* Header ---------------------------------------------------------------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(245, 242, 236, .92);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .2s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(23, 22, 20, .05); }

.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.site-header__spacer { flex: 1; }
.site-header__menu-btn { margin-left: -10px; }
.site-header__actions { display: flex; align-items: center; gap: 4px; margin-right: -10px; }

.site-logo { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1; letter-spacing: -.01em; font-weight: var(--heading-weight, 400); flex: none; }
.site-logo a { color: var(--ink); text-decoration: none; }
.site-logo img { max-height: 40px; width: auto; }

.primary-nav { min-width: 0; overflow: hidden; margin-left: clamp(0px, 1vw, 16px); }
.primary-nav ul { display: flex; gap: clamp(14px, 1.8vw, 28px); list-style: none; margin: 0; padding: 0; }
.primary-nav li { position: relative; flex: none; }
.primary-nav a { display: block; padding: 8px 0; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--accent); }
.primary-nav .menu-item-sale > a,
.primary-nav .sale > a { color: var(--accent); }
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: -16px; z-index: 10;
	display: none; flex-direction: column; gap: 0;
	min-width: 200px; padding: 8px 0;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: 0 12px 40px rgba(23, 22, 20, .08);
}
.primary-nav .sub-menu a { padding: 8px 16px; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: flex; }
/* Sub-menus need overflow visible; the nav scrolls only on narrow desktops. */
.primary-nav:has(.sub-menu) { overflow: visible; }

.header-search { width: clamp(140px, 16vw, 280px); flex: none; }

@media (max-width: 999px) {
	.site-header .primary-nav,
	.site-header .header-search,
	.site-header .header-account,
	.site-header .header-wishlist { display: none; }
	.site-header__inner { gap: 12px; }
	.site-logo { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 26px; }
}
@media (min-width: 1000px) {
	.site-header .site-header__menu-btn,
	.site-header .header-search-toggle { display: none; }
}

/* Search ---------------------------------------------------------------- */

.search-pill {
	position: relative;
	display: flex; align-items: center; gap: 10px;
	height: 42px; padding: 0 16px;
	border-radius: 999px; background: var(--sand); color: var(--muted);
	font-size: 14px;
}
.search-pill input[type="search"] {
	flex: 1; min-width: 0; height: 100%;
	border: 0; background: none; outline: none;
	color: var(--ink); font-size: 14px;
	-webkit-appearance: none; appearance: none;
}
.search-pill:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.search-pill--large { height: 54px; font-size: 16px; width: 100%; }
.search-pill--large input[type="search"] { font-size: 16px; }

.live-search {
	position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
	min-width: 320px;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
	box-shadow: 0 16px 50px rgba(23, 22, 20, .12);
	overflow: hidden; color: var(--ink);
}
.header-search .live-search { left: auto; width: 380px; }
.live-search ul { list-style: none; margin: 0; padding: 6px; }
.live-search a {
	display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
	padding: 8px; border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.live-search a:hover,
.live-search a:focus { background: var(--sand); outline: none; }
.live-search img,
.live-search a > span:first-child { width: 44px; height: 52px; object-fit: cover; border-radius: 4px; background: var(--sand); }
.live-search__name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.live-search .price { font-size: 13px; color: var(--muted); white-space: nowrap; }
.live-search .price del { display: none; }
.live-search .price ins { text-decoration: none; }
.live-search__all {
	display: block; width: 100%; padding: 14px; border: 0; border-top: 1px solid var(--line);
	background: none; font-size: 14px; font-weight: 600; text-align: left;
}
.live-search__all:hover { background: var(--sand); }
.live-search__empty { margin: 0; padding: 16px; font-size: 14px; color: var(--muted); }

/* Drawers & modals --------------------------------------------------------- */

.drawer,
.modal { position: fixed; inset: 0; z-index: 200; }
.drawer__backdrop,
.modal__backdrop {
	position: absolute; inset: 0;
	background: rgba(23, 22, 20, .35);
	opacity: 0; transition: opacity .25s var(--ease);
}
.drawer.is-open .drawer__backdrop,
.modal.is-open .modal__backdrop { opacity: 1; }

.drawer__panel {
	position: absolute; top: 0; bottom: 0;
	width: min(440px, 100%);
	display: flex; flex-direction: column;
	background: var(--paper);
	box-shadow: -20px 0 60px rgba(23, 22, 20, .15);
	transition: transform .3s var(--ease);
	outline: none;
}
.drawer--right .drawer__panel { right: 0; transform: translateX(100%); }
.drawer--left .drawer__panel { left: 0; transform: translateX(-100%); width: min(380px, 92%); }
.drawer.is-open .drawer__panel { transform: none; }

.drawer--top .drawer__panel {
	left: 0; right: 0; bottom: auto; width: 100%;
	flex-direction: row; align-items: center; gap: 8px;
	padding-top: 14px; padding-bottom: 14px;
	transform: translateY(-100%);
}
.drawer--top .search-pill { flex: 1; }

.drawer__head {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	height: var(--header-h); padding: 0 24px; flex: none;
	border-bottom: 1px solid var(--line);
}
.drawer__head .icon-btn { margin-right: -12px; }
.drawer__head h2 { margin: 0; font-family: var(--sans); font-size: 17px; font-weight: 700; letter-spacing: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 24px 24px; overscroll-behavior: contain; }

.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 26px; line-height: 1.1; text-decoration: none; color: var(--ink); }
.mobile-nav .sub-menu a { font-family: var(--sans); font-size: 15px; padding-left: 14px; }
.mobile-nav .menu-item-sale > a,
.mobile-nav .sale > a { color: var(--accent); }
.mobile-nav__secondary { list-style: none; margin: 24px 0 0; padding: 0; }
.mobile-nav__secondary a { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-size: 15px; text-decoration: none; }

.modal { display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal__panel {
	position: relative;
	width: min(760px, 100%); max-height: calc(100vh - 32px);
	display: flex; flex-direction: column;
	background: var(--paper); border-radius: var(--radius-lg);
	box-shadow: 0 30px 80px rgba(23, 22, 20, .25);
	opacity: 0; transform: translateY(12px) scale(.98);
	transition: opacity .2s, transform .25s var(--ease);
	outline: none;
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.modal__head h2 { margin: 0; font-size: 30px; }
.modal__body { overflow-y: auto; padding: 24px; }

/* Home: hero ---------------------------------------------------------------- */

.hero {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: clamp(28px, 4vw, 64px); align-items: center;
	padding-top: clamp(28px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 80px);
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; max-width: 600px; }
.hero__title { margin: 0; font-size: calc(var(--hs, 1) * clamp(46px, 7vw, 104px)); line-height: .95; letter-spacing: -.02em; }
.hero__text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--body); max-width: 440px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__proof { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--body); }
.hero__proof b { color: var(--ink); }
.hero__avatars { display: flex; }
.hero__avatars span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--paper); background: #d9cfc0; }
.hero__avatars span + span { margin-left: -9px; background: #c9ccc3; }
.hero__avatars span:last-child { background: #e3d2c2; }

.hero__media { position: relative; }
.hero__image { aspect-ratio: 4 / 5; max-height: 720px; width: 100%; border-radius: var(--radius); }
.hero__product {
	position: absolute; left: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px);
	display: flex; align-items: center; gap: 14px;
	padding: 10px 16px 10px 10px; max-width: calc(100% - 24px);
	border-radius: 999px; background: rgba(251, 250, 247, .96);
	box-shadow: 0 8px 30px rgba(23, 22, 20, .12);
	text-decoration: none; color: var(--ink);
	transition: transform .2s var(--ease);
}
.hero__product:hover { transform: translateY(-2px); color: var(--ink); }
.hero__product-thumb { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #e8e1d5; flex: none; }
.hero__product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero__product-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero__product-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__product-price { font-size: 13px; color: var(--muted); }
.hero__product-price del { color: var(--faint); }
.hero__product-price ins { text-decoration: none; }

/* Home: trust bar ----------------------------------------------------------- */

.trust-bar {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust-bar__item { display: flex; flex-direction: column; gap: 4px; padding: 22px clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
.trust-bar__item:first-child { padding-left: var(--gutter); border-left: 0; }
.trust-bar__item b { font-size: 14px; }
.trust-bar__item span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
	.trust-bar { grid-template-columns: 1fr 1fr; }
	.trust-bar__item { padding: 16px var(--gutter); border-left: 0; border-top: 1px solid var(--line); }
	.trust-bar__item:nth-child(-n+2) { border-top: 0; }
	.trust-bar__item:nth-child(even) { border-left: 1px solid var(--line); padding-left: 16px; }
}

/* Sections ------------------------------------------------------------------ */

.section { padding-top: var(--section); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head--wrap { flex-wrap: wrap; }

.category-rail { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.category-rail::-webkit-scrollbar { display: none; }
.category-card { flex: 1 0 170px; max-width: 300px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); scroll-snap-align: start; }
.category-card__image { aspect-ratio: 3 / 4; transition: opacity .2s; }
.category-card:hover .category-card__image { opacity: .88; }
.category-card__meta { display: flex; justify-content: space-between; font-size: 15px; font-weight: 500; }
.category-card__count { color: var(--faint); font-weight: 400; }
.category-card:hover { color: var(--ink); }

.sale-panel { padding: clamp(24px, 4vw, 56px); background: var(--card); border-radius: var(--radius-lg); }
.sale-panel__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.sale-panel__head > div:first-child { display: flex; flex-direction: column; gap: 10px; }
.sale-panel__more { margin-top: 28px; text-align: center; }

.countdown-blocks { display: flex; gap: 8px; }
.countdown-block {
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	min-width: 64px; padding: 12px 8px; border-radius: var(--radius);
	background: var(--ink); color: var(--card);
}
.countdown-block b { font-size: 26px; font-variant-numeric: tabular-nums; line-height: 1; }
.countdown-block span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.countdown-block.is-accent { background: var(--accent); }

.promo {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	border-radius: var(--radius-lg); overflow: hidden;
	background: var(--ink); color: var(--paper);
}
.promo__image { min-height: 380px; border-radius: 0; background-color: #3a3631; }
.promo__image.is-placeholder { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 14px); color: rgba(255, 255, 255, .35); }
.promo__copy { padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.promo__title { margin: 0; font-size: calc(var(--hs, 1) * clamp(36px, 4.4vw, 64px)); line-height: 1; }
.promo__copy p { margin: 0; font-size: 16px; line-height: 1.6; color: #c9c3b8; max-width: 420px; }

.review-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.review-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius-lg); overflow: hidden; }
.review-card__media .media { aspect-ratio: 4 / 3; border-radius: 0; }
.review-card__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.review-card__body p { margin: 0; font-size: 15px; line-height: 1.55; }
.review-card__foot {
	margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
	display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	font-size: 13px; color: var(--muted);
}
.review-card__foot b { color: var(--ink); }
.stars { color: var(--ink); letter-spacing: 2px; font-size: 13px; }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(130px, 14vw, 200px), 1fr)); gap: 16px; }
.mini-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.mini-card__image { aspect-ratio: 1; }
.mini-card__name { font-size: 13px; font-weight: 500; }
.mini-card__price { font-size: 13px; color: var(--muted); }
.mini-card__price del { color: var(--faint); }
.mini-card__price ins { text-decoration: none; }
.mini-card:hover { color: var(--accent); }

/* Newsletter ---------------------------------------------------------------- */

.newsletter { margin-top: clamp(56px, 7vw, 112px); }
.newsletter__inner {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; align-items: center;
	padding: clamp(32px, 5vw, 72px) 0; border-top: 1px solid var(--line);
}
.newsletter__copy p { margin: 10px 0 0; font-size: 15px; color: var(--body); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input[type="email"] {
	flex: 1 1 220px; height: 54px; padding: 0 20px;
	border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card);
	font-size: 15px;
}
.inline-form input[type="email"]:focus { outline: none; border-color: var(--ink); }
.inline-form .btn { height: 54px; }

/* Footer --------------------------------------------------------------------- */

.site-footer {
	display: flex; flex-direction: column; gap: 48px;
	padding-top: clamp(40px, 5vw, 72px); padding-bottom: 32px;
	background: var(--ink); color: #c9c3b8;
}
.site-footer { margin-top: clamp(56px, 7vw, 112px); }
.newsletter + .site-footer { margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 32px; font-size: 14px; }
.site-footer__about { display: flex; flex-direction: column; gap: 12px; }
.site-footer__about p { margin: 0; line-height: 1.6; }
.site-footer__logo { font-family: var(--serif); font-size: 32px; color: var(--paper); line-height: 1; }
.site-footer h2 { margin: 0 0 12px; font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--paper); letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #c9c3b8; text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.site-footer__bottom {
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	padding-top: 24px; border-top: 1px solid var(--ink-soft);
	font-size: 12px; color: var(--faint);
}

/* Checkout header / footer ---------------------------------------------- */

.checkout-header {
	display: flex; justify-content: space-between; align-items: center;
	height: var(--header-h); padding: 0 var(--gutter);
	border-bottom: 1px solid var(--line);
}
.checkout-header__secure { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body); }
.checkout-footer {
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	padding-top: 24px; padding-bottom: 32px; margin-top: 48px;
	border-top: 1px solid var(--line); font-size: 12px; color: var(--faint);
}

/* Pages & posts --------------------------------------------------------------- */

.page-wrap { padding-top: clamp(28px, 4vw, 56px); max-width: calc(760px + var(--gutter) * 2); margin: 0 auto; }
.page-wrap--wide { max-width: calc(1320px + var(--gutter) * 2); }
.page-header { margin-bottom: clamp(24px, 3vw, 40px); padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.page-header--center { text-align: center; border-bottom: 0; }
.page-header--center .eyebrow { margin-bottom: 12px; }
.page-title { margin: 0; font-size: calc(var(--hs, 1) * clamp(40px, 5vw, 72px)); line-height: 1; letter-spacing: -.02em; }
.page-intro { margin: 12px 0 0; color: var(--body); }
.index-page .page-wrap,
.blog .page-wrap,
.archive .page-wrap,
.search .page-wrap { max-width: calc(1320px + var(--gutter) * 2); }

.entry-content { font-size: calc(var(--body-size, 16px) + 1px); line-height: 1.7; }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2 { font-size: calc(var(--hs, 1) * clamp(30px, 3vw, 40px)); margin-top: 1.4em; }
.entry-content h3 { font-size: 26px; margin-top: 1.2em; }
.entry-content img { border-radius: var(--radius); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th,
.entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content blockquote { margin-left: 0; padding-left: 20px; border-left: 2px solid var(--ink); font-family: var(--serif); font-size: 26px; line-height: 1.3; }
.entry-content--full > * { max-width: none; }
.entry-content .alignwide { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }

.post-hero { margin-bottom: 32px; }
.post-hero img { width: 100%; border-radius: var(--radius-lg); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 32px 24px; }
.post-card { display: flex; flex-direction: column; gap: 14px; }
.post-card__media .media { aspect-ratio: 4 / 3; }
.post-card__meta { font-size: 13px; color: var(--muted); }
.post-card__title { margin: 4px 0 8px; font-size: 28px; }
.post-card__title a { text-decoration: none; }
.post-card p { margin: 0; color: var(--body); font-size: 15px; }

.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; font-size: 14px; }
.nav-links .page-numbers.current { background: var(--ink); color: var(--card); border-color: var(--ink); }

.empty-state { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 64px 0; text-align: center; }
.empty-state .search-pill { max-width: 480px; }
.empty-state--page { min-height: 50vh; justify-content: center; }

.comments { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid var(--line); }

/* Forms (shared) --------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
textarea,
select {
	width: 100%; min-height: 52px; padding: 0 16px;
	border-radius: var(--radius); border: 1px solid var(--line-strong);
	background: var(--card); color: var(--ink); font-size: 15px;
	transition: border-color .15s, box-shadow .15s;
}
textarea { padding: 14px 16px; min-height: 120px; line-height: 1.5; }
select {
	-webkit-appearance: none; appearance: none; padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23171614' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center;
}
input:focus,
textarea:focus,
select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
label { font-size: 14px; }

.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }

/* Engagement extras ------------------------------------------------------------ */

.whatsapp-float {
	position: fixed; right: 16px; bottom: 16px; z-index: 90;
	display: flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border-radius: 50%;
	background: #25d366; color: #fff;
	box-shadow: 0 8px 24px rgba(23, 22, 20, .2);
	transition: transform .2s var(--ease), bottom .25s var(--ease);
}
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }

.back-to-top {
	position: fixed; left: 16px; bottom: 16px; z-index: 90;
	width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 20px rgba(23, 22, 20, .08);
	transition: bottom .25s var(--ease);
}

.bottom-nav { display: none; }
@media (max-width: 760px) {
	.has-bottom-nav { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.bottom-nav {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
		display: grid; grid-template-columns: repeat(5, 1fr);
		height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
		background: rgba(251, 250, 247, .97);
		-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
		border-top: 1px solid var(--line);
		transition: transform .25s var(--ease);
	}
	.bottom-nav a,
	.bottom-nav button {
		position: relative;
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		border: 0; background: none; color: var(--muted);
		font-size: 11px; font-weight: 500; text-decoration: none;
	}
	.bottom-nav [aria-current="page"] { color: var(--ink); }
	.bottom-nav .badge { top: 6px; right: calc(50% - 22px); }
	.has-bottom-nav .whatsapp-float,
	.has-bottom-nav .back-to-top { bottom: calc(76px + env(safe-area-inset-bottom)); }
	.has-sticky-atc .bottom-nav { transform: translateY(100%); }
	/* Product pages already link to WhatsApp in the reassurance box; keep the buy buttons clear. */
	.single-product .whatsapp-float { display: none; }
}
.has-sticky-atc .whatsapp-float,
.has-sticky-atc .back-to-top { bottom: 92px; }

/* Lite mode (Save-Data) --------------------------------------------------------- */

.save-data .product-card__img--hover { display: none !important; }
.save-data .site-header,
.save-data .bottom-nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }

/* Print ---------------------------------------------------------------------- */

@media print {
	.announcement, .site-header, .site-footer, .newsletter, .bottom-nav, .whatsapp-float, .back-to-top, .drawer, .sticky-atc { display: none !important; }
}
