/**
 * Catalog layer — product archives, the filter panel and the shop toolbar.
 *
 * Loaded only on WooCommerce templates. Everything here composes tokens from
 * tokens.css; no raw colour, spacing or type value appears below.
 */

/* ---- Archive shell ----------------------------------------------------- */

/*
 * Top padding halved.
 *
 * The archive sat `--p-space-6` below a breadcrumb that already carried its own
 * padding, under a header that already reserves its own height — three
 * separate gaps in a row before a single word of the page. The bottom keeps the
 * full section rhythm, because that is a real boundary between the grid and
 * whatever follows it.
 */
.p-shop {
	padding-block: var(--p-space-3) var(--p-section-y);
}

/*
 * The category introduction.
 *
 * Compact on purpose — the products are the page, and a hero that fills the
 * screen before the first one is a hero that delays it. This is three lines of
 * type and the air around them: a small label, the name of the range set in the
 * serif, and one sentence about it.
 */
.p-shop__head {
	margin-bottom: var(--p-space-6);
}

@media (min-width: 1024px) {
	.p-shop__head {
		margin-bottom: var(--p-space-7);
	}
}

.p-shop__eyebrow {
	margin: 0 0 var(--p-space-3);
	font-size: var(--p-text-micro);
	font-weight: 500;
	letter-spacing: var(--p-track-label);
	text-transform: uppercase;
	color: var(--p-green-500);
}

/*
 * The serif, which the rest of the site uses for the things it wants read
 * rather than scanned. The archive title was set in the sans at the same weight
 * as a filter label, so the page opened with no voice at all.
 */
.p-shop__title {
	font-family: var(--p-font-serif);
	font-size: var(--p-text-h1);
	font-weight: 400;
	line-height: var(--p-leading-tight);
	letter-spacing: -0.01em;
	color: var(--p-green-900);
	margin-bottom: var(--p-space-4);
	text-wrap: balance;
}

/*
 * The lede runs the full width of the page, and deliberately not to the
 * theme's reading measure.
 *
 * `--p-measure` exists for prose — paragraph after paragraph, where a short
 * line is what stops the eye losing its place returning to the left margin.
 * This is one sentence under a title. Held at 52ch it broke every category
 * description onto two or three short lines with most of the row left empty,
 * which read as a column that had failed to fill rather than as a considered
 * measure.
 *
 * At the container's own width every description in the catalogue lands on one
 * line, or two for the longest, which is what an editorial standfirst does.
 * The container caps it at 1280px, so the line never grows past about 1200px
 * however wide the screen gets.
 */
.p-shop__intro {
	margin: 0;
	color: var(--p-text-muted);
	font-size: var(--p-text-body);
	line-height: var(--p-leading-body);
	max-width: none;
	/* Keeps a lone word off the last line without shortening the others the way
	   `balance` would — the point here is to fill the row, not to even it up. */
	text-wrap: pretty;
}

/* The title keeps a measure of its own. It is set large in the serif, and a
   long category name running the whole width would out-shout the grid. */
.p-shop__title {
	max-width: 20ch;
}

/* ---- Ranges ------------------------------------------------------------ */

/*
 * The editorial filter row.
 *
 * Deliberately not pills. A row of filled capsules is the shape of a dashboard
 * control, and it competes with the product cards for the only strong colour on
 * the page. This is a line of type with a rule under the active one — the same
 * gesture a contents page uses.
 *
 * It scrolls rather than wraps on small screens, and the scrollbar is hidden,
 * so the row stays one line at any width without ever clipping a range out of
 * reach.
 */
.p-shop__ranges {
	margin-bottom: var(--p-space-6);
	border-bottom: 1px solid var(--p-line-soft);
}

@media (min-width: 1024px) {
	.p-shop__ranges {
		margin-bottom: var(--p-space-7);
	}
}

.p-ranges {
	display: flex;
	align-items: baseline;
	gap: var(--p-space-5);
	margin: 0;
	padding: 0 0 var(--p-space-4);
	list-style: none;
	overflow: auto hidden;
	overscroll-behavior-inline: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.p-ranges::-webkit-scrollbar {
	display: none;
}

.p-ranges__item {
	flex: none;
}

.p-ranges__link {
	position: relative;
	display: inline-flex;
	align-items: baseline;
	gap: var(--p-space-2);
	padding-bottom: var(--p-space-2);
	font-size: var(--p-text-small);
	font-weight: 500;
	color: var(--p-text-muted);
	white-space: nowrap;
	transition: color var(--p-dur-ui) var(--p-ease);
}

/*
 * The indicator sits on the row's own rule, which is why the list carries the
 * border and the link draws over it. Scaling a transform rather than animating
 * width keeps it off the layout.
 */
.p-ranges__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(var(--p-space-4) * -1 - 1px);
	height: 1px;
	background: var(--p-green-900);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--p-dur-ui) var(--p-ease);
}

.p-ranges__link:hover {
	color: var(--p-green-900);
}

.p-ranges__link.is-current {
	color: var(--p-green-900);
	font-weight: 600;
}

.p-ranges__link.is-current::after,
.p-ranges__link:hover::after {
	transform: scaleX(1);
}

.p-ranges__link:hover::after {
	background: var(--p-line);
}

.p-ranges__link.is-current:hover::after {
	background: var(--p-green-900);
}

.p-ranges__link:focus-visible {
	outline: 2px solid var(--p-green-700);
	outline-offset: 3px;
	border-radius: var(--p-radius-sm);
}

/* The count is metadata, not a badge — it sits beside the name at a smaller
   size rather than inside a coloured capsule. */
.p-ranges__count {
	font-size: var(--p-text-micro);
	font-weight: 400;
	color: var(--p-gray-400);
	font-variant-numeric: tabular-nums;
}

/* A sub-range is one step in, and reads as a footnote to the range above it. */
.p-ranges__item--child .p-ranges__link {
	font-size: var(--p-text-micro);
	color: var(--p-gray-400);
}

.p-ranges__item--child .p-ranges__link::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 1px;
	margin-right: var(--p-space-2);
	background: var(--p-gray-300);
	vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
	.p-ranges__link,
	.p-ranges__link::after {
		transition: none;
	}
}

.p-shop__layout {
	display: grid;
	gap: var(--p-space-6);
}

@media (min-width: 1024px) {
	.p-shop__layout {
		grid-template-columns: 260px minmax(0, 1fr);
		gap: var(--p-space-8);
		align-items: start;
	}
}

/*
 * A sub-range, indented under the range it belongs to. The whole tree is listed
 * now rather than one level at a time, so the indent is what keeps "Seed
 * Combos" reading as part of Seeds instead of as a fifth top-level range.
 */
.p-filters__cat.is-child {
	padding-left: var(--p-space-4);
	font-size: var(--p-text-small);
	color: var(--p-text-muted);
}

.p-filters__cat.is-child.is-current {
	color: var(--p-green-800);
}

/* The filter column is a sheet on small screens and a sticky rail above it. */
.p-shop__aside {
	display: none;
}

@media (min-width: 1024px) {
	.p-shop__aside {
		display: block;
		position: sticky;
		top: calc(var(--p-header-h) + var(--p-space-5));
		max-height: calc(100vh - var(--p-header-h) - var(--p-space-8));
		overflow-y: auto;
		overscroll-behavior: contain;
		padding-right: var(--p-space-2);
	}

	/* A quiet scrollbar — the rail should not look like a frame. */
	.p-shop__aside::-webkit-scrollbar {
		width: 4px;
	}

	.p-shop__aside::-webkit-scrollbar-thumb {
		background: var(--p-line);
		border-radius: var(--p-radius-pill);
	}
}

.p-shop__main {
	min-width: 0;
}

.p-shop__main.is-loading {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity var(--p-dur-ui) var(--p-ease);
}

/* ---- Toolbar ----------------------------------------------------------- */

.p-shop__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--p-space-4);
	padding-bottom: var(--p-space-5);
	margin-bottom: var(--p-space-6);
	border-bottom: 1px solid var(--p-line-soft);
}

.p-shop__filterbtn {
	display: inline-flex;
	align-items: center;
	gap: var(--p-space-2);
	flex-shrink: 0;
}

@media (min-width: 1024px) {
	.p-shop__filterbtn {
		display: none;
	}
}

.p-shop__filtercount {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding-inline: 6px;
	border-radius: var(--p-radius-pill);
	background: var(--p-green-900);
	color: var(--p-ivory-100);
	font-size: var(--p-text-micro);
	font-weight: 600;
}

.p-shop__count {
	font-size: var(--p-text-small);
	color: var(--p-text-muted);
	margin: 0;
	flex: 1;
}

@media (min-width: 1024px) {
	.p-shop__count {
		flex: 0 1 auto;
		margin-right: auto;
	}
}

.p-shop__sort {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--p-space-2);
	flex-shrink: 0;
}

.p-select {
	appearance: none;
	font: inherit;
	font-size: var(--p-text-small);
	font-weight: 500;
	color: var(--p-text);
	background: transparent;
	border: 1px solid var(--p-line);
	border-radius: var(--p-radius-pill);
	padding: 0.55rem 2.25rem 0.55rem 1rem;
	cursor: pointer;
	transition: border-color var(--p-dur-micro) var(--p-ease);
}

.p-select:hover {
	border-color: var(--p-green-500);
}

.p-select:focus-visible {
	outline: 2px solid var(--p-green-700);
	outline-offset: 2px;
}

.p-shop__sorticon {
	position: absolute;
	right: 0.9rem;
	pointer-events: none;
	width: 16px;
	height: 16px;
	color: var(--p-text-muted);
}

/* ---- Product grid ------------------------------------------------------ */

.p-grid--products {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--p-space-4);
}

@media (min-width: 768px) {
	.p-grid--products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--p-space-5);
	}
}

/*
 * Three across at every desktop width, not four.
 *
 * A fourth column at 1280px gave each card about 280px, and with the gallery
 * and cards now square that is a small picture of a plant with its name
 * underneath. Three columns buy roughly 100px per card, which is the
 * difference between a thumbnail and a photograph.
 */
@media (min-width: 1280px) {
	.p-grid--products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--p-space-6);
	}
}

/*
 * The listing grid, which is a different problem from the rails.
 *
 * Columns on the listing page are constrained by two things the rails do not
 * have: a 260px filter rail beside them, and the 1280px container they share
 * with the header. Inside that, four columns work out at 195px a card — a
 * smaller picture than the page shows today, which is the opposite of what the
 * grid is for. Three columns give 270-305px, and at 4:5 that is a 340-380px
 * photograph. The column count is held to what keeps the image large.
 *
 * Gaps run tighter than the rails' because the cards have no frame any more:
 * with no border or panel between them, the whitespace itself is the
 * separation, and it needs less of it to read.
 */
.p-shop .p-grid--products {
	gap: var(--p-space-4) var(--p-space-3);
}

@media (min-width: 640px) {
	.p-shop .p-grid--products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--p-space-6) var(--p-space-5);
	}
}

@media (min-width: 900px) {
	.p-shop .p-grid--products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.p-shop .p-grid--products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--p-space-7) var(--p-space-6);
	}
}

.p-card.is-soldout .p-card__media {
	opacity: 0.6;
}

/* ======================================================================
   The listing card
   ======================================================================
   Scoped to `.p-card--editorial`, which only the product listing sets —
   see woocommerce/content-product.php. The same component renders the
   home rails, related products, the account dashboard and the
   empty-basket picks with none of this applied.
   ====================================================================== */

/*
 * No frame.
 *
 * The card was a white panel with a border and a corner radius sitting on
 * ivory — the shape every marketplace uses, and the reason the page read as
 * one. An editorial grid has no boxes in it: the photograph is the object, the
 * words sit under it on the page itself, and the space between cards does the
 * separating. Removing the panel is also what lets the picture grow, because
 * the padding and border were costing about 34px of every card's width.
 */
.p-card--editorial {
	background: none;
	border: 0;
	border-radius: 0;
	overflow: visible;
	box-shadow: none;
}

.p-card--editorial:hover {
	box-shadow: none;
	border-color: transparent;
}

/*
 * Square, like every other card on the site.
 *
 * This tile was 4:5 while the rails, the drawer and the product gallery were
 * 1:1, which is why the same plant changed shape between the home page and the
 * listing. `pauda-card` is generated at 800x800 and the fallback illustration
 * is drawn square, so the tile, the packshot and the drawing all agree and
 * nothing has to be letterboxed to fit the grid.
 *
 * Only the shape and the frame are set here. How a photograph sits inside the
 * tile — cover, contain, the measured zoom, the ground colour — is shared with
 * every other card in components.css, because the listing having its own copy
 * of those rules is exactly how the two drifted apart.
 */
.p-card--editorial .p-card__media {
	aspect-ratio: 1 / 1;
	border-radius: var(--p-radius-lg);
	overflow: hidden;
	/*
	 * The photograph's own background colour, measured from the file and passed
	 * in from PHP. When the tile and the picture are the same colour the edge of
	 * the picture is invisible and the plant stands on the page. Full-bleed
	 * photographs set no variable and fall back to ivory, which they cover
	 * completely anyway.
	 */
	background: var(--p-card-ground, var(--p-ivory-100));
	transition:
		transform var(--p-dur-panel) var(--p-ease),
		box-shadow var(--p-dur-panel) var(--p-ease);
}

/* The illustration fallback stands in for 25 of the 70 products, and on Tools
   it is every card on the page. It gets the same tile, not a lesser one. */
.p-card--editorial .p-card__media .p-art {
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	border-radius: 0;
}

/*
 * The contact shadow under the pot only makes sense on a packshot, where there
 * is a flat ground for a plant to stand on. On a full-bleed photograph it is a
 * dark smudge across the bottom of someone's picture, so it is opted into by
 * the same PHP that found the ground colour rather than applied to everything.
 */
.p-card--editorial .p-card__media::before {
	opacity: calc(0.8 * var(--p-card-shadow, 0));
}

.p-card--editorial:hover .p-card__media::before {
	opacity: calc(0.55 * var(--p-card-shadow, 0));
}

/* The lift is on the tile, the scale is on the picture inside it. Both are
   transforms, so neither costs a layout. */
@media (hover: hover) {
	.p-card--editorial:hover .p-card__media,
	.p-card--editorial:focus-within .p-card__media {
		transform: translateY(-4px);
		box-shadow: var(--p-shadow-card);
	}
}

/* ---- Words under the picture ------------------------------------------- */

.p-card--editorial .p-card__body {
	padding: var(--p-space-4) var(--p-space-1) 0;
	gap: 0;
}

/*
 * The range, set small and wide. It answers "what kind of thing is this" before
 * the name has to, which is what lets the name be just the name.
 */
.p-card__kicker {
	margin: 0 0 var(--p-space-2);
	font-size: var(--p-text-micro);
	font-weight: 500;
	letter-spacing: var(--p-track-label);
	text-transform: uppercase;
	color: var(--p-text-muted);
}

.p-card--editorial .p-card__title {
	font-size: var(--p-text-body);
	font-weight: 500;
	line-height: var(--p-leading-snug);
	color: var(--p-green-900);
}

.p-card--editorial .p-card__sub {
	margin-top: var(--p-space-2);
	font-size: var(--p-text-small);
	line-height: var(--p-leading-body);
	color: var(--p-text-muted);
	/* One line of description. Two products with different length blurbs must
	   still produce two cards the same height. */
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.p-card--editorial .p-rating {
	margin-top: var(--p-space-2);
}

.p-card--editorial .p-card__foot {
	padding-top: var(--p-space-3);
	gap: var(--p-space-3);
	flex-wrap: nowrap;
}

.p-card--editorial .p-price__now {
	font-size: var(--p-text-body);
	font-weight: 600;
	color: var(--p-green-900);
}

.p-card--editorial .p-price__was {
	font-size: var(--p-text-small);
	color: var(--p-text-muted);
}

/* The saving reads in the two numbers already. A percentage badge beside them
   is a third way of saying it, and the loudest of the three. */
.p-card--editorial .p-price__off {
	display: none;
}

/* ---- Add ---------------------------------------------------------------- */

/*
 * Quiet until wanted. On a pointer device the button fades in with the rest of
 * the hover; everywhere else — touch, and any keyboard reaching it — it is
 * simply always there. It is never `visibility: hidden`, so it is always in the
 * tab order and always announced.
 */
.p-card--editorial .p-card__add {
	padding: 7px 14px;
	border-color: var(--p-line);
	color: var(--p-green-900);
	white-space: nowrap;
}

.p-card--editorial .p-card__add:hover {
	background: var(--p-green-900);
	border-color: var(--p-green-900);
	color: var(--p-ivory-100);
}

@media (hover: hover) and (min-width: 900px) {
	.p-card--editorial .p-card__add {
		opacity: 0;
		transform: translateY(4px);
		transition:
			opacity var(--p-dur-ui) var(--p-ease),
			transform var(--p-dur-ui) var(--p-ease),
			background var(--p-dur-ui) var(--p-ease),
			color var(--p-dur-ui) var(--p-ease);
	}

	.p-card--editorial:hover .p-card__add,
	.p-card--editorial:focus-within .p-card__add,
	.p-card--editorial .p-card__add:focus-visible {
		opacity: 1;
		transform: none;
	}
}

/* ---- Wishlist ----------------------------------------------------------- */

/*
 * The floating white pill is gone. It was an opaque disc dropped on top of the
 * photograph at full strength whether or not anyone was looking at that card,
 * and on a grid of twelve it read as twelve interface elements over the
 * pictures.
 *
 * This one is the same button doing the same job — same markup, same
 * `data-wishlist` hook, same `aria-pressed` — sitting in the picture's own
 * light: a soft tint of the tile's ground rather than white, and quiet until
 * the card is under the pointer. Anything already saved stays fully visible,
 * because that is state, not decoration.
 */
.p-card--editorial .p-card__save {
	top: var(--p-space-3);
	right: var(--p-space-3);
	width: 34px;
	height: 34px;
	background: var(--p-card-ground, var(--p-ivory-100));
	color: var(--p-green-900);
	border: 1px solid var(--p-line-soft);
	backdrop-filter: blur(10px);
	opacity: 0.82;
	transition:
		opacity var(--p-dur-ui) var(--p-ease),
		transform var(--p-dur-ui) var(--p-ease),
		color var(--p-dur-ui) var(--p-ease),
		box-shadow var(--p-dur-ui) var(--p-ease);
}

.p-card--editorial .p-card__save svg {
	width: 16px;
	height: 16px;
	stroke-width: 1.5;
}

@media (hover: hover) and (min-width: 900px) {
	.p-card--editorial .p-card__save {
		opacity: 0;
		transform: scale(0.9);
	}

	.p-card--editorial:hover .p-card__save,
	.p-card--editorial:focus-within .p-card__save {
		opacity: 1;
		transform: none;
	}
}

.p-card--editorial .p-card__save:hover {
	opacity: 1;
	transform: scale(1.08);
	box-shadow: var(--p-shadow-card);
}

.p-card--editorial .p-card__save:focus-visible {
	opacity: 1;
	transform: none;
	outline: 2px solid var(--p-green-700);
	outline-offset: 2px;
}

/* Saved is state. It does not fade out with the rest of the hover furniture. */
.p-card--editorial .p-card__save[aria-pressed="true"] {
	opacity: 1;
	transform: none;
	color: var(--p-heart);
}

.p-card--editorial .p-card__badge {
	top: var(--p-space-3);
	left: var(--p-space-3);
}

@media (prefers-reduced-motion: reduce) {
	.p-card--editorial .p-card__media,
	.p-card--editorial .p-card__save,
	.p-card--editorial .p-card__add {
		transition: none;
	}

	.p-card--editorial:hover .p-card__media,
	.p-card--editorial:focus-within .p-card__media {
		transform: none;
	}
}

/* ---- Filter panel ------------------------------------------------------ */

.p-filters__group + .p-filters__group {
	margin-top: var(--p-space-6);
	padding-top: var(--p-space-6);
	border-top: 1px solid var(--p-line-soft);
}

.p-filters__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--p-space-3);
}

.p-filters__title {
	font-family: var(--p-font-sans);
	font-size: var(--p-text-micro);
	font-weight: 600;
	letter-spacing: var(--p-track-label);
	text-transform: uppercase;
	color: var(--p-text-muted);
	margin-bottom: var(--p-space-4);
}

.p-filters__head .p-filters__title {
	margin-bottom: var(--p-space-3);
}

.p-filters__clear {
	font-size: var(--p-text-small);
	color: var(--p-green-700);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.p-filters__clear:hover {
	color: var(--p-green-900);
}

.p-filters__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 2px;
}

/* Options are anchors styled as checkboxes: real URLs, checkbox affordance. */
.p-filters__opt {
	display: flex;
	align-items: center;
	gap: var(--p-space-3);
	padding: 0.4rem 0.5rem;
	margin-inline: -0.5rem;
	border-radius: var(--p-radius-md);
	font-size: var(--p-text-small);
	color: var(--p-text);
	transition: background var(--p-dur-micro) var(--p-ease);
}

.p-filters__opt:hover {
	background: var(--p-ivory-200);
}

.p-filters__box {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border: 1px solid var(--p-gray-300);
	border-radius: var(--p-radius-sm);
	background: var(--p-white);
	transition: background var(--p-dur-micro) var(--p-ease),
		border-color var(--p-dur-micro) var(--p-ease);
}

.p-filters__box svg {
	width: 12px;
	height: 12px;
	color: var(--p-white);
	opacity: 0;
	transform: scale(0.6);
	transition: opacity var(--p-dur-micro) var(--p-ease),
		transform var(--p-dur-micro) var(--p-ease);
}

.p-filters__opt.is-on .p-filters__box {
	background: var(--p-green-900);
	border-color: var(--p-green-900);
}

.p-filters__opt.is-on .p-filters__box svg {
	opacity: 1;
	transform: scale(1);
}

.p-filters__opt.is-on .p-filters__label {
	font-weight: 500;
}

.p-filters__label {
	flex: 1;
}

.p-filters__count {
	font-size: var(--p-text-micro);
	color: var(--p-gray-400);
	font-variant-numeric: tabular-nums;
}

.p-filters__cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--p-space-3);
	padding: 0.4rem 0.5rem;
	margin-inline: -0.5rem;
	border-radius: var(--p-radius-md);
	font-size: var(--p-text-small);
	color: var(--p-text);
	transition: background var(--p-dur-micro) var(--p-ease);
}

.p-filters__cat:hover {
	background: var(--p-ivory-200);
}

.p-filters__cat.is-current {
	font-weight: 600;
	color: var(--p-green-900);
}

.p-filters__note {
	display: flex;
	align-items: flex-start;
	gap: var(--p-space-3);
	margin-top: var(--p-space-6);
	padding-top: var(--p-space-6);
	border-top: 1px solid var(--p-line-soft);
	font-size: var(--p-text-micro);
	line-height: 1.6;
	color: var(--p-text-muted);
}

.p-filters__note svg {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	color: var(--p-green-500);
	margin-top: 1px;
}

/* ---- Chips ------------------------------------------------------------- */

.p-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--p-space-2);
}

.p-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.7rem;
	border-radius: var(--p-radius-pill);
	background: var(--p-green-100);
	color: var(--p-green-900);
	font-size: var(--p-text-micro);
	font-weight: 500;
	transition: background var(--p-dur-micro) var(--p-ease);
}

.p-chip--removable:hover {
	background: var(--p-green-900);
	color: var(--p-ivory-100);
}

.p-chip svg {
	width: 12px;
	height: 12px;
	stroke-width: 2;
}

/* ---- Empty state ------------------------------------------------------- */

.p-empty {
	text-align: center;
	padding-block: var(--p-space-8);
	max-width: 44ch;
	margin-inline: auto;
}

.p-empty__art {
	display: block;
	width: 140px;
	margin-inline: auto;
	margin-bottom: var(--p-space-5);
}

.p-empty__art .p-art {
	border-radius: var(--p-radius-lg);
}

.p-empty__title {
	font-size: var(--p-text-h3);
	margin-bottom: var(--p-space-3);
}

.p-empty__text {
	color: var(--p-text-muted);
	line-height: var(--p-leading-body);
	margin-bottom: var(--p-space-5);
}

.p-empty__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--p-space-3);
	justify-content: center;
}

/* ---- Bottom sheet (mobile filters) ------------------------------------- */

.p-sheet--bottom .p-drawer--bottom {
	position: absolute;
	inset: auto 0 0 0;
	width: 100%;
	max-width: none;
	max-height: 88vh;
	border-radius: var(--p-radius-lg) var(--p-radius-lg) 0 0;
	transform: translateY(100%);
	transition: transform var(--p-dur-panel) var(--p-ease);
	display: flex;
	flex-direction: column;
}

.p-sheet--bottom.is-open .p-drawer--bottom {
	transform: translateY(0);
}

@media (min-width: 1024px) {
	.p-sheet--bottom {
		display: none;
	}
}

/* ======================================================================
   Product page
   ====================================================================== */

/* Same reasoning as .p-shop — the breadcrumb above it already carries padding,
   and the header above that already reserves its height. */
.p-pdp {
	padding-top: var(--p-space-3);
}

.p-pdp__top {
	display: grid;
	gap: var(--p-space-6);
	padding-bottom: var(--p-section-y-compact);
}

@media (min-width: 1024px) {
	.p-pdp__top {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: var(--p-space-8);
		align-items: start;
	}
}

/* ---- Gallery ----------------------------------------------------------- */

.p-gal {
	position: relative;
}

@media (min-width: 1024px) {
	.p-gal {
		position: sticky;
		top: calc(var(--p-header-h) + var(--p-space-5));
	}
}

.p-gal__badge {
	position: absolute;
	top: var(--p-space-4);
	left: var(--p-space-4);
	z-index: 2;
}

/*
 * Mobile: a native scroll-snap track, so swiping uses the platform's own
 * momentum. Desktop: the same markup stacks, because a tall plant deserves
 * the whole column rather than a slot in a carousel.
 */
.p-gal__stage {
	display: flex;
	gap: var(--p-space-3);
	overflow: auto hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-inline: contain;
	scrollbar-width: none;
	border-radius: var(--p-radius-lg);
}

.p-gal__stage::-webkit-scrollbar {
	display: none;
}

.p-gal__slide {
	flex: 0 0 100%;
	scroll-snap-align: center;
	margin: 0;
	border-radius: var(--p-radius-lg);
	overflow: hidden;
	background: var(--p-ivory-200);
}

/*
 * The frame takes the photograph's shape.
 *
 * It used to be a fixed square with `object-fit: contain`, which meant a
 * portrait shot sat in the middle of it with a broad ivory bar down each side —
 * the frame was a shape the picture never was. The catalogue's photographs are
 * a mix of portrait, landscape and square, and forcing one ratio onto all of
 * them cannot be right for more than a third of the range.
 *
 * So the slide shrinks to whatever it holds. `max-height` still keeps the
 * picture and the buy box on screen together, and `max-width` stops a wide
 * landscape shot from overflowing the column; between them the frame is always
 * the image's own aspect, never an imposed one.
 *
 * A grid card is different and stays square — see `.p-card__media`. A grid of
 * mixed aspect ratios is a ragged grid, and there the uniformity is the point.
 */
/*
 * The frame is on the image, not on the slide.
 *
 * The slide has to stay the full width of the column — it is a scroll-snap
 * target on mobile and a stacked layer on desktop — so an ivory background on
 * *it* is a full-width box whatever shape the picture inside is, which is the
 * bar down each side of a portrait shot. Moving the ground onto the `<img>`
 * makes the ivory exactly the picture's own box plus its padding, so the frame
 * is the photograph's shape by construction and cannot drift from it.
 */
.p-gal__slide {
	display: grid;
	place-items: center;
	background: transparent;
	overflow: visible;
}

.p-gal__img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	max-height: min(72svh, 720px);
	/* One frame shape across the whole site — the gallery matches the card's
	   1:1 rather than taking each photograph's own aspect, which is what made a
	   product page look different from the tile it was clicked from. */
	object-fit: cover;
	background: var(--p-gal-ground, var(--p-ivory-200));
	border-radius: var(--p-radius-lg);
	box-sizing: border-box;
}

/*
 * Crop-fatal, shown whole — the same per-image measurement the cards use, for
 * the same reason. The frame stays square either way, so the product page and
 * the tile it was clicked from are still the same shape; only what happens
 * inside the frame differs, and it differs per photograph rather than per page.
 *
 * Hard-coding `cover` here is what cropped the headline off the founder's
 * designed combo cards on the one page where the offer has to be readable.
 * The band above and below a wide photograph is the picture's own background
 * colour, measured from the file, so there is no visible letterbox.
 */
.p-gal__slide[data-fit="contain"] .p-gal__img {
	object-fit: contain;
}

/*
 * The botanical drawing is a vector with no intrinsic size to shrink to, so it
 * keeps a declared ratio — the same square as the photographs it stands in for,
 * so a product without a photo is not a different shape from one with.
 */
.p-gal__slide--art {
	aspect-ratio: 1 / 1;
	max-height: min(62svh, 620px);
}

.p-gal__slide--art .p-art {
	width: 100%;
	height: 100%;
	border-radius: var(--p-radius-md);
}

/* ---- Enhanced stage: stacked, cross-faded, zoomable --------------------- */

/*
 * `is-enhanced` is added by product.js. Everything below is scoped to it, so a
 * visitor without JavaScript keeps the native scroll-snap track and can reach
 * every photograph by swiping — none of this hides a slide behind a class that
 * would never arrive.
 */
@media (min-width: 1024px) {
	.p-gal.is-enhanced .p-gal__stage {
		display: grid;
		overflow: visible;
		cursor: zoom-in;
	}

	.p-gal.is-enhanced .p-gal__slide {
		grid-area: 1 / 1;
		opacity: 0;
		visibility: hidden;
		transition:
			opacity 420ms var(--p-ease),
			visibility 0s linear 420ms;
	}

	.p-gal.is-enhanced .p-gal__slide.is-current {
		opacity: 1;
		visibility: visible;
		transition-delay: 0s, 0s;
	}

	/*
	 * The zoom. Origin follows the cursor, set by product.js as a pair of
	 * percentages; the scale and the easing stay here so the stylesheet keeps
	 * control of how far it goes.
	 */
	.p-gal.is-enhanced .p-gal__img {
		transform-origin: var(--p-zoom-x, 50%) var(--p-zoom-y, 50%);
		transition: transform 480ms var(--p-ease);
		will-change: transform;
	}

	.p-gal.is-enhanced.is-zooming .p-gal__slide.is-current .p-gal__img {
		transform: scale(1.55);
	}
}

.p-gal__zoom {
	position: absolute;
	right: var(--p-space-3);
	bottom: var(--p-space-3);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: var(--p-radius-pill);
	background: color-mix(in srgb, var(--p-surface) 76%, transparent);
	backdrop-filter: blur(10px) saturate(1.3);
	-webkit-backdrop-filter: blur(10px) saturate(1.3);
	color: var(--p-green-900);
	box-shadow: 0 2px 14px rgba(30, 58, 46, 0.14);
	cursor: pointer;
	opacity: 0;
	transform: translateY(4px);
	transition:
		opacity var(--p-dur-ui) var(--p-ease),
		transform var(--p-dur-ui) var(--p-ease);
}

.p-gal__zoom svg {
	width: 18px;
	height: 18px;
}

.p-gal:hover .p-gal__zoom,
.p-gal__zoom:focus-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ---- Lightbox ----------------------------------------------------------- */

.p-lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100svh;
	max-height: 100svh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(16, 30, 22, 0.94);
	overscroll-behavior: contain;
}

.p-lightbox::backdrop {
	background: rgba(16, 30, 22, 0.82);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.p-lightbox__inner {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: clamp(var(--p-space-5), 5vh, var(--p-space-8));
}

.p-lightbox__stage {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
}

.p-lightbox__slide {
	grid-area: 1 / 1;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 320ms var(--p-ease),
		visibility 0s linear 320ms;
}

.p-lightbox__slide.is-current {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s, 0s;
}

.p-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: 82svh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: var(--p-radius-md);
}

.p-lightbox__close,
.p-lightbox__nav {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: var(--p-radius-pill);
	background: rgba(248, 246, 241, 0.14);
	color: var(--p-ivory-100);
	cursor: pointer;
	transition:
		background var(--p-dur-ui) var(--p-ease),
		transform var(--p-dur-ui) var(--p-ease);
}

.p-lightbox__close svg,
.p-lightbox__nav svg {
	width: 20px;
	height: 20px;
}

.p-lightbox__close:hover,
.p-lightbox__nav:hover,
.p-lightbox__close:focus-visible,
.p-lightbox__nav:focus-visible {
	background: rgba(248, 246, 241, 0.26);
	transform: scale(1.06);
}

.p-lightbox__close {
	top: var(--p-space-5);
	right: var(--p-space-5);
}

.p-lightbox__nav--prev {
	left: var(--p-space-5);
}

.p-lightbox__nav--prev svg {
	transform: rotate(180deg);
}

.p-lightbox__nav--next {
	right: var(--p-space-5);
}

.p-lightbox__count {
	position: absolute;
	bottom: var(--p-space-5);
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	color: rgba(248, 246, 241, 0.7);
	font-size: var(--p-text-small);
	letter-spacing: 0.08em;
}

@media (max-width: 640px) {
	.p-lightbox__nav {
		top: auto;
		bottom: var(--p-space-5);
	}

	.p-lightbox__count {
		bottom: calc(var(--p-space-5) + 58px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.p-gal.is-enhanced .p-gal__slide,
	.p-gal.is-enhanced .p-gal__img,
	.p-lightbox__slide,
	.p-gal__zoom {
		transition-duration: 1ms;
	}

	.p-gal.is-enhanced.is-zooming .p-gal__slide.is-current .p-gal__img {
		transform: none;
	}
}

.p-gal__thumbs {
	display: flex;
	gap: var(--p-space-3);
	margin-top: var(--p-space-3);
	overflow: auto hidden;
	overscroll-behavior-inline: contain;
	scrollbar-width: none;
}

.p-gal__thumbs::-webkit-scrollbar {
	display: none;
}

.p-gal__thumb {
	flex: 0 0 72px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--p-radius-md);
	overflow: hidden;
	background: var(--p-ivory-200);
	cursor: pointer;
	opacity: 0.65;
	transition: opacity var(--p-dur-micro) var(--p-ease),
		border-color var(--p-dur-micro) var(--p-ease);
}

.p-gal__thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.p-gal__thumb[data-fit="contain"] img {
	object-fit: contain;
}

.p-gal__thumb:hover,
.p-gal__thumb.is-current {
	opacity: 1;
	border-color: var(--p-green-700);
}

.p-gal__note {
	display: flex;
	align-items: flex-start;
	gap: var(--p-space-3);
	margin-top: var(--p-space-4);
	font-size: var(--p-text-micro);
	line-height: 1.6;
	color: var(--p-text-muted);
}

.p-gal__note svg {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	color: var(--p-gold-600);
}

/* ---- Buy box ----------------------------------------------------------- */

@media (min-width: 1024px) {
	.p-buy {
		position: sticky;
		top: calc(var(--p-header-h) + var(--p-space-5));
	}
}

/* ======================================================================
   Detail tabs
   ====================================================================== */

.p-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--p-space-5);
	border-bottom: 1px solid var(--p-line-soft);
	margin-bottom: var(--p-space-5);
}

.p-tabs__tab {
	position: relative;
	padding-block: var(--p-space-3);
	color: var(--p-text-muted);
	font-size: var(--p-text-small);
	font-weight: 500;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: color var(--p-dur-ui) var(--p-ease);
}

/* The underline is a pseudo-element scaled on X: a composite, never a layout,
   and it cannot shift the row of tabs as it moves. */
.p-tabs__tab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--p-green-700);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--p-dur-ui) var(--p-ease);
}

.p-tabs__tab:hover,
.p-tabs__tab.is-current {
	color: var(--p-green-900);
}

.p-tabs__tab.is-current::after {
	transform: scaleX(1);
}

.p-tabs__tab:focus-visible {
	outline: 2px solid var(--p-green-700);
	outline-offset: 3px;
}

/*
 * Panels are visible until `is-tabbed` says otherwise. That class is added by
 * product.js, so with the script blocked every panel stays on the page as a
 * plain stack rather than being hidden by a control that cannot reveal it.
 */
.p-tabs__panel + .p-tabs__panel {
	margin-top: var(--p-space-6);
}

.p-tabs.is-tabbed .p-tabs__panel {
	display: none;
	margin-top: 0;
}

.p-tabs.is-tabbed .p-tabs__panel.is-current {
	display: block;
}

.p-tabs__specs {
	display: grid;
	gap: 0;
	margin: 0;
	max-width: 56rem;
}

.p-tabs__spec {
	display: grid;
	gap: var(--p-space-2);
	padding-block: var(--p-space-3);
	border-top: 1px solid var(--p-line-soft);
}

@media (min-width: 640px) {
	.p-tabs__spec {
		grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
		gap: var(--p-space-5);
		align-items: baseline;
	}
}

.p-tabs__spec dt {
	color: var(--p-text-muted);
	font-size: var(--p-text-small);
}

.p-tabs__spec dd {
	margin: 0;
	font-size: var(--p-text-small);
	line-height: 1.6;
	text-wrap: pretty;
}

.p-tabs__note {
	margin-top: var(--p-space-4);
	color: var(--p-text-muted);
	font-size: var(--p-text-micro);
	max-width: 60ch;
}

@media (prefers-reduced-motion: reduce) {
	.p-tabs__tab,
	.p-tabs__tab::after {
		transition-duration: 1ms;
	}
}

/* ---- Buy it now + save ------------------------------------------------- */

.p-buy__secondrow {
	display: flex;
	align-items: stretch;
	gap: var(--p-space-3);
	margin-top: var(--p-space-3);
}

.p-buy__secondrow .p-btn--block {
	flex: 1;
	margin-top: 0;
}

.p-buy__save {
	position: relative;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 52px;
	border: 1px solid var(--p-line);
	border-radius: var(--p-radius-pill);
	background: var(--p-surface);
	color: var(--p-green-900);
	cursor: pointer;
	transition:
		color var(--p-dur-ui) var(--p-ease),
		border-color var(--p-dur-ui) var(--p-ease),
		transform var(--p-dur-ui) var(--p-ease);
}

.p-buy__save svg {
	width: 20px;
	height: 20px;
}

.p-buy__save:hover {
	transform: translateY(-1px);
	border-color: var(--p-heart);
	color: var(--p-heart);
}

.p-buy__save[aria-pressed="true"] {
	color: var(--p-heart);
	border-color: var(--p-heart);
}

.p-buy__save[aria-pressed="true"] svg {
	fill: currentColor;
}

.p-buy__save:focus-visible {
	outline: 2px solid var(--p-heart);
	outline-offset: 2px;
}

/* The tooltip. A pseudo-element would be simpler but could not be hidden from
   assistive tech independently of the label, which already says the same thing. */
.p-buy__savetip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	padding: 0.4em 0.7em;
	border-radius: var(--p-radius-sm);
	background: var(--p-green-900);
	color: var(--p-ivory-100);
	font-size: var(--p-text-micro);
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition:
		opacity var(--p-dur-ui) var(--p-ease),
		transform var(--p-dur-ui) var(--p-ease);
}

.p-buy__save:hover .p-buy__savetip,
.p-buy__save:focus-visible .p-buy__savetip {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/*
 * A hover tooltip on a device with no hover can never be seen — but it was
 * still being laid out: `white-space: nowrap`, centred on a button close to the
 * right edge, it ran six pixels past the viewport and gave the whole product
 * page a horizontal scroll on a phone. Nothing visible was moving; the page
 * just would not sit still.
 */
@media (hover: none) {
	.p-buy__savetip {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.p-buy__save,
	.p-buy__savetip {
		transition-duration: 1ms;
	}

	.p-buy__save:hover {
		transform: none;
	}
}

/*
 * Smaller than the site's h1, deliberately, and only here.
 *
 * `--p-text-h1` tops out at 3.5rem, which is right for a section that owns a
 * whole screen and too loud for a product name sitting a few pixels above its
 * own price. The token is left alone — editorial headings elsewhere still want
 * that size — and the product page states its own scale.
 */
.p-buy__title {
	font-size: clamp(1.85rem, 1.15rem + 1.9vw, 2.6rem);
	line-height: var(--p-leading-tight);
	margin-bottom: var(--p-space-3);
}

.p-buy__lede {
	color: var(--p-text-muted);
	line-height: var(--p-leading-body);
	margin-bottom: var(--p-space-4);
}

.p-buy__rating {
	display: inline-flex;
	align-items: center;
	gap: var(--p-space-3);
	margin-bottom: var(--p-space-4);
}

.p-buy__ratinglink {
	font-size: var(--p-text-small);
	color: var(--p-green-700);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.p-buy__price {
	font-family: var(--p-font-sans);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	font-weight: 700;
	color: var(--p-green-900);
	line-height: 1.2;
}

.p-buy__price del {
	font-size: 0.6em;
	font-weight: 400;
	color: var(--p-gray-400);
	margin-left: 0.4em;
}

.p-buy__price ins {
	text-decoration: none;
}

.p-buy__tax {
	font-size: var(--p-text-micro);
	color: var(--p-text-muted);
	margin-top: var(--p-space-1);
	margin-bottom: var(--p-space-5);
}

/* ---- Swatches ---------------------------------------------------------- */

.p-buy__variants {
	display: grid;
	gap: var(--p-space-5);
	margin-bottom: var(--p-space-5);
}

.p-swatch {
	border: 0;
	padding: 0;
	margin: 0;
}

.p-swatch__legend {
	display: flex;
	align-items: baseline;
	gap: var(--p-space-2);
	padding: 0;
	margin-bottom: var(--p-space-3);
	font-size: var(--p-text-micro);
	font-weight: 600;
	letter-spacing: var(--p-track-label);
	text-transform: uppercase;
	color: var(--p-text-muted);
}

.p-swatch__chosen {
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--p-text);
}

.p-swatch__opts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--p-space-2);
}

.p-swatch__opt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 72px;
	min-height: 44px;
	padding: 0.6rem 1rem;
	border: 1px solid var(--p-gray-300);
	border-radius: var(--p-radius-md);
	background: var(--p-surface);
	font-size: var(--p-text-small);
	font-weight: 500;
	cursor: pointer;
	transition: border-color var(--p-dur-micro) var(--p-ease),
		background var(--p-dur-micro) var(--p-ease);
}

.p-swatch__opt:hover {
	border-color: var(--p-green-500);
}

.p-swatch__input:checked + .p-swatch__opt {
	border-color: var(--p-green-900);
	background: var(--p-green-900);
	color: var(--p-ivory-100);
}

.p-swatch__input:focus-visible + .p-swatch__opt {
	outline: 2px solid var(--p-green-700);
	outline-offset: 2px;
}

/* ---- Inline delivery checker ------------------------------------------ */

.p-dcx {
	padding: var(--p-space-4);
	margin-bottom: var(--p-space-5);
	border: 1px solid var(--p-line);
	border-radius: var(--p-radius-md);
	background: var(--p-ivory-200);
}

.p-dcx__head {
	display: flex;
	align-items: center;
	gap: var(--p-space-2);
	margin-bottom: var(--p-space-3);
	font-size: var(--p-text-small);
	font-weight: 600;
}

.p-dcx__head svg {
	width: 18px;
	height: 18px;
	color: var(--p-green-700);
}

.p-dcx__form {
	display: flex;
	gap: var(--p-space-2);
}

.p-dcx__form .p-input {
	flex: 1;
	min-width: 0;
}

.p-dcx__result:not(:empty) {
	margin-top: var(--p-space-3);
	font-size: var(--p-text-small);
}

/* ---- Actions ----------------------------------------------------------- */

.p-buy__actions {
	display: flex;
	gap: var(--p-space-3);
	margin-bottom: var(--p-space-3);
}

.p-buy__add {
	flex: 1;
}

.p-buy__variantnote {
	font-size: var(--p-text-small);
	color: var(--p-text-muted);
	margin-top: var(--p-space-3);
}

.p-buy__soldout {
	display: flex;
	align-items: flex-start;
	gap: var(--p-space-3);
	padding: var(--p-space-4);
	border-radius: var(--p-radius-md);
	background: var(--p-ivory-200);
	font-size: var(--p-text-small);
	line-height: 1.6;
	color: var(--p-text-muted);
}

.p-buy__soldout svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: var(--p-gold-600);
}

.p-buy__trust {
	list-style: none;
	margin: var(--p-space-6) 0 0;
	padding: var(--p-space-5) 0 0;
	border-top: 1px solid var(--p-line-soft);
	display: grid;
	gap: var(--p-space-3);
}

.p-buy__trust li {
	display: flex;
	align-items: center;
	gap: var(--p-space-3);
	font-size: var(--p-text-small);
	color: var(--p-text-muted);
}

.p-buy__trust svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: var(--p-green-500);
}

.p-buy__legal,
.p-buy__sku {
	margin-top: var(--p-space-4);
	font-size: var(--p-text-micro);
	line-height: 1.6;
	color: var(--p-gray-400);
}

/* ---- Editorial bands --------------------------------------------------- */

.p-band {
	padding-block: var(--p-section-y-compact);
}

.p-band--muted {
	background: var(--p-ivory-200);
}

.p-band__head {
	max-width: 52ch;
	margin-bottom: var(--p-space-6);
}

.p-band__title {
	font-size: var(--p-text-h2);
	line-height: var(--p-leading-snug);
	margin-bottom: var(--p-space-3);
}

.p-band__lede {
	color: var(--p-text-muted);
	line-height: var(--p-leading-body);
}

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

.p-prose--flush {
	margin-inline: 0;
}

/* ---- Care / spec card -------------------------------------------------- */

.p-facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1px;
	background: var(--p-line-soft);
	border: 1px solid var(--p-line-soft);
	border-radius: var(--p-radius-lg);
	overflow: hidden;
}

@media (min-width: 640px) {
	.p-facts {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.p-facts {
		grid-template-columns: repeat(4, 1fr);
	}
}

.p-facts__item {
	display: grid;
	gap: var(--p-space-2);
	padding: var(--p-space-5);
	background: var(--p-surface);
}

.p-facts__icon svg {
	width: 24px;
	height: 24px;
	color: var(--p-green-500);
}

.p-facts__label {
	font-size: var(--p-text-micro);
	font-weight: 600;
	letter-spacing: var(--p-track-label);
	text-transform: uppercase;
	color: var(--p-text-muted);
}

.p-facts__value {
	font-size: var(--p-text-small);
	line-height: 1.5;
	color: var(--p-text);
}

/* ---- Honesty band ------------------------------------------------------ */

.p-honest {
	display: grid;
	gap: var(--p-space-6);
}

@media (min-width: 768px) {
	.p-honest {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--p-space-8);
	}
}

.p-honest__icon svg {
	width: 28px;
	height: 28px;
	color: var(--p-gold-600);
}

.p-honest__title {
	font-size: var(--p-text-h3);
	margin-block: var(--p-space-3) var(--p-space-3);
}

.p-honest__text {
	color: var(--p-text-muted);
	line-height: var(--p-leading-body);
	max-width: 52ch;
}

/* ---- FAQ accordion ----------------------------------------------------- */

.p-faq {
	display: grid;
	gap: var(--p-space-6);
}

@media (min-width: 1024px) {
	.p-faq {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		gap: var(--p-space-8);
		align-items: start;
	}
}

.p-accordion__item {
	border-bottom: 1px solid var(--p-line);
}

.p-accordion__heading {
	margin: 0;
	font-size: inherit;
}

.p-accordion__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--p-space-4);
	padding: var(--p-space-5) 0;
	background: none;
	border: 0;
	text-align: left;
	font-family: var(--p-font-sans);
	font-size: var(--p-text-body);
	font-weight: 500;
	color: var(--p-text);
	cursor: pointer;
}

.p-accordion__trigger:hover {
	color: var(--p-green-900);
}

.p-accordion__mark {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--p-green-700);
	transition: transform var(--p-dur-ui) var(--p-ease);
}

.p-accordion__trigger[aria-expanded="true"] .p-accordion__mark {
	transform: rotate(45deg);
}

.p-accordion__panel {
	padding-bottom: var(--p-space-5);
	color: var(--p-text-muted);
	line-height: var(--p-leading-body);
	max-width: 62ch;
}

/* ---- Sticky add to cart ------------------------------------------------ */

.p-stickybuy {
	position: fixed;
	inset: auto 0 0 0;
	z-index: var(--p-z-header);
	padding-block: var(--p-space-3);

	/*
	 * Glass, not a solid slab. The page keeps moving underneath it — you can
	 * see the photographs and the copy travelling behind the bar, which is what
	 * stops a fixed strip from reading as a banner stuck to the window.
	 *
	 * `saturate` alongside the blur matters: blurring alone greys out whatever
	 * is behind it, and this page is mostly foliage.
	 */
	background: color-mix(in srgb, var(--p-surface) 72%, transparent);
	backdrop-filter: blur(18px) saturate(1.5);
	-webkit-backdrop-filter: blur(18px) saturate(1.5);
	border-top: 1px solid color-mix(in srgb, var(--p-line) 60%, transparent);
	box-shadow: 0 -10px 34px rgba(30, 58, 46, 0.09);

	/* Rises rather than slides flat: a small lift on the way in reads as the
	   bar arriving, and costs one composited property. */
	transform: translateY(100%);
	opacity: 0;
	visibility: hidden;
	transition:
		transform 360ms var(--p-ease),
		opacity 240ms var(--p-ease),
		visibility 0s linear 360ms;
}

/* No backdrop-filter support: fall back to an opaque bar rather than a
   half-transparent one nobody can read the price through. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.p-stickybuy {
		background: var(--p-surface);
	}
}

.p-stickybuy.is-in {
	transform: none;
	opacity: 1;
	visibility: visible;
	transition:
		transform 360ms var(--p-ease),
		opacity 240ms var(--p-ease),
		visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
	.p-stickybuy {
		transition-duration: 1ms, 1ms, 0s;
	}
}

.p-stickybuy__inner {
	display: flex;
	align-items: center;
	gap: var(--p-space-4);
}

.p-stickybuy__media {
	flex: 0 0 44px;
	border-radius: var(--p-radius-sm);
	overflow: hidden;
}

.p-stickybuy__media img,
.p-stickybuy__media .p-art {
	display: block;
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: var(--p-radius-sm);
}

.p-stickybuy__body {
	flex: 1;
	min-width: 0;
}

.p-stickybuy__title {
	font-size: var(--p-text-small);
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.p-stickybuy__price {
	font-size: var(--p-text-small);
	font-weight: 700;
	color: var(--p-green-900);
}

.p-stickybuy__price del {
	font-weight: 400;
	color: var(--p-gray-400);
	margin-left: 0.3em;
}

.p-stickybuy__price ins {
	text-decoration: none;
}

.p-stickybuy__cta {
	flex-shrink: 0;
}

/* The sticky bar must clear the mobile bottom navigation. */
@media (max-width: 767px) {
	.p-stickybuy {
		bottom: var(--p-mobilebar-h, 64px);
	}

	.p-stickybuy__media {
		display: none;
	}
}

/* ---- Reviews ----------------------------------------------------------- */

.p-reviews {
	display: grid;
	gap: var(--p-space-7);
}

@media (min-width: 1024px) {
	.p-reviews {
		grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
		gap: var(--p-space-8);
		align-items: start;
	}

	.p-reviews__summary {
		position: sticky;
		top: calc(var(--p-header-h) + var(--p-space-5));
	}
}

.p-reviews__score {
	font-family: var(--p-font-serif);
	font-size: clamp(3rem, 2rem + 4vw, 4.5rem);
	line-height: 1;
	color: var(--p-green-900);
	margin-bottom: var(--p-space-2);
}

.p-reviews__total {
	font-size: var(--p-text-small);
	color: var(--p-text-muted);
	margin-top: var(--p-space-2);
	max-width: 34ch;
}

.p-reviews__spread {
	list-style: none;
	margin: var(--p-space-5) 0 0;
	padding: 0;
	display: grid;
	gap: var(--p-space-2);
	max-width: 260px;
}

.p-reviews__spread li {
	display: grid;
	grid-template-columns: 1rem 1fr 2rem;
	align-items: center;
	gap: var(--p-space-3);
	font-size: var(--p-text-micro);
	color: var(--p-text-muted);
	font-variant-numeric: tabular-nums;
}

.p-reviews__track {
	height: 5px;
	border-radius: var(--p-radius-pill);
	background: var(--p-line-soft);
	overflow: hidden;
}

.p-reviews__fill {
	display: block;
	height: 100%;
	border-radius: var(--p-radius-pill);
	background: var(--p-green-500);
}

.p-reviews__n {
	text-align: right;
}

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

.p-review--full {
	padding: var(--p-space-5);
	border: 1px solid var(--p-line-soft);
	border-radius: var(--p-radius-lg);
	background: var(--p-surface);
}

.p-review--full .p-review__stars {
	display: flex;
	gap: 2px;
	margin-bottom: var(--p-space-3);
}

.p-review--full .p-review__star svg {
	width: 15px;
	height: 15px;
	color: var(--p-gray-300);
	fill: none;
}

.p-review--full .p-review__star.is-on svg {
	color: var(--p-gold-500);
	fill: currentColor;
}

.p-review__text {
	line-height: var(--p-leading-body);
	max-width: 62ch;
}

.p-review__by {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--p-space-3);
	margin-top: var(--p-space-4);
	font-size: var(--p-text-micro);
	color: var(--p-text-muted);
}

.p-review--full .p-review__author {
	font-weight: 600;
	color: var(--p-text);
}

.p-review__verified {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--p-green-500);
}

.p-review__verified svg {
	width: 13px;
	height: 13px;
	stroke-width: 2.5;
}

.p-review__pending {
	margin-top: var(--p-space-3);
	font-size: var(--p-text-micro);
	color: var(--p-gold-600);
}

.p-reviews__gate {
	display: flex;
	align-items: flex-start;
	gap: var(--p-space-3);
	margin-top: var(--p-space-6);
	padding: var(--p-space-5);
	border-radius: var(--p-radius-md);
	background: var(--p-ivory-200);
	font-size: var(--p-text-small);
	line-height: 1.6;
	color: var(--p-text-muted);
}

.p-reviews__gate svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: var(--p-gold-600);
}

/* ---- Review form ------------------------------------------------------- */

.p-reviews__form {
	margin-top: var(--p-space-7);
	padding-top: var(--p-space-6);
	border-top: 1px solid var(--p-line);
}

.p-reviews__formtitle {
	font-size: var(--p-text-h3);
	margin-bottom: var(--p-space-5);
}

.p-field {
	display: grid;
	gap: var(--p-space-2);
	margin-bottom: var(--p-space-4);
	border: 0;
	padding: 0;
}

.p-field > label,
.p-field > legend {
	font-size: var(--p-text-small);
	font-weight: 500;
	padding: 0;
}

.p-field__hint {
	font-size: var(--p-text-micro);
	color: var(--p-text-muted);
}

.p-input--area {
	min-height: 8rem;
	resize: vertical;
	line-height: var(--p-leading-body);
	padding: var(--p-space-3) var(--p-space-4);
}

/*
 * Star picker. The inputs are laid out 5→1 in source order so that a CSS
 * sibling selector can light the chosen star and everything to its right,
 * which visually reads left-to-right as 1→5 once the row is reversed.
 */
.p-ratepick__opts {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: var(--p-space-1);
}

.p-ratepick__star {
	cursor: pointer;
	padding: 2px;
	line-height: 0;
}

.p-ratepick__star svg {
	width: 26px;
	height: 26px;
	color: var(--p-gray-300);
	fill: none;
	transition: color var(--p-dur-micro) var(--p-ease);
}

.p-ratepick__input:checked ~ .p-ratepick__star svg,
.p-ratepick__star:hover svg,
.p-ratepick__star:hover ~ .p-ratepick__star svg {
	color: var(--p-gold-500);
	fill: currentColor;
}

.p-ratepick__input:focus-visible + .p-ratepick__star svg {
	outline: 2px solid var(--p-green-700);
	outline-offset: 2px;
}

.p-reviews__form .form-submit {
	margin-top: var(--p-space-5);
}

/* ======================================================================
   Cart drawer (WooCommerce)
   ====================================================================== */

.p-drawer__live {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	transition: opacity var(--p-dur-ui) var(--p-ease);
}

.p-drawer__live.is-busy {
	opacity: 0.5;
	pointer-events: none;
}

.p-line.is-going {
	opacity: 0.4;
}

.p-line__title a {
	color: inherit;
}

.p-line__title a:hover {
	color: var(--p-green-900);
}

.p-line__warn,
.p-cartline__warn {
	display: flex;
	align-items: center;
	gap: var(--p-space-2);
	margin-top: var(--p-space-2);
	font-size: var(--p-text-micro);
	color: var(--p-clay-600);
}

.p-line__warn svg,
.p-cartline__warn svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.p-drawer__emptyart {
	display: block;
	width: 120px;
	margin-inline: auto;
	margin-bottom: var(--p-space-4);
}

.p-drawer__emptytitle {
	font-family: var(--p-font-serif);
	font-size: var(--p-text-h3);
	margin-bottom: var(--p-space-2);
}

.p-drawer__emptytext {
	color: var(--p-text-muted);
	margin-bottom: var(--p-space-5);
}

.p-drawer__couponrow {
	display: flex;
	gap: var(--p-space-2);
}

.p-drawer__couponrow .p-input {
	flex: 1;
	min-width: 0;
}

.p-drawer__couponmsg:empty {
	display: none;
}

.p-drawer__couponmsg {
	margin-top: var(--p-space-2);
	font-size: var(--p-text-micro);
	color: var(--p-text-muted);
}

.p-drawer__couponmsg.is-error {
	color: var(--p-error);
}

.p-chips--coupons {
	margin-bottom: var(--p-space-3);
}

.p-chips--coupons .p-chip {
	border: 0;
	cursor: pointer;
	font-family: inherit;
}

.p-rec__title a {
	color: inherit;
}

.p-rec__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--p-radius-sm);
}

.p-drawer__totals--saving strong {
	color: var(--p-clay-600);
}

/* ======================================================================
   Cart page
   ====================================================================== */

.p-cartpage__layout {
	display: grid;
	gap: var(--p-space-6);
}

@media (min-width: 1024px) {
	.p-cartpage__layout {
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: var(--p-space-8);
		align-items: start;
	}
}

.p-cartlines {
	list-style: none;
	margin: var(--p-space-5) 0 0;
	padding: 0;
}

.p-cartline {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	grid-template-areas:
		"media body"
		"media qty"
		"price price";
	gap: var(--p-space-3) var(--p-space-4);
	padding-block: var(--p-space-5);
	border-bottom: 1px solid var(--p-line-soft);
}

@media (min-width: 640px) {
	.p-cartline {
		grid-template-columns: 104px minmax(0, 1fr) auto auto;
		grid-template-areas: "media body qty price";
		align-items: center;
		gap: var(--p-space-5);
	}
}

.p-cartline__media {
	grid-area: media;
	border-radius: var(--p-radius-md);
	overflow: hidden;
	background: var(--p-ivory-200);
}

.p-cartline__media img,
.p-cartline__media .p-art {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.p-cartline__body {
	grid-area: body;
	min-width: 0;
}

.p-cartline__title {
	font-family: var(--p-font-sans);
	font-size: var(--p-text-body);
	font-weight: 500;
	margin-bottom: var(--p-space-1);
}

.p-cartline__title a {
	color: inherit;
}

.p-cartline__meta {
	font-size: var(--p-text-small);
	color: var(--p-text-muted);
	margin-bottom: var(--p-space-2);
}

.p-cartline__remove {
	font-size: var(--p-text-micro);
	color: var(--p-text-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.p-cartline__remove:hover {
	color: var(--p-error);
}

.p-cartline__qty {
	grid-area: qty;
}

.p-input--qty {
	width: 4.5rem;
	text-align: center;
}

.p-cartline__price {
	grid-area: price;
	font-weight: 600;
	color: var(--p-green-900);
	white-space: nowrap;
}

@media (min-width: 640px) {
	.p-cartline__price {
		text-align: right;
	}
}

.p-cartpage__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--p-space-3);
	padding-top: var(--p-space-5);
}

.p-cartpage__coupon {
	display: flex;
	gap: var(--p-space-2);
	flex: 1 1 260px;
}

.p-cartpage__coupon .p-input {
	flex: 1;
	min-width: 0;
}

.p-carttotals {
	padding: var(--p-space-5);
	border: 1px solid var(--p-line);
	border-radius: var(--p-radius-lg);
	background: var(--p-surface);
}

@media (min-width: 1024px) {
	.p-carttotals {
		position: sticky;
		top: calc(var(--p-header-h) + var(--p-space-5));
	}
}

.p-carttotals__title {
	font-size: var(--p-text-h4);
	margin-bottom: var(--p-space-4);
}

.p-carttotals .wc-proceed-to-checkout {
	margin-top: var(--p-space-5);
}

.p-carttotals .p-drawer__trust {
	margin-top: var(--p-space-5);
	padding-top: var(--p-space-5);
	border-top: 1px solid var(--p-line-soft);
}

/* ======================================================================
   Summary rows — shared by cart totals and checkout review
   ====================================================================== */

.p-summary__totals {
	display: grid;
	gap: var(--p-space-3);
	padding-top: var(--p-space-4);
	border-top: 1px solid var(--p-line-soft);
}

.p-summary__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--p-space-4);
	font-size: var(--p-text-small);
	color: var(--p-text-muted);
}

.p-summary__row > span:last-child {
	text-align: right;
	color: var(--p-text);
	font-weight: 500;
}

.p-summary__row--saving > span:last-child {
	color: var(--p-clay-600);
}

.p-summary__row--total {
	padding-top: var(--p-space-3);
	border-top: 1px solid var(--p-line-soft);
	font-size: var(--p-text-body);
	color: var(--p-text);
}

.p-summary__row--total > span:last-child {
	font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
	font-weight: 700;
	color: var(--p-green-900);
}

.p-summary__tax {
	margin-top: var(--p-space-3);
	font-size: var(--p-text-micro);
	color: var(--p-gray-400);
}

.p-shipmethods {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--p-space-2);
	text-align: right;
}

.p-shipmethods label {
	cursor: pointer;
}

.p-summary__shipto,
.p-summary__shipnote {
	margin-top: var(--p-space-2);
	font-size: var(--p-text-micro);
	color: var(--p-text-muted);
	font-weight: 400;
}

.p-summary__shipnote--warn {
	color: var(--p-clay-600);
}

.p-summary__lines {
	list-style: none;
	margin: 0 0 var(--p-space-4);
	padding: 0;
	display: grid;
	gap: var(--p-space-4);
}

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

.p-summary__media {
	position: relative;
	border-radius: var(--p-radius-sm);
	overflow: hidden;
	background: var(--p-ivory-200);
}

.p-summary__media img,
.p-summary__media .p-art {
	display: block;
	width: 52px;
	height: 52px;
	object-fit: cover;
}

/*
 * There is no quantity badge on the thumbnail. It sat over the corner of the
 * photograph, and it said the same thing as the stepper directly below it —
 * two numbers for one fact, one of them obscuring the product.
 */

.p-summary__body {
	min-width: 0;
	display: grid;
	gap: 2px;
}

.p-summary__title {
	font-size: var(--p-text-small);
	font-weight: 500;
}

.p-summary__meta {
	font-size: var(--p-text-micro);
	color: var(--p-text-muted);
}

/*
 * The quantity stepper in the order summary, and the remove beside it.
 *
 * `justify-self: start` is on the row rather than the stepper now: the row is
 * what the body's grid lays out, and without it the pill would stretch across
 * the whole column. `flex-wrap` is what keeps Remove from being pushed out of
 * sight at the narrowest widths — it drops to a second line instead.
 */
.p-summary__actions {
	justify-self: start;
	margin-top: var(--p-space-1);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--p-space-2) var(--p-space-3);
}

/*
 * The stepper is smaller than the drawer's: this column is narrow, and the
 * control sits under a product title rather than on a row of its own.
 */

/*
 * Remove reads as a quiet link, not a button. It is destructive and it sits
 * beside a control people use casually, so it must not compete with the stepper
 * for the eye — but it is underlined on hover and focus so it is unmistakably
 * something you can press, and it turns red only once you are on it.
 */
.p-summary__remove {
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	font-size: var(--p-text-micro);
	line-height: 1;
	color: var(--p-text-muted);
	cursor: pointer;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
	transition: color var(--p-dur-ui) var(--p-ease),
		text-decoration-color var(--p-dur-ui) var(--p-ease);
}

.p-summary__remove:hover,
.p-summary__remove:focus-visible {
	color: var(--p-error);
	text-decoration-color: currentColor;
}

.p-qty--sm .p-qty__btn {
	width: 26px;
	height: 26px;
}

.p-qty--sm .p-qty__btn svg {
	width: 11px;
	height: 11px;
}

.p-qty--sm .p-qty__input {
	width: 24px;
	font-size: var(--p-text-micro);
}

/* A floor of 1 and a stock ceiling both arrive as a disabled button; it has to
   read as unavailable rather than as an ordinary control that ignores clicks. */
.p-qty__btn[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
}

/* While the cart write is in flight the row is not to be trusted, so it stops
   accepting clicks rather than queueing a second change against a stale total.
   A removal fades the whole line, because the whole line is what is going. */
.p-summary__stepper.is-busy,
.p-summary__line.is-busy {
	opacity: 0.5;
	pointer-events: none;
}

.p-summary__price {
	font-size: var(--p-text-small);
	font-weight: 600;
	white-space: nowrap;
}

/* ======================================================================
   Checkout
   ====================================================================== */

/*
 * Distraction-free: no navigation, no mega menu, no basket icon, no footer
 * columns. Every link out of this page is a chance to lose the order. The logo
 * stays — a checkout with no brand on it looks like a phishing page.
 */
.p-body--focused .p-header__nav,
.p-body--focused .p-header__actions,
.p-body--focused .p-mega,
.p-body--focused .p-mobilebar,
.p-body--focused .p-announce,
.p-body--focused .p-footer__cols,
.p-body--focused .p-crumbs {
	display: none;
}

.p-body--focused .p-header__inner {
	justify-content: center;
}

.p-checkout__layout {
	display: grid;
	gap: var(--p-space-6);
}

@media (min-width: 1024px) {
	.p-checkout__layout {
		grid-template-columns: minmax(0, 1fr) 380px;
		gap: var(--p-space-8);
		align-items: start;
	}
}

/* On a phone the summary comes first: see what you are paying, then pay. */
.p-checkout__aside {
	order: -1;
}

@media (min-width: 1024px) {
	.p-checkout__aside {
		order: 0;
		position: sticky;
		top: calc(var(--p-header-h) + var(--p-space-5));
	}
}

.p-checkout__step + .p-checkout__step {
	margin-top: var(--p-space-7);
	padding-top: var(--p-space-7);
	border-top: 1px solid var(--p-line-soft);
}

.p-checkout__steptitle {
	display: flex;
	align-items: center;
	gap: var(--p-space-3);
	font-size: var(--p-text-h3);
	margin-bottom: var(--p-space-5);
}

.p-checkout__stepn {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--p-green-100);
	color: var(--p-green-900);
	font-family: var(--p-font-sans);
	font-size: var(--p-text-small);
	font-weight: 600;
}

.p-checkout__fields {
	display: grid;
	gap: var(--p-space-4);
}

@media (min-width: 640px) {
	.p-checkout__fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Address and anything explicitly full-width span both columns. */
	.p-checkout__fields .form-row-wide,
	.p-checkout__fields > p:only-child {
		grid-column: 1 / -1;
	}
}

.p-checkout__fields .p-field--hidden {
	display: none;
}

.p-checkout__fields label {
	display: block;
	font-size: var(--p-text-small);
	font-weight: 500;
	margin-bottom: var(--p-space-2);
}

.p-checkout__fields .required {
	color: var(--p-error);
	text-decoration: none;
}

.p-checkout__fields input[type="text"],
.p-checkout__fields input[type="tel"],
.p-checkout__fields input[type="email"],
.p-checkout__fields input[type="password"],
.p-checkout__fields select,
.p-checkout__fields .select2-selection {
	width: 100%;
	min-height: 52px;
	padding: 0.75rem 1rem;
	border: 1px solid var(--p-gray-300);
	border-radius: var(--p-radius-md);
	background: var(--p-surface);
	font: inherit;
	font-size: var(--p-text-small);
	color: var(--p-text);
}

.p-checkout__fields input:focus,
.p-checkout__fields select:focus {
	outline: 2px solid var(--p-green-700);
	outline-offset: 1px;
	border-color: var(--p-green-700);
}

.p-checkout__fields .description {
	margin-top: var(--p-space-2);
	font-size: var(--p-text-micro);
	color: var(--p-text-muted);
}

.p-checkout__gift {
	margin-top: var(--p-space-5);
	padding: var(--p-space-4);
	border: 1px solid var(--p-line);
	border-radius: var(--p-radius-md);
	background: var(--p-ivory-200);
}

.p-checkout__gifttoggle {
	display: flex;
	align-items: center;
	gap: var(--p-space-3);
	font-size: var(--p-text-small);
	font-weight: 500;
	cursor: pointer;
}

.p-checkout__giftbody {
	margin-top: var(--p-space-4);
}

/*
 * One inset for the whole card.
 *
 * The card has three children — the heading button, the order summary and the
 * trust list — and each used to declare its own horizontal padding. Two of them
 * said `--p-space-5`; the trust list said nothing at all, so it sat 24px further
 * left and 24px further right than everything above it, hard against the card's
 * inner edge. With `overflow: hidden` on the card its last line was clipped by
 * the bottom radius as well.
 *
 * Declaring the inset once on the card and spending it in the children is what
 * stops that happening again: there is no second value to forget to change.
 */
.p-checkout__summary {
	--p-summary-pad: var(--p-space-5);
	border: 1px solid var(--p-line);
	border-radius: var(--p-radius-lg);
	background: var(--p-surface);
	overflow: hidden;
}

.p-checkout__summarytoggle {
	width: 100%;
	display: flex;
	align-items: center;
	gap: var(--p-space-3);
	padding: var(--p-space-4) var(--p-summary-pad);
	background: none;
	border: 0;
	cursor: pointer;
	text-align: left;
}

.p-checkout__summarytitle {
	flex: 1;
	font-family: var(--p-font-serif);
	font-size: var(--p-text-h4);
}

.p-checkout__summarytotal {
	font-weight: 700;
	color: var(--p-green-900);
}

.p-checkout__summarymark {
	width: 18px;
	height: 18px;
	color: var(--p-text-muted);
	transition: transform var(--p-dur-ui) var(--p-ease);
}

.p-checkout__summarytoggle[aria-expanded="true"] .p-checkout__summarymark {
	transform: rotate(180deg);
}

@media (min-width: 1024px) {
	.p-checkout__summarytoggle {
		cursor: default;
		pointer-events: none;
	}

	.p-checkout__summarytotal,
	.p-checkout__summarymark {
		display: none;
	}
}

.p-checkout__summarybody {
	padding: 0 var(--p-summary-pad) var(--p-summary-pad);
}

.p-checkout__eta {
	display: flex;
	align-items: center;
	gap: var(--p-space-2);
	margin-top: var(--p-space-2);
	font-size: var(--p-text-micro);
	color: var(--p-green-700);
}

.p-checkout__eta svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

/*
 * The reassurances close the card, so they take the card's inset like every
 * other band in it — including a real bottom padding, without which the last
 * line ("A real person answers, same day") ran into the rounded corner and was
 * clipped.
 *
 * A hairline above rather than a margin: the list is a different kind of thing
 * from the totals above it, and the rule says so in less space than the 48px of
 * stacked margin it replaces.
 */
.p-checkout__trust {
	list-style: none;
	margin: 0;
	padding: var(--p-space-4) var(--p-summary-pad) var(--p-summary-pad);
	border-top: 1px solid var(--p-line-soft);
	display: grid;
	gap: var(--p-space-2);
}

.p-checkout__trust li {
	display: flex;
	align-items: center;
	gap: var(--p-space-2);
	font-size: var(--p-text-micro);
	color: var(--p-text-muted);
}

.p-checkout__trust svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	color: var(--p-green-500);
}

/* ---- Payment methods ---------------------------------------------------- */

/*
 * Selectable cards. The radio is hidden but still present and still the
 * control — it holds the gateway id Woo reads, it takes focus, and the keyboard
 * and screen reader operate it. `:has()` styles the card from the radio's
 * state; without it the card simply never highlights, which is why the tick
 * mark also carries its own `:checked` sibling rule as a floor.
 */
.p-pays__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--p-space-3);
}

.p-pay {
	position: relative;
	min-width: 0;
}

.p-pay__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.p-pay__card {
	display: flex;
	align-items: center;
	gap: var(--p-space-3);
	padding: var(--p-space-4);
	border: 1px solid var(--p-line);
	border-radius: var(--p-radius-md);
	background: var(--p-surface);
	cursor: pointer;
	transition:
		border-color var(--p-dur-ui) var(--p-ease),
		background-color var(--p-dur-ui) var(--p-ease),
		box-shadow var(--p-dur-ui) var(--p-ease),
		transform var(--p-dur-ui) var(--p-ease);
}

@media (hover: hover) {
	.p-pay:not(.p-pay--soon) .p-pay__card:hover {
		border-color: var(--p-green-500);
		transform: translateY(-1px);
	}
}

.p-pay__input:focus-visible + .p-pay__card {
	outline: 2px solid var(--p-green-700);
	outline-offset: 2px;
}

.p-pay__input:checked + .p-pay__card {
	border-color: var(--p-green-700);
	background: var(--p-green-100);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-green-500) 16%, transparent);
}

.p-pay__icon {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	flex: none;
	border-radius: var(--p-radius-md);
	background: var(--p-ivory-200);
	color: var(--p-green-700);
	transition: background-color var(--p-dur-ui) var(--p-ease);
}

.p-pay__input:checked + .p-pay__card .p-pay__icon {
	background: var(--p-surface);
}

.p-pay__icon svg {
	width: 1.2rem;
	height: 1.2rem;
}

.p-pay__body {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: var(--p-space-3);
	flex-wrap: wrap;
}

.p-pay__title {
	font-family: var(--p-font-sans);
	font-size: var(--p-text-small);
	font-weight: 600;
	color: var(--p-green-900);
}

.p-pay__logos img {
	max-height: 1.5rem;
	width: auto;
	vertical-align: middle;
}

.p-pay__tick {
	display: grid;
	place-items: center;
	width: 1.35rem;
	height: 1.35rem;
	flex: none;
	border-radius: 50%;
	border: 1.5px solid var(--p-line);
	color: transparent;
	transition:
		background-color var(--p-dur-ui) var(--p-ease),
		border-color var(--p-dur-ui) var(--p-ease),
		color var(--p-dur-ui) var(--p-ease);
}

.p-pay__tick svg {
	width: 0.7rem;
	height: 0.7rem;
	stroke-width: 3;
}

.p-pay__input:checked + .p-pay__card .p-pay__tick {
	background: var(--p-green-700);
	border-color: var(--p-green-700);
	color: var(--p-white);
}

.p-pay__box {
	padding: var(--p-space-4);
	margin-top: var(--p-space-2);
	border-radius: var(--p-radius-md);
	background: var(--p-ivory-200);
	font-family: var(--p-font-sans);
	font-size: var(--p-text-small);
	line-height: var(--p-leading-body);
	color: var(--p-text-muted);
}

.p-pay__box p:last-child {
	margin-bottom: 0;
}

/* ---- Methods that are not switched on yet ------------------------------- */

/*
 * Flat, locked, and carrying no input at all — see checkout/payment.php. These
 * are pictures of payment methods, not controls, and must never be mistakable
 * for one: no hover lift, no pointer cursor, reduced contrast.
 */
.p-pays__soon {
	margin-top: var(--p-space-5);
	padding-top: var(--p-space-5);
	border-top: 1px dashed var(--p-line);
}

.p-pays__soonhead {
	display: flex;
	align-items: center;
	gap: var(--p-space-2);
	margin: 0 0 var(--p-space-3);
	font-family: var(--p-font-sans);
	font-size: var(--p-text-micro);
	font-weight: 600;
	letter-spacing: var(--p-track-label);
	text-transform: uppercase;
	color: var(--p-text-muted);
}

.p-pays__soonhead svg {
	width: 1rem;
	height: 1rem;
}

.p-pays__previews {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--p-space-2);
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}

.p-pay--soon .p-pay__card {
	padding: var(--p-space-3);
	background: transparent;
	border-style: dashed;
	border-color: var(--p-line-soft);
	cursor: default;
}

.p-pay--soon .p-pay__icon {
	width: 2rem;
	height: 2rem;
	background: transparent;
	color: var(--p-gray-400);
}

.p-pay--soon .p-pay__title {
	font-weight: 500;
	color: var(--p-text-muted);
}

.p-pay__lock {
	width: 0.85rem;
	height: 0.85rem;
	flex: none;
	color: var(--p-gray-400);
}

.p-pays__soonnote {
	margin: var(--p-space-3) 0 0;
	font-family: var(--p-font-sans);
	font-size: var(--p-text-micro);
	line-height: var(--p-leading-snug);
	color: var(--p-text-muted);
	text-wrap: pretty;
}

/* When there is nothing at all to pay with. */
.p-pays__none {
	display: flex;
	align-items: flex-start;
	gap: var(--p-space-3);
	padding: var(--p-space-4);
	border-radius: var(--p-radius-md);
	background: var(--p-gold-100);
	border: 1px solid color-mix(in srgb, var(--p-gold-500) 30%, transparent);
}

.p-pays__none > svg {
	width: 1.25rem;
	height: 1.25rem;
	flex: none;
	margin-top: 0.1em;
	color: var(--p-gold-600);
}

/* ---- Place order -------------------------------------------------------- */

.p-pays__submit {
	margin-top: var(--p-space-5);
}

.p-placeorder {
	position: relative;
	min-height: 56px;
	overflow: hidden;
}

.p-placeorder__label {
	transition:
		opacity var(--p-dur-ui) var(--p-ease),
		transform var(--p-dur-ui) var(--p-ease);
}

.p-placeorder__spinner {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	opacity: 0;
	pointer-events: none;
}

.p-placeorder__spinner::before {
	content: "";
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	border: 2px solid color-mix(in srgb, currentColor 30%, transparent);
	border-top-color: currentColor;
	animation: p-spin 700ms linear infinite;
}

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

/*
 * Woo adds `.processing` to the form while it submits. Driving the button's
 * state from that class rather than from a click handler means the spinner is
 * honest: it appears when the request is genuinely in flight, and it clears if
 * validation sends the customer back.
 */
.processing .p-placeorder__label,
.p-placeorder.is-busy .p-placeorder__label {
	opacity: 0;
	transform: translateY(-4px);
}

.processing .p-placeorder__spinner,
.p-placeorder.is-busy .p-placeorder__spinner {
	opacity: 1;
}

.p-placeorder[disabled] {
	cursor: wait;
}

.woocommerce-privacy-policy-text {
	margin-block: var(--p-space-4);
	font-size: var(--p-text-micro);
	color: var(--p-text-muted);
}

/* ======================================================================
   Order received
   ====================================================================== */

.p-thanks {
	max-width: 720px;
	margin-inline: auto;
}

.p-thanks__head {
	text-align: center;
	margin-bottom: var(--p-space-8);
}

.p-thanks__mark {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0 auto var(--p-space-5);
	border-radius: 50%;
	background: var(--p-green-100);
	color: var(--p-green-900);
}

.p-thanks__mark svg {
	width: 26px;
	height: 26px;
	stroke-width: 2;
}

.p-thanks__mark--fail {
	background: var(--p-clay-100);
	color: var(--p-clay-600);
}

.p-thanks__title {
	font-size: var(--p-text-h1);
	line-height: var(--p-leading-tight);
	margin-bottom: var(--p-space-3);
}

.p-thanks__lede {
	color: var(--p-text-muted);
	line-height: var(--p-leading-body);
}

.p-thanks__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--p-space-3);
	justify-content: center;
	margin-top: var(--p-space-5);
}

.p-thanks__steps {
	list-style: none;
	margin: 0 0 var(--p-space-7);
	padding: 0;
	display: grid;
	gap: var(--p-space-5);
	counter-reset: none;
}

@media (min-width: 768px) {
	.p-thanks__steps {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--p-space-6);
	}
}

.p-thanks__step {
	padding: var(--p-space-5);
	border: 1px solid var(--p-line-soft);
	border-radius: var(--p-radius-lg);
	background: var(--p-surface);
}

.p-thanks__stepicon svg {
	width: 24px;
	height: 24px;
	color: var(--p-green-500);
}

.p-thanks__steptitle {
	font-size: var(--p-text-h4);
	margin-block: var(--p-space-3) var(--p-space-2);
}

.p-thanks__step p {
	font-size: var(--p-text-small);
	line-height: 1.6;
	color: var(--p-text-muted);
}

.p-thanks__gift,
.p-thanks__note {
	display: flex;
	align-items: flex-start;
	gap: var(--p-space-3);
	padding: var(--p-space-4);
	margin-bottom: var(--p-space-5);
	border-radius: var(--p-radius-md);
	background: var(--p-gold-100);
	font-size: var(--p-text-small);
	line-height: 1.6;
}

.p-thanks__gift svg,
.p-thanks__note svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: var(--p-gold-600);
}

.p-thanks__detailtitle {
	font-size: var(--p-text-h3);
	margin-block: var(--p-space-7) var(--p-space-4);
}

/* ======================================================================
   Sign in
   ======================================================================
   One glass card on a soft field, with the three states stacked in the
   same grid cell so switching between them never moves the page.
   ====================================================================== */

.p-auth {
	position: relative;
	max-width: 460px;
	margin-inline: auto;
	padding-block: var(--p-space-7);
}

/* Two oversized leaves, drifting, well behind the card. */
.p-auth__art {
	position: absolute;
	inset: -8% -30%;
	pointer-events: none;
	overflow: hidden;
	z-index: 0;
}

.p-auth__leaf {
	display: none;
}

.p-auth__leaf--a {
	top: -4%;
	left: -6%;
	animation: p-auth-drift 22s ease-in-out infinite;
}

.p-auth__leaf--b {
	bottom: -6%;
	right: -8%;
	animation: p-auth-drift 28s ease-in-out infinite reverse;
}

@keyframes p-auth-drift {
	0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
	50% { transform: translate3d(14px, -18px, 0) rotate(4deg); }
}

.p-auth__card {
	position: relative;
	z-index: 1;
	display: grid;
	padding: clamp(1.75rem, 1rem + 3vw, 2.75rem);
	border-radius: 26px;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(24px) saturate(1.3);
	-webkit-backdrop-filter: blur(24px) saturate(1.3);
	border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow:
		0 1px 2px rgba(30, 58, 46, 0.04),
		0 20px 60px rgba(30, 58, 46, 0.1);
	animation: p-auth-enter 620ms var(--p-ease) both;
}

@keyframes p-auth-enter {
	from { opacity: 0; transform: translateY(16px) scale(0.985); }
	to { opacity: 1; transform: none; }
}

/* All three steps share one cell, so the card never jumps height mid-flow. */
.p-auth__step {
	grid-area: 1 / 1;
}

.p-auth__step.is-current {
	animation: p-auth-step 420ms var(--p-ease) both;
}

@keyframes p-auth-step {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.p-auth__head {
	margin-bottom: var(--p-space-6);
}

.p-auth__title {
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
	line-height: var(--p-leading-snug);
	margin-bottom: var(--p-space-3);
}

.p-auth__lede {
	color: var(--p-text-muted);
	line-height: var(--p-leading-body);
	font-size: var(--p-text-small);
}

.p-auth__back {
	display: inline-flex;
	align-items: center;
	gap: var(--p-space-2);
	margin-bottom: var(--p-space-4);
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: var(--p-text-micro);
	color: var(--p-text-muted);
	cursor: pointer;
}

.p-auth__back:hover {
	color: var(--p-green-900);
}

.p-auth__back svg {
	width: 14px;
	height: 14px;
}

/* ---- Fields ------------------------------------------------------------ */

.p-auth__field {
	display: grid;
	gap: var(--p-space-2);
	margin-bottom: var(--p-space-4);
}

.p-auth__label {
	font-size: var(--p-text-micro);
	font-weight: 500;
	letter-spacing: var(--p-track-label);
	text-transform: uppercase;
	color: var(--p-text-muted);
}

.p-auth__input {
	width: 100%;
	min-height: 54px;
	padding: 0.85rem 1.05rem;
	border: 1px solid var(--p-gray-300);
	border-radius: 14px;
	background: var(--p-surface);
	font: inherit;
	font-size: var(--p-text-small);
	color: var(--p-text);
	transition:
		border-color var(--p-dur-micro) var(--p-ease),
		box-shadow var(--p-dur-micro) var(--p-ease);
}

.p-auth__input:focus {
	outline: none;
	border-color: var(--p-green-700);
	box-shadow: 0 0 0 4px rgba(79, 143, 103, 0.16);
}

.p-auth__error:empty {
	display: none;
}

.p-auth__error {
	margin-top: var(--p-space-3);
	font-size: var(--p-text-micro);
	color: var(--p-error);
}

.p-auth__error.is-shown {
	animation: p-auth-nudge 320ms var(--p-ease);
}

@keyframes p-auth-nudge {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-3px); }
	75% { transform: translateX(3px); }
}

/* ---- Alternative methods ----------------------------------------------- */

.p-auth__or {
	display: flex;
	align-items: center;
	gap: var(--p-space-4);
	margin-block: var(--p-space-5);
	font-size: var(--p-text-micro);
	color: var(--p-gray-400);
}

.p-auth__or::before,
.p-auth__or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--p-line-soft);
}

.p-auth__methods {
	display: grid;
	gap: var(--p-space-3);
}

.p-auth__method {
	display: flex;
	align-items: center;
	gap: var(--p-space-3);
	width: 100%;
	min-height: 52px;
	padding: 0 1.05rem;
	border: 1px solid var(--p-line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.6);
	font: inherit;
	font-size: var(--p-text-small);
	font-weight: 500;
	color: var(--p-text);
	cursor: pointer;
	transition:
		border-color var(--p-dur-micro) var(--p-ease),
		transform var(--p-dur-micro) var(--p-ease);
}

.p-auth__method:not([disabled]):hover {
	border-color: var(--p-green-500);
	transform: translateY(-1px);
}

.p-auth__method[disabled] {
	opacity: 0.62;
	cursor: not-allowed;
	min-height: 60px;
}

.p-auth__method svg {
	width: 18px;
	height: 18px;
	color: var(--p-green-700);
}

.p-auth__methodtext {
	flex: 1;
	display: grid;
	gap: 1px;
	text-align: left;
	padding-block: 0.55rem;
}

/* The reason sits in the button. A native title tooltip gets clipped at the
   card edge and reads as a broken control rather than an unfinished one. */
.p-auth__why {
	font-size: var(--p-text-micro);
	font-weight: 400;
	color: var(--p-gray-400);
	line-height: 1.4;
}

.p-auth__soon {
	font-size: var(--p-text-micro);
	letter-spacing: var(--p-track-label);
	text-transform: uppercase;
	color: var(--p-gray-400);
}

.p-auth__guest {
	margin-top: var(--p-space-5);
	text-align: center;
	font-size: var(--p-text-small);
	color: var(--p-text-muted);
}

.p-auth__guest a {
	color: var(--p-green-700);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---- The six boxes ------------------------------------------------------ */

.p-auth__code {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: var(--p-space-2);
	margin-bottom: var(--p-space-4);
}

.p-auth__digit {
	width: 100%;
	aspect-ratio: 3 / 4;
	max-height: 68px;
	text-align: center;
	border: 1px solid var(--p-gray-300);
	border-radius: 14px;
	background: var(--p-surface);
	font: inherit;
	font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
	font-weight: 600;
	color: var(--p-green-900);
	font-variant-numeric: tabular-nums;
	transition:
		border-color var(--p-dur-micro) var(--p-ease),
		box-shadow var(--p-dur-micro) var(--p-ease),
		transform var(--p-dur-micro) var(--p-ease);
}

.p-auth__digit:focus {
	outline: none;
	border-color: var(--p-green-700);
	box-shadow: 0 0 0 4px rgba(79, 143, 103, 0.16);
	transform: translateY(-2px);
}

.p-auth.is-verifying .p-auth__digit {
	opacity: 0.6;
	pointer-events: none;
}

.p-auth.is-wrong .p-auth__code {
	animation: p-auth-nudge 380ms var(--p-ease);
}

.p-auth__expiry {
	margin-top: var(--p-space-3);
	text-align: center;
	font-size: var(--p-text-micro);
	color: var(--p-text-muted);
	font-variant-numeric: tabular-nums;
}

.p-auth__expiry.is-stale {
	color: var(--p-error);
}

.p-auth__resend {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--p-space-2);
	margin-top: var(--p-space-4);
	font-size: var(--p-text-micro);
	color: var(--p-text-muted);
}

.p-auth__resendbtn {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: var(--p-text-micro);
	color: var(--p-green-700);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.p-auth__resendbtn[disabled] {
	color: var(--p-gray-400);
	text-decoration: none;
	cursor: default;
}

/* ---- Done -------------------------------------------------------------- */

.p-auth__step--done {
	text-align: center;
	padding-block: var(--p-space-6);
}

.p-auth__tick {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0 auto var(--p-space-5);
	border-radius: 50%;
	background: var(--p-green-100);
	color: var(--p-green-900);
	animation: p-auth-tick 520ms var(--p-ease) both;
}

.p-auth__tick svg {
	width: 26px;
	height: 26px;
	stroke-width: 2.5;
}

@keyframes p-auth-tick {
	0% { transform: scale(0.4); opacity: 0; }
	60% { transform: scale(1.08); opacity: 1; }
	100% { transform: scale(1); }
}

/* ---- Footnotes ---------------------------------------------------------- */

.p-auth__legal {
	position: relative;
	z-index: 1;
	max-width: 40ch;
	margin: var(--p-space-5) auto 0;
	text-align: center;
	font-size: var(--p-text-micro);
	line-height: 1.6;
	color: var(--p-gray-400);
}

.p-auth__legal a {
	color: var(--p-text-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.p-auth__fallback {
	position: relative;
	z-index: 1;
	margin-top: var(--p-space-5);
	font-size: var(--p-text-micro);
}

.p-auth__fallback summary {
	cursor: pointer;
	color: var(--p-text-muted);
	text-align: center;
	list-style: none;
}

.p-auth__fallback summary::-webkit-details-marker {
	display: none;
}

.p-auth__fallback summary:hover {
	color: var(--p-green-900);
}

.p-auth__fallback form {
	margin-top: var(--p-space-5);
	padding: var(--p-space-5);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid var(--p-line-soft);
}

.p-auth__lost {
	text-align: center;
	margin-top: var(--p-space-3);
}

.p-auth__lost a {
	color: var(--p-text-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.p-auth__card,
	.p-auth__step.is-current,
	.p-auth__tick {
		animation: none;
	}

	.p-auth__leaf {
		animation: none;
	}
}

/* ======================================================================
   Checkout — steps, address, gift
   ====================================================================== */

/*
 * The five steps. Each is a card so the form reads as a sequence of decisions
 * rather than one long column of inputs. The numbers are decorative: the
 * headings are real h2s and the order is the DOM order.
 */
.p-co__step {
	padding: clamp(var(--p-space-4), 3vw, var(--p-space-6));
	border-radius: var(--p-radius-lg);
	background: var(--p-surface);
	border: 1px solid var(--p-line-soft);
	box-shadow: var(--p-shadow-card);
	margin-bottom: var(--p-space-4);
}

.p-co__steptitle {
	display: flex;
	align-items: center;
	gap: var(--p-space-3);
	margin: 0 0 var(--p-space-4);
	font-family: var(--p-font-serif);
	font-size: var(--p-text-h3);
	font-weight: 400;
	line-height: var(--p-leading-snug);
	color: var(--p-green-900);
}

.p-co__stepn {
	display: grid;
	place-items: center;
	width: 1.9rem;
	height: 1.9rem;
	flex: none;
	border-radius: 50%;
	background: var(--p-green-100);
	color: var(--p-green-700);
	font-family: var(--p-font-sans);
	font-size: var(--p-text-small);
	font-weight: 600;
	line-height: 1;
}

.p-co__fields {
	display: grid;
	gap: var(--p-space-4);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 599px) {
	.p-co__fields {
		grid-template-columns: minmax(0, 1fr);
	}
}

.p-co__fields > .form-row-wide,
.p-co__fields > .p-field:not(.form-row-first):not(.form-row-last) {
	grid-column: 1 / -1;
}

.p-co__fields > .clear {
	display: none;
}

.p-co__signed {
	display: flex;
	align-items: center;
	gap: var(--p-space-2);
	margin: 0 0 var(--p-space-4);
	padding: var(--p-space-3) var(--p-space-4);
	border-radius: var(--p-radius-md);
	background: var(--p-green-100);
	font-family: var(--p-font-sans);
	font-size: var(--p-text-small);
	color: var(--p-green-900);
}

.p-co__signed svg {
	width: 1rem;
	height: 1rem;
	flex: none;
	color: var(--p-success);
}

/* ---- Saved address ------------------------------------------------------ */

/*
 * A returning customer sees their address as a line of text, not seven filled
 * boxes. The fields are inside the <details>, which still submits them when
 * closed, so nothing about what reaches the server changes.
 */
.p-co__saved {
	border-radius: var(--p-radius-md);
}

.p-co__savedsummary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--p-space-3);
	padding: var(--p-space-4);
	border: 1px solid var(--p-line);
	border-radius: var(--p-radius-md);
	background: var(--p-ivory-100);
	cursor: pointer;
	list-style: none;
	transition: border-color var(--p-dur-ui) var(--p-ease);
}

.p-co__savedsummary::-webkit-details-marker {
	display: none;
}

.p-co__savedsummary:hover {
	border-color: var(--p-green-500);
}

.p-co__savedcard {
	display: flex;
	align-items: flex-start;
	gap: var(--p-space-3);
	min-width: 0;
}

.p-co__savedmark {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	flex: none;
	border-radius: var(--p-radius-md);
	background: var(--p-green-100);
	color: var(--p-green-700);
}

.p-co__savedmark svg {
	width: 1.1rem;
	height: 1.1rem;
}

.p-co__savedlabel {
	display: block;
	font-family: var(--p-font-sans);
	font-size: var(--p-text-micro);
	letter-spacing: var(--p-track-label);
	text-transform: uppercase;
	color: var(--p-text-muted);
}

.p-co__savedtext {
	display: block;
	margin-top: 2px;
	font-family: var(--p-font-sans);
	font-size: var(--p-text-small);
	line-height: var(--p-leading-snug);
	color: var(--p-text);
}

.p-co__savedchange {
	display: inline-flex;
	align-items: center;
	gap: var(--p-space-1);
	flex: none;
	font-family: var(--p-font-sans);
	font-size: var(--p-text-small);
	font-weight: 600;
	color: var(--p-green-700);
}

.p-co__savedchange svg {
	width: 1rem;
	height: 1rem;
	transition: transform var(--p-dur-ui) var(--p-ease);
}

.p-co__saved[open] .p-co__savedchange svg {
	transform: rotate(180deg);
}

.p-co__saved[open] .p-co__savedsummary {
	margin-bottom: var(--p-space-4);
	border-color: var(--p-green-500);
}

/* ---- Toggles ------------------------------------------------------------ */

/*
 * Used for "send it somewhere else", "add a card" and "wrap it too". A real
 * checkbox, visually replaced by a switch, so it remains keyboard operable and
 * announces its own state.
 */
.p-co__toggle {
	display: flex;
	align-items: flex-start;
	gap: var(--p-space-3);
	padding: var(--p-space-4);
	border-radius: var(--p-radius-md);
	border: 1px solid var(--p-line-soft);
	background: var(--p-ivory-100);
	cursor: pointer;
	transition:
		border-color var(--p-dur-ui) var(--p-ease),
		background-color var(--p-dur-ui) var(--p-ease);
}

.p-co__toggle:hover {
	border-color: var(--p-green-500);
}

.p-co__toggle input[type="checkbox"] {
	appearance: none;
	position: relative;
	width: 2.5rem;
	height: 1.4rem;
	flex: none;
	margin: 0.1rem 0 0;
	border-radius: var(--p-radius-pill);
	background: var(--p-gray-300);
	cursor: pointer;
	transition: background-color var(--p-dur-ui) var(--p-ease);
}

.p-co__toggle input[type="checkbox"]::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: calc(1.4rem - 4px);
	height: calc(1.4rem - 4px);
	border-radius: 50%;
	background: var(--p-white);
	box-shadow: 0 1px 3px rgba(30, 58, 46, 0.25);
	transition: transform var(--p-dur-ui) var(--p-ease);
}

.p-co__toggle input[type="checkbox"]:checked {
	background: var(--p-green-700);
}

.p-co__toggle input[type="checkbox"]:checked::after {
	transform: translateX(1.1rem);
}

.p-co__toggle input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--p-green-700);
	outline-offset: 2px;
}

.p-co__togglebody {
	min-width: 0;
}

.p-co__togglelabel {
	display: block;
	font-family: var(--p-font-sans);
	font-size: var(--p-text-small);
	font-weight: 600;
	color: var(--p-green-900);
}

.p-co__togglehint {
	display: block;
	margin-top: 2px;
	font-family: var(--p-font-sans);
	font-size: var(--p-text-micro);
	line-height: var(--p-leading-snug);
	color: var(--p-text-muted);
	text-wrap: pretty;
}

/* Woo's own script shows and hides this block from the checkbox. */
.shipping_address {
	margin-top: var(--p-space-4);
}

/* ---- Gift --------------------------------------------------------------- */

.p-checkout__giftbody {
	display: grid;
	gap: var(--p-space-4);
	margin-top: var(--p-space-4);
}

.p-checkout__giftbody[hidden] {
	display: none;
}

.p-giftpreview {
	display: flex;
	align-items: center;
	gap: var(--p-space-4);
	margin: 0;
	padding: var(--p-space-4);
	border-radius: var(--p-radius-md);
	background: var(--p-clay-100);
	border: 1px dashed color-mix(in srgb, var(--p-clay-500) 40%, transparent);
}

.p-giftpreview__art {
	width: 4rem;
	flex: none;
	color: var(--p-clay-600);
	opacity: 0.7;
}

.p-giftpreview__art svg {
	width: 100%;
	height: auto;
	display: block;
}

.p-giftpreview__cap {
	font-family: var(--p-font-sans);
	font-size: var(--p-text-small);
	color: var(--p-clay-600);
	text-wrap: pretty;
}

/* ======================================================================
   Checkout — coupon
   ====================================================================== */

.p-coupon {
	margin-top: var(--p-space-4);
	border-radius: var(--p-radius-md);
	border: 1px dashed var(--p-line);
	overflow: hidden;
}

.p-coupon__summary {
	display: flex;
	align-items: center;
	gap: var(--p-space-2);
	padding: var(--p-space-3) var(--p-space-4);
	cursor: pointer;
	list-style: none;
	font-family: var(--p-font-sans);
	font-size: var(--p-text-small);
	font-weight: 600;
	color: var(--p-green-700);
	transition: background-color var(--p-dur-ui) var(--p-ease);
}

.p-coupon__summary::-webkit-details-marker {
	display: none;
}

.p-coupon__summary:hover {
	background: var(--p-green-100);
}

.p-coupon__summary svg {
	width: 1rem;
	height: 1rem;
}

.p-coupon__mark {
	margin-left: auto;
	transition: transform var(--p-dur-ui) var(--p-ease);
}

.p-coupon[open] .p-coupon__mark {
	transform: rotate(180deg);
}

.p-coupon__body {
	display: flex;
	gap: var(--p-space-2);
	padding: 0 var(--p-space-4) var(--p-space-4);
	flex-wrap: wrap;
}

.p-coupon__body .p-input {
	flex: 1 1 8rem;
	min-width: 0;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* ======================================================================
   Checkout — delivery timeline
   ====================================================================== */

.p-eta {
	margin-top: var(--p-space-4);
	padding: var(--p-space-4);
	border-radius: var(--p-radius-md);
	background: var(--p-green-100);
}

.p-eta__head {
	display: flex;
	align-items: center;
	gap: var(--p-space-2);
	margin: 0 0 var(--p-space-4);
	font-family: var(--p-font-sans);
	font-size: var(--p-text-small);
	font-weight: 600;
	color: var(--p-green-900);
}

.p-eta__head svg {
	width: 1.1rem;
	height: 1.1rem;
	color: var(--p-green-700);
}

.p-eta__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--p-space-4);
	position: relative;
}

.p-eta__steps::before {
	content: "";
	position: absolute;
	left: 0.3rem;
	top: 0.5rem;
	bottom: 0.5rem;
	width: 2px;
	background: color-mix(in srgb, var(--p-green-500) 35%, transparent);
}

.p-eta__step {
	position: relative;
	padding-left: var(--p-space-5);
	min-width: 0;
}

.p-eta__dot {
	position: absolute;
	left: 0;
	top: 0.35rem;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: var(--p-green-700);
	box-shadow: 0 0 0 3px var(--p-green-100);
}

.p-eta__when {
	display: block;
	font-family: var(--p-font-sans);
	font-size: var(--p-text-small);
	font-weight: 600;
	color: var(--p-green-900);
}

.p-eta__what {
	display: block;
	margin-top: 2px;
	font-family: var(--p-font-sans);
	font-size: var(--p-text-micro);
	color: var(--p-text-muted);
	text-wrap: pretty;
}

.p-eta__note {
	margin: var(--p-space-4) 0 0;
	font-family: var(--p-font-sans);
	font-size: var(--p-text-micro);
	line-height: var(--p-leading-snug);
	color: var(--p-text-muted);
	text-wrap: pretty;
}

@media (prefers-reduced-motion: reduce) {
	.p-placeorder__spinner::before {
		animation-duration: 1.6s;
	}
}

/* ---- Cart and checkout page shell --------------------------------------- */

/*
 * The basket and the checkout are shortcode pages, and page.php skips the
 * editorial wrappers for them — correctly, because those wrappers cap at a
 * reading measure. What it did not do until now was give them anything in
 * place of it, so both ran edge to edge with no gutter.
 *
 * The horizontal side is `.p-container` in page.php, shared with the header and
 * the footer so the columns line up with them. This adds only the vertical
 * rhythm. It is asymmetric on purpose: less above, because a breadcrumb or the
 * header sits close over the heading, and a full section's worth below so the
 * pay button is never the last thing before the footer rule.
 */
.p-shoppage {
	padding-block: var(--p-space-6) var(--p-section-y);
}

@media (min-width: 1024px) {
	.p-shoppage {
		padding-block: var(--p-space-7) var(--p-section-y);
	}
}

/* ---- Cart and checkout page headings ------------------------------------ */

/*
 * These pages own their own heading now. page.php used to supply one, but it
 * came wrapped in `.p-prose`, which caps at a reading measure and squeezed both
 * layouts into about 722px — and on the cart it produced a second <h1>.
 */
.p-cartpage__head {
	margin-bottom: clamp(var(--p-space-5), 3vw, var(--p-space-6));
}

.p-cartpage__title {
	margin: 0;
	font-family: var(--p-font-serif);
	font-size: var(--p-text-h1);
	font-weight: 400;
	line-height: var(--p-leading-tight);
	color: var(--p-green-900);
	text-wrap: balance;
}

.p-cartpage__count {
	margin: var(--p-space-2) 0 0;
	font-family: var(--p-font-sans);
	font-size: var(--p-text-small);
	color: var(--p-text-muted);
}

/* ======================================================================
   The empty basket — "your little jungle is waiting"
   ======================================================================
   A still life that works with no JavaScript at all: the pot, the ring of
   ranges and the cards are all in the markup. Script only adds the growing.

   The centre shows one object at a time. The catalogue's plant photography is
   of plants already potted — a whole ceramic pot in every frame — so settling a
   photograph on top of a drawn pot puts two pots in the composition and reads
   as a mistake. The drawing and the photograph cross-fade instead: empty pot at
   rest, real plant when a range is chosen.
   ====================================================================== */

.p-jungle {
	--p-jungle-stage: clamp(260px, 46vw, 420px);
	--p-jungle-orbit: calc(var(--p-jungle-stage) / 2 + clamp(30px, 4vw, 54px));

	padding-block: var(--p-space-6) var(--p-section-y);
	text-align: center;
}

/* ---- The invitation ----------------------------------------------------- */

.p-jungle__head {
	max-width: 46ch;
	margin-inline: auto;
	margin-bottom: clamp(var(--p-space-6), 5vw, var(--p-space-7));
}

.p-jungle__eyebrow {
	margin: 0 0 var(--p-space-3);
	font-size: var(--p-text-micro);
	font-weight: 500;
	letter-spacing: var(--p-track-label);
	text-transform: uppercase;
	color: var(--p-green-500);
}

.p-jungle__title {
	margin: 0 0 var(--p-space-4);
	font-family: var(--p-font-serif);
	font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem);
	font-weight: 400;
	line-height: var(--p-leading-tight);
	letter-spacing: -0.015em;
	color: var(--p-green-900);
	text-wrap: balance;
}

.p-jungle__lede {
	margin: 0 auto var(--p-space-6);
	max-width: 46ch;
	font-size: var(--p-text-body);
	line-height: var(--p-leading-body);
	color: var(--p-text-muted);
	text-wrap: pretty;
}

/* A link that reads as the one thing to do, without shouting like a button. */
.p-jungle__cta {
	display: inline-flex;
	align-items: center;
	gap: var(--p-space-2);
	padding-bottom: var(--p-space-2);
	font-size: var(--p-text-small);
	font-weight: 600;
	color: var(--p-green-900);
	border-bottom: 1px solid var(--p-green-900);
	transition: gap var(--p-dur-ui) var(--p-ease), color var(--p-dur-ui) var(--p-ease);
}

.p-jungle__cta svg { width: 16px; height: 16px; }
.p-jungle__cta:hover { gap: var(--p-space-3); color: var(--p-green-700); }

.p-jungle__cta:focus-visible {
	outline: 2px solid var(--p-green-700);
	outline-offset: 4px;
	border-radius: var(--p-radius-sm);
}

/* ---- The stage ---------------------------------------------------------- */

/*
 * The pot and its ring share one square. Deriving the orbit radius from the
 * stage size is what keeps the ring concentric at every width instead of
 * needing a radius per breakpoint.
 */
.p-jungle__stage {
	position: relative;
	width: var(--p-jungle-stage);
	height: var(--p-jungle-stage);
	margin: 0 auto clamp(var(--p-space-7), 7vw, var(--p-space-9));
}

/* Light on a surface, not a shadow on a box. It is what stops the composition
   floating in the middle of the page. */
.p-jungle__stage::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 2%;
	width: 58%;
	height: 10%;
	transform: translateX(-50%);
	border-radius: 50%;
	background: radial-gradient(ellipse at 50% 50%, rgba(30, 58, 46, 0.18) 0%, transparent 70%);
	filter: blur(10px);
	pointer-events: none;
}

/* Both states occupy the same square and cross-fade. */
.p-jungle__pot {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
}

.p-jungle__vessel,
.p-jungle__plant {
	grid-area: 1 / 1;
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
}

.p-jungle__vessel {
	transition: opacity 480ms var(--p-ease), transform 480ms var(--p-ease);
}

.p-jungle__vessel .p-art {
	width: 72%;
	aspect-ratio: 1;
	background: none;
	border-radius: 0;
	color: var(--p-green-700);
}

.p-jungle__vessel .p-art__svg { width: 100%; opacity: 0.75; }

/* Once something is growing, the drawing steps aside rather than sitting
   behind the photograph. */
.p-jungle__stage.has-grown .p-jungle__vessel {
	opacity: 0;
	transform: scale(0.94);
}

.p-jungle__plant { pointer-events: none; }

.p-jungle__grown {
	grid-area: 1 / 1;
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	opacity: 0;
	transform: translateY(12px) scale(0.96);
	transform-origin: 50% 92%;
	transition: opacity 520ms var(--p-ease), transform 520ms var(--p-ease);
}

.p-jungle__grown img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	/*
	 * No blend mode.
	 *
	 * The packshots are shot on #f7f6f1 and the page is #f8f6f1 — one level
	 * apart in a single channel, which is invisible. Multiplying them together
	 * is what produced a visible pale box around the plant: two near-whites
	 * multiplied land around #ece9e3, far enough from the page to draw an edge
	 * exactly where the photograph should have had none.
	 */
}

.p-jungle__grown.is-grown { opacity: 1; transform: none; }

/* A range with no photograph grows its drawing instead, so every chip does
   something rather than four of five doing something. */
.p-jungle__grown--drawn .p-art {
	width: 62%;
	aspect-ratio: 1;
	background: none;
	border-radius: 0;
	color: var(--p-green-700);
}

.p-jungle__grown--drawn .p-art__svg { width: 100%; opacity: 0.9; }

/* ---- The ring ----------------------------------------------------------- */

.p-jungle__ring {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	z-index: 2;
}

/*
 * Each chip is pushed out along its own angle and then un-rotated, so it stays
 * upright while sitting on the circle. Two transforms, no trigonometry in the
 * stylesheet and none in script.
 */
.p-jungle__orbit {
	position: absolute;
	top: 50%;
	left: 50%;
	transform:
		rotate(var(--p-ring-angle))
		translate(var(--p-jungle-orbit))
		rotate(calc(var(--p-ring-angle) * -1));
}

.p-jungle__range {
	display: inline-flex;
	align-items: center;
	gap: var(--p-space-2);
	transform: translate(-50%, -50%);
	padding: 6px var(--p-space-4) 6px 6px;
	border: 1px solid var(--p-line-soft);
	border-radius: var(--p-radius-pill);
	background: var(--p-surface);
	white-space: nowrap;
	color: var(--p-green-900);
	/* Its own drift, offset per item so the ring never pulses in unison. */
	animation: p-jungle-drift 7s ease-in-out infinite;
	animation-delay: calc(var(--p-ring-i) * -1.3s);
	transition: border-color var(--p-dur-ui) var(--p-ease), box-shadow var(--p-dur-ui) var(--p-ease);
}

@keyframes p-jungle-drift {
	0%, 100% { translate: 0 0; }
	50%      { translate: 0 -6px; }
}

.p-jungle__icon {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	flex: none;
	border-radius: 50%;
	background: var(--p-green-100);
	color: var(--p-green-700);
	transition: background var(--p-dur-ui) var(--p-ease), color var(--p-dur-ui) var(--p-ease);
}

.p-jungle__icon svg { width: 14px; height: 14px; }
.p-jungle__label { font-size: var(--p-text-small); font-weight: 500; }

.p-jungle__count {
	font-size: var(--p-text-micro);
	color: var(--p-gray-400);
	font-variant-numeric: tabular-nums;
}

.p-jungle__range:hover,
.p-jungle__range:focus-visible,
.p-jungle__range.is-active {
	border-color: var(--p-green-500);
	box-shadow: var(--p-shadow-card);
}

.p-jungle__range:hover .p-jungle__icon,
.p-jungle__range:focus-visible .p-jungle__icon,
.p-jungle__range.is-active .p-jungle__icon {
	background: var(--p-green-900);
	color: var(--p-ivory-100);
}

.p-jungle__range:focus-visible {
	outline: 2px solid var(--p-green-700);
	outline-offset: 3px;
}

/* ---- Explore by category ------------------------------------------------ */

.p-jungle__explore { text-align: left; }

.p-jungle__subtitle {
	margin: 0 0 var(--p-space-5);
	font-family: var(--p-font-serif);
	font-size: var(--p-text-h3);
	font-weight: 400;
	color: var(--p-green-900);
}

.p-jungle__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--p-space-5) var(--p-space-4);
}

@media (min-width: 768px) {
	.p-jungle__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.p-jungle__cards {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: var(--p-space-5);
	}
}

/*
 * Small screens.
 *
 * Below about 600px the chips would collide on the circle, so they leave it and
 * become a row you push along with a thumb. The pot stays the focus and no
 * range is lost.
 */
@media (max-width: 599px) {
	.p-jungle { --p-jungle-stage: min(68vw, 280px); }

	.p-jungle__ring {
		position: static;
		display: flex;
		gap: var(--p-space-3);
		margin-top: var(--p-space-6);
		padding-inline: var(--p-gutter);
		margin-inline: calc(var(--p-gutter) * -1);
		scroll-padding-inline: var(--p-gutter);
		overflow: auto hidden;
		overscroll-behavior-inline: contain;
		scrollbar-width: none;
	}

	.p-jungle__ring::-webkit-scrollbar { display: none; }

	.p-jungle__orbit { position: static; transform: none; flex: none; }
	.p-jungle__range { transform: none; animation: none; }
	.p-jungle__stage { height: auto; aspect-ratio: 1; margin-bottom: var(--p-space-6); }
}

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

	.p-jungle__grown,
	.p-jungle__vessel,
	.p-jungle__cta { transition-duration: 1ms; }
}

/*
 * The photographer's credit, under the gallery.
 *
 * Quiet on purpose. It is a legal obligation rather than something a shopper
 * came for, so it sits at the smallest size on the page, in the muted ink, with
 * its links underlined only when they are reached — present and readable
 * without competing with the product.
 */
.p-credit {
	margin: var(--p-space-3) 0 0;
	font-size: var(--p-text-micro);
	line-height: var(--p-leading-body);
	color: var(--p-gray-400);
	text-wrap: pretty;
}

.p-credit a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 2px;
	transition: text-decoration-color var(--p-dur-ui) var(--p-ease), color var(--p-dur-ui) var(--p-ease);
}

.p-credit a:hover,
.p-credit a:focus-visible {
	color: var(--p-green-700);
	text-decoration-color: currentColor;
}

/* ---- Image credits page ------------------------------------------------- */

/*
 * A table of four columns that becomes four stacked lines on a phone. Set as a
 * grid rather than a <table> because the last column is a link and the first is
 * a heading — it reads as a list of records, not a spreadsheet.
 */
.p-credits {
	margin-top: var(--p-space-6);
	border-top: 1px solid var(--p-line-soft);
}

.p-credits__row {
	display: grid;
	gap: var(--p-space-1) var(--p-space-4);
	grid-template-columns: 1fr;
	padding: var(--p-space-4) 0;
	border-bottom: 1px solid var(--p-line-soft);
}

@media (min-width: 768px) {
	.p-credits__row {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr) minmax(0, 1fr) auto;
		align-items: baseline;
		gap: var(--p-space-4);
	}
}

.p-credits__row p {
	margin: 0;
}

.p-credits__subject {
	font-weight: 500;
	color: var(--p-green-900);
	font-size: var(--p-text-small);
}

.p-credits__by,
.p-credits__licence,
.p-credits__source {
	font-size: var(--p-text-small);
	color: var(--p-text-muted);
}

.p-credits__row a {
	color: var(--p-green-700);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.p-credits__row a:focus-visible {
	outline: 2px solid var(--p-green-700);
	outline-offset: 2px;
	border-radius: var(--p-radius-sm);
}
