/* =========================================================================
   Order form redesign
   Presentational layer that restyles the shop/order form to the Figma
   "Build your wholesale order" direction. Loads after order-form.css and
   intentionally overrides parts of it.
   ========================================================================= */

:root {
	--tp-accent:       #a7d129; /* bright lime CTA */
	--tp-accent-ink:   #223300;
	--tp-ink:          #1f2430;
	--tp-muted:        #6b7280;
	--tp-line:         #e6e8ec;
	--tp-surface:      #ffffff;
	--tp-surface-2:    #f7f8fa;
	--tp-dark:         #11151c;
	--tp-card-radius:  16px;
	--tp-shadow:       0 1px 2px rgba(16,24,40,.04), 0 10px 28px rgba(16,24,40,.06);

	/* Brand category colours (mirror theme.json presets for convenience) */
	--tp-clean:      var(--wp--preset--color--brandgreen-product);
	--tp-deodorise:  var(--wp--preset--color--brandblue-product);
	--tp-proof:      var(--wp--preset--color--brandpurple-product);
	--tp-industrial: var(--wp--preset--color--brandorange-product);
	--tp-twin:       var(--wp--preset--color--brandbluegreen-product);
	--tp-equestrian: var(--wp--preset--color--brandbrown-product);
}

/* -------------------------------------------------------------------------
   Layout: main column + sticky summary
   ---------------------------------------------------------------------- */
.order-layout {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
}
.order-layout__main {
	flex: 1 1 auto;
	min-width: 0;
}
.order-layout__aside {
	flex: 0 0 340px;
	width: 340px;
	position: sticky;
	top: 4.5rem;
}
@media (max-width: 1080px) {
	.order-layout { flex-direction: column; }
	.order-layout__aside { position: static; width: 100%; flex-basis: auto; order: -1; }
}

/* Tidy the stock favourites / "no special offers" notices into muted strips */
.order-layout__main > p {
	font-size: .85rem;
	color: var(--tp-muted);
	background: var(--tp-surface-2);
	border: 1px solid var(--tp-line);
	border-radius: 10px;
	padding: .75rem 1rem;
	margin: 0 0 1.25rem;
}
.order-layout__main > div:not([class]) {
	font-size: .8rem;
	color: var(--tp-muted);
	margin: .25rem 0 1.25rem;
}

/* -------------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------- */
.order-hero {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2.5rem;
	padding: 2.5rem 0 1.5rem;
}
.order-hero__eyebrow {
	display: block;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .75rem;
	font-weight: 700;
	color: var(--tp-muted);
}
.order-hero__title {
	font-size: clamp(2.25rem, 4.6vw, 3.4rem);
	line-height: 1.04;
	margin: .5rem 0 1rem;
	color: var(--tp-ink) !important;
	max-width: 14ch;
}
.order-hero__subtitle {
	max-width: 46ch;
	color: var(--tp-muted);
	font-size: 1.05rem;
	margin: 0;
}
.order-hero__tags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 1.25rem 0 0;
	padding: 0;
}
.order-hero__tags li {
	background: #eef3e6;
	color: #44600f;
	border-radius: 999px;
	padding: .35rem .85rem;
	font-size: .8rem;
	font-weight: 600;
}
.order-hero__account {
	flex: 0 0 auto;
	min-width: 220px;
	background: var(--tp-surface);
	border: 1px solid var(--tp-line);
	border-radius: 14px;
	padding: 1.1rem 1.25rem;
	box-shadow: var(--tp-shadow);
}
.order-hero__account-label {
	display: block;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: .68rem;
	font-weight: 700;
	color: var(--tp-muted);
}
.order-hero__account-name {
	display: block;
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--tp-ink);
	margin: .25rem 0 .5rem;
}
.order-hero__account-link {
	font-size: .82rem;
	font-weight: 700;
	color: var(--wp--preset--color--brandgreen) !important;
	text-decoration: none;
}
@media (max-width: 720px) {
	.order-hero { flex-direction: column; gap: 1.25rem; }
	.order-hero__side { width: 100%; }
	.order-hero__account { width: 100%; }
}

/* -------------------------------------------------------------------------
   Category filter pills  (overrides .category-groups / .menu-group)
   ---------------------------------------------------------------------- */
.category-groups {
	display: flex !important;
	flex-wrap: wrap;
	gap: .35rem;
	justify-content: flex-start;
	text-align: left;
	width: max-content;
	max-width: 100%;
	margin: 0 0 1.75rem !important;
	padding: .4rem;
	background: var(--tp-surface);
	border: 1px solid var(--tp-line);
	border-radius: 999px;
	box-shadow: var(--tp-shadow);
}
.category-groups .menu-group {
	width: auto !important;
	padding: 0 !important;
	flex-grow: 0 !important;
	background: transparent !important;
	border-radius: 999px;
}
.category-groups .menu-group > a {
	display: inline-flex !important;
	align-items: center;
	gap: .5rem;
	padding: .5rem 1rem !important;
	border-radius: 999px;
	color: var(--tp-ink) !important;
	background: transparent;
	font-weight: 600 !important;
	text-transform: none !important;
	font-size: .9rem;
	line-height: 1;
	white-space: nowrap;
	transition: background .15s ease, color .15s ease;
}
.category-groups .menu-group > a::before {
	content: "";
	width: .6rem;
	height: .6rem;
	border-radius: 50%;
	background: #c3c7cf;
	flex: 0 0 auto;
}
.category-groups .menu-group--all > a::before { display: none; }
.category-groups .menu-group > a:hover { background: var(--tp-surface-2); }
.category-groups .menu-group > a.active {
	background: var(--tp-accent);
	color: var(--tp-accent-ink) !important;
}
.menu-group.clean      > a::before { background: var(--tp-clean); }
.menu-group.deodorise  > a::before { background: var(--tp-deodorise); }
.menu-group.proof      > a::before { background: var(--tp-proof); }
.menu-group.industrial > a::before { background: var(--tp-industrial); }
.menu-group.twin       > a::before { background: var(--tp-twin); }
.menu-group.equestrian > a::before { background: var(--tp-equestrian); }
/* keep the (hidden) sub-category lists hidden */
.category-groups .menu-group .product-category,
.category-groups .menu-group .flexOFF { display: none !important; }
.reset-group { display: none !important; }

/* The reveal-list collapse header becomes a small range label */
.product-list.reveal-list > h3 {
	font-size: .78rem;
	color: var(--tp-muted);
	text-transform: uppercase;
	letter-spacing: .1em;
	font-weight: 700;
	margin: 0 0 1rem;
}
.product-list.reveal-list > h3 .dashicons { color: var(--tp-muted); }

/* -------------------------------------------------------------------------
   Category cards
   ---------------------------------------------------------------------- */
.product-list .products,
.order-layout__main table.products {
	border-collapse: separate !important;
	border-spacing: 0 1.5rem !important;
	width: 100%;
}
.product-table > td.color-background {
	background: var(--tp-surface) !important;
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-card-radius) !important;
	border-bottom: 1px solid var(--tp-line) !important;
	padding: 0 !important;
	overflow: hidden;
	box-shadow: var(--tp-shadow);
}

/* coloured header strip */
.cat-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.5rem 1.75rem;
	color: #fff;
	background: #6b7280; /* fallback */
}
.cat-card__eyebrow {
	display: block;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .72rem;
	font-weight: 700;
	opacity: .85;
	margin-bottom: .3rem;
}
.cat-card__header h3 {
	color: #fff !important;
	margin: 0 !important;
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	line-height: 1.05;
	text-transform: none !important;
	font-weight: 800 !important;
}
.cat-card__count {
	text-align: right;
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	opacity: .95;
	white-space: nowrap;
}
.cat-card__count strong {
	display: block;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1;
}
.product-table.clean      .cat-card__header { background: var(--tp-clean); }
.product-table.deodorise  .cat-card__header { background: var(--tp-deodorise); }
.product-table.proof      .cat-card__header { background: var(--tp-proof); }
.product-table.industrial .cat-card__header { background: var(--tp-industrial); }
.product-table.twin       .cat-card__header { background: var(--tp-twin); }
.product-table.equestrian .cat-card__header { background: var(--tp-equestrian); }

.cat-card__body { padding: 0 1.75rem; }

/* column heading row */
.cat-table tr.headings {
	background: transparent !important;
	position: static !important;
	color: var(--tp-muted) !important;
	line-height: 1.2 !important;
}
.cat-table tr.headings th {
	text-align: left;
	text-transform: uppercase;
	letter-spacing: .07em;
	font-size: .68rem;
	color: var(--tp-muted);
	font-weight: 700;
	padding: 1.1rem .5rem .8rem !important;
	border-bottom: 1px solid var(--tp-line);
	background: transparent !important;
}
.cat-table tr.headings th.var_ret_price,
.cat-table tr.headings th.calc_total { text-align: right; }
.cat-table tr.headings th.var_qty { text-align: center; }

/* product + variation rows */
.cat-table .variation-table { width: 100%; border-collapse: collapse; }

/* Neutralise the brand-tinted row backgrounds from order-form.css so the card
   interior reads as clean white, matching the design. */
.product-table .cat-table tr,
.product-table .cat-table tr.open-color,
.product-table .variation-table tr,
.product-table .variation-table tr.variation-item {
	background: transparent !important;
	color: var(--tp-ink) !important;
}
.variation-table tr.variation-item { border-bottom: 1px solid var(--tp-line); }
.variation-table tr.variation-item:last-child { border-bottom: 0; }
.variation-table .product-name { background: transparent !important; }

/* Zebra striping — alternate the product rows, tinted with a light wash of
   the section's own brand colour (green for Clean, purple for Proof, …).
   The product-name row is the first child, so variation items sit at child
   positions 2, 3, 4 …. Desktop table view only; mobile keeps its clean cards. */
.product-table.clean      { --tp-row-stripe: color-mix(in srgb, var(--tp-clean)      12%, #fff); }
.product-table.deodorise  { --tp-row-stripe: color-mix(in srgb, var(--tp-deodorise)  12%, #fff); }
.product-table.proof      { --tp-row-stripe: color-mix(in srgb, var(--tp-proof)      12%, #fff); }
.product-table.industrial { --tp-row-stripe: color-mix(in srgb, var(--tp-industrial) 12%, #fff); }
.product-table.twin       { --tp-row-stripe: color-mix(in srgb, var(--tp-twin)       12%, #fff); }
.product-table.equestrian { --tp-row-stripe: color-mix(in srgb, var(--tp-equestrian) 12%, #fff); }

@media (min-width: 1081px) {
	.product-table .variation-table tr.variation-item:nth-child(even) {
		background: var(--tp-row-stripe, var(--tp-surface-2)) !important;
	}
}

.variation-table td.product-name {
	padding: 1.1rem .5rem .1rem !important;
	font-weight: 800;
	color: var(--tp-ink);
	font-size: 1.05rem;
	text-align: left !important;
	border: 0 !important;
}
.variation-table td {
	padding: .65rem .5rem !important;
	border: 0;
	vertical-align: middle;
	color: var(--tp-ink);
}
.variation-table td.var_id,
.variation-table td.var_size { color: var(--tp-muted); font-size: .9rem; text-align: left !important; }
.variation-table td.var_spp { color: var(--tp-ink); }
.variation-table td.var_ret_price { text-align: right !important; font-weight: 700; }
.variation-table td.calc_total { text-align: right !important; }
.variation-table td.calc_total span { font-weight: 800; }
.variation-table td.var_qty { text-align: center !important; }
.variation-table td.nwtp-favourite { text-align: center !important; }
.variation-table td.nwtp-favourite .dashicons { color: var(--tp-muted); }
.variation-table td.nwtp-favourite .dashicons-star-filled { color: #f5b300; }

/* quantity stepper */
.var_qty .quantity-wrapper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--tp-line);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}
.var_qty .quantity-button {
	height: 2.2rem !important;
	width: 2.2rem !important;
	background: var(--tp-surface-2) !important;
	border: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.var_qty .quantity-button:hover { background: #eceef1 !important; }
.var_qty .quantity-button svg { width: .8rem; height: .8rem; }
.var_qty input[name=quantity] {
	width: 3rem !important;
	border: 0 !important;
	border-radius: 0 !important;
	margin: 0 !important;
	font-size: 1rem !important;
	padding: .5rem .25rem !important;
	background: #fff;
}

/* out of stock — clearly flagged rather than just dimmed. The row stays
   legible (muted, not faded) and the quantity stepper is swapped for an
   explicit status pill so the shopper knows why they can't order it. */
.variation-table tr.variation-item.outofstock,
.variation-table tr.variation-item.unpurchasable {
	background: var(--tp-surface-2) !important;
}
.variation-item.outofstock td,
.variation-item.unpurchasable td { color: var(--tp-muted); }
.variation-item.outofstock .nwtp-favourite .dashicons,
.variation-item.unpurchasable .nwtp-favourite .dashicons { color: var(--tp-line); }

/* hide the (inert) +/- controls and show a status pill in their place */
.variation-item.outofstock .quantity-wrapper,
.variation-item.unpurchasable .quantity-wrapper { display: none !important; }

.variation-item.outofstock .var_qty::after,
.variation-item.unpurchasable:not(.outofstock) .var_qty::after {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .3rem .65rem;
	border-radius: 999px;
	background: #fdecec;
	color: #c0392b;
	font-size: .72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .03em;
	white-space: nowrap;
}
.variation-item.outofstock .var_qty::after { content: "Out of stock"; }
.variation-item.unpurchasable:not(.outofstock) .var_qty::after {
	content: "Unavailable";
	background: #eef0f3;
	color: var(--tp-muted);
}

/* card footer */
.cat-card__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 1.75rem;
	border-top: 1px solid var(--tp-line);
	background: var(--tp-surface-2);
}
.cat-card__footer-sub { display: flex; flex-direction: column; gap: .15rem; }
.cat-card__footer-count { font-size: .78rem; color: var(--tp-muted); }
.cat-card__footer-total { font-size: 1.3rem; font-weight: 800; color: var(--tp-ink); min-height: 1.3rem; }
.cat-card__buy {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .75rem 1.3rem;
	border-radius: 10px;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	background: #6b7280;
	transition: filter .15s ease;
}
.cat-card__buy:hover { filter: brightness(1.05); }
.cat-card__buy.clean      { background: var(--tp-clean); }
.cat-card__buy.deodorise  { background: var(--tp-deodorise); }
.cat-card__buy.proof      { background: var(--tp-proof); }
.cat-card__buy.industrial { background: var(--tp-industrial); }
.cat-card__buy.twin       { background: var(--tp-twin); }
.cat-card__buy.equestrian { background: var(--tp-equestrian); }

/* -------------------------------------------------------------------------
   Sticky order summary
   ---------------------------------------------------------------------- */
.order-summary__card {
	background: var(--tp-dark);
	color: #fff;
	border-radius: 18px;
	padding: 1.5rem;
	box-shadow: var(--tp-shadow);
}
.order-summary__eyebrow {
	display: block;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .7rem;
	opacity: .65;
	font-weight: 700;
}
.order-summary__title { color: #fff !important; margin: .2rem 0 1.25rem !important; font-size: 1.5rem !important; }
.order-summary__stats { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.order-summary__stat { background: rgba(255,255,255,.06); border-radius: 12px; padding: .85rem 1rem; }
.order-summary__stat-label { display: block; font-size: .7rem; opacity: .6; text-transform: uppercase; letter-spacing: .06em; }
.order-summary__stat-value { font-size: 1.8rem; font-weight: 800; }

.order-summary__lines { list-style: none; margin: 1.25rem 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.order-summary__line { display: flex; justify-content: space-between; gap: 1rem; }
.order-summary__line-name { font-weight: 700; display: block; font-size: .95rem; }
.order-summary__line-meta { font-size: .74rem; opacity: .55; }
.order-summary__line-side { text-align: right; white-space: nowrap; }
.order-summary__line-price { display: block; font-weight: 700; font-size: .95rem; }
.order-summary__remove {
	background: none; border: 0; padding: 0; cursor: pointer;
	color: var(--tp-accent); font-size: .72rem; text-decoration: underline;
}
.order-summary__totals { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; margin: 0; }
.order-summary__row { display: flex; justify-content: space-between; font-size: .9rem; opacity: .85; margin-bottom: .4rem; }
.order-summary__row dt, .order-summary__row dd { margin: 0; }
.order-summary__grand { margin-top: 1rem; }
.order-summary__grand-label { display: block; text-transform: uppercase; font-size: .7rem; opacity: .6; letter-spacing: .06em; }
.order-summary__grand-value { display: block; font-size: 2rem; font-weight: 800; line-height: 1.1; }
.order-summary__grand-note { font-size: .72rem; opacity: .5; }
.order-summary__empty { font-size: .9rem; opacity: .7; margin: 1.25rem 0; }
.order-summary__cta {
	display: flex; align-items: center; justify-content: center; gap: .5rem;
	margin-top: 1.25rem;
	background: var(--tp-accent);
	color: var(--tp-accent-ink) !important;
	font-weight: 800;
	padding: .95rem 1rem;
	border-radius: 12px;
	text-decoration: none !important;
}
.order-summary__cta:hover { filter: brightness(1.03); }
.order-summary__cta.is-disabled { opacity: .35; pointer-events: none; }

/* price markup colours inside the dark summary */
.order-summary__card .woocommerce-Price-amount { color: inherit; }

/* -------------------------------------------------------------------------
   Toast notifications (stock errors, etc.) — always visible, no scrolling
   ---------------------------------------------------------------------- */
.tp-toast-stack {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: .6rem;
	width: min(400px, 92vw);
	pointer-events: none;
}
.tp-toast {
	display: flex;
	gap: .75rem;
	align-items: flex-start;
	background: #fff;
	border: 1px solid var(--tp-line);
	border-left: 4px solid #d64545;
	border-radius: 12px;
	box-shadow: 0 12px 34px rgba(16,24,40,.22);
	padding: .9rem 1rem;
	pointer-events: auto;
	animation: tp-toast-in .2s ease;
}
.tp-toast.is-leaving { opacity: 0; transform: translateX(16px); transition: opacity .2s ease, transform .2s ease; }
.tp-toast--success { border-left-color: var(--wp--preset--color--brandgreen); }
.tp-toast--warn { border-left-color: #e0a106; }
.tp-toast__icon { color: #d64545; flex: 0 0 auto; margin-top: .05rem; line-height: 0; }
.tp-toast--success .tp-toast__icon { color: var(--wp--preset--color--brandgreen); }
.tp-toast--warn .tp-toast__icon { color: #e0a106; }
.tp-toast__body { flex: 1 1 auto; font-size: .9rem; color: var(--tp-ink); line-height: 1.45; }
.tp-toast__body a { color: var(--wp--preset--color--brandgreen); font-weight: 700; text-decoration: underline; }
.tp-toast__close {
	flex: 0 0 auto;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--tp-muted);
	font-size: 1.25rem;
	line-height: 1;
	padding: 0 .15rem;
}
.tp-toast__close:hover { color: var(--tp-ink); }
@keyframes tp-toast-in {
	from { opacity: 0; transform: translateX(16px); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.tp-toast { animation: none; }
}

/* -------------------------------------------------------------------------
   Order-form page header cleanup
   - drop the water-droplet banner on the order form
   - hide the legacy "ORDER FORM" heading (the hero provides the title)
   - tidy the product search into a clean inline bar
   ---------------------------------------------------------------------- */
/* Clean white header across the whole site (water banner removed) */
.site-header {
	background-image: none !important;
	min-height: 0 !important;
	margin: 18px 0 8px !important;
}

/* legacy page header is replaced by the hero (title) + hero-side search */
body.woocommerce-shop .woocommerce-products-header,
body.post-type-archive-product .woocommerce-products-header,
body.tax-product_cat .woocommerce-products-header,
body.tax-product_tag .woocommerce-products-header,
body.search.woocommerce .woocommerce-products-header { display: none !important; }

/* legacy page header (Stackable block): hide the heading, keep the search */
.woocommerce-products-header,
.woocommerce-products-header .stk-block-content { text-align: left !important; }
.woocommerce-products-header .stk-block-heading,
.woocommerce-products-header .wp-block-heading,
.woocommerce-products-header h1,
.woocommerce-products-header h2,
.woocommerce-products-header h3 { display: none !important; }
.woocommerce-products-header .wp-block-stackable-columns,
.woocommerce-products-header .stk-row,
.woocommerce-products-header .stk-inner-blocks { display: block !important; }
.woocommerce-products-header .wp-block-stackable-column { width: auto !important; max-width: none !important; }
.woocommerce-products-header .page-description { padding: 0 !important; margin: 0 !important; }
.woocommerce-products-header { margin: 0 0 .5rem !important; }

/* clean inline search bar */
.woocommerce-products-header form[role="search"] { margin: 0; }
.woocommerce-products-header form[role="search"] > p:empty,
.woocommerce-products-header .wp-block-search__label { display: none !important; }
.woocommerce-products-header .wp-block-search__inside-wrapper {
	display: flex;
	max-width: 440px;
	border: 1px solid var(--tp-line);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--tp-shadow);
}
.woocommerce-products-header .wp-block-search__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0 !important;
	outline: 0 !important;
	padding: .65rem .9rem !important;
	font-size: .95rem;
	background: transparent;
	text-align: left;
}
.woocommerce-products-header .wp-block-search__button {
	flex: 0 0 auto;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--wp--preset--color--brandgreen) !important;
	color: #fff !important;
	padding: .65rem 1.25rem !important;
	font-weight: 700;
	cursor: pointer;
}
.woocommerce-products-header .wp-block-search__button:hover { filter: brightness(1.05); }

/* trade-account zone chip */
.order-hero__account-zone {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	margin: .15rem 0 .65rem;
	padding: .2rem .6rem;
	background: #eef3e6;
	color: #44600f;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 700;
}
.order-hero__account-name { margin-bottom: .35rem !important; }
.order-hero__account { display: flex; flex-direction: column; align-items: flex-start; }

/* hero right column: trade-account card, with the search pushed to the bottom
   so it lines up with the hero tag pills */
.order-hero__side {
	flex: 0 0 auto;
	width: 360px;
	max-width: 100%;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.order-hero__side .order-hero__account { max-width: 100%; min-width: 0; }
.order-hero__search {
	margin-top: auto;
	display: flex;
	border: 1px solid var(--tp-line);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--tp-shadow);
}
.order-hero__search-input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	outline: 0;
	padding: .6rem .85rem;
	font-size: .9rem;
	background: transparent;
}
.order-hero__search-btn {
	flex: 0 0 auto;
	border: 0;
	background: var(--wp--preset--color--brandgreen);
	color: #fff;
	font-weight: 700;
	padding: .6rem 1.1rem;
	cursor: pointer;
}
.order-hero__search-btn:hover { filter: brightness(1.05); }

/* -------------------------------------------------------------------------
   Collapsible category sections
   ---------------------------------------------------------------------- */
.cat-card__header { cursor: pointer; align-items: center; user-select: none; }
.cat-card__header:focus-visible { outline: 3px solid rgba(255,255,255,.6); outline-offset: -3px; }
.cat-card__header-right { display: flex; align-items: center; gap: 1.25rem; }
.cat-card__toggle {
	display: inline-flex;
	color: #fff;
	opacity: .9;
	flex: 0 0 auto;
	transition: transform .2s ease;
}
.cat-card__header:hover .cat-card__toggle { opacity: 1; }
.product-table.is-collapsed .cat-card__toggle { transform: rotate(-90deg); }
.product-table.is-collapsed .cat-card__body,
.product-table.is-collapsed .cat-card__footer { display: none !important; }

/* info toast (minimum order quantity notice) */
.tp-toast--info { border-left-color: var(--wp--preset--color--brandblue); }
.tp-toast--info .tp-toast__icon { color: var(--wp--preset--color--brandblue); }

/* -------------------------------------------------------------------------
   Header / primary navigation — matched to the redesign
   ---------------------------------------------------------------------- */
.site-header .wrap { align-items: center; }

.site-header .nav-primary .menu { align-items: center; gap: .15rem; }
.site-header .nav-primary .menu li a {
	color: var(--tp-ink) !important;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: .82rem;
	line-height: 1;
	padding: .55rem .85rem !important;
	border-radius: 999px;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.site-header .nav-primary .menu li a:hover,
.site-header .nav-primary .menu li a:focus-visible {
	background: var(--tp-surface-2);
	color: var(--wp--preset--color--brandgreen) !important;
}
.site-header .nav-primary .menu > li.current-menu-item > a,
.site-header .nav-primary .menu > li.current_page_item > a,
.site-header .nav-primary .menu > li.current-menu-parent > a,
.site-header .nav-primary .menu > li.current-menu-ancestor > a {
	background: #eef3e6;
	color: var(--wp--preset--color--brandgreen) !important;
}
/* dropdown caret on items with a submenu — extra right padding on the link
   makes room so the absolutely-positioned caret clears the text */
.site-header .nav-primary .menu li.menu-item-has-children > a { padding-right: 1.9rem !important; }
.site-header .nav-primary .submenu-expand { color: var(--tp-muted); right: .5rem; }
.site-header .nav-primary .submenu-expand svg { fill: currentColor; }
/* submenu panel */
.site-header .nav-primary .sub-menu {
	border: 1px solid var(--tp-line);
	border-radius: 12px;
	box-shadow: var(--tp-shadow);
	padding: .35rem;
	background: #fff;
}
.site-header .nav-primary .sub-menu li a { border-radius: 8px; }

/* logo to the left, nav fills the middle, account + basket to the right */
@media (min-width: 768px) {
	.site-header .wrap {
		display: flex !important;
		align-items: center;
		gap: 1.5rem;
	}
	.site-header__logo { order: -1; margin: 0 !important; grid-column: auto !important; }
	.site-header .nav-menu { order: 0; flex: 1 1 auto; grid-column: auto !important; }
	.site-header .basket-item-count { order: 1; margin-right: 0 !important; grid-column: auto !important; }
}

/* basket pill */
.site-header .basket-item-count {
	align-items: center;
	gap: .45rem;
	top: 0 !important;
	padding: .45rem .5rem .45rem .95rem;
	border: 1px solid var(--tp-line);
	border-radius: 999px;
	background: #fff;
	color: var(--tp-ink);
	font-weight: 700;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.site-header .basket-item-count:hover {
	border-color: var(--wp--preset--color--brandgreen);
	box-shadow: var(--tp-shadow);
}
.site-header .basket-item-count bdi,
.site-header .basket-item-count .woocommerce-Price-amount { color: var(--tp-ink) !important; }
.site-header .basket-item-count .cart-checkout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--wp--preset--color--brandgreen);
}
.site-header .basket-item-count .dashicons-cart {
	color: #fff !important;
	top: 0 !important;
	margin: 0 !important;
	font-size: 18px;
}

/* =========================================================================
   Site-wide polish — bring the rest of the site in line with the order form
   (loads on every front-end page; the order form keeps its own controls)
   ========================================================================= */

/* form fields (login, contact, checkout, account, address) */
.site-main input[type="text"],
.site-main input[type="email"],
.site-main input[type="password"],
.site-main input[type="tel"],
.site-main input[type="url"],
.site-main input[type="number"]:not([name="quantity"]),
.site-main input[type="search"]:not(.order-hero__search-input):not(.wp-block-search__input),
.site-main textarea,
.site-main select {
	border: 1px solid var(--tp-line) !important;
	border-radius: 10px !important;
	background: #fff !important;
	padding: .65rem .85rem !important;
	font-size: .95rem;
	color: var(--tp-ink);
	box-shadow: none !important;
}
.site-main input:focus,
.site-main textarea:focus,
.site-main select:focus {
	border-color: var(--wp--preset--color--brandgreen) !important;
	outline: none !important;
}

/* buttons */
.site-main .button,
.site-main button[type="submit"]:not(.order-hero__search-btn):not(.quantity-button),
.site-main input[type="submit"],
.site-main .wp-element-button,
.site-main .wc-block-components-button,
.site-main .single_add_to_cart_button {
	background-color: var(--wp--preset--color--brandgreen) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	padding: .7rem 1.25rem !important;
	transition: filter .15s ease;
}
.site-main .button:hover,
.site-main button[type="submit"]:not(.order-hero__search-btn):hover,
.site-main input[type="submit"]:hover,
.site-main .wp-element-button:hover { filter: brightness(1.06); }

/* WooCommerce tables (cart, orders, addresses) */
.site-main table.shop_table,
.site-main .woocommerce-orders-table {
	border: 1px solid var(--tp-line) !important;
	border-radius: 12px !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	overflow: hidden;
}
.site-main table.shop_table th,
.site-main .woocommerce-orders-table th {
	background: var(--tp-surface-2) !important;
	color: var(--tp-muted) !important;
	text-transform: uppercase;
	font-size: .72rem;
	letter-spacing: .05em;
	padding: 1rem;
}
.site-main table.shop_table td { padding: 1rem; border-top: 1px solid var(--tp-line); }

/* My Account navigation as a clean menu */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.woocommerce-MyAccount-navigation ul li { margin: 0; }
.woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: .6rem .9rem;
	border-radius: 8px;
	color: var(--tp-ink) !important;
	text-decoration: none;
	font-weight: 600;
	border: 1px solid transparent;
}
.woocommerce-MyAccount-navigation ul li a:hover { background: var(--tp-surface-2); color: var(--wp--preset--color--brandgreen) !important; }
.woocommerce-MyAccount-navigation ul li.is-active a {
	background: #eef3e6;
	color: var(--wp--preset--color--brandgreen) !important;
}

/* notices → match the toast colour language */
.site-main .woocommerce-message { border-top: 3px solid var(--wp--preset--color--brandgreen); border-radius: 10px; }
.site-main .woocommerce-info { border-top: 3px solid var(--wp--preset--color--brandblue); border-radius: 10px; }
.site-main .woocommerce-error { border-top: 3px solid #d64545; border-radius: 10px; }

/* -------------------------------------------------------------------------
   Search results: "back to order form" link — shown at the top of the hero
   (left column, level with the trade-account card); the in-content one hidden
   ---------------------------------------------------------------------- */
body.search .order-layout__main > .order-form-back { display: none !important; }
.order-hero__back { align-self: flex-start; margin: 0 0 1.25rem !important; }
.order-form-back {
	display: inline-flex !important;
	align-items: center;
	gap: .5rem;
	margin: 0 0 1.5rem !important;
	padding: .6rem 1.1rem !important;
	background: #fff !important;
	color: var(--tp-ink) !important;
	border: 1px solid var(--tp-line) !important;
	border-radius: 10px !important;
	font-weight: 700;
	box-shadow: var(--tp-shadow);
	transition: border-color .15s ease, color .15s ease;
}
.order-form-back::before { content: "\2190"; font-size: 1.1em; line-height: 1; }
.order-form-back:hover {
	border-color: var(--wp--preset--color--brandgreen) !important;
	color: var(--wp--preset--color--brandgreen) !important;
}

/* -------------------------------------------------------------------------
   Footer — let the blue background span the full viewport width, while the
   content stays aligned with the page container
   ---------------------------------------------------------------------- */
.site-footer {
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding-top: 40px !important;
	padding-bottom: 40px !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.site-footer .block-area-main-footer {
	max-width: var(--wp--custom--layout--content, 1400px);
	margin-left: auto;
	margin-right: auto;
	padding-left: 16px;
	padding-right: 16px;
	box-sizing: border-box;
}

/* =========================================================================
   Responsive — tablet & mobile (matches the Figma mobile layout):
   single column, horizontally-scrolling pills, stacked product cards,
   and the cart summary as a sticky bottom bar.
   ========================================================================= */

/* Keep the real data table on desktop. The theme's older responsive.css
   switches rows to a stacked grid at <=1200px, which clashes with the
   two-column layout — pin the table for >=1081px so stacking only happens
   in the single-column range below. */
@media (min-width: 1081px) {
	.variation-table tr.variation-item { display: table-row; }
	.variation-table tr.variation-item > td { display: table-cell; }
	.variation-table .data-label { display: none !important; }
}

@media (max-width: 1080px) {
	/* single column */
	.order-layout { display: block; }
	.order-layout__main { min-width: 0; padding-bottom: 5.5rem; }

	/* pills become a horizontal scroll strip */
	.category-groups {
		width: auto;
		max-width: 100%;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		justify-content: flex-start;
		scrollbar-width: none;
	}
	.category-groups::-webkit-scrollbar { display: none; }
	.category-groups .menu-group { flex: 0 0 auto; }

	/* category card interior tightens up */
	.cat-card__body { padding: 0 1rem; }
	.cat-card__header { padding: 1.25rem 1.1rem; }
	.cat-table tr.headings { display: none !important; }

	/* each product variation becomes a clean, labelled stacked card */
	.variation-table tr.variation-item {
		display: flex !important;
		flex-wrap: wrap;
		align-items: center;
		gap: .45rem 1rem;
		padding: 1rem .25rem !important;
		border-bottom: 1px solid var(--tp-line);
		position: relative;
		background: transparent !important;
	}
	.variation-item > td {
		display: flex !important;
		justify-content: space-between;
		align-items: center;
		flex: 1 1 100%;
		padding: 0 !important;
		border: 0 !important;
		text-align: left !important;
		line-height: 1.35;
	}
	.variation-item .data-label {
		display: inline !important;
		color: var(--tp-muted);
		font-size: .75rem;
		text-transform: uppercase;
		letter-spacing: .04em;
		font-weight: 700;
	}
	.variation-item .var_ret_price span:last-child,
	.variation-item .calc_total span { font-weight: 800; }
	.variation-item .var_ret_price { font-size: 1.05rem; }

	/* keep the was/now prices together on the right instead of spread apart:
	   the label takes the slack on the left, the two price spans sit side by side */
	.variation-item td.var_ret_price { gap: .45rem; }
	.variation-item td.var_ret_price .data-label { margin-right: auto; }

	/* favourite star hidden on mobile to keep the cards clean (matches Figma);
	   favourites can still be managed on desktop */
	.variation-item .nwtp-favourite { display: none !important; }

	/* qty control gets its own full-width line */
	.variation-item .var_qty { flex-basis: 100%; }
	.variation-item .var_qty .quantity-wrapper { margin-left: 0; }

	/* product-name heading */
	.variation-table td.product-name {
		font-size: 1.1rem !important;
		padding: 1.1rem .25rem .25rem !important;
	}

	/* category footer wraps gracefully */
	.cat-card__footer { flex-wrap: wrap; gap: .75rem 1rem; padding: 1.1rem; }
	.cat-card__buy { flex: 0 0 auto; }

	/* ---- cart summary -> sticky bottom bar ---- */
	.order-layout__aside {
		position: fixed;
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		height: auto;
		margin: 0;
		z-index: 900;
		box-shadow: 0 -6px 24px rgba(16, 24, 40, .18);
	}
	.order-summary__card {
		border-radius: 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		padding: .7rem 1rem;
		padding-bottom: calc(.7rem + env(safe-area-inset-bottom));
	}
	.order-summary__head,
	.order-summary__stats,
	.order-summary__lines,
	.order-summary__totals,
	.order-summary__grand-label,
	.order-summary__grand-note,
	.order-summary__empty { display: none !important; }
	.order-summary__grand { margin: 0; flex: 1 1 auto; }
	.order-summary__grand-value { font-size: 1.5rem; line-height: 1; }
	.order-summary__cta { margin: 0 !important; width: auto; flex: 0 0 auto; padding: .85rem 1.4rem; }
}

/* mobile header: logo left, cart + hamburger right; nav opens as a clean
   full-screen overlay */
@media (max-width: 767px) {
	.site-header { min-height: 0 !important; margin: 10px 0 !important; }
	.logged-in .site-header .wrap { top: 0 !important; }

	.site-header .wrap {
		display: flex !important;
		align-items: center;
		gap: .5rem;
		padding: 0 var(--wp--custom--layout--padding, 16px) !important;
	}
	.site-header__logo {
		order: 0;
		margin-right: auto;      /* push everything else to the right */
		align-self: center;
		padding: 0 !important;
	}
	.site-header__logo img { width: 84px !important; }
	.site-header .basket-item-count {
		order: 1;
		margin: 0 !important;
		padding: .35rem .45rem .35rem .75rem;
	}
	.site-header .basket-item-count .cart-checkout { width: 1.7rem; height: 1.7rem; }
	.site-header__toggles {
		order: 2;
		position: relative;
		z-index: 1001;           /* keep the hamburger/close above the overlay */
		padding: 0 !important;
		justify-self: auto;
	}

	/* nav: hidden until opened, then a full-screen white overlay */
	.site-header .nav-menu { order: 3; }
	.site-header .nav-menu:not(.active) { display: none !important; }
	.site-header .nav-menu.active {
		display: block !important;
		position: fixed !important;
		inset: 0 !important;
		top: 0 !important;
		width: 100% !important;
		height: 100% !important;
		max-height: none !important;
		margin: 0 !important;
		background: #fff !important;
		z-index: 1000 !important;
		padding: 5rem 1.25rem 2rem !important;
		overflow-y: auto;
	}
	.site-header .nav-menu.active .nav-primary,
	.site-header .nav-menu.active .nav-primary .menu {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: .15rem;
		position: static !important;
		height: auto !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	.site-header .nav-menu.active .menu > li { width: 100%; margin: 0; }
	.site-header .nav-menu.active .menu li a {
		display: block;
		width: 100%;
		font-size: 1.1rem;
		padding: .85rem 1rem !important;
	}
	.site-header .nav-menu.active .menu li.menu-item-has-children > a { padding-right: 2.75rem !important; }
	.site-header .nav-menu.active .submenu-expand { top: .9rem; }
}

/* phones: tighten the hero and header spacing */
@media (max-width: 600px) {
	.order-hero { padding: 1.5rem 0 1rem; }
	.order-hero__title { font-size: clamp(2rem, 9vw, 2.6rem); max-width: none; }
	.order-hero__side { width: 100%; }
	.order-hero__account { max-width: none; }
	.cat-card__header h3 { font-size: 1.5rem; }
	.cat-card__count strong { font-size: 1.35rem; }
}

/* -------------------------------------------------------------------------
   Checkout "Your order": remove-item link
   ---------------------------------------------------------------------- */
.woocommerce-checkout-review-order-table .product-name .tp-checkout-remove {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	margin-left: .6rem;
	color: var(--tp-muted);
	font-size: .78rem;
	font-weight: 700;
	text-decoration: none;
	vertical-align: middle;
	transition: color .15s ease;
}
.woocommerce-checkout-review-order-table .product-name .tp-checkout-remove:hover,
.woocommerce-checkout-review-order-table .product-name .tp-checkout-remove:focus {
	color: #d64545;
}
.woocommerce-checkout-review-order-table .product-name .tp-checkout-remove svg { flex: 0 0 auto; }
