/* Matjari chrome: the furniture around the content, on every page.
   The contract is docs/DESIGN-SYSTEM.md: 2.9 and 3.2 (header, dock, bars),
   3.4 (the cart drawer), 4.1 (the eight headers), 4.5 (the six footers),
   4.7 (category navigation), 4.8 (dock and the WhatsApp button), 4.11 (the
   four promo bars), 5.5 (ownership), section 7 (hygiene).

   THIS FILE HAS TWO HALVES, both rewritten to the contract, so it is on the
   migrated list in tests/lib/css-scan.php and held to every rule of section 7.
   The TOP HALF (1 to 5): the promo bar and its countdown, the header, the
   navigation, search, preferences, the language switch, the menu drawer and
   every scrim, the phone dock, the category navigation.
   The BOTTOM HALF (6 to 12): the cart drawer, the free-delivery bar, the
   popup, toasts, the footer, the floating WhatsApp button, the sticky action
   bars. Its ranges and its hover rules are gathered after section 12.

   How it is keyed. Everything a store can vary is a class on <html>:
   nav--<id> picks the header's composition, foot--<id> the footer's,
   dock--<id> the dock, catnav--<style> the Look's category style, tpl-<t> the
   template. The header and the footer have no family class of their own, so
   the html class is the only key (5.1). Every size and colour is a token;
   colours are read through the current layer (--m-c-*), so the same rule is
   right in the promo bar, in a drawer, in the footer and on the page. Ranges
   are min-width only: 600, 900, 1200.

   The bottom half is written tight (one rule to a line) because this file has
   a byte budget (5.4) and it is nearly spent: before adding a rule, look for
   one to share. */

/* ==========================================================================
   1. The promo bar (4.11). One line at --m-promo-h, never under a touch:
   where she set a link the whole bar is that link. The text ellipsises and
   the countdown stays at the end; that is `static`, which the core draws.
   The ticker, the chip of `action` and the turning messages of `rotate` are
   option files (5.4). A promo context: PHP prints m-ctx m-ctx--promo, the bar
   reads the layer.
   ========================================================================== */
.m-promo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--m-sp-3);
	block-size: var(--m-promo-h);
	min-block-size: var(--m-touch);
	padding-inline: var(--m-gutter);
	overflow: hidden;
	background-color: var(--m-c-bg);
	color: var(--m-c-ink);
	font-family: var(--m-font-ui);
	font-size: var(--m-fs-small);
	font-weight: var(--m-fw-strong);
	line-height: var(--m-lh-control);
}
.m-promo__msg {
	display: flex;
	align-items: center;
	flex: 0 1 auto;
	align-self: stretch;
	min-inline-size: 0;
	min-block-size: var(--m-touch);
	overflow: hidden;
	color: inherit;
	text-decoration: none;
}
.m-promo__text { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* The countdown: small numerals, so the text face, on a quiet chip of the
   bar's own ink. Empty until fx.js writes it. */
.m-countdown {
	flex: none;
	padding: var(--m-sp-1) var(--m-sp-2);
	border-radius: var(--m-r-badge);
	background-color: rgba(var(--m-c-ink-rgb), .14);
	font-family: var(--m-font-text);
	font-size: var(--m-fs-micro);
	font-weight: var(--m-fw-strong);
	font-variant-numeric: var(--m-fvn);
	line-height: var(--m-lh-control);
	white-space: nowrap;
}
.m-countdown:empty { display: none; }
/* The clock, as fx.js builds it: a box as wide as the widest time the page's
   digits can draw (the script states it), its hh:mm:ss (a run that carries
   dir) standing at the box's start, the page's: against the seconds in an
   RTL line, the hours in an LTR one. The seconds stand in a cell as wide as
   their widest number, set against their colon. So the line is as wide at
   every second and nothing beside it moves. */
.m-countdown__t, .m-countdown__c { display: inline-block; text-align: start; }

/* ==========================================================================
   2. The header (3.2). Sticky under the admin bar, a page surface with a
   blur behind it. Under 900 it never compacts: it slides away whole while the
   page scrolls down (.is-away) and comes back whole on the way up, so the
   screen is the shopper's. From 900 it stays, and only the brand row
   compacts. Nothing here moves the content: sliding is a transform, and the
   height the brand row gives up is handed back as margin in the same frame.
   ========================================================================== */
.m-header {
	position: sticky;
	top: var(--m-header-top);
	z-index: var(--m-z-header);
	background-color: var(--m-header-bg);
	-webkit-backdrop-filter: blur(var(--m-header-blur));
	backdrop-filter: blur(var(--m-header-blur));
	transition: transform var(--m-dur-panel) var(--m-ease), box-shadow var(--m-dur-panel) var(--m-ease);
}
/* The hairline under a scrolled header hangs below its box, so the header is
   exactly as tall as its tokens say; and the elevation token stands alone,
   because a Look without shadows sets it to `none`, which no list can hold. */
.m-header::after {
	content: "";
	position: absolute;
	top: 100%;
	inset-inline: 0;
	block-size: var(--m-bw-hair);
	background-color: var(--m-c-line);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--m-dur-panel) var(--m-ease);
}
.m-header.is-scrolled { box-shadow: var(--m-elev-header); }
.m-header.is-scrolled::after { opacity: 1; }
.m-header.is-away { transform: translateY(calc(-100% - var(--m-header-top))); box-shadow: none; }
/* The checkout keeps its static minimal header. The product page and the cart
   take the sticky one like every other page (3.2): a product is the commonest
   landing page, and a menu button a long scroll away is no menu button. */
.tpl-checkout .m-header { position: relative; top: auto; }

/* ---- The brand row. One grid: start · brand · end. Two equal side columns,
   so a name is centred on the page; under 900 each keeps at least what its
   controls need, so a long name gives way (it ellipsises) and never runs
   under an icon (4.1.4). From 900 the sides may shrink, and the links scroll.
   The row's height is never animated (12.5): compaction is a cut. ---- */
.m-nav {
	display: grid;
	grid-template-columns: minmax(min-content, 1fr) auto minmax(min-content, 1fr);
	align-items: center;
	column-gap: var(--m-sp-3);
	min-block-size: calc(var(--m-header-h) + var(--m-header-extra));
}
.m-nav__group { display: flex; align-items: center; min-inline-size: 0; }
/* An icon is a 20px drawing in a 44px box: both clusters step out by the 12px
   of air so the drawing, not the box, sits on the page's edge (audit S5). */
.m-nav__group--start { justify-self: start; max-inline-size: 100%; margin-inline-start: calc(var(--m-sp-3) * -1); }
.m-nav__group--icons { justify-self: end; margin-inline-end: calc(var(--m-sp-3) * -1); }

/* ---- The brand: a wordmark, or the logo image. A square logo is a sticker
   with its own background, so it is framed like an app icon and its name
   joins it from 600 (audit I6). A wide logo is a wordmark already. One touch
   tall, and never under 96px wide: what gives way before it is 4.1.4. ---- */
.m-nav__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	justify-self: center;
	gap: var(--m-sp-2);
	min-inline-size: 96px;
	max-inline-size: 100%;
	min-block-size: var(--m-touch);
	color: var(--m-c-ink);
	text-decoration: none;
}
.m-nav__logo {
	display: block;
	flex: none;
	inline-size: auto;
	max-inline-size: 180px;
	block-size: var(--m-logo-h);
	object-fit: contain;
}
/* A logo is made for one form of the store (8.9). With a second logo each
   shows in its own form. With one, in the form it was not made for it stands
   on a chip of the ground it was approved on, so it can never vanish. */
.tone-dark .m-nav__logo--light, .tone-light .m-nav__logo--dark { display: none; }
.tone-dark .m-nav__logo--light.m-nav__logo--only, .tone-light .m-nav__logo--dark.m-nav__logo--only {
	display: block;
	border-radius: var(--m-r-box);
	background-color: var(--m-logo-chip);
	box-shadow: 0 0 0 var(--m-sp-1) var(--m-logo-chip);
}
.logo--square .m-nav__logo {
	inline-size: calc(var(--m-logo-h) + var(--m-sp-2));
	block-size: calc(var(--m-logo-h) + var(--m-sp-2));
	border: var(--m-bw-hair) solid var(--m-c-line);
	border-radius: var(--m-r-box);
	object-fit: cover;
}
.m-nav__wordmark {
	overflow: hidden;
	padding-block: var(--m-sp-1);
	font-family: var(--m-wordmark-font);
	font-size: var(--m-wordmark-fs);
	font-weight: var(--m-wordmark-fw);
	line-height: var(--m-lh-heading);
	letter-spacing: var(--m-ls-display);
	white-space: nowrap;
	text-overflow: ellipsis;
}
.logo--square .m-nav__wordmark { display: none; }
/* Where the brand sits at the start it has the row to itself, so the name is
   there on a phone too. */
.m-nav__tagline { display: none; }

/* ---- Icons and the menu button: one 44px box, one feedback. ---- */
.m-nav__icon, .m-nav__burger, .m-drawer__close {
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: none;
	inline-size: var(--m-touch);
	block-size: var(--m-touch);
	padding: 0;
	border: 0;
	border-radius: var(--m-r-control);
	background-color: transparent;
	color: var(--m-c-ink);
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--m-dur-press) var(--m-ease), transform var(--m-dur-press) var(--m-ease);
}
.m-nav__icon:active, .m-nav__burger:active, .m-drawer__close:active { background-color: rgba(var(--m-c-ink-rgb), .08); transform: var(--m-btn-press); }
.m-nav__glyph { display: block; }
/* A control that is a word: the masthead's menu button, and the checkout
   header's way back to the cart. */
.m-nav__burger--text, .m-nav__back {
	font-family: var(--m-font-ui);
	font-size: var(--m-fs-ui);
	font-weight: var(--m-fw-strong);
	line-height: var(--m-lh-control);
	text-decoration: underline;
	text-decoration-thickness: var(--m-bw-hair);
	text-underline-offset: 6px;
}
/* The masthead's menu button is set on the page's edge: its box is still one
   touch wide, whatever the word's length in a language. */
.m-nav__burger--text { justify-items: start; inline-size: auto; min-inline-size: var(--m-touch); padding-inline: 0; border-radius: 0; }
.m-nav__burger--text:active { background-color: transparent; }
/* Account and the dark and light switch join from 600, wishlist and
   preferences from 900 (4.1.2); a header that keeps the switch in its phone
   row says so in its own file. */
.m-nav__icon--account, .m-nav__icon--wish, .m-nav__icon--mode, .m-nav__prefs { display: none; }
/* The switch (4.1.5, 8.6). Its place is kept from the first paint, so the row
   never jumps; it is invisible, out of the tab order and unannounced until
   ui.js has wired it and put m-ui on <html>, so a page without scripts shows
   no control that does nothing. Both faces are in the markup: the form on
   show chooses, and the face is the form a press goes TO. */
.m-nav__icon--mode { visibility: hidden; }
.m-ui .m-nav__icon--mode { visibility: visible; }
.tone-light .m-mode__sun, .tone-dark .m-mode__moon { display: none; }

/* ---- The cart and wishlist counts. The same element wherever a count is
   printed (the header, the dock): the cart fragment replaces it whole, so it
   is styled by where it sits, never by a class of its own. ---- */
.m-nav__count {
	position: absolute;
	inset-block-start: var(--m-sp-1);
	inset-inline-end: var(--m-sp-1);
	display: grid;
	place-content: center;
	min-inline-size: 18px;
	block-size: 18px;
	padding-inline: var(--m-sp-1);
	border-radius: var(--m-r-badge);
	background-color: var(--m-c-fill);
	box-shadow: 0 0 0 2px var(--m-c-bg);
	color: var(--m-c-on-fill);
	font-family: var(--m-font-text);
	font-size: var(--m-fs-micro);
	font-weight: var(--m-fw-strong);
	font-variant-numeric: var(--m-fvn);
	line-height: var(--m-lh-control);
	pointer-events: none;
}
.m-nav__count.is-bump { animation: m-emph var(--m-dur-emph) var(--m-ease-emph); }

/* ---- The header does not know the bottom bar exists (N3, 4.1.1): no rule
   here, in an option file or in a Look names a dock-- class beside the
   header. The menu button and the cart are in the header under every bar,
   and the bar repeats what a thumb wants near it. ---- */

/* ---- The links. Hidden under 900, where the menu button is; a row from
   900, where it is not. One navigation at any width (audit R4, R11). If six
   labels do not fit they scroll sideways: the row never wraps and never
   pushes the brand. ---- */
.m-nav__links { display: none; margin: 0; padding: 0; list-style: none; }
.m-nav__links a {
	position: relative;
	display: flex;
	align-items: center;
	min-block-size: var(--m-touch);
	color: var(--m-c-ink);
	font-family: var(--m-font-ui);
	font-size: var(--m-fs-ui);
	font-weight: var(--m-fw-ui);
	line-height: var(--m-lh-control);
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--m-dur-press) var(--m-ease);
}
.m-nav__links a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: var(--m-sp-2);
	block-size: var(--m-bw-strong);
	background-color: currentColor;
	transform: scaleX(0);
	transition: transform var(--m-dur-panel) var(--m-ease);
}
.m-nav__links a.is-current { color: var(--m-c-link); }
.m-nav__links a.is-current::after { transform: scaleX(1); }
.m-nav__links a:active { color: var(--m-c-link); }
/* The second row: the links of logo-center, editorial and search, from 900. */
.m-nav__row2 { display: none; }

/* ---- Search (audit U3). The form is the positioning box; the field is the
   one input anatomy of base.css at the height of a header control, and the
   submit sits inside it, at its end. In the header a field shows only where
   the row has the room: each variant says where, below. ---- */
.m-search { position: relative; display: block; min-inline-size: 0; }
.m-search .m-search__input { min-width: 0; min-height: var(--m-touch); padding-inline-end: var(--m-touch); }
.m-search__go {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	display: grid;
	place-items: center;
	inline-size: var(--m-touch);
	min-block-size: var(--m-touch);
	padding: 0;
	border: 0;
	border-radius: var(--m-input-r);
	background-color: transparent;
	color: var(--m-c-ink-2);
	cursor: pointer;
	transition: color var(--m-dur-press) var(--m-ease);
}
.m-search__go:active { color: var(--m-c-link); }
.m-nav .m-search { display: none; }

/* ---- Preferences: language and currency, anchored to their trigger. The
   wrapper is the positioning box, so the panel can only open beside the
   button that owns it; pinned to the trigger's end it grows inward and stays
   on screen in both directions. From 900 only: under 900 the drawer has it. ---- */
.m-nav__icon--prefs {
	grid-auto-flow: column;
	gap: var(--m-sp-1);
	inline-size: auto;
	min-inline-size: var(--m-touch);
	padding-inline: var(--m-sp-2);
}
.m-nav__prefsnow, .m-prefs__label { color: var(--m-c-ink-2); font-size: var(--m-fs-small); font-weight: var(--m-fw-strong); line-height: var(--m-lh-control); }
.m-prefs {
	position: absolute;
	inset-block-start: calc(100% + var(--m-sp-2));
	inset-inline-end: 0;
	z-index: var(--m-z-popover);
	display: grid;
	gap: var(--m-sp-4);
	min-inline-size: 220px;
	max-inline-size: min(280px, calc(100vw - 2 * var(--m-gutter)));
	padding: var(--m-sp-4);
	border: var(--m-overlay-bw) solid var(--m-overlay-edge);
	border-radius: var(--m-r-card);
	background-color: var(--m-c-bg);
	box-shadow: var(--m-elev-2);
}
.m-prefs__row { display: grid; gap: var(--m-sp-2); }

/* ---- The language and currency switches of the drawer and the footer: a
   two-choice segment on the control tokens. 40px tall, 44 to the finger. ---- */
.m-langs {
	display: inline-flex;
	gap: var(--m-sp-1);
	padding: var(--m-sp-1);
	border-radius: var(--m-r-control);
	background-color: rgba(var(--m-c-ink-rgb), .07);
}
.m-langs__item {
	position: relative;
	display: grid;
	place-items: center;
	min-inline-size: var(--m-btn-h);
	min-block-size: var(--m-ctl-h);
	padding-inline: var(--m-sp-3);
	border-radius: calc(var(--m-r-control) - var(--m-sp-1));
	color: var(--m-c-ink-2);
	font-family: var(--m-font-ui);
	font-size: var(--m-fs-small);
	font-weight: var(--m-fw-strong);
	line-height: var(--m-lh-control);
	text-decoration: none;
	transition: background-color var(--m-dur-press) var(--m-ease), color var(--m-dur-press) var(--m-ease);
}
.m-langs__item::after { content: ""; position: absolute; inset: -4px 0; }
.m-langs__item.is-active { background-color: var(--m-c-fill); color: var(--m-c-on-fill); }

/* ---- The eight headers (4.1), phone first. Each is its own file in opt/
   (5.4). On a phone they are eight headers, not one: `split` sets its
   controls on two keys either side of the name; `logo-center` is the bare
   symmetrical row, two and two; `logo-side` is the name at the start and a
   search pill; `editorial` a masthead; `search` a field on a row of its own;
   `utility` a strip of services above the row; `float` an island; `minimal`
   the bare row. ---- */

/* The checkout: the same minimal header on every variant. Three classes, so
   it outweighs whichever variant the store has. */
.tpl-checkout .m-nav.m-nav--checkout { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto; min-block-size: var(--m-header-h); }
.tpl-checkout .m-nav--checkout .m-nav__brand { justify-self: start; min-inline-size: 0; }
.tpl-checkout .m-nav--checkout .m-nav__wordmark { font-family: var(--m-wordmark-font); font-size: var(--m-wordmark-fs); font-weight: var(--m-wordmark-fw); }
.m-nav__cod { display: none; }
.m-nav__back { display: inline-flex; align-items: center; justify-self: end; min-block-size: var(--m-touch); color: var(--m-c-ink); white-space: nowrap; }

@media (min-width: 600px) {
	.m-nav__icon--account, .m-nav__icon--mode { display: inline-grid; }
	.logo--square .m-nav__wordmark { display: block; }

	.m-nav__cod {
		display: inline-flex;
		align-items: center;
		justify-self: center;
		gap: var(--m-sp-2);
		color: var(--m-c-ink-2);
		font-size: var(--m-fs-small);
		font-weight: var(--m-fw-strong);
		line-height: var(--m-lh-control);
		white-space: nowrap;
	}
}

@media (min-width: 900px) {
	/* The header stays from 900, on every template, and gives no screen back. */
	.tpl-checkout .m-header { position: sticky; top: var(--m-header-top); }
	.m-header.is-away { transform: none; }
	/* Only the brand row compacts, and the content does not move: what the
	   row gives up, the header takes back as margin, in the same frame. */
	.m-header.is-scrolled { margin-block-end: calc(var(--m-header-h) - var(--m-header-h-compact)); }
	.m-header.is-scrolled .m-nav { min-block-size: var(--m-header-h-compact); }
	.m-nav { grid-template-columns: minmax(0, 1fr) fit-content(40%) minmax(0, 1fr); }

	/* One navigation at any width (N2): from 900 it is the links, and the
	   menu button is gone, on every header that lays its links out. The one
	   that never does (`minimal`) keeps its button, in its own file. Where
	   the menu is not wholly inline the button is back: the store's menu is
	   longer than the row (has-more, header.php), or ui.js has had to leave a
	   link out of the row (is-cut). */
	.m-header .m-nav .m-nav__burger { display: none; }
	.m-header.is-cut .m-nav .m-nav__burger, .m-header.has-more .m-nav .m-nav__burger { display: inline-grid; }
	.m-nav__links {
		display: flex;
		align-items: center;
		gap: var(--m-nav-gap);
		min-inline-size: 0;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}
	.m-nav__links::-webkit-scrollbar { display: none; }
	.m-nav__links li { flex: none; }
	/* Beside the brand the links have a column, not the page: if they do not
	   fit they scroll inside it. The list pads by one step and steps back out
	   by the same, so a link at rest sits on the column's own edge and one
	   that has scrolled fades out under that step instead of being cut. */
	.m-nav .m-nav__links {
		margin-inline: calc(var(--m-sp-3) * -1);
		padding-inline: var(--m-sp-3);
		-webkit-mask-image: linear-gradient(to right, transparent, var(--m-ink) var(--m-sp-3), var(--m-ink) calc(100% - var(--m-sp-3)), transparent);
		mask-image: linear-gradient(to right, transparent, var(--m-ink) var(--m-sp-3), var(--m-ink) calc(100% - var(--m-sp-3)), transparent);
	}
	.m-nav__icon--wish { display: inline-grid; }
	.m-nav__prefs { position: relative; display: inline-flex; }

	/* The second row. The rule above it is the width of the content, like
	   every other edge on the page; auto margins centre the links and give
	   way when they overflow, so the first one is never cut off. */
	.m-nav__row2 { display: block; }
	.m-nav__row2 .m-nav__links { block-size: var(--m-header-row-h); border-block-start: var(--m-bw-hair) solid var(--m-c-line); }
	.m-nav__row2 .m-nav__links a { min-block-size: 100%; block-size: 100%; }
	.m-nav__row2 .m-nav__links li { block-size: 100%; }
	.m-nav__row2 .m-nav__links li:first-child { margin-inline-start: auto; }
	.m-nav__row2 .m-nav__links li:last-child { margin-inline-end: auto; }

	/* The checkout keeps its one row from 900 too, whatever the variant. */
	.tpl-checkout .m-nav.m-nav--checkout { block-size: auto; }
	.tpl-checkout body .m-header.is-scrolled { margin-block-end: calc(var(--m-header-h) - var(--m-header-h-compact)); }
}

@media (hover: hover) and (pointer: fine) {
	.m-nav__icon:hover, .m-nav__burger:hover, .m-drawer__close:hover { background-color: rgba(var(--m-c-ink-rgb), .06); }
	.m-nav__burger--text:hover { background-color: transparent; color: var(--m-c-link); }
	.m-nav__links a:hover { color: var(--m-c-link); }
	.m-nav__links a:hover::after { transform: scaleX(1); }
	.m-nav__back:hover { color: var(--m-c-link); }
	.m-search__go:hover { color: var(--m-c-link); }
	.m-langs__item:hover { color: var(--m-c-ink); }
	.m-langs__item.is-active:hover { color: var(--m-c-on-fill); }
	.m-promo a.m-promo__msg:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* ==========================================================================
   3. The menu drawer and the scrims (3.2, audit U13). The drawer exists on
   every variant: the menu button, the search icon and the dock all open it.
   It comes from the start edge. A page context: PHP prints the class. Every
   scrim is above the header, so nothing behind an open overlay stays bright
   or tappable.
   ========================================================================== */
.m-drawer {
	position: fixed;
	inset-block: 0;
	inset-inline-start: 0;
	z-index: var(--m-z-drawer);
	display: flex;
	flex-direction: column;
	inline-size: var(--m-drawer-w);
	/* Sideways overflow is clipped at the root: a child wider than the panel
	   must never slide the whole drawer. */
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-inline-end: var(--m-overlay-bw) solid var(--m-overlay-edge);
	border-radius: 0 var(--m-r-sheet) var(--m-r-sheet) 0;
	background-color: var(--m-c-bg);
	box-shadow: var(--m-elev-3);
	/* Closed by default, off its own edge. Never the [hidden] attribute: any
	   display rule beats it, and overlay.js strips it. */
	transform: translateX(calc(var(--m-dir) * -100%));
	visibility: hidden;
	transition: transform var(--m-dur-panel) var(--m-ease-exit), visibility 0s var(--m-dur-panel);
}
/* Only the free corners are round, and the free side follows the direction. */
html[dir="rtl"] .m-drawer { border-radius: var(--m-r-sheet) 0 0 var(--m-r-sheet); }
.m-drawer.is-open { transform: none; visibility: visible; transition: transform var(--m-dur-panel) var(--m-ease), visibility 0s; }
/* Menus are links (12.5). The menu button is a link to the drawer, so where
   no script has taken the press the drawer opens as the target of the
   address, and is closed by the second close control, a link to an address
   nothing answers to. Only where the drawer can be placed: an engine without
   `inset` keeps it away, and has the footer's menu. Once ui.js holds the
   drawer (is-wired) the address opens nothing: the overlay does. */
@supports (inset-inline-end: 0) {
	.m-drawer:target:not(.is-wired) { transform: none; visibility: visible; }
}
.m-drawer__close.m-drawer__close--link, .m-drawer:target:not(.is-wired) button.m-drawer__close { display: none; }
.m-drawer:target:not(.is-wired) .m-drawer__close--link { display: grid; }
.has-adminbar .m-drawer { inset-block-start: var(--m-header-top); }
.m-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--m-sp-3);
	min-block-size: var(--m-header-h);
	padding-inline: var(--m-pad-sheet);
}
.m-drawer__title {
	margin: 0;
	font-family: var(--m-font-subhead);
	font-size: var(--m-fs-h3);
	font-weight: var(--m-fw-subhead);
	line-height: var(--m-lh-heading);
}
/* The close control is the header's icon box (section 2), stepping out by its air. */
.m-drawer__close { margin-inline-end: calc(var(--m-sp-3) * -1); }
.m-drawer__search { padding: 0 var(--m-pad-sheet) var(--m-sp-3); }
.m-drawer__list { margin: 0; padding: 0 var(--m-pad-sheet); list-style: none; }
/* Clean text rows: one flex line, a hairline under each, the chevron a flex
   child pushed to the end so every chevron sits in one column. No radius and
   no box: a radius on a row that carries a hairline bends the line up at both
   ends, and every row reads as an outlined button. */
.m-drawer__list a, .m-drawer__mode {
	display: flex;
	align-items: center;
	gap: var(--m-sp-3);
	min-block-size: calc(var(--m-touch) + var(--m-sp-2));
	padding-block: var(--m-sp-3);
	border-block-end: var(--m-bw-hair) solid var(--m-c-line);
	color: var(--m-c-ink);
	font-family: var(--m-font-ui);
	font-size: var(--m-fs-body);
	font-weight: var(--m-fw-strong);
	line-height: var(--m-lh-ui);
	text-decoration: none;
	transition: color var(--m-dur-press) var(--m-ease);
}
/* The chevron points where the row goes, so it turns with the direction:
   two logical borders and a rotation by --m-dir, nothing physical. */
.m-drawer__list a::after {
	content: "";
	flex: none;
	inline-size: 8px;
	block-size: 8px;
	margin-inline-start: auto;
	border-block-start: 1.5px solid var(--m-c-ink-3);
	border-inline-end: 1.5px solid var(--m-c-ink-3);
	transform: rotate(calc(var(--m-dir) * 45deg));
}
.m-drawer__list li:last-child a { border-block-end-color: transparent; }
.m-drawer__list a.is-current, .m-drawer__list a:active, .m-drawer__mode:active { color: var(--m-c-link); }
.m-drawer__page a { color: var(--m-c-ink-2); font-weight: var(--m-fw-ui); }
/* Account and wishlist: quieter rows with an icon, under a rule. */
.m-drawer__list--me { margin: var(--m-sp-2) var(--m-pad-sheet) 0; padding: var(--m-sp-2) 0 0; border-block-start: var(--m-bw-hair) solid var(--m-c-line); }
.m-drawer__list--me a, .m-drawer__list--me .m-drawer__mode { min-block-size: var(--m-touch); padding-block: var(--m-sp-1); border-block-end: 0; font-size: var(--m-fs-ui); font-weight: var(--m-fw-ui); }
.m-drawer__meicon {
	display: grid;
	place-items: center;
	flex: none;
	inline-size: 36px;
	block-size: 36px;
	border-radius: var(--m-r-control);
	background-color: var(--m-surface-2);
	color: var(--m-c-ink-2);
}
.m-drawer__meicon--wa { background-color: var(--m-wa-deep); color: var(--m-on-wa); }
/* «الوضع الداكن»: a row like the two above it, and a switch (4.1.5). A button,
   so it is the full row; the track at its end is the .m-switch atom. */
.m-drawer__mode { inline-size: 100%; padding-inline: 0; border: 0; background-color: transparent; text-align: start; }
.m-drawer__mode .m-switch { margin-inline-start: auto; }
/* The same switch as a line of text in the footer's bar, at the foot of every
   page. A button takes its face and its size from the bar (base.css). */
.m-footer__mode { display: inline-flex; align-items: center; gap: var(--m-sp-2); min-block-size: var(--m-touch); padding: 0; border: 0; background-color: transparent; color: var(--m-c-ink); font-weight: var(--m-fw-strong); }
/* Language and currency, at the drawer's foot: under 900 this is where they are. */
.m-drawer__langs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--m-sp-2);
	margin-block-start: auto;
	padding: var(--m-sp-4) var(--m-pad-sheet) calc(var(--m-sp-4) + var(--m-safe-b));
}

.m-scrim {
	position: fixed;
	inset: 0;
	z-index: var(--m-z-scrim);
	background-color: rgba(var(--m-scrim-rgb), .48);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--m-dur-panel) var(--m-ease), visibility 0s var(--m-dur-panel);
}
.m-scrim.is-open { opacity: 1; visibility: visible; transition: opacity var(--m-dur-panel) var(--m-ease), visibility 0s; }
/* No scrim has a layer of its own: the menu's, the cart's and the filter's are
   this one rule. Their modifier classes stay in the markup, because the
   scripts find each scrim by it. */

@media (hover: hover) and (pointer: fine) {
	.m-drawer__list a:hover { color: var(--m-c-link); }
	.m-drawer__list a:hover::after { border-color: var(--m-c-link); }
}

/* ==========================================================================
   4. The bottom bar (4.8). Under 600 only; PHP prints none on the product
   page, the cart or the checkout, where the sticky action bar is the one
   fixed thing, and none at all when the store has it off. Six styles, each
   an option file keyed on dock--<id> (tabs, pill, bar, fab, notch, chat);
   this is what they share: a row of items, each a glyph in its own box over
   its word, in the bar's inks (--m-dock-ink, --m-dock-ink-on). Its surface is
   one token that follows the style (--m-dock-bg). Its clearance is not here:
   tokens.css adds --m-dock-h to --m-bottom-clear, which body pads by and the
   floating layer and the toasts stand on.
   ========================================================================== */
.m-dock {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: var(--m-z-dock);
	display: flex;
	align-items: stretch;
	transition: transform var(--m-dur-chrome) var(--m-ease), visibility 0s;
}
.m-dock__item {
	position: relative;
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--m-sp-1);
	min-inline-size: var(--m-touch);
	min-block-size: var(--m-touch);
	padding: 0;
	border: 0;
	background-color: transparent;
	color: var(--m-dock-ink);
	font-family: var(--m-font-ui);
	font-size: var(--m-fs-micro);
	font-weight: var(--m-fw-ui);
	line-height: var(--m-lh-control);
	text-decoration: none;
	cursor: pointer;
	transition: color var(--m-dur-press) var(--m-ease), transform var(--m-dur-press) var(--m-ease);
}
.m-dock__item:active { color: var(--m-dock-ink-on); transform: var(--m-btn-press); }
.m-dock__item.is-current { color: var(--m-dock-ink-on); font-weight: var(--m-fw-strong); }
/* WhatsApp's mark is its green; its word is the bar's ink, which reads. */
.m-dock__icon { position: relative; display: grid; place-items: center; }
.m-dock__item--wa .m-dock__icon { color: var(--m-wa-deep); }
.tone-dark .m-dock__item--wa .m-dock__icon { color: var(--m-wa); }
.m-dock__label { display: block; max-inline-size: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* The count rides the glyph's corner (the word's, in the bar of words). Its
   ring is the current layer's ground (the count's own rule): the page's on a
   bar, the disc's own fill inside a disc of `fab` or `notch`. */
.m-dock .m-nav__count { inset-block-start: calc(var(--m-sp-2) * -1); inset-inline-end: calc(var(--m-sp-3) * -1); }

@media (min-width: 600px) {
	.m-dock { display: none; }
}

/* ==========================================================================
   5. The category navigation (4.7). One markup for eleven styles. This file
   owns the three structures (scroll, grid, list); the scroll is a row of
   pills, which is the shop row's shared `pill` form. Each style paints its
   home form and its own touch on the shop row in opt/catnav-<style>.css,
   keyed on the class the navigation prints for the style it draws
   (.m-catnav--v-<style>). ui.js centres .m-catnav__item.is-active inside
   .m-catnav--scroll .m-catnav__list.
   ========================================================================== */
.m-catnav { min-inline-size: 0; }
.m-catnav__list { display: flex; margin: 0; padding: 0; list-style: none; }
.m-catnav__item { min-inline-size: 0; }
.m-catnav__link {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--m-sp-2);
	min-block-size: var(--m-touch);
	min-inline-size: var(--m-touch);
	color: var(--m-c-ink);
	font-family: var(--m-font-ui);
	font-size: var(--m-fs-ui);
	font-weight: var(--m-fw-ui);
	line-height: var(--m-lh-control);
	text-decoration: none;
	transition: background-color var(--m-dur-press) var(--m-ease), border-color var(--m-dur-press) var(--m-ease), color var(--m-dur-press) var(--m-ease), transform var(--m-dur-press) var(--m-ease);
}
.m-catnav__link:active { transform: var(--m-btn-press); }
/* The frame is the only thing that clips (2.7): it carries the shape. */
.m-catnav__media { display: block; flex: none; }
.m-catnav__frame { display: block; overflow: hidden; border-radius: var(--m-frame-tile); background-color: var(--m-img-bg); }
.m-catnav__img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
/* No image and no product photo yet: the category's first letter. */
.m-catnav__letter {
	display: grid;
	place-items: center;
	inline-size: 100%;
	block-size: 100%;
	background-color: var(--m-primary-soft);
	color: var(--m-c-link);
	font-family: var(--m-font-subhead);
	font-size: var(--m-fs-small);
	font-weight: var(--m-fw-subhead);
	line-height: var(--m-lh-control);
}
.m-catnav__name { min-inline-size: 0; }
.m-catnav__num { flex: none; color: var(--m-c-ink-2); font-family: var(--m-font-text); font-size: var(--m-fs-small); font-weight: var(--m-fw-small); font-variant-numeric: var(--m-fvn); }
.m-catnav__count { display: none; color: var(--m-c-ink-2); font-family: var(--m-font-text); font-size: var(--m-fs-small); font-weight: var(--m-fw-small); font-variant-numeric: var(--m-fvn); white-space: nowrap; }

/* ---- scroll: a snap scroller that bleeds out of the container by the
   gutter and pads back in by the same gutter, so an item at rest sits where
   the page's content does and a scrolled one fades under the gutter, at the
   glass. The fade is exactly the gutter wide. ---- */
.m-catnav--scroll .m-catnav__list {
	gap: var(--m-sp-2);
	margin-inline: calc(-1 * var(--m-gutter));
	padding-block: var(--m-sp-1);
	padding-inline: var(--m-gutter);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-padding-inline: var(--m-gutter);
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(to right, transparent, var(--m-ink) var(--m-gutter), var(--m-ink) calc(100% - var(--m-gutter)), transparent);
	mask-image: linear-gradient(to right, transparent, var(--m-ink) var(--m-gutter), var(--m-ink) calc(100% - var(--m-gutter)), transparent);
}
.m-catnav--scroll .m-catnav__list::-webkit-scrollbar { display: none; }
/* While a link of the row has focus the fade is lifted and the row does not snap: ui.js brings the focused link into
   view by the nearest edge (a snap would carry it back out), and at the row's ends it sits to the gutter, ring and name whole. */
.m-catnav--scroll .m-catnav__list:focus-within { scroll-snap-type: none; -webkit-mask-image: none; mask-image: none; }
.m-catnav--scroll .m-catnav__item { flex: none; scroll-snap-align: start; }
/* The chip. With a photo it starts tighter, so the thumbnail sits in the
   curve of the pill. */
.m-catnav--scroll .m-catnav__link {
	padding-inline: var(--m-sp-4);
	border: var(--m-bw-control) solid var(--m-c-line);
	border-radius: var(--m-r-chip);
	background-color: var(--m-surface-1);
	white-space: nowrap;
}
.m-catnav--scroll .m-catnav__media { margin-inline-start: calc(var(--m-sp-2) * -1); }
.m-catnav--scroll .m-catnav__frame { inline-size: 28px; block-size: 28px; }
.m-catnav--scroll .is-active .m-catnav__link {
	border-color: var(--m-inverse);
	background-color: var(--m-inverse);
	color: var(--m-on-inverse);
	font-weight: var(--m-fw-strong);
}

/* ---- grid: a fixed grid of tiles, the photo in its frame over the name.
   Four across on a phone, six from 600, eight from 900. ---- */
.m-catnav--grid .m-catnav__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--m-sp-4) var(--m-sp-2); }
.m-catnav--grid .m-catnav__link { flex-direction: column; align-items: stretch; text-align: center; }
.m-catnav--grid .m-catnav__frame { aspect-ratio: var(--m-ratio-tile); }
.m-catnav--grid .m-catnav__letter { font-size: var(--m-fs-h3); }
.m-catnav--grid .m-catnav__name {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: var(--m-fs-small);
	line-height: var(--m-lh-ui);
}
.m-catnav--grid .is-active .m-catnav__name { color: var(--m-c-link); font-weight: var(--m-fw-strong); }

/* ---- list: a text list. Stacked rows between hairlines, the count at the
   end of each, two columns from 900 (the `wrap` style lays it out as one
   centred wrapping line, in its own file). ---- */
.m-catnav--list .m-catnav__list { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--m-gap-grid-x); }
.m-catnav--list .m-catnav__link {
	gap: var(--m-sp-3);
	min-block-size: calc(var(--m-touch) + var(--m-sp-3));
	border-block-end: var(--m-bw-hair) solid var(--m-c-line);
	font-family: var(--m-font-subhead);
	font-size: var(--m-fs-h3);
	font-weight: var(--m-fw-subhead);
	line-height: var(--m-lh-heading);
}
.m-catnav--list .m-catnav__count { display: block; margin-inline-start: auto; }
.m-catnav--list .is-active .m-catnav__link { color: var(--m-c-link); }

@media (min-width: 600px) {
	.m-catnav--grid .m-catnav__list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--m-sp-6) var(--m-sp-4); }
}
@media (min-width: 900px) {
	.m-catnav--grid .m-catnav__list { grid-template-columns: repeat(8, minmax(0, 1fr)); }
	.m-catnav--list .m-catnav__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (hover: hover) and (pointer: fine) {
	.m-catnav--scroll .m-catnav__link:hover { border-color: var(--m-c-line-strong); background-color: var(--m-surface-2); }
	.m-catnav--scroll .is-active .m-catnav__link:hover { border-color: var(--m-inverse); background-color: var(--m-inverse); }
	.m-catnav--grid .m-catnav__link:hover .m-catnav__name, .m-catnav--list .m-catnav__link:hover { color: var(--m-c-link); }
	.m-dock__item:hover { color: var(--m-dock-ink-on); }
}
/* Where aspect-ratio is missing the grid's frame takes its shape from the
   token's padding twin, and the photo is laid over it (section 7). */
@supports not (aspect-ratio: 1 / 1) {
	.m-catnav--grid .m-catnav__frame { position: relative; block-size: 0; padding-block-end: var(--m-ratio-tile-pb); }
	.m-catnav--grid .m-catnav__img, .m-catnav--grid .m-catnav__letter { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
}

/* ==========================================================================
   6. The cart drawer (3.1, 3.4, audit U9). A sheet from the inline-END edge,
   the side its icon is on, on the menu drawer's motion: it parks off its own
   edge by --m-dir, so the swipe that closes it runs the right way in both
   directions. A page context (PHP prints the class): it paints the current
   layer. Three bands: the head, the list (the only part that scrolls), the
   foot with the total and the one button, always in reach.

   Four things are said once for every family of this half: the sub-heading
   face, small print, the bare icon button and the underlined text button.
   ========================================================================== */
.m-minicart__title, .m-popup__heading, .m-footer__brand, .m-footer__ctahead { margin: 0; font-family: var(--m-font-subhead); font-size: var(--m-fs-h3); font-weight: var(--m-fw-subhead); line-height: var(--m-lh-heading); }
.m-minicart__variant, .m-minicart__unit, .m-minicart__ship, .m-minicart__emptynote, .m-footer__ctasub, .m-footer__facts, .m-footer__head { margin: 0; color: var(--m-c-ink-2); font-size: var(--m-fs-small); font-weight: var(--m-fw-small); line-height: var(--m-lh-ui); }
.m-minicart__close, .m-minicart__remove, .m-popup__close { position: relative; display: grid; place-items: center; flex: none; width: var(--m-touch); height: var(--m-touch); padding: 0; border: 0; border-radius: var(--m-r-control); background-color: transparent; color: var(--m-c-ink); cursor: pointer; transition: background-color var(--m-dur-press) var(--m-ease), color var(--m-dur-press) var(--m-ease); }
.m-minicart__undobtn, .m-minicart__cartlink, .m-toast__action { display: inline-flex; align-items: center; gap: var(--m-sp-2); min-block-size: var(--m-touch); padding: 0 var(--m-sp-2); border: 0; background-color: transparent; color: var(--m-c-link); font-family: var(--m-font-ui); font-size: var(--m-fs-ui); font-weight: var(--m-fw-strong); line-height: var(--m-lh-control); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.m-minicart { position: fixed; inset-block: 0; inset-inline-end: 0; z-index: var(--m-z-drawer); display: flex; flex-direction: column; inline-size: var(--m-minicart-w); border-inline-start: var(--m-overlay-bw) solid var(--m-overlay-edge); border-radius: var(--m-r-sheet) 0 0 var(--m-r-sheet); background-color: var(--m-c-bg); box-shadow: var(--m-elev-3); transform: translateX(calc(var(--m-dir) * 100%)); visibility: hidden; transition: transform var(--m-dur-panel) var(--m-ease-exit), visibility 0s var(--m-dur-panel); }
html[dir="rtl"] .m-minicart { border-radius: 0 var(--m-r-sheet) var(--m-r-sheet) 0; }
.m-minicart.is-open { transform: none; visibility: visible; transition: transform var(--m-dur-panel) var(--m-ease), visibility 0s; }
.has-adminbar .m-minicart { inset-block-start: var(--m-header-top); }
.m-minicart__head { display: flex; flex: none; align-items: center; justify-content: space-between; min-block-size: var(--m-header-h); padding-inline: var(--m-pad-sheet); border-block-end: var(--m-bw-hair) solid var(--m-c-line); }
/* How many things are in it. Empty in the page (cacheable HTML carries no
   count): minicart.js mirrors it from the header's badge. */
.m-minicart__count { display: inline-block; margin-inline-start: var(--m-sp-1); padding: var(--m-sp-1) var(--m-sp-2); border-radius: var(--m-r-badge); background-color: var(--m-primary-soft); font-family: var(--m-font-text); font-size: var(--m-fs-micro); font-weight: var(--m-fw-strong); font-variant-numeric: var(--m-fvn); line-height: var(--m-lh-control); vertical-align: middle; }
.m-minicart__close { margin-inline-end: calc(var(--m-sp-3) * -1); }
.m-minicart__close:active { background-color: rgba(var(--m-c-ink-rgb), .08); }
/* The body is the fragment: the server replaces this node whole. */
#m-minicart-body { display: flex; flex: 1; flex-direction: column; min-block-size: 0; }
#m-minicart-body > .m-freebar { flex: none; margin: var(--m-sp-4) var(--m-pad-sheet) 0; }
/* What the page ships until the fragment lands: three quiet rows. */
.m-minicart__skeleton span { display: block; block-size: 72px; margin: var(--m-sp-4) var(--m-pad-sheet); border-radius: var(--m-r-thumb); background-color: var(--m-surface-2); }

/* ---- A line: the photo, then the name, the variant and (with two or more)
   the unit price, the remove at the row's end; under them the stepper and the
   line total. One grid, so nothing is squeezed beside the photo. ---- */
.m-minicart__items { flex: 1; margin: 0; padding: 0 var(--m-pad-sheet); overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.m-minicart__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--m-sp-2) var(--m-sp-3); padding-block: var(--m-sp-4); border-block-end: var(--m-bw-hair) solid var(--m-c-line); }
.m-minicart__item:last-child { border-block-end: 0; }
.m-minicart__item.is-going, .m-minicart__qty.is-busy { opacity: .5; }
.m-minicart__thumb { grid-row: 1 / span 2; inline-size: 72px; block-size: 72px; overflow: hidden; border-radius: var(--m-r-thumb); background-color: var(--m-img-bg); }
.m-minicart__thumb img { inline-size: 100%; block-size: 100%; object-fit: cover; }
/* The photo fit is the store's (2.7): shown whole on its mat or its plate,
   which dims with the photograph in the dark form (8.9), so it never glares. */
.fit--contain .m-minicart__thumb { background-color: var(--m-mat); opacity: var(--m-plate-dim); }
.fit--mat .m-minicart__thumb { background-color: var(--m-plate); opacity: var(--m-plate-dim); }
.fit--contain .m-minicart__thumb img, .fit--mat .m-minicart__thumb img { padding: var(--m-sp-1); object-fit: contain; }
.fit--mat.tone-light .m-minicart__thumb img { mix-blend-mode: multiply; }
.m-minicart__meta { display: grid; align-content: start; gap: var(--m-sp-1); min-inline-size: 0; padding-block-start: var(--m-sp-1); }
.m-minicart__name { color: var(--m-c-ink); font-size: var(--m-fs-ui); font-weight: var(--m-fw-strong); line-height: var(--m-lh-ui); text-decoration: none; }
.m-minicart__unit, .m-minicart__price { font-variant-numeric: var(--m-fvn); white-space: nowrap; }
/* A 44px box whose glyph sits on the row's own edge. */
.m-minicart__remove { margin-block-start: calc(var(--m-sp-2) * -1); margin-inline-end: calc(var(--m-sp-3) * -1); color: var(--m-c-ink-2); }
.m-minicart__remove:active { background-color: var(--m-danger-soft); color: var(--m-danger); }
.m-minicart__line { display: flex; flex-wrap: wrap; grid-column: 2 / -1; align-items: center; justify-content: space-between; gap: var(--m-sp-2) var(--m-sp-3); }
/* THE stepper of components.css, at the height of one touch. */
.m-minicart__qty .m-qty__btn { min-width: var(--m-touch); min-height: var(--m-touch); }
.m-minicart__qty b { width: var(--m-sp-8); min-width: 0; font-size: var(--m-fs-ui); }
.m-minicart__price { color: var(--m-price-ink); font-size: var(--m-fs-ui); font-weight: var(--m-fw-strong); }

/* ---- Undo. The server prints it inside the fragment; minicart.js hides it
   when its time is up. Never an animation: under reduced motion that ended
   the moment it began (audit U19). ---- */
.m-minicart__undo { display: flex; flex: none; align-items: center; justify-content: space-between; margin-block: var(--m-sp-3); padding-inline: var(--m-sp-4) var(--m-sp-2); border-radius: var(--m-r-box); background-color: var(--m-surface-3); color: var(--m-ink); font-size: var(--m-fs-ui); line-height: var(--m-lh-control); }
.m-minicart .m-minicart__undo { margin-inline: var(--m-pad-sheet); }
/* Under an emptied cart it is the last thing in the drawer: it keeps clear of the home indicator. */
.m-minicart__undo:last-child { margin-block-end: calc(var(--m-sp-3) + var(--m-safe-b)); }
/* Arrows and the truck point the way the page reads. */
.m-minicart__undobtn svg, .m-minicart__ship svg, .m-freebar:not(.is-done) .m-freebar__icon svg, .m-footer__fact--lead svg { flex: none; transform: scaleX(var(--m-dir)); }

/* ---- The foot: the total in the numeral face, what delivery adds, the one
   button, and the quieter way on. ---- */
.m-minicart__foot { display: grid; flex: none; gap: var(--m-sp-2); padding: var(--m-sp-4) var(--m-pad-sheet) calc(var(--m-sp-2) + var(--m-safe-b)); border-block-start: var(--m-bw-hair) solid var(--m-c-line); }
.m-minicart__subtotal { display: flex; align-items: baseline; justify-content: space-between; margin: 0; font-size: var(--m-fs-ui); font-weight: var(--m-fw-strong); line-height: var(--m-lh-control); }
.m-minicart__subtotal .woocommerce-Price-amount, .m-sticky__price { color: var(--m-price-ink); font-family: var(--m-font-num); font-size: var(--m-fs-h3); font-weight: var(--m-fw-num); font-variant-numeric: var(--m-fvn); line-height: var(--m-lh-control); white-space: nowrap; }
.m-minicart__ship, .m-footer__fact { display: flex; align-items: center; gap: var(--m-sp-2); }
.m-minicart__checkout { margin-block-start: var(--m-sp-2); }
.m-minicart__cartlink { justify-self: center; color: var(--m-c-ink-2); font-size: var(--m-fs-small); }

/* ---- Empty: the .m-empty atom, centred in the drawer, under a bag in a
   wash of the brand colour. ---- */
.m-minicart__empty { flex: 1; align-content: center; }
.m-minicart__emptyicon, .m-freebar__icon { display: grid; place-items: center; inline-size: 96px; block-size: 96px; margin-block-end: var(--m-sp-3); border-radius: var(--m-r-panel); background-color: var(--m-primary-soft); color: var(--m-primary-ink); }

/* ==========================================================================
   7. The free-delivery bar. One component, in the drawer and on the cart
   page (commerce.css places it there). A designed moment, not a grey band:
   a wash of the brand colour, a line icon, the sentence with its amount, and
   a track that fills toward the goal. It paints a wash, which every page role
   is guaranteed on (1.9), so it reads the page roles directly. Done is the
   success family, and says so in words and with a tick, never by colour alone.
   ========================================================================== */
.m-freebar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--m-sp-3); padding: var(--m-sp-3) var(--m-sp-4); border-radius: var(--m-r-card); background-color: var(--m-primary-soft); color: var(--m-ink); }
.m-freebar__icon { inline-size: 36px; block-size: 36px; margin: 0; border-radius: var(--m-r-control); background-color: var(--m-surface-1); }
.m-freebar__text { margin: 0; font-size: var(--m-fs-ui); font-weight: var(--m-fw-ui); line-height: var(--m-lh-ui); }
.m-freebar__text .woocommerce-Price-amount { font-weight: var(--m-fw-strong); font-variant-numeric: var(--m-fvn); white-space: nowrap; }
.m-freebar__track { grid-column: 1 / -1; block-size: 6px; overflow: hidden; border-radius: var(--m-r-badge); background-color: rgba(var(--m-ink-rgb), .12); color: var(--m-primary-ink); }
.m-freebar__track i { display: block; block-size: 100%; border-radius: inherit; background-color: currentColor; transition: inline-size var(--m-dur-emph) var(--m-ease); }
.m-freebar.is-done { background-color: var(--m-success-soft); }
.m-freebar.is-done .m-freebar__icon, .m-freebar.is-done .m-freebar__track { color: var(--m-success); }

/* ==========================================================================
   8. The popup (audit U4, X3). Three designs, each its own on a phone and
   from the tablet or the desktop up:
     sheet   on the bottom edge of a phone; a card in the end corner from 600
     card    centred over a scrim; the photo beside the words from 900
     banner  one slim line at the top under 900, where the header gives the
             screen back; floating at the bottom centre from 900
   The panel is a page context and clips, so the photo takes the panel's own
   corners. The close control is a page-surface chip with the page ink: it has
   the same contrast over any photograph. fx.js decides WHEN (never with the
   first paint).
   ========================================================================== */
.m-popup { position: fixed; inset: 0; z-index: var(--m-z-popup); pointer-events: none; }
.m-popup__scrim { position: absolute; inset: 0; background-color: rgba(var(--m-scrim-rgb), .48); opacity: 0; pointer-events: auto; transition: opacity var(--m-dur-panel) var(--m-ease); }
.m-popup.is-open .m-popup__scrim { opacity: 1; }
.m-popup__panel { position: absolute; max-block-size: calc(100% - var(--m-sp-9)); overflow: hidden auto; border: var(--m-overlay-bw) solid var(--m-overlay-edge); border-radius: var(--m-r-sheet); background-color: var(--m-c-bg); box-shadow: var(--m-elev-3); pointer-events: auto; transition: transform var(--m-dur-panel) var(--m-ease), opacity var(--m-dur-panel) var(--m-ease); }
/* A 44px target; what shows is the chip inside it. */
.m-popup__close { position: absolute; inset-block-start: var(--m-sp-2); inset-inline-end: var(--m-sp-2); z-index: var(--m-z-over); }
.m-popup__close::before { content: ""; position: absolute; inset: var(--m-sp-1); border: var(--m-bw-hair) solid var(--m-c-line); border-radius: var(--m-r-control); background-color: var(--m-c-bg); box-shadow: var(--m-elev-1); }
.m-popup__close svg { position: relative; }
.m-popup__media { block-size: min(26vh, 200px); overflow: hidden; background-color: var(--m-img-bg); }
.m-popup__img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.m-popup__body { display: grid; gap: var(--m-sp-4); padding: var(--m-sp-5) var(--m-pad-sheet) var(--m-pad-sheet); }
.m-popup__copy { display: grid; gap: var(--m-sp-2); min-inline-size: 0; }
/* With no photo the first line runs under the close control: it steps aside. */
.m-popup__heading { padding-inline-end: var(--m-sp-10); }
.m-popup--photo .m-popup__heading { padding-inline-end: 0; }
.m-popup__text, .m-footer__tagline { margin: 0; color: var(--m-c-ink-2); line-height: var(--m-lh-ui); }

/* sheet, on a phone: attached to the bottom edge, its free corners on top. */
.m-popup--sheet .m-popup__panel { inset-inline: 0; bottom: 0; padding-block-end: var(--m-safe-b); border-block-end: 0; border-radius: var(--m-r-sheet) var(--m-r-sheet) 0 0; transform: translateY(105%); }
.m-popup--sheet.is-open .m-popup__panel, .m-popup--banner.is-open .m-popup__panel { opacity: 1; transform: none; }

/* card: centred, over its scrim, the words centred under the photo. */
.m-popup--card .m-popup__panel { inset: 0; inline-size: calc(100% - 2 * var(--m-sp-4)); max-inline-size: 400px; block-size: fit-content; margin: auto; opacity: 0; transform: scale(.96); }
.m-popup--card.is-open .m-popup__panel { opacity: 1; transform: none; }
.m-popup--card .m-popup__media { block-size: min(34vh, 260px); }
.m-popup--card .m-popup__body { justify-items: center; padding-block: var(--m-sp-6); text-align: center; }
.m-popup--card .m-popup__heading { padding-inline: var(--m-sp-10); }
.m-popup--card.m-popup--photo .m-popup__heading { padding-inline: 0; }

/* banner, under 900: a slim card that drops from the top. Words at the start,
   the button and the close control at the end, on one line. */
.m-popup--banner .m-popup__panel { top: calc(var(--m-header-top) + var(--m-sp-2)); inset-inline: var(--m-sp-2); border-radius: var(--m-r-card); transform: translateY(calc(-100% - var(--m-sp-9))); }
.m-popup--banner .m-popup__body { display: flex; align-items: center; gap: var(--m-sp-3); padding-block: var(--m-sp-3); padding-inline: var(--m-sp-4) var(--m-sp-10); }
.m-popup--banner .m-popup__copy { flex: 1; gap: 0; }
.m-popup--banner .m-popup__heading { padding-inline-end: 0; font-family: var(--m-font-ui); font-size: var(--m-fs-ui); font-weight: var(--m-fw-strong); line-height: var(--m-lh-ui); }
.m-popup--banner .m-popup__text { font-size: var(--m-fs-small); }
.m-popup--banner .m-popup__cta { flex: none; min-height: var(--m-touch); padding-inline: var(--m-btn-px-sm); }
.m-popup--banner .m-popup__close { inset-block-start: calc(50% - var(--m-touch) / 2); }

/* ==========================================================================
   9. Toasts (4.8.4). One treatment: a block in a context of its own (1.9,
   overlay.js prints m-ctx--toast): the ink of the inverse in the light form,
   the highest surface with the page's inks in the dark one, edged in its
   strong line so it reads on any ground, with the box radius because its
   sentence can wrap. One centred stack over everything fixed to the bottom:
   on the floating layer's top where something floats (it never moves when
   the floating button leaves), else just above the bar or the sticky bar.
   With an overlay open the bottom belongs to its own button: the top.
   ========================================================================== */
.m-toasts { position: fixed; inset-inline: 0; bottom: var(--m-fab-clear); z-index: var(--m-z-toast); display: grid; justify-items: center; gap: var(--m-sp-2); padding-inline: var(--m-gutter); pointer-events: none; }
.has-float .m-toasts { bottom: calc(var(--m-float-top) + var(--m-sp-3)); }
body.m-locked .m-toasts { top: calc(var(--m-header-top) + var(--m-sp-4)); bottom: auto; }
.m-toast { display: flex; align-items: center; gap: var(--m-sp-3); max-inline-size: min(100%, 440px); min-block-size: var(--m-btn-h); padding: var(--m-sp-2) var(--m-sp-4); border: var(--m-bw-hair) solid var(--m-c-line-strong); border-radius: var(--m-r-box); background-color: var(--m-c-bg); box-shadow: var(--m-elev-2); font-size: var(--m-fs-ui); font-weight: var(--m-fw-ui); line-height: var(--m-lh-ui); pointer-events: auto; animation: m-arrive var(--m-dur-panel) var(--m-ease-enter); }
.m-toast.is-out { opacity: 0; transition: opacity var(--m-dur-panel) var(--m-ease); }
.m-toast__icon { display: grid; flex: none; }
.m-toast__action { flex: none; margin-block: calc(var(--m-sp-2) * -1); margin-inline-end: calc(var(--m-sp-2) * -1); }

/* ==========================================================================
   10. The footer (4.5). A context: PHP prints m-ctx m-ctx--footer, so every
   colour here is the current layer, right for an ink, a ground, a card, a
   band, a primary or an accent footer and under a dark tone. Three designs,
   keyed on foot--<id> on <html>. It adds no space above itself: every
   template ends with its own, and a painted last section tiles with it.
   On a phone it is short (audit U16). Body's bottom padding keeps its last
   line clear of the dock and the sticky bars (2.9), and the bar keeps clear
   of the floating button itself (audit U17).
   ========================================================================== */
.m-footer {
	border-block-start: var(--m-bw-hair) solid var(--m-c-line);
	background-color: var(--m-c-bg);
	/* Its colour runs on under the space body keeps for a fixed bar, and for
	   the `fab` column (opt/dock-fab.css: the lane on top). Where body keeps less,
	   the rest of the shadow falls past the end of the page, unseen. */
	box-shadow: 0 calc(var(--m-bottom-clear) + var(--m-float-lane, 0px)) var(--m-c-bg);
	font-size: var(--m-fs-ui);
	line-height: var(--m-lh-ui);
}
.m-footer__head { margin-block-end: var(--m-sp-2); font-weight: var(--m-fw-strong); letter-spacing: var(--m-ls-caps); text-transform: var(--m-tt-caps); }
.m-footer__links, .m-footer__social, .m-footer__facts { display: flex; flex-wrap: wrap; gap: var(--m-sp-1) var(--m-sp-4); margin: 0; padding: 0; list-style: none; }
/* The links: two columns on a phone, each row one touch tall. */
.m-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; }
.m-footer__links a, .m-footer__sociallink { display: inline-flex; align-items: center; gap: var(--m-sp-3); min-inline-size: var(--m-touch); min-block-size: var(--m-touch); color: var(--m-c-ink); font-weight: var(--m-fw-ui); text-decoration: none; }
.m-footer__links a:active, .m-footer__sociallink:active { color: var(--m-c-link); }
/* Social: a line icon in an outlined chip, its name beside it where there is
   room (the columns, from 600). */
.m-footer__social { column-gap: var(--m-sp-1); }
.m-footer__socialicon { display: grid; place-items: center; flex: none; inline-size: var(--m-ctl-h); block-size: var(--m-ctl-h); border: var(--m-bw-hair) solid var(--m-c-line); border-radius: var(--m-r-control); }
.m-footer__socialname, .m-footer__fact--extra, .m-footer__grid .m-footer__head { display: none; }
/* Facts: small print, each led by its icon. A phone keeps the first delivery
   fact and the way to the rest (the delivery page has them all). */
.m-footer__fact a, .m-footer__credit { display: inline-flex; align-items: center; column-gap: var(--m-sp-1); min-block-size: var(--m-touch); }
.m-footer__fact a { color: var(--m-c-ink); text-decoration: underline; text-underline-offset: 3px; }
/* A line of links (`slim`, `assured`): one wrapping line of small text, a
   dot leading each link, an even space each side of it. The line is pulled
   back by one dot and its space and clipped there, so no line starts with a
   dot, and the clip stands a step outside the text on three sides, where a
   focus ring still shows. */
.m-footer__nav--line { overflow: hidden; margin-block: calc(-1 * var(--m-sp-1)); margin-inline-start: calc(-1 * var(--m-sp-2)); padding-block: var(--m-sp-1); padding-inline-start: var(--m-sp-2); }
.m-footer__nav--line .m-footer__links { display: flex; flex-wrap: wrap; column-gap: 0; margin-inline-start: calc(-1 * (var(--m-sp-6) + var(--m-sp-1))); }
.m-footer__nav--line li { display: flex; align-items: center; }
.m-footer__nav--line li::before { content: ""; flex: none; inline-size: 4px; block-size: 4px; margin-inline: var(--m-sp-3); border-radius: var(--m-r-round); background-color: var(--m-c-ink-3); }
.m-footer__nav--line a { color: var(--m-c-ink-2); font-size: var(--m-fs-small); }
/* The bar: cash on delivery, her language and currency (one group), the dark
   and light switch (4.1.5) and the credit, each a touch tall; on a phone two
   rows where they fit (how she pays and her language, then her switch and the
   credit, at the two ends), and the currency beside the language, never
   apart from it. Her segments are a hairline tray, not a tint: on a footer
   ground the secondary ink on the tint fell under 4.5 (turath, marah); a
   Look's own skin of the segment still wins. It keeps no corner for the
   floating button (the lead's ruling, 2026-10-14): the button leaves on the
   way down, and at rest over a control here (12.4.12). */
.m-footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--m-sp-1) var(--m-sp-3); padding-block: var(--m-sp-2); border-block-start: var(--m-bw-hair) solid var(--m-c-line); color: var(--m-c-ink-2); font-size: var(--m-fs-small); line-height: var(--m-lh-control); }
.m-footer__cod { display: inline-flex; align-items: center; gap: var(--m-sp-2); min-block-size: var(--m-ctl-h); color: var(--m-c-ink); font-weight: var(--m-fw-strong); }
/* The checkout's one way to WhatsApp (4.8.5, W0): a text link, one touch tall. */
.m-footer__wa { display: inline-flex; align-items: center; gap: var(--m-sp-2); min-block-size: var(--m-touch); color: var(--m-c-ink); font-weight: var(--m-fw-strong); text-underline-offset: 3px; }
.m-footer__credit { color: inherit; text-decoration: none; }
.m-footer__prefs { display: inline-flex; flex-wrap: wrap; gap: var(--m-sp-2); }
footer .m-langs { gap: 0; padding: 0; background-color: transparent; box-shadow: inset 0 0 0 var(--m-bw-hair) var(--m-c-line); }
footer .m-langs__item { min-inline-size: var(--m-touch); padding-inline: var(--m-sp-2); }

/* columns, on a phone: the name with the social icons at the end of its row,
   the links, the hours, the delivery line. */
.m-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--m-sp-3) var(--m-sp-4); padding-block: var(--m-sp-6) var(--m-sp-4); }
.m-footer__grid .m-footer__nav, .m-footer__grid .m-footer__facts, .m-footer__delivery { grid-column: 1 / -1; }

/* centered: one calm block on one axis. The name is a wordmark in the
   display face; the links are one wrapping line, the facts one line of small
   print. On a phone its bar is a centred stack of its own: her segments, how
   she pays, then the switch and the credit together (the checkout, which
   draws no stack, keeps the shared bar). Only the segments are moved, and
   they are the first thing in the bar a finger or a key reaches anyway. */
.m-footer__stack { display: grid; justify-items: center; gap: var(--m-sp-3); max-width: calc(var(--m-container-narrow) + 2 * var(--m-gutter)); padding-block: var(--m-sp-7) var(--m-sp-4); text-align: center; }
.foot--centered .m-footer__stack .m-footer__brand { font-family: var(--m-font-display); font-size: var(--m-fs-h1); font-weight: var(--m-fw-display); }
.m-footer__stack .m-footer__links { display: flex; justify-content: center; }
.m-footer__stack .m-footer__facts { justify-content: center; }
.foot--centered .m-footer__bar { justify-content: center; }
.foot--centered .m-footer__stack + * .m-footer__cod, .foot--centered .m-footer__stack + * .m-footer__prefs { flex-basis: 100%; justify-content: center; }
.foot--centered .m-footer__stack + * .m-footer__prefs { order: -1; }

/* statement: its WhatsApp panel and its large name are its own rules
   (opt/footer-statement.css), sent only to a page that draws it. */

/* ==========================================================================
   11. The floating WhatsApp button (4.8.5, L5). The floating layer lives at
   the inline-START bottom corner, at every width: the end corner is where
   every card puts its heart and its add control. It stands at --m-fab-clear,
   clear above whatever bar the page has (the bar's height, the raised cart's
   rise and the safe area are all in that token), in the lane --m-float-x
   (the gutter; from 1200 the margin beside the content). PHP prints it only
   where <html> says has-float: never on the product page, the cart or the
   checkout, where every edge is a control. It leaves on the way down and at
   rest over a control (section 13). Where the bar carries WhatsApp (`pill`,
   `chat`, `fab`) the bar's file stands it down under 600.
   ========================================================================== */
.m-whatsapp { display: grid; place-items: center; inline-size: var(--m-fab-size); block-size: var(--m-fab-size); border: var(--m-btn-bw) solid var(--m-wa-deep); border-radius: var(--m-dock-r); background-color: var(--m-wa-deep); box-shadow: var(--m-elev-2); color: var(--m-on-wa); transition: transform var(--m-dur-press) var(--m-ease); }
.m-whatsapp:active { transform: var(--m-btn-press); }
body > .m-whatsapp { position: fixed; bottom: var(--m-fab-clear); inset-inline-start: var(--m-float-x); z-index: var(--m-z-fab); }

/* ==========================================================================
   12. The sticky action bars (2.9, 3.3, 3.4): the product page's, the cart's,
   the checkout's. Under 900 only. One height, from the token every clearance
   is derived from, plus the safe area; what she pays at the start and the one
   button at the end. A script shows a bar (.is-on) while the page's own
   button is off screen, and it leaves on the header's own curve. No variant
   ever pins itself visible: that would outrank .is-on. Grid, not flex gap:
   this is the buy path (section 7).
   ========================================================================== */
.m-sticky { position: fixed; inset-inline: 0; bottom: 0; z-index: var(--m-z-bar); display: grid; grid-template-columns: auto minmax(55%, 1fr); align-items: center; column-gap: var(--m-sp-4); min-block-size: calc(var(--m-sticky-h) + var(--m-safe-b)); padding: var(--m-sp-3) var(--m-gutter) calc(var(--m-sp-3) + var(--m-safe-b)); border-block-start: var(--m-bw-hair) solid var(--m-c-line); background-color: var(--m-header-bg); -webkit-backdrop-filter: blur(var(--m-header-blur)); backdrop-filter: blur(var(--m-header-blur)); box-shadow: var(--m-elev-bar); transform: translateY(100%); visibility: hidden; transition: transform var(--m-dur-panel) var(--m-ease-exit), visibility 0s var(--m-dur-panel); }
.m-sticky.is-on { transform: none; visibility: visible; transition: transform var(--m-dur-panel) var(--m-ease), visibility 0s; }
/* The button can shrink (min-inline-size: 0) and a long label cannot push the
   price off the edge: the button's track is the flexible one. */
.m-sticky .m-btn { order: 2; min-inline-size: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* A button that cannot be pressed (sold out, a closed store) says so on the
   quiet surface the page's own buy button takes, at full strength: a faded
   primary could not be read. A button that is only busy keeps its fill. */
.m-sticky .m-btn:disabled:not(.is-busy):not([data-busy]) { border-color: transparent; background-color: var(--m-surface-3); color: var(--m-c-ink-2); opacity: 1; }
.m-sticky__sum { display: grid; min-inline-size: 0; }
.m-sticky__label { color: var(--m-c-ink-2); font-size: var(--m-fs-micro); font-weight: var(--m-fw-small); line-height: var(--m-lh-control); }
.m-sticky__price { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; }
/* The bar is the buy control, not the deal ledger: one price, never two. */
.m-sticky__price del { display: none; }
.m-sticky__price ins { text-decoration: none; }
.m-sticky--co__go:disabled { cursor: progress; }

/* ---- From 600 ---- */
@media (min-width: 600px) {
	/* sheet: a card in the end corner, which the floating layer has left
	   free (4.8.5), above whatever bar the page has. It rises a little and
	   fades in. */
	.m-popup--sheet .m-popup__panel { inset-inline: auto var(--m-gutter); bottom: var(--m-fab-clear); inline-size: 380px; padding-block-end: 0; border-block-end: var(--m-overlay-bw) solid var(--m-overlay-edge); border-radius: var(--m-r-sheet); opacity: 0; transform: translateY(var(--m-sp-5)); }

	/* The footer has columns, and its bar is one line. */
	.m-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--m-sp-7) var(--m-sp-6); padding-block: var(--m-band-pad-y) var(--m-sp-8); }
	.m-footer__grid .m-footer__nav, .m-footer__grid .m-footer__facts, .m-footer__delivery { grid-column: auto; }
	.m-footer__grid .m-footer__head { display: block; }
	.m-footer__grid .m-footer__socialname { display: inline; }
	.m-footer__grid .m-footer__fact--extra { display: flex; }
	.m-footer__grid .m-footer__fact--lead svg { display: none; }
	.m-footer__grid .m-footer__social, .m-footer__grid .m-footer__facts { flex-direction: column; flex-wrap: nowrap; gap: var(--m-sp-2); }
	/* The clock stands under the social icons, on their axis. */
	.m-footer__stack { gap: var(--m-sp-4); padding-block: var(--m-band-pad-y) var(--m-sp-8); }
	.foot--centered .m-footer__stack + * .m-footer__cod, .foot--centered .m-footer__stack + * .m-footer__prefs { flex-basis: auto; order: 0; }
}

/* ---- From 900 ---- */
@media (min-width: 900px) {
	/* card: the photo and the words side by side. */
	.m-popup--card.m-popup--photo .m-popup__panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-inline-size: 760px; }
	.m-popup--card.m-popup--photo .m-popup__media { block-size: auto; min-block-size: 360px; }
	.m-popup--card.m-popup--photo .m-popup__body { align-content: center; justify-items: start; padding: var(--m-sp-8); text-align: start; }

	/* banner: a bar floating at the bottom centre, where nothing is fixed. */
	.m-popup--banner .m-popup__panel { top: auto; bottom: var(--m-sp-6); inset-inline: 0; inline-size: fit-content; max-inline-size: min(880px, calc(100% - 2 * var(--m-gutter))); margin-inline: auto; opacity: 0; transform: translateY(var(--m-sp-5)); }
	.m-popup--banner .m-popup__body { gap: var(--m-sp-5); padding-inline-start: var(--m-sp-6); }
	.m-popup--banner .m-popup__copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--m-sp-3); }

	/* The footer's columns: the brand block is 4 of 12, and the name grows. */
	.m-footer__grid .m-footer__links { grid-template-columns: minmax(0, 1fr); }

	/* Nothing is fixed to the bottom from 900 (2.9). */
	.m-sticky { display: none; }
}

@media (hover: hover) and (pointer: fine) {
	.m-minicart__close:hover { background-color: rgba(var(--m-c-ink-rgb), .06); }
	.m-minicart__remove:hover { background-color: var(--m-danger-soft); color: var(--m-danger); }
	.m-minicart__name:hover, .m-footer__links a:hover, .m-footer__sociallink:hover, .m-footer__fact a:hover, .m-footer__credit:hover { color: var(--m-c-link); }
	.m-whatsapp:hover { box-shadow: var(--m-wa-shadow); }
}

/* ==========================================================================
   13. The floating layer in motion (4.8.4, 4.8.6, 12.4.12) and the dark and
   light switch (12.4.13). After every rule they fold into: an element's own
   transition for its press is replaced by the one that carries it away.
   ========================================================================== */
/* Away: ui.js's one scroll signal gives is-away to every [data-away] (the
   floating WhatsApp button, the `fab` bar): it leaves while the page moves
   down and comes back on the way up, and the WhatsApp button also leaves,
   at rest, a control it would stand on. Transform and opacity only, and out
   of the tab order once it has gone. Without the script nothing is away. */
[data-away] { transition: transform var(--m-dur-chrome) var(--m-ease), opacity var(--m-dur-chrome) var(--m-ease), visibility 0s; }
[data-away].is-away { transform: translateY(calc(100% + var(--m-fab-clear))); opacity: 0; visibility: hidden; transition: transform var(--m-dur-chrome) var(--m-ease-exit), opacity var(--m-dur-chrome) var(--m-ease-exit), visibility 0s var(--m-dur-chrome); }
/* Typing: with the keyboard up nothing stays fixed to the bottom (ui.js sets
   is-typing on <html>). On Android a fixed bar rides up on the keyboard and
   takes a fifth of what is left; on iOS it hides behind it and comes back
   mid-scroll. */
.is-typing .m-dock, .is-typing body > .m-whatsapp, .is-typing .m-sticky.is-on { transform: translateY(calc(100% + var(--m-fab-clear))); visibility: hidden; transition: transform var(--m-dur-chrome) var(--m-ease-exit), visibility 0s var(--m-dur-chrome); }
/* The switch: while <html> is is-toning nothing but the veil transitions, so
   the swap is one frame. Where the engine has view transitions it
   cross-fades two snapshots; elsewhere one fixed layer of the target ground
   fades in, the form changes under it, and it fades out. */
.is-toning *:not(.m-veil), .is-toning *:not(.m-veil)::before, .is-toning *:not(.m-veil)::after { transition: none !important; }
.m-veil { position: fixed; inset: 0; z-index: var(--m-z-veil); pointer-events: none; opacity: 0; transition: opacity var(--m-dur-tone) linear; }
.m-veil.is-on { opacity: 1; transition-duration: var(--m-dur-tone-in); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--m-dur-tone); }
