/* WooCommerce output restyled with the tokens (its own sheets are disabled). */
.woocommerce-breadcrumb {
	margin-block-end: var(--space-5);
	font-size: var(--step--1);
	color: var(--color-ink-soft);
}

.woocommerce-breadcrumb a {
	color: var(--color-ink-soft);
}

/* On a phone each link gets a finger-sized tap area; the negative margin keeps the line where it was. */
@media (max-width: 40em) {
	.woocommerce-breadcrumb a {
		display: inline-block;
		margin-block: -10px;
		padding-block: 10px;
	}
}

/* Shop filters: one surface with a row per group; a native details toggle on phones. */
.shop-filters {
	margin-block-end: var(--space-5);
	border-radius: calc(var(--radius) * 1.4);
	background: var(--color-surface);
}

.shop-filters__toggle {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-block-size: var(--tap);
	padding-inline: var(--space-5);
	font-weight: var(--weight-semibold);
	cursor: pointer;
	list-style: none;
}

.shop-filters__toggle::-webkit-details-marker {
	display: none;
}

.shop-filters__count {
	color: var(--color-accent-text);
}

.shop-filters__panel {
	display: grid;
	gap: var(--space-4);
	padding: 0 var(--space-5) var(--space-5);
}

.shop-filters__group {
	display: grid;
	gap: var(--space-2);
}

.shop-filters__label {
	font-family: var(--font-heading);
	font-size: var(--step-1);
}

:lang(ar) .shop-filters__label {
	font-family: var(--font-heading-ar);
}

.shop-filters .chips {
	flex-wrap: wrap;
	overflow: visible;
}

.shop-filters__clear {
	margin: 0;
}

.shop-filters__clear a {
	font-weight: var(--weight-semibold);
	color: var(--color-accent-text);
}

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

	.shop-filters__panel {
		padding: var(--space-6);
	}

	.shop-filters__group {
		grid-template-columns: 8rem 1fr;
		align-items: center;
		gap: var(--space-4);
	}
}

/* Shop layout (prototype A2): the filters in a sidebar on the inline-start side, the products beside them; one
   column below 56rem, where the phone drawer (filters.css) takes the filters over. A brand's own template without
   .shop-layout keeps the box above. */
.shop-layout {
	display: grid;
}

/* minmax(0, 1fr): an implicit auto column would widen to the chosen-filters row's full length and push the page
   sideways on phones; with a fixed column that row scrolls inside itself. */
.shop-layout__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-4);
	align-content: start;
	min-inline-size: 0;
}

.shop-layout .shop-toolbar {
	margin-block-end: 0;
}

.shop-chosen:not(:has(*)) {
	display: none;
}

@media (min-width: 56rem) {
	.shop-layout:has(> .shop-layout__side) {
		grid-template-columns: 15rem minmax(0, 1fr);
		align-items: start;
		gap: var(--space-7);
	}

	.shop-layout .shop-filters {
		margin: 0;
		border-radius: 0;
		background: none;
	}

	.shop-layout .shop-filters__head {
		display: flex;
		align-items: baseline;
		padding-block-end: var(--space-3);
		border-block-end: 1px solid var(--color-ink);
	}

	.shop-layout .shop-filters__title {
		margin: 0;
		font-family: var(--font-heading);
		font-size: var(--step-1);
		font-weight: var(--weight-medium);
	}

	:lang(ar) .shop-layout .shop-filters__title {
		font-family: var(--font-heading-ar);
	}

	.shop-layout .shop-filters__close {
		display: none;
	}

	.shop-layout .shop-filters__panel {
		gap: 0;
		padding: 0;
	}
}

/* The sidebar's rows, also in the phone drawer (filters.js); a phone without scripts shows them in the fold. */
.shop-layout .shop-filters__group {
	display: block;
	padding-block: var(--space-4);
	border-block-end: 1px solid var(--color-sand);
}

.shop-layout .shop-filters__label {
	margin-block-end: var(--space-2);
	font-size: var(--step-0);
	font-weight: var(--weight-semibold);
}

.shop-layout .shop-filters__clear {
	padding-block-start: var(--space-4);
}

/* Each option a row: a check box, the colour sample, the name, its count as a pill at the end. */
.shop-layout .shop-filters .chips {
	display: grid;
	gap: 2px;
	padding: 0;
}

.shop-layout .shop-filters .chip {
	display: flex;
	gap: var(--space-3);
	inline-size: 100%;
	min-block-size: 2.5rem;
	padding-inline: var(--space-2);
	border: 0;
	border-radius: var(--radius-sm);
	background: none;
	box-shadow: none;
	color: var(--color-ink);
	font-weight: var(--weight-regular);
}

.shop-layout .shop-filters .chip:hover {
	background: var(--color-surface);
}

.shop-layout .shop-filters .chip::before {
	content: "";
	display: grid;
	place-items: center;
	inline-size: 1.15rem;
	block-size: 1.15rem;
	flex: none;
	border: 1.5px solid var(--color-line-strong);
	border-radius: 4px;
	background: var(--color-surface);
	color: var(--color-surface);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.shop-layout .shop-filters .chip[aria-current] {
	background: none;
	color: var(--color-ink);
	font-weight: 700;
}

.shop-layout .shop-filters .chip[aria-current]:hover {
	background: var(--color-surface);
}

.shop-layout .shop-filters .chip[aria-current]::before {
	content: "✓";
	border-color: var(--color-ink);
	background: var(--color-ink);
}

.shop-layout .shop-filters .chip[aria-current]::after {
	content: none;
}

.shop-layout .shop-filters .chip > span:not([class]) {
	flex: 1;
	min-inline-size: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.shop-layout .shop-filters .chip__count,
.shop-layout .shop-filters .chip[aria-current] .chip__count {
	min-inline-size: 1.6rem;
	background: var(--color-surface);
	box-shadow: inset 0 0 0 1px var(--color-sand);
	color: var(--color-ink-soft);
}

.shop-layout .shop-filters .chip:hover .chip__count {
	background: var(--color-bg);
}

@media (min-width: 56rem) {
	/* Products beside a sidebar: three across until the screen is wide enough for four. */
	.shop-layout:has(> .shop-layout__side) ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 88rem) {
	.shop-layout:has(> .shop-layout__side) ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Shop grid. */
ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-6) var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 48rem) {
	ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-7) var(--space-5);
	}
}

@media (min-width: 72rem) {
	ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.shop-toolbar {
	display: grid;
	gap: var(--space-3);
	margin-block-end: var(--space-6);
}

.shop-toolbar__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
}

.woocommerce-result-count {
	margin: 0;
	font-size: var(--step--1);
	color: var(--color-ink-soft);
}

/* A select is as wide as its longest choice; Tamazight's sort names would push the page past a small phone's edge,
   so the menu stops at the toolbar's width and shows its choice cut short instead. */
.woocommerce-ordering {
	min-inline-size: 0;
	max-inline-size: 100%;
	margin: 0;
}

.woocommerce-ordering select {
	max-inline-size: 100%;
	min-block-size: var(--tap);
	padding-block: var(--space-2);
	padding-inline: var(--space-4) var(--space-6);
	background-color: var(--color-surface);
	border: 1px solid var(--color-line-strong);
	border-radius: var(--radius-pill);
	font-size: var(--step--1);
}

/* 16px on phones, or iOS zooms into the page when it is tapped. */
@media (max-width: 47.99rem) {
	.woocommerce-ordering select {
		font-size: 1rem;
	}
}

/* Phones: the products start higher. Tighter space around the title and between the shop's rows; the count and the
   sort menu share one row; a menu still too long for it cuts its choice short (the open list shows every name in
   full). :has() leaves older browsers the page's usual top space. */
@media (max-width: 47.99rem) {
	.site-main:has(.shop-layout) {
		padding-block: var(--space-3) var(--space-4);
	}

	.shop .page-head {
		margin-block-end: var(--space-3);
	}

	/* Their own bottom margin would show through the header's (margins collapse) and undo the 12px. */
	.shop .page-head > :last-child,
	.shop .page-head__lead > :last-child {
		margin-block-end: 0;
	}

	.shop-layout__main {
		gap: var(--space-3);
	}

	/* Two cards side by side keep 12px between them: their shadows already set them apart. */
	ul.products {
		gap: var(--space-4) var(--space-3);
	}

	.shop-toolbar__meta {
		flex-wrap: nowrap;
	}

	/* When the row is short of room, the count gives way first (it wraps onto two lines), so the menu keeps its
	   chosen name whole; field-sizing sizes the menu to that name rather than to its longest choice. */
	.woocommerce-result-count {
		flex: 0 100 auto;
		min-inline-size: 0;
	}

	.woocommerce-ordering {
		flex: 0 1 auto;
	}

	.woocommerce-ordering select {
		field-sizing: content;
		inline-size: 100%;
		min-block-size: 2.5rem;
		padding-block: var(--space-1);
		text-overflow: ellipsis;
	}
}

.woocommerce-pagination ul {
	display: flex;
	justify-content: center;
	gap: var(--space-2);
	margin: var(--space-7) 0 0;
	padding: 0;
	list-style: none;
}

.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers {
	display: inline-grid;
	place-items: center;
	min-inline-size: var(--tap);
	min-block-size: var(--tap);
	padding-inline: var(--space-2);
	border-radius: var(--radius-pill);
	color: var(--color-ink);
	text-decoration: none;
}

.woocommerce-pagination a.page-numbers:hover {
	background: var(--color-sand);
}

.woocommerce-pagination .current {
	background: var(--color-accent-text);
	color: var(--color-on-accent);
}

/* Prices. */
.price del,
.product-summary__price del {
	color: var(--color-ink-soft);
	font-weight: var(--weight-regular);
}

.price ins,
.product-summary__price ins {
	text-decoration: none;
}

.product-summary__title {
	margin-block-end: var(--space-2);
}

.product-summary__price {
	margin-block-end: var(--space-4);
	font-size: var(--step-2);
	font-weight: var(--weight-semibold);
}

/* The price block of a product page (from storecore): price, then during a promotion the saving and the end date. */
.storecore-price-block {
	display: grid;
	gap: var(--space-1);
}

.storecore-price-block p {
	margin: 0;
}

.storecore-price-block__price .storecore-price__was {
	font-size: var(--step-0);
}

.storecore-price__off {
	display: inline-flex;
	align-items: center;
	padding: 0 var(--space-2);
	border-radius: var(--radius-pill);
	background: var(--color-accent-tint);
	color: var(--color-accent-deep);
	font-size: var(--step--1);
	font-weight: 700;
	vertical-align: middle;
}

/* storecore's checkout receipt while delivery is discounted: where it goes under "Delivery", the total before the
   discount after a dashed line, the discount in the accent, then the amount to pay in a light gradient block. */
.storecore-summary__where {
	display: block;
	font-size: var(--step--1);
	color: var(--color-ink-soft);
}

.storecore-summary__row--before {
	padding-block-start: var(--space-2);
	border-block-start: 1px dashed var(--color-sand);
}

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

.storecore-summary__row--before dd {
	font-weight: 700;
}

.storecore-summary__row--discount dt,
.storecore-summary__row--discount dd {
	color: var(--color-accent-text);
	font-weight: 700;
}

.storecore-pay {
	/* The label and the amount share the first row; the saving takes its own row under them, on one line. */
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: var(--space-2) var(--space-3);
	padding: var(--space-4);
	border: 1px solid var(--tint-ink-12);
	border-radius: calc(var(--radius) * 0.9);
	background: linear-gradient(120deg, var(--color-surface), var(--color-accent-tint) 70%);
	color: var(--color-accent-text);
}

.storecore-pay__label {
	display: block;
	font-weight: var(--weight-semibold);
}

.storecore-pay__badge {
	grid-column: 1 / -1;
	justify-self: start;
	white-space: nowrap;
	padding: 2px var(--space-2);
	border-radius: var(--radius-pill);
	background: var(--color-accent);
	color: var(--color-on-accent);
	font-size: var(--step--1);
	font-weight: 700;
}

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

.storecore-pay__amount {
	font-size: var(--step-2);
	white-space: nowrap;
}

/* The saving of a cart or an order with promotions, under its total. */
.storecore-summary__saving {
	display: flex;
	justify-content: space-between;
	gap: var(--space-3);
	margin: var(--space-3) 0 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-price-block__save {
	color: var(--color-accent-deep);
	font-size: var(--step-0);
	font-weight: var(--weight-semibold);
}

.storecore-price-block__until {
	color: var(--color-ink-soft);
	font-size: var(--step--1);
	font-weight: var(--weight-regular);
}

.product-summary__excerpt {
	color: var(--color-ink-soft);
}

/* Gallery. Every product photo frame is 3:4, so one photo shows whole everywhere. */
.product-gallery__main {
	overflow: hidden;
	aspect-ratio: 3 / 4;
	background: var(--color-sand);
	border-radius: var(--radius);
}

.product-gallery__image {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	transition: opacity var(--duration-base) var(--ease-out);
}

.product-gallery__image[data-loading] {
	opacity: 0.4;
}

.product-gallery__thumbs {
	display: flex;
	gap: var(--space-2);
	margin: var(--space-3) 0 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
}

.product-gallery__thumb {
	display: block;
	inline-size: 60px;
	block-size: 80px;
	padding: 0;
	overflow: hidden;
	background: none;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: border-color var(--duration-fast) var(--ease-out);
}

.product-gallery__thumb img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.product-gallery__thumb[aria-pressed="true"] {
	border-color: var(--color-accent-text);
}

/* Notices. */
.woocommerce-notices-wrapper:empty {
	display: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	margin: 0 0 var(--space-5);
	padding: var(--space-3) var(--space-4);
	background: var(--color-surface);
	border: var(--border);
	border-inline-start: 3px solid var(--color-accent-text);
	border-radius: var(--radius-sm);
	list-style: none;
}

.woocommerce-error {
	border-inline-start-color: var(--color-error);
	color: var(--color-error);
}

/* Order received. */
.thankyou {
	display: grid;
	justify-items: center;
	gap: var(--space-4);
	max-inline-size: 36rem;
	margin-inline: auto;
	padding-block: var(--space-6);
	text-align: center;
}

.thankyou__icon {
	display: grid;
	place-items: center;
	inline-size: 64px;
	block-size: 64px;
	background: var(--color-accent-tint);
	border-radius: 50%;
	color: var(--color-accent-text);
}

.thankyou__icon .icon {
	inline-size: 32px;
	block-size: 32px;
}

.thankyou__title {
	margin: 0;
}

.thankyou__lead {
	margin: 0;
	font-size: var(--step-1);
	color: var(--color-ink-soft);
}

/* The window repeating the email notice: closable after a 3-second countdown (thankyou.js). */
/* Two classes: these rules come before the shared window's and must win over them. */
.storecore-minimum-dialog.thankyou-notice {
	inline-size: min(28rem, calc(100vw - 2 * var(--gutter)));
	overflow-wrap: anywhere;
}

/* In the band: the icon at its start, the title beside it (no close cross to make room for). */
.thankyou-notice .thankyou-notice__band {
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: var(--space-3);
	text-align: start;
}

.thankyou-notice__body {
	text-align: center;
}

/* The page behind the window stays still. */
html:has(.thankyou-notice[open]) {
	overflow: hidden;
}

.storecore-minimum-dialog.thankyou-notice::backdrop {
	background: var(--tint-ink-55);
}

.thankyou__email p {
	margin: 0;
}

.thankyou-notice__icon {
	display: inline-grid;
	place-items: center;
	inline-size: 48px;
	block-size: 48px;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.18);
	color: var(--color-on-accent);
}

.thankyou-notice__icon svg {
	inline-size: 28px;
	block-size: 28px;
}

.thankyou-notice .thankyou-notice__title {
	margin: 0;
	font-family: var(--font-heading);
}

.thankyou-notice__text {
	margin: 0;
	line-height: 1.6;
}

/* "Not in your inbox?": a smaller grey hint under the notice, on the page and in the window. */
.thankyou__hint {
	margin: 0;
	font-size: var(--step--1);
	color: var(--color-ink-soft);
}

.thankyou-notice__timer {
	position: relative;
	display: grid;
	place-items: center;
	inline-size: 56px;
	block-size: 56px;
	margin-inline: auto;
}

.thankyou-notice__timer[hidden] {
	display: none;
}

.thankyou-notice__ring {
	position: absolute;
	inset: 0;
	transform: rotate(-90deg);
}

.thankyou-notice__ring circle {
	fill: none;
	stroke: var(--color-accent);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 132;
	stroke-dashoffset: 0;
}

.thankyou-notice.is-counting .thankyou-notice__ring circle {
	animation: storecore-notice-ring 3s linear forwards;
}

@keyframes storecore-notice-ring {
	to {
		stroke-dashoffset: 132;
	}
}

@media (prefers-reduced-motion: reduce) {
	.thankyou-notice.is-counting .thankyou-notice__ring circle {
		animation: none;
	}
}

.thankyou-notice__count {
	font-size: var(--step-2);
	font-weight: var(--weight-semibold);
	font-variant-numeric: tabular-nums;
}

.thankyou-notice__close {
	inline-size: 100%;
}

.thankyou__email {
	display: grid;
	gap: var(--space-2);
	margin: 0;
	padding: var(--space-3) var(--space-4);
	background: var(--color-accent-tint);
	border-radius: var(--radius);
	text-align: start;
	overflow-wrap: anywhere;
}

.order-card {
	inline-size: 100%;
	padding: var(--space-5);
	background: var(--color-surface);
	border: var(--border);
	border-radius: var(--radius);
	text-align: start;
}

.order-card__title {
	margin-block-end: var(--space-4);
	font-size: var(--step-1);
}

.order-card__items,
.order-card__totals {
	display: grid;
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.order-card__totals {
	margin-block-start: var(--space-3);
	padding-block-start: var(--space-3);
	border-block-start: 1px dashed var(--color-sand);
}

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

.order-card__row dd {
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.order-card__qty {
	color: var(--color-ink-soft);
}

.order-card__row--total {
	font-weight: var(--weight-semibold);
}

/* Follow and Continue: side by side when they fit, else one under the other, never touching. */
.thankyou__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-3);
	margin: 0;
}

@media (max-width: 30em) {
	.thankyou__actions .storecore-button {
		flex: 1 1 100%;
	}
}

/* Purchase box on the product page. */
.storecore-purchase {
	display: grid;
	gap: var(--space-5);
	padding: var(--space-5);
	border-radius: calc(var(--radius) * 1.4);
	background: var(--color-surface);
}

.storecore-purchase__actions {
	display: grid;
	/* Side by side only when the box itself has room for both labels on one line (it is narrow next to the photos). */
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	gap: var(--space-3);
}

/* storecore's window when "Buy now" meets a product under the minimum order: a band with what is missing and the
   progress, then the steps. Wide enough for "−50 % off delivery" to stay on one line. */
.storecore-minimum-dialog {
	inline-size: min(100% - 2 * var(--gutter), 32rem);
	/* A phone's screen is shorter than the window can be: the band stays, the rest scrolls (overflow: hidden would cut
	   the last button off). */
	max-block-size: calc(100vh - 2 * var(--gutter));
	max-block-size: calc(100dvh - 2 * var(--gutter));
	padding: 0;
	border: 0;
	border-radius: calc(var(--radius) * 1.4);
	overflow: hidden;
	background: var(--color-surface);
	color: var(--color-ink);
	box-shadow: var(--shadow-soft);
}

.storecore-minimum-dialog[open] {
	display: flex;
	flex-direction: column;
}

.storecore-minimum-dialog::backdrop {
	background: rgb(0 0 0 / 0.45);
}

.storecore-minimum-dialog__band {
	position: relative;
	flex: none;
	display: grid;
	gap: var(--space-2);
	padding: var(--space-5) var(--space-5) var(--space-4);
	/* The accent, lighter towards the far corner (a white veil, which older phone browsers draw too). */
	background: linear-gradient(135deg, transparent, rgb(255 255 255 / 0.3)), var(--color-accent);
	color: var(--color-on-accent);
}

.storecore-minimum-dialog__close {
	position: absolute;
	inset-block-start: var(--space-2);
	inset-inline-end: var(--space-2);
	inline-size: 44px;
	block-size: 44px;
	border: 0;
	background: none;
	color: var(--color-on-accent);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.storecore-minimum-dialog__title {
	margin: 0;
	margin-inline-end: var(--space-6);
	font-size: var(--step-1);
	color: inherit;
}

.storecore-minimum-dialog__bar {
	block-size: 10px;
	border-radius: var(--radius-pill);
	background: rgb(255 255 255 / 0.28);
	overflow: hidden;
}

.storecore-minimum-dialog__bar span {
	display: block;
	block-size: 100%;
	border-radius: inherit;
	background: var(--color-accent-tint);
}

.storecore-minimum-dialog__count {
	display: flex;
	justify-content: space-between;
	gap: var(--space-2);
	margin: 0;
	font-size: var(--step--1);
}

.storecore-minimum-dialog__body {
	display: grid;
	gap: var(--space-4);
	min-block-size: 0;
	padding: var(--space-4) var(--space-5) var(--space-5);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.storecore-minimum-dialog__text {
	margin: 0;
	color: var(--color-ink);
}

.storecore-minimum-dialog__steps {
	display: grid;
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: storecore-step;
}

.storecore-minimum-dialog__steps li {
	position: relative;
	padding-inline-start: 2.25rem;
	line-height: 1.4;
}

.storecore-minimum-dialog__steps li::before {
	content: counter(storecore-step);
	counter-increment: storecore-step;
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: -1px;
	display: grid;
	place-items: center;
	inline-size: 1.6rem;
	block-size: 1.6rem;
	border-radius: 50%;
	background: var(--color-accent-tint);
	color: var(--color-accent-text);
	font-size: var(--step--1);
	font-weight: 700;
}

.storecore-minimum-dialog__steps li.is-now::before {
	background: var(--color-accent);
	color: var(--color-on-accent);
}

.storecore-minimum-dialog__steps small {
	display: block;
	color: var(--color-ink-soft);
}

.storecore-minimum-dialog__steps b {
	color: var(--color-accent-text);
	white-space: nowrap;
}

.storecore-minimum-dialog__actions {
	display: grid;
	gap: var(--space-3);
}

/* storecore's window when "Buy now" meets a cart that holds other products: the minimum window's band, then the
   cart's lines with this product marked, the total and the two choices (or why ordering it alone is not possible). */
.storecore-cart-dialog__lines {
	display: grid;
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.storecore-cart-dialog__line {
	display: grid;
	grid-template-columns: 44px 1fr auto;
	gap: var(--space-3);
	align-items: center;
	line-height: 1.3;
}

.storecore-cart-dialog__line.is-new {
	margin-inline: calc(-1 * var(--space-2));
	padding: var(--space-2);
	border-radius: var(--radius-sm);
	background: var(--color-accent-tint);
}

.storecore-cart-dialog__line img {
	inline-size: 44px;
	block-size: 44px;
	border-radius: var(--radius-sm);
	object-fit: cover;
}

/* A line without a photo keeps its name in the middle column. */
.storecore-cart-dialog__line > span:first-child {
	grid-column: 2;
}

.storecore-cart-dialog__line small {
	display: block;
	color: var(--color-ink-soft);
}

.storecore-cart-dialog__line b {
	white-space: nowrap;
}

.storecore-cart-dialog__tag {
	display: inline-block;
	padding: 0 var(--space-2);
	border-radius: var(--radius-pill);
	background: var(--color-accent);
	color: var(--color-on-accent);
	font-size: var(--step--1);
	font-weight: 700;
	white-space: nowrap;
}

.storecore-cart-dialog__total {
	display: flex;
	justify-content: space-between;
	gap: var(--space-2);
	margin: 0;
	padding-block-start: var(--space-3);
	border-block-start: 1px dashed var(--color-line-strong);
	font-weight: 700;
}

.storecore-cart-dialog__total span:last-child {
	white-space: nowrap;
}

/* The tick is decoration ("Minimum reached" says it): no alt text where the browser knows the syntax. */
.storecore-cart-dialog .storecore-minimum-dialog__count .is-reached::after {
	content: " \2713";
	content: " \2713" / "";
}

.storecore-cart-dialog [data-cart-choice] {
	flex-direction: column;
	gap: 0;
}

.storecore-cart-dialog__hint {
	font-size: var(--step--1);
	font-weight: 400;
	opacity: 0.85;
}

.storecore-cart-dialog__reason {
	margin: 0;
	padding: var(--space-3);
	border: 1px solid var(--color-line-strong);
	border-radius: var(--radius);
	color: var(--color-ink-soft);
}

/* On a phone the windows hold their buttons without scrolling: a touch smaller text, tighter spacing. The purchase box
   tightens too. */
@media (max-width: 40em) {
	.storecore-purchase {
		gap: var(--space-4);
		padding: var(--space-4);
	}

	/* "Quantity" and its stepper on one line. */
	.storecore-purchase .storecore-field:has(> .storecore-stepper) {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-2);
	}

	.storecore-purchase .storecore-field:has(> .storecore-stepper) > :not(label, .storecore-stepper) {
		flex-basis: 100%;
	}

	.storecore-purchase__actions {
		gap: var(--space-2);
	}

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

	.storecore-minimum-dialog {
		font-size: 0.94rem;
	}

	.storecore-minimum-dialog__band {
		gap: var(--space-1);
		padding: var(--space-4) var(--space-4) var(--space-3);
	}

	.storecore-minimum-dialog__title {
		font-size: var(--step-0);
		line-height: 1.25;
	}

	.storecore-minimum-dialog__close {
		inset-block-start: var(--space-1);
		inset-inline-end: var(--space-1);
	}

	.storecore-minimum-dialog__count {
		font-size: 0.8rem;
	}

	.storecore-minimum-dialog__body {
		gap: var(--space-3);
		padding: var(--space-3) var(--space-4) var(--space-4);
	}

	.storecore-minimum-dialog__steps {
		gap: var(--space-2);
	}

	.storecore-minimum-dialog__steps li {
		line-height: 1.3;
	}

	.storecore-minimum-dialog__steps small {
		font-size: 0.8rem;
	}

	.storecore-minimum-dialog__actions {
		gap: var(--space-2);
	}

	.storecore-minimum-dialog__actions .storecore-button {
		min-block-size: 44px;
		padding-block: var(--space-2);
	}

	.storecore-cart-dialog__lines {
		gap: var(--space-1);
	}

	.storecore-cart-dialog__line {
		grid-template-columns: 36px 1fr auto;
		gap: var(--space-2);
		line-height: 1.25;
	}

	.storecore-cart-dialog__line img {
		inline-size: 36px;
		block-size: 36px;
	}

	.storecore-cart-dialog__line.is-new {
		padding: var(--space-1) var(--space-2);
	}

	.storecore-cart-dialog__total {
		padding-block-start: var(--space-2);
	}

	.storecore-cart-dialog__hint {
		font-size: 0.8rem;
	}

	.thankyou-notice .thankyou-notice__icon {
		inline-size: 40px;
		block-size: 40px;
	}

	.thankyou-notice .thankyou-notice__text {
		line-height: 1.5;
	}
}

/* Phones: the product page's first screen reaches "Buy now" (360×740), and on a 320×568 phone the purchase box is in
   view on arrival, so the sticky bar no longer comes up over the name. */
@media (max-width: 47.99rem) {
	.product-page .woocommerce-breadcrumb {
		margin-block-end: var(--space-2);
	}

	.product-page .product-layout {
		gap: var(--space-3);
	}

	/* The whole 3:4 photo, at most 48% of the screen's height: on a phone too short for it, it shows smaller on sand
	   bands rather than cropped (owner decision 2026-12-04). The photo left behind during a slide fits the same way. */
	.product-page .product-gallery__main {
		inline-size: 100%;
		max-block-size: 48vh;
		max-block-size: 48svh;
		/* Smaller where name, colours, quantity and buttons would push "Buy now" past the first screen (360×740:
		   355 → 324px); never under 17rem, so a 320×568 phone keeps its photo (owner decision 2026-12-04). */
		max-block-size: min(48vh, max(17rem, 100vh - 26rem));
		max-block-size: min(48svh, max(17rem, 100svh - 26rem));
		background-repeat: no-repeat;
		background-size: contain;
	}

	.product-page .product-gallery__main .product-gallery__image {
		object-fit: contain;
	}

	.product-page .product-summary__title {
		margin-block-end: var(--space-1);
	}

	.product-page .product-summary__price {
		margin-block-end: var(--space-3);
	}

	.product-page .storecore-purchase {
		gap: var(--space-3);
		padding: var(--space-3);
	}

	/* "Add to cart" and "Buy now" on one row, "Buy now" under the right thumb in Arabic too (as in the quick view);
	   they wrap to two rows only when a label cannot fit. */
	.product-page .storecore-purchase__actions {
		display: flex;
		flex-wrap: wrap;
		gap: var(--space-2);
	}

	[dir="rtl"] .product-page .storecore-purchase__actions {
		flex-direction: row-reverse;
	}

	.product-page .storecore-purchase__actions .storecore-button {
		flex: 1 1 auto;
		min-block-size: var(--tap);
		padding-block: 0;
		padding-inline: var(--space-3);
		white-space: nowrap;
	}
}

.storecore-purchase__status {
	margin: 0;
	font-weight: var(--weight-medium);
}

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

/* Header cart link with its count badge. */
.site-header__cart {
	display: flex;
	margin-inline-start: auto;
}

.cart-link {
	position: relative;
	display: inline-grid;
	place-items: center;
	inline-size: var(--tap);
	block-size: var(--tap);
	border-radius: var(--radius-pill);
	color: var(--color-ink);
}

.cart-link:hover {
	background: var(--color-sand);
	color: var(--color-ink);
}

.cart-link__count {
	position: absolute;
	inset-block-start: 2px;
	inset-inline-end: 0;
	display: grid;
	place-items: center;
	min-inline-size: 1.25rem;
	block-size: 1.25rem;
	padding-inline: var(--space-1);
	border-radius: var(--radius-pill);
	background: var(--color-accent);
	color: var(--color-on-accent);
	font-size: 0.7rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* An empty cart still shows a quiet 0, so the icon reads as the cart. */
.cart-link__count[data-empty] {
	background: var(--color-surface);
	color: var(--color-ink-soft);
	box-shadow: inset 0 0 0 1px var(--color-sand);
}

/* Cart page. */
.cart-layout,
.checkout-layout {
	display: grid;
	gap: var(--space-6);
	align-items: start;
}

@media (min-width: 56rem) {
	.cart-layout {
		grid-template-columns: minmax(0, 1fr) 22rem;
	}

	.checkout-layout {
		grid-template-columns: minmax(0, 1fr) 18rem;
	}

	.cart-summary,
	.checkout-help {
		position: sticky;
		inset-block-start: calc(var(--header-height) + var(--space-5));
	}
}

.cart-lines {
	display: grid;
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cart-line {
	display: grid;
	grid-template-columns: 5rem 1fr auto;
	grid-template-areas:
		"media body remove"
		"media qty qty";
	gap: var(--space-2) var(--space-4);
	align-items: center;
	padding: var(--space-3);
	border-radius: var(--radius);
	background: var(--color-surface);
}

.cart-line__media {
	grid-area: media;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	border-radius: 60px 60px var(--radius-sm) var(--radius-sm);
	background: var(--color-sand);
}

.cart-line__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.cart-line__body {
	grid-area: body;
	display: grid;
	gap: var(--space-1);
}

.cart-line__name {
	font-family: var(--font-heading);
	font-size: var(--step-1);
	color: var(--color-ink);
	text-decoration: none;
}

:lang(ar) .cart-line__name {
	font-family: var(--font-heading-ar);
}

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

.cart-line__price {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.cart-line__qty {
	grid-area: qty;
	justify-self: start;
}

/* The stepper's phone size (40px, for the order form) is under the tap size; a cart line has the room. */
@media (max-width: 40em) {
	.cart-line__qty .storecore-stepper__button {
		inline-size: var(--tap);
		min-block-size: var(--tap);
	}
}

.cart-line__remove {
	grid-area: remove;
	align-self: start;
	display: inline-grid;
	place-items: center;
	inline-size: var(--tap);
	block-size: var(--tap);
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
	background: none;
	color: var(--color-ink-soft);
	cursor: pointer;
}

.cart-line__remove:hover {
	background: var(--color-sand);
	color: var(--color-ink);
}

.cart-summary {
	display: grid;
	gap: var(--space-4);
	padding: var(--space-5);
	border-radius: calc(var(--radius) * 1.4);
	background: var(--color-surface);
}

/* The summary's dashed rule separates it from what is above it in its card (the minimum's notice): first in the
   card, it would separate nothing. */
.cart-summary > .storecore-summary:first-child {
	padding-block-start: 0;
	border-block-start: 0;
}

.cart-summary__note {
	margin: 0;
	font-size: var(--step--1);
	color: var(--color-ink-soft);
}

.cart-summary__checkout,
.cart-summary__continue {
	inline-size: 100%;
}

/* Under storecore's minimum order: the link has no address and is shown inactive. */
.cart-summary__checkout[aria-disabled="true"] {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

/* storecore's minimum-order notice (cart and checkout): the sentence, a bar filling from the start side, a link. */
.storecore-minimum {
	display: grid;
	gap: var(--space-2);
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-sm);
	background: var(--color-accent-tint);
	color: var(--color-accent-deep);
}

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

.storecore-minimum__bar {
	block-size: 8px;
	border-radius: var(--radius-pill);
	background: var(--color-sand);
	overflow: hidden;
}

.storecore-minimum__fill {
	display: block;
	block-size: 100%;
	border-radius: inherit;
	background: var(--color-accent);
}

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

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

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

/* A discounted delivery fee (storecore's Delivery\Fees::price_html and checkout.js): the usual fee small and struck,
   the fee charged in the accent, and the percentage as a chip. */
.storecore-fee {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-end;
	gap: 0 var(--space-2);
}

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

.storecore-fee__now {
	color: var(--color-accent-text);
	font-weight: 700;
}

.storecore-fee__off {
	align-self: center;
	padding: 1px var(--space-2);
	border-radius: var(--radius-pill);
	background: var(--color-accent-tint);
	color: var(--color-accent-deep);
	font-size: var(--step--1);
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
}

/* While storecore discounts delivery: the offer, under the summary. */
.cart-summary__discount {
	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);
}

.cart-summary__status {
	margin: 0;
	color: var(--color-error);
}

.cart-body[aria-busy="true"] .cart-lines {
	opacity: 0.6;
	pointer-events: none;
}

/* Cart panel (assets/js/cart-panel.js): the cart's body in a sheet (sheet.css), its buttons pinned in the foot.
   One column at every width: the page's two columns do not fit a panel. */
.cart-panel__title {
	flex: 1;
	min-inline-size: 0;
	margin: 0;
	font-weight: var(--weight-semibold);
	line-height: var(--leading-tight);
}

.cart-panel .cart-layout {
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-4);
}

/* A line in the panel: the name with the bin, the choice, then the price and the quantity on one row. The body's
   box steps aside so its three texts take their own places in the line's grid. */
.cart-panel .cart-line {
	grid-template-columns: 4.5rem minmax(0, 1fr) auto auto;
	grid-template-areas:
		"media name name remove"
		"media colour colour colour"
		"media price qty qty";
	gap: var(--space-1) var(--space-3);
	align-items: start;
}

/* Phones: a 64px photo leaves the lines more room. Before the narrow-line rules below, which still shrink it to 56. */
@media (max-width: 47.99rem) {
	.cart-panel .cart-line {
		grid-template-columns: 4rem minmax(0, 1fr) auto auto;
	}
}

.cart-panel .cart-line__body {
	display: contents;
}

.cart-panel .cart-line__name {
	grid-area: name;
}

.cart-panel .cart-line__colour {
	grid-area: colour;
}

.cart-panel .cart-line__price {
	grid-area: price;
	align-self: center;
}

.cart-panel .cart-line__qty {
	justify-self: end;
	align-self: center;
}

/* The price's digits do not wrap, so the stepper gives it room: a narrower number box, and in the side panel under a
   mouse the order form's 40px buttons (a pointer needs no tap size). Touch screens keep their larger buttons. */
.cart-panel .cart-line__qty .storecore-stepper__input {
	inline-size: 2rem;
}

@media (min-width: 56rem) and (pointer: fine) {
	.cart-panel .cart-line__qty .storecore-stepper__button {
		inline-size: 40px;
		min-block-size: 40px;
		font-size: var(--step-0);
	}
}

/* The price and the quantity share a row. On a narrow phone (320–344px) the line makes room by shrinking first: tighter
   padding and gaps, a smaller photo, a 40px stepper (owner decision 2026-12-03); a five-digit price still fits at
   320px. Only a line narrower than that puts the price and the stepper on rows of their own. */
.cart-panel .cart-lines {
	container-type: inline-size;
}

@container (max-width: 19.5rem) {
	.cart-panel .cart-line {
		grid-template-columns: 3.5rem minmax(0, 1fr) auto auto;
		column-gap: var(--space-2);
		padding: var(--space-2);
	}

	.cart-panel .cart-line__qty .storecore-stepper__button {
		inline-size: 40px;
		min-block-size: 40px;
	}

	.cart-panel .cart-line__qty .storecore-stepper__input {
		inline-size: 1.75rem;
	}
}

@container (max-width: 16rem) {
	.cart-panel .cart-line {
		grid-template-areas:
			"media name name remove"
			"media colour colour colour"
			"media price price price"
			"media qty qty qty";
	}

	.cart-panel .cart-line__qty {
		justify-self: start;
	}
}

/* A promotion's price, old price and discount stay on one row while there is room, and wrap as words after it. */
.cart-panel .cart-line__price .storecore-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 var(--space-1);
}

/* Beside the quantity the price has a narrow column (86px on a 360px phone): the old price steps down a size and
   the percentage is left out, the two prices already showing the discount, so a promotion takes two rows at most. */
.cart-panel .cart-line__price .storecore-price__was {
	font-size: var(--step--1);
}

.cart-panel .cart-line__price .storecore-price__off {
	display: none;
}

/* The bin keeps its tap size and gives its empty margin back: its drawing lines up with the card's edge. */
.cart-panel .cart-line__remove {
	justify-self: end;
	margin-block: calc(var(--space-3) * -1);
	margin-inline-end: calc(var(--space-3) * -1);
}

/* With the amount in the foot, what is left of the summary is a note under the lines, not a card of its own. */
.cart-panel .cart-summary {
	position: static;
	gap: var(--space-2);
	padding: 0 var(--space-3);
	background: none;
	font-size: var(--step--1);
}

/* No dashed box: inside the panel it reads as a placeholder, and the panel already frames the message. */
.cart-panel .empty-state {
	padding-block: var(--space-6);
	border: 0;
	background: none;
}

/* The empty cart sits in the middle of the panel, not under its head with the rest left blank. */
.cart-panel .sheet__body:has(.empty-state) {
	display: grid;
	align-content: center;
}

/* A long name keeps its line's height: two lines, then an ellipsis. The link still leads to the product. */
.cart-panel .cart-line__name {
	display: -webkit-box;
	overflow: hidden;
	overflow-wrap: anywhere;
	line-height: var(--leading-tight);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/* A refused change, in the shape of the summary's other notes. */
.cart-panel__foot .cart-summary__status {
	margin: 0;
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius-sm);
	background: var(--color-error-tint);
	font-size: var(--step--1);
}

.cart-summary__checkout-total {
	display: none;
}

/* The items amount, pinned above "Order now" (cart-panel.js moves it out of the summary). */
.cart-panel__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-4);
	margin: 0;
	padding-block-end: var(--space-1);
	font-weight: var(--weight-medium);
}

.cart-panel__total strong {
	font-size: var(--step-2);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Phones (compact layout, 2026-12-04): the sheet rises as high as the quick view's, and the foot shrinks from 166 to
   about 100px: one 48px "Order now · amount" button over a text-link "Continue shopping" (B4, 2026-12-04). */
@media (max-width: 47.99rem) {
	.sheet.cart-panel {
		block-size: calc(100vh - 0.75rem);
		block-size: calc(100dvh - 0.75rem);
	}

	/* About 56px with the 36px × (sheet.css): a little more air than the quick view's, which carries a price too. */
	.cart-panel .sheet__head {
		padding-block: var(--space-3) var(--space-2);
	}

	.cart-panel__title {
		font-family: var(--font-heading);
		font-size: var(--sheet-fs-title);
	}

	:lang(ar) .cart-panel__title {
		font-family: var(--font-heading-ar);
	}

	.cart-panel .sheet__body {
		padding-block: var(--space-3);
		font-size: var(--sheet-fs-body);
	}

	.cart-panel .cart-layout {
		gap: var(--space-3);
	}

	/* Compact lines (brief point 5): less padding and gaps, smaller name. The stepper keeps its 44px tap size. */
	/* A list with rules between the lines, as in D: boxed lines on the sheet's surface read as cards in a card. */
	.cart-panel .cart-lines {
		gap: 0;
	}

	.cart-panel .cart-line {
		row-gap: 0.125rem;
		padding-block: var(--space-3);
		padding-inline: 0;
		border-block-end: var(--border);
		border-radius: 0;
		background: none;
	}

	/* The card's 4:5 photo shape in small, not the page's arch. */
	.cart-panel .cart-line__media {
		aspect-ratio: 4 / 5;
		border-radius: var(--radius-sm);
	}

	.cart-panel .cart-line__media img {
		object-position: center 65%;
	}

	/* Where the line is wide enough (360px phones and up), the price moves under the choice and the stepper spans
	   both rows: the 44px stepper no longer adds a row of its own, and the line drops from ~105 to ~80px. The narrow
	   lines above keep their own layout. */
	@container (width > 19.5rem) {
		.cart-panel .cart-line {
			grid-template-columns: 3.5rem minmax(0, 1fr) auto auto;
			grid-template-areas:
				"media name name remove"
				"media colour qty qty"
				"media price qty qty";
			align-items: center;
		}

		.cart-panel .cart-line__name {
			align-self: start;
		}

		.cart-panel .cart-line__qty {
			align-self: end;
		}
	}

	.cart-panel .cart-line__name {
		font-size: var(--sheet-fs-body);
		font-weight: var(--weight-semibold);
	}

	.cart-panel .cart-line__colour {
		font-size: var(--sheet-fs-small);
	}

	/* The delivery row and the office note: small print under the lines, tight together. */
	/* Flush with the lines above it, which no longer sit in boxes. */
	.cart-panel .cart-summary {
		gap: var(--space-1);
		padding-inline: 0;
		font-size: var(--sheet-fs-small);
	}

	.cart-panel .cart-summary .storecore-summary {
		gap: var(--space-1);
	}

	.cart-panel .cart-summary__note,
	.cart-panel .cart-summary__discount {
		font-size: inherit;
		line-height: 1.4;
	}

	/* "Continue shopping" sits right under the button, little space around it (brief point 5). */
	.cart-panel .sheet__foot {
		display: flex;
		flex-wrap: wrap;
		gap: 0;
		padding-block: var(--space-2) calc(var(--space-1) + env(safe-area-inset-bottom));
	}

	.cart-panel__foot > * {
		flex: 1 1 100%;
	}

	/* The button carries the only amount, so the pinned total line is not shown. */
	.cart-panel__total {
		display: none;
	}

	.cart-panel__foot > .cart-summary__checkout {
		min-block-size: 3rem;
		padding-block: 0;
		padding-inline: var(--space-3);
		font-size: var(--sheet-fs-body);
	}

	/* "Commander · 2 200 DA" spaced like words: the button's own 8px gap plus a margin read as a hole. */
	.cart-panel__foot > .cart-summary__checkout {
		gap: 0.3em;
	}

	.cart-panel__foot .cart-summary__checkout-total {
		display: inline-flex;
		gap: 0.3em;
		font-variant-numeric: tabular-nums;
	}

	.cart-panel__foot .cart-summary__checkout-total::before {
		content: "\00b7";
	}

	/* A 40px line to the eye, 44px to a thumb: the tap area reaches 2px past it above and below. */
	.cart-panel__foot > .cart-summary__continue::before {
		content: "";
		position: absolute;
		inset: -2px 0;
	}

	/* "Continue shopping": a centred text link under the button, no border or fill. */
	.cart-panel__foot > .cart-summary__continue {
		position: relative;
		min-block-size: 2.5rem;
		padding-block: 0;
		font-size: var(--sheet-fs-small);
		padding-inline: var(--space-3);
		border: 0;
		background: none;
		box-shadow: none;
		color: var(--color-ink-soft);
		font-weight: var(--weight-medium);
		text-decoration: underline;
		text-underline-offset: 0.2em;
	}
}

/* Computers: a full-height column on the side the header's cart icon sits (the inline end), sliding in from there.
   `.sheet.cart-panel` because sheet.css loads after this file and puts every sheet at the bottom. The slide's
   direction is a variable: a transform does not follow the writing direction. */
@media (min-width: 56rem) {
	.sheet.cart-panel {
		--cart-panel-from: 100%;
		inset-block: 0;
		inset-inline: auto 0;
		inline-size: clamp(22rem, 32vw, 30rem);
		block-size: 100vh;
		block-size: 100dvh;
		border-radius: 0;
		animation-name: cart-panel-slide;
	}

	[dir="rtl"] .sheet.cart-panel {
		--cart-panel-from: -100%;
	}
}

@keyframes cart-panel-slide {
	from {
		transform: translateX(var(--cart-panel-from));
	}
}

/* While it loads: the shape of what comes. */
.cart-panel__loading {
	display: grid;
	gap: var(--space-3);
}

.cart-panel__bone {
	display: block;
	border-radius: var(--radius);
	background: var(--color-sand);
	animation: cart-panel-pulse 1.2s ease-in-out infinite alternate;
}

.cart-panel__bone--line {
	block-size: 6rem;
}

.cart-panel__bone--summary {
	block-size: 9rem;
	border-radius: calc(var(--radius) * 1.4);
}

@keyframes cart-panel-pulse {
	to {
		opacity: 0.55;
	}
}

/* The column's own animation-name above would bring the slide back over sheet.css's reduced-motion rule. */
@media (prefers-reduced-motion: reduce) {
	.sheet.cart-panel,
	.cart-panel__bone {
		animation: none;
	}
}

/* Checkout: the cart's lines above the totals, each a small receipt row: photo, name over colour and quantity, price. */
.storecore-summary__lines {
	display: grid;
	gap: var(--space-3);
	margin: 0;
	padding: 0 0 var(--space-4);
	border-block-end: 1px dashed var(--tint-ink-18);
	list-style: none;
}

.storecore-summary__line {
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--space-3);
}

.storecore-summary__photo {
	display: block;
	inline-size: 3rem;
	aspect-ratio: 3 / 4;
	block-size: auto;
	object-fit: cover;
	border-radius: var(--radius-sm);
	background: var(--color-sand);
}

.storecore-summary__item {
	display: grid;
	gap: var(--space-1);
	min-inline-size: 0;
}

.storecore-summary__name {
	font-weight: var(--weight-semibold);
	overflow-wrap: anywhere;
}

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

.storecore-summary__qty {
	white-space: nowrap;
}

.storecore-summary__price {
	display: grid;
	justify-items: end;
	gap: var(--space-1);
	font-weight: var(--weight-semibold);
	text-align: end;
	white-space: nowrap;
}

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

.checkout-help {
	display: grid;
	gap: var(--space-2);
	padding: var(--space-5);
	border-radius: var(--radius);
	background: var(--color-surface);
	font-size: var(--step--1);
}

.checkout-help p {
	margin: 0;
}

/* Follow my order */
.follow-order {
	display: grid;
	max-inline-size: 36rem;
	margin-inline: auto;
	padding-block: var(--space-6);
}

.follow-order__date {
	margin: 0 0 var(--space-4);
	color: var(--color-ink-soft);
}

.follow-order__notice {
	margin: 0 0 var(--space-4);
	padding: var(--space-3) var(--space-4);
	background: var(--color-accent-tint);
	border-radius: var(--radius);
}

.follow-order__status {
	margin: 0 0 var(--space-4);
}

.follow-order__steps {
	display: grid;
	gap: var(--space-3);
	margin: 0 0 var(--space-5);
	padding: 0;
	list-style: none;
}

.follow-order__step {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	color: var(--color-ink-soft);
}

.follow-order__step::before {
	content: "";
	flex: none;
	inline-size: 14px;
	block-size: 14px;
	border: 2px solid var(--color-sand);
	border-radius: 50%;
}

.follow-order__step.is-done {
	color: var(--color-ink);
}

.follow-order__step.is-done::before {
	background: var(--color-accent);
	border-color: var(--color-accent);
}

.follow-order__step[aria-current="step"] {
	font-weight: var(--weight-semibold);
}

.follow-order__tracking {
	display: grid;
	gap: var(--space-2);
	margin: 0 0 var(--space-4);
	padding: var(--space-3) var(--space-4);
	border: 1px solid var(--color-line-strong);
	border-radius: var(--radius-sm);
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

.follow-order__tracking p {
	margin: 0;
}

.storecore-track {
	display: grid;
	gap: var(--space-2);
	margin: 0 0 var(--space-5);
}

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

.storecore-track__row .storecore-input {
	flex: 1 1 220px;
	min-inline-size: 0;
}

.storecore-track__message {
	margin: 0 0 var(--space-4);
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-sm);
	background: var(--color-error-tint);
}

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