/* =========================================================================
   Pimp Your Pump: shared design layer (loads after Woostify + Customizer CSS)
   ========================================================================= */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-var.woff2") format("woff2-variations");
}
@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/bricolage-grotesque-var.woff2") format("woff2-variations");
}

/* ---------- Tokens ---------- */
:root {
	--pyp-ink: #1f1a2e;
	--pyp-ink-2: #4a4458;
	--pyp-line: #e5dfda;
	--pyp-line-strong: #8a8294;
	--pyp-surface: #f7f4f1;
	--pyp-tint: #fbeaf1;
	--pyp-accent: #c8175d;
	--pyp-accent-hover: #a8124e;
	--pyp-logo-pink: #f2279a;
	--pyp-on-dark: #d6d1de;
	--pyp-dark-line: #3a3449;

	--pyp-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--pyp-font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;

	--pyp-r-sm: 8px;
	--pyp-r-md: 16px;
	--pyp-r-pill: 999px;

	--pyp-s1: 4px; --pyp-s2: 8px; --pyp-s3: 12px; --pyp-s4: 16px;
	--pyp-s5: 24px; --pyp-s6: 32px; --pyp-s7: 48px; --pyp-s8: 64px; --pyp-s9: 96px;
}

/* ---------- Base ---------- */
body {
	font-family: var(--pyp-font-body);
	color: var(--pyp-ink);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.woocommerce-products-header__title,
.product_title {
	font-family: var(--pyp-font-display);
	color: var(--pyp-ink);
	letter-spacing: -0.02em;
	text-wrap: balance;
}
h1, .woocommerce-products-header__title { font-weight: 800; line-height: 1.05; }
h2, h3 { font-weight: 700; line-height: 1.15; }
p { text-wrap: pretty; }

a { color: var(--pyp-ink); }
a:hover, a:focus-visible { color: var(--pyp-accent); }

:focus-visible { outline: 2px solid var(--pyp-accent); outline-offset: 2px; }

.price, .amount, .woocommerce-Price-amount, .shop_table td, .cart-subtotal, .order-total {
	font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.button,
button.button,
input[type="submit"],
.single_add_to_cart_button,
.checkout-button,
#place_order,
.wc-block-components-button {
	font-family: var(--pyp-font-body);
	font-weight: 600;
	font-size: 15px;
	min-height: 48px;
	padding: 0 24px;
	border-radius: var(--pyp-r-pill);
	background-color: var(--pyp-accent);
	border: 0;
	color: #fff;
	text-transform: none;
	letter-spacing: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px; /* space between the loading spinner and the label */
	transition: background-color 0.15s ease-out;
}
/* Woostify's add-to-basket spinner: in line with the label instead of on top of it */
.updating-cart.ajax-single-add-to-cart .single_add_to_cart_button.loading::before,
.single_add_to_cart_button.loading::before {
	position: static !important;
	margin: 0 !important;
	flex: none;
}
.button:hover,
button.button:hover,
input[type="submit"]:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover,
#place_order:hover {
	background-color: var(--pyp-accent-hover);
	color: #fff;
}

/* ---------- Form fields: borders that meet 3:1 contrast ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="search"], input[type="url"], select, textarea {
	border: 1px solid var(--pyp-line-strong);
	border-radius: var(--pyp-r-sm);
	font-family: var(--pyp-font-body);
	font-size: 16px;
	color: var(--pyp-ink);
}
::placeholder, input::placeholder, textarea::placeholder { color: #a9a3b2 !important; opacity: 1; font-weight: 400; }

/* ---------- Top bar ---------- */
.pyp-topbar {
	background: var(--pyp-ink);
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
}
.pyp-topbar .woostify-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 32px;
	padding-top: 8px;
	padding-bottom: 8px;
	text-align: center;
}
.pyp-topbar a { color: #fff; text-underline-offset: 3px; }
.pyp-topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--pyp-line); }

.pyp-branding .pyp-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--pyp-ink);
}
.pyp-mark { display: block; height: 40px; width: auto; }
.pyp-wordmark {
	margin: 0;
	font-family: var(--pyp-font-display);
	font-weight: 800;
	font-size: 24px;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--pyp-ink);
	white-space: nowrap;
}
.pyp-wordmark span,
.pyp-footer__logo span span { color: var(--pyp-logo-pink); }

.main-navigation .primary-navigation > li > a {
	font-family: var(--pyp-font-body);
	font-weight: 500;
	font-size: 15px;
	color: var(--pyp-ink);
	text-transform: none;
	letter-spacing: 0;
}
.main-navigation .primary-navigation > li.current-menu-item > a,
.main-navigation .primary-navigation > li.current-menu-ancestor > a {
	text-decoration: underline;
	text-decoration-color: var(--pyp-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}
.site-tools .tools-icon { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.shop-cart-count { background: var(--pyp-accent); color: #fff; font-variant-numeric: tabular-nums; }

@media (max-width: 600px) {
	.pyp-mark { height: 32px; }
	.pyp-wordmark { font-size: 20px; }
}

/* ---------- Shop / category headings ---------- */
.woocommerce-products-header { margin-bottom: var(--pyp-s6); }
.woocommerce-products-header__title.page-title {
	display: block;
	font-size: clamp(32px, 4vw, 44px);
	margin: 0 0 var(--pyp-s4);
}
.woocommerce-products-header .term-description {
	max-width: 64ch;
	color: var(--pyp-ink-2);
	font-size: 16px;
}

/* Product cards */
.woocommerce-loop-product__title,
.products .product .woocommerce-loop-product__title {
	font-family: var(--pyp-font-body);
	font-weight: 500;
	font-size: 15px;
	line-height: 1.4;
	letter-spacing: 0;
	color: var(--pyp-ink);
}
.products .product .price { font-weight: 600; color: var(--pyp-ink); }
.products .product .price del { color: var(--pyp-ink-2); font-weight: 400; }
.products .product .price ins { color: var(--pyp-accent); text-decoration: none; }
.onsale { background: var(--pyp-accent); border-radius: var(--pyp-r-pill); font-weight: 600; }

/* ---------- Footer ---------- */
.pyp-footer {
	background: var(--pyp-ink);
	color: var(--pyp-on-dark);
	font-size: 15px;
	padding: 0;
}
.pyp-footer a { color: var(--pyp-on-dark); }
.pyp-footer a:hover, .pyp-footer a:focus-visible { color: #fff; }
.pyp-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 48px;
	padding-top: 64px;
	padding-bottom: 48px;
}
.pyp-footer__about p { margin: 0; line-height: 1.6; }
.pyp-footer__logo {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px !important;
	font-family: var(--pyp-font-display);
	font-weight: 800;
	font-size: 20px;
	letter-spacing: -0.03em;
	color: #fff;
}
.pyp-footer__logo .pyp-mark { height: 32px; }
.pyp-footer__col h2 {
	font-family: var(--pyp-font-body);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	color: #fff;
	margin: 0 0 8px;
}
.pyp-footer__col ul { list-style: none; margin: 0; padding: 0; }
.pyp-footer__col li { line-height: 2; }
.pyp-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	padding-top: 24px;
	padding-bottom: 32px;
	border-top: 1px solid var(--pyp-dark-line);
	font-size: 13px;
}

/* ---------- Shared helpers ---------- */
.pyp-muted { color: var(--pyp-ink-2); font-size: 15px; }
.num, .pyp-size-table { font-variant-numeric: tabular-nums; }
.pyp-sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.pyp-bleed { width: 100vw; position: relative; left: 50%; margin-left: -50vw; }
.pyp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.pyp-btn-outline {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 24px; border-radius: var(--pyp-r-pill);
	border: 1.5px solid var(--pyp-ink); color: var(--pyp-ink);
	font-weight: 600; font-size: 15px; text-decoration: none;
}
.pyp-btn-outline:hover { background: var(--pyp-ink); color: #fff; }
.pyp-toggle {
	background: none; border: 0; padding: 0; min-height: 44px;
	font: 500 15px var(--pyp-font-body); color: var(--pyp-ink);
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.pyp-js .pyp-collapsed { display: none !important; }
details > summary { cursor: pointer; }

/* ---------- Category pages ---------- */
.pyp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--pyp-s5) 0 0; }
.pyp-chip {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
	border: 1px solid var(--pyp-line-strong); border-radius: var(--pyp-r-pill);
	font-size: 15px; font-weight: 500; text-decoration: none; color: var(--pyp-ink); background: #fff;
}
.pyp-chip:hover { border-color: var(--pyp-ink); color: var(--pyp-ink); }
.pyp-chip.is-current { background: var(--pyp-ink); border-color: var(--pyp-ink); color: #fff; }

.pyp-guide { background: var(--pyp-surface); margin-top: var(--pyp-s8); }
.pyp-guide__inner {
	max-width: 1240px; margin: 0 auto; padding: var(--pyp-s9) 24px;
	display: flex; flex-wrap: wrap; gap: var(--pyp-s8);
}
.pyp-guide__text { flex: 1 1 460px; max-width: 64ch; }
.pyp-guide__sizes { flex: 1 1 380px; }
.pyp-guide h2 { font-size: 32px; margin: 0 0 var(--pyp-s5); }
.pyp-guide p { color: var(--pyp-ink-2); line-height: 1.7; }
.pyp-table-wrap { overflow-x: auto; }
.pyp-size-table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0; }
.pyp-size-table th { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1.5px solid var(--pyp-ink); font-weight: 600; }
.pyp-size-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--pyp-line); }
.pyp-size-table .num { text-align: right; }
.pyp-size-table th:last-child, .pyp-size-table td:last-child { padding-right: 0; }

.pyp-filter .widget-title, .widget .widget-title {
	font-family: var(--pyp-font-body); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none;
}
.pyp-filter ul { list-style: none; margin: 0; padding: 0; }
.pyp-filter li a { display: flex; align-items: center; min-height: 40px; font-size: 15px; color: var(--pyp-ink); }
.pyp-filter li.chosen a { font-weight: 600; }

/* ---------- Product page ---------- */
.pyp-swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 4px; }
.pyp-swatch {
	display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
	min-height: 60px; padding: 8px 16px; background: #fff; color: var(--pyp-ink);
	border: 1px solid var(--pyp-line-strong); border-radius: var(--pyp-r-sm);
	font: 600 15px var(--pyp-font-body); text-align: left; cursor: pointer;
	font-variant-numeric: tabular-nums;
}
.pyp-swatch small { font-size: 13px; font-weight: 400; color: var(--pyp-ink-2); }
.pyp-swatch:hover { border-color: var(--pyp-ink); }
.pyp-swatch[aria-pressed="true"] { border: 2px solid var(--pyp-ink); padding: 7px 15px; background: var(--pyp-surface); }
.pyp-swatch:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.variations tr.pyp-hidden-attr { display: none; }
.variations td, .variations th { display: block; width: 100%; padding: 0; border: 0; }
.variations th label, .variations td.label label { font-weight: 600; font-size: 15px; margin-bottom: 8px; display: block; }
.pyp-size-help { margin: 8px 0 16px; font-size: 15px; }
.pyp-size-help summary { color: var(--pyp-ink); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.pyp-size-help p { color: var(--pyp-ink-2); }
.single-product .product_title { font-size: clamp(26px, 3vw, 32px); font-weight: 700; line-height: 1.15; text-transform: none; }
.single-product .summary .price { font-size: 24px; font-weight: 600; color: var(--pyp-ink); }

/* Trust row (from the "Product page improvements" snippet): calmer styling */
.pyp-trust { background: var(--pyp-surface) !important; border-radius: var(--pyp-r-md) !important; font-size: 15px !important; padding: 16px 20px !important; }
.pyp-trust li span { color: var(--pyp-ink) !important; }
.pyp-trust a { color: var(--pyp-ink) !important; font-size: 13px !important; }

/* ---------- Basket ---------- */
.pyp-freebar { background: var(--pyp-surface); border-radius: var(--pyp-r-md); padding: 16px 24px; margin: 0 0 24px; }
.pyp-freebar p { margin: 0 0 12px; font-size: 15px; font-variant-numeric: tabular-nums; }
.pyp-freebar__track { height: 8px; border-radius: var(--pyp-r-pill); background: var(--pyp-line); overflow: hidden; }
.pyp-freebar__track span { display: block; height: 100%; background: var(--pyp-accent); border-radius: var(--pyp-r-pill); }
.pyp-cart-note { margin: 16px 0 0; }
.pyp-js .woocommerce-cart-form [name="update_cart"] { display: none !important; }
.woocommerce-cart-form .coupon { display: flex; gap: 8px; flex-wrap: wrap; }
.cart_totals h2 { font-size: 24px; }

/* ---------- Checkout ---------- */
.woocommerce-checkout h3, #order_review_heading { font-size: 24px; font-weight: 700; }
.woocommerce-checkout .form-row label { font-weight: 500; font-size: 15px; color: var(--pyp-ink); }
.woocommerce-checkout .form-row .input-text, .woocommerce-checkout .form-row select { min-height: 48px; padding: 0 12px; }
.woocommerce-checkout .form-row textarea { padding: 12px; min-height: 96px; }
.woocommerce-checkout #payment { background: var(--pyp-surface); border-radius: var(--pyp-r-md); }
.woocommerce-checkout #payment ul.payment_methods li { font-size: 15px; }
#place_order { width: 100%; min-height: 56px; font-size: 16px; }
.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--pyp-ink-2); }

/* ---------- Order confirmation ---------- */
.pyp-next { margin: var(--pyp-s6) 0 var(--pyp-s7); }
.pyp-next h2 { font-size: 24px; margin: 0 0 var(--pyp-s5); }
.pyp-next ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--pyp-s5); }
.pyp-next li { display: flex; gap: 16px; }
.pyp-next__num {
	flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--pyp-ink); color: #fff;
	display: flex; align-items: center; justify-content: center; font: 700 16px var(--pyp-font-display);
}
.pyp-next h3 { font-family: var(--pyp-font-body); font-size: 16px; letter-spacing: 0; margin: 4px 0; }
.pyp-next p { margin: 0; color: var(--pyp-ink-2); font-size: 15px; }
.woocommerce-order-overview { font-variant-numeric: tabular-nums; }

/* ---------- My account ---------- */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation li a { display: flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; color: var(--pyp-ink); }
.woocommerce-MyAccount-navigation li.is-active a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--pyp-accent); text-underline-offset: 6px; }
.woocommerce-orders-table { font-size: 15px; font-variant-numeric: tabular-nums; }
.woocommerce-form-login, .woocommerce-form-register {
	border: 1px solid var(--pyp-line) !important; border-radius: var(--pyp-r-md) !important; padding: 32px !important;
}

/* ---------- Homepage ---------- */
.pyp-home h2 { font-size: clamp(26px, 3vw, 32px); margin: 0 0 var(--pyp-s6); }
.pyp-section { padding: var(--pyp-s8) 0; }
.pyp-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; }
.pyp-section__head a { font-weight: 600; font-size: 15px; }

.pyp-hero { background: var(--pyp-tint); margin-top: 0; }
.pyp-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pyp-s7); padding-top: var(--pyp-s8); padding-bottom: var(--pyp-s8); }
.pyp-hero__text { flex: 1 1 460px; min-width: 0; }
.pyp-hero__text h1 { font-size: clamp(40px, 5.5vw, 60px); letter-spacing: -0.035em; margin: 0 0 var(--pyp-s5); max-width: 14ch; }
.pyp-lead { font-size: 20px; line-height: 1.5; color: var(--pyp-ink-2); max-width: 36ch; margin: 0 0 var(--pyp-s6); }
.pyp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--pyp-s6); }
.pyp-hero__bbc { margin: 0; font-size: 15px; color: var(--pyp-ink-2); }
.pyp-hero__bbc a { font-weight: 500; }
.pyp-hero__media { flex: 1 1 420px; min-width: 0; }
.pyp-hero__media img { width: 100%; height: 480px; object-fit: cover; object-position: 75% center; border-radius: var(--pyp-r-md); display: block; }

.pyp-cats { display: flex; flex-wrap: wrap; gap: 24px; }
.pyp-cats a { text-decoration: none; color: var(--pyp-ink); }
.pyp-cats__main { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pyp-cats__main .pyp-cats__img img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--pyp-r-md); display: block; margin-bottom: 8px; }
.pyp-cats__side { flex: 2 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pyp-cats__row { display: flex; align-items: center; gap: 16px; }
.pyp-cats__thumb img { width: 136px; height: 136px; object-fit: cover; border-radius: var(--pyp-r-md); display: block; }
.pyp-cats__title { display: block; font: 700 20px/1.2 var(--pyp-font-display); letter-spacing: -0.02em; margin-bottom: 4px; }
.pyp-cats__main .pyp-cats__title { font-size: 24px; }
.pyp-cats__desc { display: block; font-size: 15px; color: var(--pyp-ink-2); line-height: 1.5; }
.pyp-cats a:hover .pyp-cats__title { color: var(--pyp-accent); }

.pyp-steps { background: var(--pyp-ink); color: #fff; border-radius: var(--pyp-r-md); padding: var(--pyp-s8) var(--pyp-s7); display: flex; flex-wrap: wrap; gap: var(--pyp-s7); }
.pyp-steps h2, .pyp-steps h3 { color: #fff; }
.pyp-steps__intro { flex: 1 1 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.pyp-steps__intro h2 { margin: 0; }
.pyp-steps__intro p { color: var(--pyp-on-dark); margin: 0 0 16px; }
.pyp-steps__list { flex: 2 1 560px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--pyp-s6); }
.pyp-steps__list span { display: block; font: 800 44px/1 var(--pyp-font-display); color: #f48bb6; margin-bottom: 16px; }
.pyp-steps__list h3 { font-family: var(--pyp-font-body); font-size: 20px; letter-spacing: 0; margin: 0 0 8px; }
.pyp-steps__list p { color: var(--pyp-on-dark); font-size: 15px; margin: 0; }

.pyp-story { background: var(--pyp-surface); }
.pyp-story__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pyp-s8); padding-top: var(--pyp-s9); padding-bottom: var(--pyp-s9); }
.pyp-story__media { flex: 1 1 400px; min-width: 0; }
.pyp-story__media img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--pyp-r-md); display: block; }
.pyp-story__text { flex: 1 1 440px; min-width: 0; max-width: 60ch; }
.pyp-story__text h2 { margin-bottom: var(--pyp-s5); }
.pyp-story__text p { color: var(--pyp-ink-2); line-height: 1.7; }
.pyp-story__text a { font-weight: 600; }

.pyp-faq { display: flex; flex-wrap: wrap; gap: var(--pyp-s7); }
.pyp-faq__intro { flex: 1 1 300px; }
.pyp-faq__intro h2 { margin-bottom: 16px; }
.pyp-faq__intro p { color: var(--pyp-ink-2); }
.pyp-faq__list { flex: 2 1 560px; min-width: 0; }
.pyp-faq__list details, .pyp-help .wp-block-details { border-bottom: 1px solid var(--pyp-line); padding: 20px 0; }
.pyp-faq__list summary, .pyp-help .wp-block-details summary { font-weight: 600; font-size: 16px; }
.pyp-faq__list details p, .pyp-help .wp-block-details p { color: var(--pyp-ink-2); margin: 12px 0 0; max-width: 68ch; }

/* ---------- Help pages ---------- */
.pyp-help { display: flex; flex-wrap: wrap; gap: var(--pyp-s7) var(--pyp-s8); padding: var(--pyp-s7) 0 var(--pyp-s9); }
.pyp-help__nav { flex: 1 1 220px; max-width: 256px; }
.pyp-help__nav ul { list-style: none; margin: 0; padding: 0; }
.pyp-help__nav a { display: flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; color: var(--pyp-ink); }
.pyp-help__nav a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-decoration-color: var(--pyp-accent); text-underline-offset: 6px; }
.pyp-help__doc { flex: 999 1 560px; min-width: 0; max-width: 72ch; }
.pyp-help__doc h1 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 12px; }
.pyp-help__updated { font-size: 13px; margin: 0 0 var(--pyp-s6); }
.pyp-help__doc h2 { font-size: 24px; margin: var(--pyp-s7) 0 12px; }
.pyp-help__doc h3 { font-size: 20px; margin: var(--pyp-s6) 0 8px; }
.pyp-help__doc p, .pyp-help__doc li { color: var(--pyp-ink-2); line-height: 1.7; }
.pyp-help__doc table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pyp-help__doc th { text-align: left; border-bottom: 1.5px solid var(--pyp-ink); padding: 12px 16px 12px 0; }
.pyp-help__doc td { border-bottom: 1px solid var(--pyp-line); padding: 14px 16px 14px 0; }

/* ---------- 404 ---------- */
.pyp-404 { max-width: 640px; margin: 0 auto; padding: var(--pyp-s9) 0; text-align: center; }
.pyp-404 h1 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 16px; }
.pyp-404 p { color: var(--pyp-ink-2); }
.pyp-404 form { margin: var(--pyp-s6) auto; max-width: 520px; }
.pyp-404__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pyp-404__links a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
	border: 1px solid var(--pyp-line-strong); border-radius: var(--pyp-r-pill); text-decoration: none; font-weight: 500;
}

/* ---------- v0.3 fixes after staging review ---------- */
.pyp-home > .pyp-section { max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }

.button, button.button, .single_add_to_cart_button, .checkout-button, #place_order, .woocommerce a.button {
	text-transform: none !important; letter-spacing: 0 !important;
}

/* Square, consistent product photos in every product grid */
.products .product img.attachment-woocommerce_thumbnail,
.products .product img.wp-post-image {
	width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: var(--pyp-r-md);
}
.products .product .woocommerce-loop-product__title,
.products .product .price { text-align: left; }
.products .product .product-loop-content, .products .product .product-loop-meta { text-align: left; }

/* Size buttons: full width, no leftover dropdown arrow */
.variations td.value { position: relative; }
.variations td.value .woostify-svg-icon, .variations td.value::after { display: none !important; }
.pyp-swatches { width: 100%; max-width: 440px; }
.variations label, .variations th.label { text-transform: none !important; letter-spacing: 0 !important; }

/* Woostify accordion for product details */
.woocommerce-tabs.layout-accordion { margin-top: var(--pyp-s6); border-top: 1px solid var(--pyp-line); }
.woostify-tab-wrapper { border-bottom: 1px solid var(--pyp-line); }
.woostify-accordion-title {
	display: flex !important; justify-content: space-between; align-items: center; min-height: 56px;
	font: 600 16px var(--pyp-font-body) !important; color: var(--pyp-ink) !important; text-transform: none !important;
	letter-spacing: 0 !important; text-decoration: none;
}
.woostify-tab-wrapper .woocommerce-Tabs-panel { color: var(--pyp-ink-2); font-size: 15px; line-height: 1.65; padding-bottom: 16px; }

/* Filter counts on one line */
.pyp-filter li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pyp-filter li .count { position: static !important; float: none !important; color: var(--pyp-ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Prices in basket, checkout and order tables: ink, not theme pink */
.shop_table .amount, .cart_totals .amount, .woocommerce-checkout-review-order .amount,
.woocommerce-order-details .amount, .cart_totals .shipping .amount { color: var(--pyp-ink) !important; }
.cart_totals .order-total .amount, .woocommerce-checkout-review-order .order-total .amount { font-weight: 700; }

/* Checkout: drop the "Additional information" heading when the note is tucked away */
.pyp-js .woocommerce-additional-fields > h3 { display: none; }

/* Order confirmation heading */
.woocommerce-thankyou-order-received {
	border: 0 !important; padding: 0 !important; margin: 0 0 var(--pyp-s6) !important; text-align: left !important;
	font: 800 clamp(28px, 4vw, 40px)/1.1 var(--pyp-font-display) !important; color: var(--pyp-ink) !important; letter-spacing: -0.03em;
}

/* ---------- Content pages built with blocks (About etc.) ---------- */
.page .entry-content > p, .page .entry-content > ul { max-width: 68ch; }
.page .entry-content > h2 { font-size: clamp(26px, 3vw, 32px); margin: var(--pyp-s8) 0 var(--pyp-s5); }
.pyp-about-hero { gap: var(--pyp-s7) !important; padding: var(--pyp-s6) 0 var(--pyp-s4); margin: 0 !important; }
.pyp-about-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.035em; margin: 0 0 var(--pyp-s5); max-width: 16ch; }
.pyp-about-hero .pyp-lead { margin-bottom: 0; }
.pyp-about-hero img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--pyp-r-md); }
.pyp-timeline { gap: var(--pyp-s7) !important; }
.pyp-timeline .wp-block-column { border-top: 2px solid var(--pyp-ink); padding-top: var(--pyp-s5); }
.pyp-timeline .pyp-year { display: block; font: 800 44px/1 var(--pyp-font-display); color: var(--pyp-accent); font-variant-numeric: tabular-nums; }
.pyp-timeline h3 { font-family: var(--pyp-font-body); font-size: 20px; letter-spacing: 0; margin: 8px 0; }
.pyp-timeline p { color: var(--pyp-ink-2); }
.wp-block-buttons { margin: var(--pyp-s7) 0 var(--pyp-s8); }
.wp-block-button__link {
	background: var(--pyp-accent); color: #fff; border-radius: var(--pyp-r-pill); min-height: 48px; padding: 0 24px;
	display: inline-flex; align-items: center; font-weight: 600; font-size: 15px; text-decoration: none;
}
.wp-block-button__link:hover { background: var(--pyp-accent-hover); color: #fff; }

/* ---------- v0.5: links in text, header fit, page titles ---------- */
.entry-content a:not(.wp-block-button__link):not(.button),
.pyp-help__doc .entry-content a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 992px) {
	.main-navigation .primary-navigation > li > a { padding-left: 10px !important; padding-right: 10px !important; white-space: nowrap; }
	.site-header .woostify-container { max-width: 1240px; }
	#menu-header-primary { display: flex; justify-content: center; flex-wrap: nowrap; gap: 4px; }
	#menu-header-primary > li { margin: 0 !important; padding: 0 !important; width: auto !important; flex: none; }
}
.pyp-page-title { font-size: clamp(32px, 4vw, 44px); margin: var(--pyp-s6) 0 var(--pyp-s6); }

/* =========================================================================
   v0.6: mobile audit fixes and review feedback
   ========================================================================= */

/* Top bar: short wording on phones, one line */
.pyp-short { display: none; }
@media (max-width: 767px) {
	.pyp-long { display: none; }
	.pyp-short { display: inline; }
	.pyp-topbar .woostify-container { gap: 4px 16px; padding-top: 6px; padding-bottom: 6px; font-size: 12px; }
	.pyp-topbar .woostify-container > span + span::before { content: "·"; margin-right: 16px; opacity: 0.6; }
	.pyp-topbar .woostify-container { gap: 0 16px; }
}

/* Phone header: menu button | centred logo | search + basket. Fits 320px and up. */
@media (max-width: 991px) {
	.site-header .site-header-inner .woostify-container {
		display: grid !important;
		grid-template-columns: 88px 1fr 88px;
		align-items: center;
		gap: 0;
		padding-left: 8px !important;
		padding-right: 8px !important;
		min-height: 60px;
	}
	.site-header .wrap-toggle-sidebar-menu {
		position: static !important; transform: none !important; margin: 0 !important;
		grid-column: 1; justify-self: start;
		width: 44px; height: 44px; display: flex !important; align-items: center; justify-content: center;
	}
	.site-header .site-branding {
		grid-column: 2; justify-self: center; margin: 0 !important; position: static !important;
		transform: none !important; width: auto !important; max-width: 100%; text-align: center;
	}
	.site-header .site-tools { grid-column: 3; justify-self: end; gap: 0; margin: 0 !important; }
	.site-header .site-tools .my-account { display: none !important; }
	.site-header .site-tools .tools-icon { min-width: 44px; min-height: 44px; margin: 0 !important; }
	.pyp-branding .pyp-logo { gap: 6px; }
	.pyp-mark { height: 28px; }
	.pyp-wordmark { font-size: 18px; }
}
@media (max-width: 359px) {
	.pyp-wordmark { display: none; }
}

/* No floating back-to-top button */
#scroll-to-top, .scroll-to-top { display: none !important; }

/* Homepage hero: the new cut-out photo on its own black background */
body.home #content, body.home .site-content, body.home .site-content > .woostify-container { padding-top: 0 !important; margin-top: 0 !important; }
/* Cut-out photo stands on the pink hero, cropped by its bottom edge */
.pyp-hero__inner { padding-bottom: 0 !important; align-items: stretch !important; }
.pyp-hero__text { align-self: center; padding-bottom: var(--pyp-s8); }
.pyp-hero__media {
	background: none; border-radius: 0; overflow: visible;
	display: flex; align-items: flex-end; justify-content: center;
	height: 540px; align-self: flex-end;
}
.pyp-hero__media img { width: auto !important; height: 100% !important; max-width: 100%; object-fit: contain !important; object-position: bottom center; border-radius: 0 !important; display: block; }

@media (max-width: 767px) {
	.pyp-hero__inner { gap: var(--pyp-s6); padding-top: var(--pyp-s6); padding-bottom: var(--pyp-s6); }
	.pyp-hero__text { padding-bottom: 0; }
	.pyp-hero__media { height: 400px; flex-basis: 100%; }
	.pyp-lead { font-size: 18px; }
	.pyp-actions .button, .pyp-actions .pyp-btn-outline { flex: 1 1 100%; }
	.pyp-section { padding: var(--pyp-s7) 0; }
	.pyp-cats__main .pyp-cats__img img { height: 260px; }
	.pyp-cats__thumb img { width: 96px; height: 96px; }
	.pyp-steps { padding: var(--pyp-s6) var(--pyp-s5); gap: var(--pyp-s6); }
	.pyp-story__inner { padding-top: var(--pyp-s7); padding-bottom: var(--pyp-s7); gap: var(--pyp-s6); }
	.pyp-story__media img { height: 280px; }
	.pyp-about-hero img { height: 280px; }
}

/* Category sub-links: one swipeable row on phones instead of a wall of buttons */
@media (max-width: 767px) {
	.pyp-chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -15px; margin-right: -15px; padding: 0 15px 4px; scrollbar-width: none; }
	.pyp-chips::-webkit-scrollbar { display: none; }
	.pyp-chip { flex: none; white-space: nowrap; }
}

/* Product grid: square photos, text aligned with the photo, no per-card button */
.products .product .product-loop-image-wrapper { aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--pyp-r-md); background: var(--pyp-surface); }
.products .product .product-loop-image-wrapper img { width: 100% !important; height: 100% !important; object-fit: cover; }
.products .product .product-loop-content { padding: 12px 0 0 !important; text-align: left !important; }
.products .product .loop-add-to-cart-btn, .products .product .product-loop-action { display: none !important; }
.products .product .woocommerce-loop-product__title { margin-bottom: 4px !important; }
ul.products li.product { margin-bottom: var(--pyp-s6) !important; }

/* Product page */
.woostify-product-navigation { display: none !important; }
.variations select.pyp-sr-only {
	position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important;
	padding: 0 !important; margin: -1px !important; border: 0 !important; opacity: 0 !important;
	overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; pointer-events: none;
}
.variations td.value > *:not(.pyp-swatches):not(select):not(.reset_variations) { display: none !important; }
.variations_form .reset_variations { display: none !important; }
.pyp-swatch.is-oos { background: var(--pyp-surface); border-style: dashed; opacity: 1; text-decoration: none; cursor: not-allowed; }
.pyp-swatch.is-oos > span { color: var(--pyp-ink-2); text-decoration: line-through; }
.pyp-swatch .pyp-oos { color: var(--pyp-ink-2); font-size: 12px; font-weight: 500; }
.woostify-tab-scroll-content { max-height: none !important; overflow: visible !important; }
.pyp-trust li { display: block; padding-left: 22px !important; text-indent: -22px; }
.pyp-trust li span { display: inline-block; width: 16px; text-indent: 0; margin-right: 6px !important; }
.pyp-trust a { margin-left: 6px !important; white-space: nowrap; }
.woocommerce-Tabs-panel h2, .woocommerce-Tabs-panel h3 { font-size: 18px !important; line-height: 1.3; margin: 20px 0 8px !important; letter-spacing: -0.01em; }

/* Recently viewed: a single row of four */
.woostify-product-recently-viewed-section ul.products > li:nth-child(n+5) { display: none !important; }

/* Basket: full-width checkout button on phones */
@media (max-width: 767px) {
	.wc-proceed-to-checkout .checkout-button { width: 100%; }
}

/* Notices (e.g. "Confirm your email address to check for past orders") */
.woocommerce-info, .woocommerce-message, .woocommerce-notice--info, .woocommerce-error {
	background: var(--pyp-surface) !important; color: var(--pyp-ink) !important;
	border: 0 !important; border-radius: var(--pyp-r-md) !important;
	padding: 16px 20px !important; margin: 0 0 var(--pyp-s5) !important;
	display: flex !important; flex-wrap: wrap; align-items: center; gap: 12px 16px;
	font-size: 15px; line-height: 1.5;
}
.woocommerce-error { background: #fdecec !important; }
.woocommerce-info::before, .woocommerce-message::before, .woocommerce-error::before { display: none !important; }
.woocommerce-info .button, .woocommerce-message .button {
	order: 2; float: none !important; margin: 0 !important; min-height: 40px; padding: 0 18px;
	background: var(--pyp-ink) !important; color: #fff !important; font-size: 14px;
}
.woocommerce-info a:not(.button), .woocommerce-message a:not(.button) { color: var(--pyp-ink); text-decoration: underline; }
.woocommerce-info a.button[href*="wc_send_verification"] { display: inline-flex !important; }
.woocommerce-orders-table .button { min-height: 36px !important; padding: 0 14px !important; font-size: 14px !important; margin: 2px 0 2px 6px !important; }

/* Account: addresses */
.woocommerce-Addresses { gap: var(--pyp-s5); }
.woocommerce-Address { border: 1px solid var(--pyp-line); border-radius: var(--pyp-r-md); overflow: hidden; }
.woocommerce-Address-title {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px;
	padding: 16px 20px !important; margin: 0 !important; background: var(--pyp-surface); border-bottom: 1px solid var(--pyp-line);
}
.woocommerce-Address-title h2, .woocommerce-Address-title h3 { margin: 0 !important; font-size: 18px; }
.woocommerce-Address-title .edit { font-size: 15px; }
.woocommerce-Address address { padding: 16px 20px !important; margin: 0 !important; font-style: normal !important; line-height: 1.6; }

/* Footer headings stay put on every page; two columns on phones */
.pyp-footer .pyp-footer__col h2 { text-align: left !important; font-size: 15px !important; font-family: var(--pyp-font-body) !important; margin: 0 0 8px !important; }
@media (max-width: 599px) {
	.pyp-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--pyp-s6) var(--pyp-s5); padding-top: var(--pyp-s7); }
	.pyp-footer__about { grid-column: 1 / -1; }
}

/* Help pages on phones: the page first, the list of help pages after it */
@media (max-width: 767px) {
	.pyp-help { padding-top: var(--pyp-s5); }
	.pyp-help__nav { order: 2; max-width: none; flex-basis: 100%; border-top: 1px solid var(--pyp-line); padding-top: var(--pyp-s5); }
	.pyp-help__doc { order: 1; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------- v0.7.1: product page spacing and small photos ---------- */
/* Space between the grey breadcrumb band and the product (title and gallery sat flush against it) */
.single-product .content-top { margin-bottom: 32px; }
/* Main product photo always fills the gallery column, even when the upload is smaller than the column */
.single-product .product-gallery .product-images img,
.single-product .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
}

/* ---------- v0.7.2: homepage reviews ---------- */
.pyp-reviews h2 { margin: 0 0 var(--pyp-s5); }
.pyp-reviews__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--pyp-s5); }
.pyp-review { background: var(--pyp-surface); border-radius: var(--pyp-r-md); padding: var(--pyp-s5); display: flex; flex-direction: column; gap: var(--pyp-s3); margin: 0; }
.pyp-review__stars { margin: 0; color: #e8a317; font-size: 18px; letter-spacing: 2px; line-height: 1; }
.pyp-review__text { margin: 0; padding: 0; border: 0; flex: 1; font-style: normal; }
.pyp-review__text p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--pyp-ink); }
.pyp-review__by { margin: 0; font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.pyp-review__by span { color: var(--pyp-ink-2); font-size: 13px; }
.pyp-review__product { font-size: 14px; color: var(--pyp-ink-2); text-decoration: underline; text-underline-offset: 2px; }
.pyp-review__product:hover { color: var(--pyp-accent); }

/* ---------- v0.7.5: quantity stepper when only 1 can be bought ---------- */
/* WooCommerce hides the number when stock or limits allow only 1, but Woostify still shows the -/+ buttons around nothing */
form.cart .quantity:has(input.qty[type="hidden"]) { display: none !important; }

/* ---------- v0.7.6: empty basket "Return to shop" button ---------- */
/* Woostify sets this one to inline-block with a fixed height, so the label sat near the top */
.return-to-shop .button,
a.button.wc-backward {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	height: auto !important;
	min-height: 48px;
	padding: 12px 24px !important;
	line-height: 1.2 !important;
}

/* ---------- v0.7.6: account offer on the order confirmation page ---------- */
.pyp-account-offer {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--pyp-s5);
	background: var(--pyp-tint); border-radius: var(--pyp-r-md); padding: var(--pyp-s6); margin: 0 0 var(--pyp-s6);
}
.pyp-account-offer > div:first-child { flex: 1 1 340px; }
.pyp-account-offer h2 { font-size: 24px; margin: 0 0 12px; }
.pyp-account-offer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pyp-account-offer li { position: relative; padding-left: 26px; color: var(--pyp-ink); font-size: 15px; }
.pyp-account-offer li::before { content: "✓"; position: absolute; left: 0; color: var(--pyp-accent); font-weight: 700; }
.pyp-account-offer p { margin: 0; color: var(--pyp-ink-2); }
.pyp-account-offer form { flex: 0 1 300px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.pyp-account-offer form .button { width: 100%; }
.pyp-account-offer__note { font-size: 13px; }
.pyp-account-offer.is-done { display: block; }
@media (max-width: 600px) {
	.pyp-account-offer { padding: var(--pyp-s5); }
	.pyp-account-offer form { flex-basis: 100%; }
}
.pyp-account-offer.is-done p + p { margin-top: 16px; }

/* ---------- v0.8.2: desktop header fits from 992px up ---------- */
/* Woostify adds 20px margins either side of every menu link, which pushed the basket off screen on smaller laptops */
@media (min-width: 992px) {
	#menu-header-primary > li > a { margin-left: 0 !important; margin-right: 0 !important; }
	.site-header .site-tools { flex-shrink: 0; }
	.site-header .site-navigation { min-width: 0; }
}
@media (min-width: 992px) and (max-width: 1199px) {
	#menu-header-primary { gap: 2px; }
	#menu-header-primary > li > a { padding-left: 7px !important; padding-right: 7px !important; font-size: 14px !important; }
	.site-header .woostify-container { padding-left: 16px !important; padding-right: 16px !important; }
	.pyp-wordmark { font-size: 20px; }
}

/* ---------- v0.8.4: cookie banner (Complianz) in the shop's style ---------- */
.cmplz-cookiebanner {
	--cmplz_banner_background_color: #fff;
	--cmplz_banner_border_radius: 16px;
	--cmplz_button_accept_background_color: var(--pyp-accent);
	--cmplz_button_accept_border_color: var(--pyp-accent);
	--cmplz_button_accept_text_color: #fff;
	--cmplz_button_deny_background_color: #fff;
	--cmplz_button_deny_border_color: var(--pyp-line-strong);
	--cmplz_button_deny_text_color: var(--pyp-ink);
	--cmplz_button_settings_background_color: #fff;
	--cmplz_button_settings_border_color: var(--pyp-line-strong);
	--cmplz_button_settings_text_color: var(--pyp-ink);
	--cmplz_button_border_radius: 999px;
	--cmplz_text_color: var(--pyp-ink-2);
	--cmplz_hyperlink_color: var(--pyp-ink);
	--cmplz_slider_active_color: var(--pyp-accent);
	--cmplz_category_header_always_active_color: var(--pyp-accent);
	font-family: var(--pyp-font-body) !important;
	box-shadow: 0 12px 40px rgba(31, 26, 46, 0.18) !important;
	border: 1px solid var(--pyp-line) !important;
}
.cmplz-cookiebanner .cmplz-title { font-family: var(--pyp-font-display) !important; font-weight: 700 !important; color: var(--pyp-ink) !important; }
.cmplz-cookiebanner .cmplz-message,
.cmplz-cookiebanner .cmplz-message p { font-size: 14px !important; line-height: 1.55 !important; color: var(--pyp-ink-2) !important; }
.cmplz-cookiebanner .cmplz-btn {
	border-radius: 999px !important; font-family: var(--pyp-font-body) !important; font-weight: 600 !important;
	min-height: 44px; display: inline-flex !important; align-items: center; justify-content: center;
}
.cmplz-cookiebanner .cmplz-btn.cmplz-accept { background: var(--pyp-accent) !important; border-color: var(--pyp-accent) !important; color: #fff !important; }
.cmplz-cookiebanner .cmplz-btn.cmplz-accept:hover { background: var(--pyp-accent-hover) !important; border-color: var(--pyp-accent-hover) !important; }
.cmplz-cookiebanner .cmplz-btn.cmplz-deny,
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,
.cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences { background: #fff !important; border: 1px solid var(--pyp-line-strong) !important; color: var(--pyp-ink) !important; }
.cmplz-cookiebanner .cmplz-links a { color: var(--pyp-ink) !important; text-decoration: underline; text-underline-offset: 2px; }
#cmplz-manage-consent .cmplz-manage-consent {
	background: var(--pyp-ink) !important; color: #fff !important; font-family: var(--pyp-font-body) !important;
	border-radius: 10px 10px 0 0 !important; font-size: 13px !important;
}
