/*
Theme Name:        MUKI
Theme URI:         https://muki.coffee
Author:            MUKI
Description:       Custom theme for MUKI, specialty coffee roasters in the Gers. Beige, white and espresso; large photographs; a lot of air.
Version:           1.0.0
Requires at least: 6.4
Requires PHP:      7.4
Text Domain:       muki
License:           Proprietary
WC requires at least: 8.0
*/

/* ==========================================================================
   1. Fonts (self-hosted, woff2 only)
   ========================================================================== */

@font-face {
	font-family: "Haywire Condensed";
	src: url("assets/fonts/haywire-condensed.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Classico";
	src: url("assets/fonts/classico-regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "DM Mono";
	src: url("assets/fonts/dm-mono-regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "DM Mono";
	src: url("assets/fonts/dm-mono-medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   2. Tokens
   ========================================================================== */

:root {
	/* Colour: five, no more. Rose lives only in the photographs. */
	--ground: #FBF7F1;
	--cream: #F4EAD9;
	--white: #FFFFFF;
	--espresso: #38241D;
	--muted: #8B7770;
	--line: #E6DACB;

	/* Families */
	--font-display: "Haywire Condensed", "Arial Narrow", sans-serif;
	--font-serif: "Classico", Georgia, serif;
	--font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

	/* Type scale: a handful of sizes, nothing in between */
	--text-xs: 0.71875rem;                        /* 11.5px  mono caps: nav, captions, data */
	--text-sm: 0.8125rem;                         /* 13px    mono body, prices */
	--text-md: 1.0625rem;                         /* 17px    Classico sentences */
	--text-lg: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);   /* 22–28px  lead lines */
	--text-xl: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);   /* 36–56px  coffee names */
	--text-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); /* 40–72px  Haywire headlines */

	--tracking-mono: 0.12em;
	--leading-tight: 1.05;
	--leading-body: 1.6;

	/* Space */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 1rem;
	--space-4: 1.5rem;
	--space-5: 2.5rem;
	--space-6: 4rem;
	--space-7: clamp(4.5rem, 3rem + 6vw, 8rem);

	/* Layout */
	--gutter: 1rem;
	--measure: 38rem;
	--content: 72rem;
	--wide: 90rem;
	--header-height: 64px;
	--notice-height: 0px; /* 28px when the roast notice is shown */
	--side-padding: 18px;

	/* Motion */
	--ease: cubic-bezier(0.25, 0.1, 0.25, 1);
	--fade: 400ms;
}

@media (min-width: 48em) {
	:root {
		--gutter: 2rem;
		--header-height: 84px;
		--side-padding: 32px;
	}
}

@media (min-width: 75em) {
	:root {
		--gutter: 3rem;
	}
}

/* ==========================================================================
   3. Reset
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: var(--header-height);
}

.has-roast-notice {
	--notice-height: 28px;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
	margin: 0;
}

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

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

button {
	cursor: pointer;
}

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

/* ==========================================================================
   4. Base
   ========================================================================== */

body {
	background: var(--ground);
	color: var(--espresso);
	font-family: var(--font-serif);
	font-size: var(--text-md);
	line-height: var(--leading-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-serif);
	font-weight: 400;
	line-height: var(--leading-tight);
}

h1 { font-size: var(--text-xl); }
h2 { font-size: var(--text-lg); }
h3, h4, h5, h6 { font-size: var(--text-md); }

p + p {
	margin-top: var(--space-3);
}

a {
	color: var(--espresso);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: text-decoration-color var(--fade) var(--ease);
}

a:hover {
	text-decoration-color: transparent;
}

:focus-visible {
	outline: 1px solid var(--espresso);
	outline-offset: 3px;
}

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: var(--space-5) 0;
}

::selection {
	background: var(--cream);
	color: var(--espresso);
}

/* ==========================================================================
   5. Utilities
   ========================================================================== */

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

.screen-reader-text:focus {
	position: fixed !important;
	top: var(--space-2);
	left: var(--space-2);
	z-index: 100;
	width: auto;
	height: auto;
	padding: var(--space-2) var(--space-3);
	margin: 0;
	clip: auto;
	clip-path: none;
	background: var(--espresso);
	color: var(--cream);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: var(--tracking-mono);
	text-decoration: none;
}

/* Small data: DM Mono, uppercase, wide tracking */
.mono {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	line-height: 1.6;
	letter-spacing: var(--tracking-mono);
	text-transform: uppercase;
}

.muted {
	color: var(--muted);
}

/* Short headlines in Haywire Condensed */
.display {
	font-family: var(--font-display);
	font-size: var(--text-display);
	font-weight: 400;
	line-height: 0.95;
	text-transform: uppercase;
}

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

.container--wide {
	max-width: var(--wide);
}

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

/* Full-bleed: edge to edge, whatever the parent */
.bleed {
	width: 100vw;
	margin-inline: calc(50% - 50vw);
}

/* Small mono label above section titles (homepage, shop) */
.home-label {
	margin: 0;
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Quiet mono link with an underline: « Tout voir », « Comment ça marche » */
.home-link {
	padding-bottom: 4px;
	border-bottom: 1px solid currentColor;
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.home-link:hover {
	border-bottom-color: transparent;
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */

.button,
button.button,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: 3rem;
	padding: 0.875rem 1.75rem;
	border: 1px solid var(--espresso);
	border-radius: 0;
	background: var(--espresso);
	color: var(--cream);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: 400;
	line-height: 1;
	letter-spacing: var(--tracking-mono);
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color var(--fade) var(--ease), color var(--fade) var(--ease);
}

.button:hover,
button.button:hover,
input[type="submit"]:hover {
	background: transparent;
	color: var(--espresso);
}

.button--outline {
	background: transparent;
	color: var(--espresso);
}

.button--outline:hover {
	background: var(--espresso);
	color: var(--cream);
}

/* Quiet text link with an arrow, used under slides and sections */
.link-more {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: var(--tracking-mono);
	text-transform: uppercase;
}

/* ==========================================================================
   7. Header — design/01-header, sizes from design/02-hero
   Roast notice on top (scrolls away), then a sticky bar:
   ☰ menu left, logo centred, FR / EN and cart right.
   ========================================================================== */

.roast-notice {
	/* Block, not flex: flex would swallow the space after the colon. */
	position: relative;
	height: var(--notice-height);
	margin: 0;
	padding-inline: var(--side-padding);
	overflow: hidden;
	line-height: var(--notice-height);
	text-align: center;
	background: var(--espresso);
	color: var(--cream);
	font-family: var(--font-mono);
	font-size: 9.5px;
	letter-spacing: 0.1em; /* the free-delivery message fits a 390px phone */
	text-transform: uppercase;
	white-space: nowrap;
}

.roast-notice b {
	font-weight: 500;
	color: var(--white);
}

.roast-notice__item {
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.roast-notice a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: rgba(244, 234, 217, 0.45);
	text-underline-offset: 0.3em;
}

.roast-notice a:hover,
.roast-notice a:focus-visible {
	color: var(--white);
	text-decoration-color: currentColor;
}

/* Two items (roast and message): stacked, a soft fade between them */
.roast-notice--rotate .roast-notice__item {
	position: absolute;
	inset: 0;
	padding-inline: var(--side-padding);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.roast-notice--rotate .roast-notice__item.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.8s ease, visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
	.roast-notice--rotate .roast-notice__item,
	.roast-notice--rotate .roast-notice__item.is-active {
		transition: none;
	}
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--ground);
	border-bottom: 1px solid var(--line);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.site-header__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	height: calc(var(--header-height) - 1px); /* the bottom border completes the height */
	padding-inline: var(--side-padding);
}

.site-header__start,
.site-header__end {
	display: flex;
	align-items: center;
	gap: 16px;
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.site-header__end {
	justify-content: flex-end;
}

.site-header a {
	text-decoration: none;
}

.site-header a:hover {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.site-logo {
	display: block;
	color: var(--espresso);
	line-height: 0;
}

.site-logo svg {
	width: auto;
	height: 26px;
	fill: var(--espresso);
}

/* ☰: two 1.5px lines, 22px wide, 9px apart, pure CSS */
.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-left: -8px;
	padding: 8px;
	border: 0;
	background: none;
	color: var(--espresso);
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
}

.menu-toggle__icon {
	display: block;
	width: 22px;
	height: 9px;
	border-block: 1.5px solid currentColor;
}

/* Phone: icon only on the left, FR / EN moves into the menu panel */
.menu-toggle__label,
.site-header__lang {
	display: none;
}

@media (min-width: 48em) {
	.roast-notice {
		font-size: 10.5px;
		letter-spacing: 0.16em;
	}

	.site-header__start,
	.site-header__end {
		gap: 28px;
	}

	.site-logo svg {
		height: 34px;
	}

	.menu-toggle__label,
	.site-header__lang {
		display: block;
	}
}

/* FR / EN: active language espresso, the other one and the slash muted */
.lang-switch {
	margin: 0;
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.lang-switch a {
	color: var(--muted);
	text-decoration: none;
}

.lang-switch a[aria-current="true"] {
	color: var(--espresso);
}

.cart-link {
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Menu panel: full height from the left, over a soft espresso overlay
   -------------------------------------------------------------------------- */

.menu-panel {
	position: fixed;
	inset: 0;
	z-index: 100;
	visibility: hidden;
	transition: visibility 0s linear 250ms;
}

.menu-panel.is-open {
	visibility: visible;
	transition: none;
}

.menu-panel__overlay {
	position: absolute;
	inset: 0;
	background: var(--espresso);
	opacity: 0;
	transition: opacity 250ms ease;
}

.menu-panel.is-open .menu-panel__overlay {
	opacity: 0.25;
}

.menu-panel__sheet {
	position: absolute;
	inset: 0 auto 0 0;
	display: flex;
	flex-direction: column;
	width: min(100%, 440px);
	padding: calc(var(--header-height) + 24px) var(--side-padding) 32px;
	overflow-y: auto;
	background: var(--ground);
	opacity: 0;
	transform: translateX(-24px);
	transition: opacity 250ms ease, transform 250ms ease;
}

.admin-bar .menu-panel__sheet {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.menu-panel.is-open .menu-panel__sheet {
	opacity: 1;
	transform: none;
}

.menu-panel__close {
	position: absolute;
	top: calc(var(--header-height) / 2 - 20px);
	left: calc(var(--side-padding) - 10px);
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--espresso);
	font-size: 18px;
	line-height: 1;
}

.menu-panel__nav ul {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu-panel__nav a {
	font-family: var(--font-serif);
	font-size: 28px;
	line-height: 1.2;
	text-decoration: none;
}

.menu-panel__nav a:hover,
.menu-panel__nav .current-menu-item > a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.menu-panel__meta {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-top: auto;
	padding-top: 48px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.menu-panel__meta .instagram-link {
	text-decoration: none;
}

.menu-is-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.menu-panel__sheet {
		transform: none;
	}
}

/* --------------------------------------------------------------------------
   Plugin output in the header area
   -------------------------------------------------------------------------- */

/* The header has its own FR / EN; hide TranslatePress' floating switcher. */
.trp-floating-switcher {
	display: none !important;
}

/* WooCommerce store notice (the subscription offer): a quiet bar pinned to
   the bottom of the screen instead of a purple band over the roast notice. */
.woocommerce-store-notice,
p.demo_store {
	position: fixed;
	inset: auto 0 0;
	top: auto;
	z-index: 60;
	margin: 0;
	padding: 12px calc(var(--side-padding) + 64px) 12px var(--side-padding);
	background: var(--cream);
	border-top: 1px solid var(--line);
	box-shadow: none;
	color: var(--espresso);
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
}

.woocommerce-store-notice a,
p.demo_store a {
	color: var(--espresso);
}

.woocommerce-store-notice__dismiss-link {
	position: absolute;
	top: 50%;
	right: var(--side-padding);
	transform: translateY(-50%);
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

/* ==========================================================================
   8. Main
   ========================================================================== */

.site-main {
	min-height: 60vh;
}

.entry {
	padding-block: var(--space-7);
}

.entry__header {
	margin-bottom: var(--space-5);
}

.entry__content > * + * {
	margin-top: var(--space-3);
}

.entry__content > :is(h2, h3) {
	margin-top: var(--space-5);
}

/* Let Elementor and full-width blocks run edge to edge */
.entry__content > .alignfull,
.elementor-page .entry {
	padding-block: 0;
}

/* ==========================================================================
   8b. Coffee cards — design/03-home (reused for the shop grid)
   Photo, name and price, origin, notes, roast scale, weight, grind, Ajouter.
   ========================================================================== */

.coffee-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 14px;
}

@media (min-width: 48em) {
	.coffee-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 28px;
	}

	/* Shop page and « Vous aimerez aussi »: three cards per row */
	.coffee-grid--three {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.coffee-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.coffee-card__photo {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--cream);
}

.coffee-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Second gallery photo, shown on hover only (devices with a mouse) */
.coffee-card__second {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity var(--fade) var(--ease);
}

@media (hover: hover) {
	.coffee-card__photo:hover .coffee-card__second {
		opacity: 1;
	}
}

.coffee-card__meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 20px;
}

.coffee-card__name {
	margin: 0;
	font-family: var(--font-serif);
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.02em;
}

.coffee-card__name a {
	text-decoration: none;
}

.coffee-card__name a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.coffee-card__price,
.coffee-card__origin,
.coffee-card__roast-label {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.5;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.coffee-card__origin {
	margin-top: 10px;
	color: var(--muted);
}

/* Notes take the free height, so every card's controls line up at the bottom */
.coffee-card__notes {
	flex: 1;
	margin: 8px 0 0;
	font-family: var(--font-serif);
	font-size: 15px;
	line-height: 1.4;
}

.coffee-card__roast {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.coffee-card__roast-label {
	display: none;
	color: var(--muted);
}

/* The roast scale: five small blocks, filled up to the level */
.roast-scale {
	display: flex;
	gap: 4px;
}

.roast-scale i {
	display: block;
	width: 12px;
	height: 9px;
	border: 1.2px solid var(--espresso);
}

.roast-scale i.is-filled {
	background: var(--espresso);
}

@media (min-width: 48em) {
	.coffee-card__meta {
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		gap: 12px;
	}

	.coffee-card__name {
		font-size: 30px;
	}

	.coffee-card__price,
	.coffee-card__origin,
	.coffee-card__roast-label {
		font-size: 11px;
		letter-spacing: 0.12em;
	}

	.coffee-card__price {
		white-space: nowrap;
	}

	.coffee-card__notes {
		font-size: 17px;
	}

	.coffee-card__roast-label {
		display: block;
	}

	.roast-scale i {
		width: 14px;
		height: 10px;
	}
}

/* Buy controls: weight (segmented), grind (select), Ajouter */
.coffee-buy {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	margin-top: 16px;
}

@media (min-width: 48em) {
	.coffee-buy {
		grid-template-columns: auto minmax(0, 1fr);
	}
}

.coffee-buy button,
.coffee-buy select,
.coffee-buy__add {
	height: 40px;
	margin: 0;
	border: 1px solid var(--espresso);
	border-radius: 0;
	background: none;
	color: var(--espresso);
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.coffee-buy__seg {
	display: flex;
}

.coffee-buy__seg button {
	flex: 1;
	padding: 0 12px;
	border-right-width: 0;
	white-space: nowrap;
}

.coffee-buy__seg button:last-child {
	border-right-width: 1px;
}

.coffee-buy__seg button[aria-pressed="true"] {
	background: var(--espresso);
	color: var(--cream);
}

.coffee-buy select {
	width: 100%;
	min-width: 0;
	padding: 0 28px 0 10px;
	-webkit-appearance: none;
	appearance: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2338241D'/%3E%3C/svg%3E") right 10px center no-repeat;
	cursor: pointer;
}

.coffee-buy__add {
	display: flex;
	grid-column: 1 / -1;
	align-items: center;
	justify-content: center;
	background: var(--espresso);
	color: var(--cream);
	text-decoration: none;
	transition: background-color var(--fade) var(--ease), color var(--fade) var(--ease);
}

.coffee-buy .coffee-buy__add {
	background: var(--espresso);
	color: var(--cream);
}

.coffee-buy .coffee-buy__add:hover:not(:disabled) {
	background: transparent;
	color: var(--espresso);
}

.coffee-buy .coffee-buy__add:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Without JavaScript the controls cannot pick a variation: keep only the link */
.no-js .coffee-buy__seg,
.no-js .coffee-buy select {
	display: none;
}

/* "Coming soon" card: a quiet dashed frame, desktop only */
.coffee-soon {
	display: none;
}

@media (min-width: 48em) {
	.coffee-soon {
		display: flex;
		align-items: center;
		justify-content: center;
		align-self: start;
		aspect-ratio: 4 / 5;
		border: 1px dashed var(--line);
		color: var(--muted);
		font-family: var(--font-serif);
		font-size: 28px;
		line-height: 1.3;
		text-align: center;
	}

	.coffee-soon small {
		display: block;
		margin-top: 6px;
		font-family: var(--font-mono);
		font-size: 11px;
		letter-spacing: 0.16em;
		text-transform: uppercase;
	}
}

/* ==========================================================================
   9. Footer — design/04-footer
   Cream, hairline on top, brand and three link columns, bottom bar,
   then the MUKI wordmark cut by the bottom edge of the page.
   ========================================================================== */

.site-footer {
	margin-top: 90px;
	border-top: 1px solid var(--line);
	background: var(--cream);
	color: var(--espresso);
}

.site-footer a {
	text-decoration: none;
}

.site-footer__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 36px 20px;
	padding: 56px 20px 40px;
}

.site-footer__brand {
	grid-column: 1 / -1;
}

.site-footer__tagline,
.site-footer__title,
.site-footer__bottom {
	margin: 0;
	color: var(--muted);
	font-family: var(--font-mono);
	font-weight: 400;
	text-transform: uppercase;
}

.site-footer__tagline,
.site-footer__title {
	font-size: 11px;
	line-height: 1.6;
	letter-spacing: 0.16em;
}

.site-footer__sentence {
	max-width: 22em;
	margin: 26px 0 0;
	font-family: var(--font-serif);
	font-size: 19px;
	line-height: 1.5;
}

.site-footer__mail {
	display: inline-block;
	margin-top: 22px;
	padding-bottom: 3px;
	border-bottom: 1px solid currentColor;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.06em;
}

.site-footer__mail:hover {
	border-bottom-color: transparent;
}

.site-footer__title {
	margin: 6px 0 22px;
	line-height: 1;
}

.site-footer__col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__col li {
	margin: 0 0 12px;
	font-family: var(--font-serif);
	font-size: 18px;
	line-height: 1.3;
}

.site-footer__col a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.site-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	border-top: 1px solid var(--line);
	font-size: 10.5px;
	line-height: 1.6;
	letter-spacing: 0.14em;
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__bottom .lang-switch {
	font-size: 10.5px;
}

/* The big wordmark: full width, only its top shows */
.site-footer__wordmark {
	height: clamp(120px, 19vw, 300px);
	overflow: hidden;
	padding: 16px 20px 0;
}

.site-footer__wordmark svg {
	display: block;
	width: 100%;
	height: auto;
	fill: var(--espresso);
}

@media (min-width: 48em) {
	.site-footer {
		margin-top: 140px;
	}

	.site-footer__cols {
		grid-template-columns: 1.4fr 1fr 1fr 1fr;
		gap: 40px;
		padding: 80px 40px 70px;
	}

	.site-footer__brand {
		grid-column: auto;
	}

	.site-footer__bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 20px;
		padding: 22px 40px;
	}

	.site-footer__wordmark {
		padding: 24px 40px 0;
	}
}

/* ==========================================================================
   10. Side cart — design/07-cart-checkout §1
   From the right, 440px on desktop, full width on phones.
   ========================================================================== */

.cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 110;
	visibility: hidden;
	transition: visibility 0s linear 250ms;
}

.cart-drawer.is-open {
	visibility: visible;
	transition: none;
}

.cart-drawer__overlay {
	position: absolute;
	inset: 0;
	background: var(--espresso);
	opacity: 0;
	transition: opacity 250ms ease;
}

.cart-drawer.is-open .cart-drawer__overlay {
	opacity: 0.28;
}

.cart-drawer__panel {
	position: absolute;
	inset: 0 0 0 auto;
	width: min(100%, 440px);
	background: var(--ground);
	transform: translateX(24px);
	opacity: 0;
	transition: opacity 250ms ease, transform 250ms ease;
}

.admin-bar .cart-drawer__panel {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.cart-drawer.is-open .cart-drawer__panel {
	transform: none;
	opacity: 1;
}

.cart-is-open {
	overflow: hidden;
}

.cart-drawer__content {
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: opacity 150ms ease;
}

.cart-drawer__content.is-busy {
	opacity: 0.5;
	pointer-events: none;
}

.cart-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 20px;
	border-bottom: 1px solid var(--line);
}

.cart-drawer__head h2 {
	margin: 0;
	font-family: var(--font-serif);
	font-size: 28px;
	font-weight: 400;
	line-height: 1.1;
}

.cart-drawer__close,
.cart-drawer__continue,
.cart-item__remove {
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--espresso);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Free delivery progress */
.cart-drawer__free {
	padding: 22px 20px;
	border-bottom: 1px solid var(--line);
}

.cart-drawer__free p {
	margin: 0 0 12px;
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cart-drawer__free b {
	font-weight: 500;
}

.cart-drawer__bar {
	display: block;
	height: 2px;
	background: var(--line);
}

.cart-drawer__bar span {
	display: block;
	height: 100%;
	background: var(--espresso);
	transition: width 400ms ease;
}

/* Items: the list scrolls, header and footer stay */
.cart-drawer__items {
	flex: 1;
	margin: 0;
	padding: 0 20px;
	overflow-y: auto;
	list-style: none;
	overscroll-behavior: contain;
}

.cart-item {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr) auto;
	gap: 18px;
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
}

.cart-item__photo {
	display: block;
	width: 84px;
	height: 105px;
	overflow: hidden;
	background: var(--cream);
}

.cart-item__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cart-item__name {
	margin: 0;
	font-family: var(--font-serif);
	font-size: 24px;
	line-height: 1.1;
}

.cart-item__name a {
	text-decoration: none;
}

.cart-item__variation,
.cart-item__price {
	margin: 6px 0 0;
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cart-item__variation {
	color: var(--muted);
}

.cart-item__price {
	margin-top: 4px;
	text-align: right;
	white-space: nowrap;
}

.cart-item__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
}

.cart-item__qty {
	display: inline-flex;
	align-items: center;
	height: 34px;
	margin-top: 14px;
	border: 1px solid var(--espresso);
	font-family: var(--font-mono);
	font-size: 12px;
}

.cart-item__qty button {
	width: 30px;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: var(--espresso);
	font: inherit;
}

.cart-item__qty button:disabled {
	color: var(--line);
}

.cart-item__qty span {
	min-width: 24px;
	text-align: center;
}

.cart-item__remove {
	padding: 0 0 2px;
	border-bottom: 1px solid currentColor;
	color: var(--muted);
}

.cart-item__remove:hover {
	color: var(--espresso);
}

/* Footer: subtotal, notes, Commander */
.cart-drawer__foot {
	padding: 22px 20px 24px;
	border-top: 1px solid var(--espresso);
}

.cart-drawer__subtotal {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.cart-drawer__subtotal strong {
	font-family: var(--font-serif);
	font-size: 26px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.cart-drawer__note {
	margin: 4px 0 0;
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 10.5px;
	line-height: 1.5;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cart-drawer__checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 54px;
	margin-top: 20px;
	border: 1px solid var(--espresso);
	background: var(--espresso);
	color: var(--cream);
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color var(--fade) var(--ease), color var(--fade) var(--ease);
}

.cart-drawer__checkout:hover {
	background: transparent;
	color: var(--espresso);
}

.cart-drawer__continue {
	display: block;
	margin: 14px auto 0;
	color: var(--muted);
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.cart-drawer__empty {
	padding: 40px 20px;
}

.cart-drawer__empty p {
	margin: 0 0 18px;
	font-family: var(--font-serif);
	font-size: 22px;
}

@media (min-width: 48em) {
	.cart-drawer__head,
	.cart-drawer__free,
	.cart-drawer__foot,
	.cart-drawer__empty {
		padding-inline: 32px;
	}

	.cart-drawer__items {
		padding-inline: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cart-drawer__panel {
		transform: none;
	}
}

/* Cart lines at checkout and on the cart page: short name, options below */
.muki-item-name {
	display: block;
	color: var(--espresso);
	font-family: var(--font-serif);
	font-size: 24px;
	line-height: 1.1;
	letter-spacing: 0.02em;
}

.muki-item-variation {
	display: block;
	margin-top: 6px;
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

@media (min-width: 64em) {
	.woocommerce-checkout .muki-item-name {
		font-size: 30px;
	}
}


/* ==========================================================================
   Photo framing on phones (inc/focus.php): a separate « cadrage sur
   mobile » or « zoom sur mobile » wins over the desktop inline style.
   ========================================================================== */

@media (max-width: 47.99em) {
	.muki-focus-mp {
		object-position: var(--focus-m) !important;
		transform-origin: var(--focus-m) !important;
	}

	.muki-focus-mz {
		transform: scale(var(--zoom-m)) !important;
	}
}

/* ==========================================================================
   Cookie banner (SureCookie)
   Colours come from the « MUKI » palette (inc/cookies.php); here the fonts
   and shapes. « Tout accepter » and « Tout refuser » look the same, so
   refusing is as easy to see as accepting. No red, no rounded corners.
   ========================================================================== */

/* Base font for everything inside the banner and the preferences window.
   « body » makes it outweigh SureCookie's own « :is(#root) * » rule. */
body :is(#surecookie-public-root, #surecookie-preferences-root),
body :is(#surecookie-public-root, #surecookie-preferences-root) * {
	font-family: var(--font-serif) !important;
}

:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-banner,
:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-preferences-modal {
	border: 1px solid var(--line);
	border-radius: 0;
	box-shadow: 0 20px 50px -24px rgba(56, 36, 29, 0.35);
	color: var(--espresso);
	font-family: var(--font-serif) !important; /* SureCookie forces Figtree with !important */
}

:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-banner-heading,
:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-modal-title {
	color: var(--espresso);
	font-family: var(--font-mono) !important;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-banner-description,
:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-banner-description p,
:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-modal-description,
:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-category-details {
	color: var(--espresso);
	font-family: var(--font-serif) !important;
	font-size: 16px;
	line-height: 1.5;
}

:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-banner a,
:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-preferences-modal a {
	color: var(--espresso);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Buttons: mono caps, square. Accept and refuse filled espresso; « Personnaliser » outlined. */
:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-banner .surecookie-btn-base,
:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-preferences-modal .surecookie-btn-outline,
:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-preferences-modal .surecookie-btn-outline-secondary,
:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-preferences-modal .surecookie-btn-primary {
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--espresso);
	border-radius: 0;
	box-shadow: none;
	font-family: var(--font-mono) !important;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transition: background-color var(--fade) var(--ease), color var(--fade) var(--ease);
}

:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-banner .surecookie-accept-all-btn,
:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-banner .surecookie-decline-btn,
:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-preferences-modal .surecookie-btn-outline,
:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-preferences-modal .surecookie-btn-outline-secondary {
	background: var(--espresso);
	color: var(--cream);
}

:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-banner .surecookie-preferences-btn,
:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-preferences-modal .surecookie-btn-primary {
	background: transparent;
	color: var(--espresso) !important; /* SureCookie sets it inline */
}

:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-banner .surecookie-btn-base:hover,
:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-banner .surecookie-btn-base:focus-visible,
:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-preferences-modal :is(.surecookie-btn-outline, .surecookie-btn-outline-secondary, .surecookie-btn-primary):hover,
:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-preferences-modal :is(.surecookie-btn-outline, .surecookie-btn-outline-secondary, .surecookie-btn-primary):focus-visible {
	background: var(--ground);
	color: var(--espresso) !important;
}

/* Preferences window */
:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-preferences-modal {
	background: var(--cream);
}

:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-category-item {
	border-color: var(--line);
	border-radius: 0;
}

:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-category-name {
	color: var(--espresso);
	font-family: var(--font-serif) !important;
	font-size: 18px;
	font-weight: 400;
}

:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-always-active {
	color: var(--muted);
	font-family: var(--font-mono) !important;
	font-size: 10.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-toggle-btn[aria-checked="false"] {
	background-color: var(--line) !important; /* SureCookie's grey when off */
}

:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-branding,
:is(#surecookie-public-root, #surecookie-preferences-root) .surecookie-modal-branding-content {
	color: var(--muted) !important;
	font-family: var(--font-mono) !important;
	font-size: 10px;
	letter-spacing: 0.06em;
}

:is(#surecookie-public-root, #surecookie-preferences-root) button:focus-visible,
:is(#surecookie-public-root, #surecookie-preferences-root) a:focus-visible {
	outline: 2px solid var(--espresso) !important; /* SureCookie's green outline */
	outline-offset: 2px;
}
