/* Matjari components: the atoms a page is built from, and the product card.
   The contract is docs/DESIGN-SYSTEM.md: 2.5 (buttons, controls), 2.6 (cards,
   badges), 2.7 (frames and fit), 3.5 (rails), 4.3 (the six card families),
   5.5 (what this file owns) and section 7 (the browser floor and hygiene).

   Every value is a token of tokens.css or a role PHP prints, read through the
   current layer (--m-c-*) so an atom is right inside any context and under a
   dark tone. This file declares no custom property. A Look restyles an atom
   by setting tokens; where it writes a rule, that rule carries the class the
   shared rule is keyed on (5.3.10).

   Pseudo-elements: ::after is this file's (the stretched card link, the 44px
   hit areas, the frame's edge and scrim). ::before on .m-btn, .m-card,
   .m-card__frame and .m-badge is the Look's and is never used here.

   Hover lives behind (hover: hover) and (pointer: fine). Everything a finger
   can press has an :active state outside it, on the Look's press token; a
   button also answers in paint (it takes its pointed-at colours), so a press
   shows where the shopper's device has asked for no motion.

   Radii (2.3, H33): --m-r-control, and --m-btn-r which is it, are read only
   by a control of one line and a fixed height (the button, the stepper, the
   segments, the switch, the share control, the card's labelled add button).
   A box whose text can wrap (a notice, the currency note) reads --m-r-box,
   so a Look whose controls are pills does not turn it into a lozenge. */

/* ==========================================================================
   Buttons (2.5). One anatomy; a modifier changes the fill and nothing else.
   ========================================================================== */
.m-btn {
	position: relative;
	display: inline-grid;
	grid-auto-flow: column;
	align-items: center;
	justify-content: center;
	gap: var(--m-btn-gap);
	min-width: 0;
	min-height: var(--m-btn-h);
	margin: 0;
	padding-block: var(--m-sp-2);
	padding-inline: var(--m-btn-px);
	border: var(--m-btn-bw) solid transparent;
	border-radius: var(--m-btn-r);
	background-color: transparent;
	color: inherit;
	font-family: var(--m-btn-font);
	font-size: var(--m-btn-fs);
	font-weight: var(--m-btn-fw);
	line-height: var(--m-lh-control);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color var(--m-dur-press) var(--m-ease), color var(--m-dur-press) var(--m-ease), border-color var(--m-dur-press) var(--m-ease), box-shadow var(--m-dur-panel) var(--m-ease), transform var(--m-dur-press) var(--m-ease), opacity var(--m-dur-press) var(--m-ease);
}
/* The --m-btn-* family is the current layer's, so the same class is right on
   the page, on a primary band, on a photograph and in the footer. */
.m-btn--primary {
	border-color: var(--m-btn-edge);
	background-color: var(--m-btn-bg);
	color: var(--m-btn-ink);
	box-shadow: var(--m-btn-shadow);
}
.m-btn--ghost {
	border-color: var(--m-btn2-edge);
	background-color: var(--m-btn2-bg);
	color: var(--m-btn2-ink);
}
/* THE BUTTON THAT BUYS (add to cart, the sticky bar, place order). It reads
   the current fill itself, which no step of the button touch re-points: under
   solid, outline, soft and a Look's own it is the one solid button of the
   page (2.5, 10.2). Its depth is still the Look's. After --primary, so it
   wins where a template carries both. */
.m-btn--buy {
	border-color: var(--m-c-fill-edge);
	background-color: var(--m-c-fill);
	color: var(--m-c-on-fill);
	box-shadow: var(--m-btn-shadow);
}
/* A light button with dark text in BOTH tones: for use over a photograph. */
.m-btn--light {
	border-color: var(--m-on-photo);
	background-color: var(--m-on-photo);
	color: var(--m-scrim);
}
/* The deep green carries white at 4.5:1; the bright one is for marks only. */
.m-btn--wa {
	border-color: var(--m-wa-deep);
	background-color: var(--m-wa-deep);
	color: var(--m-on-wa);
}
/* WhatsApp ordering beside the buy button is the SECOND path: an outline in
   the page ink with the mark in green, never a second solid slab. */
.m-btn.m-buy__wa {
	border-color: var(--m-wa);
	background-color: transparent;
	color: var(--m-c-ink);
}
.m-btn.m-buy__wa svg { color: var(--m-wa); }
.m-btn--text {
	min-height: var(--m-touch);
	padding-inline: 0;
	color: var(--m-c-link);
	text-decoration: underline;
	text-underline-offset: .22em;
}
.m-btn--sm { min-height: var(--m-btn-h-sm); padding-inline: var(--m-btn-px-sm); }
.m-btn--lg { min-height: var(--m-btn-h-lg); }
.m-btn--block { display: grid; width: 100%; }
/* A small button and a segment keep a 44px target: a hit area as wide as
   the control, centred on it, sized by the touch token itself. */
.m-btn--sm::after, .m-seg a::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 0;
	width: 100%;
	height: var(--m-touch);
	margin-block-start: calc(var(--m-touch) / -2);
}
/* A finger has no hover: pressed, a button takes its pointed-at colours (an
   outline fills, a wash turns solid, a solid deepens), so every step of the
   button touch answers the touch, and answers it where motion is reduced. */
.m-btn--primary:active { background-color: var(--m-btn-bg-hover); color: var(--m-btn-ink-hover); }
.m-btn--buy:active { background-color: var(--m-c-fill-hover); }
.m-btn--ghost:active { border-color: var(--m-btn2-ink); background-color: var(--m-btn2-bg-hover); }
/* Inside a fill (a band, a photograph, the footer, the promo bar) the quiet
   button's wash is its on-colour over the fill, which took its label under
   4.5:1: there it answers by its edge alone. A page panel inside a fill keeps
   to the edge too, which costs nothing. */
.m-ctx:not(.m-ctx--page) .m-btn--ghost:active { background-color: var(--m-btn2-bg); }
/* The variable product's PROMPT state (product.js): a live, quieter primary
   that walks her to the options. Distinct from :disabled on purpose, which
   still means genuinely blocked (sold out, closed). */
.m-btn.is-prompt {
	border-color: transparent;
	background-color: var(--m-primary-soft);
	color: var(--m-c-link);
	box-shadow: none;
}
/* Working (12.4.17): never dimmed. The word the script wrote stays («لحظة…»)
   and a ring turns after it, in the label's own colour; with motion reduced it
   is a still ring. The ring takes the place of a small button's hit area,
   which a button that cannot be pressed does not need. */
.m-btn.is-busy { opacity: 1; cursor: progress; pointer-events: none; }
.m-btn.is-busy::after {
	content: "";
	position: static;
	width: 16px;
	height: 16px;
	margin: 0;
	border: 2px solid;
	border-block-start-color: transparent;
	border-radius: var(--m-r-round);
	animation: m-spin var(--m-dur-spin) linear infinite;
}
.m-btn.is-done { pointer-events: none; }
.m-btn:disabled, .m-btn[aria-disabled="true"] { box-shadow: none; }
.m-btn[aria-disabled="true"] { opacity: var(--m-disabled); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
	.m-btn--primary:hover {
		background-color: var(--m-btn-bg-hover);
		color: var(--m-btn-ink-hover);
		box-shadow: var(--m-btn-shadow-hover);
	}
	.m-btn--buy:hover { background-color: var(--m-c-fill-hover); color: var(--m-c-on-fill); box-shadow: var(--m-btn-shadow-hover); }
	.m-btn--ghost:hover { border-color: var(--m-btn2-ink); background-color: var(--m-btn2-bg-hover); }
	.m-ctx:not(.m-ctx--page) .m-btn--ghost:hover { background-color: var(--m-btn2-bg); }
	.m-btn--light:hover, .m-btn--wa:hover { box-shadow: var(--m-btn-shadow-hover); }
	.m-btn.m-buy__wa:hover { background-color: var(--m-wa-wash); box-shadow: none; }
	.m-btn--text:hover { text-decoration-thickness: 2px; }
	.m-btn.is-prompt:hover { background-color: var(--m-primary-soft); color: var(--m-c-link); box-shadow: none; }
}
/* After the hover block, so a press still reads while the pointer is over it. */
.m-btn:active { transform: var(--m-btn-press); opacity: var(--m-press-opacity); }

/* ==========================================================================
   Form atoms. The field anatomy itself is base.css's, by element selector.
   ========================================================================== */
.m-field {
	display: grid;
	gap: var(--m-label-gap);
	margin-block: 0 var(--m-gap-stack);
	margin-inline: 0;
}
.m-field label, .m-field__label {
	color: var(--m-c-ink);
	font-size: var(--m-label-fs);
	font-weight: var(--m-label-fw);
	line-height: var(--m-lh-control);
}
.m-field__hint, .m-field__error { margin: 0; font-size: var(--m-fs-small); line-height: var(--m-lh-ui); }
.m-field__hint { color: var(--m-c-ink-2); }
/* An error is a sentence in the danger colour under a field with a danger
   edge: a word and a colour, never the colour alone. */
.m-field__error { color: var(--m-danger); font-weight: var(--m-fw-strong); }
.m-field.is-invalid input, .m-field.is-invalid select, .m-field.is-invalid textarea { border-color: var(--m-input-edge-error); }

/* THE select: its own chevron, drawn in the field's ink. Logical borders,
   turned by an angle that follows the direction, so it is a «v» in both. */
.m-cosel { position: relative; display: block; }
.m-cosel select {
	-webkit-appearance: none;
	appearance: none;
	padding-inline-end: var(--m-sp-9);
	cursor: pointer;
}
.m-cosel::after {
	content: "";
	position: absolute;
	inset-block-start: calc(50% - 7px);
	inset-inline-end: var(--m-sp-4);
	width: 9px;
	height: 9px;
	border-block-end: 1.8px solid var(--m-input-ink);
	border-inline-end: 1.8px solid var(--m-input-ink);
	opacity: .6;
	transform: rotate(calc(var(--m-dir) * 45deg));
	pointer-events: none;
}

/* A checkbox or a radio with its label: <label class="m-check"><input><span>.
   The box has a radius of its own (--m-check-r, 6px at most): on the thumb
   radius a Look with round thumbs drew a checkbox that read as a radio. */
.m-check {
	display: inline-grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: var(--m-sp-3);
	min-height: var(--m-touch);
	color: var(--m-c-ink);
	font-size: var(--m-fs-ui);
	font-weight: var(--m-fw-body);
	line-height: var(--m-lh-ui);
	cursor: pointer;
}
.m-check input {
	position: relative;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	margin: 0;
	border: var(--m-input-bw) solid var(--m-input-edge);
	border-radius: var(--m-check-r);
	background-color: var(--m-input-bg);
	color: var(--m-c-on-fill);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: background-color var(--m-dur-press) var(--m-ease), border-color var(--m-dur-press) var(--m-ease);
}
.m-check input[type=radio] { border-radius: var(--m-r-round); }
.m-check input:checked { border-color: var(--m-c-fill-edge); background-color: var(--m-c-fill); }
.m-check input::before { content: ""; width: 14px; height: 14px; }
.m-check input[type=radio]:checked::before {
	width: 8px;
	height: 8px;
	border-radius: var(--m-r-round);
	background-color: currentColor;
}

/* The stepper. Grid, never flex gap: it is on the buy path (section 7). */
.m-qty {
	display: inline-grid;
	flex: none;
	grid-template-columns: var(--m-touch) auto var(--m-touch);
	align-items: stretch;
	overflow: hidden;
	border: var(--m-input-bw) solid var(--m-input-edge);
	border-radius: var(--m-r-control);
	background-color: var(--m-input-bg);
	color: var(--m-input-ink);
}
.m-qty input, .m-qty b {
	display: grid;
	place-items: center;
	width: var(--m-sp-9);
	min-width: var(--m-touch);
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	color: inherit;
	font-weight: var(--m-fw-strong);
	font-variant-numeric: var(--m-fvn);
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}
.m-qty input::-webkit-outer-spin-button, .m-qty input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
/* The field's ring would be cut by the stepper's own corners: it is drawn inside. */
.m-qty input:focus { box-shadow: inset 0 0 0 var(--m-bw-focus) var(--m-input-edge-focus); }
.m-qty .quantity { display: grid; margin: 0; }
.m-qty__btn {
	display: grid;
	place-items: center;
	min-height: var(--m-btn-h);
	padding: 0;
	border: 0;
	background-color: transparent;
	color: inherit;
	font-size: var(--m-fs-h3);
	line-height: var(--m-lh-control);
	cursor: pointer;
	transition: background-color var(--m-dur-press) var(--m-ease);
}
.m-qty__btn:active { background-color: var(--m-surface-3); }
.m-qty__btn:focus-visible { outline-offset: calc(var(--m-bw-focus) * -1); }

/* A segmented choice: language, currency. */
.m-seg {
	display: inline-grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	padding: var(--m-sp-1);
	border-radius: var(--m-r-control);
	background-color: var(--m-surface-3);
}
.m-seg a {
	position: relative;
	display: grid;
	place-items: center;
	min-height: var(--m-ctl-h);
	padding-inline: var(--m-sp-4);
	border-radius: calc(var(--m-r-control) - var(--m-sp-1));
	color: var(--m-ink-2);
	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), color var(--m-dur-press) var(--m-ease);
}
/* The primary fill, not the ink: a two-way pill that fills with the text
   colour reads as a light and dark switch. */
.m-seg a.is-active { background: var(--m-c-fill); color: var(--m-c-on-fill); font-weight: var(--m-fw-strong); }
.m-seg a:active { transform: var(--m-btn-press); }

/* The switch (4.1.5): every on and off control of the storefront, the
   shopper's dark and light switch first. A 44 by 26 track and a thumb that
   travels by transform, along the reading direction. Off, it is hollow: a
   line and a thumb in the current layer's inks; on, the current fill. So off
   and on differ in kind on the page, on a band and over a photograph. It is
   a control by itself (<button class="m-switch" role="switch" aria-checked>,
   with its own 44px hit area, below with the card's) or the picture of one
   inside a row that is the control (<span class="m-switch" aria-hidden> in
   a button that carries role="switch" and aria-checked: the drawer's row).
   The state is the attribute: nothing is on without it. */
.m-switch {
	position: relative;
	display: inline-block;
	flex: none;
	width: var(--m-touch);
	height: 26px;
	padding: 0;
	border: var(--m-input-bw) solid var(--m-c-line-strong);
	border-radius: var(--m-r-control);
	background-color: transparent;
	vertical-align: middle;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color var(--m-dur-press) var(--m-ease), border-color var(--m-dur-press) var(--m-ease);
}
.m-switch::before {
	content: "";
	position: absolute;
	inset-block-start: calc(50% - 9px);
	inset-inline-start: calc(4px - var(--m-input-bw));
	width: 18px;
	height: 18px;
	border-radius: calc(var(--m-r-control) - 4px);
	background-color: var(--m-c-ink-2);
	transition: transform var(--m-dur-press) var(--m-ease), background-color var(--m-dur-press) var(--m-ease);
}
.m-switch[aria-checked=true], [aria-checked=true] > .m-switch {
	border-color: var(--m-c-fill-edge);
	background-color: var(--m-c-fill);
}
.m-switch[aria-checked=true]::before, [aria-checked=true] > .m-switch::before {
	background-color: var(--m-c-on-fill);
	transform: translateX(calc(var(--m-dir) * 18px));
}

/* ==========================================================================
   Badge (2.6). One slot per card: sold out beats sale beats new.
   ========================================================================== */
.m-badge {
	display: inline-grid;
	place-items: center;
	min-width: var(--m-badge-min-w);
	min-height: var(--m-badge-h);
	padding-inline: var(--m-badge-px);
	border: var(--m-bw-hair) solid var(--m-badge-edge);
	border-radius: var(--m-badge-r);
	background-color: var(--m-badge-bg);
	color: var(--m-badge-ink);
	font-size: var(--m-badge-fs);
	font-weight: var(--m-badge-fw);
	line-height: var(--m-lh-control);
	font-variant-numeric: var(--m-fvn);
	text-align: center;
	transform: rotate(var(--m-badge-rotate));
	/* A label never swallows the tap: it falls through to the card's link. */
	pointer-events: none;
}
/* Only the sale is loud. Sold out is an ink block, new is a quiet chip. */
.m-badge--out { border-color: transparent; background-color: var(--m-inverse); color: var(--m-on-inverse); }
.m-badge--new { border-color: var(--m-line); background-color: var(--m-surface-1); color: var(--m-ink); }

/* ==========================================================================
   Product card (2.6, 2.7, 4.3). parts/card/card.php prints one markup for six
   families; the family is the class on the <li> and the only key used here.

   Two grids. The <li>: media, body, foot. The body: seven rows, of which the
   sixth takes the slack, so in a row of cards every price sits on one line
   however many lines each name took, and a short name leaves no hole.
   ========================================================================== */
.m-card {
	position: relative;
	z-index: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto 1fr auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: var(--m-card-align);
	transition: transform var(--m-dur-panel) var(--m-ease), box-shadow var(--m-dur-panel) var(--m-ease), opacity var(--m-dur-press) var(--m-ease);
}
/* The boxed families paint a page surface and carry the page context. */
.m-card--framed, .m-card--inline {
	padding: var(--m-card-pad);
	border: var(--m-card-bw) solid var(--m-card-edge);
	border-radius: var(--m-card-r);
	background-color: var(--m-card-bg);
	box-shadow: var(--m-card-shadow);
}

/* ---- The photo. The frame is the ONLY element of a card that clips. ---- */
.m-card__media { position: relative; display: block; grid-area: 1 / 1; }
.m-card__frame {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--m-card-frame-r);
	background-color: var(--m-img-bg);
	aspect-ratio: var(--m-ratio-card);
}
/* A hairline inside the frame's own shape: a white-background shot keeps an
   edge on a pale ground, and mixed phone photos read as one set. */
.m-card__frame::after {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 var(--m-bw-hair) rgba(var(--m-c-ink-rgb), .07);
	pointer-events: none;
}
.m-card__img {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--m-dur-zoom) var(--m-ease), opacity var(--m-dur-panel) var(--m-ease);
}
/* contain and mat (2.7): the photograph floats whole inside the frame, and
   its corners follow the photograph, not an empty box. Never on `tall`.
   The frame that paints a plate is dimmed by --m-plate-dim (1 in the light
   form, less in the dark one: 8.9), plate and photograph as one, so a product
   shot on white does not glare out of a dark page. The badge, the heart and
   the add control are beside the frame, not in it, and stay at full strength.
   A photograph that covers its frame is never dimmed. */
.fit--contain .m-card:not(.m-card--tall) .m-card__frame { background-color: var(--m-mat); opacity: var(--m-plate-dim); }
.fit--mat .m-card:not(.m-card--tall) .m-card__frame { background-color: var(--m-plate); opacity: var(--m-plate-dim); }
.fit--contain .m-card:not(.m-card--tall) .m-card__img, .fit--mat .m-card:not(.m-card--tall) .m-card__img {
	inset-block-end: 0;
	inset-inline-end: 0;
	width: auto;
	max-width: calc(100% - 2 * var(--m-img-pad-contain));
	height: auto;
	max-height: calc(100% - 2 * var(--m-img-pad-contain));
	margin: auto;
	border-radius: var(--m-r-thumb);
}
.fit--mat .m-card:not(.m-card--tall) .m-card__img {
	max-width: calc(100% - 2 * var(--m-img-pad-mat));
	max-height: calc(100% - 2 * var(--m-img-pad-mat));
}
/* A white-background shot sinks into the neutral plate. Light tone only: on a
   dark store the plate is white and there is nothing to blend. */
.fit--mat.tone-light .m-card:not(.m-card--tall) .m-card__img { mix-blend-mode: multiply; }
/* Sold out: the whole photo steps back, and the badge says why. */
.m-card.outofstock .m-card__img { opacity: .5; filter: grayscale(1); }

/* ---- The body: the anchor. It stretches over the whole card. ---- */
.m-card__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-area: 2 / 1;
	grid-template-rows: auto auto auto auto auto 1fr auto;
	padding: var(--m-card-body-py) var(--m-card-body-px);
	color: var(--m-c-ink);
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.m-card__link::after { content: ""; position: absolute; inset: 0; z-index: var(--m-z-raised); }
/* The ring is drawn around the card, where the link's hit area is. */
.m-card__link:focus-visible { outline-color: transparent; }
.m-card__link:focus-visible::after {
	border-radius: var(--m-card-r);
	outline: var(--m-bw-focus) solid var(--m-c-focus);
	outline-offset: var(--m-focus-offset);
}
/* Unboxed families: the text lines up with the photo's own edges. */
.m-card--clean .m-card__link { padding-inline: 0; padding-block-end: 0; }
.m-card--inline .m-card__link { padding-block-end: var(--m-sp-3); }
.m-card__name, .m-card__rating, .m-card__specs, .m-card__dots, .m-card__price { grid-column: 1 / -1; }
.m-card__eyebrow {
	grid-area: 1 / 1;
	overflow: hidden;
	margin-block-end: var(--m-card-gap);
	color: var(--m-c-ink-2);
	font-size: var(--m-fs-micro);
	font-weight: var(--m-fw-small);
	line-height: var(--m-lh-control);
	letter-spacing: var(--m-ls-caps);
	text-transform: var(--m-tt-caps);
	text-overflow: ellipsis;
	white-space: nowrap;
}
/* The name never outweighs its photo, and takes the Look's number of lines
   at most: no line is reserved, the slack row does the levelling. */
.m-card__name {
	grid-row: 3;
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--m-card-name-lines);
	font-family: var(--m-card-name-font);
	font-size: var(--m-card-name-fs);
	font-weight: var(--m-card-name-fw);
	line-height: var(--m-lh-ui);
}
.m-card__rating {
	grid-row: 4;
	display: flex;
	align-items: center;
	justify-content: var(--m-card-align);
	gap: var(--m-sp-1);
	margin-block-start: var(--m-card-gap);
	color: var(--m-c-ink-2);
	font-size: var(--m-fs-micro);
	line-height: var(--m-lh-control);
	font-variant-numeric: var(--m-fvn);
}
/* The row is printed for every card when reviews are on; an empty one takes no room. */
.m-card__rating:empty { display: none; }
.m-card__specs {
	grid-row: 5;
	display: flex;
	flex-wrap: wrap;
	justify-content: var(--m-card-align);
	gap: var(--m-sp-1);
	margin-block-start: var(--m-sp-2);
}
.m-card__specs span {
	padding: var(--m-sp-1) var(--m-sp-2);
	border-radius: var(--m-r-chip);
	background-color: rgba(var(--m-c-ink-rgb), .07);
	color: var(--m-c-ink-2);
	font-size: var(--m-fs-micro);
	line-height: var(--m-lh-control);
}
/* Shade dots sit under the name, in the slack row: a card with dots is no
   taller than its neighbour unless its name is also the longest. */
.m-card__dots {
	grid-row: 6;
	align-self: start;
	display: flex;
	align-items: center;
	justify-content: var(--m-card-align);
	gap: var(--m-sp-1);
	margin-block-start: var(--m-sp-2);
}
.m-card__dots i {
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: var(--m-r-round);
	background-color: var(--dot);
	/* One ring of the current ink, always (2.6): it bounds a pale sample on a
	   light page and a dark one on a dark page. PHP cannot know the form a
	   shopper is in, so nothing is decided from the colour: `is-light` stays
	   in the markup and styles nothing. */
	box-shadow: inset 0 0 0 1px rgba(var(--m-c-ink-rgb), .34);
}
.m-card__dots small { color: var(--m-c-ink-2); font-size: var(--m-fs-micro); line-height: var(--m-lh-control); font-variant-numeric: var(--m-fvn); }
/* The price: one line, the text face, one weight step above the name at
   most. A sale shows the price she pays first, then what it was, struck and
   readable; the unit is said once. Each amount stays whole (.woocommerce-
   Price-amount); the line itself may wrap, so it can never widen the grid. */
.m-card__price {
	grid-row: 7;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: var(--m-card-align);
	margin-block-start: var(--m-sp-2);
	color: var(--m-price-ink);
	font-size: var(--m-card-price-fs);
	font-weight: var(--m-card-price-fw);
	line-height: var(--m-lh-control);
	font-variant-numeric: var(--m-fvn);
}
.m-card__price--lead { grid-row: 2; margin-block: 0 var(--m-card-gap); }
.m-card__price ins { order: 1; color: var(--m-sale-ink); text-decoration: none; }
.m-card__price del {
	order: 2;
	margin-inline-start: var(--m-sp-2);
	color: var(--m-c-ink-2);
	font-size: var(--m-card-was-fs);
	font-weight: var(--m-fw-small);
}
.m-card__price del .woocommerce-Price-currencySymbol { display: none; }
/* «من 20,000 د.ع»: the word is quiet, the amount is the price. */
.m-card__price .m-card__from { color: var(--m-c-ink-2); font-size: var(--m-card-was-fs); font-weight: var(--m-fw-small); }
.m-card__price .m-card__from .woocommerce-Price-amount { color: var(--m-price-ink); font-size: var(--m-card-price-fs); font-weight: var(--m-card-price-fw); }
.m-card.outofstock .m-card__price, .m-card.outofstock .m-card__price ins { color: var(--m-c-ink-2); }

/* ---- What sits on the photo: one badge, the heart, one add control. ---- */
.m-card__media .m-badge {
	position: absolute;
	inset-block-start: var(--m-badge-inset-y);
	inset-inline-start: var(--m-badge-inset-x);
	z-index: var(--m-z-over);
	max-width: calc(100% - 2 * var(--m-badge-inset-x) - var(--m-wish-size) - var(--m-sp-2));
}
/* A badge with no fill is not put on a photo (spec.card.badge = caption): it
   is a word in the body, above the name, or at the end of the eyebrow's row. */
.m-card__link .m-badge {
	grid-area: 1 / 1 / auto / -1;
	justify-self: start;
	min-width: 0;
	min-height: 0;
	margin-block-end: var(--m-card-gap);
	padding: 0;
	border: 0;
	background-color: transparent;
	color: var(--m-c-ink-2);
	transform: none;
}
.m-card__link .m-badge--sale { color: var(--m-sale-ink); }
.m-card__link .m-badge--new { color: var(--m-c-link); }
/* A word in the body wears no sticker: a Look that dresses its badges (a hard
   shadow, a fill for the new one) dresses the one on the photograph. A tall
   card's body is its photograph, and keeps the chip of its own file. */
li.m-card .m-card__link .m-badge { box-shadow: none; }
li.m-card:not(.m-card--tall) .m-card__link .m-badge.m-badge--new { background-color: transparent; }

/* The add control, floating, at the photo's lower end corner: round on nasma,
   and the same shape as the heart on every Look (--m-quick-r and --m-wish-r
   are one value, spec.radius.float). Simple products add; a product with
   options shows an arrow and is inert (the card's link takes the tap). */
.m-card__quick {
	position: absolute;
	inset-block-end: var(--m-card-inset);
	inset-inline-end: var(--m-card-inset);
	z-index: var(--m-z-over);
	display: grid;
	grid-auto-flow: column;
	place-items: center;
	justify-content: center;
	gap: var(--m-btn-gap);
	width: var(--m-quick-size);
	height: var(--m-quick-size);
	padding: 0;
	border: var(--m-bw-hair) solid var(--m-line);
	border-radius: var(--m-quick-r);
	background-color: var(--m-surface-1);
	color: var(--m-ink);
	box-shadow: var(--m-elev-1);
	font-family: var(--m-btn-font);
	font-size: var(--m-fs-small);
	font-weight: var(--m-btn-fw);
	line-height: var(--m-lh-control);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color var(--m-dur-press) var(--m-ease), color var(--m-dur-press) var(--m-ease), border-color var(--m-dur-press) var(--m-ease), transform var(--m-dur-press) var(--m-ease), opacity var(--m-dur-panel) var(--m-ease);
}
.m-card__quick-label { display: none; }
.m-card__quick--go { pointer-events: none; }
.m-card__quick--go svg { transform: scaleX(var(--m-dir)); }
/* A closed store says so once per card, in words, where the control was. */
.m-card__quick--closed {
	width: auto;
	height: auto;
	min-height: var(--m-badge-h);
	padding-inline: var(--m-sp-2);
	border-radius: var(--m-r-chip);
	color: var(--m-ink-2);
	font-size: var(--m-fs-micro);
	pointer-events: none;
}
.m-card__quick--closed .m-card__quick-label { display: block; }
/* Its states (minicart.js). The script disables the button while it works,
   which must not dim it: the spinner is the feedback. */
.m-card__quick.is-busy { opacity: 1; cursor: progress; pointer-events: none; }
.m-card__quick.is-busy > *, .m-card__quick.is-done > * { opacity: 0; }
.m-card__quick.is-busy::before {
	content: "";
	position: absolute;
	inset: 0;
	width: 16px;
	height: 16px;
	margin: auto;
	border: 2px solid rgba(var(--m-c-ink-rgb), .22);
	border-block-start-color: currentColor;
	border-radius: var(--m-r-round);
	animation: m-spin var(--m-dur-spin) linear infinite;
}
.m-card__quick.is-done { border-color: var(--m-c-fill-edge); background-color: var(--m-c-fill); color: var(--m-c-on-fill); }
/* The tick is a mask painted with the control's own colour: it cannot mirror
   and it needs no physical border. The checked box of .m-check shares it. */
.m-card__quick.is-done::before, .m-check input[type=checkbox]:checked::before {
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.4 18.6 3.9 13l1.9-1.8 3.6 3.6 8.8-8.9 1.9 1.9z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.4 18.6 3.9 13l1.9-1.8 3.6 3.6 8.8-8.9 1.9 1.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.m-card__quick.is-done::before {
	content: "";
	position: absolute;
	inset: 0;
	width: 18px;
	height: 18px;
	margin: auto;
	animation: m-emph-soft var(--m-dur-emph) var(--m-ease-emph);
}
/* A 44px target, centred, whatever size the Look gives the control. */
.m-card__quick::after, .m-wish--card::after, .m-switch::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 50%;
	width: var(--m-touch);
	height: var(--m-touch);
	margin-block-start: calc(var(--m-touch) / -2);
	margin-inline-start: calc(var(--m-touch) / -2);
}

/* The add control, inline (`inline` family): the same element, as a labelled
   button across the card's foot. Stacked at every width: a card cannot hold a
   price and a labelled button side by side. It never becomes a stepper. */
.m-card__foot {
	display: block;
	grid-area: 3 / 1;
	min-height: calc(var(--m-btn-h-sm) + var(--m-card-body-py));
	padding: 0 var(--m-card-body-px) var(--m-card-body-py);
}
.m-card__foot .m-card__quick {
	position: relative;
	inset-block-end: auto;
	inset-inline-end: auto;
	width: 100%;
	height: auto;
	min-height: var(--m-btn-h-sm);
	padding-inline: var(--m-btn-px-sm);
	border: var(--m-btn-bw) solid transparent;
	border-radius: var(--m-btn-r);
	background-color: var(--m-primary-soft);
	color: var(--m-c-link);
	box-shadow: none;
	font-size: var(--m-btn-fs);
}
.m-card__foot .m-card__quick::after { inset-inline-start: 0; width: 100%; margin-inline-start: 0; }
.m-card__foot .m-card__quick-label { display: block; }
.m-card__foot .m-card__quick--go { border-color: var(--m-btn2-edge); background-color: transparent; color: var(--m-c-ink); }
.m-card__foot .m-card__quick--closed { border-color: transparent; background-color: var(--m-surface-3); color: var(--m-ink-2); }
.m-card__foot .m-card__quick.is-done { border-color: var(--m-c-fill-edge); background-color: var(--m-c-fill); color: var(--m-c-on-fill); }

/* The price as a tag (`tag` family): it straddles the photo's lower edge at
   the start, so it reads as tied to the card, not laid over the product. */
.m-card__tag {
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: var(--m-card-body-px);
	z-index: var(--m-z-over);
	display: block;
	max-width: calc(100% - 2 * var(--m-card-body-px));
	padding: var(--m-sp-1) var(--m-sp-3);
	border: var(--m-bw-hair) solid var(--m-c-fill-edge);
	border-radius: var(--m-r-chip);
	background-color: var(--m-c-fill);
	color: var(--m-c-on-fill);
	font-size: var(--m-card-price-fs);
	font-weight: var(--m-card-price-fw);
	line-height: var(--m-lh-ui);
	font-variant-numeric: var(--m-fvn);
	white-space: nowrap;
	transform: translateY(50%);
	pointer-events: none;
}
.m-card__tag del { display: none; }
.m-card__tag ins { text-decoration: none; }

/* ---- The heart (D5: never removed). On the photo, at the top end corner. ---- */
.m-wish {
	position: relative;
	display: grid;
	place-items: center;
	flex: none;
	padding: 0;
	border: 0;
	border-radius: var(--m-wish-r);
	background-color: var(--m-surface-1);
	color: var(--m-ink);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: color var(--m-dur-press) var(--m-ease), transform var(--m-dur-press) var(--m-ease);
}
.m-wish svg path { transition: fill var(--m-dur-press) var(--m-ease); }
.m-wish.is-in { color: var(--m-wish); }
.m-wish.is-in svg path { fill: currentColor; }
.m-wish.is-pop { animation: m-emph-soft var(--m-dur-emph) var(--m-ease-emph); }
.m-wish:active { transform: var(--m-btn-press); }
.m-wish--card {
	position: absolute;
	inset-block-start: calc(var(--m-card-pad) + var(--m-card-inset));
	inset-inline-end: calc(var(--m-card-pad) + var(--m-card-inset));
	z-index: var(--m-z-over);
	width: var(--m-wish-size);
	height: var(--m-wish-size);
	box-shadow: var(--m-elev-1);
}
.m-wish--page { width: var(--m-touch); height: var(--m-touch); background-color: var(--m-surface-2); }
/* On the product photograph, the card's own grammar. */
.m-wish--gallery {
	position: absolute;
	inset-block-start: var(--m-sp-3);
	inset-inline-end: var(--m-sp-3);
	z-index: var(--m-z-over);
	background-color: var(--m-surface-1);
	box-shadow: var(--m-elev-1);
}
/* Under 600 a photo carries two things at most. A crowded card (badge, heart
   and floating add control) draws the SAME button in the body, at the end of
   the name's row, bare; it returns to the photo from 600. 44px in both.

   Its glyph lines up with the end of the text (the body's side padding, less
   the 8px of air inside the button). Nothing of it may leave the card: its
   44px hit area was centred on the button, so at a small side padding (the
   compact density, a Look with a thin body) it stood outside, and a card at
   the page's edge then scrolled the page sideways. So here the hit area is
   laid from the button's end edge INWARDS, and the button itself never passes
   the card's edge (the mat is the card's, so it may stand in it). The first
   margin is for an engine with no max(). */
.m-card--crowded .m-wish--card {
	position: relative;
	inset-block-start: auto;
	inset-inline-end: auto;
	grid-area: 2 / 1;
	align-self: start;
	justify-self: end;
	margin-block-start: calc(var(--m-card-body-py) - var(--m-sp-2));
	margin-inline-end: calc(var(--m-card-body-px) - var(--m-sp-2));
	margin-inline-end: max(calc(var(--m-card-pad) * -1), calc(var(--m-card-body-px) - var(--m-sp-2)));
	background-color: transparent;
	color: var(--m-c-ink-2);
	box-shadow: none;
}
.m-card--crowded .m-wish--card::after { inset-inline-start: auto; inset-inline-end: 0; margin-inline-start: 0; }
/* An unboxed card has no side padding and its text stands at the photo's own
   edges: the button keeps to the card and its glyph stands at its end. */
.m-card--clean.m-card--crowded .m-wish--card { justify-items: end; margin-inline-end: 0; }
/* Its body starts at the photo's foot, where the add control stands on the
   photo: under a dense Look at the compact step its centred 44px reached 1px
   into the add control's. It is laid from the heart's top edge down, which on
   the photo from 600 keeps it inside the photo too. */
.m-card--clean.m-card--crowded .m-wish--card::after { inset-block-start: 0; margin-block-start: 0; }
.m-card--crowded .m-wish--card.is-in { color: var(--m-wish); }
.m-card--crowded .m-card__name, .m-card--crowded .m-card__eyebrow { padding-inline-end: calc(var(--m-wish-size) - var(--m-sp-1)); }
/* `tall` has its body on the photo: there the bare heart stands over the add
   control, in the column the body already keeps clear. */
@media (min-width: 600px) {
	.m-card--crowded .m-wish--card {
		position: absolute;
		inset-block: calc(var(--m-card-pad) + var(--m-card-inset)) auto;
		inset-inline-end: calc(var(--m-card-pad) + var(--m-card-inset));
		grid-area: auto;
		margin: 0;
		background-color: var(--m-surface-1);
		color: var(--m-ink);
		box-shadow: var(--m-elev-1);
	}
	.m-card.m-card--crowded .m-wish--card.is-in { color: var(--m-wish); }
	.m-card--crowded .m-card__name, .m-card--crowded .m-card__eyebrow { padding-inline-end: 0; }
	.m-card--crowded .m-wish--card::after { inset-inline-start: 50%; inset-inline-end: auto; margin-inline-start: calc(var(--m-touch) / -2); }
	.m-card--clean.m-card--crowded .m-wish--card { justify-items: center; }
}

/* ---- Hover, on devices that have it; then the press, for everyone. ---- */
@media (hover: hover) and (pointer: fine) {
	.m-card--framed:hover, .m-card--inline:hover {
		box-shadow: var(--m-card-shadow-hover);
		transform: translate(calc(var(--m-dir) * var(--m-hover-x)), var(--m-hover-lift)) rotate(calc(var(--m-dir) * var(--m-hover-rot)));
	}
	.m-card:hover .m-card__img { transform: scale(var(--m-img-zoom)); }
	/* `clean` and `caption` show the add control on hover; it stays reachable
	   by keyboard, and it is always there on a touch screen. Keyed on the
	   card, never on the link: the control is outside the anchor. */
	.m-card--clean .m-card__quick { opacity: 0; transform: translateY(var(--m-sp-1)); }
	.m-card--clean:hover .m-card__quick, .m-card--clean .m-card__quick.is-busy, .m-card--clean .m-card__quick.is-done {
		opacity: 1;
		transform: none;
	}
	.m-card--clean .m-card__quick:focus-visible { opacity: 1; transform: none; }
	.m-card__quick:hover { border-color: var(--m-c-fill-edge); background-color: var(--m-c-fill); color: var(--m-c-on-fill); }
	.m-wish:hover { color: var(--m-wish); }
	.m-qty__btn:hover { background-color: var(--m-surface-2); }
	.m-seg a:hover { color: var(--m-ink); }
	.m-seg a.is-active:hover { color: var(--m-c-on-fill); }
}
li.m-card:active { transform: var(--m-btn-press); opacity: var(--m-press-opacity); }
li .m-card__quick:active { transform: var(--m-btn-press); }

/* ==========================================================================
   Stars. One box, one --m-stars percentage set inline by PHP. The fill is
   placed by logical insets, so it grows from the right in RTL with no rule
   of its own. No mask support means no stars: the number is shown instead.
   ========================================================================== */
.m-stars { display: none; }
.m-stars__n { font-weight: var(--m-fw-strong); font-variant-numeric: var(--m-fvn); }
@supports ((-webkit-mask-image: none) or (mask-image: none)) {
	.m-stars {
		position: relative;
		display: inline-block;
		flex: none;
		inline-size: calc(var(--m-star-size) * 5);
		block-size: var(--m-star-size);
		background-color: var(--m-star-off);
		vertical-align: -2px;
		-webkit-mask-image: var(--m-star-mask);
		mask-image: var(--m-star-mask);
		-webkit-mask-size: var(--m-star-size) var(--m-star-size);
		mask-size: var(--m-star-size) var(--m-star-size);
		-webkit-mask-repeat: repeat-x;
		mask-repeat: repeat-x;
	}
	.m-stars::before {
		content: "";
		position: absolute;
		inset-block: 0;
		inset-inline-start: 0;
		inline-size: var(--m-stars, 0%);
		background-color: var(--m-star);
	}
	.m-stars__n { display: none; }
	/* Two other sizes, each one em of a type step: 13px on a card, 18px beside
	   a product title. The tile is the box, so both follow the font size. */
	.m-stars--s, .m-stars--l {
		inline-size: 5em;
		block-size: 1em;
		-webkit-mask-size: 1em 1em;
		mask-size: 1em 1em;
	}
	.m-stars--s { font-size: var(--m-fs-small); }
	.m-stars--l { font-size: var(--m-fs-lead); }
}

/* ==========================================================================
   Price atoms.
   ========================================================================== */
.woocommerce-Price-amount { font-variant-numeric: var(--m-fvn); white-space: nowrap; }
.m-price { color: var(--m-price-ink); font-weight: var(--m-fw-strong); font-variant-numeric: var(--m-fvn); }
.m-price ins { color: var(--m-sale-ink); text-decoration: none; }
.m-price del { color: var(--m-c-ink-2); font-size: var(--m-fs-small); font-weight: var(--m-fw-small); }
/* The visitor's chosen currency leads, as an approximation; the price the
   checkout will charge is said beside it, quieter. */
.m-price-approx { font-weight: var(--m-fw-strong); }
.m-price-org, .m-usd { color: var(--m-c-ink-2); font-size: var(--m-fs-small); font-weight: var(--m-fw-small); white-space: nowrap; }
.m-price-org { margin-inline-start: var(--m-sp-2); }
.m-price-org del, .m-price-org ins { order: 0; margin: 0; color: inherit; font-size: inherit; }
.m-curnote {
	margin-block: 0 var(--m-sp-4);
	padding: var(--m-sp-3) var(--m-sp-4);
	border: var(--m-bw-hair) solid var(--m-c-line);
	border-radius: var(--m-r-box); /* a sentence that wraps: never the control's pill */
	background-color: var(--m-surface-2);
	color: var(--m-ink-2);
	font-size: var(--m-fs-small);
	line-height: var(--m-lh-ui);
}

/* ==========================================================================
   Rail (3.5): one component for every horizontal list. The cells are the
   DIRECT children of the track. Below 1200 it bleeds to the screen edge; the
   block padding keeps a card's shadow and lift inside the scroller without
   changing the rail's outer size. The arrows are the script's to reveal.
   ========================================================================== */
.m-rail { position: relative; }
.m-rail__track {
	display: flex;
	gap: var(--m-gap-grid-x);
	margin-block: calc(var(--m-rail-pad-y) * -1);
	margin-inline: calc(var(--m-gutter) * -1);
	padding-block: var(--m-rail-pad-y);
	padding-inline: var(--m-gutter);
	overflow-x: auto;
	list-style: none;
	overscroll-behavior-x: contain;
	scroll-padding-inline: var(--m-gutter);
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.m-rail__track::-webkit-scrollbar { display: none; }
.m-rail__track > * {
	flex: 0 0 calc((100% - (var(--m-rail-cols) - 1) * var(--m-gap-grid-x)) / var(--m-rail-cols));
	min-width: 0;
	scroll-snap-align: start;
}
.m-rail__arrow { display: none; }
@media (min-width: 1200px) {
	.m-rail__track {
		margin-inline: calc(var(--m-rail-pad-y) * -1);
		padding-inline: var(--m-rail-pad-y);
		scroll-padding-inline: var(--m-rail-pad-y);
	}
}
@media (hover: hover) and (pointer: fine) {
	.m-rail__arrow {
		position: absolute;
		inset-block-start: 50%;
		z-index: var(--m-z-over);
		display: grid;
		place-items: center;
		width: var(--m-touch);
		height: var(--m-touch);
		margin-block-start: calc(var(--m-touch) / -2);
		padding: 0;
		border: var(--m-bw-hair) solid var(--m-line);
		border-radius: var(--m-r-round);
		background-color: var(--m-surface-1);
		color: var(--m-ink);
		box-shadow: var(--m-elev-2);
		cursor: pointer;
		transition: opacity var(--m-dur-press) var(--m-ease), background-color var(--m-dur-press) var(--m-ease), color var(--m-dur-press) var(--m-ease), transform var(--m-dur-press) var(--m-ease);
	}
	/* Half a touch outside the rail, and never past the gutter: in a window under
	   about 524px (where the gutter's 4.2vw reaches 22px) the gutter is narrower
	   than half a touch, and an arrow stood up to 6px past the screen's edge, so
	   the page scrolled sideways for a mouse. No plain value stands before the
	   max(): a declaration that holds var() is accepted when it is parsed and
	   fails only when it is computed, so an engine with no max() would never
	   fall back to one (the property would be auto); and none is needed, since
	   every engine that knows the logical insets knows max(), and the arrows are
	   a mouse's alone. */
	.m-rail__arrow--prev { inset-inline-start: max(calc(var(--m-touch) / -2), calc(var(--m-gutter) * -1)); }
	.m-rail__arrow--next { inset-inline-end: max(calc(var(--m-touch) / -2), calc(var(--m-gutter) * -1)); }
	/* Both buttons carry the same forward chevron; the direction turns it. */
	.m-rail__arrow--next svg { transform: scaleX(var(--m-dir)); }
	.m-rail__arrow--prev svg { transform: scaleX(calc(var(--m-dir) * -1)); }
	.m-rail.is-start .m-rail__arrow--prev, .m-rail.is-end .m-rail__arrow--next { opacity: 0; pointer-events: none; }
	.m-rail__arrow:hover { background-color: var(--m-c-fill); color: var(--m-c-on-fill); }
	.m-rail__arrow:active { transform: var(--m-btn-press); }
}

/* ==========================================================================
   The accordion: the FAQ section and the product's details. Rows between
   hairlines by default; boxed panels where the section's variant is `cards`.
   The root carries no box of its own: the measure is on the answer.
   ========================================================================== */
.m-faq__item { border-block-end: var(--m-bw-hair) solid var(--m-c-line); }
.m-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--m-sp-4);
	min-height: var(--m-touch);
	padding-block: var(--m-sp-4);
	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);
	list-style: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.m-faq__item summary::-webkit-details-marker { display: none; }
.m-faq__item summary:active { opacity: .7; }
/* A plus that closes into a minus: two bars, no glyph, nothing to mirror. */
.m-faq__sign { position: relative; flex: none; width: 16px; height: 16px; color: var(--m-c-ink-2); }
.m-faq__sign::before, .m-faq__sign::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 14px;
	height: 2px;
	margin: auto;
	border-radius: var(--m-r-pill);
	background-color: currentColor;
	transition: transform var(--m-dur-panel) var(--m-ease);
}
.m-faq__sign::after { transform: rotate(90deg); }
.m-faq__item[open] .m-faq__sign::after { transform: rotate(0deg); }
.m-faq__a {
	max-width: var(--m-measure);
	padding-block-end: var(--m-sp-5);
	color: var(--m-c-ink-2);
	font-size: var(--m-fs-body);
	line-height: var(--m-lh-body);
}
.m-faq__a p { margin-block: 0 var(--m-sp-2); }
.m-faq__a p:last-child { margin-block-end: 0; }
.m-faq__item[open] .m-faq__a { animation: m-reveal var(--m-dur-panel) var(--m-ease); }

/* ==========================================================================
   Empty state, share, notices.
   ========================================================================== */
.m-empty {
	display: grid;
	justify-items: center;
	gap: var(--m-sp-2);
	padding-block: var(--m-sp-11);
	padding-inline: var(--m-sp-4);
	color: var(--m-c-ink-2);
	font-size: var(--m-fs-body);
	text-align: center;
}
.m-empty p { max-width: 36ch; margin: 0; }
.m-empty__title {
	color: var(--m-c-ink);
	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-empty .m-btn { margin-block-start: var(--m-sp-4); }

.m-share {
	position: relative;
	display: inline-grid;
	grid-auto-flow: column;
	align-items: center;
	gap: var(--m-btn-gap);
	min-height: var(--m-touch);
	padding-block: 0;
	padding-inline: var(--m-btn-px-sm);
	border: var(--m-btn-bw) solid var(--m-btn2-edge);
	border-radius: var(--m-btn-r);
	background-color: var(--m-btn2-bg);
	color: var(--m-btn2-ink);
	font-family: var(--m-btn-font);
	font-size: var(--m-fs-small);
	font-weight: var(--m-btn-fw);
	line-height: var(--m-lh-control);
	cursor: pointer;
	transition: background-color var(--m-dur-press) var(--m-ease), transform var(--m-dur-press) var(--m-ease);
}
.m-share:active { transform: var(--m-btn-press); opacity: var(--m-press-opacity); }

/* The store notice under the header (vacation, service lock). */
.m-notice {
	padding: var(--m-sp-3) var(--m-gutter);
	border-block-end: var(--m-bw-hair) solid var(--m-c-line);
	background-color: var(--m-surface-3);
	color: var(--m-ink);
	font-size: var(--m-fs-ui);
	line-height: var(--m-lh-ui);
	text-align: center;
}
.m-notice p { margin: 0; font-weight: var(--m-fw-strong); }
.m-notice__date { display: block; color: var(--m-ink-2); font-size: var(--m-fs-small); font-weight: var(--m-fw-small); }
.m-notice--lock { background-color: var(--m-primary-soft); }
.m-notices { padding-block-start: var(--m-sp-4); }
.m-notices:empty { display: none; }

/* WooCommerce's messages: one panel, said in the status colours the roles
   guarantee, each beside its own words. WooCommerce's stylesheets are not
   loaded, so nothing here has to out-shout them. */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	display: block;
	margin-block: 0 var(--m-sp-4);
	margin-inline: 0;
	padding: var(--m-sp-3) var(--m-sp-4);
	border: var(--m-bw-hair) solid var(--m-c-line);
	border-inline-start: var(--m-sp-1) solid var(--m-c-line-strong);
	border-radius: var(--m-r-box); /* a message of two or three lines is a box, under round controls too (2.3) */
	background-color: var(--m-surface-1);
	color: var(--m-ink);
	font-size: var(--m-fs-ui);
	line-height: var(--m-lh-ui);
	list-style: none;
}
.woocommerce-message, .wc-block-components-notice-banner.is-success {
	border-color: var(--m-success-line);
	border-inline-start-color: var(--m-success);
	background-color: var(--m-success-soft);
}
.woocommerce-error, .wc-block-components-notice-banner.is-error {
	border-color: var(--m-danger-line);
	border-inline-start-color: var(--m-danger);
	background-color: var(--m-danger-soft);
}
.woocommerce-error li { margin: 0; padding-block: var(--m-sp-1); }
.wc-block-components-notice-banner > svg { display: none; }
.woocommerce-message a, .woocommerce-info a, .woocommerce-error a, .wc-block-components-notice-banner a {
	float: none;
	color: inherit;
	font-weight: var(--m-fw-strong);
	text-decoration: underline;
	text-underline-offset: .22em;
}
.woocommerce-message a.button, .woocommerce-info a.button { margin-inline-start: var(--m-sp-2); color: var(--m-primary-ink); }
/* WooCommerce moves focus to the error list so it is announced. It is not a
   control and cannot be tabbed to: the panel is its own indicator, and a ring
   round it made a double border (audit U11). Transparent, never removed. */
.woocommerce-error:focus-visible { outline-color: transparent; }
.woocommerce-notices-wrapper:empty { display: none; }

/* ==========================================================================
   Motion atoms (12.4). Movement is transform and opacity and nothing else.
   ========================================================================== */
/* The ticker (12.4.14): every moving track carries m-ticker beside its own
   class, and PHP prints the length of one copy on it. It runs at a PACE
   (seconds a character), so a short line does not crawl and a long one does
   not race. It stops while it is pressed, pointed at or holds the focus, and
   while it is off the screen (fx.js marks the ones in view); at the `off`
   level it does not run, and its owner draws the still twin beside this
   rule. With motion reduced, base.css ends it at once. */
.m-ticker { animation: m-marquee calc(var(--m-ticker-len, 280) * var(--m-ticker-pace)) linear infinite; }
.m-fx .m-ticker:not(.is-playing) { animation-play-state: paused; }
.m-ticker:active { animation-play-state: paused; }
.m-ticker:focus-within { animation-play-state: paused; }
.motion--off .m-ticker { animation: none; }
@media (hover: hover) and (pointer: fine) {
	.m-ticker:hover { animation-play-state: paused; }
}
/* A photograph fades in when it has loaded (12.4.16). It is never hidden
   before: the start state is the `from` of the keyframe, on a class the
   script adds at the load event, so a missed event is a photo that simply
   appears. */
.m-fx img.is-ready { animation: m-img-in var(--m-dur-img) var(--m-ease) backwards; }

@supports not (aspect-ratio: 1 / 1) {
	.m-card__frame { height: 0; padding-block-start: var(--m-ratio-card-pb); }
}

/* The shared keyframes (12.4). m-emph is the one emphasis: the cart count
   takes it whole, a control (the heart, the tick, the thank-you mark) takes
   m-emph-soft, the same at half strength. Every number is the Look's, and
   stillness until a Look states it. */
@keyframes m-spin { to { transform: rotate(360deg); } }
@keyframes m-reveal { from { opacity: 0; transform: translateY(-4px); } }
@keyframes m-emph {
	0% { opacity: var(--m-emph-o0); transform: translateY(var(--m-emph-y0)) scale(var(--m-emph-s0)) rotate(calc(var(--m-dir) * var(--m-emph-r0))); }
	30% { opacity: 1; transform: translateY(var(--m-emph-y1)) scale(var(--m-emph-s1)); }
	60% { transform: scale(var(--m-emph-s2)); }
}
@keyframes m-emph-soft {
	0% { opacity: var(--m-emph-o0); transform: translateY(var(--m-emph-y0)) scale(var(--m-emph-c0)) rotate(calc(var(--m-dir) * var(--m-emph-r0))); }
	30% { opacity: 1; transform: translateY(var(--m-emph-y1)) scale(var(--m-emph-c1)); }
	60% { transform: scale(var(--m-emph-c2)); }
}
@keyframes m-arrive { from { opacity: 0; transform: translate(calc(var(--m-dir) * var(--m-arrive-x)), var(--m-arrive-y)) scale(var(--m-arrive-scale)); } }
@keyframes m-img-in { from { opacity: 0; transform: scale(var(--m-img-in)); } }
/* The ticker's travel (12.4.14), by exactly one copy of its track, turned
   round with the reading direction by --m-dir. */
@keyframes m-marquee { to { transform: translateX(calc(var(--m-dir) * -50%)); } }
