/* ==========================================================================
   Novabox — monochrome retail, Heebo, square corners.
   Product photos are shot on --stage, so cards and galleries use the same grey.
   ========================================================================== */

/* Heebo variable (300–900), self-hosted. OFL: assets/fonts/OFL.txt */
@font-face {
	font-family: "Heebo"; font-style: normal; font-weight: 300 900; font-display: swap;
	src: url("../fonts/heebo-hebrew.woff2") format("woff2");
	unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
	font-family: "Heebo"; font-style: normal; font-weight: 300 900; font-display: swap;
	src: url("../fonts/heebo-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Heebo"; font-style: normal; font-weight: 300 900; font-display: swap;
	src: url("../fonts/heebo-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	/* primitives */
	--ink: #141414;
	--ink-2: #2e2e2e;
	--paper: #ffffff;
	--stage: #f3f3f3;
	--line: #e4e4e4;
	--line-strong: #cfcfcf;
	--line-input: #8a8a8a;   /* form-control edges: 3.45:1 on white (WCAG 1.4.11) */
	--placeholder: #737373;  /* 4.74:1 on white (WCAG 1.4.3) */
	--mute: #6b6b6b;
	--night: #0b0b0b;
	--night-line: rgb(255 255 255 / .14);
	--night-mute: rgb(255 255 255 / .66);
	--sale: #c8102e;
	--ok: #1d7a46;

	/* semantic */
	--surface: var(--paper);
	--surface-alt: var(--stage);
	--text: var(--ink);
	--text-muted: var(--mute);
	--border: var(--line);

	--font: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

	/* type: UI sizes are fixed, display sizes are fluid */
	--fs-xs: 0.8125rem;   /* 13 */
	--fs-sm: 0.9375rem;   /* 15 */
	--fs-md: 1.0625rem;   /* 17 */
	--fs-lg: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
	--fs-xl: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
	--fs-2xl: clamp(2.25rem, 1.6rem + 3vw, 4.5rem);
	--fs-hero: clamp(3.75rem, 1rem + 9.6vw, 10rem);

	--s-1: 4px;
	--s-2: 8px;
	--s-3: 16px;
	--s-4: 24px;
	--s-5: 32px;
	--s-6: 48px;
	--s-7: 80px;
	--s-8: 128px;
	--section: clamp(64px, 4rem + 4vw, 128px);

	--gutter: clamp(16px, 4vw, 48px);
	--max: 1440px;
	--edge: max(var(--gutter), (100% - var(--max)) / 2 + var(--gutter));
	--header-h: 64px;

	--ease: cubic-bezier(.2, .7, .1, 1);
	--ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Base ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s-4)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-md);
	line-height: 1.6;
	color: var(--text);
	background: var(--surface);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-weight: 900; letter-spacing: -0.025em; text-wrap: balance; }
h3, h4 { font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
dialog { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; } /* notices and regions WooCommerce focuses from script */

.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: var(--s-3); top: -100px; z-index: 200; background: var(--ink); color: var(--paper); padding: var(--s-2) var(--s-3); font-weight: 700; }
.skip-link:focus { top: var(--s-2); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons & links ---------- */
.btn,
.button,
button.button,
input.button,
.woocommerce-button,
.single_add_to_cart_button,
.checkout-button,
#place_order {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
	min-height: 52px; padding: 0 var(--s-5);
	background: var(--ink); color: var(--paper);
	border: 1px solid var(--ink); border-radius: 0;
	font-size: var(--fs-sm); font-weight: 700; line-height: 1.2; letter-spacing: 0.01em; text-align: center;
	cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:hover, .button:hover, .single_add_to_cart_button:hover, .checkout-button:hover, #place_order:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn:active, .button:active, .single_add_to_cart_button:active, #place_order:active { transform: translateY(1px); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: #e6e6e6; border-color: #e6e6e6; color: var(--ink); }
.btn--ghost, .button.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover, .button.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--block { width: 100%; }
/* Add-to-cart feedback: spinner while it works, a check once it's in the cart */
.button.loading, .btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.button.loading::after, .btn.loading::after {
	content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
	border: 2px solid var(--spin, var(--paper)); border-inline-end-color: transparent; border-radius: 50%;
	animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.button.is-confirmed::before, .btn.is-confirmed::before {
	content: ""; width: 12px; height: 6px; margin-bottom: 3px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.button:disabled, .button.disabled, .single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; }

.link { font-size: var(--fs-sm); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-thickness .15s; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Form controls (store, account, comments, newsletter) ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], textarea, select {
	width: 100%; min-height: 50px; padding: var(--s-2) var(--s-3);
	border: 1px solid var(--line-input); border-radius: 0; background: var(--paper);
	transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
select {
	appearance: none; cursor: pointer; padding-inline-end: 44px;
	background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23141414' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat left 16px center;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; flex: none; }
label { font-size: var(--fs-sm); font-weight: 500; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--night); color: var(--paper); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.01em; }
.announce__track { display: flex; justify-content: center; gap: var(--s-6); min-height: 36px; align-items: center; padding: 6px var(--gutter); text-align: center; }
.announce__track p:first-child { font-weight: 700; }
.announce__track p + p { color: var(--night-mute); }
@media (max-width: 720px) { .announce__track p + p { display: none; } }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 60;
	background: var(--surface); color: var(--text);
	box-shadow: inset 0 -1px 0 var(--border);
	transition: background .35s, color .35s, box-shadow .35s;
}
.site-header__inner {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-4);
	max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); height: var(--header-h);
}
.logo { justify-self: start; padding-block: 11px; font-size: 1.375rem; font-weight: 900; letter-spacing: 0.2em; line-height: 1; text-transform: uppercase; direction: ltr; margin-inline-end: -0.2em; }
.custom-logo-link { justify-self: start; display: block; }
.custom-logo { max-height: 36px; width: auto; transition: filter .35s; }

.site-nav > ul { display: flex; gap: clamp(var(--s-4), 2.4vw, var(--s-5)); }
.site-nav > ul a { position: relative; display: block; padding-block: var(--s-2); font-size: var(--fs-sm); font-weight: 500; }
.site-nav > ul a::after { content: ""; position: absolute; inset: auto 0 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.site-nav > ul a:hover::after, .site-nav .current-menu-item > a::after, .site-nav .current-product_cat-ancestor > a::after { transform: scaleX(1); }
.site-nav__extra { display: none; }

.site-header__actions { justify-self: end; display: flex; gap: var(--s-1); margin-inline-end: -10px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: inherit; }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
	position: absolute; top: 5px; inset-inline-end: 4px; min-width: 17px; height: 17px; padding: 0 4px;
	border-radius: 9px; background: var(--ink); color: var(--paper); box-shadow: 0 0 0 2px var(--surface);
	font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
}
.cart-count[hidden] { display: none; }
.cart-count.is-bumped { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-toggle { display: none; }
.menu-toggle .bar { transition: transform .3s var(--ease), opacity .2s; transform-box: view-box; }
.menu-toggle .bar--1 { transform-origin: 12px 6px; }
.menu-toggle .bar--3 { transform-origin: 12px 18px; }
.nav-open .menu-toggle .bar--1 { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle .bar--2 { opacity: 0; }
.nav-open .menu-toggle .bar--3 { transform: translateY(-6px) rotate(-45deg); }

/* Over the dark hero the header is transparent until the hero scrolls away (JS adds .is-solid). */
.js body:not(.nav-open) .site-header--over:not(.is-solid) { background: transparent; color: var(--paper); box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0); }
.js body:not(.nav-open) .site-header--over:not(.is-solid) .custom-logo { filter: invert(1) brightness(2); }
.js body:not(.nav-open) .site-header--over:not(.is-solid) .cart-count { background: var(--paper); color: var(--ink); box-shadow: none; }

@media (max-width: 960px) {
	.site-header__inner { grid-template-columns: 1fr auto 1fr; gap: var(--s-2); }
	.menu-toggle { display: grid; justify-self: start; margin-inline-start: -10px; }
	.logo, .custom-logo-link { justify-self: center; grid-column: 2; grid-row: 1; }
	.site-header__actions { grid-column: 3; grid-row: 1; }
	.site-header__actions .account-link { display: none; }
	.site-nav {
		position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; z-index: -1;
		display: flex; flex-direction: column; justify-content: flex-start; gap: var(--s-4);
		padding: var(--s-3) var(--gutter) var(--s-5); overflow-y: auto; overscroll-behavior: contain;
		background: var(--surface); color: var(--text);
		transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s;
	}
	.nav-open .site-nav { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
	.nav-open .site-header { background: var(--surface); color: var(--text); }
	.site-nav > ul { flex-direction: column; gap: 0; }
	.site-nav > ul a { padding-block: 14px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; box-shadow: inset 0 -1px 0 var(--border); }
	.site-nav > ul a::after { display: none; }
	/* The phone menu shows the same main links as the desktop header (text only), then the service links. */
	.site-nav__extra { display: contents; }
	.nav-service { display: grid; gap: 2px; }
	.nav-service a, .nav-account { display: inline-block; padding-block: 6px; font-size: var(--fs-md); font-weight: 500; }
	.nav-help { display: grid; gap: var(--s-2); margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--border); }
	.nav-help p { font-size: var(--fs-sm); font-weight: 700; }
	.nav-usp { font-size: var(--fs-xs); color: var(--text-muted); }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate;
	display: grid;
	grid-template-columns: [full-start] var(--edge) [copy-start] minmax(0, 1fr) [copy-end] minmax(0, 0.9fr) var(--edge) [full-end];
	grid-template-rows: 1fr auto auto;
	min-height: clamp(600px, calc(100svh - 36px), 960px);
	margin-top: calc(-1 * var(--header-h));
	padding-top: var(--header-h);
	background: var(--night); color: var(--paper);
	overflow: hidden;
}
.hero__media { grid-column: full; grid-row: 1 / -1; position: relative; z-index: -1; margin: calc(-1 * var(--header-h)) 0 0; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero__title {
	grid-column: copy; grid-row: 2;
	font-size: var(--fs-hero); font-weight: 900; line-height: 0.86; letter-spacing: -0.05em;
	margin-inline-end: -0.06em; padding-bottom: 0.06em;
}
/* Clip only the bottom edge (for the rise-in); long words may still run past the column sideways. */
.hero__line { display: block; clip-path: inset(-50% -100vw 0 -100vw); padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__line > span { display: block; }
.hero__foot { grid-column: copy; grid-row: 3; display: grid; gap: var(--s-5); justify-items: start; padding: var(--s-5) 0 clamp(var(--s-6), 7vh, var(--s-7)); }
.hero__facts { display: grid; gap: 2px; font-size: var(--fs-lg); font-weight: 300; line-height: 1.45; color: rgb(255 255 255 / .86); }
.hero__facts b, .hero__facts strong { font-weight: 700; color: var(--paper); letter-spacing: 0.04em; }

/* One orchestrated load: the light comes up, then the words rise out of their lines. */
@media (prefers-reduced-motion: no-preference) {
	.hero__media img { animation: hero-light 1.8s var(--ease) both; }
	.hero__line > span { animation: hero-rise 1.1s var(--ease) both; }
	.hero__line:nth-child(1) > span { animation-delay: .25s; }
	.hero__line:nth-child(2) > span { animation-delay: .36s; }
	.hero__line:nth-child(3) > span { animation-delay: .47s; }
	.hero__foot { animation: hero-fade .9s .7s var(--ease) both; }
	@keyframes hero-light { from { opacity: 0; transform: scale(1.05); } }
	@keyframes hero-rise { from { transform: translateY(105%); } }
	@keyframes hero-fade { from { opacity: 0; transform: translateY(12px); } }
}

@media (max-width: 720px), (orientation: portrait) and (max-width: 1100px) {
	.hero {
		grid-template-columns: [full-start] var(--gutter) [copy-start] 1fr [copy-end] var(--gutter) [full-end];
		grid-template-rows: auto auto;
		min-height: 0;
	}
	.hero__media { grid-row: 1; aspect-ratio: 4 / 5; }
	.hero__media img { object-position: 50% 100%; }
	.hero__title { grid-row: 1; align-self: start; padding-top: var(--s-4); font-size: clamp(3.25rem, 15vw, 8rem); }
	.hero__foot { grid-row: 2; padding: var(--s-4) 0 var(--s-6); gap: var(--s-4); }
	.hero__facts { font-size: var(--fs-md); }
}
@media (max-width: 720px) { .hero__foot .btn { width: 100%; } }

/* ---------- USPs ---------- */
.usps { box-shadow: inset 0 -1px 0 var(--border); }
.usps__list { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); }
.usps__list li { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px var(--s-3); font-size: var(--fs-sm); font-weight: 500; line-height: 1.35; }
.usps__list li + li { box-shadow: inset -1px 0 0 var(--border); }
.usp-icon { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
@media (max-width: 960px) {
	.usps__list li { flex-direction: column; text-align: center; gap: var(--s-2); padding: var(--s-4) var(--s-2); }
	.usps__list[data-count="4"] { grid-template-columns: 1fr 1fr; }
	.usps__list[data-count="4"] li:nth-child(odd) { box-shadow: none; }
	.usps__list[data-count="4"] li:nth-child(even) { box-shadow: inset -1px 0 0 var(--border); }
	.usps__list[data-count="4"] li:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 600px) {
	.usps__list { padding-inline: 0; }
	.usps__list li { font-size: var(--fs-xs); padding-inline: var(--s-1); }
	.usps__list .usp-icon { width: 24px; height: 24px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--flush { padding-block: 0; }
.section--stage { background: var(--surface-alt); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-5); }
.section__head h2 { font-size: var(--fs-xl); }
.empty { color: var(--text-muted); padding: var(--s-6) 0; }

/* ---------- Product grid & card ---------- */
/* Up to three across; --cols (the real item count) keeps one or two products from stretching. */
.grid,
ul.products {
	--gap: var(--s-4);
	display: grid; gap: var(--s-6) var(--gap);
	grid-template-columns: repeat(min(var(--cols, 3), 3), minmax(0, 1fr));
	max-width: calc(min(var(--cols, 3), 3) * 480px);
	margin: 0;
}
.grid { margin-inline: auto; }
ul.products li.product { margin: 0; padding: 0; width: auto; float: none; }
ul.products::before, ul.products::after { display: none; }
@media (max-width: 960px) { .grid, ul.products { grid-template-columns: repeat(min(var(--cols, 2), 2), minmax(0, 1fr)); gap: var(--s-5) var(--s-3); } }

/* Home: a swipeable row on phones instead of a long single column */
@media (max-width: 600px) {
	.grid--rail {
		display: grid; grid-auto-flow: column; grid-auto-columns: 80%; grid-template-columns: none;
		gap: var(--s-3); max-width: none; overflow-x: auto; overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
		margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: var(--s-2);
		scrollbar-width: none;
	}
	.grid--rail::-webkit-scrollbar { display: none; }
	.grid--rail > * { scroll-snap-align: start; }
}

.card { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; container-type: inline-size; }
.card__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--stage); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__alt { opacity: 0; transition: opacity .5s var(--ease); }
.card:hover .card__alt, .card__media:focus-visible .card__alt { opacity: 1; }
@media (hover: none) { .card__alt { display: none; } }
.card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.card__title { font-size: var(--fs-md); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.card__title a::before { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is the link */
.card__desc { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; }
.card__add { position: relative; z-index: 2; margin-top: auto; --spin: var(--ink); }
.card__add .button { width: 100%; min-height: 46px; margin-top: var(--s-3); background: transparent; color: var(--ink); border-color: var(--line-strong); }
.card__add .button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); --spin: var(--paper); }
.card__add .button.is-confirmed { border-color: var(--ink); }
/* With a mouse, the button waits on the photo and slides up on hover (the box opens at the same time). */
@media (hover: hover) and (pointer: fine) {
	.card__add {
		position: absolute; top: calc(100cqw - 46px - 12px); inset-inline: 12px; margin: 0;
		opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease);
	}
	.card:hover .card__add, .card:focus-within .card__add, .card__add:has(.loading, .is-confirmed) { opacity: 1; transform: none; }
	.card__add .button { margin: 0; background: var(--paper); border-color: var(--paper); }
}
a.added_to_cart { display: none; }
.card .price { font-size: var(--fs-md); flex: none; }
@container (max-width: 280px) {
	.card__head { flex-direction: column; gap: 2px; }
	.card .price { flex-direction: row; font-size: var(--fs-sm); }
	.card__desc { display: none; }
}

.badge {
	position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1;
	background: var(--paper); color: var(--ink); padding: 5px 10px;
	font-size: var(--fs-xs); font-weight: 500; line-height: 1.3;
}
.badge--sale { color: var(--sale); }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-2); font-size: var(--fs-md); font-weight: 700; white-space: nowrap; }
.price del { color: var(--text-muted); font-weight: 400; font-size: 0.88em; text-decoration-thickness: 1px; }
.price ins { text-decoration: none; color: var(--sale); }

/* ---------- Category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); background: #161616; }
.tile { position: relative; display: block; aspect-ratio: 3 / 4; max-height: 88vh; width: 100%; overflow: hidden; color: var(--paper); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.035); }
.tile + .tile { box-shadow: inset -1px 0 0 rgb(255 255 255 / .08); }
.tile__label { position: absolute; inset: auto var(--s-4) var(--s-5); z-index: 1; display: grid; justify-items: start; gap: var(--s-2); }
.tile__label strong { font-size: var(--fs-2xl); font-weight: 900; line-height: .95; letter-spacing: -0.04em; }
.tile__price { font-size: var(--fs-lg); font-weight: 300; color: rgb(255 255 255 / .86); }
.tile__price .amount { font-weight: 500; color: var(--paper); }
.tile__price del { margin-inline-end: var(--s-2); font-size: .8em; color: rgb(255 255 255 / .7); text-decoration-thickness: 1px; }
.tile__price del .amount { font-weight: 300; color: inherit; }
.tile__price ins { text-decoration: none; }
.tile__cta { margin-top: var(--s-2); font-size: var(--fs-sm); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.tile:hover .tile__cta { text-decoration-thickness: 2px; }
/* A single category keeps the size of one tile in three, centred, rather than one page-wide cropped band */
.tiles[data-count="1"] { grid-template-columns: minmax(0, calc(100% / 3)); justify-content: center; }
/* Phones: a swipe row of full tiles rather than three cropped bands */
@media (max-width: 720px) {
	.tiles {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
		overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
	}
	.tiles::-webkit-scrollbar { display: none; }
	.tiles[data-count="1"] { grid-template-columns: none; justify-content: center; }
	.tile { scroll-snap-align: start; max-height: none; }
	.tile__label { inset-inline: var(--s-3); bottom: var(--s-4); }
}
/* ---------- One box: product spotlight (front-page.php, product field "תיאור לעמוד הבית") ---------- */
/* The box's own photo on the studio grey it was shot on, then name, lead, text, price and one button. The photo sits
   on the start side so the white "what's inside" split below (photo at the end) alternates with it. */
.spotlight { background: var(--stage); }
.spotlight__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(var(--s-5), 6vw, var(--s-8)); align-items: center; }
.spotlight__media { display: block; aspect-ratio: 1; overflow: hidden; background: var(--stage); }
.spotlight__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.spotlight__media:hover img { transform: scale(1.03); }
.spotlight__copy { display: grid; gap: var(--s-4); justify-items: start; max-width: 540px; }
.spotlight__title { font-size: var(--fs-2xl); }
.spotlight__lead { margin: 0; font-size: var(--fs-lg); font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; text-wrap: pretty; }
.spotlight__text { display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-md); line-height: 1.7; }
.spotlight__text p { margin: 0; }
.spotlight__buy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); justify-self: stretch; margin-top: var(--s-2); }
.spotlight__price { font-size: var(--fs-lg); }
.spotlight__cta { min-height: 56px; padding-inline: var(--s-6); }
@media (max-width: 860px) {
	.spotlight { padding-top: 0; }
	.spotlight__inner { grid-template-columns: minmax(0, 1fr); }
	.spotlight__media { margin-inline: calc(-1 * var(--gutter)); }
	.spotlight__cta { flex: 1 1 100%; }
}

/* ---------- Inside the box (editorial split) ---------- */
.feature__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--s-5), 6vw, var(--s-8)); align-items: center; }
.feature__media { order: 2; margin: 0; background: #111; aspect-ratio: 4 / 5; overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__copy { display: grid; gap: var(--s-4); justify-items: start; max-width: 520px; }
.feature__copy h2 { font-size: var(--fs-2xl); }
.feature__copy > p { font-size: var(--fs-lg); font-weight: 300; line-height: 1.5; color: var(--text-muted); }
.feature__list { width: 100%; margin-block: var(--s-2) var(--s-3); border-top: 1px solid var(--border); }
.feature__list li { display: flex; align-items: center; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--border); font-weight: 500; }
.feature__list li::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--ink); }
@media (max-width: 860px) {
	.feature__inner { grid-template-columns: 1fr; }
	.feature__media { order: 0; aspect-ratio: 1; margin-inline: calc(-1 * var(--gutter)); }
}

/* ---------- How it works (a real sequence, so it's numbered) ---------- */
.how__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--s-6); align-items: start; }
.how__title { font-size: var(--fs-xl); position: sticky; top: calc(var(--header-h) + var(--s-5)); }
.how__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); counter-reset: step; }
.how__steps li { counter-increment: step; display: grid; align-content: start; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--ink); }
.how__steps li::before { content: counter(step); font-size: clamp(3rem, 2rem + 3vw, 5rem); font-weight: 900; line-height: .9; letter-spacing: -0.04em; margin-bottom: var(--s-3); }
.how__steps h3 { font-size: var(--fs-lg); }
.how__steps p { color: var(--text-muted); font-size: var(--fs-sm); max-width: 32ch; }
@media (max-width: 960px) {
	.how__inner, .how__steps { grid-template-columns: 1fr; }
	.how__title { position: static; }
	.how__steps { gap: var(--s-4); }
	.how__steps li { grid-template-columns: 64px 1fr; column-gap: var(--s-3); }
	.how__steps li::before { grid-row: span 2; margin: 0; font-size: 3rem; }
}

/* ---------- About (read-more prose), on the same grid as "how it works" ---------- */
.about__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--s-4) var(--s-6); align-items: start; }
.about__title { font-size: var(--fs-xl); }
.about__body { grid-column: 2; max-width: 64ch; }
@media (max-width: 960px) { .about__inner { grid-template-columns: 1fr; } .about__body { grid-column: auto; } }
.readmore { display: grid; gap: var(--s-3); max-height: 9.5em; overflow: hidden; position: relative; }
.readmore::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4em; background: linear-gradient(transparent, var(--surface)); pointer-events: none; }
.readmore.is-open { max-height: none; }
.readmore.is-open::after { display: none; }
.readmore h3 { font-size: var(--fs-lg); margin-top: var(--s-2); }
.readmore p { color: var(--text-muted); }
.readmore__toggle { margin-top: var(--s-3); background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--surface-alt); padding-block: var(--s-7); }
.newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: center; }
.newsletter h2 { font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.newsletter p { color: var(--text-muted); }
.newsletter__form form { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.newsletter__form input[type="email"], .newsletter__form input[type="text"] { flex: 1; min-width: 200px; }
.newsletter__form input[type="submit"], .newsletter__form button { min-height: 50px; padding: 0 var(--s-5); background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 0; font-weight: 700; }
@media (max-width: 720px) { .newsletter__inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--paper); padding-top: var(--s-7); overflow: hidden; }
/* Tone-on-tone wordmark, like the gloss print on the black box; the bottom edge is cut off like a lid. */
.site-footer__mark {
	margin: var(--s-5) 0 -0.2em; padding-inline: var(--gutter);
	font-size: min(15.2vw, 13.5rem); font-weight: 900; line-height: .8; letter-spacing: 0.12em;
	text-align: center; text-indent: 0.12em; text-transform: uppercase; direction: ltr; white-space: nowrap;
	color: #171717; user-select: none;
}
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-5); padding-bottom: var(--s-7); }
.site-footer .logo { color: var(--paper); }
.site-footer__note { margin-top: var(--s-4); color: var(--night-mute); font-size: var(--fs-sm); max-width: 34ch; }
.site-footer nav h2 { font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0; line-height: 1.3; margin-bottom: var(--s-3); }
.site-footer nav li + li { margin-top: 4px; }
.site-footer nav a { display: inline-block; padding-block: 5px; font-size: var(--fs-sm); color: var(--night-mute); transition: color .15s; }
.site-footer nav a:hover { color: var(--paper); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); border-top: 1px solid var(--night-line); padding-block: var(--s-4); font-size: var(--fs-xs); color: var(--night-mute); }
.pay { display: flex; flex-wrap: wrap; gap: 6px; }
.pay li { border: 1px solid var(--night-line); padding: 3px 9px; font-weight: 500; direction: ltr; }
.socials { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-4); }
.socials a { display: inline-block; padding-block: 4px; font-size: var(--fs-sm); color: var(--night-mute); text-decoration: underline; text-underline-offset: 5px; }
.socials a:hover { color: var(--paper); }
@media (max-width: 720px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; row-gap: var(--s-6); }
	.site-footer__grid > div { grid-column: 1 / -1; }
}

/* ---------- Generic pages ---------- */
.page-head { padding-block: var(--s-7) var(--s-5); }
.page-body, .shop { padding-bottom: var(--section); }
.entry__title, .notfound h1, .shop-head h1 { font-size: var(--fs-2xl); }
.prose { max-width: 70ch; display: grid; gap: var(--s-3); }
.prose a { text-decoration: underline; text-underline-offset: 4px; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--s-4); }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--s-3); }
.prose ul { list-style: disc; padding-inline-start: 1.2em; }
.prose ol { list-style: decimal; padding-inline-start: 1.2em; }
/* FAQ: core "details" block renders as disclosure rows */
.prose details { border-bottom: 1px solid var(--border); }
.prose details:first-of-type { border-top: 1px solid var(--border); }
.prose summary { display: flex; justify-content: space-between; gap: var(--s-3); padding-block: 20px; font-weight: 700; cursor: pointer; list-style: none; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; font-weight: 300; font-size: 1.5em; line-height: .8; }
.prose details[open] summary::after { content: "−"; }
.prose details > :not(summary) { padding-bottom: 20px; color: var(--text-muted); }

/* Business details not filled in yet and open points in the legal pages (inc/business.php). */
mark.todo { background: #fff1a8; color: var(--ink); padding: 0 .25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.contact-form { display: grid; gap: var(--s-3); max-width: 560px; }
.contact-form label { display: grid; gap: var(--s-1); font-weight: 500; }
.contact-form .optional { color: var(--text-muted); font-weight: 400; }
.contact-form__hp { position: absolute; inset-inline-start: -9999px; }
.contact-form__note { font-size: var(--fs-xs); color: var(--text-muted); }
.contact-form .btn { justify-self: start; min-width: 180px; }
.notfound { display: grid; gap: var(--s-4); justify-items: start; padding-block: var(--s-8); }
.notfound .notfound__code { color: var(--text); font-size: clamp(6rem, 4rem + 12vw, 14rem); font-weight: 900; line-height: .8; letter-spacing: -0.06em; }
.notfound p { color: var(--text-muted); font-size: var(--fs-lg); }

/* ---------- Shop archive ---------- */
.shop-head { display: grid; gap: var(--s-4); padding-block: var(--s-6) var(--s-5); }
.shop-head__desc { color: var(--text-muted); max-width: 60ch; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid var(--line-strong); font-size: var(--fs-sm); font-weight: 500; transition: border-color .15s, background .15s, color .15s; }
.chips a:hover { border-color: var(--ink); }
.chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.shop-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-3); margin-bottom: var(--s-5); border-block: 1px solid var(--border); }
.woocommerce-result-count { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select { width: auto; min-width: 220px; min-height: 44px; }
.woocommerce-pagination { margin-top: var(--s-7); }
.woocommerce-pagination ul { display: flex; gap: var(--s-1); justify-content: center; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); font-weight: 500; }
.woocommerce-pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.woocommerce-info.woocommerce-no-products-found { margin-top: var(--s-5); }

/* ---------- Breadcrumb & notices ---------- */
.woocommerce-breadcrumb { padding-block: var(--s-4); font-size: var(--fs-xs); color: var(--text-muted); }
.woocommerce-breadcrumb a { display: inline-block; padding-block: 4px; }
.woocommerce-breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3);
	padding: var(--s-3) var(--s-4); margin: 0 0 var(--s-4); background: var(--stage);
	border-inline-start: 3px solid var(--ink); list-style: none; font-size: var(--fs-sm);
}
.woocommerce-message { border-color: var(--ok); }
.woocommerce-error { border-color: var(--sale); display: grid; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 40px; padding: 0 var(--s-4); }
.woocommerce-info a:not(.button) { text-decoration: underline; text-underline-offset: 4px; }
.woocommerce-store-notice { position: fixed; inset: auto 0 0; z-index: 90; margin: 0; padding: var(--s-3) var(--gutter); background: var(--ink); color: var(--paper); font-size: var(--fs-sm); }
.woocommerce-store-notice a { text-decoration: underline; margin-inline-start: var(--s-3); }

/* ---------- Single product ---------- */
.pdp .woocommerce-breadcrumb { padding-block: var(--s-4) var(--s-3); }
.pdp { padding-bottom: var(--section); }
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-4) clamp(var(--s-5), 5vw, var(--s-7)); align-items: start; }

.pdp-gallery { position: relative; }
.pdp-gallery__track { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pdp-gallery__item { margin: 0; aspect-ratio: 1; background: var(--stage); overflow: hidden; }
.pdp-gallery__item:first-child { grid-column: 1 / -1; }
.pdp-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.pdp-gallery__count { display: none; }

/* --summary-top comes from main.js: below the header, or negative when the column is taller than the
   window, so it scrolls until its end is in view and only then sticks. */
.single-product .summary { position: sticky; top: var(--summary-top, calc(var(--header-h) + var(--s-4))); display: grid; gap: var(--s-3); align-content: start; }
.pdp-label { justify-self: start; padding: 4px 10px; background: var(--ink); color: var(--paper); font-size: var(--fs-xs); font-weight: 500; }
.product_title { font-size: var(--fs-xl); }
.single-product .summary .price { font-size: var(--fs-lg); gap: var(--s-3); }
.pdp-save { margin-top: calc(-1 * var(--s-2)); font-size: var(--fs-sm); font-weight: 500; color: var(--sale); }
.single-product .woocommerce-product-details__short-description { color: var(--text-muted); font-size: var(--fs-md); }
.single-product .stock { font-size: var(--fs-sm); font-weight: 500; }
.single-product .stock.in-stock { color: var(--ok); }
.single-product .stock.out-of-stock { color: var(--sale); }
.single-product form.cart { display: flex; gap: var(--s-2); margin-top: var(--s-2); }
.single-product form.cart .single_add_to_cart_button { flex: 1; min-height: 56px; font-size: var(--fs-md); }
.single-product .woocommerce-product-rating { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--text-muted); }

/* Quantity stepper (buttons are added by main.js) */
.quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--line-input); background: var(--paper); flex: none; }
.quantity input.qty { width: 44px; min-height: 0; padding: 0; border: 0; box-shadow: none; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.quantity input.qty::-webkit-inner-spin-button, .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quantity:not(.has-stepper) input.qty { width: 72px; min-height: 54px; }
.qty-btn { width: 42px; min-height: 54px; padding: 0; background: none; border: 0; font-size: 1.25rem; font-weight: 300; line-height: 1; }
.qty-btn:hover { background: var(--stage); }
.quantity:focus-within { border-color: var(--ink); }

.pdp-trust { display: grid; gap: 10px; padding: var(--s-4) 0; margin-top: var(--s-2); border-top: 1px solid var(--border); }
.pdp-trust li { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); }
.pdp-trust .usp-icon { width: 24px; height: 24px; }

.pdp-details { border-top: 1px solid var(--border); }
.pdp-details__item { border-bottom: 1px solid var(--border); }
.pdp-details__item > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-block: 20px; font-weight: 700; cursor: pointer; list-style: none; }
.pdp-details__item > summary::-webkit-details-marker { display: none; }
.pdp-details__item > summary::after { content: ""; width: 12px; height: 12px; flex: none; background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; transition: transform .3s var(--ease); }
.pdp-details__item[open] > summary::after { transform: rotate(45deg); }
.pdp-details__body { display: grid; gap: var(--s-3); padding-bottom: var(--s-4); color: var(--text-muted); font-size: var(--fs-sm); }
.pdp-details__body > h2:first-child { display: none; }
.pdp-details__body ul { list-style: disc; padding-inline-start: 1.2em; display: grid; gap: 4px; }
.pdp-details__body table { width: 100%; border-collapse: collapse; }
.pdp-details__body th, .pdp-details__body td { padding: var(--s-2) 0; border-bottom: 1px solid var(--border); text-align: start; }

/* Reviews (inside the "reviews" row) */
.woocommerce-Reviews-title { display: none; }
.woocommerce-noreviews { margin-bottom: var(--s-2); }
.star-rating { position: relative; display: inline-block; width: 5.4em; height: 1em; overflow: hidden; line-height: 1; font-size: var(--fs-sm); letter-spacing: .1em; }
.star-rating::before { content: "★★★★★"; color: var(--line-strong); position: absolute; inset: 0; }
.star-rating span { position: absolute; top: 0; right: 0; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: "★★★★★"; color: var(--ink); position: absolute; top: 0; right: 0; }
.commentlist { display: grid; gap: var(--s-4); margin-bottom: var(--s-4); }
.commentlist .avatar { display: none; }
.commentlist .meta { font-size: var(--fs-xs); }
.comment-reply-title { display: block; font-size: var(--fs-md); font-weight: 700; color: var(--text); margin-bottom: var(--s-2); }
.comment-form { display: grid; gap: var(--s-3); }
.comment-form label { display: block; margin-bottom: var(--s-1); color: var(--text); }
.comment-form-cookies-consent { display: flex; gap: var(--s-2); align-items: center; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-form .form-submit input { min-height: 50px; padding: 0 var(--s-5); background: var(--ink); color: var(--paper); border: 0; border-radius: 0; font-weight: 700; cursor: pointer; }
p.stars { margin: 0; }
p.stars span { display: inline-flex; gap: 2px; }
p.stars a { font-size: 0; width: 28px; height: 28px; display: inline-block; position: relative; }
p.stars a::before { content: "★"; font-size: 26px; line-height: 28px; color: var(--line-strong); position: absolute; inset: 0; text-align: center; }
p.stars span:has(a:hover) a::before, p.stars.selected a::before { color: var(--ink); }
p.stars span:has(a:hover) a:hover ~ a::before, p.stars.selected:not(:has(a:hover)) a.active ~ a::before { color: var(--line-strong); }

.related, .upsells { padding-top: var(--section); border-top: 1px solid var(--border); margin-top: var(--s-7); }
.related > h2, .upsells > h2 { font-size: var(--fs-xl); margin-bottom: var(--s-5); }
.single-product .related ul.products { max-width: none; }

/* Mobile buy bar: appears once the main add-to-cart button scrolls away */
.buybar {
	position: fixed; inset: auto 0 0; z-index: 55;
	display: none; align-items: center; gap: var(--s-3);
	padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
	background: var(--surface); box-shadow: 0 -1px 0 var(--border);
	transform: translateY(100%); transition: transform .35s var(--ease);
}
.buybar.is-visible { transform: none; }
.buybar__info { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.buybar__info strong { font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .price { font-size: var(--fs-sm); }
.buybar .btn { min-height: 48px; padding-inline: var(--s-4); }

@media (max-width: 900px) {
	/* Phones: the add-to-cart button above the fold (no breadcrumb, a 5:4 photo row) */
	.pdp .woocommerce-breadcrumb { display: none; }
	.pdp-gallery__item { aspect-ratio: 5 / 4; }
	.single-product div.product { grid-template-columns: minmax(0, 1fr); }
	.single-product .summary { position: static; }
	.pdp-gallery { margin-inline: calc(-1 * var(--gutter)); }
	.pdp-gallery__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; grid-template-columns: none; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
	.pdp-gallery__track::-webkit-scrollbar { display: none; }
	.pdp-gallery__item { scroll-snap-align: center; }
	.pdp-gallery__item:first-child { grid-column: auto; }
	.pdp-gallery__count { display: block; position: absolute; inset: auto var(--gutter) var(--s-3) auto; padding: 3px 10px; background: var(--paper); font-size: var(--fs-xs); font-weight: 500; direction: ltr; }
	.buybar { display: flex; }
	.single-product .site-footer { padding-bottom: 72px; }
}

/* ---------- Cart drawer ---------- */
.drawer {
	position: fixed; inset: 0 auto 0 0; z-index: 100;
	width: min(440px, 100vw); max-width: none; height: 100%; max-height: none;
	margin: 0; padding: 0; border: 0;
	background: var(--surface);
	display: flex; flex-direction: column;
	transform: translateX(-100%); transition: transform .45s var(--ease), overlay .45s allow-discrete, display .45s allow-discrete;
}
.drawer:not([open]) { display: none; }
.drawer[open] { transform: none; }
@starting-style { .drawer[open] { transform: translateX(-100%); } }
.drawer::backdrop { background: rgb(0 0 0 / 0); transition: background .45s, overlay .45s allow-discrete, display .45s allow-discrete; }
.drawer[open]::backdrop { background: rgb(0 0 0 / .45); }
@starting-style { .drawer[open]::backdrop { background: rgb(0 0 0 / 0); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); height: var(--header-h); padding-inline: var(--s-4) var(--s-3); border-bottom: 1px solid var(--border); flex: none; }
.drawer__head h2 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
.drawer__body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.drawer .widget_shopping_cart_content { display: contents; }
.drawer .woocommerce-mini-cart, .drawer .woocommerce-mini-cart__empty-message { order: 1; }
.drawer__recs { order: 2; }
.drawer .woocommerce-mini-cart__total { order: 3; }
.drawer__note { order: 4; }
.drawer .woocommerce-mini-cart__buttons { order: 5; }
.drawer__empty { order: 6; }

.woocommerce-mini-cart { padding: var(--s-2) var(--s-4); }
.woocommerce-mini-cart-item { position: relative; display: grid; gap: 4px; padding-block: var(--s-4); padding-inline-end: 32px; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.woocommerce-mini-cart-item > a:not(.remove) { display: grid; grid-template-columns: 88px 1fr; align-items: start; column-gap: var(--s-3); font-weight: 700; font-size: var(--fs-md); line-height: 1.3; }
.woocommerce-mini-cart-item img { width: 88px; height: 88px; object-fit: cover; background: var(--stage); grid-row: span 3; }
.woocommerce-mini-cart-item .quantity { display: block; border: 0; background: none; margin-top: -56px; padding-inline-start: calc(88px + var(--s-3)); color: var(--text-muted); }
/* + / − stepper and line total, beside the photo (inc/cart.php, main.js) */
.mini-qty-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: -40px; padding-inline-start: calc(88px + var(--s-3)); }
.mini-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-input); }
.mini-qty__btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; background: none; border: 0; font-size: 1.125rem; font-weight: 300; line-height: 1; }
.mini-qty__btn:hover:not(:disabled) { background: var(--stage); }
.mini-qty__btn:disabled { color: var(--line-strong); cursor: default; }
.mini-qty__val { min-width: 28px; text-align: center; font-size: var(--fs-sm); font-weight: 700; }
.mini-qty__total { font-size: var(--fs-sm); font-weight: 700; }
.woocommerce-mini-cart-item .remove { position: absolute; top: var(--s-4); inset-inline-end: 0; display: grid; place-items: center; width: 28px; height: 28px; font-size: 1.25rem; line-height: 1; color: var(--text-muted); }
.woocommerce-mini-cart-item .remove:hover { color: var(--text); }
.woocommerce-mini-cart-item.loading { opacity: .4; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; align-items: baseline; padding: var(--s-4) var(--s-4) var(--s-2); border-top: 1px solid var(--border); font-size: var(--fs-md); margin-top: auto; }
.woocommerce-mini-cart__total strong { font-weight: 500; }
.woocommerce-mini-cart__total .amount { font-weight: 700; font-size: var(--fs-lg); }
.drawer__note { padding: 0 var(--s-4) var(--s-3); font-size: var(--fs-xs); color: var(--text-muted); }
.woocommerce-mini-cart__buttons { display: grid; gap: var(--s-2); padding: 0 var(--s-4) var(--s-4); margin: 0; }
.woocommerce-mini-cart__buttons .button { width: 100%; }
.woocommerce-mini-cart__buttons .checkout { order: -1; min-height: 56px; font-size: var(--fs-md); }
.woocommerce-mini-cart__buttons .button:not(.checkout) { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.woocommerce-mini-cart__buttons .button:not(.checkout):hover { border-color: var(--ink); }
.woocommerce-mini-cart__empty-message { padding: var(--s-6) var(--s-4) var(--s-3); font-size: var(--fs-lg); font-weight: 700; }
.drawer__empty { padding: 0 var(--s-4); }
.drawer__body:has(.woocommerce-mini-cart) .drawer__empty { display: none; }
.drawer__empty { padding-bottom: var(--s-4); }

/* "Add these too": other boxes that aren't in the cart yet */
.drawer__recs { padding: var(--s-4); }
.drawer__recs:empty { display: none; }
.drawer__recs h3 { margin-bottom: var(--s-2); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0; }
.rec { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: var(--s-3); padding-block: 10px; }
.rec + .rec { border-top: 1px solid var(--border); }
.rec img { width: 64px; height: 64px; object-fit: cover; background: var(--stage); }
.rec__name { display: block; padding-block: 2px; font-size: var(--fs-sm); font-weight: 700; line-height: 1.3; }
.rec .price { font-size: var(--fs-sm); font-weight: 500; }
.rec .button { min-height: 38px; padding: 0 14px; font-size: var(--fs-xs); background: transparent; color: var(--ink); border-color: var(--line-strong); --spin: var(--ink); }
.rec .button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Cart page ---------- */
.woocommerce-cart .store > .woocommerce { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: var(--s-5) clamp(var(--s-5), 4vw, var(--s-7)); align-items: start; }
.woocommerce-cart .store > .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-cart .store > .woocommerce > .cart-empty,
.woocommerce-cart .store > .woocommerce > .return-to-shop { grid-column: 1 / -1; }
table.shop_table { width: 100%; border-collapse: collapse; }
table.shop_table th, table.shop_table td { padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--border); text-align: start; vertical-align: middle; }
table.shop_table thead th { padding-top: 0; font-size: var(--fs-xs); font-weight: 500; color: var(--text-muted); }
.woocommerce-cart-form .product-thumbnail { width: 112px; }
.woocommerce-cart-form .product-thumbnail img { width: 96px; height: 96px; object-fit: cover; background: var(--stage); }
.woocommerce-cart-form .product-name a { font-weight: 700; }
.woocommerce-cart-form .product-remove { width: 36px; }
.woocommerce-cart-form .product-remove a { display: grid; place-items: center; width: 32px; height: 32px; font-size: 1.4rem; line-height: 1; color: var(--text-muted); }
.woocommerce-cart-form .product-remove a:hover { color: var(--text); }
.woocommerce-cart-form td.actions { border-bottom: 0; padding: var(--s-4) 0 0; }
.woocommerce-cart-form .coupon { display: flex; gap: var(--s-2); max-width: 440px; }
.woocommerce-cart-form .coupon input { flex: 1; min-width: 0; }
.woocommerce-cart-form [name="update_cart"] { margin-top: var(--s-3); }
.js .woocommerce-cart-form [name="update_cart"] { display: none; } /* quantities apply on change (main.js) */
.woocommerce-cart-form .coupon input { min-height: 50px; }
.woocommerce-cart-form .coupon .button, .woocommerce-cart-form [name="update_cart"] { background: transparent; color: var(--ink); border-color: var(--line-strong); white-space: nowrap; }
.woocommerce-cart-form .coupon .button:hover, .woocommerce-cart-form [name="update_cart"]:not(:disabled):hover { border-color: var(--ink); background: transparent; }
.cart-collaterals { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
.cart_totals { background: var(--stage); padding: var(--s-5) var(--s-4) var(--s-4); }
.cart_totals h2 { font-size: var(--fs-lg); margin-bottom: var(--s-3); }
.cart_totals table.shop_table th, .cart_totals table.shop_table td { padding-inline: 0; border-color: var(--line-strong); }
.cart_totals table.shop_table td { text-align: end; }
.cart_totals table.shop_table th { white-space: nowrap; }
.cart_totals .order-total th, .cart_totals .order-total td { font-size: var(--fs-lg); font-weight: 900; border-bottom: 0; }
.cart_totals .woocommerce-shipping-totals td, .cart_totals .woocommerce-shipping-totals th { font-size: var(--fs-sm); }
.cart_totals .woocommerce-shipping-methods li { margin-bottom: 4px; }
.wc-proceed-to-checkout { padding-top: var(--s-3); }
.checkout-button { width: 100%; min-height: 56px; font-size: var(--fs-md); }
.cart-empty.woocommerce-info { font-size: var(--fs-lg); font-weight: 700; background: none; border: 0; padding: var(--s-6) 0 var(--s-3); }
.return-to-shop { padding-bottom: var(--s-7); }
.cross-sells { margin-top: var(--s-5); }
.cross-sells > h2 { font-size: var(--fs-lg); margin-bottom: var(--s-3); }
@media (max-width: 900px) {
	.woocommerce-cart .store > .woocommerce { grid-template-columns: minmax(0, 1fr); }
	.cart-collaterals { position: static; }
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr { display: grid; grid-template-columns: 96px 1fr auto; column-gap: var(--s-3); padding-block: var(--s-3); border-bottom: 1px solid var(--border); }
	/* details run under the remove × too, so the stepper fits at 320px (WCAG 1.4.10); the name stays clear of the × */
	table.shop_table_responsive td { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); padding: 2px 0; border: 0; grid-column: 2 / -1; }
	table.shop_table_responsive td.product-name { grid-column: 2; }
	table.shop_table_responsive td::before { content: attr(data-title); font-size: var(--fs-xs); color: var(--text-muted); }
	table.shop_table_responsive td.product-thumbnail { grid-column: 1; grid-row: 1 / span 4; width: auto; }
	table.shop_table_responsive td.product-thumbnail::before, table.shop_table_responsive td.product-remove::before, table.shop_table_responsive td.product-name::before, table.shop_table_responsive td.actions::before { display: none; }
	table.shop_table_responsive td.product-remove { grid-column: 3; grid-row: 1; width: auto; align-self: start; }
	.woocommerce-cart-form tr:last-child { display: block; border: 0; }
	.woocommerce-cart-form td.actions { display: block; }
	.woocommerce-cart-form .coupon { max-width: none; }
	/* totals stay a plain two-column table */
	.cart_totals table.shop_table_responsive tr { display: table-row; padding: 0; border: 0; }
	.cart_totals table.shop_table_responsive td { display: table-cell; padding: var(--s-3) 0; border-bottom: 1px solid var(--line-strong); }
	.cart_totals table.shop_table_responsive .order-total td { border-bottom: 0; }
	.cart_totals table.shop_table_responsive td::before { display: none; }
}

/* ---------- Checkout ---------- */
.woocommerce-checkout .store > .woocommerce { display: grid; gap: var(--s-4); }
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 0 clamp(var(--s-5), 5vw, var(--s-7)); align-items: start; }
.woocommerce-checkout #customer_details, .woocommerce-checkout .woocommerce-NoticeGroup { grid-column: 1; }
.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; padding: var(--s-5) var(--s-4) 0; margin: 0; background: var(--stage); }
.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2 / span 3; padding: var(--s-3) var(--s-4) var(--s-4); background: var(--stage); position: sticky; top: calc(var(--header-h) + var(--s-4)); }
.woocommerce-checkout #customer_details { grid-row: 1 / span 3; }
.woocommerce-checkout .col2-set { display: grid; gap: var(--s-5); }
.checkout-step, #order_review_heading { display: flex; align-items: center; gap: 12px; font-size: var(--fs-lg); font-weight: 900; letter-spacing: -0.01em; margin-bottom: var(--s-4); }
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-3); }
.woocommerce-billing-fields__field-wrapper .form-row:not(.form-row-first):not(.form-row-last),
.woocommerce-shipping-fields__field-wrapper .form-row:not(.form-row-first):not(.form-row-last),
.woocommerce-address-fields__field-wrapper .form-row:not(.form-row-first):not(.form-row-last) { grid-column: 1 / -1; }
.form-row { margin: 0 0 var(--s-3); }
.form-row label { display: block; margin-bottom: 6px; }
.form-row .required { color: var(--sale); text-decoration: none; }
.form-row .optional { color: var(--text-muted); font-weight: 400; }
.woocommerce-input-wrapper { display: block; }
.form-row.woocommerce-invalid input, .form-row.woocommerce-invalid select { border-color: var(--sale); }
.select2-container .select2-selection--single { height: 50px; border: 1px solid var(--line-input); border-radius: 0; }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 48px; padding-inline: var(--s-3); }
.select2-container .select2-selection--single .select2-selection__arrow { height: 48px; }
.select2-dropdown { border-color: var(--ink); border-radius: 0; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--ink); }
#ship-to-different-address label { display: flex; gap: var(--s-2); align-items: center; font-size: var(--fs-md); font-weight: 700; }
.js #ship-to-different-address { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* driven by .recipient */
.woocommerce-checkout-review-order-table { margin-bottom: var(--s-4); }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding-inline: 0; border-color: var(--line-strong); }
.woocommerce-checkout-review-order-table .product-name { font-weight: 500; }
.review-item { display: inline-flex; align-items: center; gap: var(--s-3); vertical-align: middle; }
.review-item img { width: 56px; height: 56px; object-fit: cover; background: var(--paper); flex: none; }
.woocommerce-checkout-review-order-table .product-total, .woocommerce-checkout-review-order-table tfoot td { text-align: end; }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { font-size: var(--fs-lg); font-weight: 900; border-bottom: 0; }
#payment ul.payment_methods { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); padding: 0; }
#payment .wc_payment_method { padding: var(--s-3); background: var(--paper); border: 1px solid var(--line-strong); }
#payment .wc_payment_method > label { display: inline-flex; gap: var(--s-2); font-weight: 700; }
#payment .wc_payment_method > input { margin-inline-end: var(--s-2); vertical-align: middle; }
#payment .payment_box { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--s-2); }
#payment .payment_box p { margin: 0; }
/* The administrators' test payment (inc/class-novabox-test-gateway.php): what happens to the test order */
.novabox-test-pay { display: grid; gap: var(--s-2); margin: var(--s-3) 0 0; padding: 0; border: 0; }
.novabox-test-pay label { display: flex; gap: var(--s-2); align-items: flex-start; min-height: 24px; color: var(--ink); font-weight: 500; cursor: pointer; }
.novabox-test-pay input { margin-top: 3px; accent-color: var(--ink); }
.woocommerce-privacy-policy-text { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: var(--s-3); }
.woocommerce-privacy-policy-text a { text-decoration: underline; }
#place_order { width: 100%; min-height: 56px; font-size: var(--fs-md); }
.woocommerce-form-coupon-toggle .woocommerce-info { justify-content: flex-start; }
.checkout_coupon { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); padding: var(--s-4); border: 1px solid var(--border); }
.checkout_coupon p:first-child { width: 100%; font-size: var(--fs-sm); color: var(--text-muted); }
.checkout_coupon .form-row { margin: 0; }
.checkout_coupon .form-row-first { flex: 1; }
.tranzila-frame { width: 100%; max-width: 640px; margin-inline: auto; border: 1px solid var(--line); }
@media (max-width: 900px) {
	.woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-checkout #customer_details, .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; position: static; }
	.woocommerce-checkout #order_review_heading { margin-top: var(--s-5); }
}
@media (max-width: 600px) {
	.woocommerce-billing-fields__field-wrapper,
	.woocommerce-shipping-fields__field-wrapper,
	.woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr; }
}

/* ---------- Order received & account ---------- */
.woocommerce-order { display: grid; gap: var(--s-5); max-width: 860px; }
.woocommerce-thankyou-order-received { font-size: var(--fs-xl); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; }
.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.woocommerce-order-overview li { display: grid; gap: 2px; padding: var(--s-3); background: var(--surface); font-size: var(--fs-xs); color: var(--text-muted); }
.woocommerce-order-overview strong { font-size: var(--fs-md); color: var(--text); }
.woocommerce-order-details h2, .woocommerce-customer-details h2, .woocommerce-column__title { font-size: var(--fs-lg); margin-bottom: var(--s-3); }
.woocommerce-customer-details address { font-style: normal; padding: var(--s-4); border: 1px solid var(--border); }

.woocommerce-account .store > .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.woocommerce-MyAccount-navigation ul { display: grid; border-top: 1px solid var(--border); }
.woocommerce-MyAccount-navigation a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.woocommerce-MyAccount-navigation .is-active a { font-weight: 900; }
.woocommerce-MyAccount-content { display: grid; gap: var(--s-3); }
.woocommerce-MyAccount-content a:not(.button) { text-decoration: underline; text-underline-offset: 4px; }
.woocommerce-account:not(.logged-in) .store > .woocommerce, .woocommerce-account .store > .woocommerce:has(> .u-columns), .woocommerce-account .store > .woocommerce:has(> .woocommerce-form-login) { grid-template-columns: minmax(0, 1fr); }
.u-columns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.u-columns h2 { font-size: var(--fs-lg); margin-bottom: var(--s-3); }
.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword { display: grid; gap: var(--s-1); max-width: 480px; }
.woocommerce-form-login__rememberme { display: inline-flex; gap: var(--s-2); align-items: center; margin-inline-end: var(--s-3); font-weight: 400; }
.woocommerce-form-login .button, .woocommerce-form-register .button { margin-top: var(--s-2); }
.password-input { position: relative; display: block; }
.password-input input { padding-inline-end: 52px; }
.show-password-input {
	position: absolute; top: 50%; inset-inline-end: 6px; translate: 0 -50%; width: 40px; height: 40px; padding: 0; border: 0; cursor: pointer;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='22' height='22' fill='none' stroke='%23141414' stroke-width='1.6'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center no-repeat;
}
.show-password-input.display-password { opacity: .5; }
.lost_password a { display: inline-block; padding-block: 4px; font-size: var(--fs-sm); text-decoration: underline; }
@media (max-width: 760px) {
	.woocommerce-account .store > .woocommerce, .u-columns { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   3.3 additions: support links, size switcher, box comparison, gift checkout,
   contact layout. See docs/design/ux-audit.md (A-xx) and Figma "Screens — Proposed".
   ========================================================================== */

/* ---------- Phone and WhatsApp support (inc/business.php novabox_support_links) ---------- */
.support-links { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.support-link {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
	min-height: 46px; padding: 0 var(--s-4); border: 1px solid var(--line-input); background: var(--paper); color: var(--ink);
	font-size: var(--fs-sm); font-weight: 700; transition: border-color .15s, background .15s, color .15s;
}
.support-link:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.support-link svg { width: 20px; height: 20px; flex: none; }
.support-link__number { font-weight: 500; white-space: nowrap; }
/* Side by side when they fit, otherwise each takes the full row (the number never breaks). */
.support-links--nav .support-link, .support-links--contact .support-link, .support-links--checkout .support-link, .support-links--pdp .support-link { flex: 1 1 auto; }
.site-footer .support-link { background: transparent; border-color: var(--night-line); color: var(--paper); min-height: 44px; }
.site-footer .support-link:hover { background: var(--paper); color: var(--ink); }
.site-footer__contact { display: grid; gap: var(--s-2); justify-items: start; margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--night-mute); }
.site-footer__contact a[dir="ltr"] { display: inline-block; padding-block: 4px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Product page: size switcher and help ---------- */
.tiers { display: grid; gap: var(--s-2); }
.tiers__label { font-size: var(--fs-xs); font-weight: 500; color: var(--text-muted); }
/* Up to four sizes share one row equally, so they don't wrap on small phones */
.tiers .chips:not(:has(> :nth-child(5))) { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.tiers .chips a { justify-content: center; padding: 0 var(--s-2); white-space: nowrap; }
.pdp-help { display: grid; gap: var(--s-2); padding-bottom: var(--s-4); font-size: var(--fs-sm); font-weight: 700; }
.pdp-help .support-link { min-height: 44px; }

/* ---------- Home: box comparison ---------- */
.compare__head { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); }
.compare__head h2 { font-size: var(--fs-xl); }
.compare__head p { font-size: var(--fs-lg); font-weight: 300; color: var(--text-muted); max-width: 60ch; }
/* Columns share rows (subgrid), so names, prices and each row line up across the boxes. */
.compare__grid {
	display: grid; gap: 0 var(--s-4);
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
	grid-template-rows: repeat(6, auto);
	max-width: calc(var(--cols, 3) * 480px); margin-inline: auto;
}
.compare__col {
	display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0;
	background: var(--paper); box-shadow: inset 0 0 0 1px var(--border);
}
.compare__col.is-featured { box-shadow: inset 0 0 0 2px var(--ink); }
.compare__flag { min-height: 0; font-size: var(--fs-xs); font-weight: 500; text-align: center; }
.compare__col.is-featured .compare__flag:not(:empty) { padding-block: 8px; background: var(--ink); color: var(--paper); }
.compare__media { display: block; aspect-ratio: 5 / 3; overflow: hidden; background: var(--stage); margin: 2px 2px 0; }
.compare__media img { width: 100%; height: 100%; object-fit: cover; }
.compare__name { padding: var(--s-4) var(--s-4) 0; font-size: var(--fs-lg); }
.compare__col > .price { padding: 4px var(--s-4) var(--s-3); }
.compare__rows { margin: 0 var(--s-4); }
.compare__rows div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding-block: 12px; border-top: 1px solid var(--border); }
.compare__rows dt { font-size: var(--fs-sm); color: var(--text-muted); }
.compare__rows dd { margin: 0; font-size: var(--fs-sm); font-weight: 500; text-align: end; }
.compare__rows .compare__big { font-size: 2rem; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.compare__col > .btn { width: auto; margin: var(--s-3) var(--s-4) var(--s-4); align-self: end; }
@media (max-width: 720px) {
	/* Phones: the boxes stay side by side as a compact table; labels sit above values. */
	.compare__grid { gap: 0 var(--s-2); }
	.compare__grid:has(.compare__col:nth-child(4)) { grid-template-columns: repeat(var(--cols), minmax(140px, 1fr)); overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
	.compare__media { aspect-ratio: 1; }
	.compare__name { padding: var(--s-2) var(--s-2) 0; font-size: var(--fs-md); text-align: center; }
	.compare__col > .price { padding: 2px var(--s-2) var(--s-2); flex-direction: column; align-items: center; gap: 0; font-size: var(--fs-sm); }
	.compare__rows { margin: 0 var(--s-2); }
	.compare__rows div { flex-direction: column; align-items: center; gap: 2px; text-align: center; padding-block: 10px; }
	.compare__rows dt { font-size: var(--fs-xs); }
	.compare__rows dd { font-size: var(--fs-xs); text-align: center; }
	.compare__rows .compare__big { font-size: 1.5rem; }
	.compare__col > .btn { margin: var(--s-2); min-height: 44px; padding-inline: var(--s-2); font-size: var(--fs-xs); }
}

/* ---------- Checkout ---------- */
.woocommerce-checkout form.checkout { counter-reset: step; }
.checkout-step::before, #order_review_heading::before {
	counter-increment: step; content: counter(step);
	display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px;
	background: var(--ink); color: var(--paper); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0;
}
.woocommerce-shipping-fields, .woocommerce-additional-fields { margin-top: var(--s-6); }
.checkout-hint { margin: calc(-1 * var(--s-2)) 0 var(--s-4); font-size: var(--fs-sm); color: var(--text-muted); }
.nb-subhead { margin: var(--s-3) 0 var(--s-3); font-size: var(--fs-md); font-weight: 700; letter-spacing: 0; }
.nb-country { display: none !important; } /* Israel only: the country is fixed */
.form-row .description { display: block; margin-top: 4px; font-size: var(--fs-xs); color: var(--text-muted); }
/* Gift: the box goes to the recipient's address, so the buyer's own address is hidden (and optional) */
.is-gift .woocommerce-billing-fields .nb-address { display: none; }

/* "To me / to someone else" — two options driving WooCommerce's ship-to-different-address checkbox */
html:not(.js) .recipient { display: none; }
.recipient { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 var(--s-4); padding: 0; border: 1px solid var(--ink); }
.recipient__option { position: relative; display: grid; place-items: center; min-height: 52px; padding: 0 var(--s-3); font-size: var(--fs-sm); font-weight: 700; text-align: center; cursor: pointer; transition: background .15s, color .15s; }
.recipient__option + .recipient__option { border-inline-start: 1px solid var(--ink); }
.recipient__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.recipient__option:has(input:checked) { background: var(--ink); color: var(--paper); }
.recipient__option:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.shipping_address .woocommerce-shipping-fields__field-wrapper { margin-top: var(--s-2); }

/* Card message counter (main.js) */
.nb-card .woocommerce-input-wrapper { display: grid; }
.nb-counter { justify-self: end; margin-top: 4px; font-size: var(--fs-xs); color: var(--text-muted); direction: ltr; }
.nb-counter.is-near { color: var(--sale); }

/* Phones: order total at the top (opens to the items) */
.checkout-summary { display: none; }
@media (max-width: 900px) {
	.checkout-summary { display: block; margin: 0 calc(-1 * var(--gutter)) var(--s-4); background: var(--stage); border-block: 1px solid var(--border); }
	.checkout-summary summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); min-height: 56px; padding: 0 var(--gutter); cursor: pointer; list-style: none; font-size: var(--fs-sm); font-weight: 700; }
	.checkout-summary summary::-webkit-details-marker { display: none; }
	.checkout-summary__label { display: inline-flex; align-items: center; gap: var(--s-2); }
	.checkout-summary__label::before { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
	.checkout-summary[open] .checkout-summary__label::before { transform: rotate(-135deg); }
	.checkout-summary__count { font-weight: 400; color: var(--text-muted); }
	.checkout-summary__total { font-size: var(--fs-md); }
	.checkout-summary__items { display: grid; gap: var(--s-3); padding: 0 var(--gutter) var(--s-4); }
	.checkout-summary__items li { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); }
	.checkout-summary__items img { width: 48px; height: 48px; object-fit: cover; background: var(--paper); }
	.woocommerce-checkout .page-head { padding-block: var(--s-5) var(--s-3); }
}

/* Next to the pay button */
.checkout-secure { display: grid; gap: var(--s-3); margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--text-muted); }
.checkout-secure__note { display: flex; gap: var(--s-2); align-items: flex-start; }
.checkout-secure__note svg { width: 18px; height: 18px; flex: none; color: var(--ink); }
.pay--light li { border-color: var(--line-input); color: var(--text-muted); }
.checkout-secure__help { display: grid; gap: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line-strong); font-weight: 700; color: var(--text); }

/* Focused header on checkout and the payment page */
.site-header--focused .site-header__inner { grid-template-columns: 1fr auto 1fr; }
.site-header--focused .logo, .site-header--focused .custom-logo-link { justify-self: center; grid-column: 2; }
.focused-back { justify-self: start; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); }
.focused-back:hover { color: var(--text); }
.focused-back svg, .focused-secure svg { width: 18px; height: 18px; flex: none; }
.focused-secure { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; }
@media (max-width: 480px) { .focused-secure span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- Contact page: form with a phone/WhatsApp panel ---------- */
.contact-layout { display: grid; gap: var(--s-5); }
.contact-layout__aside { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5) var(--s-4); background: var(--stage); }
.contact-layout__aside h3 { font-size: var(--fs-lg); margin: 0; }
.contact-layout__aside p { color: var(--text-muted); }
@media (min-width: 901px) {
	/* Wider than the 70ch text column: the panel fills the empty half of the page. */
	.contact-layout.has-aside { grid-template-columns: minmax(0, 560px) minmax(260px, 380px); width: min(calc(100vw - 2 * var(--gutter)), 1040px); gap: var(--s-7); }
	.contact-layout.has-aside .contact-layout__aside { grid-column: 2; grid-row: 1; align-self: start; position: sticky; top: calc(var(--header-h) + var(--s-4)); }
}

/* ---------- Order received / account order view ---------- */
.order-help { display: grid; gap: var(--s-2); justify-items: start; padding: var(--s-4); background: var(--stage); font-weight: 700; }
.order-card { display: grid; gap: var(--s-2); }
.order-card h2 { font-size: var(--fs-lg); }
.order-card p { padding: var(--s-4); border: 1px solid var(--border); white-space: pre-line; }
