/**
 * Component layer: atoms, cards and the persistent site chrome.
 */

/* ======================================================================
   Buttons
   ====================================================================== */

.p-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--p-space-2);
	min-height: 48px;
	padding: 0 var(--p-space-6);
	border-radius: var(--p-radius-pill);
	font-size: var(--p-text-small);
	font-weight: 500;
	letter-spacing: var(--p-track-btn);
	line-height: 1;
	text-align: center;
	border: 1px solid transparent;
	transition: background var(--p-dur-ui) var(--p-ease),
		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-btn:hover {
	transform: translateY(-1px);
}

.p-btn:active {
	transform: translateY(0);
}

.p-btn--primary {
	background: var(--p-green-700);
	color: var(--p-white);
}

.p-btn--primary:hover {
	background: var(--p-green-900);
}

.p-btn--secondary {
	border-color: var(--p-green-700);
	color: var(--p-green-700);
}

.p-btn--secondary:hover {
	background: var(--p-green-700);
	color: var(--p-white);
}

.p-btn--gold {
	background: var(--p-gold-500);
	color: var(--p-green-900);
}

.p-btn--gold:hover {
	background: #d9b980;
}

.p-btn--ghost {
	padding-inline: 0;
	min-height: 32px;
	color: var(--p-green-700);
	border-radius: 0;
	border-bottom: 1px solid var(--p-gold-500);
}

.p-btn--ghost:hover {
	color: var(--p-green-900);
	transform: none;
	border-bottom-color: var(--p-green-700);
}

.p-btn--sm {
	min-height: 38px;
	padding-inline: var(--p-space-4);
	font-size: var(--p-text-micro);
}

.p-btn--block {
	width: 100%;
}

.p-btn__icon {
	width: 16px;
	height: 16px;
}

.p-btn[disabled],
.p-btn.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

.p-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: var(--p-space-2);
	font-size: var(--p-text-small);
	font-weight: 500;
	color: var(--p-green-700);
	white-space: nowrap;
}

.p-link-arrow svg {
	width: 18px;
	height: 18px;
	transition: transform var(--p-dur-ui) var(--p-ease);
}

.p-link-arrow:hover svg {
	transform: translateX(4px);
}

.p-section--dark .p-link-arrow {
	color: var(--p-gold-500);
}

/* ======================================================================
   Icons, inputs
   ====================================================================== */

.p-icon {
	width: 20px;
	height: 20px;
	flex: none;
}

.p-icon--flip {
	transform: rotate(180deg);
}

.p-input {
	width: 100%;
	min-height: 48px;
	padding: 0 var(--p-space-4);
	background: var(--p-white);
	border: 1px solid var(--p-gray-300);
	border-radius: var(--p-radius-sm);
	font-size: var(--p-text-small);
	transition: border-color var(--p-dur-ui) var(--p-ease), box-shadow var(--p-dur-ui) var(--p-ease);
}

.p-input::placeholder {
	color: var(--p-gray-400);
}

.p-input:focus {
	outline: none;
	border-color: var(--p-green-700);
	box-shadow: 0 0 0 3px rgba(46, 86, 68, 0.12);
}

.p-iconbtn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--p-radius-pill);
	color: var(--p-green-900);
	transition: background var(--p-dur-ui) var(--p-ease);
}

.p-iconbtn:hover {
	background: rgba(46, 86, 68, 0.07);
}

.p-iconbtn__count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	display: grid;
	place-items: center;
	background: var(--p-green-700);
	color: var(--p-white);
	border-radius: var(--p-radius-pill);
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
}

.p-iconbtn__count[hidden],
.p-mobilebar__count[hidden] {
	display: none;
}

.p-iconbtn__count.is-pulsing {
	animation: p-pulse 500ms var(--p-ease);
}

@keyframes p-pulse {
	0% { transform: scale(1); }
	40% { transform: scale(1.35); }
	100% { transform: scale(1); }
}

/* ======================================================================
   Badge, price, rating
   ====================================================================== */

.p-badge {
	display: inline-block;
	padding: 5px 10px;
	border-radius: var(--p-radius-pill);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: var(--p-track-label);
	text-transform: uppercase;
	line-height: 1;
	background: var(--p-white);
	color: var(--p-green-900);
	border: 1px solid var(--p-gold-500);
}

.p-badge--green {
	background: var(--p-green-700);
	color: var(--p-white);
	border-color: var(--p-green-700);
}

.p-price {
	display: inline-flex;
	align-items: baseline;
	gap: var(--p-space-2);
	font-family: var(--p-font-sans);
}

.p-price__now {
	font-size: var(--p-text-h4);
	font-weight: 500;
	letter-spacing: -0.01em;
}

.p-price__was {
	font-size: var(--p-text-small);
	color: var(--p-gray-400);
}

.p-price__off {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: var(--p-track-label);
	text-transform: uppercase;
	color: var(--p-clay-600);
	white-space: nowrap;
}

.p-rating {
	display: inline-flex;
	align-items: center;
	gap: var(--p-space-2);
	margin-top: var(--p-space-2);
}

.p-rating__stars {
	display: inline-flex;
	gap: 1px;
	color: var(--p-gray-300);
}

.p-rating__star svg {
	width: 13px;
	height: 13px;
}

.p-rating__star.is-on {
	color: var(--p-gold-500);
}

.p-rating__star.is-on svg {
	fill: currentColor;
}

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

/* ======================================================================
   Illustration canvas
   ====================================================================== */

.p-art {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 4 / 5;
	background: var(--p-ivory-200);
	color: var(--p-green-700);
	border-radius: var(--p-radius-md);
	overflow: hidden;
}

.p-art__svg {
	width: 64%;
	height: auto;
	opacity: 0.82;
	transition: transform var(--p-dur-panel) var(--p-ease);
}

.p-art--sage {
	background: var(--p-green-100);
	color: var(--p-green-800);
}

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

.p-art--gold {
	background: var(--p-gold-100);
	color: var(--p-gold-600);
}

/* ======================================================================
   Product card
   ====================================================================== */

.p-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--p-surface);
	border: 1px solid var(--p-line-soft);
	border-radius: var(--p-radius-md);
	overflow: hidden;
	transition: box-shadow var(--p-dur-ui) var(--p-ease), border-color var(--p-dur-ui) var(--p-ease);
}

.p-card:hover {
	box-shadow: var(--p-shadow-card);
	border-color: var(--p-line);
}

/*
 * One ratio, card and product page.
 *
 * The card had no ratio of its own: photographs rendered at whatever shape the
 * file happened to be while the fallback illustration was 4:5, so a grid mixed
 * square, portrait and landscape tiles, and none of them matched the 1:1 the
 * product page shows. Square everywhere means the picture a shopper clicks is
 * the picture they land on.
 *
 * `contain` rather than `cover`, matching the gallery, for the same reason it
 * was chosen there — these are product shots on a plain ground, and cropping
 * one to fill a box cuts the leaves off the plant being sold.
 */
.p-card__media {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--p-ivory-200);
}

.p-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.p-card__media .p-art {
	aspect-ratio: auto;
	height: 100%;
	border-radius: 0;
}

.p-card:hover .p-art__svg {
	transform: scale(1.05) rotate(-1.5deg);
}

.p-card__badge {
	position: absolute;
	top: var(--p-space-3);
	left: var(--p-space-3);
}

.p-card__save {
	position: absolute;
	top: var(--p-space-3);
	right: var(--p-space-3);
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: var(--p-radius-pill);
	background: rgba(255, 255, 255, 0.9);
	color: var(--p-green-900);
	backdrop-filter: blur(6px);
	transition: color var(--p-dur-ui) var(--p-ease), transform var(--p-dur-ui) var(--p-ease);
}

.p-card__save svg {
	width: 17px;
	height: 17px;
}

.p-card__save:hover {
	transform: scale(1.08);
}

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

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

/* A small beat as it fills, so the click is acknowledged. */
@keyframes p-heart-pop {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.28); }
	100% { transform: scale(1); }
}

.p-card__save[aria-pressed="true"] svg,
.p-buy__save[aria-pressed="true"] svg {
	animation: p-heart-pop 320ms var(--p-ease);
}

@media (prefers-reduced-motion: reduce) {
	.p-card__save[aria-pressed="true"] svg,
	.p-buy__save[aria-pressed="true"] svg {
		animation: none;
	}
}

.p-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: var(--p-space-4) var(--p-space-4) var(--p-space-5);
}

.p-card__title {
	font-family: var(--p-font-sans);
	font-size: var(--p-text-h4);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.35;
}

.p-card__sub {
	margin-top: 4px;
	font-size: var(--p-text-micro);
	color: var(--p-text-muted);
}

.p-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--p-space-3);
	margin-top: auto;
	padding-top: var(--p-space-4);
}

.p-card__add {
	flex: none;
	padding: 9px 16px;
	border: 1px solid var(--p-green-700);
	border-radius: var(--p-radius-pill);
	font-size: var(--p-text-micro);
	font-weight: 500;
	color: var(--p-green-700);
	transition: background var(--p-dur-ui) var(--p-ease), color var(--p-dur-ui) var(--p-ease);
}

.p-card__add:hover {
	background: var(--p-green-700);
	color: var(--p-white);
}

.p-card--compact {
	flex-direction: row;
	align-items: center;
	gap: var(--p-space-3);
	border: 0;
	background: none;
}

.p-card--compact:hover {
	box-shadow: none;
}

.p-card--compact .p-card__media {
	width: 72px;
	flex: none;
	border-radius: var(--p-radius-sm);
	overflow: hidden;
}

.p-card--compact .p-art {
	aspect-ratio: 1;
}

.p-card--compact .p-card__save {
	display: none;
}

.p-card--compact .p-card__body {
	padding: 0;
}

.p-card--compact .p-card__foot {
	padding-top: var(--p-space-2);
}

/* ======================================================================
   Category card
   ====================================================================== */

.p-cat {
	display: block;
	text-align: center;
}

.p-cat__media {
	display: block;
	border-radius: var(--p-radius-md);
	overflow: hidden;
}

.p-cat .p-art {
	aspect-ratio: 1;
	transition: transform var(--p-dur-panel) var(--p-ease);
}

.p-cat:hover .p-art__svg {
	transform: scale(1.06);
}

/*
 * A photographed category.
 *
 * Square and cropped, matching the drawing's box exactly, so a rail of mixed
 * photographs and illustrations still lines up. The ivory ground shows while
 * the image loads and behind any photograph that does not quite fill the
 * square, which keeps the row from flickering as the cards arrive.
 */
.p-cat--photo .p-cat__media {
	background: var(--p-ivory-200);
}

.p-cat__img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform var(--p-dur-panel) var(--p-ease);
}

/*
 * A designed image is shown whole rather than cropped, on its own measured
 * background colour so there is no visible plate behind it. Same decision, same
 * measurement and same reasoning as the product grid — see card-image.php.
 */
.p-cat__media[data-fit="contain"] {
	background: var(--p-cat-ground, var(--p-ivory-200));
}

.p-cat__media[data-fit="contain"] .p-cat__img {
	object-fit: contain;
}

.p-cat:hover .p-cat__img {
	transform: scale(1.06);
}

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

	.p-cat:hover .p-cat__img {
		transform: none;
	}
}

.p-cat__body {
	display: block;
	margin-top: var(--p-space-3);
}

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

.p-cat__count {
	display: block;
	margin-top: 2px;
	font-size: var(--p-text-micro);
	color: var(--p-text-muted);
}

/* ======================================================================
   Journal card
   ====================================================================== */

.p-jcard__media {
	display: block;
	border-radius: var(--p-radius-md);
	overflow: hidden;
}

.p-jcard .p-art {
	aspect-ratio: 3 / 2;
}

.p-jcard__body {
	padding-top: var(--p-space-4);
}

.p-jcard__meta {
	display: flex;
	gap: var(--p-space-3);
	font-size: var(--p-text-micro);
	letter-spacing: var(--p-track-label);
	text-transform: uppercase;
	color: var(--p-green-500);
}

.p-jcard__title {
	margin-top: var(--p-space-2);
	font-size: var(--p-text-h3);
}

.p-jcard__title a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: var(--p-gold-500);
}

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

/* ======================================================================
   Review card
   ====================================================================== */

.p-review {
	display: flex;
	flex-direction: column;
	gap: var(--p-space-3);
	margin: 0;
	padding: var(--p-space-5);
	background: var(--p-white);
	border: 1px solid var(--p-line-soft);
	border-radius: var(--p-radius-md);
}

.p-review__stars {
	display: flex;
	gap: 2px;
	color: var(--p-gray-300);
}

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

.p-review__star.is-on {
	color: var(--p-gold-500);
}

.p-review__star.is-on svg {
	fill: currentColor;
}

.p-review__quote {
	margin: 0;
	font-family: var(--p-font-serif);
	font-size: 1.25rem;
	line-height: 1.45;
	color: var(--p-green-900);
}

.p-review__by {
	margin-top: auto;
	font-size: var(--p-text-micro);
}

.p-review__author {
	display: block;
	font-weight: 600;
}

.p-review__meta {
	display: block;
	color: var(--p-text-muted);
}

/* ======================================================================
   Announcement bar
   ====================================================================== */

.p-announce {
	position: relative;
	background: var(--p-green-900);
	color: var(--p-ivory-100);
	font-size: var(--p-text-micro);
	letter-spacing: 0.04em;
}

.p-announce__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--p-space-2);
	min-height: var(--p-announce-h);
}

.p-announce__track {
	position: relative;
	flex: 1;
	max-width: 520px;
	height: 1.7em;
	overflow: hidden;
	text-align: center;
}

.p-announce__item {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	opacity: 0;
	transform: translateY(60%);
	/* Outgoing slide clears quickly; incoming waits, so the two never overlap. */
	transition: opacity 140ms var(--p-ease), transform 140ms var(--p-ease);
}

.p-announce__item.is-active {
	opacity: 1;
	transform: none;
	transition: opacity 260ms var(--p-ease) 160ms, transform 260ms var(--p-ease) 160ms;
}

.p-announce__nav {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	color: rgba(248, 246, 241, 0.6);
	border-radius: var(--p-radius-pill);
}

.p-announce__nav:hover {
	color: var(--p-ivory-100);
}

.p-announce__nav svg {
	width: 13px;
	height: 13px;
}

.p-announce__close {
	position: absolute;
	top: 50%;
	right: var(--p-gutter);
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	color: rgba(248, 246, 241, 0.55);
}

.p-announce__close:hover {
	color: var(--p-ivory-100);
}

.p-announce__close svg {
	width: 13px;
	height: 13px;
}

@media (max-width: 767px) {
	.p-announce__nav,
	.p-announce__close {
		display: none;
	}
}

/* ======================================================================
   Header
   ====================================================================== */

/*
 * The header is a set of links floating on the page, not a bar laid over it.
 * There is no plate: no background, no blur, no border. What is left is the
 * wordmark, the navigation and the icons, sitting directly on whatever is
 * behind them.
 *
 * It hides itself as you read and returns when you reach for it — pointer to
 * the top of the window, a scroll back up, or a keyboard focus landing inside
 * it. See initHeader() in assets/js/modules/ui.js.
 */
.p-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: var(--p-z-header);
	background: transparent;
	border-bottom: 1px solid transparent;
	transform: translateY(0);
	transition:
		transform 380ms var(--p-ease),
		opacity 280ms var(--p-ease);
}

/*
 * Retracted. Pointer-events go with it so the invisible header can never
 * swallow a click meant for the page underneath.
 */
.p-header.is-away {
	transform: translateY(-100%);
	opacity: 0;
	pointer-events: none;
}

/*
 * Legibility without a plate. A very soft top-down scrim keeps the links
 * readable over a busy image; it is far lighter than a filled bar and reads as
 * shading rather than as furniture.
 */
.p-header::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: -1;
	background: linear-gradient(to bottom, rgba(20, 48, 24, 0.28), transparent);
	opacity: 0;
	transition: opacity var(--p-dur-ui) var(--p-ease);
}

.p-body--immersive .p-header::before {
	opacity: 1;
}

/* Past the hero the page is light again, so the links go back to ink and the
   scrim is not needed. */
.p-header.is-onlight::before {
	opacity: 0;
}

.p-header__inner {
	display: flex;
	align-items: center;
	gap: var(--p-space-3);
	min-height: var(--p-header-h);
}

.p-header__brand {
	flex: 1;
}

.p-header__nav {
	display: none;
}

.p-header__actions {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-left: auto;
}

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

	.p-header__brand {
		flex: none;
	}

	.p-header__nav {
		display: block;
		flex: 1;
		margin-left: var(--p-space-7);
	}
}

.p-nav {
	display: flex;
	align-items: stretch;
	gap: var(--p-space-6);
}

/*
 * Nav items span the full height of the header so there is no dead strip
 * between a link and the mega panel that hangs off the header's bottom edge.
 * Without this the pointer leaves the trigger before it reaches the menu, and
 * the menu is unreachable however forgiving the close delay is.
 */
.p-nav__item {
	display: flex;
	align-items: center;
}

.p-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding-block: var(--p-space-2);
	font-size: var(--p-text-small);
	font-weight: 500;
	color: var(--p-green-900);
	position: relative;
}

.p-nav__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--p-gold-500);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--p-dur-ui) var(--p-ease);
}

.p-nav__link:hover::after,
.p-nav__link[aria-expanded="true"]::after {
	transform: scaleX(1);
}

.p-nav__caret {
	width: 13px;
	height: 13px;
	transition: transform var(--p-dur-ui) var(--p-ease);
}

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

/* ---- Logo ---- */

.p-logo {
	display: inline-flex;
	align-items: center;
	gap: var(--p-space-2);
	color: var(--p-green-900);
}

/* Height-driven: width follows the intrinsic 291×180 ratio, so no CLS. */
.p-logo__img {
	height: 42px;
	width: auto;
}

@media (min-width: 1024px) {
	.p-logo__img {
		height: 52px;
	}
}

.p-logo--sm .p-logo__img { height: 34px; }
.p-logo--lg .p-logo__img { height: 58px; }

.p-logo__mark svg {
	width: 30px;
	height: 30px;
}

.p-logo__word {
	font-family: var(--p-font-serif);
	font-size: 1.6rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1;
}

.p-logo--sm .p-logo__mark svg { width: 24px; height: 24px; }
.p-logo--sm .p-logo__word { font-size: 1.3rem; }
.p-logo--lg .p-logo__mark svg { width: 38px; height: 38px; }
.p-logo--lg .p-logo__word { font-size: 2rem; }

.p-logo--light {
	color: var(--p-ivory-100);
}

/* ---- Mega menu ---- */

.p-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--p-white);
	border-top: 1px solid var(--p-line-soft);
	box-shadow: var(--p-shadow-card);
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity var(--p-dur-ui) var(--p-ease), transform var(--p-dur-ui) var(--p-ease);
}

.p-mega.is-open {
	opacity: 1;
	transform: none;
}

/*
 * Column count is not fixed any more.
 *
 * This was `repeat(3, 1fr) 1.2fr`, written when the menu had exactly three
 * columns and the feature panel. It now has five — Plants, Seeds, Tools, Gifts,
 * Corporate Gifting — and a hard-coded count silently crushes the extras into
 * the last track. `auto-fit` lets the row take however many columns the menu
 * actually has, and the feature panel claims its own width at the end.
 */
/*
 * Shorter, so the menu sits under the header rather than replacing the page.
 *
 * Padding was `--p-space-7` top and bottom — 96px of air around a panel that
 * was already nine rows tall — and with six columns the whole thing covered
 * most of a laptop window on open. Two thirds of that, plus tighter rows and a
 * six-link cap per column in pauda_demo_megamenu(), brings it to roughly a
 * third of its old height.
 *
 * `max-height` is a floor under the worst case rather than a layout tool: if
 * the catalogue ever grows a column past what the window can hold, the panel
 * scrolls instead of running off the bottom of the screen.
 */
.p-mega__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: var(--p-space-5) var(--p-space-5);
	align-items: start;
	padding-block: var(--p-space-6);
	max-height: calc(100svh - var(--p-header-h) - var(--p-space-6));
	overflow-y: auto;
	overscroll-behavior: contain;
}

.p-mega__feature {
	grid-column: span 2;
}

@media (max-width: 1200px) {
	/* The feature panel is the first thing to go when the columns get tight —
	   it is decoration, and the navigation is not. */
	.p-mega__feature {
		display: none;
	}
}

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

/*
 * Rows sit closer together than they did. At `--p-space-3` a six-item column
 * carried 60px of gap on its own; the list reads as a group at this spacing
 * and the panel loses another 20px per column.
 */
.p-mega__links {
	display: grid;
	gap: var(--p-space-2);
	font-size: var(--p-text-small);
	line-height: 1.45;
}

.p-mega__links a:hover {
	color: var(--p-green-700);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: var(--p-gold-500);
}

/*
 * Scaled to the shorter panel. At 96px of artwork plus 16px of padding the
 * feature card was taller than the columns beside it and set the panel's
 * height on its own; `align-items: start` on the grid stops it stretching and
 * keeps its top edge level with the column headings.
 */
.p-mega__feature {
	display: flex;
	gap: var(--p-space-3);
	align-items: center;
	padding: var(--p-space-3);
	background: var(--p-ivory-100);
	border-radius: var(--p-radius-md);
}

.p-mega__feature .p-art {
	width: 68px;
	flex: none;
	aspect-ratio: 1;
}

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

/* ======================================================================
   Sheets: mobile nav, search, cart drawer
   ====================================================================== */

.p-sheet {
	position: fixed;
	inset: 0;
	z-index: var(--p-z-panel);
}

.p-sheet__scrim {
	position: absolute;
	inset: 0;
	background: rgba(30, 58, 46, 0.32);
	opacity: 0;
	transition: opacity var(--p-dur-panel) var(--p-ease);
}

.p-sheet.is-open .p-sheet__scrim {
	opacity: 1;
}

.p-sheet__panel,
.p-drawer,
.p-search {
	position: absolute;
	background: var(--p-ivory-100);
	box-shadow: var(--p-shadow-float);
	transition: transform var(--p-dur-panel) var(--p-ease);
}

/* Left sheet: mobile nav */
.p-sheet__panel {
	top: 0;
	bottom: 0;
	left: 0;
	width: min(92vw, 380px);
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
}

.p-sheet.is-open .p-sheet__panel {
	transform: none;
}

/* Right sheet: cart */
.p-drawer {
	top: 0;
	bottom: 0;
	right: 0;
	width: min(94vw, 440px);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
}

.p-sheet.is-open .p-drawer {
	transform: none;
}

/* Top sheet: search */
.p-search {
	top: 0;
	left: 0;
	right: 0;
	padding-block: var(--p-space-5) var(--p-space-7);
	transform: translateY(-100%);
}

.p-sheet.is-open .p-search {
	transform: none;
}

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

.p-sheet__body {
	flex: 1;
	overflow-y: auto;
	padding: var(--p-space-5);
}

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

/* ---- Mobile nav ---- */

.p-mnav {
	display: grid;
	gap: var(--p-space-1);
}

.p-mnav__toggle,
.p-mnav__single a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding-block: var(--p-space-3);
	font-family: var(--p-font-serif);
	font-size: 1.4rem;
	color: var(--p-green-900);
	border-bottom: 1px solid var(--p-line-soft);
}

.p-mnav__toggle svg {
	width: 18px;
	height: 18px;
	transition: transform var(--p-dur-ui) var(--p-ease);
}

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

.p-mnav__panel {
	display: grid;
	gap: var(--p-space-3);
	padding: var(--p-space-4) 0 var(--p-space-4) var(--p-space-4);
	font-size: var(--p-text-small);
}

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

/* ---- Search ---- */

.p-search__form {
	display: flex;
	align-items: center;
	gap: var(--p-space-3);
	padding-bottom: var(--p-space-4);
	border-bottom: 1px solid var(--p-line);
}

.p-search__icon {
	color: var(--p-green-500);
	flex: none;
}

.p-search__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: none;
	font-family: var(--p-font-serif);
	font-size: clamp(1.4rem, 3vw, 2rem);
	padding-block: var(--p-space-2);
}

.p-search__input:focus {
	outline: none;
}

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

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

.p-search__suggestions {
	display: grid;
	gap: var(--p-space-3);
	font-size: var(--p-text-small);
}

.p-search__suggestions button:hover {
	color: var(--p-green-700);
	text-decoration: underline;
	text-underline-offset: 4px;
}

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

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

/* ---- Cart drawer ---- */

.p-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--p-space-4) var(--p-space-5);
}

.p-drawer__title {
	font-size: var(--p-text-h3);
}

.p-ship {
	padding: var(--p-space-3) var(--p-space-5) var(--p-space-4);
	background: var(--p-green-100);
}

.p-ship__text {
	font-size: var(--p-text-micro);
	margin-bottom: var(--p-space-2);
	color: var(--p-green-900);
}

/*
 * The tick belongs at the head of the sentence, not above it.
 *
 * base.css resets every `svg` to `display: block` — right for the icons that
 * sit alone in a button, wrong for one used as a piece of punctuation inside a
 * line of text, which is what put the checkmark on a line of its own.
 *
 * `inline-block` rather than making the paragraph a flex row: in the
 * not-yet-earned state this same paragraph holds "₹500 away from free
 * shipping", where the amount is its own `<span>` from `wc_price()`. Under
 * flex that span and the words after it become separate flex items and the
 * sentence stops being a sentence.
 */
.p-ship__text .p-icon {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: var(--p-space-1);
	/* Sits the tick on the text's optical centre rather than its baseline. */
	vertical-align: -0.18em;
}

.p-ship__track {
	height: 3px;
	background: rgba(46, 86, 68, 0.16);
	border-radius: var(--p-radius-pill);
	overflow: hidden;
}

.p-ship__fill {
	display: block;
	height: 100%;
	width: 0;
	background: var(--p-green-700);
	transition: width var(--p-dur-panel) var(--p-ease);
}

.p-ship.is-earned .p-ship__fill {
	background: var(--p-gold-500);
}

.p-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: var(--p-space-5);
}

.p-lines {
	display: grid;
	gap: var(--p-space-5);
}

.p-line {
	position: relative;
	display: grid;
	grid-template-columns: 76px 1fr;
	gap: var(--p-space-4);
}

.p-line__media .p-art {
	aspect-ratio: 1;
}

.p-line__title {
	font-size: var(--p-text-small);
	font-weight: 500;
	padding-right: var(--p-space-5);
}

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

.p-line__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: var(--p-space-3);
}

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

.p-line__remove {
	position: absolute;
	top: 0;
	right: 0;
	color: var(--p-gray-400);
}

.p-line__remove svg {
	width: 15px;
	height: 15px;
}

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

.p-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--p-gray-300);
	border-radius: var(--p-radius-pill);
}

.p-qty__btn {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	color: var(--p-green-900);
}

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

.p-qty__input {
	width: 30px;
	border: 0;
	background: none;
	text-align: center;
	font-size: var(--p-text-small);
	-moz-appearance: textfield;
}

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

.p-qty__input:focus {
	outline: none;
}

.p-drawer__empty {
	padding: var(--p-space-7) 0;
	text-align: center;
	color: var(--p-text-muted);
	font-size: var(--p-text-small);
}

.p-drawer__coupon {
	display: flex;
	gap: var(--p-space-2);
	margin-top: var(--p-space-6);
}

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

.p-rec {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	gap: var(--p-space-3);
	margin-top: var(--p-space-4);
}

.p-rec__media .p-art {
	aspect-ratio: 1;
	border-radius: var(--p-radius-sm);
}

.p-rec__title {
	font-size: var(--p-text-micro);
	font-weight: 500;
}

.p-rec .p-price__now {
	font-size: var(--p-text-small);
}

.p-drawer__foot {
	padding: var(--p-space-5);
	border-top: 1px solid var(--p-line-soft);
	background: var(--p-white);
}

.p-drawer__totals {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	font-size: var(--p-text-small);
}

.p-drawer__totals strong {
	font-size: var(--p-text-h4);
	font-weight: 600;
}

.p-drawer__note {
	margin: var(--p-space-1) 0 var(--p-space-4);
	font-size: var(--p-text-micro);
	color: var(--p-text-muted);
}

.p-drawer__link {
	display: block;
	margin-top: var(--p-space-3);
	text-align: center;
	font-size: var(--p-text-micro);
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--p-text-muted);
}

.p-drawer__trust {
	display: flex;
	justify-content: center;
	gap: var(--p-space-5);
	margin-top: var(--p-space-4);
	font-size: 10px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--p-text-muted);
}

.p-drawer__trust li {
	display: flex;
	align-items: center;
	gap: 5px;
}

.p-drawer__trust svg {
	width: 13px;
	height: 13px;
}

/* ======================================================================
   Toasts
   ====================================================================== */

.p-toasts {
	position: fixed;
	left: 50%;
	bottom: calc(env(safe-area-inset-bottom) + 80px);
	transform: translateX(-50%);
	z-index: var(--p-z-toast);
	display: grid;
	gap: var(--p-space-2);
	width: max-content;
	max-width: 92vw;
	pointer-events: none;
}

@media (min-width: 768px) {
	.p-toasts {
		left: auto;
		right: var(--p-space-6);
		bottom: var(--p-space-6);
		transform: none;
	}
}

.p-toast {
	display: flex;
	align-items: center;
	gap: var(--p-space-3);
	padding: var(--p-space-3) var(--p-space-5);
	background: var(--p-green-900);
	color: var(--p-ivory-100);
	border-radius: var(--p-radius-pill);
	font-size: var(--p-text-small);
	box-shadow: var(--p-shadow-float);
	animation: p-toast-in 320ms var(--p-ease);
}

.p-toast svg {
	width: 16px;
	height: 16px;
	color: var(--p-gold-500);
}

.p-toast.is-out {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 220ms var(--p-ease), transform 220ms var(--p-ease);
}

@keyframes p-toast-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

/* ======================================================================
   Mobile bottom bar
   ====================================================================== */

.p-mobilebar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: var(--p-z-header);
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	background: rgba(248, 246, 241, 0.94);
	backdrop-filter: blur(12px);
	border-top: 1px solid var(--p-line-soft);
	padding-bottom: env(safe-area-inset-bottom);
}

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

.p-mobilebar__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-height: 58px;
	font-size: 10px;
	letter-spacing: 0.03em;
	color: var(--p-green-900);
}

.p-mobilebar__item svg {
	width: 19px;
	height: 19px;
}

.p-mobilebar__count {
	position: absolute;
	top: 8px;
	right: calc(50% - 18px);
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	display: grid;
	place-items: center;
	background: var(--p-green-700);
	color: var(--p-white);
	border-radius: var(--p-radius-pill);
	font-size: 9px;
	font-weight: 600;
}

body {
	padding-bottom: 58px;
}

@media (min-width: 1024px) {
	body {
		padding-bottom: 0;
	}
}

/* ======================================================================
   Breadcrumbs, pagination, footer
   ====================================================================== */

/*
 * The breadcrumb is a thin line of micro type, and it was carrying 16px of air
 * above and below — more space than the text itself occupies. Its bottom
 * padding also stacks with the section padding underneath, so every pixel here
 * was counted twice on the way to the heading.
 */
.p-crumbs {
	padding-block: var(--p-space-3) var(--p-space-2);
	font-size: var(--p-text-micro);
	color: var(--p-text-muted);
}

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

.p-crumbs li + li::before {
	content: "/";
	margin-right: var(--p-space-2);
	color: var(--p-gray-300);
}

.p-crumbs a:hover {
	color: var(--p-green-700);
}

/*
 * `.woocommerce-pagination` rides along with all of this. The shop archive no
 * longer prints one — catalog.php unhooks it — but a `[products]` shortcode or
 * any loop the theme does not own can still emit it, and with Woo's stylesheet
 * dequeued site-wide it would arrive with no layout at all.
 */
.p-pagination,
.woocommerce-pagination {
	margin-top: var(--p-space-7);
	text-align: center;
	font-size: var(--p-text-small);
}

/*
 * One row, whichever markup WordPress hands us.
 *
 * Pagination reaches this class in two shapes. `paginate_links( 'type' =>
 * 'list' )` — the shop archive and the review list — returns a
 * `<ul class="page-numbers">` of `<li>`; `the_posts_pagination()` — the journal
 * — returns `<nav class="navigation pagination"><div class="nav-links">` of bare
 * anchors. Only the second was ever laid out, because its anchors are inline.
 *
 * The list form had no rule at all: WooCommerce's stylesheet is dequeued and it
 * is the one that would normally lay that list out, so every `<li>` stayed a
 * block and the page numbers ran straight down the page in a column. Both forms
 * are now the same flex row.
 */
.p-pagination ul,
.p-pagination ul.page-numbers,
.p-pagination .nav-links,
.woocommerce-pagination ul,
.woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--p-space-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.p-pagination li,
.woocommerce-pagination li {
	display: flex;
	margin: 0;
}

/*
 * The links and the current marker are pills — but not the `<ul>`, which
 * carries `page-numbers` too. An unqualified `.page-numbers` here also caught
 * the list itself and squeezed the whole row into one 38px box.
 */
.p-pagination a.page-numbers,
.p-pagination span.page-numbers,
.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding: 0 var(--p-space-2);
	border-radius: var(--p-radius-pill);
}

.p-pagination .current,
.woocommerce-pagination .current {
	background: var(--p-green-700);
	color: var(--p-white);
}

.p-footer {
	background: var(--p-green-900);
	color: rgba(248, 246, 241, 0.78);
	/* Trimmed from 8/6. The footer is the last thing on the page, not a
	   section of its own, and it was taller than some of the content above it. */
	padding-block: var(--p-space-6) var(--p-space-5);
	font-size: var(--p-text-small);
}

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

@media (min-width: 768px) {
	/*
	 * One horizontal band, filling the full width.
	 *
	 * This was `repeat(4, 1fr)` after the brand — five tracks — while the
	 * footer only ever renders four things: the brand, the two halves of the
	 * footer menu, and the contact column. The fifth track was always empty,
	 * which is why the right third of the footer looked abandoned.
	 *
	 * `auto-fit` was the first fix and is the wrong tool here: mixing it with
	 * an `fr` first track makes the repetition count depend on a width that is
	 * itself being distributed, so the result is hard to predict. Four explicit
	 * `fr` tracks are deterministic and, being all `fr`, consume exactly 100%
	 * of the row with nothing left over.
	 *
	 * `minmax(0, 1fr)` rather than `1fr` so a long link cannot push its column
	 * wider than its share and reopen a gap somewhere else.
	 */
	.p-footer__top {
		grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
		gap: var(--p-space-5);
		align-items: start;
	}
}

/*
 * The brand column carries the only prose in the footer, so it is the one that
 * decides how tall the band is. A wider measure means fewer lines, which pulls
 * the whole footer up rather than leaving the three link columns short beside
 * a tall paragraph.
 */
.p-footer__note {
	max-width: 40ch;
	margin-top: var(--p-space-3);
	font-size: var(--p-text-small);
	line-height: 1.55;
}

.p-footer__title {
	color: var(--p-ivory-100);
	font-size: var(--p-text-micro);
	font-weight: 600;
	letter-spacing: var(--p-track-label);
	text-transform: uppercase;
	margin-bottom: var(--p-space-3);
}

.p-footer__col ul {
	display: grid;
	gap: var(--p-space-2);
}

.p-footer__col a:hover {
	color: var(--p-gold-500);
}

.p-social {
	display: flex;
	gap: var(--p-space-2);
	margin-top: var(--p-space-4);
}

.p-social a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(248, 246, 241, 0.2);
	border-radius: var(--p-radius-pill);
	transition: border-color var(--p-dur-ui) var(--p-ease), color var(--p-dur-ui) var(--p-ease);
}

.p-social a:hover {
	border-color: var(--p-gold-500);
	color: var(--p-gold-500);
}

.p-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--p-space-4);
	margin-top: var(--p-space-8);
	padding-top: var(--p-space-5);
	border-top: 1px solid rgba(248, 246, 241, 0.12);
	font-size: var(--p-text-micro);
}

.p-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: var(--p-space-4);
}

.p-footer__legal a:hover {
	color: var(--p-gold-500);
}

/* ======================================================================
   Universal depth for product imagery
   ======================================================================
   Every plant on the site sits in the page rather than on it: a soft
   contact shadow under the pot, a slight lift and scale on hover. Only
   transform and opacity animate, so it stays on the compositor.
   ====================================================================== */

.p-card__media {
	position: relative;
	transform: translateZ(0);
}

/* The contact shadow. An ellipse under the pot, not a box shadow on the
   card — it reads as the plant standing on a surface. */
.p-card__media::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 5%;
	width: 52%;
	height: 7%;
	transform: translateX(-50%) scale(1);
	border-radius: 50%;
	background: radial-gradient(ellipse at 50% 50%, rgba(30, 58, 46, 0.2) 0%, transparent 70%);
	filter: blur(6px);
	opacity: 0.85;
	transition:
		transform 420ms var(--p-ease),
		opacity 420ms var(--p-ease);
	pointer-events: none;
	z-index: 0;
}

.p-card__media img,
.p-card__media .p-art {
	position: relative;
	z-index: 1;
	transition: transform 420ms var(--p-ease);
	will-change: transform;
}

.p-card:hover .p-card__media img,
.p-card:hover .p-card__media .p-art {
	transform: scale(1.04) translateY(-2px);
}

/* Shadow spreads and softens as the plant lifts. */
.p-card:hover .p-card__media::before {
	transform: translateX(-50%) scale(1.12);
	opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
	.p-card__media img,
	.p-card__media .p-art,
	.p-card__media::before {
		transition: none;
	}

	.p-card:hover .p-card__media img,
	.p-card:hover .p-card__media .p-art {
		transform: none;
	}
}

/*
 * The solid state.
 *
 * The header is transparent while it is over the hero, and becomes a real white
 * bar once the page has scrolled past it. Before this the header was
 * permanently transparent — `is-onlight` only removed the hero scrim, it never
 * painted a background — so on every inner page the navigation floated over
 * whatever it happened to be crossing.
 *
 * It still retracts on scroll-down and returns on scroll-up; `is-solid` only
 * decides how it looks while it is showing.
 */
.p-header.is-solid {
	background: color-mix(in srgb, var(--p-surface) 88%, transparent);
	border-bottom-color: var(--p-line-soft);
	backdrop-filter: blur(14px) saturate(1.4);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	box-shadow: 0 1px 12px rgba(30, 58, 46, 0.05);
}

/* Over the hero the links are light; on the white bar they are ink. */
.p-header.is-solid .p-header__link,
.p-header.is-solid .p-iconbtn,
.p-header.is-solid .p-header__brand {
	color: var(--p-text);
}

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

/* ---- Logo, on a header with two backgrounds ---------------------------- */

/*
 * The header is transparent over the hero and a white bar after it, so one mark
 * cannot serve both. Both files are in the document and stacked; only one is
 * ever visible.
 */
.p-logo--auto {
	position: relative;
	display: inline-grid;
}

.p-logo--auto .p-logo__img {
	grid-area: 1 / 1;
	transition: opacity var(--p-dur-ui) var(--p-ease);
}

/*
 * Pure white, not the ivory the knockout file happens to be. Driving it through
 * brightness(0) first flattens the artwork to black, then invert(1) takes it to
 * #fff — so this stays white even if the logo file is replaced with different
 * artwork later.
 */
.p-logo--auto .p-logo__img--light {
	filter: brightness(0) invert(1);
	opacity: 1;
}

.p-logo--auto .p-logo__img--dark {
	opacity: 0;
}

/* On the white bar the ink mark takes over. */
.p-header.is-solid .p-logo--auto .p-logo__img--light {
	opacity: 0;
}

.p-header.is-solid .p-logo--auto .p-logo__img--dark {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.p-logo--auto .p-logo__img {
		transition-duration: 1ms;
	}
}
