/*!
 * Bhoo Agrocare — shop surfaces (enqueued only on WooCommerce pages).
 *
 * A third stylesheet rather than more weight in main.css, for the same reason
 * home.css exists: none of this is needed on the ~90% of URLs that are not the
 * shop. Tokens and the shared product card live in main.css.
 *
 * WooCommerce's own woocommerce-layout.css is dequeued on product archives,
 * where this file owns the grid, and kept on single products, where Woo's
 * gallery depends on it — hence the width overrides in the product block.
 *
 * Source order: archive -> single product -> rows -> cart / checkout / account
 * -> responsive (every breakpoint, one block per condition, widest first).
 */

/* ==========================================================================
   Archive — shop, category, tag, attribute
   ========================================================================== */

.shop__head { padding: clamp(22px, 3.5vw, 40px) 0 clamp(14px, 2vw, 22px); }
.shop__title { margin: 12px 0 0; font-size: clamp(26px, 3.6vw, 40px); }
.shop__intro { max-width: 70ch; color: var(--ink-2); }
.shop__intro p { margin: 12px 0 0; }

/* --------------------------------------------------------------- banner */

/* The main Products page opens with a 3:1 artwork of the range. Its left third is
   kept clear, so the copy is live text positioned over it: every size below is in
   cqw of the stage, measured off the 2170 × 725 artwork, which keeps text and
   picture locked together as the viewport changes. The greens are sampled from the
   approved mockup; no token covers them. The stacked layout for narrow screens is
   in the responsive section. */
.shero {
	--shero-sky: #dbe6ea;
	--shero-ink: var(--g-950);
	--shero-green: #2b7d30;
	--shero-btn: #0a7132;
	position: relative;
	overflow: hidden;
	background: var(--shero-sky);
}

.shero__stage {
	position: relative;
	max-width: 2560px;
	margin-inline: auto;
	aspect-ratio: 2170 / 725;
	container-type: inline-size;
}

.shero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
}

.shero__copy {
	position: absolute;
	top: 4.7cqw;
	left: 13.7cqw;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 30cqw;
}

.shero__crumbs {
	display: flex;
	align-items: center;
	gap: .4cqw;
	font-size: max(12px, .85cqw);
}
.shero__crumbs-icon { width: 1.3cqw; height: 1.3cqw; min-width: 16px; min-height: 16px; color: #3f9a2c; }
.shero__crumbs .crumbs { gap: .55cqw; color: #566b5b; font-size: inherit; }
.shero__crumbs .crumbs a { color: #407c36; font-weight: 500; }
.shero__crumbs .crumbs a:hover { color: var(--g-700); }
.shero__crumbs .crumbs__sep { color: #8a9a8f; }

.shero__title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: .5cqw 0 0;
	letter-spacing: -.02em;
	line-height: 1;
}
.shero__lead-in {
	color: var(--shero-ink);
	font-size: max(24px, 2.85cqw);
	font-weight: 600;
	line-height: 1;
}
.shero__accent {
	margin-top: -.51cqw;
	color: var(--shero-green);
	background: linear-gradient(180deg, #35893a 0%, #24752f 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	font-size: max(38px, 4.9cqw);
	line-height: 1;
}

.shero__lead {
	max-width: 21em;
	margin: .17cqw 0 0;
	color: #4a614e;
	font-size: max(14px, 1.07cqw);
	line-height: 1.26;
	text-wrap: balance;
}

.shero__badges {
	display: flex;
	align-items: flex-start;
	gap: max(10px, 3.03cqw);
	margin: 1.09cqw 0 0 -.67cqw;
}
.shero__badge {
	position: relative;
	display: flex;
	width: max(4.65cqw, 5.6em);
	font-size: max(10.5px, .78cqw);
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.shero__badge + .shero__badge::before {
	content: "";
	position: absolute;
	top: 1.4cqw;
	left: max(-5px, -1.52cqw);
	width: 2px;
	height: 2.9cqw;
	background: #d3e2b6;
}
.shero__disk {
	display: grid;
	place-items: center;
	width: max(40px, 3.32cqw);
	height: max(40px, 3.32cqw);
	border-radius: 50%;
	background: #d9f3a3;
	color: #0f5a2a;
}
.shero__disk .bhoo-icon { width: 68%; height: 68%; stroke-width: 1.5; }
.shero__label {
	margin-top: .15cqw;
	color: var(--shero-ink);
	font-family: var(--font-head);
	font-size: 1em;
	font-weight: 600;
	line-height: 1.24;
	text-wrap: balance;
}

.shero__cta {
	display: inline-flex;
	align-items: center;
	gap: .95cqw;
	margin-top: 1.19cqw;
	margin-left: -.2cqw;
	padding: 0 1.2cqw 0 1.25cqw;
	height: max(42px, 2.67cqw);
	border-radius: var(--r-pill);
	background: linear-gradient(180deg, #0b7a35 0%, #086a2d 100%);
	color: #fff;
	font-family: var(--font-head);
	font-size: max(13px, .88cqw);
	font-weight: 500;
	box-shadow: 0 .45cqw 1cqw rgba(8, 80, 35, .26);
	transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.shero__cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 .6cqw 1.3cqw rgba(8, 80, 35, .34); }
.shero__cta .bhoo-icon { width: 1.1cqw; height: 1.1cqw; min-width: 16px; min-height: 16px; stroke-width: 1.6; transition: transform .18s var(--ease); }
.shero__cta:hover .bhoo-icon { transform: translateX(3px); }

.shop--banner .shop__intro { padding-top: clamp(20px, 2.4vw, 32px); }
.shop--banner .shop__layout { padding-top: clamp(24px, 3vw, 44px); scroll-margin-top: 90px; }

/* The results sit on a tint, not on the page's white. White cards on white
   read as a flat list however well the card itself is drawn; the homepage
   band has always had this and is why the same card looks better there. The
   tint is painted full-bleed behind the container rather than on it, so it
   runs to both edges of the window. */
.shop__layout {
	position: relative;
	display: grid;
	grid-template-columns: 262px minmax(0, 1fr);
	align-items: start;
	gap: clamp(20px, 3vw, 40px);
	padding-bottom: var(--section-y);
}
.shop__layout::before {
	content: "";
	position: absolute;
	top: calc(clamp(24px, 3vw, 44px) * -1);
	bottom: 0;
	left: 50%;
	z-index: -1;
	width: 100vw;
	transform: translateX(-50%);
	background: linear-gradient(180deg, var(--g-025) 0%, #fbfdfa 60%, var(--white) 100%);
	pointer-events: none;
}

.shop__side {
	position: sticky;
	top: 96px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	padding-right: 4px;
}

.shop__side-head { display: none; }

.shopside__box + .shopside__box { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.shopside__title {
	margin: 0 0 12px;
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--g-800);
}

.shop__side ul { margin: 0; padding: 0; list-style: none; }
.shop__side li { margin-bottom: 4px; }
.shop__side li a {
	display: block;
	padding: 7px 10px;
	border-radius: var(--r-sm);
	color: var(--ink-2);
	font-size: 14.5px;
}
.shop__side li a:hover { background: var(--g-025); color: var(--g-800); }
.shop__side li.current-cat > a { background: var(--g-050); color: var(--g-800); font-weight: 600; }
.shop__side .children { margin-left: 12px; padding-left: 8px; border-left: 1px solid var(--line); }
.shop__side .count { color: var(--muted); font-size: 12.5px; }

.shopside__hint {
	margin: 16px 0 0;
	padding: 10px 12px;
	border: 1px dashed var(--g-300);
	border-radius: var(--r-sm);
	color: var(--ink-2);
	font-size: 13px;
}

/* ------------------------------------------------- filter panel (blocks)

   WooCommerce 11's product-filters block, re-dressed. Its own stylesheets
   size everything off the inherited font (1em boxes, .875em text, 2px radii),
   so the rules below set explicit sizes rather than lean on inheritance.
   Attribute facets (Grade, Form, Pack Size, Crop) are short codes and read as
   chips; taxonomy, stock and rating facets keep checkbox rows. */

.shop__side .wc-block-product-filters {
	display: block;
	padding: 20px 18px 8px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--sh-1);
}
.shop__side .wc-block-product-filters__content > h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
	font-size: 20px;
	color: var(--g-900);
}
.shop__side .wc-block-product-filters__content > h2::before {
	content: "";
	width: 4px;
	height: 18px;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--g-lime), var(--g-500));
}

/* One facet per band. A divider goes only on a facet that follows a visible
   one: empty facets (and the active-filter row when nothing is chosen) carry
   Woo's --hidden class, and a plain border-top would orphan a line under it. */
.shop__side .wc-block-product-filters__content > [data-block-name] { padding: 16px 0; }
.shop__side .wc-block-product-filters__content > [data-block-name]:not(.wc-block-product-filter--hidden) ~ [data-block-name] { border-top: 1px solid var(--line); }
.shop__side .wc-block-product-filters__content > [data-block-name] > h3 {
	margin-bottom: 12px !important; /* beats the block's inline margin */
	font-family: var(--font-head);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--g-800);
}

/* Active filters: removable chips above the facets. */
.shop__side .wc-block-product-filter-removable-chips__items { gap: 6px; }
.shop__side .wc-block-product-filter-removable-chips__items .wc-block-product-filter-removable-chips__item {
	gap: 6px;
	padding: 5px 8px 5px 12px;
	background: var(--g-050);
	border: 1px solid var(--g-100);
	border-radius: var(--r-pill);
	color: var(--g-800);
	font-size: 13px;
	font-weight: 500;
}
.shop__side .wc-block-product-filter-removable-chips__items .wc-block-product-filter-removable-chips__item .wc-block-product-filter-removable-chips__remove {
	width: 20px;
	height: 20px;
	justify-content: center;
	border-radius: 50%;
	color: var(--g-700);
	transition: background-color .15s var(--ease), color .15s var(--ease);
}
.shop__side .wc-block-product-filter-removable-chips__items .wc-block-product-filter-removable-chips__item .wc-block-product-filter-removable-chips__remove:hover { background: var(--g-600); color: var(--white); }

/* Price: green range, round handles, pill inputs with a dash between them. */
.shop__side .wc-block-product-filter-price-slider__content {
	--wc-product-filter-price-slider: var(--g-600);
	row-gap: 6px;
	column-gap: 8px;
	padding: 0 6px;
}
.shop__side .wc-block-product-filter-price-slider__content::after {
	content: "–";
	grid-area: middle-input;
	place-self: center;
	color: var(--muted);
}
.shop__side .wc-block-product-filter-price-slider__range { height: 4px; margin: 14px 0 18px; border-radius: 4px; }
.shop__side .wc-block-product-filter-price-slider__range::before { background: var(--g-100); opacity: 1; border-radius: 4px; }
.shop__side .wc-block-product-filter-price-slider__range .range-bar { border-radius: 4px; }
.shop__side .wc-block-product-filter-price-slider__range input[type=range]::-webkit-slider-thumb {
	width: 14px;
	height: 14px;
	margin-top: -8px;
	background: var(--white);
	border: 3px solid var(--g-600);
	box-shadow: 0 2px 6px rgba(11, 36, 19, .25);
}
.shop__side .wc-block-product-filter-price-slider__range input[type=range]::-moz-range-thumb {
	width: 14px;
	height: 14px;
	background: var(--white);
	border: 3px solid var(--g-600);
	box-shadow: 0 2px 6px rgba(11, 36, 19, .25);
}
.shop__side .wc-block-product-filter-price-slider__range input[type=range]::-webkit-slider-thumb:hover,
.shop__side .wc-block-product-filter-price-slider__range input[type=range]:focus::-webkit-slider-thumb { background: var(--white); border-color: var(--g-700); transform: scale(1.15); }
.shop__side .wc-block-product-filter-price-slider__range input[type=range]::-moz-range-thumb:hover,
.shop__side .wc-block-product-filter-price-slider__range input[type=range]:focus::-moz-range-thumb { background: var(--white); border-color: var(--g-700); }
.shop__side .wc-block-product-filter-price-slider .text input[type=text] {
	width: 100%;
	max-width: 96px;
	height: 38px;
	padding: 0 12px;
	background: var(--g-025);
	border: 1.5px solid var(--line);
	border-radius: var(--r-pill);
	color: var(--ink);
	font-family: var(--font-head);
	font-size: 13.5px;
	font-weight: 600;
	text-align: center;
	transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.shop__side .wc-block-product-filter-price-slider .text input[type=text]:focus {
	border-color: var(--g-400);
	box-shadow: 0 0 0 3px var(--g-100);
	outline: none;
}
.shop__side .wc-block-product-filter-price-slider__right { justify-self: end; }

/* Checkbox rows — Brand, Category, Availability, Rating. */
.shop__side .wc-block-product-filter-checkbox-list__items { display: flex; flex-direction: column; gap: 2px; }
.shop__side .wc-block-product-filter-checkbox-list__label {
	display: flex;
	gap: 10px;
	width: 100%;
	padding: 7px 8px;
	border-radius: var(--r-sm);
	color: var(--ink-2);
	font-size: 14.5px;
	cursor: pointer;
	transition: background-color .15s var(--ease), color .15s var(--ease);
}
.shop__side .wc-block-product-filter-checkbox-list__label:hover { background: var(--g-025); color: var(--g-800); }
.shop__side .wc-block-product-filter-checkbox-list__label:has(input:checked) { color: var(--g-800); font-weight: 600; }
.shop__side .wc-block-product-filter-checkbox-list__text-wrapper { font-size: inherit; }
.shop__side .wc-block-product-filter-checkbox-list__input-wrapper { flex: none; font-size: 18px; }
.shop__side .wc-block-product-filter-checkbox-list__input-wrapper::before { display: none; }
.shop__side input[type=checkbox].wc-block-product-filter-checkbox-list__input {
	background: var(--white);
	border: 1.5px solid color-mix(in srgb, var(--muted) 45%, var(--white));
	border-radius: 5px;
	transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.shop__side .wc-block-product-filter-checkbox-list__label:hover input[type=checkbox].wc-block-product-filter-checkbox-list__input { border-color: var(--g-400); }
.shop__side input[type=checkbox].wc-block-product-filter-checkbox-list__input:checked { background: var(--g-600); border-color: var(--g-600); }
.shop__side input[type=checkbox].wc-block-product-filter-checkbox-list__input:focus-visible { outline: 3px solid var(--g-100); outline-offset: 1px; }
.shop__side svg.wc-block-product-filter-checkbox-list__mark { color: var(--white); padding: .22em; }
.shop__side .wc-block-product-filter-checkbox-list__count { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.shop__side .wc-block-product-filter-checkbox-list__stars { color: var(--c-gold); }

/* Chips — attribute facets. The checkbox stays in the label for keyboard and
   screen readers but is drawn as the chip itself; the tick appears on select. */
.shop__side .wp-block-woocommerce-product-filter-attribute .wc-block-product-filter-checkbox-list__items {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 6px;
}
.shop__side .wp-block-woocommerce-product-filter-attribute .wc-block-product-filter-checkbox-list__label {
	width: auto;
	gap: 0;
	padding: 6px 12px;
	background: var(--white);
	border: 1.5px solid var(--line);
	border-radius: var(--r-pill);
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
}
.shop__side .wp-block-woocommerce-product-filter-attribute .wc-block-product-filter-checkbox-list__label:hover {
	background: var(--g-025);
	border-color: var(--g-300);
}
.shop__side .wp-block-woocommerce-product-filter-attribute .wc-block-product-filter-checkbox-list__label:has(input:checked) {
	gap: 6px;
	background: var(--g-600);
	border-color: var(--g-600);
	color: var(--white);
	font-weight: 600;
	box-shadow: 0 4px 10px color-mix(in srgb, var(--g-600) 28%, transparent);
}
.shop__side .wp-block-woocommerce-product-filter-attribute .wc-block-product-filter-checkbox-list__label:has(input:focus-visible) { outline: 3px solid var(--g-100); outline-offset: 1px; }
/* The wrapper needs an explicit height: its only children are absolutely
   positioned, so it would collapse to 0 and drop the tick below the text. */
.shop__side .wp-block-woocommerce-product-filter-attribute .wc-block-product-filter-checkbox-list__input-wrapper { width: 0; height: 14px; font-size: 14px; }
.shop__side .wp-block-woocommerce-product-filter-attribute .wc-block-product-filter-checkbox-list__label:has(input:checked) .wc-block-product-filter-checkbox-list__input-wrapper { width: 14px; }
.shop__side .wp-block-woocommerce-product-filter-attribute input[type=checkbox].wc-block-product-filter-checkbox-list__input {
	position: absolute;
	inset: 0;
	opacity: 0;
}
.shop__side .wp-block-woocommerce-product-filter-attribute svg.wc-block-product-filter-checkbox-list__mark { padding: 0; }

/* "Show N more" — a soft pill instead of underlined text. */
.shop__side .wc-block-product-filter-checkbox-list__show-more { margin-top: 10px; }
.shop__side .wc-block-product-filter-checkbox-list__show-more-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: var(--g-050);
	border-radius: var(--r-pill);
	color: var(--g-700);
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .15s var(--ease), color .15s var(--ease);
}
.shop__side .wc-block-product-filter-checkbox-list__show-more-button::before { content: "+"; font-size: 15px; line-height: 1; }
.shop__side .wc-block-product-filter-checkbox-list__show-more-button:hover,
.shop__side .wc-block-product-filter-checkbox-list__show-more-button:focus-visible { background: var(--g-600); color: var(--white); }

/* ------------------------------------------------------------- toolbar */

/* The filter button and the sort control are one pair: same height, same pill,
   so they read as a single control strip above the grid. */
.shop__toolbar {
	--tb-h: 46px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: clamp(16px, 2vw, 24px);
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}

.shop__filterbtn {
	display: none;
	gap: 8px;
	height: var(--tb-h);
	padding: 0 20px;
	font-size: 14.5px;
	box-shadow: 0 4px 14px rgba(35, 128, 63, .22);
}
/* The funnel labels the button, it isn't a "go" arrow — keep it still. */
.shop__filterbtn:hover .bhoo-icon { transform: none; }

.shop__toolbar .woocommerce-result-count {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.shop__toolbar .woocommerce-ordering { margin: 0 0 0 auto; }

/* Woo's native select, restyled: the arrow is drawn in as a background so the
   control can carry the theme's pill and border. Its open list is the shared
   themed menu (main.js, "dropdown menus"). */
.shop__toolbar .woocommerce-ordering select {
	-webkit-appearance: none;
	appearance: none;
	height: var(--tb-h);
	max-width: 100%;
	padding: 0 42px 0 18px;
	border: 1.5px solid var(--line);
	border-radius: var(--r-pill);
	background-color: var(--white);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2317492a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 16px 16px;
	font-family: var(--font-head);
	font-size: 14.5px;
	font-weight: 500;
	color: var(--ink);
	text-overflow: ellipsis;
	cursor: pointer;
	transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.shop__toolbar .woocommerce-ordering select:hover { border-color: var(--g-300); }
.shop__toolbar .woocommerce-ordering select:focus-visible,
.shop__toolbar .woocommerce-ordering select[aria-expanded="true"] {
	border-color: var(--g-400);
	box-shadow: 0 0 0 3px var(--g-100);
	outline: none;
}

/* ------------------------------------------------------------ the grid */

.woocommerce ul.products,
ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
	align-items: stretch;
	gap: clamp(14px, 1.8vw, 22px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; }

.woocommerce ul.products li.product,
ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	display: flex;
}
.woocommerce ul.products li.product > .pcard { flex: 1; }
/* Pagination is shared with the blog — main.css, "Pagination". */


/* ==========================================================================
   Single product
   ========================================================================== */

.product__page { padding-bottom: var(--section-y); }
.product__page > .crumbs { padding: clamp(14px, 2vw, 22px) 0; }

.product__main {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	align-items: start;
	gap: clamp(24px, 4.4vw, 68px);
}

.product__gallery { position: sticky; top: 96px; }

/* woocommerce-layout.css is kept on this template for the gallery slider, so
   its float widths have to be neutralised for the grid above to hold. */
.woocommerce div.product .product__gallery .woocommerce-product-gallery,
.woocommerce div.product .product__gallery div.images {
	float: none;
	width: 100%;
	margin-bottom: 0;
}
.woocommerce div.product .product__main .summary,
.woocommerce div.product .product__main div.summary {
	float: none;
	width: 100%;
	margin-bottom: 0;
}

/* ------------------------------------------------------------- gallery */

/* The stage. Every slide is the same height, so the slider never jumps as it
   changes photo, and each photo is shown whole — never cropped — centred on a
   soft lit mat.

   The slide itself carries nothing but that height: flexslider sizes a slide
   by measuring one and subtracting its padding and border from the stage
   width, so any padding or border here makes every slide narrower than the
   stage and the next photo shows at the right edge. The mat — padding, border,
   background — therefore lives on the link inside the slide, which is also
   what centres the photo (flexslider writes display:block onto the slide). */
.woocommerce div.product .product__gallery .woocommerce-product-gallery__image:first-child,
.woocommerce div.product .product__gallery .flex-viewport .woocommerce-product-gallery__image,
.woocommerce div.product .product__gallery .woocommerce-product-gallery__image--placeholder {
	height: clamp(360px, 68vh, 640px);
}
.woocommerce div.product .product__gallery .woocommerce-product-gallery__image > a,
.woocommerce div.product .product__gallery .woocommerce-product-gallery__image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: clamp(18px, 3vw, 42px);
	border: 1px solid var(--g-050);
	border-radius: 28px;
	background:
		radial-gradient(90% 70% at 50% 38%, var(--white) 0%, rgba(255, 255, 255, 0) 70%),
		linear-gradient(165deg, var(--g-050) 0%, var(--g-025) 58%, #fbfdf9 100%);
}
.woocommerce div.product .product__gallery .woocommerce-product-gallery__image img:not(.zoomImg),
.woocommerce div.product .product__gallery .woocommerce-product-gallery__image--placeholder img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
	border-radius: 16px;
	box-shadow: 0 2px 6px rgba(11, 36, 19, .08), 0 26px 50px -22px rgba(11, 36, 19, .45);
}

/* Woo's zoom magnifier: a white disc on the mat's corner. */
.woocommerce div.product .product__gallery .woocommerce-product-gallery__trigger {
	top: 18px;
	right: 18px;
	box-shadow: 0 4px 14px rgba(11, 36, 19, .14);
}

/* Thumbnails: even square tiles under the stage, the current one ringed. */
.woocommerce div.product .product__gallery .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
}
.woocommerce div.product .product__gallery .flex-control-thumbs li {
	float: none;
	width: clamp(64px, 6vw, 82px);
	margin: 0;
}
.woocommerce div.product .product__gallery .flex-control-thumbs li img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border: 2px solid var(--white);
	border-radius: 16px;
	box-shadow: 0 0 0 1px var(--line);
	opacity: .6;
	transition: opacity .2s, box-shadow .2s;
}
.woocommerce div.product .product__gallery .flex-control-thumbs li img:hover { opacity: 1; }
.woocommerce div.product .product__gallery .flex-control-thumbs li img.flex-active {
	opacity: 1;
	box-shadow: 0 0 0 2px var(--g-600);
}

/* Sale flag: the gold pill the product cards use, not Woo's olive disc. */
.woocommerce div.product .product__gallery span.onsale {
	top: 18px;
	left: 18px;
	z-index: 9;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 8px 14px;
	border-radius: var(--r-pill);
	background: var(--c-gold);
	color: var(--g-950);
	font-family: var(--font-head);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .02em;
	box-shadow: 0 6px 16px -6px rgba(124, 92, 0, .55);
}

/* ------------------------------------------------------------- buy box */

.product__brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 6px 13px 6px 11px;
	background: var(--g-800);
	color: #fff;
	border-radius: var(--r-pill);
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
}
.product__brand::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--g-lime);
	box-shadow: 0 0 0 3px rgba(196, 243, 86, .22);
}

.woocommerce div.product .product_title {
	margin: 0 0 14px;
	font-size: clamp(23px, 2.1vw, 30px);
	line-height: 1.16;
	letter-spacing: -.015em;
	text-wrap: balance;
}

.woocommerce div.product .woocommerce-product-rating { margin-bottom: 14px; font-size: 14px; }

/* Price: the price paid first and largest, the old price struck beside it,
   and the saving as a chip (inc/woocommerce.php adds .price__save). */
.woocommerce div.product .summary > p.price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin: 0 0 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--line);
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--g-800);
	font-family: var(--font-head);
	font-size: clamp(21px, 1.8vw, 26px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.01em;
}
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins { order: -1; text-decoration: none; }
.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
	color: var(--muted);
	font-size: .56em;
	font-weight: 500;
	opacity: 1;
}
.price__save {
	display: inline-flex;
	align-items: center;
	padding: 6px 11px;
	border-radius: var(--r-pill);
	background: var(--g-lime);
	color: var(--g-900);
	font-family: var(--font-head);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .01em;
}

.woocommerce-product-details__short-description {
	margin-bottom: 18px;
	color: var(--ink-2);
	font-size: 16px;
	line-height: 1.7;
}
.woocommerce-product-details__short-description > :last-child { margin-bottom: 0; }

.product__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}
.product__chips li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px 7px 12px;
	background: var(--white);
	border: 1px solid var(--g-100);
	border-radius: var(--r-pill);
	color: var(--g-800);
	font-family: var(--font-head);
	font-size: 12.5px;
	font-weight: 600;
}
.product__chips li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--g-500);
}

/* The buy card — everything needed to order, in one panel: the minimum
   quantity note, Woo's add-to-cart form and the WhatsApp enquiry. Opened and
   closed around those hooks in inc/woocommerce.php; it hides itself if a
   product has nothing to put in it. */
.product__buy {
	margin: 0 0 22px;
	padding: clamp(16px, 1.8vw, 22px);
	border: 1px solid var(--g-100);
	border-radius: 24px;
	background: linear-gradient(180deg, var(--g-025) 0%, var(--white) 100%);
	box-shadow: 0 1px 2px rgba(11, 36, 19, .04), 0 20px 44px -28px rgba(23, 73, 42, .35);
}
.product__buy:not(:has(*)) { display: none; }
.product__buy > :last-child { margin-bottom: 0; }

.woocommerce div.product .product__buy p.stock { margin: 0 0 12px; font-family: var(--font-head); font-size: 14px; font-weight: 600; }
.woocommerce div.product p.stock.in-stock { color: var(--g-600); }

.product__minqty {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 14px;
	padding: 6px 14px;
	background: var(--white);
	border: 1px solid var(--g-100);
	border-radius: var(--r-pill);
	color: var(--g-800);
	font-size: 13.5px;
}
.product__minqty[hidden] { display: none; }
.product__minqty strong { font-family: var(--font-head); color: var(--g-900); }

.woocommerce div.product form.cart { margin-bottom: 12px; }
.woocommerce div.product form.cart::after { content: ""; display: block; clear: both; }

/* Quantity and the button share one row and one height. The row is a flex
   line, so Woo's floats and clearfix pseudo-elements are switched off on it. */
.woocommerce div.product form.cart:not(.variations_form):not(.grouped_form),
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
}
.woocommerce div.product form.cart:not(.variations_form):not(.grouped_form)::before,
.woocommerce div.product form.cart:not(.variations_form):not(.grouped_form)::after,
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart::before,
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart::after { content: none; }

/* Variable products: label above a full-width pack-size select. */
.woocommerce div.product form.cart .variations { margin-bottom: 14px; border: 0; }
.woocommerce div.product form.cart .variations tr { display: grid; gap: 8px; margin-bottom: 12px; }
.woocommerce div.product form.cart .variations tr:last-child { margin-bottom: 0; }
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td { display: block; padding: 0; border: 0; line-height: 1.3; text-align: left; }
.woocommerce div.product form.cart .variations label { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--g-900); }
.woocommerce div.product form.cart .variations select {
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--g-100);
	border-radius: 14px;
	background-color: var(--white);
	font: inherit;
	font-size: 15px;
	color: var(--ink);
}
.woocommerce div.product form.cart .reset_variations {
	display: inline-block;
	margin-top: 8px;
	color: var(--g-700);
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.woocommerce div.product form.cart .single_variation:not(:empty) { margin-bottom: 14px; }
.woocommerce div.product form.cart .single_variation .price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 4px; font-size: 22px; }
.woocommerce div.product form.cart .single_variation p.stock { margin: 4px 0 0; }

/* Quantity: a number box on its own; with shop.js it becomes a − / + pill
   with the number in the middle (the input stays the real field). */
.woocommerce .quantity .qty {
	width: 84px;
	height: 54px;
	padding: 0 8px;
	border: 1px solid var(--g-100);
	border-radius: 14px;
	background: var(--white);
	font: inherit;
	font-family: var(--font-head);
	font-size: 16px;
	font-weight: 600;
	color: var(--g-900);
	text-align: center;
}
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce div.product form.cart div.quantity.has-stepper {
	display: inline-flex;
	align-items: center;
	height: 54px;
	padding: 4px;
	border: 1px solid var(--g-100);
	border-radius: var(--r-pill);
	background: var(--white);
}
.woocommerce div.product form.cart .quantity.has-stepper .qty {
	width: 46px;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	-moz-appearance: textfield;
	appearance: textfield;
}
.woocommerce div.product form.cart .quantity.has-stepper .qty::-webkit-inner-spin-button,
.woocommerce div.product form.cart .quantity.has-stepper .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce div.product form.cart .quantity.has-stepper .qty:focus-visible { outline: 2px solid var(--g-400); outline-offset: 2px; border-radius: 8px; }
.qty-step {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--g-050);
	color: var(--g-800);
	cursor: pointer;
	transition: background-color .18s, color .18s;
}
.qty-step:hover { background: var(--g-100); }
.qty-step:focus-visible { outline: 2px solid var(--g-400); outline-offset: 2px; }
.qty-step[aria-disabled="true"] { background: var(--g-025); color: var(--g-100); cursor: default; }

/* Add to cart: the one loud button. Woo makes it a flex box with no vertical
   centring, so a fixed height alone pushes the label to the top — min-height
   plus centring keeps it level with the quantity box at any font size. */
.woocommerce div.product form.cart .button,
.woocommerce div.product .single_add_to_cart_button {
	display: inline-flex;
	flex: 1 1 180px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	margin: 0;
	padding: 0 28px;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--g-700);
	color: #fff;
	font-family: var(--font-head);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 12px 26px -14px rgba(28, 97, 52, .85);
	transition: background-color .18s, transform .18s var(--ease), box-shadow .18s;
}
.woocommerce div.product .single_add_to_cart_button::before {
	content: "";
	flex: none;
	width: 19px;
	height: 19px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.6'/%3E%3Ccircle cx='18' cy='20' r='1.6'/%3E%3Cpath d='M2 3h3l2.4 12.4a2 2 0 0 0 2 1.6h8.7a2 2 0 0 0 2-1.6L23 7H6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.6'/%3E%3Ccircle cx='18' cy='20' r='1.6'/%3E%3Cpath d='M2 3h3l2.4 12.4a2 2 0 0 0 2 1.6h8.7a2 2 0 0 0 2-1.6L23 7H6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce div.product form.cart .button:hover,
.woocommerce div.product .single_add_to_cart_button:hover {
	background: var(--g-800);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 16px 30px -14px rgba(23, 73, 42, .9);
}
.woocommerce div.product form.cart .button.disabled,
.woocommerce div.product form.cart .button:disabled,
.woocommerce div.product form.cart .button.disabled:hover,
.woocommerce div.product form.cart .button:disabled:hover {
	background: var(--g-700);
	opacity: .45;
	transform: none;
	box-shadow: none;
	cursor: not-allowed;
}

/* WhatsApp enquiry: second choice, so outlined — white, with the icon in
   WhatsApp's own green — rather than a second green slab. */
.product__enquire.btn {
	--btn-bg: var(--white);
	--btn-fg: var(--g-800);
	--btn-bd: var(--g-100);
	width: 100%;
	min-height: 52px;
	margin: 0;
	font-size: 15px;
}
.product__enquire.btn:hover { --btn-bg: var(--g-050); --btn-fg: var(--g-900); --btn-bd: var(--g-300); box-shadow: var(--sh-1); }
.product__enquire .bhoo-icon,
.product__enquire.btn:hover .bhoo-icon { color: #1faa53; transform: none; }

/* Trust: three small tiles, icon in a mint disc. */
.product__trust {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
	gap: 8px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}
.product__trust li {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 9px 10px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--white);
	color: var(--g-900);
	font-family: var(--font-head);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.3;
	text-wrap: balance;
}
.product__trust .bhoo-icon {
	box-sizing: content-box;
	width: 17px;
	height: 17px;
	padding: 7px;
	border-radius: 50%;
	background: var(--g-mint);
	color: var(--g-600);
}

.woocommerce div.product .product_meta {
	display: grid;
	gap: 6px;
	color: var(--muted);
	font-size: 13.5px;
}
.woocommerce div.product .product_meta > span { display: block; }
.woocommerce div.product .product_meta .sku { color: var(--ink-2); font-weight: 500; }
.woocommerce div.product .product_meta a { color: var(--g-700); }
.woocommerce div.product .product_meta a:hover { color: var(--g-600); text-decoration: underline; }

/* ---------------------------------------------------------------- tabs */

/* A segmented pill bar over one content card. On a phone the bar scrolls
   sideways rather than wrapping into a ragged block. */
.woocommerce div.product .woocommerce-tabs { padding-top: clamp(40px, 6vw, 84px); }
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 4px;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 18px;
	padding: 5px;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	background: var(--g-025);
	list-style: none;
	scrollbar-width: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { content: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	flex: none;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { content: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 11px 20px;
	border-radius: var(--r-pill);
	color: var(--ink-2);
	font-family: var(--font-head);
	font-size: 14.5px;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color .18s, color .18s;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover { background: var(--g-050); color: var(--g-800); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	background: var(--g-800);
	color: #fff;
	box-shadow: 0 6px 16px -8px rgba(18, 54, 30, .7);
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
	margin: 0;
	padding: clamp(22px, 3.6vw, 48px);
	border: 1px solid var(--line);
	border-radius: 28px;
	background: var(--white);
	box-shadow: var(--sh-1);
	color: var(--ink-2);
	font-size: 16px;
	line-height: 1.75;
}
.woocommerce div.product .woocommerce-Tabs-panel > :where(p, ul, ol, h2, h3, h4, blockquote) { max-width: 78ch; }
.woocommerce div.product .woocommerce-Tabs-panel > :first-child { margin-top: 0; }
.woocommerce div.product .woocommerce-Tabs-panel > :last-child { margin-bottom: 0; }
.woocommerce div.product .woocommerce-Tabs-panel h2 { font-size: clamp(20px, 2.2vw, 26px); }
.woocommerce div.product .woocommerce-Tabs-panel h3 { margin: 1.6em 0 .5em; font-size: clamp(17px, 1.7vw, 20px); }

/* The tab already names the panel; Woo's repeat of it inside is for screen
   readers only. */
.woocommerce div.product .woocommerce-Tabs-panel--description > h2:first-child,
.woocommerce div.product .woocommerce-Tabs-panel--additional_information > h2:first-child {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.woocommerce div.product .woocommerce-Tabs-panel > ul { padding: 0; list-style: none; }
.woocommerce div.product .woocommerce-Tabs-panel > ul > li { position: relative; margin-bottom: 8px; padding-left: 30px; }
.woocommerce div.product .woocommerce-Tabs-panel > ul > li::before {
	content: "";
	position: absolute;
	top: .3em;
	left: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--g-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323803f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Spec tables — Compliance and Woo's Additional information share a look. */
.product__compliance,
.woocommerce div.product table.shop_attributes {
	width: 100%;
	max-width: 760px;
	margin: 0;
	border: 1px solid var(--line);
	border-radius: 16px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	font-size: 15px;
}
.product__compliance th,
.product__compliance td,
.woocommerce div.product table.shop_attributes th,
.woocommerce div.product table.shop_attributes td {
	padding: 13px 18px;
	border: 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
	font-style: normal;
	line-height: 1.5;
}
.product__compliance tr:last-child > *,
.woocommerce div.product table.shop_attributes tr:last-child > * { border-bottom: 0; }
.product__compliance th,
.woocommerce div.product table.shop_attributes th {
	width: 38%;
	background: var(--g-025);
	color: var(--g-900);
	font-family: var(--font-head);
	font-size: 14px;
	font-weight: 600;
}
.woocommerce div.product table.shop_attributes tr:nth-child(even) td,
.woocommerce div.product table.shop_attributes tr:nth-child(even) th { background: transparent; }
.woocommerce div.product table.shop_attributes tr:nth-child(even) th { background: var(--g-025); }
.woocommerce div.product table.shop_attributes td p { margin: 0; padding: 0; }

/* Reviews */
.woocommerce div.product #reviews #comments h2,
.woocommerce div.product #reviews .comment-reply-title { font-family: var(--font-head); font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; color: var(--g-900); }
.woocommerce div.product #reviews .woocommerce-noreviews { color: var(--muted); }
.woocommerce div.product #review_form_wrapper { max-width: 640px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.woocommerce div.product #review_form label { display: block; margin-bottom: 6px; font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--g-900); }
.woocommerce div.product #review_form :is(input[type="text"], input[type="email"], textarea) {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--g-100);
	border-radius: 14px;
	background: var(--white);
	font: inherit;
	font-size: 15px;
	color: var(--ink);
}
.woocommerce div.product #review_form :is(input, textarea):focus-visible { outline: 2px solid var(--g-400); outline-offset: 1px; }
.woocommerce div.product #review_form p.stars a { color: var(--c-gold); }

/* --------------------------------------------------------- buy bar (m) */

.buybar { display: none; }


/* ==========================================================================
   Product rows — related, up-sells, recently viewed
   ========================================================================== */

.prodrow { padding-top: clamp(30px, 4vw, 50px); }
.prodrow__title { margin: 0 0 20px; font-size: clamp(20px, 2.4vw, 26px); }

.prodrow__slider {
	--arrow-size: 42px;
	--arrow-icon: 18px;
	--arrow-inset: clamp(-20px, -1.4vw, -6px);
	position: relative;
}
.prodrow__slider .splide__track { overflow: hidden; padding-block: 8px 16px; margin-block: -8px -10px; }
.prodrow__slider:not(.is-initialized) { visibility: visible; }
.prodrow__slider:not(.is-initialized) .splide__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	overflow: hidden;
}
.prodrow__slider .splide__slide { height: auto; display: flex; }
.prodrow__slider .splide__slide > .pcard { flex: 1; }

.woocommerce .up-sells { padding-top: clamp(30px, 4vw, 50px); }
.woocommerce .up-sells > h2 { margin: 0 0 20px; font-size: clamp(20px, 2.4vw, 26px); }


/* ==========================================================================
   Cart, checkout, account — Woo's own layout, brand-matched controls
   ========================================================================== */

.woocommerce .woocommerce-notices-wrapper:not(:empty) { padding-top: 20px; }

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: flex;
	padding: 13px 24px;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--g-600);
	color: #fff;
	font-family: var(--font-head);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1;
	transition: background-color .18s;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover { background: var(--g-700); color: #fff; }

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt { background: var(--g-700); }
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover { background: var(--g-800); }

.woocommerce table.shop_table {
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	border-collapse: separate;
}
.woocommerce table.shop_table th { font-family: var(--font-head); color: var(--g-900); }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text {
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--white);
	font: inherit;
	font-size: 14.5px;
	color: var(--ink);
}
.woocommerce form .form-row label { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--g-900); }

.woocommerce-message,
.woocommerce-info { border-top-color: var(--g-500); }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--g-500); }


/* ==========================================================================
   Purchase flow — Cart + Checkout blocks, order received
   (template-parts/shop/purchase-flow.php)

   Both pages are WooCommerce React blocks with their own stylesheets, which
   print before this file. Every rule is scoped to .flow and mirrors the
   block's selector, so it wins on specificity as well as source order.
   Woo stacks its layout with @container at 700px (the .is-large class marks
   the side-by-side state); the 940px step in the Responsive block stacks the
   columns earlier, before the summary gets too narrow to read.
   ========================================================================== */

/* ------------------------------------------------------- hero progress */
/* The page hero lives in main.css; its steps variant is only used here. */

.phero--steps .phero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	column-gap: 32px;
}
.phero--steps .crumbs,
.phero--steps .phero__title { grid-column: 1; }
.phero--steps .steps { grid-column: 2; grid-row: 1 / span 2; }

.steps {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 5px;
	background: rgba(255, 255, 255, .78);
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	box-shadow: var(--sh-1);
}
.steps__item { display: flex; align-items: center; gap: 6px; }
.steps__item + .steps__item::before {
	content: "";
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: var(--line);
}
.steps__item.is-done + .steps__item::before { background: var(--g-400); }

.steps__link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 5px 15px 5px 5px;
	border-radius: var(--r-pill);
	color: var(--muted);
	font-family: var(--font-head);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	transition: background-color .18s, color .18s;
}
.steps__dot {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 1.5px solid var(--line);
	border-radius: 50%;
	background: var(--white);
	font-size: 13px;
}
.steps__item.is-done .steps__link { color: var(--g-700); }
.steps__item.is-done .steps__dot { border-color: transparent; background: var(--g-100); }
a.steps__link:hover { background: var(--g-050); color: var(--g-800); }
.steps__item.is-current .steps__link { background: var(--g-800); color: #fff; }
.steps__item.is-current .steps__dot { border-color: transparent; background: var(--g-lime); color: var(--g-900); }

/* ------------------------------------------------------------ page frame */

.flow {
	--wc-separator-color: var(--line);
	--flow-field-bd: #cbd6c7;
	--flow-ring: 0 0 0 4px rgba(47, 158, 68, .16);
	padding-block: clamp(24px, 3.4vw, 44px) var(--section-y);
	background: var(--g-025);
}

/* The tinted panel runs straight into the footer. */
.woocommerce-cart .site-footer,
.woocommerce-checkout .site-footer { margin-top: 0; }

.flow .wp-block-woocommerce-checkout { padding-top: 0; }
.flow .wc-block-components-sidebar-layout { margin: 0; }

/* Woo spaces its columns with percentage padding; the gap below replaces it.
   Kept at this weight so the cart's card padding further down can win. */
.flow .wc-block-components-sidebar-layout .wc-block-components-main,
.flow .wc-block-components-sidebar-layout .wc-block-components-sidebar { padding: 0; }

/* Side by side: the form flexes, the summary keeps a readable width. */
.flow .wc-block-components-sidebar-layout.is-large {
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: clamp(24px, 2.6vw, 36px);
}
.flow .wc-block-components-sidebar-layout.is-large .wc-block-components-main {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
}
.flow .wc-block-components-sidebar-layout.is-large .wc-block-components-sidebar {
	flex: 0 0 clamp(340px, 30vw, 400px);
	width: auto;
}
/* Clear the sticky site header (64px once scrolled). */
.flow .wc-block-checkout__sidebar.is-sticky { top: 88px; }
.admin-bar .flow .wc-block-checkout__sidebar.is-sticky { top: 120px; }

/* ------------------------------------------------------- checkout steps */

.flow .wc-block-checkout__form { counter-reset: flow-step; }

.flow .wc-block-components-form fieldset.wc-block-components-checkout-step {
	min-width: 0;
	margin: 0 0 18px;
	padding: clamp(20px, 2.4vw, 28px);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--sh-1);
	counter-increment: flow-step;
}

.flow .wc-block-components-checkout-step__heading-container { margin-bottom: 20px; }
.flow .wc-block-components-checkout-step__heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	margin: 0;
}
.flow .wc-block-components-checkout-step__title.wc-block-components-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: var(--g-900);
	font-family: var(--font-head);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.01em;
}
.flow fieldset.wc-block-components-checkout-step .wc-block-components-checkout-step__title::before {
	content: counter(flow-step);
	display: grid;
	place-items: center;
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--g-600);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0;
}
.flow .wc-block-components-checkout-step__heading-content { color: var(--muted); font-size: 13.5px; }
.flow .wc-block-components-checkout-step__heading-content a { color: var(--g-700); }
.flow .wc-block-components-checkout-step__description { margin: -8px 0 16px; color: var(--muted); font-size: 14px; }

.flow .wc-block-checkout__guest-checkout-notice {
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
}

/* --------------------------------------------------------------- fields */

.flow .wc-block-components-text-input input:is([type=email], [type=number], [type=password], [type=tel], [type=text], [type=url]) {
	height: 54px;
	padding: 16px;
	border: 1px solid var(--flow-field-bd);
	border-radius: 12px;
	background: var(--white);
	color: var(--ink);
	font-size: 16px;
	line-height: 22px;
	transition: border-color .18s, box-shadow .18s;
}
.flow .wc-block-components-text-input.is-active input:is([type=email], [type=number], [type=password], [type=tel], [type=text], [type=url]) {
	padding: 23px 16px 7px;
}
.flow .wc-block-components-text-input input:hover { border-color: var(--g-300); }
.flow .wc-block-components-text-input input:focus,
.flow .wc-block-components-text-input.is-active input:focus {
	border: 1px solid var(--g-600);
	box-shadow: var(--flow-ring);
	outline: 0;
}

.flow .wc-block-components-text-input label {
	top: 27px;
	left: 17px;
	max-width: calc(100% - 34px);
	color: var(--muted);
	font-size: 15.5px;
}
.flow .wc-block-components-text-input.is-active label,
.flow .wc-block-components-text-input input:-webkit-autofill + label {
	top: 8px;
	transform: scale(.78);
	color: var(--g-700);
	font-weight: 500;
}

.flow .wc-blocks-components-select .wc-blocks-components-select__container { border-radius: 12px; }
.flow .wc-blocks-components-select .wc-blocks-components-select__select,
.flow .wc-blocks-components-select .wc-blocks-components-select__select:focus {
	height: 54px;
	padding: 20px 44px 0 16px;
	border: 1px solid var(--flow-field-bd);
	border-radius: 12px;
	color: var(--ink);
	font-size: 16px;
	cursor: pointer;
	transition: border-color .18s, box-shadow .18s;
}
.flow .wc-blocks-components-select .wc-blocks-components-select__select:hover { border-color: var(--g-300); }
.flow .wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: var(--g-600);
	box-shadow: var(--flow-ring);
	outline: 0;
}
.flow .wc-blocks-components-select .wc-blocks-components-select__label {
	top: 8px;
	left: 17px;
	color: var(--g-700);
	font-size: 12px;
	font-weight: 500;
}
.flow .wc-blocks-components-select .wc-blocks-components-select__expand { right: 16px; fill: var(--g-700); }

.flow .wc-block-components-textarea {
	min-height: 110px;
	padding: 14px 16px;
	border: 1px solid var(--flow-field-bd);
	border-radius: 12px;
	font-size: 15px;
	line-height: 1.5;
}
.flow .wc-block-components-textarea::placeholder { color: var(--muted); opacity: 1; }
.flow .wc-block-components-textarea:focus {
	border-color: var(--g-600);
	box-shadow: var(--flow-ring);
	outline: 0;
}

/* Errors keep Woo's red but in the house shape. */
.flow .wc-block-components-text-input.has-error input:is([type=email], [type=number], [type=password], [type=tel], [type=text], [type=url]),
.flow .has-error .wc-blocks-components-select .wc-blocks-components-select__select { border-color: #cc1818; }
.flow .wc-block-components-text-input.has-error input:focus { box-shadow: 0 0 0 4px rgba(204, 24, 24, .12); }
.flow .wc-block-components-validation-error { padding-top: 6px; color: #cc1818; font-size: 13px; line-height: 1.4; }

.flow .wc-block-components-address-form__address_2-toggle {
	color: var(--g-700);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.flow .wc-block-components-address-form__address_2-toggle:hover { color: var(--g-600); text-decoration: underline; }

.flow .wc-block-components-address-card {
	padding: 16px 18px;
	border-color: var(--flow-field-bd);
	border-radius: 12px;
}
.flow .wc-block-components-address-card__edit { color: var(--g-700); font-weight: 600; }

/* Checkboxes */
.flow .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] {
	width: 20px;
	height: 20px;
	border: 1.5px solid var(--flow-field-bd);
	border-radius: 6px;
	transition: background-color .15s, border-color .15s;
}
.flow .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked {
	border-color: var(--g-600);
	background: var(--g-600);
}
.flow .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:focus-visible { outline: 3px solid var(--g-300); outline-offset: 2px; }
.flow .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #fff; }
.flow .wc-block-components-checkbox__label { color: var(--ink-2); font-size: 14.5px; }

/* ---------------------------------------------------- payment + shipping */

.flow .wc-block-components-radio-control--highlight-checked::after,
.flow .wc-block-components-radio-control--highlight-checked div.wc-block-components-radio-control-accordion-option::after,
.flow .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option::after { display: none; }

.flow .wc-block-components-radio-control-accordion-option,
.flow .wc-block-components-radio-control > .wc-block-components-radio-control__option {
	margin-bottom: 10px;
	border: 1px solid var(--flow-field-bd);
	border-radius: 14px;
	background: var(--white);
	transition: border-color .18s, background-color .18s, box-shadow .18s;
}
.flow .wc-block-components-radio-control-accordion-option:last-child,
.flow .wc-block-components-radio-control > .wc-block-components-radio-control__option:last-child { margin-bottom: 0; }
.flow .wc-block-components-radio-control-accordion-option:hover,
.flow .wc-block-components-radio-control > .wc-block-components-radio-control__option:hover { border-color: var(--g-300); }

.flow .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.flow .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	border-color: var(--g-600);
	border-radius: 14px;
	background: var(--g-025);
	box-shadow: var(--flow-ring);
}
.flow .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted label.wc-block-components-radio-control__option--checked-option-highlighted { box-shadow: none; }

.flow .wc-block-components-radio-control__option { padding: 16px 16px 16px 50px; }
.flow .wc-block-components-radio-control__label,
.flow .wc-block-components-payment-method-label { color: var(--g-900); font-size: 15px; font-weight: 600; }
.flow .wc-block-components-radio-control__description,
.flow .wc-block-components-radio-control__secondary-label { color: var(--ink-2); font-size: 14px; }
.flow .wc-block-components-radio-control-accordion-content { padding: 0 18px 18px 50px; color: var(--ink-2); font-size: 14px; }

.flow .wc-block-components-radio-control .wc-block-components-radio-control__input {
	width: 20px;
	height: 20px;
	border: 1.5px solid var(--flow-field-bd);
}
.flow .wc-block-components-radio-control .wc-block-components-radio-control__input:checked { border-color: var(--g-600); }
.flow .wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before { background: var(--g-600); }

/* ---------------------------------------------------------------- notices */

.flow .wc-block-components-notice-banner {
	gap: 12px;
	margin: 0 0 16px;
	border-color: var(--g-100);
	border-radius: 14px;
	background: var(--g-025);
	color: var(--ink);
	font-size: 14.5px;
}
.flow .wc-block-components-notice-banner > svg { background-color: var(--g-600); }
.flow .wc-block-components-notice-banner.is-error { border-color: #f2c4c1; background: #fdf4f3; color: #6f1512; }
.flow .wc-block-components-notice-banner.is-error > svg { background-color: #cc1818; }
.flow .wc-block-components-notice-banner.is-warning { border-color: #f1dc9c; background: #fffaeb; color: #5c4400; }
.flow .wc-block-components-notice-banner.is-warning > svg { background-color: #b88600; }
.flow .wc-block-components-notice-banner.is-info { border-color: #c9dcf1; background: #f3f8fd; color: #173b61; }
.flow .wc-block-components-notice-banner.is-info > svg { background-color: var(--c-blue); }

/* ----------------------------------------------------- note, terms, submit */

.flow .wc-block-components-form .wc-block-checkout__order-notes {
	margin: 0 0 18px;
	padding: 18px clamp(20px, 2.4vw, 28px);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
}

.flow .wc-block-checkout__terms,
.flow .wc-block-checkout__terms.wc-block-checkout__terms--with-separator {
	margin: 4px 4px 18px;
	padding: 0;
	border: 0;
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.55;
}
.flow .wc-block-checkout__terms a { color: var(--g-700); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

.flow .wc-block-checkout__actions_row { align-items: center; gap: 16px; }

/* Place Order + Proceed to Checkout: the one loud button on each page. */
.flow .wc-block-components-button.wc-block-components-checkout-place-order-button:not(.is-link),
.flow .wc-block-components-button.wc-block-cart__submit-button:not(.is-link) {
	min-height: 58px;
	padding: 16px 28px;
	border: 0;
	border-radius: var(--r-pill);
	background: linear-gradient(135deg, var(--g-600), var(--g-700));
	box-shadow: 0 12px 26px -12px rgba(28, 97, 52, .7);
	color: #fff;
	font-family: var(--font-head);
	font-size: 16.5px;
	font-weight: 600;
	letter-spacing: .01em;
	transition: transform .18s var(--ease), box-shadow .18s, filter .18s;
}
.flow .wc-block-components-button.wc-block-components-checkout-place-order-button:not(.is-link):hover,
.flow .wc-block-components-button.wc-block-cart__submit-button:not(.is-link):hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 32px -14px rgba(28, 97, 52, .75);
	filter: brightness(1.06);
	color: #fff;
}
.flow .wc-block-components-button.wc-block-components-checkout-place-order-button:not(.is-link):focus-visible,
.flow .wc-block-components-button.wc-block-cart__submit-button:not(.is-link):focus-visible {
	box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--g-400);
	outline: 0;
}
.flow .wc-block-components-button.wc-block-components-checkout-place-order-button:not(.is-link):disabled {
	transform: none;
	box-shadow: none;
	filter: none;
	cursor: not-allowed;
}

.flow .wc-block-components-checkout-place-order-button__text::before,
.flow .wc-block-cart__submit-button .wc-block-components-button__text::after {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--flow-icon) center / contain no-repeat;
	mask: var(--flow-icon) center / contain no-repeat;
}
.flow .wc-block-components-checkout-place-order-button__text::before {
	--flow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M7 10V8a5 5 0 0 1 10 0v2h.5A1.5 1.5 0 0 1 19 11.5v8a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 5 19.5v-8A1.5 1.5 0 0 1 6.5 10Zm2 0h6V8a3 3 0 0 0-6 0Z'/%3E%3C/svg%3E");
	margin-right: 10px;
}
.flow .wc-block-cart__submit-button .wc-block-components-button__text { display: inline-flex; align-items: center; }
.flow .wc-block-cart__submit-button .wc-block-components-button__text::after {
	--flow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	margin-left: 10px;
	transition: transform .18s var(--ease);
}
.flow .wc-block-cart__submit-button:hover .wc-block-components-button__text::after { transform: translateX(3px); }

.flow .wc-block-components-checkout-return-to-cart-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-left: 0;
	color: var(--g-700);
	font-size: 14.5px;
	font-weight: 600;
	white-space: nowrap;
}
.flow .wc-block-components-checkout-return-to-cart-button svg { fill: currentColor; }

/* -------------------------------------------------------- order summary */

.flow .wp-block-woocommerce-checkout-order-summary-block,
.flow .wc-block-cart .wc-block-cart__sidebar {
	margin: 0;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--sh-2);
	color: var(--ink);
	font-size: 14.5px;
	overflow: hidden;
}

.flow .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title {
	margin: 0;
	padding: 18px 22px;
	background: linear-gradient(180deg, var(--g-025), var(--white));
	border-top: 0;
	border-bottom: 1px solid var(--line);
}
.flow .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text {
	margin: 0;
	color: var(--g-900);
	font-family: var(--font-head);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -.01em;
}
.flow .wc-block-components-checkout-order-summary__title-price {
	margin-right: 10px;
	color: var(--g-800);
	font-family: var(--font-head);
	font-size: 16px;
	font-weight: 700;
}
.flow .wc-block-components-checkout-order-summary__title-icon { fill: var(--g-700); }

/* Every row inside the summary card shares one inset. */
.flow .wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper { padding: 16px 22px; }
.flow .wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper:empty { padding: 0; }
.flow .wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block .wp-block-woocommerce-checkout-order-summary-cart-items-block { padding-top: 18px; }
.flow .wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item,
.flow .wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary,
.flow .wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-coupon { padding-inline: 0; }
.flow .wp-block-woocommerce-checkout-order-summary-totals-block { padding-bottom: 0; }
.flow .wp-block-woocommerce-checkout-order-summary-totals-block .wc-block-components-totals-wrapper + .wc-block-components-totals-wrapper:not(:empty) { padding-top: 0; }

/* Line items */
.flow .wc-block-components-order-summary .wc-block-components-order-summary-item {
	align-items: flex-start;
	gap: 14px;
	padding: 0;
}
.flow .wc-block-components-order-summary .wc-block-components-order-summary-item + .wc-block-components-order-summary-item {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed var(--line);
}
.flow .wc-block-components-order-summary .wc-block-components-order-summary-item::after { display: none; }

.flow .wc-block-components-order-summary .wc-block-components-order-summary-item__image {
	flex: none;
	width: 64px;
	margin: 0;
	padding: 0;
}
.flow .wc-block-components-order-summary .wc-block-components-order-summary-item__image > img {
	width: 64px;
	max-width: 64px;
	height: 64px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--g-025);
	object-fit: cover;
}
.flow .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
	top: 2px;
	right: 2px;
	min-width: 22px;
	min-height: 22px;
	border: 2px solid var(--white);
	background: var(--g-700);
	font-size: 11.5px;
	font-weight: 700;
}
.flow .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity span { color: #fff; }

.flow .wc-block-components-order-summary .wc-block-components-order-summary-item__description {
	flex: 1 1 auto;
	min-width: 0;
	gap: 3px;
	padding: 2px 0 0;
}
.flow .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-product-name {
	max-width: none;
	color: var(--g-900);
	font-family: var(--font-head);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
}
.flow .wc-block-components-order-summary .wc-block-components-order-summary-item__individual-prices { color: var(--muted); font-size: 12.5px; }
.flow .wc-block-components-order-summary .wc-block-components-product-metadata { color: var(--muted); font-size: 12px; line-height: 1.45; }
.flow .wc-block-components-order-summary .wc-block-components-product-metadata__description {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}
.flow .wc-block-components-product-metadata__description p { margin: 0; }

.flow .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price {
	flex: none;
	padding-top: 2px;
	color: var(--g-900);
	font-family: var(--font-head);
	font-size: 14.5px;
	font-weight: 700;
}

.flow .wc-block-components-product-price del { color: var(--muted); font-weight: 400; }
.flow .wc-block-components-product-price ins { color: var(--g-800); font-weight: 600; text-decoration: none; }

.flow .wc-block-components-sale-badge {
	padding: 3px 9px;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--g-050);
	color: var(--g-700);
	font-family: var(--font-body);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

/* Coupon */
.flow .wc-block-components-totals-coupon .wc-block-components-panel__button {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 24px;
	margin: 0;
	padding-top: 0;
	padding-bottom: 0;
	color: var(--g-700);
	font-size: 14.5px;
	font-weight: 600;
}
.flow .wc-block-components-totals-coupon .wc-block-components-panel__button[aria-expanded=true] { margin-bottom: 14px; }
.flow .wc-block-components-totals-coupon .wc-block-components-panel__button:hover { color: var(--g-600); }
.flow .wc-block-components-totals-coupon .wc-block-components-panel__button::before {
	content: "";
	width: 18px;
	height: 18px;
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8Z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8Z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.flow .wc-block-components-totals-coupon .wc-block-components-panel__button > .wc-block-components-panel__button-icon { fill: var(--g-700); }

.flow .wc-block-components-totals-coupon__form { gap: 10px; }
.flow .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button {
	min-height: 54px;
	padding-inline: 20px;
	border: 0;
	border-radius: 12px;
	background: var(--g-800);
	color: #fff;
	font-family: var(--font-head);
	font-weight: 600;
}
.flow .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button:hover { background: var(--g-700); }

/* Totals */
.flow .wc-block-components-totals-item { color: var(--ink-2); font-size: 14.5px; }
.flow .wc-block-components-totals-item__value { color: var(--ink); font-weight: 600; }
.flow .wc-block-components-totals-item__description { color: var(--muted); font-size: 12.5px; }

.flow .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	color: var(--g-900);
	font-family: var(--font-head);
	font-size: 17px;
	font-weight: 700;
}
.flow .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: var(--g-800);
	font-family: var(--font-head);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -.02em;
}
.flow .wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper:has(> .wc-block-components-totals-footer-item) {
	padding-block: 18px 20px;
	background: var(--g-025);
}

/* Small-screen copy of the summary that Woo slots in above Place Order. */
.flow .wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper {
	margin-bottom: 18px;
	padding-bottom: 0;
	box-shadow: var(--sh-1);
}
.flow .checkout-order-summary-block-fill-wrapper .wc-block-components-checkout-step__heading {
	padding: 18px 22px;
	background: linear-gradient(180deg, var(--g-025), var(--white));
	border-bottom: 1px solid var(--line);
}
.flow .wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper .wc-block-components-title { margin: 0; font-size: 18px; }
.flow .wp-block-woocommerce-checkout-order-summary-block .checkout-order-summary-block-fill { border: 0; border-radius: 0; }

/* ---------------------------------------------------------------- cart */

.flow .wc-block-cart .wc-block-cart__main {
	padding: 6px clamp(18px, 2.4vw, 28px);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--sh-1);
}
.flow .wc-block-cart__main .wc-block-cart-items { border-bottom: 0; }
.flow .wc-block-cart__main .wc-block-cart-items th {
	padding: 16px 16px 14px 0;
	color: var(--muted);
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.flow .wc-block-cart__main .wc-block-cart-items td { padding-block: 22px; border-top-color: var(--line); }
.flow .wc-block-cart__main .wc-block-cart-items .wc-block-cart-item__image { width: 104px; padding-right: 20px; }
.flow .wc-block-cart-item__image img {
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--g-025);
	aspect-ratio: 1;
	object-fit: cover;
}

.flow .wc-block-cart-item__product .wc-block-components-product-name {
	color: var(--g-900);
	font-family: var(--font-head);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}
.flow .wc-block-cart-item__product a.wc-block-components-product-name:hover { color: var(--g-600); }
.flow .wc-block-cart-item__prices { margin-top: 4px; font-size: 14px; }
.flow .wc-block-cart-item__product .wc-block-components-product-metadata {
	margin-top: 4px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
}
.flow .wc-block-cart-item__quantity { margin-top: 12px; gap: 14px; }
.flow .wc-block-cart-item__total { color: var(--g-900); font-family: var(--font-head); font-size: 16px; font-weight: 700; }

.flow .wc-block-components-quantity-selector:where(:has(input:not([type=hidden]))) {
	width: 118px;
	height: 42px;
	border: 1px solid var(--flow-field-bd);
	border-radius: var(--r-pill);
	background: var(--white);
}
.flow .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	min-width: 38px;
	color: var(--g-700);
	font-size: 18px;
	opacity: 1;
	transition: background-color .15s;
}
.flow .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover:not(:disabled) { background: var(--g-050); }
.flow .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled { color: var(--muted); opacity: .45; }
.flow .wc-block-components-quantity-selector > .wc-block-components-quantity-selector__button--minus { border-radius: var(--r-pill) 0 0 var(--r-pill); }
.flow .wc-block-components-quantity-selector > .wc-block-components-quantity-selector__button--plus { border-radius: 0 var(--r-pill) var(--r-pill) 0; }
.flow .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	color: var(--g-900);
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 600;
}
.flow .wc-block-cart-item__remove-link { color: var(--muted); transition: color .15s; }
.flow .wc-block-cart-item__remove-link:hover { color: #cc1818; }

.flow .wc-block-cart .wc-block-cart__sidebar { padding: 22px 24px 24px; }
.flow .wc-block-cart .wc-block-cart__totals-title {
	margin: 0 0 4px;
	padding: 0 0 14px;
	color: var(--g-900);
	font-family: var(--font-head);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -.01em;
	text-transform: none;
}
.flow .wc-block-cart .wp-block-woocommerce-cart-order-summary-block { margin-bottom: 18px; border-bottom: 0; }
.flow .wc-block-cart .wc-block-cart__submit { margin-bottom: 0; }

/* Empty cart */
.flow .wp-block-woocommerce-empty-cart-block {
	padding: clamp(28px, 4vw, 48px) clamp(18px, 3vw, 40px);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--sh-1);
}
.flow .wc-block-cart__empty-cart__title { color: var(--g-900); font-size: clamp(20px, 2.4vw, 26px); }
.flow .wc-block-cart__empty-cart__title.with-empty-cart-icon::before { background-color: var(--g-500); }
/* The block ships a dotted <hr> between the title and the suggestions. Three
   faint dots floating in the middle of the panel read as something failing to
   load, so the rule is kept as plain space. */
.flow .wp-block-woocommerce-empty-cart-block .wp-block-separator.is-style-dots::before { content: none; }
.flow .wp-block-woocommerce-empty-cart-block .wp-block-separator { margin-block: 28px; color: var(--g-300); }
.flow .wp-block-woocommerce-empty-cart-block h2:not(.wc-block-cart__empty-cart__title) { font-size: clamp(19px, 2.2vw, 23px); }


/* ==========================================================================
   WooCommerce product blocks (wc-block-grid)
   ==========================================================================
   The block editor's product grids — "New in store" on the empty cart, and any
   product block dropped into a page — are their own markup, not the shop loop,
   so woocommerce/content-product.php never runs and the theme's own card never
   appears. Left alone they fall back to WooCommerce's default styling: raw
   full-bleed images, centred captions and a black button, which is the one
   place on the site that does not look like the site. This restyles them to
   match .pcard rather than rebuilding them as one. */

/* Every rule below is scoped to .wc-block-grid[class*="has-"] — the column
   count class the block always carries — so it outranks WooCommerce's own
   ".wc-block-grid.has-4-columns .wc-block-grid__product" without !important. */
.wc-block-grid .wc-block-grid__products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
	gap: clamp(14px, 1.8vw, 22px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wc-block-grid[class*="has-"] .wc-block-grid__products .wc-block-grid__product {
	display: flex;
	flex-direction: column;
	gap: 0;
	/* The block sizes each item for its own flex row — "has-4-columns" caps it
	   at max-width:25%. Inside a grid track that is a quarter of one column,
	   so both the basis and the cap have to go. */
	flex: initial;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0 0 16px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: 0 1px 2px rgba(11, 36, 19, .04), 0 6px 18px -8px rgba(11, 36, 19, .10);
	overflow: hidden;
	text-align: left;
	transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}
.wc-block-grid[class*="has-"] .wc-block-grid__product:hover {
	transform: translateY(-5px);
	border-color: var(--g-100);
	box-shadow: 0 2px 6px rgba(11, 36, 19, .06), 0 18px 38px -12px rgba(23, 73, 42, .26);
}

.wc-block-grid[class*="has-"] .wc-block-grid__product-link { display: block; text-decoration: none; }

/* Full-bleed, 4:5, cropped by the card — the same treatment as .pcard__thumb,
   and for the same reason: these pack shots are styled scenes that carry their
   own background, so a mat around one only frames a picture in a picture. */
.wc-block-grid[class*="has-"] .wc-block-grid__product-image {
	position: relative;
	display: block;
	margin: 0;
	padding: 0;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--g-025);
}
.wc-block-grid[class*="has-"] .wc-block-grid__product-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	object-fit: cover;
	object-position: center 45%;
	border-radius: 0;
	box-shadow: none;
	transition: transform .6s var(--ease);
}
.wc-block-grid[class*="has-"] .wc-block-grid__product:hover .wc-block-grid__product-image img { transform: scale(1.05); }

/* Two lines, as on the theme's own card, so a row of prices lines up. The
   block's own markup leaves nowhere to hang a -webkit-box clamp — the title is
   a flex item of .wc-block-grid__product, and a flex item's display is
   blockified, so the clamp is silently dropped. A height of exactly two lines
   cuts on a line boundary instead, with no ellipsis but no sliced third line. */
.wc-block-grid[class*="has-"] .wc-block-grid__product-title {
	height: calc(2em * 1.35);
	margin: 14px 16px 0;
	overflow: hidden;
	color: var(--g-900);
	font-family: var(--font-head);
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.35;
}
.wc-block-grid[class*="has-"] .wc-block-grid__product-link:hover .wc-block-grid__product-title { color: var(--g-600); }

.wc-block-grid[class*="has-"] .wc-block-grid__product-price {
	display: block;
	margin: 9px 16px 0;
	color: var(--g-900);
	font-family: var(--font-head);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.01em;
}
.wc-block-grid[class*="has-"] .wc-block-grid__product-price del { color: var(--muted); font-weight: 400; }
.wc-block-grid[class*="has-"] .wc-block-grid__product-price ins { text-decoration: none; }

.wc-block-grid[class*="has-"] .wc-block-grid__product-add-to-cart { margin: 14px 16px 0; }
.wc-block-grid[class*="has-"] .wc-block-grid__product-add-to-cart .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 42px;
	padding: 0 14px;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--g-600);
	color: var(--white);
	font-family: var(--font-head);
	font-size: 14px;
	font-weight: 600;
	transition: background-color .18s var(--ease);
}
.wc-block-grid[class*="has-"] .wc-block-grid__product-add-to-cart .wp-block-button__link:hover { background: var(--g-700); color: var(--white); }
.wc-block-grid[class*="has-"] .wc-block-grid__product-add-to-cart .wp-block-button__link:focus-visible { outline: 3px solid var(--g-400); outline-offset: 2px; }

.wc-block-grid[class*="has-"] .wc-block-grid__product-onsale {
	margin: 0;
	padding: 5px 10px;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--c-gold);
	color: var(--g-950);
	font-family: var(--font-head);
	font-size: 11px;
	font-weight: 600;
}

/* -------------------------------------------------------- order received */

.flow .woocommerce-order { max-width: 880px; margin-inline: auto; }

.flow .woocommerce-order .woocommerce-thankyou-order-received {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	padding: 20px 24px;
	background: var(--white);
	border: 1px solid var(--g-100);
	border-radius: var(--r-lg);
	box-shadow: var(--sh-1);
	color: var(--g-900);
	font-family: var(--font-head);
	font-size: 18px;
	font-weight: 600;
}
.flow .woocommerce-order .woocommerce-thankyou-order-received::before {
	content: "";
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--g-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.8 4.2 4.2L19 7.2'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.flow ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin: 0 0 18px;
	padding: 0;
}
.flow ul.woocommerce-order-overview::before,
.flow ul.woocommerce-order-overview::after { display: none; }
.flow ul.woocommerce-order-overview li {
	float: none;
	margin: 0;
	padding: 14px 16px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	color: var(--muted);
	font-size: 12px;
	letter-spacing: .06em;
	line-height: 1.4;
	text-transform: uppercase;
}
.flow ul.woocommerce-order-overview li strong {
	display: block;
	margin-top: 4px;
	color: var(--g-900);
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	overflow-wrap: anywhere;
}

.flow .woocommerce-order > p:not([class]),
.flow .woocommerce-order-details,
.flow .woocommerce-customer-details {
	margin: 0 0 18px;
	padding: clamp(18px, 2.4vw, 26px);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--sh-1);
}
.flow .woocommerce-order-details__title,
.flow .woocommerce-column__title { margin: 0 0 14px; font-size: 19px; }
.flow .woocommerce-customer-details address {
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 12px;
	font-style: normal;
	line-height: 1.6;
}

/* ------------------------------------------------------- reassurance row */

.flow__assure {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: 14px;
	margin-top: clamp(28px, 4vw, 44px);
}
.flow__assure li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
}
.flow__assure-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--g-mint);
	color: var(--g-700);
}
.flow__assure-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	color: var(--ink-2);
	font-size: 13.5px;
	line-height: 1.45;
}
.flow__assure-text strong { color: var(--g-900); font-family: var(--font-head); font-size: 14.5px; font-weight: 600; }
.flow__assure-text a { color: var(--g-700); font-weight: 600; }
.flow__assure-text a:hover { color: var(--g-600); text-decoration: underline; }


/* ==========================================================================
   Responsive — one block per condition, widest first
   ========================================================================== */

@media (max-width: 1199px) {
	/* Banner — too narrow to sit the copy over the artwork: it stacks above the
	   picture, which is cropped to the products and fades into the sky colour. */
	.shero { background: linear-gradient(180deg, #e3ecef 0%, #dfe9ec 100%); }
	.shero__stage { display: flex; flex-direction: column; max-width: none; aspect-ratio: auto; }
	.shero__bg {
		position: relative;
		order: 2;
		height: clamp(240px, 58vw, 460px);
		object-position: 93% 60%;
		-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%);
		mask-image: linear-gradient(180deg, transparent 0, #000 16%);
	}
	.shero__copy {
		position: relative;
		inset: auto;
		width: auto;
		z-index: 1;
		padding: clamp(22px, 4vw, 40px) max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))) 20px;
	}
	.shero__crumbs { gap: 6px; font-size: 13.5px; }
	.shero__crumbs-icon { width: 18px; height: 18px; }
	.shero__crumbs .crumbs { gap: 7px; }
	.shero__title { margin-top: 10px; }
	.shero__lead-in { font-size: clamp(28px, 7.2vw, 52px); }
	.shero__accent { margin-top: 2px; font-size: clamp(44px, 12vw, 84px); }
	.shero__lead { max-width: 32em; margin-top: 14px; font-size: clamp(15px, 2.2vw, 19px); line-height: 1.5; }
	.shero__badges { flex-wrap: wrap; gap: 18px 34px; margin: 22px 0 0; }
	.shero__badge { align-items: flex-start; width: auto; font-size: clamp(11.5px, 2.8vw, 14px); text-align: left; }
	.shero__badge + .shero__badge::before { display: none; }
	.shero__disk { width: clamp(48px, 11vw, 64px); height: clamp(48px, 11vw, 64px); }
	.shero__label { margin-top: 6px; }
	.shero__cta {
		gap: 12px;
		height: 48px;
		margin: 24px 0 0;
		padding: 0 22px 0 26px;
		font-size: 15px;
		box-shadow: 0 6px 14px rgba(8, 80, 35, .24);
	}
	.shero__cta:hover { box-shadow: 0 8px 18px rgba(8, 80, 35, .32); }
	.shero__cta .bhoo-icon { width: 18px; height: 18px; }
}

@media (max-width: 1100px) {
	/* Product rows — grid shown until the carousel mounts */
	.prodrow__slider:not(.is-initialized) .splide__list { grid-template-columns: repeat(3, 1fr); }

	/* Purchase flow — reassurance row in two columns */
	.flow__assure { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
	/* Archive — filters become an off-canvas drawer */
	.shop__layout { grid-template-columns: 1fr; }
	.shop__side { position: static; max-height: none; }
	.shop__filterbtn { display: inline-flex; }
	/* Only hide the sidebar when the toggle can actually reopen it. */
	.js .shop__side {
		display: none;
		position: fixed;
		inset-block: 0;
		left: 0;
		z-index: 130;
		width: min(340px, 88vw);
		padding: 0 18px 18px;
		background: var(--white);
		box-shadow: var(--sh-3);
		overflow-y: auto;
	}
	.js .shop__side.is-open { display: block; }
	/* Inside the drawer the panel is the drawer: no card, and its sticky head
	   already says "Filters". */
	.js .shop__side .wc-block-product-filters { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
	.js .shop__side .wc-block-product-filters__content > h2 { display: none; }	.js .shop__side-head {
		position: sticky;
		top: 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		margin: 0 -18px 12px;
		padding: 14px 12px 14px 18px;
		background: var(--white);
		border-bottom: 1px solid var(--line);
		font-family: var(--font-head);
		font-weight: 600;
		color: var(--g-900);
	}
	body.filters-open { overflow: hidden; }
	body.filters-open::after {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 129;
		background: rgba(11, 36, 19, .5);
	}
}

@container (max-width: 939px) {
	/* Purchase flow — stack the columns before the summary gets cramped. The
	   checkout summary moves above the form, as Woo does on phones. */
	.flow .wc-block-components-sidebar-layout.is-large { flex-direction: column; align-items: stretch; }
	.flow .wc-block-components-sidebar-layout.is-large .wc-block-components-sidebar { flex: none; width: 100%; }
	.flow .wc-block-checkout.is-large .wc-block-checkout__sidebar { order: -1; position: static; margin-bottom: 18px; }
	.flow .wc-block-cart.is-large .wc-block-cart__sidebar { margin-top: 18px; }
}

@media (max-width: 900px) {
	/* Single product — one column, the photo no taller than it needs to be
	   so the price and the buy card are reachable without a long scroll. */
	.product__main { grid-template-columns: 1fr; }
	.product__gallery { position: static; }
	.woocommerce div.product .product__gallery .woocommerce-product-gallery__image:first-child,
	.woocommerce div.product .product__gallery .flex-viewport .woocommerce-product-gallery__image,
	.woocommerce div.product .product__gallery .woocommerce-product-gallery__image--placeholder { height: min(56vh, 420px); }
	.woocommerce div.product .woocommerce-tabs ul.tabs { width: 100%; }
}

@media (max-width: 820px) {
	/* Product rows — grid shown until the carousel mounts */
	.prodrow__slider:not(.is-initialized) .splide__list { grid-template-columns: repeat(2, 1fr); }
}

@container (max-width: 699px) {
	/* Purchase flow — Woo's phone layout: collapsible summary on top */
	.flow .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title { padding: 16px 18px; border-bottom: 0; }
	.flow .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title.is-open { border-bottom: 1px solid var(--line); }
	.flow .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__content.is-open { border-bottom: 0; }
	.flow .wc-block-checkout__sidebar { margin-bottom: 18px; }
	.flow .wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper { padding-inline: 18px; }
	.flow .checkout-order-summary-block-fill-wrapper .wc-block-components-checkout-step__heading { padding: 16px 18px; }
	.flow .wc-block-components-form fieldset.wc-block-components-checkout-step { padding: 20px 18px; }
	.flow .wc-block-components-form .wc-block-checkout__order-notes { padding: 16px 18px; }
	.flow .wc-block-cart .wc-block-cart__sidebar { margin-top: 18px; padding: 20px 18px; }
	.flow .wc-block-cart .wc-block-cart__main { padding: 4px 16px; }

	/* Cart line item — image | details | total. Woo's fixed 80px + 132px columns
	   push the total out of the card once the image cell is any wider than 80px. */
	.flow .wc-block-cart table.wc-block-cart-items { width: 100%; }
	.flow .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
		grid-template-columns: 72px minmax(0, 1fr) auto;
		column-gap: 14px;
		padding: 18px 0;
	}
	.flow .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image { grid-column: 1; grid-row: 1; width: 72px; padding: 0; }
	.flow .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product { grid-column: 2; grid-row: 1; min-width: 0; }
	.flow .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total { grid-column: 3; grid-row: 1; }
}

@media (max-width: 720px) {
	/* Purchase flow — progress trail drops under the title */
	.phero--steps .phero__inner { grid-template-columns: minmax(0, 1fr); }
	.phero--steps .steps { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 18px; }

	/* Single product — sticky buy bar */
	.buybar {
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		z-index: 95;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		padding: 10px 16px;
		background: var(--white);
		border-top: 1px solid var(--line);
		box-shadow: 0 -6px 20px rgba(11, 36, 19, .1);
	}
	.buybar__price { color: var(--g-800); font-family: var(--font-head); font-weight: 700; }
	.buybar__price ins { text-decoration: none; }
	.buybar__price del,
	.buybar__price .price__save { display: none; }

	/* An odd tile left alone on the last row takes the full width. */
	.product__trust li:last-child:nth-child(odd) { grid-column: 1 / -1; }

	/* The tab strip scrolls sideways here; the fade at its edge says so
	   rather than leaving a tab looking cut in half. */
	.woocommerce div.product .woocommerce-tabs ul.tabs {
		-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
		mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
	}
	.buybar__cta { padding-block: 11px; }
	.product__page { padding-bottom: 90px; }

	/* The button takes the rest of the row beside the quantity stepper, and
	   drops to its own full-width line only when the label needs it. */
	.woocommerce div.product form.cart .button,
	.woocommerce div.product .single_add_to_cart_button { flex: 1 1 150px; padding-inline: 18px; font-size: 15px; }
	.woocommerce div.product .summary > p.price { font-size: 23px; }
}

@media (max-width: 600px) {
	/* Archive toolbar — the two controls split the row evenly and the count
	   drops beneath them, reading as a caption for the grid. */
	.shop__toolbar {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		gap: 12px 10px;
		padding-bottom: 12px;
	}
	/* The button hugs its label so the longer sort options keep the spare
	   width and stay readable. */
	.shop__filterbtn {
		grid-column: 1;
		grid-row: 1;
		min-width: 116px;
		padding: 0 16px;
		font-size: 14px;
	}
	/* min-width:0 waives the grid item's automatic minimum size. Chrome keeps
	   the select inside its track without it; Firefox and Safari can size a
	   select to its widest option, so the guard stays. */
	.shop__toolbar .woocommerce-ordering {
		grid-column: 2;
		grid-row: 1;
		min-width: 0;
		width: 100%;
		margin: 0;
	}
	.shop__toolbar .woocommerce-ordering select {
		min-width: 0;
		width: 100%;
		padding: 0 34px 0 15px;
		background-position: right 13px center;
		font-size: 13.5px;
	}
	.shop__toolbar .woocommerce-result-count {
		grid-column: 1 / -1;
		grid-row: 2;
		font-size: 13px;
	}
}

@media (max-width: 520px) {
	/* Product rows — two to a row, as the carousel shows them */
	.prodrow__slider:not(.is-initialized) .splide__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

	/* Shop grid — two products to a row; the card's own container query
	   tightens it to fit (main.css, "Product card at phone-column width") */
	.woocommerce ul.products,
	ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

	/* Banner — badges as a two-by-two of icon + label */
	.shero__badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
	.shero__badge { flex-direction: row; align-items: center; gap: 10px; }
	.shero__label { margin-top: 0; }
	.shero__cta { width: 100%; justify-content: center; }

	/* Purchase flow — only the current step keeps its label */
	.steps__item:not(.is-current) .steps__label { display: none; }
	.steps__item:not(.is-current) .steps__link { padding-right: 5px; }
	.steps__item + .steps__item::before { width: 14px; }
	.flow__assure { grid-template-columns: minmax(0, 1fr); }
}
