/* Reusable components. */

/* Headings with a Tifinagh line (Tamazight (kab)). */
.storecore-heading__tfng {
	display: block;
	margin-block-end: var(--space-1);
	font-size: 0.6em;
	font-weight: var(--weight-regular);
	color: var(--color-accent-text);
}

.storecore-heading__text {
	display: block;
}

/* Buttons. */
.storecore-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-block-size: 3.25rem;
	/* Narrower on phones, so a label keeps to one line. */
	padding: var(--space-3) clamp(var(--space-4), 0.25rem + 3vw, var(--space-6));
	border: 1.5px solid transparent;
	border-radius: var(--radius-pill);
	font-weight: var(--weight-semibold);
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.storecore-button:active:not(:disabled) {
	transform: scale(0.98);
}

.storecore-button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.storecore-button--primary {
	background: var(--color-ink);
	border-color: var(--color-ink);
	color: var(--color-on-accent);
}

.storecore-button--primary:hover:not(:disabled) {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-on-accent);
}

.storecore-button--secondary {
	background: transparent;
	border-color: var(--color-ink);
	color: var(--color-ink);
}

.storecore-button--secondary:hover {
	background: var(--color-ink);
	color: var(--color-on-accent);
}

.storecore-button[aria-busy="true"] .storecore-button__label::before {
	content: "";
	display: inline-block;
	inline-size: 0.9em;
	block-size: 0.9em;
	margin-inline-end: var(--space-2);
	vertical-align: -0.1em;
	border: 2px solid currentColor;
	border-inline-end-color: transparent;
	border-radius: 50%;
	animation: storecore-spin 0.8s linear infinite;
}

@keyframes storecore-spin {
	to { transform: rotate(1turn); }
}

/* Form fields. */
.storecore-field {
	display: grid;
	gap: var(--space-2);
	min-inline-size: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.storecore-field__label {
	padding: 0;
	font-size: var(--step--1);
	font-weight: var(--weight-semibold);
	color: var(--color-ink);
}

.storecore-input {
	inline-size: 100%;
	min-block-size: 48px;
	padding: var(--space-3) var(--space-4);
	background: var(--color-surface);
	border: 1px solid var(--color-line-strong);
	border-radius: var(--radius-sm);
	font-size: var(--step-0);
	transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.storecore-input:hover:not(:disabled) {
	border-color: var(--color-ink-soft);
}

.storecore-input:focus-visible {
	border-color: var(--color-accent-text);
	box-shadow: 0 0 0 3px var(--color-focus-glow);
}

.storecore-input:disabled {
	background: var(--color-bg);
	color: var(--color-ink-soft);
	cursor: not-allowed;
}

.storecore-input[aria-invalid="true"] {
	border-color: var(--color-error);
}

.storecore-select {
	appearance: none;
	padding-inline-end: var(--space-7);
	background-image: linear-gradient(45deg, transparent 50%, var(--color-ink-soft) 50%), linear-gradient(135deg, var(--color-ink-soft) 50%, transparent 50%);
	background-position: calc(100% - 22px) 55%, calc(100% - 17px) 55%;
	background-size: 5px 5px;
	background-repeat: no-repeat;
}

[dir="rtl"] .storecore-select {
	background-position: 17px 55%, 22px 55%;
}

.storecore-textarea {
	min-block-size: 72px;
	resize: vertical;
}

.storecore-field__error {
	margin: 0;
	font-size: var(--step--1);
	color: var(--color-error);
}

.storecore-field-row {
	display: grid;
	gap: var(--space-4);
}

@media (min-width: 30rem) {
	.storecore-field-row {
		grid-template-columns: 1fr 1fr;
	}
}

/* Quick-order card. */
.storecore-quick-order {
	display: grid;
	gap: var(--space-5);
	margin-block: var(--space-5);
	padding: var(--space-5);
	background: var(--color-surface);
	border: var(--border);
	border-radius: var(--radius);
}

.storecore-quick-order__title {
	margin: 0;
	font-size: var(--step-2);
}

/* Cloudflare's bot check: empty unless Cloudflare asks the visitor to tick it. */
.storecore-turnstile:not(:empty) {
	max-inline-size: 100%;
	overflow-x: auto;
}

.storecore-quick-order__alert {
	margin: 0;
	padding: var(--space-3) var(--space-4);
	background: var(--color-error-tint);
	border-inline-start: 3px solid var(--color-error);
	border-radius: var(--radius-sm);
	color: var(--color-error);
}

.storecore-quick-order__reassure {
	margin: calc(var(--space-2) * -1) 0 0;
	font-size: var(--step--1);
	text-align: center;
	color: var(--color-ink-soft);
}

.storecore-quick-order__submit {
	inline-size: 100%;
	min-block-size: 52px;
	font-size: clamp(var(--step-0), 0.8rem + 1.25vw, var(--step-1));
}

/* The purchase box's choice: colour swatches (a photo and a name) or label buttons (text only: sizes, weights…),
   as the store's product model says. Both hide the radio and style the body that follows it. */
.storecore-swatches,
.storecore-options {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.storecore-swatch,
.storecore-option {
	position: relative;
	cursor: pointer;
}

.storecore-swatch input,
.storecore-option input {
	position: absolute;
	opacity: 0;
	inline-size: 1px;
	block-size: 1px;
}

/* The colours as in the shop's colour filter: a circle with the name under it, in columns of at least 4rem (four
   across on a 360 phone), the chosen one ringed and bold (owner decision 2026-12-04). */
.storecore-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(4rem, 1fr));
}

.storecore-swatch {
	min-inline-size: 0;
}

.storecore-swatch__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-1);
	inline-size: 100%;
	padding-block: var(--space-1);
	border-radius: var(--radius-sm);
	font-size: var(--step--1);
	line-height: 1.25;
	text-align: center;
}

.storecore-swatch__image {
	inline-size: var(--tap);
	block-size: var(--tap);
	border-radius: 50%;
	object-fit: cover;
	box-shadow: inset 0 0 0 1px rgb(46 36 32 / 0.18);
	transition: box-shadow var(--duration-fast) var(--ease-out);
}

/* A long name on two lines at most rather than widening its column. */
.storecore-swatch__name {
	display: -webkit-box;
	max-inline-size: 100%;
	overflow: hidden;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/* A label button: the value on top, its price or "out of stock" below, centred. */
.storecore-option__body {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-inline-size: 4.5rem;
	min-block-size: var(--tap);
	padding-block: var(--space-1);
	padding-inline: var(--space-3);
	background: var(--color-surface);
	border: 1px solid var(--color-line-strong);
	border-radius: var(--radius-sm);
	text-align: center;
	transition: border-color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
}

.storecore-option__name {
	font-weight: 600;
}

.storecore-option:hover .storecore-option__body {
	border-color: var(--color-ink-soft);
}

.storecore-option input:checked + .storecore-option__body {
	background: var(--color-accent-tint);
	border-color: var(--color-accent-text);
	box-shadow: inset 0 0 0 1px var(--color-accent-text);
}

.storecore-option input:focus-visible + .storecore-option__body {
	box-shadow: var(--focus-ring);
}

.storecore-swatch:hover .storecore-swatch__image {
	box-shadow: inset 0 0 0 1px var(--color-ink-soft);
}

.storecore-swatch input:checked + .storecore-swatch__body {
	font-weight: 700;
}

.storecore-swatch input:checked + .storecore-swatch__body .storecore-swatch__image {
	box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 3.5px var(--color-accent);
}

.storecore-swatch input:focus-visible + .storecore-swatch__body .storecore-swatch__image {
	box-shadow: var(--focus-ring);
}

.storecore-swatch input:disabled + .storecore-swatch__body .storecore-swatch__image {
	opacity: 0.45;
}

/* A colour whose photo is not uploaded yet: the name alone, still a full-size target that shows focus and choice. */
.storecore-swatch__body:not(:has(.storecore-swatch__image)) {
	justify-content: center;
	min-block-size: var(--tap);
	box-shadow: inset 0 0 0 1px var(--color-line-strong);
}

.storecore-swatch:hover .storecore-swatch__body:not(:has(.storecore-swatch__image)) {
	box-shadow: inset 0 0 0 1px var(--color-ink-soft);
}

.storecore-swatch input:checked + .storecore-swatch__body:not(:has(.storecore-swatch__image)) {
	box-shadow: inset 0 0 0 2px var(--color-accent);
}

.storecore-swatch input:focus-visible + .storecore-swatch__body:not(:has(.storecore-swatch__image)) {
	box-shadow: var(--focus-ring);
}

.storecore-swatch input:disabled + .storecore-swatch__body,
.storecore-option input:disabled + .storecore-option__body {
	color: var(--color-ink-soft);
	cursor: not-allowed;
}

.storecore-option input:disabled + .storecore-option__body {
	border-style: dashed;
}

.storecore-swatch input:disabled + .storecore-swatch__body .storecore-swatch__name,
.storecore-option input:disabled + .storecore-option__body .storecore-option__name {
	text-decoration: line-through;
}

.storecore-swatch__note,
.storecore-option__note {
	font-size: var(--step--1);
}

/* A product sold in one choice: "Size  3 L" as a line, nothing to pick. */
.storecore-single-choice__line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--space-1) var(--space-2);
	margin: 0;
}

.storecore-single-choice__value {
	font-weight: var(--weight-semibold);
}

.storecore-single-choice__note {
	font-size: var(--step--1);
	color: var(--color-ink-soft);
}

.storecore-swatch__note--promo,
.storecore-option__note--promo {
	color: var(--color-accent-deep);
	font-weight: 700;
}

/* Quantity stepper. */
.storecore-stepper {
	display: inline-flex;
	align-items: stretch;
	inline-size: max-content;
	background: var(--color-surface);
	border: 1px solid var(--color-line-strong);
	border-radius: var(--radius-pill);
}

.storecore-stepper__button {
	inline-size: 48px;
	min-block-size: 48px;
	border: 0;
	border-radius: var(--radius-pill);
	background: transparent;
	font-size: var(--step-1);
	cursor: pointer;
	transition: background-color var(--duration-fast) var(--ease-out);
}

.storecore-stepper__button:hover:not(:disabled) {
	background: var(--color-accent-tint);
}

.storecore-stepper__button:disabled {
	color: var(--color-line-strong);
	cursor: not-allowed;
}

.storecore-stepper__input {
	inline-size: 3.5rem;
	border: 0;
	background: transparent;
	text-align: center;
	font-weight: var(--weight-semibold);
	appearance: textfield;
}

.storecore-stepper__input::-webkit-outer-spin-button,
.storecore-stepper__input::-webkit-inner-spin-button {
	appearance: none;
	margin: 0;
}

/* Above phones the quantity sits beside its label too (owner request 2026-12-01), right after it; phones already
   share the line, stepper at the far end (woocommerce.css, max-width: 40em). */
@media (width > 40em) {
	.storecore-purchase .storecore-field:has(> .storecore-stepper) {
		grid-template-columns: auto max-content;
		justify-content: start;
		align-items: center;
		column-gap: var(--space-4);
	}

	.storecore-purchase .storecore-field:has(> .storecore-stepper) > :not(label, .storecore-stepper) {
		grid-column: 1 / -1;
	}
}

/* Anderson office cards: name, address and map link on stop-desk. */
.storecore-office .storecore-choice__body {
	align-items: flex-start;
}

.storecore-office .storecore-choice__body::before {
	margin-block-start: 2px;
}

.storecore-office__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-inline-size: 0;
	overflow-wrap: anywhere;
}

.storecore-office .storecore-choice__name {
	font-weight: var(--weight-semibold);
	color: var(--color-ink);
}

.storecore-office__address {
	font-size: var(--step--1);
	color: var(--color-ink-soft);
}

.storecore-office__map {
	align-self: flex-start;
	padding-block: 4px;
	font-size: var(--step--1);
	color: var(--color-accent-text);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Delivery choice cards. */
.storecore-choices {
	display: grid;
	gap: var(--space-2);
}

.storecore-choice {
	position: relative;
	cursor: pointer;
}

.storecore-choice input {
	position: absolute;
	opacity: 0;
}

.storecore-choice__body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	min-block-size: 52px;
	padding: var(--space-3) var(--space-4);
	border: 1px solid var(--color-line-strong);
	border-radius: var(--radius-sm);
	transition: border-color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
}

.storecore-choice__body::before {
	content: "";
	flex: none;
	inline-size: 18px;
	block-size: 18px;
	border: 1.5px solid var(--color-line-strong);
	border-radius: 50%;
	transition: border-width var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.storecore-choice__name {
	flex: 1;
}

.storecore-choice__price {
	font-weight: var(--weight-semibold);
	white-space: nowrap;
}

.storecore-choice:hover .storecore-choice__body {
	border-color: var(--color-ink-soft);
}

.storecore-choice input:checked + .storecore-choice__body {
	background: var(--color-accent-tint);
	border-color: var(--color-accent-text);
}

.storecore-choice input:checked + .storecore-choice__body::before {
	border: 5px solid var(--color-accent-text);
}

.storecore-choice input:focus-visible + .storecore-choice__body {
	box-shadow: var(--focus-ring);
}

/* On a phone: the price goes under the name, so a long name ("Retrait au bureau Anderson") keeps its line instead of
   one word per line beside a discounted price; office cards and the quantity stepper tighten. */
@media (max-width: 40em) {
	.storecore-choice__body {
		flex-wrap: wrap;
		row-gap: 2px;
		min-block-size: 44px;
		padding: var(--space-2) var(--space-3);
	}

	.storecore-choice__name {
		font-size: 0.92rem;
	}

	.storecore-choice__price {
		flex-basis: 100%;
		padding-inline-start: calc(18px + var(--space-3));
		font-size: 0.88rem;
		white-space: normal;
	}

	.storecore-choice__price .storecore-fee {
		justify-content: flex-start;
	}

	.storecore-office .storecore-choice__body {
		flex-wrap: nowrap;
	}

	.storecore-office__text {
		line-height: 1.35;
	}

	.storecore-office__address,
	.storecore-office__map {
		font-size: 0.82rem;
	}

	.storecore-office__map {
		padding-block: 2px;
	}

	.storecore-stepper__button {
		inline-size: 40px;
		min-block-size: 40px;
		font-size: var(--step-0);
	}

	.storecore-stepper__input {
		inline-size: 2.5rem;
	}

	/* The order form's card gives its fields the screen's width. */
	.storecore-quick-order {
		gap: var(--space-4);
		padding: var(--space-4) var(--space-3);
	}
}

/* Order summary. */
.storecore-summary {
	display: grid;
	gap: var(--space-2);
	margin: 0;
	padding-block-start: var(--space-4);
	border-block-start: 1px dashed var(--color-sand);
}

.storecore-summary__row {
	display: flex;
	justify-content: space-between;
	gap: var(--space-4);
}

.storecore-summary dt {
	color: var(--color-ink-soft);
}

.storecore-summary dd {
	margin: 0;
	text-align: end;
	font-variant-numeric: tabular-nums;
}

.storecore-summary__row--total {
	padding-block-start: var(--space-2);
	font-size: var(--step-1);
	font-weight: var(--weight-semibold);
}

.storecore-summary__row--total dt {
	color: var(--color-ink);
}

/* Promo code on the order form: a link that opens a field and its button, then the applied code with a way to remove it. */
.storecore-coupon__toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-block-size: 44px;
	inline-size: fit-content;
	color: var(--color-ink);
	font-weight: var(--weight-semibold);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
	list-style: none;
}

.storecore-coupon__toggle::-webkit-details-marker {
	display: none;
}

/* A chevron that turns when the field is open; physical sides, so it points down in RTL too. */
.storecore-coupon__toggle::after {
	content: "";
	inline-size: 0.45em;
	block-size: 0.45em;
	border-bottom: 2px solid currentcolor;
	border-right: 2px solid currentcolor;
	transform: translateY(-0.15em) rotate(45deg);
	transition: transform var(--duration-fast) ease-out;
}

.storecore-coupon[open] > .storecore-coupon__toggle::after {
	transform: translateY(0.1em) rotate(-135deg);
}

@media (prefers-reduced-motion: reduce) {
	.storecore-coupon__toggle::after {
		transition: none;
	}
}

/* Inside <details> the field's grid gap no longer reaches the folded children: the error gets its space back here. */
.storecore-coupon .storecore-field__error {
	margin-block-start: var(--space-2);
}

.storecore-coupon__entry {
	display: flex;
	gap: var(--space-2);
}

.storecore-coupon__input {
	flex: 1 1 auto;
	min-inline-size: 0;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.storecore-coupon__apply {
	flex: none;
}

.storecore-coupon__applied {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2) var(--space-4);
	margin: 0;
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius-sm);
	background: var(--color-accent-tint);
	color: var(--color-accent-deep);
	font-weight: var(--weight-semibold);
}

.storecore-coupon__applied[hidden],
.storecore-coupon__entry[hidden],
.storecore-summary__row[hidden] {
	display: none;
}

.storecore-coupon__remove {
	min-block-size: 44px;
	padding: 0 var(--space-2);
	border: 0;
	background: transparent;
	color: var(--color-ink);
	font: inherit;
	font-weight: var(--weight-regular);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

.storecore-coupon__remove:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
	border-radius: var(--radius-sm);
}

.storecore-summary__row--coupon dd {
	color: var(--color-accent-deep);
	font-weight: var(--weight-semibold);
}

/* Product page extras. */
.delivery-note {
	display: grid;
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--color-ink-soft);
}

/* Under the purchase box the list touched its edge. */
.product-summary .delivery-note {
	margin-block-start: var(--space-5);
}

.delivery-note li {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
}

.delivery-note .icon {
	color: var(--color-accent-text);
}

.storecore-fallback-order {
	display: grid;
	gap: var(--space-3);
	margin-block: var(--space-5);
	padding: var(--space-5);
	background: var(--color-surface);
	border: var(--border);
	border-radius: var(--radius);
}

.storecore-fallback-order__title {
	margin: 0;
	font-size: var(--step-2);
}

.storecore-fallback-order__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}

.sticky-order {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 40;
	padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom));
	background: var(--color-bar);
	border-block-start: var(--border);
	transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out);
}

.sticky-order__total {
	flex: none;
	font-weight: var(--weight-semibold);
	color: var(--color-ink);
}

.sticky-order__button {
	flex: 1;
}

.sticky-order[data-hidden] {
	transform: translateY(110%);
	opacity: 0;
	pointer-events: none;
}

@media (min-width: 56rem) {
	.sticky-order {
		display: none;
	}
}

/* Filter chips. */
.chips {
	display: flex;
	gap: var(--space-2);
	margin: 0;
	padding: var(--space-1) 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	flex: none;
	min-block-size: var(--tap);
	padding-inline: var(--space-4) var(--space-2);
	background: var(--color-surface);
	border: 1.5px solid var(--tint-ink-32);
	border-radius: var(--radius-pill);
	box-shadow: 0 1px 2px var(--tint-ink-8);
	color: var(--color-ink);
	font-size: var(--step--1);
	font-weight: var(--weight-medium);
	text-decoration: none;
	transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.chip:hover {
	border-color: var(--color-ink);
	color: var(--color-ink);
}

/* Available: the number sits in a coloured badge, so "there is something here" reads at a glance. */
.chip__count {
	display: inline-grid;
	place-items: center;
	min-inline-size: 1.6rem;
	padding: 0.1rem 0.4rem;
	border-radius: var(--radius-pill);
	background: var(--color-accent-tint);
	color: var(--color-accent-deep);
	font-size: 0.75rem;
	font-weight: var(--weight-semibold);
	font-variant-numeric: tabular-nums;
}

/* Selected: dark, with a check mark, not only a colour change. */
.chip[aria-current] {
	background: var(--color-ink);
	border-color: var(--color-ink);
	color: var(--color-on-accent);
}

.chip[aria-current]::after {
	content: "✓";
	order: -1;
	font-weight: var(--weight-semibold);
}

.chip[aria-current] .chip__count {
	background: rgb(255 255 255 / 0.18);
	color: inherit;
}

/* Empty: flat, dashed and without a badge, so it never looks clickable. The name stays readable
   (ink-soft on bg is 5.07:1). */
.chip--empty {
	background: transparent;
	border-style: dashed;
	border-color: var(--tint-ink-22);
	box-shadow: none;
	color: var(--color-ink-soft);
	font-weight: var(--weight-regular);
	cursor: not-allowed;
}

.chip--empty:hover {
	border-color: var(--tint-ink-22);
	color: var(--color-ink-soft);
}

.chip--empty .chip__count {
	background: none;
	color: inherit;
	font-weight: var(--weight-regular);
}

.chip--empty::before {
	opacity: 0.45;
}

/* A chip of a "pattern" filter carries data-pattern with the term's slug: a child theme's brand.css can draw its swatch. */

/* Product card: photo, name, a one-line description, then the price with its cart button on one row. The card is a
   size container: its type and button follow the card's own width (cqi), so a narrow phone card and a wide computer
   card keep the same proportions. The link fills the card so the price rows of one grid row line up. */
.product-card {
	--card-action-size: clamp(2rem, 21cqi, 2.25rem);
	--card-action-gap: clamp(0.375rem, 4cqi, 0.5rem);
	/* The 4:5 photo's height: the slideshow's arrows are placed by it (slides.css). */
	--card-photo-block: calc(100cqi * 5 / 4);
	/* The text under the photo keeps this margin from the card's edges; the cart button sits inside it too. */
	--card-pad-inline: clamp(0.625rem, 7cqi, 0.875rem);
	--card-pad-block: clamp(0.625rem, 7cqi, 0.875rem);
	position: relative;
	display: flex;
	flex-direction: column;
	container-type: inline-size;
	background: var(--color-surface);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

/* A pressed card gives a little, so the tap is felt before the quick view opens. */
.product-card:has(.product-card__link:active) {
	transform: scale(0.985);
}

/* The link fills the card: its focus ring goes on the card, whose rounded edge it follows. */
.product-card:has(.product-card__link:focus-visible) {
	box-shadow: var(--shadow-card), var(--focus-ring);
}

.product-card__link:focus-visible {
	outline: none;
}

@media (hover: hover) {
	.product-card:hover {
		box-shadow: var(--shadow-card-hover);
	}
}

@media (prefers-reduced-motion: reduce) {
	.product-card:has(.product-card__link:active) {
		transform: none;
	}
}

.product-card__link {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: clamp(0.125rem, 1.5cqi, 0.25rem);
	padding-block-end: var(--card-pad-block);
	color: var(--color-ink);
	text-decoration: none;
}

/* The photo runs edge to edge under the card's top corners; the text keeps the card's inner margin. */
.product-card__link > :not(.product-card__media) {
	margin-inline: var(--card-pad-inline);
}

.product-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	margin-block-end: clamp(0.4375rem, 5cqi, 0.75rem);
	background: var(--color-sand);
	border-radius: var(--radius-card) var(--radius-card) 0 0;
}

/* Slightly below centre: a worn product's photo keeps the face's lower half and the garment, not the sky. */
.product-card__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: center 65%;
	transition: transform var(--duration-panel) var(--ease-out);
}

.product-card__link:hover .product-card__media img {
	transform: scale(1.05);
}

.product-card__badge {
	position: absolute;
	inset-block-start: var(--space-4);
	inset-inline: 0;
	margin-inline: auto;
	inline-size: max-content;
	padding: var(--space-1) var(--space-3);
	background: var(--color-accent);
	color: var(--color-on-accent);
	border-radius: var(--radius-pill);
	font-size: var(--step--1);
	font-weight: var(--weight-semibold);
}

/* Two lines at most, so every card of a row keeps its price on the same line. */
.product-card__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: clamp(0.8125rem, 8.4cqi, 1rem);
	font-weight: var(--weight-semibold);
	line-height: 1.25;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	text-wrap: balance;
}

.product-card__desc {
	margin: 0;
	overflow: hidden;
	color: var(--color-ink-soft);
	font-size: clamp(0.71875rem, 7.2cqi, 0.84375rem);
	line-height: 1.4;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* The last row: pushed to the bottom, as tall as the cart button that sits at its end (.product-card__actions). */
.product-card__price {
	display: flex;
	align-items: center;
	min-block-size: var(--card-action-size);
	margin-block: auto 0;
	padding-block-start: clamp(0.25rem, 4.5cqi, 0.625rem);
	font-size: clamp(0.875rem, 9cqi, 1.0625rem);
	font-weight: 800;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.product-card:has(> .product-card__actions) .product-card__price {
	padding-inline-end: calc(var(--card-action-size) + var(--card-action-gap));
}

/* A promotion (from storecore): what you pay first, in the accent, the old price after it, crossed and quieter. */
.storecore-price {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 var(--space-2);
}

.storecore-price.is-promo .storecore-price__now {
	color: var(--color-accent-text);
}

.storecore-price__was {
	color: var(--color-ink-soft);
	font-size: 0.86em;
	font-weight: var(--weight-regular);
}

/* The promotion band under the photo: the discount and its end date. Sizes follow the card's width. */
.product-card__promo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	margin-block: var(--space-1) 0;
	padding: var(--space-1) var(--space-3);
	border-radius: var(--radius-sm);
	background: var(--color-accent-text);
	color: var(--color-on-accent);
	font-size: clamp(0.72rem, 7cqi, 0.875rem);
	font-weight: 700;
	white-space: nowrap;
}

.product-card__promo span + span {
	font-weight: var(--weight-semibold);
}

/* Card shortcut (a button from storecore): at the end of the price row. It sits outside the card link (a button cannot
   be inside one), so it is laid over the link's last row, whose price leaves it room. */
.product-card__actions {
	position: absolute;
	inset-inline-end: var(--card-pad-inline);
	inset-block-end: var(--card-pad-block);
	display: flex;
	align-items: center;
	block-size: var(--card-action-size);
	pointer-events: none;
}

/* Filled like the store's main buttons, the one thing on the card that adds to the cart. */
.card-action {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	inline-size: var(--card-action-size);
	block-size: var(--card-action-size);
	padding: 0;
	background: var(--color-ink);
	color: var(--color-on-accent);
	border: 0;
	border-radius: var(--radius-pill);
	text-decoration: none;
	cursor: pointer;
	pointer-events: auto;
	transition: transform var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
}

/* The visible button is 32-36px; a thumb gets 44px. */
.card-action::before {
	content: "";
	position: absolute;
	inset: calc((var(--card-action-size) - 2.75rem) / 2);
	border-radius: inherit;
}

.card-action:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}

.card-action:active:not(:disabled) {
	transform: scale(0.92);
}

.card-action:disabled {
	opacity: 0.6;
	cursor: progress;
}

.card-action svg {
	inline-size: 56%;
	block-size: 56%;
}

/* The link keeps its light icon on hover: the global a:hover colour would put dark on the dark button. */
.card-action:hover,
.card-action--buy:hover {
	color: var(--color-on-accent);
}

@media (hover: hover) {
	.card-action:hover:not(:disabled) {
		background: var(--color-accent);
	}
}

/* Added (cards.js, 1.5s): the bag gives way to a white check on green, where the customer's eye already is. */
.card-action--add[data-added],
.card-action--add[data-added]:hover {
	background: var(--color-success);
	color: var(--color-on-success);
}

.card-action--add[data-added] svg {
	display: none;
}

.card-action--add[data-added]::after {
	content: "";
	/* From the button's size, not a percentage: its height is not definite for its pseudo-element, so 55% gave 0. */
	inline-size: calc(var(--card-action-size) * 0.56);
	block-size: calc(var(--card-action-size) * 0.56);
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* "Buy" opens the product like a tap on the card: next to "Add to cart" it would repeat the card, so it gives way.
   Alone (several choices to pick from), it takes the same round bag button; the word stays for screen readers. */
.card-action--add ~ .card-action--buy {
	display: none;
}

.card-action__label {
	display: none;
}

.card-action__icon {
	display: inline-flex;
	inline-size: 56%;
	block-size: 56%;
}

.card-action__icon svg {
	inline-size: 100%;
	block-size: 100%;
}

/* storecore's delivery discount panel: a sheet at the bottom on a phone, a floating card on a wider screen. */
.storecore-offer {
	position: fixed;
	inset: auto 0 0 0;
	margin: 0;
	padding: 0;
	border: 0;
	inline-size: 100%;
	max-inline-size: none;
	max-block-size: none;
	color: var(--color-ink);
	background: var(--color-surface);
	border-radius: 22px 22px 0 0;
	box-shadow: var(--shadow-soft);
	animation: storecore-offer-rise 0.35s ease-out;
}

.storecore-offer::backdrop {
	background: var(--tint-ink-40, rgb(0 0 0 / 0.45));
}

@keyframes storecore-offer-rise {
	from { transform: translateY(100%); }
}

@media (min-width: 40em) {
	.storecore-offer {
		inset: auto 0 var(--space-5) 0;
		margin-inline: auto;
		inline-size: min(100% - 2 * var(--gutter), 28rem);
		border-radius: 22px;
		animation-name: storecore-offer-float;
	}
}

@keyframes storecore-offer-float {
	from { opacity: 0; transform: translateY(1.5rem); }
}

@media (prefers-reduced-motion: reduce) {
	.storecore-offer { animation: none; }
}

.storecore-offer__grip {
	display: block;
	inline-size: 40px;
	block-size: 4px;
	margin: var(--space-2) auto 0;
	border-radius: 4px;
	background: var(--color-sand);
}

@media (min-width: 40em) {
	.storecore-offer__grip { display: none; }
}

.storecore-offer__inner {
	display: grid;
	gap: var(--space-3);
	padding: var(--space-2) var(--space-5) var(--space-5);
}

.storecore-offer__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.storecore-offer__hide {
	padding: var(--space-2) 0;
	border: 0;
	background: none;
	color: var(--color-ink-soft);
	font: inherit;
	font-size: var(--step--1);
	text-decoration: underline;
	cursor: pointer;
}

/* The ring and, once it has run, the close cross take the same corner, so nothing else moves. */
.storecore-offer__corner {
	position: relative;
	flex: none;
	inline-size: 44px;
	block-size: 44px;
}

.storecore-offer__ring,
.storecore-offer__close {
	position: absolute;
	inset: 0;
}

.storecore-offer__ring svg {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	transform: rotate(-90deg);
}

.storecore-offer__ring circle {
	fill: none;
	stroke-width: 4;
}

.storecore-offer__track {
	stroke: var(--color-sand);
}

.storecore-offer__arc {
	stroke: var(--color-accent);
	stroke-linecap: round;
	stroke-dasharray: 126;
	animation: storecore-offer-empty 3s linear forwards;
}

.storecore-offer__spin {
	position: absolute;
	inset: 0;
	border: 3px solid transparent;
	border-block-start-color: var(--color-accent-tint);
	border-radius: 50%;
	animation: storecore-offer-spin 0.9s linear infinite;
}

.storecore-offer__ring b {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--color-accent-text);
}

@keyframes storecore-offer-empty {
	to { stroke-dashoffset: 126; }
}

@keyframes storecore-offer-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.storecore-offer__spin,
	.storecore-offer__arc { animation: none; }
}

.storecore-offer__close {
	border: 1px solid var(--color-line-strong);
	border-radius: 50%;
	background: var(--color-accent-tint);
	color: var(--color-accent-text);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.storecore-offer__close[hidden],
.storecore-offer__ring[hidden] {
	display: none;
}

.storecore-offer__head {
	display: flex;
	gap: var(--space-3);
	align-items: center;
}

.storecore-offer__icon {
	flex: none;
	display: grid;
	place-items: center;
	inline-size: 56px;
	block-size: 56px;
	border-radius: 16px;
	background: var(--color-accent-tint);
	color: var(--color-accent-text);
}

.storecore-offer__title {
	margin: 0;
	font-size: var(--step-1);
	color: var(--color-accent-text);
}

.storecore-offer__text {
	margin: var(--space-1) 0 0;
	color: var(--color-ink-soft);
}

.storecore-offer__cta {
	inline-size: 100%;
}

.storecore-offer__small {
	margin: 0;
	font-size: var(--step--1);
	color: var(--color-ink-soft);
	text-align: center;
}

/* A card add that the shop refused (storecore's cards.js); a success shows on the card's button instead. */
.storecore-toast {
	position: fixed;
	inset-inline: var(--space-4);
	inset-block-end: calc(var(--space-4) + env(safe-area-inset-bottom));
	z-index: 60;
	max-inline-size: 28rem;
	margin-inline: auto;
	padding: var(--space-3) var(--space-4);
	background: var(--color-ink);
	color: var(--color-surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	text-align: center;
}

.storecore-toast a {
	color: inherit;
	font-weight: var(--weight-semibold);
}

.storecore-toast[hidden] {
	display: none;
}

/* Language switcher (markup from storecore). */
.storecore-lang-switcher ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-1);
	margin: 0;
	padding: var(--space-1);
	border-radius: var(--radius-pill);
	background: var(--color-surface);
	list-style: none;
}

.storecore-lang-switcher a {
	display: inline-flex;
	align-items: center;
	min-block-size: 2.25rem;
	padding-inline: var(--space-3);
	border-radius: var(--radius-pill);
	color: var(--color-ink-soft);
	font-size: var(--step--1);
	font-weight: var(--weight-semibold);
	text-decoration: none;
}

.storecore-lang-switcher a:hover {
	color: var(--color-ink);
	background: var(--color-sand);
}

.storecore-lang-switcher a[aria-current] {
	color: var(--color-on-accent);
	background: var(--color-ink);
}

/* Contact links. */
.contact-links {
	display: grid;
	gap: var(--space-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.storecore-contact__details {
	margin-block-start: var(--space-6);
}

.storecore-contact__details-title {
	margin-block-end: var(--space-2);
	font-size: var(--step-0);
}

.contact-links__link,
.contact-links__text {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
	min-block-size: var(--tap);
	color: var(--color-ink);
	text-decoration: none;
}

.contact-links__link .icon,
.contact-links__text .icon {
	color: var(--color-accent-text);
}

.contact-links__link:hover span {
	text-decoration: underline;
}

/* Empty state. */
.empty-state {
	display: grid;
	justify-items: center;
	gap: var(--space-4);
	padding: var(--space-8) var(--space-4);
	background: var(--color-surface);
	border: 1px dashed var(--color-sand);
	border-radius: var(--radius);
	text-align: center;
}

.empty-state__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: var(--step-2);
}

:lang(ar) .empty-state__title {
	font-family: var(--font-heading-ar);
}

/* Page sections (shortcodes). On the home page they set their own width; inside a page they follow its container. */
/* Same box as .container, so section headings line up with the hero copy. */
.storecore-section {
	inline-size: 100%;
	max-inline-size: var(--container);
	margin-inline: auto;
	padding: var(--space-8) var(--gutter);
}

.page-content .storecore-section {
	padding: var(--space-5) 0;
}

.storecore-section__title {
	margin-block-end: var(--space-6);
	font-size: var(--step-4);
}

/* Hero: copy beside a photo framed in an arch, like the doorways of an Algerian medina. */
.storecore-hero {
	padding-block: var(--space-7) var(--space-8);
}

.storecore-hero__inner {
	display: grid;
	gap: var(--space-7);
	align-items: center;
}

.storecore-hero__title {
	max-inline-size: 16ch;
	margin-block-end: var(--space-5);
	font-size: var(--step-5);
	line-height: 1.02;
	letter-spacing: -0.025em;
}

.storecore-hero__subtitle {
	max-inline-size: 34ch;
	margin-block-end: var(--space-6);
	font-size: var(--step-1);
	color: var(--color-ink-soft);
}

.storecore-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin: 0;
}

.storecore-hero__promise {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin: var(--space-7) 0 0;
	padding-block-start: var(--space-5);
	border-block-start: 1px solid var(--tint-ink-12);
	font-size: var(--step--1);
	color: var(--color-ink-soft);
}

.storecore-hero__promise .icon {
	flex: none;
	color: var(--color-accent);
}

.storecore-hero__art {
	order: -1;
	margin-inline: var(--space-5);
}

.storecore-hero__arch {
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border-radius: var(--radius-arch);
	background: radial-gradient(120% 80% at 50% 0%, var(--color-accent-tint), var(--color-sand));
}

/* Square rather than 4:5 on phones, so the title and the button show on the first screen of a 360x740 phone. Kept at
   the base rule's specificity so a brand's own hero shape still wins. */
@media (max-width: 47.99rem) {
	.storecore-hero__arch {
		aspect-ratio: 1;
	}
}

.storecore-hero__image {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: 50% 15%;
	animation: storecore-rise 1.2s var(--ease-out) both;
}

@keyframes storecore-rise {
	from {
		clip-path: inset(100% 0 0 0);
	}
}

@media (min-width: 56rem) {
	.storecore-hero__inner {
		grid-template-columns: 1.05fr 0.95fr;
		gap: var(--space-9);
	}

	.storecore-hero__art {
		order: 0;
		margin-inline: 0;
	}

	.storecore-hero__arch {
		aspect-ratio: 4 / 5.2;
	}
}

/* Seasons: four arches, each opening the shop on its season. */
.storecore-seasons__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-5) var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 56rem) {
	.storecore-seasons__list {
		grid-template-columns: repeat(4, 1fr);
		gap: var(--space-5);
	}
}

.storecore-season {
	display: block;
	color: var(--color-ink);
	text-align: center;
	text-decoration: none;
}

.storecore-season:hover {
	color: var(--color-ink);
}

.storecore-season__arch {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 4.2;
	border-radius: var(--radius-arch);
	background: var(--color-sand);
}

.storecore-season--placeholder .storecore-season__arch {
	background: radial-gradient(120% 70% at 50% 0%, var(--color-accent-tint), var(--color-sand));
}

.storecore-season__image {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	transition: transform 1.1s var(--ease-out);
}

.storecore-season:hover .storecore-season__image {
	transform: scale(1.06);
}

.storecore-season__label {
	display: block;
	margin-block-start: var(--space-4);
	font-family: var(--font-heading);
	font-size: var(--step-2);
	line-height: 1.1;
}

:lang(ar) .storecore-season__label {
	font-family: var(--font-heading-ar);
}

.storecore-season__note {
	display: block;
	font-size: var(--step--1);
	color: var(--color-ink-soft);
}

/* Categories. */
.storecore-categories__list,
.storecore-why__list,
.storecore-reviews__list {
	display: grid;
	gap: var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.storecore-categories__list {
	grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
}

.storecore-categories__link {
	display: grid;
	gap: var(--space-2);
	padding: var(--space-3);
	border: var(--border);
	border-radius: var(--radius);
	background: var(--color-surface);
	color: var(--color-ink);
	text-align: center;
	text-decoration: none;
	transition: border-color var(--duration-fast) var(--ease-out);
}

.storecore-categories__link:hover {
	border-color: var(--color-accent);
}

.storecore-categories__image {
	inline-size: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--radius-sm);
}

.storecore-categories__name {
	font-weight: var(--weight-semibold);
}

.storecore-categories__note {
	display: block;
	font-size: var(--step--1);
	color: var(--color-ink-soft);
}

.storecore-products__more {
	margin-block-start: var(--space-5);
	text-align: center;
}

/* Why shop with us: a plum band with three plain rows. */
.storecore-why {
	inline-size: min(100% - 2 * var(--gutter), var(--container) - 2 * var(--gutter));
	padding: var(--space-7) var(--space-6);
	border-radius: calc(var(--radius) * 2);
	background: var(--color-plum);
	color: var(--color-on-plum);
}

.storecore-why .storecore-section__title {
	color: var(--color-on-plum);
}

.storecore-why .storecore-heading__tfng {
	color: var(--color-on-plum-soft);
}

.storecore-why__list {
	grid-template-columns: 1fr;
	gap: 0;
	border-block-start: 1px solid var(--tint-on-plum-20);
}

.storecore-why__item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--space-1) var(--space-4);
	padding-block: var(--space-5);
	border-block-end: 1px solid var(--tint-on-plum-20);
}

.storecore-why__icon {
	grid-row: span 2;
	color: var(--color-accent-on-plum);
}

.storecore-why__name {
	margin: 0;
	font-size: var(--step-2);
	color: var(--color-on-plum);
}

.storecore-why__text {
	margin: 0;
	color: var(--color-on-plum-soft);
}

@media (min-width: 56rem) {
	.storecore-why {
		padding: var(--space-8);
	}

	.storecore-why__list {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--space-6);
		border: 0;
	}

	.storecore-why__item {
		border-block: 1px solid var(--tint-on-plum-20);
	}
}

/* Reviews. */
.storecore-reviews__list {
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.storecore-reviews__item {
	padding: var(--space-5);
	border: var(--border);
	border-radius: var(--radius);
	background: var(--color-surface);
}

.storecore-reviews__stars {
	margin: 0;
	color: var(--color-accent-text);
	letter-spacing: 0.1em;
}

.storecore-reviews__text {
	margin: var(--space-3) 0;
}

.storecore-reviews__text p {
	margin: 0;
}

.storecore-reviews__name {
	margin: 0;
	font-weight: var(--weight-semibold);
}

/* Delivery table. */
.storecore-delivery-table__scroll {
	overflow-x: auto;
	border: var(--border);
	border-radius: var(--radius);
	background: var(--color-surface);
}

.storecore-delivery-table {
	inline-size: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.storecore-delivery-table th,
.storecore-delivery-table td {
	padding: var(--space-3) var(--space-4);
	border-block-end: var(--border);
	text-align: start;
}

.storecore-delivery-table td {
	text-align: end;
	white-space: nowrap;
}

.storecore-delivery-table thead th {
	position: sticky;
	inset-block-start: 0;
	background: var(--color-surface);
	font-size: var(--step--1);
	color: var(--color-ink-soft);
}

.storecore-delivery-table thead th:not(:first-child) {
	text-align: end;
}

.storecore-delivery-table tbody th {
	font-weight: var(--weight-regular);
}

.storecore-delivery-table tbody tr:last-child > * {
	border-block-end: 0;
}

.storecore-delivery-table--empty {
	padding: var(--space-5);
	border: var(--border);
	border-radius: var(--radius);
	background: var(--color-surface);
}

/* Contact form. */
.storecore-contact-form {
	position: relative;
	display: grid;
	gap: var(--space-4);
	max-inline-size: 36rem;
}

.storecore-contact-form__alert {
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-sm);
	background: var(--color-accent-tint);
}

.storecore-follow {
	text-align: center;
}

.storecore-follow .contact-links {
	justify-content: center;
}

/* Social icons: a row in the footer, and a bar in the bottom corner (bottom-right in Arabic): vertical on wide screens,
   horizontal on phones. */
.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-links__link {
	display: inline-grid;
	place-items: center;
	inline-size: var(--tap);
	block-size: var(--tap);
	border-radius: var(--radius-pill);
	background: var(--color-bg);
	color: var(--color-ink);
	transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.social-links__link:hover {
	background: var(--color-surface);
	box-shadow: var(--shadow-soft);
	transform: translateY(-2px);
}

/* Logos keep their brand colours (Instagram's gradient is set inside its SVG). */
.brand-icon {
	inline-size: 22px;
	block-size: 22px;
}

.brand-icon--facebook { color: #0866FF; }
.brand-icon--tiktok { color: #000; filter: drop-shadow(1px 0 0 #FE2C55) drop-shadow(-1px 0 0 #25F4EE); }
.brand-icon--youtube { color: #FF0000; }

/* Footer: the logos on white circles, whatever the footer's colour (a brand may darken it): the brand colours are
   drawn for white. */
.social-links--footer .social-links__link,
.social-links--footer .social-links__link:hover {
	background: #fff;
	box-shadow: 0 1px 3px var(--tint-ink-22);
}

.social-links--footer .brand-icon {
	inline-size: 24px;
	block-size: 24px;
}

.social-links--footer .social-links__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* The bottom corner: the social bar and, on phones, the cart button at the other side. nav.js steps the social bar
   aside at the footer, and on phones moves the whole corner away while the page scrolls down. */
.corner-dock {
	position: fixed;
	inset-inline-start: var(--space-3);
	inset-block-end: calc(var(--space-4) + env(safe-area-inset-bottom));
	z-index: 40;
}

.corner-dock[data-hidden] .social-dock {
	visibility: hidden;
	opacity: 0;
}

/* At any width the corner would sit over the order form (owner decision 2026-12-02); the product, cart and
   thank-you pages drop it on phones only, further down. WooCommerce marks the thank-you page as checkout too, but
   it has no form, and a customer who has just ordered may want to follow the brand. */
.woocommerce-checkout:not(.woocommerce-order-received) .corner-dock {
	display: none;
}

@media (prefers-reduced-motion: no-preference) {
	.social-dock {
		transition: opacity 0.2s ease, visibility 0.2s;
	}
}

/* The pill holds the icons and, at their end, the arrow that folds them away. */
.social-dock {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--space-1);
	border-radius: var(--radius-pill);
	background: var(--tint-surface-92);
	/* The hairline keeps the white pill from melting into a white page. */
	box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--color-sand);
	backdrop-filter: blur(8px);
}

.social-links--dock {
	flex-direction: column;
}

/* Folded: only the arrow is left, to bring them back. html[data-social-folded] is the head's early word on the
   remembered choice (storecore_theme_social_choice()), so the icons never show before nav.js folds them. */
:is(.corner-dock[data-folded], html[data-social-folded] .corner-dock) .social-dock__links {
	display: none;
}

.social-dock__fold {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	order: 1;
	inline-size: 40px;
	block-size: 28px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--color-ink-soft);
	cursor: pointer;
}

/* The arrow is drawn small; its tap area reaches the 44px the finger needs. */
.social-dock__fold::before {
	content: "";
	position: absolute;
	inset: -8px -2px;
}

.social-dock__fold:hover {
	color: var(--color-ink);
	background: var(--color-accent-tint);
}

.social-dock__fold:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}

.social-dock__fold .icon--share {
	display: none;
	inline-size: 20px;
	block-size: 20px;
}

/* Folded: the share sign and the arrow, in full ink, so the lone pill reads as a control, not a leftover. */
:is(.corner-dock[data-folded], html[data-social-folded] .corner-dock) .social-dock__fold {
	block-size: auto;
	padding-block: var(--space-2) var(--space-1);
	color: var(--color-ink);
}

:is(.corner-dock[data-folded], html[data-social-folded] .corner-dock) .social-dock__fold .icon--share {
	display: block;
}

/* Computers: the column folds down; the arrow points the way the icons go. */
.social-dock__fold .icon--chevron {
	transform: rotate(90deg);
}

:is(.corner-dock[data-folded], html[data-social-folded] .corner-dock) .social-dock__fold .icon--chevron {
	inline-size: 16px;
	block-size: 16px;
	transform: rotate(-90deg);
}

@media (prefers-reduced-motion: no-preference) {
	.social-dock__fold .icon--chevron {
		transition: transform var(--duration-fast) var(--ease-out);
	}
}

.social-links--dock .social-links__link {
	inline-size: 40px;
	block-size: 40px;
	background: transparent;
}

.social-links--dock .social-links__link:hover {
	box-shadow: none;
	transform: scale(1.08);
}

/* Computers have the header cart; the button is a phone shortcut only. [hidden] (empty cart) outranks the phone
   rule below. */
.cart-button,
.cart-button[hidden] {
	display: none;
}

/* Phones: the social icons in a row pinned to the left edge, the cart button a 44px pill pinned to the right edge, in
   Arabic too (physical sides, owner decision 2026-12-05: the dock is laid out left to right, the button's words keep
   the page's direction), both 10px from the screen's edges and clear of the notch. Both leave while the page scrolls
   down and come back on the way up and at the page's end (nav.js); the icons also step aside at the footer. The
   corner is hidden where customers tap buttons and fill forms (product page with its order bar, cart, thank-you;
   the checkout hides it at every width, above). */
@media (max-width: 55.99rem) {
	.corner-dock {
		inset-inline: 0;
		inset-block-end: calc(var(--space-3) + env(safe-area-inset-bottom));
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
		gap: var(--space-3);
		direction: ltr;
		padding-left: max(10px, env(safe-area-inset-left));
		padding-right: max(10px, env(safe-area-inset-right));
		/* The corner spans the width; the empty middle lets taps through to the page. */
		pointer-events: none;
	}

	.corner-dock > * {
		pointer-events: auto;
	}

	/* Scrolled down: out of sight is also out of reach, so Tab and screen readers skip it. */
	.corner-dock[data-away] {
		visibility: hidden;
		opacity: 0;
		transform: translateY(calc(100% + var(--space-3) + env(safe-area-inset-bottom)));
	}

	/* One row whatever the number of networks, as tall as the cart pill. The arrow sits at the screen's edge and
	   folds the icons toward it. */
	.social-dock {
		flex-shrink: 0;
		flex-direction: row;
		box-sizing: border-box;
		block-size: var(--tap);
		padding: 2px;
	}

	.social-links--dock {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 0;
	}

	.social-dock__fold {
		flex-direction: row;
		order: -1;
		inline-size: 24px;
		block-size: 40px;
	}

	.social-dock__fold::before {
		inset: -2px -8px;
	}

	/* Folded: a 44px-high chip, share sign then the arrow. */
	:is(.corner-dock[data-folded], html[data-social-folded] .corner-dock) .social-dock__fold {
		inline-size: auto;
		block-size: 40px;
		padding-block: 0;
		padding-inline: var(--space-3) var(--space-2);
	}

	:is(.corner-dock[data-folded], html[data-social-folded] .corner-dock) .social-dock__fold::before {
		inset: -2px;
	}

	.social-dock__fold .icon--chevron {
		transform: rotate(180deg);
	}

	:is(.corner-dock[data-folded], html[data-social-folded] .corner-dock) .social-dock__fold .icon--chevron {
		transform: none;
	}

	.social-links--dock .brand-icon {
		inline-size: 20px;
		block-size: 20px;
	}

	/* The bag with its count as a badge, like the header cart, and, once something is in it, the items' total. */
	.cart-button {
		display: inline-flex;
		flex: none;
		align-items: center;
		gap: var(--space-3);
		box-sizing: border-box;
		block-size: var(--tap);
		/* Physical: the button keeps the page's direction for its words, but always sits at the right. */
		margin-left: auto;
		padding-inline: var(--space-3) var(--space-4);
		border-radius: var(--radius-pill);
		background: var(--color-plum);
		box-shadow: 0 3px 10px var(--tint-ink-22);
		color: var(--color-on-plum);
		font-weight: 700;
		font-variant-numeric: tabular-nums;
		white-space: nowrap;
		text-decoration: none;
	}

	[dir="rtl"] .cart-button {
		direction: rtl;
	}

	.cart-button:hover,
	.cart-button:focus-visible {
		background: var(--color-accent-deep);
		color: var(--color-on-plum);
	}

	.cart-button:focus-visible {
		outline: 2px solid var(--color-plum);
		outline-offset: 2px;
	}

	.cart-button__icon {
		position: relative;
		display: grid;
		flex: none;
		place-items: center;
	}

	.cart-button .icon {
		inline-size: 22px;
		block-size: 22px;
	}

	/* A small badge on the bag's top corner, ringed in the pill's colour so it reads as cut out of it. */
	.cart-button__count {
		position: absolute;
		inset-block-start: -7px;
		inset-inline-end: -8px;
		display: grid;
		place-items: center;
		box-sizing: border-box;
		min-inline-size: 18px;
		block-size: 18px;
		padding-inline: 4px;
		border-radius: var(--radius-pill);
		background: var(--color-surface);
		box-shadow: 0 0 0 2px var(--color-plum);
		color: var(--color-plum);
		font-size: 0.6875rem;
		font-weight: 800;
		line-height: 1;
	}

	.cart-button:hover .cart-button__count,
	.cart-button:focus-visible .cart-button__count {
		box-shadow: 0 0 0 2px var(--color-accent-deep);
	}

	/* The word stays for screen readers: « Panier, 2, 4 400 DA ». */
	.cart-button__label {
		position: absolute;
		inline-size: 1px;
		block-size: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.cart-button__total {
		font-size: 0.875rem;
		font-weight: 800;
		unicode-bidi: isolate;
	}

	/* Empty cart: an outlined pill with the bag and 0, quieter than the solid one a filled cart earns. */
	.cart-button:has([data-cart-count][data-empty]) {
		background: var(--color-surface);
		box-shadow: 0 2px 8px var(--tint-ink-12), inset 0 0 0 1.5px var(--color-sand);
		color: var(--color-ink);
	}

	.cart-button:has([data-cart-count][data-empty]):hover,
	.cart-button:has([data-cart-count][data-empty]):focus-visible {
		background: var(--color-accent-tint);
		color: var(--color-ink);
	}

	.cart-button:has([data-cart-count][data-empty]) .cart-button__total {
		display: none;
	}

	/* Empty: the bag alone in a round button, its quiet 0 as on the header cart. */
	.cart-button:has([data-cart-count][data-empty]) {
		inline-size: var(--tap);
		padding-inline: 0;
		justify-content: center;
	}

	.cart-button [data-cart-count][data-empty] {
		background: var(--color-surface);
		box-shadow: inset 0 0 0 1px var(--color-sand);
		color: var(--color-ink-soft);
	}

	/* Out of sight is also out of reach: Tab and screen readers skip the links. */
	.corner-dock[data-top] .social-dock {
		visibility: hidden;
		transform: translateY(calc(100% + var(--space-4) + env(safe-area-inset-bottom)));
	}

	/* Phones up to 375px: smaller icons leave the cart button room beside four networks. */
	@media (max-width: 23.49rem) {
		.social-links--dock .social-links__link {
			inline-size: 34px;
			block-size: 34px;
		}
	}

	.single-product .corner-dock,
	.woocommerce-cart .corner-dock,
	.woocommerce-order-received .corner-dock {
		display: none;
	}

	/* The cart button stays at the footer: the last line (credit, in Arabic at the right) ends above it. */
	body:not(.single-product, .woocommerce-cart, .woocommerce-checkout) .site-footer {
		padding-block-end: calc(var(--space-3) + var(--tap) + var(--space-3) + env(safe-area-inset-bottom));
	}

	/* A refused card add speaks above the cart button, not over it (only where the button shows). */
	body:not(.single-product, .woocommerce-cart, .woocommerce-checkout) .storecore-toast {
		inset-block-end: calc(var(--space-3) + var(--tap) + var(--space-3) + env(safe-area-inset-bottom));
	}
}

@media (max-width: 55.99rem) and (prefers-reduced-motion: no-preference) {
	.social-dock {
		/* Visibility waits for the slide to finish, so the icons do not vanish halfway down. */
		transition: opacity 0.2s ease, visibility var(--duration-panel), transform var(--duration-panel) var(--ease-out);
	}

	/* The corner glides out and back; visibility waits for the slide too. */
	.corner-dock {
		transition: opacity var(--duration-panel) var(--ease-out), visibility var(--duration-panel), transform var(--duration-panel) var(--ease-out);
	}

	/* An add bounces the cart button once (nav.js), so the eye follows the product to it. */
	.cart-button[data-bounce] {
		animation: cart-button-bounce 0.45s var(--ease-out);
	}
}

@keyframes cart-button-bounce {
	40% {
		transform: scale(1.18);
	}
}

@media print {
	.corner-dock {
		display: none;
	}
}


/* Consent banner (markup from Complianz). Complianz sets these variables on :root; set on its own containers they win
   whatever order the stylesheets load in. Refuse keeps the same size and weight as Accept: refusing must be as easy. */
#cmplz-cookiebanner-container,
#cmplz-manage-consent {
	--cmplz_banner_width: 560px;
	--cmplz_banner_background_color: var(--color-surface);
	--cmplz_banner_border_color: var(--color-sand);
	--cmplz_banner_border_width: 1px;
	--cmplz_banner_border_radius: var(--radius);
	--cmplz_text_color: var(--color-ink);
	--cmplz_hyperlink_color: var(--color-accent-text);
	--cmplz_title_font_size: var(--step-1);
	--cmplz_text_font_size: var(--step--1);
	--cmplz_link_font_size: var(--step--1);
	--cmplz_category_body_font_size: var(--step--1);
	--cmplz_category_header_title_font_size: var(--step-0);
	--cmplz_category_header_active_font_size: var(--step--1);
	--cmplz_category_header_always_active_color: var(--color-accent-text);
	--cmplz_button_font_size: var(--step-0);
	--cmplz_button_border_radius: var(--radius-pill);
	--cmplz_button_accept_background_color: var(--color-accent);
	--cmplz_button_accept_border_color: var(--color-accent);
	--cmplz_button_accept_text_color: var(--color-on-accent);
	--cmplz_button_deny_background_color: var(--color-accent-tint);
	--cmplz_button_deny_border_color: var(--color-accent-tint);
	--cmplz_button_deny_text_color: var(--color-ink);
	--cmplz_button_settings_background_color: var(--color-accent-tint);
	--cmplz_button_settings_border_color: var(--color-accent-tint);
	--cmplz_button_settings_text_color: var(--color-ink);
	--cmplz_slider_active_color: var(--color-accent);
	--cmplz_slider_inactive_color: var(--color-line-strong);
	--cmplz_slider_bullet_color: var(--color-surface);
}

#cmplz-cookiebanner-container .cmplz-cookiebanner {
	box-shadow: var(--shadow-soft);
}

#cmplz-cookiebanner-container .cmplz-title {
	font-family: var(--font-heading);
	font-weight: var(--weight-medium);
}

:lang(ar) #cmplz-cookiebanner-container .cmplz-title {
	font-family: var(--font-heading-ar);
}

#cmplz-cookiebanner-container .cmplz-buttons .cmplz-btn {
	border-width: 1.5px;
	font-weight: var(--weight-semibold);
	transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

#cmplz-cookiebanner-container .cmplz-buttons .cmplz-btn.cmplz-accept:hover {
	border-color: var(--color-accent-deep);
	background: var(--color-accent-deep);
}

#cmplz-cookiebanner-container .cmplz-buttons .cmplz-btn:not(.cmplz-accept):hover {
	border-color: var(--color-line-strong);
}

/* Wide screens: bottom centre. Phones keep Complianz's full-width sheet along the bottom edge. */
@media (min-width: 48rem) {
	#cmplz-cookiebanner-container .cmplz-cookiebanner {
		right: auto;
		bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
		left: 50%;
		transform: translateX(-50%);
	}
}

/* The "Manage consent" tab sits in the end corner, away from the social bar in the start corner (right in Arabic). */
#cmplz-manage-consent .cmplz-manage-consent {
	right: auto;
	inset-inline-end: var(--space-7);
	font-family: inherit;
}

/* Phones: 46px controls (still above the 44px touch minimum) instead of 52px, and 16px text in every field so iOS
   does not zoom into the page when one is tapped. */
@media (max-width: 47.99rem) {
	.storecore-button,
	.storecore-quick-order__submit {
		min-block-size: 46px;
		padding-block: var(--space-2);
	}

	.storecore-quick-order__submit {
		font-size: var(--step-1);
	}

	.storecore-input {
		min-block-size: 46px;
		padding-block: var(--space-2);
		font-size: 1rem;
	}

	.storecore-textarea {
		min-block-size: 72px;
	}

	.storecore-choice__body {
		min-block-size: 48px;
		padding-block: var(--space-2);
	}

	.storecore-stepper__button {
		inline-size: 44px;
		min-block-size: 44px;
	}

	/* The checkout is the page itself, not a card on it: unframed, its fields take the whole width between the
	   gutters (318px rather than 294px on a 350px phone). */
	.storecore-quick-order.storecore-checkout {
		margin-block-start: var(--space-3);
		padding: 0;
		background: none;
		border: 0;
		border-radius: 0;
	}

	/* Tighter form: a label sits closer to its field, the fields closer to each other, and a field is 44px high
	   (its text stays 16px). */
	.storecore-field {
		gap: var(--space-1);
	}

	.storecore-checkout,
	.storecore-checkout .storecore-field-row {
		gap: var(--space-3);
	}

	/* The order note keeps its 72px above. */
	.storecore-input:not(.storecore-textarea) {
		min-block-size: var(--tap);
	}
}
