/* ==========================================================================
   PreciDENT theme — custom styling on top of theme.json tokens
   Brand: mint #97DDCB (buttons/accents), dark navy #121F42 (text/footer)
   ========================================================================== */

/* Sticky footer — keep the footer glued to the bottom of the viewport even
   when the page content is short (e.g. Returns, thank-you pages). */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
.wp-site-blocks > footer {
	margin-top: auto;
}

:root {
	--pd-primary: #97DDCB;
	--pd-primary-dark: #7ccbb6;
	--pd-primary-deep: #2f9e86;
	--pd-navy: #121F42;
	--pd-accent: #97DDCB;
	--pd-accent-dark: #7ccbb6;
	--pd-on-accent: #121F42;
	--pd-surface: #f1faf6;
	--pd-border: #e3efe9;
	--pd-muted: #5a6b7b;
	--pd-radius: 14px;
	--pd-radius-sm: 10px;
	--pd-shadow: 0 6px 20px rgba(20, 60, 90, .07);
	--pd-shadow-hover: 0 12px 30px rgba(20, 60, 90, .13);
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* ---------- Buttons ---------- */
.wp-block-button__link {
	transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.wp-block-button__link:hover { transform: translateY(-1px); }

.wp-block-button.is-style-primary .wp-block-button__link {
	background-color: var(--pd-primary);
	color: var(--pd-on-accent);
}
.wp-block-button.is-style-primary .wp-block-button__link:hover {
	background-color: var(--pd-primary-dark);
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--pd-navy);
	border: 1.5px solid var(--pd-navy);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--pd-navy);
	color: #fff;
}

/* ---------- Header ---------- */
.pd-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--pd-border);
}
.pd-header .wp-block-navigation a {
	font-weight: 500;
	color: var(--pd-navy);
}
.pd-header .wp-block-navigation a:hover,
.pd-header .wp-block-navigation .current-menu-item a {
	color: var(--pd-primary-deep);
}
.pd-logo { flex: 0 0 auto; }
.pd-logo img { max-height: 44px; width: auto; }
/* Give the header content the full constrained width */
.pd-header .pd-header-row { width: 100%; }
/* Search should stay usably wide, not collapse */
.pd-header .wc-block-product-search,
.pd-header .wp-block-woocommerce-product-search { flex: 1 1 260px; min-width: 200px; max-width: 340px; }
/* Header CTA should never break its text across lines */
.pd-header .wp-block-button__link { white-space: nowrap; }
/* The navy "Get in touch" pill needs white text (dark background) */
.pd-header .wp-block-button__link.has-background { color: #fff; }
/* Header mini-cart (single functional cart) */
.pd-header .wc-block-mini-cart { display: inline-flex; align-items: center; }
.pd-header .wc-block-mini-cart__button { padding: .4rem; color: var(--pd-navy); background: transparent; }
.pd-header .wc-block-mini-cart__button:hover { color: var(--pd-primary-deep); }
.pd-header .wc-block-mini-cart__amount { display: none; } /* keep just the icon + count */
.pd-header .wc-block-mini-cart__badge { background: var(--pd-primary-deep); color: #fff; }

/* Header "Shop" pill with cart icon */
.pd-header-shop {
	display: inline-flex; align-items: center; gap: .5rem;
	background: var(--pd-navy); color: #fff;
	border-radius: 999px; padding: .6rem 1.35rem;
	font-weight: 600; text-decoration: none; white-space: nowrap;
	transition: background-color .15s ease, transform .15s ease;
}
.pd-header-shop:hover { background: #22345f; color: #fff; transform: translateY(-1px); }
.pd-header-shop .pd-cart-ico { width: 20px; height: 20px; }
.pd-header .wp-block-navigation { flex-wrap: nowrap; }
/* Keep the header on one row and let the search field flex down on small screens */
.pd-header > .wp-block-group { flex-wrap: nowrap; gap: 1rem; align-items: center; }
.pd-header .wc-block-product-search { min-width: 0; }
/* Logo left · nav+search+Shop centered · language + cart at the end */
.pd-header-center { flex: 1 1 auto; justify-content: center; align-items: center; }
.pd-header-end { flex: 0 0 auto; align-items: center; }
/* Language switcher — compact pill dropdown (EN / DE / BS) */
.pd-header .wp-block-polylang-language-switcher { display: inline-flex; align-items: center; }
.pd-header .pll-switcher-select,
.pd-header .wp-block-polylang-language-switcher select {
	-webkit-appearance: none; -moz-appearance: none; appearance: none;
	border: 1px solid var(--pd-border); border-radius: 999px;
	padding: .38rem 1.7rem .38rem .85rem;
	color: var(--pd-navy); background-color: #fff;
	font: inherit; font-size: .82rem; font-weight: 600; letter-spacing: .02em;
	line-height: 1; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23121F42' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right .6rem center;
	transition: border-color .15s ease;
}
.pd-header .pll-switcher-select:hover { border-color: var(--pd-primary); }
.pd-header .pll-switcher-select:focus { outline: none; border-color: var(--pd-primary-deep); }
@media (max-width: 782px) {
	.pd-header .wp-block-button__link { padding-left: 1rem; padding-right: 1rem; }
}

/* ---------- Hero ---------- */
.pd-hero { background: #fff; }

/* Full-bleed hero: background photo + centered text overlay */
.pd-hero--full {
	position: relative;
	background-size: cover;
	background-position: center;
	min-height: clamp(620px, 88vh, 940px);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 0 !important;
	margin-top: 0;
}
.pd-hero--full::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(18,31,66,.74) 0%, rgba(18,31,66,.6) 100%);
}
.pd-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 820px;
	margin: 0 auto;
	padding: 5rem 1.5rem;
	text-align: center;
	color: #fff;
}
.pd-hero--full .pd-eyebrow { color: var(--pd-primary); font-size: .8rem; }
.pd-hero--full .pd-hero-title { color: #fff; margin-top: .5rem; font-size: clamp(2.9rem, 1.6rem + 5.2vw, 5.6rem); }
.pd-hero--full .pd-hero-title span { color: var(--pd-primary) !important; }
.pd-hero--full .pd-hero-lead { color: rgba(255,255,255,.9); max-width: 34rem; margin: 0 auto 1.9rem; }
.pd-hero--full .pd-hero-actions { justify-content: center; }
.pd-eyebrow {
	text-transform: uppercase;
	letter-spacing: .18em;
	font-size: .72rem;
	font-weight: 700;
	color: var(--pd-primary-deep);
}
.pd-hero-title {
	font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5rem);
	line-height: 1.02;
	letter-spacing: -0.02em;
	color: var(--pd-navy);
	margin: .5rem 0 1.1rem;
}
.pd-hero-lead { max-width: 30rem; font-size: 1.05rem; }

/* Eyebrow with check pill */
.pd-eyebrow--check {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	text-transform: none;
	letter-spacing: 0;
	font-size: .95rem;
	font-weight: 600;
	color: var(--pd-navy);
}
.pd-eyebrow--check .pd-check,
.pd-eyebrow--check .pd-check svg { width: 20px; height: 20px; display: block; }

/* Hero actions */
.pd-hero-actions { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.9rem; flex-wrap: wrap; }
.pd-btn-primary {
	display: inline-flex; align-items: center; gap: .55rem;
	background: var(--pd-primary); color: var(--pd-on-accent);
	font-weight: 700; text-decoration: none;
	padding: 1rem 2.1rem; border-radius: 16px;
	transition: background-color .15s ease, transform .15s ease;
}
.pd-btn-primary:hover { background: var(--pd-primary-dark); color: var(--pd-on-accent); transform: translateY(-1px); }
.pd-btn-play { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--pd-navy); font-weight: 600; line-height: 1.2; }
.pd-btn-play .pd-play {
	width: 52px; height: 52px; border-radius: 50%;
	background: #e6f7f1; display: inline-flex; align-items: center; justify-content: center;
	flex-shrink: 0; transition: background-color .15s ease;
}
.pd-btn-play .pd-play svg { width: 22px; height: 22px; }
.pd-btn-play:hover .pd-play { background: var(--pd-primary); }
.pd-play-label { font-size: .9rem; }

/* Single dental-model hero photo */
.pd-hero-photo { margin: 0; }
.pd-hero-photo img {
	width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto;
	border-radius: 18px;
	box-shadow: 0 18px 45px rgba(20, 60, 90, .16);
}

/* Exploded implant figure (kept for optional reuse) */
.pd-hero-figure { position: relative; width: 100%; max-width: 600px; margin: 0 auto; }
.pd-hero-base { display: block; width: 100%; height: auto; margin-top: 44%; }
.pd-hero-layer { position: absolute; height: auto; left: 54.5%; }
.pd-l-crowns { top: 0%;  width: 25%; }
.pd-l-abut   { top: 16%; width: 19%; }
.pd-l-screws { top: 31%; width: 15%; }
@keyframes pd-float { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -9px); } }
.pd-hero-layer { transform: translateX(-50%); }
@media (prefers-reduced-motion: no-preference) {
	.pd-l-crowns { animation: pd-float 3.6s ease-in-out infinite; }
	.pd-l-abut   { animation: pd-float 3.6s ease-in-out infinite .35s; }
	.pd-l-screws { animation: pd-float 3.6s ease-in-out infinite .7s; }
}

/* ---------- Section heading ---------- */
.pd-section-title { text-align: center; margin-bottom: 1.5rem; }
.pd-section-title .pd-eyebrow { display: block; margin-bottom: .35rem; }

/* ---------- Category cards ---------- */
.pd-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}
.pd-cat-card {
	border: 1px solid var(--pd-border);
	border-radius: var(--pd-radius);
	padding: 1.4rem .75rem;
	text-align: center;
	background: #fff;
	box-shadow: var(--pd-shadow);
	transition: transform .15s ease, box-shadow .15s ease;
	text-decoration: none;
	color: var(--pd-navy);
	font-weight: 600;
	display: block;
}
.pd-cat-card:hover { transform: translateY(-3px); box-shadow: var(--pd-shadow-hover); border-color: #cfe6ee; }
.pd-cat-card { padding: 1.8rem 1rem; }
.pd-cat-card .pd-cat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 104px;
	height: 104px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 38%, #ffffff 0%, var(--pd-surface) 78%);
	box-shadow: inset 0 0 0 1px #e6eef3, 0 6px 16px rgba(20, 60, 90, .06);
	transition: transform .15s ease, box-shadow .15s ease;
}
.pd-cat-card:hover .pd-cat-icon {
	transform: translateY(-2px);
	box-shadow: inset 0 0 0 1px #cfe6ee, 0 10px 22px rgba(31, 139, 166, .18);
}
.pd-cat-card .pd-cat-svg { width: 62px; height: 62px; display: block; }
.pd-cat-card .pd-cat-label { display: block; font-size: 1.02rem; }

/* ---------- Product cards (WooCommerce) ---------- */
ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	justify-items: start;
}
/* WooCommerce adds ::before/::after clearfix pseudos that steal grid cells
   (pushing a lone product into column 2). Remove them in the grid. */
ul.products::before,
ul.products::after { content: none !important; display: none !important; }

/* Hide the "sort by" dropdown everywhere (shop + search) — small catalog */
.woocommerce-ordering,
.wc-block-catalog-sorting,
.wp-block-woocommerce-catalog-sorting { display: none !important; }
ul.products li.product {
	list-style: none;
	margin: 0 !important;
	width: auto !important;
	border: 1px solid var(--pd-border);
	border-radius: var(--pd-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--pd-shadow);
	transition: transform .15s ease, box-shadow .15s ease;
	position: relative;
	display: flex;
	flex-direction: column;
}
ul.products li.product:hover { transform: translateY(-3px); box-shadow: var(--pd-shadow-hover); }
ul.products li.product a img {
	margin: 0;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: #000;
}
ul.products li.product .woocommerce-loop-product__title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 600;
	font-size: .98rem;
	padding: .8rem .9rem 0;
	color: var(--pd-navy);
}
ul.products li.product .price {
	display: block;
	padding: .2rem .9rem 0;
	color: var(--pd-primary-deep);
	font-weight: 700;
}
ul.products li.product .price del { color: #9fb0bd; font-weight: 400; margin-right: .35rem; }
ul.products li.product .price ins { text-decoration: none; }
ul.products li.product .button,
ul.products li.product .added_to_cart {
	margin: .7rem .9rem 1rem;
	background: var(--pd-accent);
	color: var(--pd-on-accent);
	border-radius: 999px;
	text-align: center;
	padding: .6rem 1rem;
	font-weight: 600;
	font-size: .9rem;
	transition: background-color .15s ease;
}
ul.products li.product .button:hover { background: var(--pd-accent-dark); }

/* Sale + stock badges */
ul.products li.product .onsale,
.woocommerce span.onsale {
	position: absolute;
	top: .7rem;
	left: .7rem;
	background: var(--pd-accent);
	color: var(--pd-on-accent);
	border-radius: 999px;
	padding: .15rem .6rem;
	font-size: .72rem;
	font-weight: 700;
	min-height: 0;
	min-width: 0;
	line-height: 1.5;
	margin: 0;
	z-index: 2;
}
ul.products li.product.outofstock::after {
	content: "Out of stock";
	position: absolute;
	top: .7rem;
	right: .7rem;
	background: var(--pd-navy);
	color: #fff;
	border-radius: 999px;
	padding: .15rem .6rem;
	font-size: .68rem;
	font-weight: 600;
	z-index: 2;
}

/* ---------- Shop layout (sidebar + grid) ---------- */
.pd-shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; }
.pd-shop-sidebar .wp-block-heading { font-size: 1rem; margin-top: 1.5rem; }
.pd-shop-sidebar ul { list-style: none; margin: 0; padding: 0; }
.pd-shop-sidebar li { padding: .3rem 0; color: var(--pd-muted); }
.pd-shop-sidebar a { color: var(--pd-navy); text-decoration: none; }
.pd-shop-sidebar a:hover { color: var(--pd-primary-deep); }

/* ---------- Single product ---------- */
.woocommerce div.product .product_title { font-family: "Plus Jakarta Sans", sans-serif; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--pd-primary-deep); font-weight: 700; font-size: 1.5rem; }
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: var(--pd-accent);
	color: var(--pd-on-accent);
	border-radius: 999px;
	font-weight: 600;
	padding: .7rem 1.6rem;
}
.woocommerce div.product form.cart .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { background: var(--pd-accent-dark); }
.woocommerce .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--pd-primary); }

/* ---------- Contact form ---------- */
.pd-contact-card {
	background: transparent;
	border: none;
	padding: 0;
}
.pd-form-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1.4rem; font-weight: 700; color: var(--pd-navy);
	margin: 0 0 .25rem;
}
.pd-form-sub { color: var(--pd-muted); font-size: .95rem; margin: 0 0 1.5rem; }

.pd-contact-form { display: flex; flex-direction: column; gap: .35rem; }

/* Icon + underline field */
.pd-ffield {
	display: flex; align-items: center; gap: 1rem;
	border-bottom: 1.5px solid var(--pd-border);
	padding: .95rem .2rem;
	transition: border-color .15s ease;
}
.pd-ffield:focus-within { border-color: var(--pd-primary); }
.pd-ffield--area { align-items: flex-start; }
.pd-ffield--area .pd-ficon { margin-top: .35rem; }
.pd-ficon { color: var(--pd-navy); flex-shrink: 0; display: inline-flex; }
.pd-ficon svg { width: 24px; height: 24px; }
.pd-ffield input,
.pd-ffield textarea {
	flex: 1 1 auto; width: 100%;
	border: none; background: transparent;
	font: inherit; font-size: 1.05rem; color: var(--pd-navy);
	padding: .1rem 0;
}
.pd-ffield input:focus,
.pd-ffield textarea:focus { outline: none; box-shadow: none; }
.pd-ffield input::placeholder,
.pd-ffield textarea::placeholder { color: #9aa7a3; }
.pd-ffield textarea { resize: vertical; min-height: 70px; line-height: 1.55; }

/* Consent checkbox */
.pd-consent {
	display: flex; align-items: flex-start; gap: .6rem;
	margin: 1.4rem 0 .5rem; font-size: .95rem; color: var(--pd-muted);
}
.pd-consent input {
	margin-top: .15rem; width: 18px; height: 18px;
	accent-color: var(--pd-primary-deep); flex-shrink: 0;
}
.pd-consent a { color: var(--pd-navy); }

.pd-form-submit {
	align-self: flex-start;
	display: inline-flex; align-items: center; gap: .55rem;
	border: none; cursor: pointer;
	background: var(--pd-primary); color: var(--pd-on-accent);
	font-family: inherit; font-weight: 700; font-size: 1rem;
	border-radius: 999px; padding: .95rem 2rem; margin-top: .6rem;
	transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.pd-form-submit:hover { background: var(--pd-primary-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(151, 221, 203, .5); }
.pd-form-submit svg { width: 20px; height: 20px; }

.pd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.pd-form-note { border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1.3rem; font-size: .95rem; }
.pd-form-ok { background: #e6f7f1; color: #1f7a63; border: 1px solid #b8e6d8; }
.pd-form-err { background: #fdecec; color: #b23b3b; border: 1px solid #f3c2c2; }
@media (max-width: 560px) {
	.pd-contact-card { padding: 1.5rem; }
	.pd-contact-form .pd-field-row { flex-direction: column; }
}

/* ---------- Trust strip ---------- */
.pd-trust {
	background: var(--pd-surface);
	border-radius: var(--pd-radius);
}
.pd-trust-row { display: flex; justify-content: space-around; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.pd-trust .pd-trust-item { text-align: center; color: var(--pd-muted); font-size: .9rem; flex: 1 1 140px; }
.pd-trust .pd-trust-item strong { display: block; color: var(--pd-navy); margin-top: .5rem; font-weight: 600; }
.pd-trust .pd-trust-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 78px; height: 78px; border-radius: 50%;
	background: #fff; color: var(--pd-primary-deep);
	box-shadow: 0 5px 15px rgba(20, 60, 90, .08);
}
.pd-trust .pd-trust-svg { width: 42px; height: 42px; display: block; }
.pd-trust .pd-trust-item strong { font-size: 1rem; }

/* ---------- CTA banner ---------- */
.pd-cta {
	background: linear-gradient(105deg, #121F42 0%, #22345f 100%);
	color: #fff;
	border-radius: var(--pd-radius);
}
.pd-cta :where(h1,h2,h3) { color: #fff; }
.pd-cta .wp-block-button__link { background: var(--pd-accent); color: var(--pd-on-accent); }

/* ---------- 404 page ---------- */
.pd-404 { text-align: center; max-width: 640px; margin: 2rem auto 3rem; padding: 0 1.25rem; }
.pd-404-badge { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; margin-bottom: 1rem; }
.pd-404-badge svg { width: clamp(48px, 8vw, 76px); height: auto; color: var(--pd-navy); }
.pd-404-num { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: clamp(4.5rem, 3rem + 8vw, 8rem); line-height: 1; color: var(--pd-primary); letter-spacing: -.03em; }
.pd-404-title { font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); color: var(--pd-navy); margin: 0 0 .6rem; }
.pd-404-text { color: var(--pd-muted); font-size: 1.05rem; margin: 0 auto 2rem; max-width: 30rem; line-height: 1.6; }
.pd-404-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: center; margin-bottom: 2.5rem; }
.pd-404-link { color: var(--pd-primary-deep); font-weight: 600; text-decoration: none; }
.pd-404-link:hover { text-decoration: underline; }
.pd-404-cats span { display: block; margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; color: var(--pd-primary-deep); }
.pd-404-cats a { color: var(--pd-navy); text-decoration: none; margin: 0 .5rem; font-weight: 500; }
.pd-404-cats a:hover { color: var(--pd-primary-deep); }

/* ---------- Footer ---------- */
.pd-footer { background: var(--pd-navy); color: #b9cfd0; }
.pd-footer :where(h1,h2,h3,h4) { color: #fff; }
.pd-footer a { color: #cfeee4; text-decoration: none; }
.pd-footer a:hover { color: var(--pd-primary); }

/* ==========================================================================
   Responsive — 100% clean on phones, tablets and desktops
   ========================================================================== */

/* Global safety: never allow sideways scrolling; keep media inside its box */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, iframe, canvas { max-width: 100%; height: auto; }
.pd-footer a, .pd-footer p { overflow-wrap: anywhere; }
/* Long words (product titles, German compounds) wrap instead of overflowing */
.pd-hero-title, .woocommerce-loop-product__title, .pd-cat-label,
.woocommerce div.product .product_title { overflow-wrap: break-word; }

/* ---- Tablet & down: declutter the header ---- */
/* Redundant "Shop" pill removed early (nav + cart already cover it) */
@media (max-width: 1024px) {
	.pd-header-shop { display: none !important; }
	.pd-shop-layout { grid-template-columns: 1fr; }
}
/* Search field hidden on small tablets/phones so the header never overflows */
@media (max-width: 900px) {
	.pd-header .wc-block-product-search,
	.pd-header .wp-block-woocommerce-product-search,
	.pd-header .wp-block-search { display: none !important; }
	.pd-cat-grid { grid-template-columns: repeat(2, 1fr); }
	ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---- Phone: compact header + tighter spacing ---- */
@media (max-width: 782px) {
	.pd-header > .wp-block-group { gap: .6rem; }
	.pd-logo img { max-height: 38px; }
}
@media (max-width: 600px) {
	/* Group hamburger + language + cart together on the right, logo on the left */
	.pd-header-center { flex: 0 0 auto; justify-content: flex-end; }
	.pd-hero--full { min-height: clamp(440px, 78vh, 600px); }
	.pd-hero-inner { padding: 3.25rem 1.15rem; }
	.pd-hero--full .pd-hero-lead { font-size: .98rem; }
	.pd-cat-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
	ul.products { grid-template-columns: 1fr !important; }
	.pd-cat-card { padding: 1.4rem .8rem; }
	.pd-cat-card .pd-cat-icon { width: 88px; height: 88px; }
	.pd-cat-card .pd-cat-svg { width: 52px; height: 52px; }
	.pd-btn-primary { padding: .9rem 1.7rem; }
	.pd-form-title { font-size: 1.25rem; }
}
@media (max-width: 400px) {
	.pd-cat-card .pd-cat-label { font-size: .92rem; }
	.pd-hero-actions { gap: 1rem; }
	.pd-header ul.wp-block-polylang-language-switcher a { padding: .3rem .3rem; }
}

/* ---- Mobile navigation overlay (hamburger menu) ----
   Force the opened menu to fill the screen with large, tappable links. */
.pd-header .wp-block-navigation__responsive-container.is-menu-open {
	position: fixed !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	padding: 4.5rem 1.75rem 2rem !important;
	background: #fff !important;
	overflow-y: auto;
	z-index: 200;
}
.pd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	width: 100%;
	align-items: stretch;
}
.pd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.pd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu {
	width: 100%;
	gap: .1rem;
}
.pd-header .wp-block-navigation__responsive-container.is-menu-open a,
.pd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.15rem;
	padding: .55rem 0;
	color: var(--pd-navy);
}
.pd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	padding-left: 1rem;
}
.pd-header .wp-block-navigation__responsive-container-close {
	top: 1.5rem !important;
	right: 1.5rem !important;
	color: var(--pd-navy);
}
