/*
 * Candy Store — Design System v1 (see docs/DESIGN-SYSTEM.md)
 * Loaded after the Elessi parent and child styles. RTL-first; new rules use logical properties.
 */

:root {
	--cs-pink: #e92787;
	--cs-pink-strong: #d0156f;
	--cs-pink-deep: #a80e57;
	--cs-pink-tint: #fff1f7;
	--cs-ink: #1c1b3a;
	--cs-ink-2: #4a4960;
	--cs-muted: #6b6a80;
	--cs-line: #eceaf2;
	--cs-surface: #fff;
	--cs-surface-2: #faf8fc;
	--cs-sky: #0a6fa3;
	--cs-sun: #ffc93c;
	--cs-mint: #157a4b;
	--cs-whatsapp: #1e7f4e;
	--cs-danger: #b3261e;

	--cs-r-sm: 8px;
	--cs-r-md: 14px;
	--cs-r-lg: 24px;
	--cs-shadow-1: 0 1px 2px rgb(28 27 58 / 6%), 0 2px 8px rgb(28 27 58 / 6%);
	--cs-shadow-2: 0 8px 24px rgb(28 27 58 / 10%);
	--cs-ease: 180ms cubic-bezier(.2, .7, .2, 1);

	--cs-fs-h1: clamp(28px, 2.2vw + 20px, 44px);
	--cs-fs-h2: clamp(22px, 1.4vw + 16px, 32px);
	--cs-fs-h3: clamp(18px, .5vw + 16px, 22px);
}

/* ---------- Base ---------- */

html, body { overflow-x: clip; } /* no sideways scroll on narrow phones */

body {
	color: var(--cs-ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, .h1 { font-size: var(--cs-fs-h1); line-height: 1.15; font-weight: 700; color: var(--cs-ink); }
h2, .h2 { font-size: var(--cs-fs-h2); line-height: 1.2; font-weight: 700; color: var(--cs-ink); }
h3, .h3 { font-size: var(--cs-fs-h3); line-height: 1.3; font-weight: 600; color: var(--cs-ink); }

a { color: inherit; transition: color var(--cs-ease); }
.entry-content a:not(.button),
.woocommerce-info a,
.woocommerce-message a { color: var(--cs-pink-strong); text-underline-offset: 3px; }

img { max-width: 100%; height: auto; }

/* ---------- Focus (WCAG 2.4.7 / 2.4.11) ---------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--cs-sky) !important;
	outline-offset: 2px;
	border-radius: var(--cs-r-sm);
}

/* ---------- Buttons ---------- */

.button,
button.button,
input[type="submit"],
.woocommerce .button,
.single_add_to_cart_button,
.checkout-button,
#place_order {
	min-height: 48px;
	padding-inline: 20px;
	border-radius: var(--cs-r-md) !important;
	font-weight: 600;
	letter-spacing: 0;
	transition: background-color var(--cs-ease), box-shadow var(--cs-ease), transform var(--cs-ease);
}

.single_add_to_cart_button,
.checkout-button,
#place_order,
.products .add-to-cart-grid.button,
.woocommerce .button.alt {
	background-color: var(--cs-pink-strong) !important;
	border-color: var(--cs-pink-strong) !important;
	color: #fff !important;
}

.single_add_to_cart_button:hover,
.checkout-button:hover,
#place_order:hover,
.products .add-to-cart-grid.button:hover,
.woocommerce .button.alt:hover {
	background-color: var(--cs-pink-deep) !important;
	border-color: var(--cs-pink-deep) !important;
}

.button:disabled,
.button.disabled,
.single_add_to_cart_button.disabled {
	opacity: .45;
	cursor: not-allowed;
}

/* ---------- Product cards ---------- */

.products .product-warp-item { display: flex; }

.products .product-warp-item > .product-item {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: var(--cs-surface);
	border: 1px solid var(--cs-line);
	border-radius: var(--cs-r-md);
	box-shadow: var(--cs-shadow-1);
	overflow: hidden;
	transition: box-shadow var(--cs-ease), border-color var(--cs-ease);
}

.products .product-warp-item > .product-item:hover {
	box-shadow: var(--cs-shadow-2);
	border-color: #e2dfeb;
}

.products .product-item .product-img-wrap {
	aspect-ratio: 1 / 1;
	background: #fff;
}

.products .product-item .product-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.products .product-item .product-info-wrap {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 6px;
	padding: 12px 14px 14px;
}

.products .product-item .name,
.products .product-item .woocommerce-loop-product__title {
	font-size: 15px;
	line-height: 1.4;
	font-weight: 500;
	color: var(--cs-ink);
	display: -webkit-box !important; /* theme's .nasa-show-one-line sets flow-root */
	max-height: 2.8em;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	white-space: normal !important; /* the theme forces one line + ellipsis */
	text-overflow: clip !important;
	min-height: 2.8em;
}

.products .product-item .name a,
.products .product-item .woocommerce-loop-product__title a {
	display: inline !important;
	white-space: normal !important;
	text-overflow: clip !important;
}

.products .product-item .price,
.single-product .product .summary .price {
	color: var(--cs-ink);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.products .product-item .price { font-size: 18px; margin-top: auto; }

.products .product-item .add-to-cart-grid.button {
	width: 100%;
	justify-content: center;
}

/*
 * Product grid. The theme's float grid rendered ONE product per row on phones and at ~1024px
 * (full-width cards). CSS grid: 2 per row on phones, then as many ~230px columns as fit.
 */
ul.products.grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 20px;
	margin-inline: 0 !important;
}

ul.products.grid::before,
ul.products.grid::after { content: none !important; } /* float clearfix pseudo-elements */

ul.products.grid > li.product-warp-item {
	width: auto !important;
	max-width: none !important;
	padding: 0 !important;
	float: none !important;
	margin: 0 !important;
}

@media (max-width: 767px) {
	ul.products.grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.products .product-item .product-info-wrap { padding: 10px; gap: 4px; }
	.products .product-item .name,
	.products .product-item .woocommerce-loop-product__title { font-size: 14px; }
	.products .product-item .price { font-size: 16px; }
	.products .product-item .add-to-cart-grid.button { min-height: 44px; padding-inline: 8px; font-size: 14px; }
}

/* ---------- Badges ---------- */

.onsale,
.badge-sale,
.nasa-badge.sale-label {
	background: var(--cs-sun) !important;
	color: var(--cs-ink) !important;
	border-radius: 999px !important;
	font-weight: 700;
}

.out-of-stock-label,
.nasa-badge.out-of-stock-label {
	background: var(--cs-ink-2) !important;
	color: #fff !important;
	border-radius: 999px !important;
}

/* ---------- Forms ---------- */

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="password"], input[type="search"], select, textarea {
	min-height: 48px;
	border: 1.5px solid #d9d6e3;
	border-radius: var(--cs-r-sm);
	color: var(--cs-ink);
	background-color: #fff;
}

input:focus, select:focus, textarea:focus { border-color: var(--cs-sky); }

.woocommerce-invalid input,
.woocommerce-invalid select { border-color: var(--cs-danger) !important; }

.woocommerce-error {
	border-inline-start: 4px solid var(--cs-danger);
	background: #fff5f5;
	color: var(--cs-ink);
}

/* ---------- Touch targets (WCAG 2.5.8) ---------- */

.nasa-header-icons-wrap a,
.header-icons a,
.nasa-bottom-bar a,
.nasa-mobile-bottom-bar a {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Home sections (inc/home-sections.php) ---------- */

.cs-container { max-width: 1320px; margin-inline: auto; padding-inline: 16px; }

.cs-eyebrow {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--cs-pink-strong);
	letter-spacing: .02em;
}
.cs-eyebrow--sky { color: var(--cs-sky); }

.cs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: var(--cs-r-md);
	border: 1.5px solid transparent;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none !important;
	transition: background-color var(--cs-ease), border-color var(--cs-ease), color var(--cs-ease);
}
.cs-btn--primary { background: var(--cs-pink-strong); color: #fff !important; }
.cs-btn--primary:hover { background: var(--cs-pink-deep); }
.cs-btn--b2b { background: var(--cs-sky); color: #fff !important; }
.cs-btn--b2b:hover { background: #085a85; }
.cs-btn--ghost { background: #fff; color: var(--cs-ink) !important; border-color: #d9d6e3; }
.cs-btn--ghost:hover { border-color: var(--cs-ink); }

.cs-home-intro {
	padding: 28px 0 24px;
	background:
		radial-gradient(1200px 300px at 100% 0, var(--cs-pink-tint), transparent 70%),
		var(--cs-surface);
	border-bottom: 1px solid var(--cs-line);
}
.cs-home-title { margin: 0 0 10px; max-width: 22ch; }
.cs-home-lead { margin: 0 0 20px; max-width: 60ch; font-size: 17px; line-height: 1.6; color: var(--cs-ink-2); }
.cs-home-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.cs-trust {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 10px 20px;
}
.cs-trust li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--cs-ink);
}
.cs-trust .cs-icon { flex: none; color: var(--cs-pink-strong); }

.cs-b2b {
	margin-top: 48px;
	padding: 48px 0;
	background: linear-gradient(180deg, #f2f8fc, #fff);
	border-top: 1px solid var(--cs-line);
}
.cs-b2b__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cs-b2b h2 { margin: 0 0 12px; }
.cs-b2b p { color: var(--cs-ink-2); line-height: 1.7; }
.cs-checklist { list-style: none; margin: 16px 0 24px; padding: 0; display: grid; gap: 10px; }
.cs-checklist li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.cs-checklist .cs-icon { flex: none; color: var(--cs-mint); margin-top: 1px; }
.cs-b2b__card {
	background: #fff;
	border: 1px solid var(--cs-line);
	border-radius: var(--cs-r-lg);
	box-shadow: var(--cs-shadow-1);
	padding: 24px;
}
.cs-b2b__card-title { margin: 0 0 12px; font-weight: 600; color: var(--cs-ink); }
.cs-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-chips li {
	margin: 0;
	padding: 8px 14px;
	border-radius: 999px;
	background: #eaf4fa;
	color: var(--cs-ink);
	font-size: 15px;
	font-weight: 500;
}

@media (max-width: 767px) {
	.cs-home-intro { padding: 20px 0 18px; }
	.cs-home-lead { font-size: 16px; }
	.cs-home-ctas .cs-btn { flex: 1 1 100%; }
	.cs-trust { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
	.cs-trust li { font-size: 14px; align-items: flex-start; }
	.cs-b2b { padding: 32px 0; margin-top: 32px; }
	.cs-b2b__grid { grid-template-columns: 1fr; gap: 20px; }
}
.cs-hours { margin: 12px 0 0; font-size: 15px; color: var(--cs-ink-2); }

/* ---------- Accessibility (WCAG 2.2 AA) ---------- */

/* 2.5.8 Target size: card icon buttons (wishlist / compare) — 44px and apart. */
.products .nasa-group-btns { display: flex; flex-direction: column; gap: 6px; }
.products .nasa-group-btns > a {
	width: 44px !important;
	height: 44px !important;
	min-width: 44px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background: rgb(255 255 255 / 92%);
	border-radius: 999px;
	color: var(--cs-ink) !important;
}

/* 1.4.3 Contrast: product tabs ("המובילים שלנו") — inactive tabs were light grey. */
.nasa-tabs .nasa-a-tab,
.nasa-tabs .nasa-a-tab * { color: var(--cs-ink-2) !important; }
.nasa-tabs .active .nasa-a-tab,
.nasa-tabs .active .nasa-a-tab *,
.nasa-tabs .nasa-a-tab:hover,
.nasa-tabs .nasa-a-tab:hover * { color: var(--cs-ink) !important; }

/* 1.4.3 Contrast: white menu text on the pink nav bar was 3.5:1 — use the AA brand pink (5.2:1). */
.nasa-bg-wrap,
.nasa-wrap-width-main-menu.nasa-bg-wrap,
.wide-nav.nasa-bg-wrap,
.nasa-elements-wrap-main-menu { background-color: var(--cs-pink-strong) !important; }
.nasa-bg-wrap .nasa-vertical-header,
.nasa-bg-wrap .vertical-menu-container .nasa-title-vertical-menu { background-color: var(--cs-pink-deep) !important; }
/* Visually hidden search submit still needs readable colours for assistive tech / forced colours. */
.nasa-submit-search.hidden-tag { color: #fff !important; background-color: var(--cs-pink-strong) !important; border-color: var(--cs-pink-strong) !important; }

/* Shipping page price table */
.cs-shipping-table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 16px; }
.cs-shipping-table th, .cs-shipping-table td { padding: 12px 14px; border-bottom: 1px solid var(--cs-line); text-align: start; }
.cs-shipping-table thead th { background: var(--cs-pink-tint); color: var(--cs-ink); font-weight: 600; }
.cs-shipping-table tbody tr:nth-child(even) { background: var(--cs-surface-2); }
@media (max-width: 480px) { .cs-shipping-table { font-size: 14px; } .cs-shipping-table th, .cs-shipping-table td { padding: 10px 8px; } }

/* ---------- Cookie consent (inc/consent.php) ---------- */
.cs-consent[hidden] { display: none !important; }
.cs-consent {
	position: fixed;
	inset-inline: 12px;
	bottom: 12px;
	z-index: 100000;
	display: flex;
	justify-content: center;
}
.cs-consent__box {
	width: min(760px, 100%);
	background: #fff;
	color: var(--cs-ink);
	border: 1px solid var(--cs-line);
	border-radius: var(--cs-r-lg);
	box-shadow: 0 12px 40px rgb(28 27 58 / 22%);
	padding: 18px 20px;
	max-height: 80vh;
	overflow: auto;
}
.cs-consent__title { font-size: 18px; margin: 0 0 6px; }
.cs-consent__text { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--cs-ink-2); }
.cs-consent__text a { color: var(--cs-pink-strong); text-decoration: underline; }
.cs-consent__prefs fieldset { border: 0; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.cs-consent__opt { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.cs-consent__opt input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--cs-pink-strong); }
.cs-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-consent__actions .cs-btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
@media (max-width: 767px) {
	.cs-consent { bottom: 70px; } /* above the mobile bottom bar */
	.cs-consent__actions .cs-btn { flex: 1 1 calc(50% - 5px); }
}

/* =====================================================================
   UI v2 demo (inc/ui-v2.php) — visible only where candystore_ui_v2 is on
   Visual language: calm white UI, colour from real product photos,
   "sprinkle" dot texture, rounded jar tiles, ink-navy type, AA pink.
   ===================================================================== */

.cs-ui-v2 { --cs-tint-0: #fff1f7; --cs-tint-1: #eaf4fa; --cs-tint-2: #fff6dc; --cs-tint-3: #e9f7ef; }

.cs-v2 .cs-section { padding: 56px 0; }
.cs-v2 .cs-section--tint { background: var(--cs-surface-2); }
.cs-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.cs-section__head h2 { margin: 0; }
.cs-section__title-center { text-align: center; margin: 0 0 24px; }
.cs-link-arrow { color: var(--cs-pink-strong) !important; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cs-link-arrow::after { content: " \2190"; }
.cs-link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.cs-hero {
	position: relative;
	overflow: hidden;
	padding: 48px 0 40px;
	background:
		radial-gradient(circle at 12% 18%, #ffd0e6 0 5px, transparent 6px),
		radial-gradient(circle at 26% 72%, #bfe3f5 0 4px, transparent 5px),
		radial-gradient(circle at 42% 30%, #ffe39a 0 4px, transparent 5px),
		radial-gradient(circle at 8% 88%, #c7ecd6 0 5px, transparent 6px),
		radial-gradient(circle at 36% 92%, #ffd0e6 0 3px, transparent 4px),
		linear-gradient(135deg, #fff7fb 0%, #fdf1f7 45%, #f3f8fc 100%);
}
.cs-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.cs-hero__title { margin: 0 0 14px; font-size: clamp(32px, 3.2vw + 16px, 56px); line-height: 1.08; letter-spacing: -.01em; }
.cs-hero__accent { color: var(--cs-pink-strong); display: block; }
.cs-hero__lead { margin: 0 0 22px; font-size: 18px; line-height: 1.6; color: var(--cs-ink-2); max-width: 46ch; }
.cs-hero__search {
	display: flex;
	gap: 8px;
	padding: 6px;
	margin: 0 0 16px;
	max-width: 560px;
	background: #fff;
	border: 1.5px solid #e6e1ee;
	border-radius: 18px;
	box-shadow: var(--cs-shadow-1);
}
.cs-hero__search input[type="search"] {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	border: 0 !important;
	background: transparent;
	font-size: 17px;
	padding-inline: 12px;
	box-shadow: none !important;
}
.cs-hero__search:focus-within { border-color: var(--cs-sky); }
.cs-hero__jar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cs-hero__tile {
	aspect-ratio: 1;
	background: #fff;
	border-radius: 28px;
	box-shadow: 0 10px 30px rgb(28 27 58 / 10%);
	display: grid;
	place-items: center;
	padding: 14px;
}
.cs-hero__tile img { width: 100%; height: 100%; object-fit: contain; }
.cs-hero__tile--0 { transform: rotate(-3deg); background: var(--cs-tint-0); }
.cs-hero__tile--1 { transform: rotate(2deg) translateY(18px); background: var(--cs-tint-1); }
.cs-hero__tile--2 { transform: rotate(2deg); background: var(--cs-tint-2); }
.cs-hero__tile--3 { transform: rotate(-2deg) translateY(18px); background: var(--cs-tint-3); }

.cs-v2 > .cs-trust { padding: 18px 16px; margin: 0 auto; border-bottom: 1px solid var(--cs-line); }

/* Category grid */
.cs-cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cs-cat { margin: 0; }
.cs-cat a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 18px 12px 16px;
	border-radius: var(--cs-r-lg);
	text-decoration: none !important;
	color: var(--cs-ink) !important;
	transition: transform var(--cs-ease), box-shadow var(--cs-ease);
}
.cs-cat--tint-0 a { background: var(--cs-tint-0); }
.cs-cat--tint-1 a { background: var(--cs-tint-1); }
.cs-cat--tint-2 a { background: var(--cs-tint-2); }
.cs-cat--tint-3 a { background: var(--cs-tint-3); }
.cs-cat a:hover { transform: translateY(-3px); box-shadow: var(--cs-shadow-2); }
.cs-cat__img { width: 120px; height: 120px; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 12px; box-shadow: var(--cs-shadow-1); }
.cs-cat__img img { width: 100%; height: 100%; object-fit: contain; }
.cs-cat__name { font-weight: 700; font-size: 17px; margin-top: 6px; text-align: center; }
.cs-cat__count { font-size: 14px; color: var(--cs-ink-2); }

/* Unit / carton choice */
.cs-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
.cs-choice__card { background: #fff; border: 1px solid var(--cs-line); border-radius: var(--cs-r-lg); padding: 24px; box-shadow: var(--cs-shadow-1); }
.cs-choice__card .cs-icon { width: 34px; height: 34px; color: var(--cs-pink-strong); }
.cs-choice__card--carton .cs-icon { color: var(--cs-sky); }
.cs-choice__card h3 { margin: 10px 0 6px; }
.cs-choice__card p { margin: 0; color: var(--cs-ink-2); line-height: 1.6; }

/* Unit / carton price pair on product cards */
.cs-price-pair { display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.cs-price-pair__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 16px; font-weight: 700; color: var(--cs-ink); }
.cs-price-pair__row--carton { font-size: 14px; font-weight: 600; color: var(--cs-ink-2); }
.cs-price-pair__label { font-weight: 500; font-size: 13px; color: var(--cs-ink-2); }

/* Service area */
.cs-area { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.cs-area h2 { margin: 0 0 10px; }
.cs-area p { color: var(--cs-ink-2); line-height: 1.7; }
.cs-area .cs-chips { margin: 12px 0 16px; }
.cs-area__card { background: var(--cs-surface-2); border: 1px solid var(--cs-line); border-radius: var(--cs-r-lg); padding: 22px; }
.cs-area__card h3 { margin: 0 0 4px; font-size: 18px; }
.cs-area__card p { margin: 0 0 14px; }

/* Category page header */
.cs-cat-hero {
	margin: 8px 0 24px;
	padding: 28px 28px 20px;
	border-radius: var(--cs-r-lg);
	background:
		radial-gradient(circle at 92% 20%, #ffd0e6 0 5px, transparent 6px),
		radial-gradient(circle at 80% 80%, #bfe3f5 0 4px, transparent 5px),
		radial-gradient(circle at 70% 30%, #ffe39a 0 4px, transparent 5px),
		linear-gradient(135deg, #fff7fb, #f3f8fc);
	border: 1px solid var(--cs-line);
}
.cs-cat-hero__title { margin: 0 0 8px; }
.cs-cat-hero__intro { margin: 0 0 14px; max-width: 70ch; font-size: 17px; line-height: 1.7; color: var(--cs-ink-2); }
.cs-cat-hero__facts { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-cat-hero__facts li { margin: 0; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--cs-line); font-size: 14px; font-weight: 600; color: var(--cs-ink); }
.cs-cat-hero__nav ul { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.cs-cat-hero__nav li { margin: 0; flex: none; }
.cs-cat-hero__nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1.5px solid #e2dfeb; color: var(--cs-ink) !important; text-decoration: none !important; font-size: 14px; font-weight: 500; white-space: nowrap; }
.cs-cat-hero__nav a:hover { border-color: var(--cs-ink); }
.cs-cat-hero__nav a[aria-current="page"] { background: var(--cs-ink); border-color: var(--cs-ink); color: #fff !important; }

@media (max-width: 1024px) {
	.cs-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.cs-v2 .cs-section { padding: 36px 0; }
	.cs-hero { padding: 24px 0 28px; }
	.cs-hero__grid { grid-template-columns: 1fr; gap: 24px; }
	.cs-hero__jar { order: -1; grid-template-columns: repeat(4, 1fr); gap: 8px; }
	.cs-hero__tile { border-radius: 16px; padding: 6px; }
	.cs-hero__tile--1, .cs-hero__tile--3 { transform: rotate(2deg) translateY(6px); }
	.cs-hero__lead { font-size: 16px; }
	.cs-hero__search input[type="search"] { font-size: 16px; }
	.cs-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.cs-cat__img { width: 92px; height: 92px; }
	.cs-cat__name { font-size: 15px; }
	.cs-choice, .cs-area { grid-template-columns: 1fr; }
	.cs-section__head { flex-wrap: wrap; }
	.cs-cat-hero { padding: 20px 16px 14px; }
	.cs-cat-hero__intro { font-size: 16px; }
}

/* v2 category page: the theme title strip (with its own H1) is replaced by .cs-cat-hero */
.cs-ui-v2.tax-product_cat .nasa-breadcrumb { display: none !important; }
.cs-crumbs { margin: 0 0 10px; font-size: 14px; color: var(--cs-ink-2); }
.cs-crumbs a { color: var(--cs-ink-2) !important; text-decoration: underline; text-underline-offset: 3px; }

/* The theme's grid script pre-selects the first variation and copies its single price into
   .price-wrap, parking the original price HTML in a hidden .nasa-org-price. Where that original is
   the unit/carton pair, show the pair instead (browsers without :has keep the single price). */
.cs-ui-v2 .product-item .price-wrap:has(~ .nasa-org-price .cs-price-pair) { display: none !important; }
.cs-ui-v2 .product-item .nasa-org-price.hidden-tag:has(.cs-price-pair) { display: block !important; }

/* Latin product names ("Twingo Chocolate…") were truncated from the wrong end inside the RTL card;
   let each title pick its own direction but keep the card's right alignment. */
.cs-ui-v2 .product-item .name { unicode-bidi: plaintext; text-align: right; }

/* Category/shop header v2: text + a small stack of real product photos; pills span full width. */
.cs-ui-v2.post-type-archive-product .nasa-breadcrumb { display: none; }
.cs-cat-hero--media { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; align-items: center; }
.cs-cat-hero--media .cs-cat-hero__nav { grid-column: 1 / -1; }
.cs-cat-hero__media { display: flex; gap: 12px; padding-block: 8px; }
.cs-cat-hero__tile { width: 116px; height: 116px; border-radius: 22px; background: #fff; box-shadow: 0 8px 24px rgb(28 27 58 / 10%); display: grid; place-items: center; padding: 10px; }
.cs-cat-hero__tile img { width: 100%; height: 100%; object-fit: contain; }
.cs-cat-hero__tile--0 { transform: rotate(-4deg); }
.cs-cat-hero__tile--1 { transform: translateY(-10px) rotate(2deg); }
.cs-cat-hero__tile--2 { transform: rotate(3deg); }
.cs-crumbs a { color: var(--cs-ink-2) !important; }

/* Designed category covers (term meta cs_cover_id): the image fills the tile, the name stays text. */
.cs-cat--cover a { padding: 0; overflow: hidden; gap: 0; background: #fff; box-shadow: var(--cs-shadow-1); }
.cs-cat__cover { display: block; width: 100%; aspect-ratio: 1; }
.cs-cat__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-cat--cover .cs-cat__name { margin-top: 10px; }
.cs-cat--cover .cs-cat__count { margin-bottom: 12px; }

@media (max-width: 767px) {
	.cs-cat-hero--media { grid-template-columns: 1fr; }
	.cs-cat-hero__media { order: -1; justify-content: flex-start; gap: 8px; }
	.cs-cat-hero__tile { width: 72px; height: 72px; border-radius: 16px; padding: 6px; }
}
.cs-cat-hero__body, .cs-cat-hero__nav { min-width: 0; }
@media (min-width: 768px) {
	.cs-cat-hero__nav ul { flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 767px) {
	.cs-cat-hero--media { grid-template-columns: minmax(0, 1fr); }
}

/* Canva covers: home tiles and category header */
.cs-cat--cover a { border-radius: 24px; border: 1px solid var(--cs-line); }
.cs-cat--cover .cs-cat__cover { border-radius: 23px 23px 0 0; overflow: hidden; }
.cs-cat--cover .cs-cat__cover img { transition: transform .35s ease; }
.cs-cat--cover a:hover .cs-cat__cover img { transform: scale(1.05); }
.cs-cat--cover .cs-cat__name { font-size: 18px; margin-top: 12px; }
.cs-cat-hero__cover { width: 260px; aspect-ratio: 1; border-radius: 28px; overflow: hidden; box-shadow: 0 12px 32px rgb(28 27 58 / 14%); transform: rotate(-2deg); }
.cs-cat-hero__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) { .cs-cat--cover .cs-cat__cover img { transition: none; } }
@media (max-width: 767px) {
	.cs-cat--cover .cs-cat__name { font-size: 15px; margin-top: 8px; }
	.cs-cat-hero__cover { order: -1; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; transform: none; margin-bottom: 14px; }
}
.cs-cat-hero--media { background: linear-gradient(135deg, #fff7fb, #f3f8fc); }

/* Home hero art (Canva, option candystore_hero_image_id) — replaces the 4-photo jar */
.cs-hero__art { position: relative; border-radius: 36px; overflow: hidden; aspect-ratio: 1; max-width: 560px; margin-inline: auto; box-shadow: 0 24px 60px rgb(208 21 111 / 18%), 0 8px 20px rgb(28 27 58 / 10%); transform: rotate(2deg); }
.cs-hero__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 767px) {
	.cs-hero__art { order: -1; aspect-ratio: 4 / 3; border-radius: 24px; transform: none; }
}

/* ---------------------------------------------------------------- UI v2 — product page */
.cs-crumbs--product { margin: 0 0 10px; font-size: 14px; color: var(--cs-ink-2); }
.cs-ui-v2.single-product .product_title { font-size: clamp(24px, 1.4vw + 16px, 34px); line-height: 1.25; color: var(--cs-ink); margin-bottom: 8px; }
.cs-ui-v2.single-product p.nasa-single-product-price:has(.cs-price-pair) { display: none !important; }
.cs-ui-v2 .btn-compare { display: none !important; }
.cs-ui-v2 form.cs-pack-ready table.variations,
.cs-ui-v2 form.cs-pack-ready .reset_variations,
.cs-ui-v2 form.cs-pack-ready .woocommerce-variation-price { display: none !important; }
.cs-ui-v2 .yith-woocompare-open, .cs-ui-v2.single-product .compare.button { display: none !important; }

.cs-pack { border: 0; margin: 8px 0 18px; padding: 0; min-width: 0; }
.cs-pack__legend { font-weight: 700; font-size: 16px; color: var(--cs-ink); margin-bottom: 10px; padding: 0; }
.cs-pack__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs-pack__opt { position: relative; display: block; margin: 0; cursor: pointer; }
.cs-pack__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cs-pack__card { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 104px; padding: 14px 16px; border: 2px solid #e2dfeb; border-radius: 18px; background: #fff; transition: border-color var(--cs-ease), box-shadow var(--cs-ease), background var(--cs-ease); }
.cs-pack__name { font-weight: 600; font-size: 15px; color: var(--cs-ink-2); }
.cs-pack__price { font-weight: 800; font-size: 24px; color: var(--cs-ink); font-variant-numeric: tabular-nums; }
.cs-pack__note { font-size: 13px; color: var(--cs-ink-2); }
.cs-pack__badge { position: absolute; top: -11px; inset-inline-start: 14px; padding: 2px 10px; border-radius: 999px; background: var(--cs-pink-strong); color: #fff; font-size: 12px; font-weight: 700; }
.cs-pack__opt:hover .cs-pack__card { border-color: var(--cs-ink); }
.cs-pack__opt input:checked + .cs-pack__card { border-color: var(--cs-pink-strong); background: var(--cs-tint-0, #fff1f7); box-shadow: 0 0 0 3px rgb(208 21 111 / 14%); }
.cs-pack__opt input:focus-visible + .cs-pack__card { outline: 3px solid var(--cs-sky); outline-offset: 2px; }
.cs-pack__opt input:disabled + .cs-pack__card { opacity: .5; cursor: not-allowed; }

.cs-ui-v2.single-product .single_add_to_cart_button { min-height: 52px !important; border-radius: 14px !important; background: var(--cs-pink-strong) !important; border-color: var(--cs-pink-strong) !important; color: #fff !important; font-size: 17px !important; font-weight: 700 !important; }
.cs-ui-v2.single-product .single_add_to_cart_button:hover { background: #b0105d !important; }
.cs-ui-v2.single-product .nasa-buy-now { min-height: 52px !important; border-radius: 14px !important; background: #fff !important; border: 2px solid var(--cs-ink) !important; color: var(--cs-ink) !important; font-size: 16px !important; font-weight: 700 !important; }
.cs-ui-v2.single-product .nasa-buy-now:hover { background: var(--cs-ink) !important; color: #fff !important; }
.cs-ui-v2.single-product .quantity input.qty { min-height: 52px; border-radius: 14px; font-size: 17px; }

.cs-facts { list-style: none; margin: 20px 0 8px; padding: 16px 18px; border: 1px solid var(--cs-line); border-radius: 18px; background: var(--cs-surface-2); display: grid; gap: 12px; }
.cs-facts li { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 15px; line-height: 1.55; color: var(--cs-ink-2); }
.cs-facts li .cs-icon { flex: none; color: var(--cs-pink-strong); margin-top: 1px; }
.cs-facts strong { color: var(--cs-ink); }
.cs-facts a { color: var(--cs-sky) !important; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 767px) {
	.cs-pack__price { font-size: 21px; }
	.cs-pack__card { min-height: 96px; padding: 12px; }
}
/* Product tabs: inactive tab text was light grey (contrast < 4.5:1) */
.nasa-single-product-tab > a, .nasa-single-product-tab > a span { color: #55536e !important; }
.nasa-single-product-tab.active > a, .nasa-single-product-tab.active > a span { color: var(--cs-ink) !important; }
.cs-ui-v2.single-product .nasa-toggle-layout-side-sidebar { display: none !important; }

/* ---------------------------------------------------------------- UI v2 — cart & checkout */
.cs-ui-v2.woocommerce-cart .woocommerce-cart-form,
.cs-ui-v2.woocommerce-cart .cart_totals,
.cs-ui-v2.woocommerce-checkout form.checkout .woocommerce-billing-fields,
.cs-ui-v2.woocommerce-checkout form.checkout .woocommerce-shipping-fields,
.cs-ui-v2.woocommerce-checkout form.checkout .woocommerce-additional-fields,
.cs-ui-v2.woocommerce-checkout #order_review {
	background: #fff; border: 1px solid var(--cs-line); border-radius: 22px; box-shadow: var(--cs-shadow-1);
}
.cs-ui-v2.woocommerce-cart .woocommerce-cart-form { padding: 8px 20px 16px; }
.cs-ui-v2.woocommerce-cart .cart_totals { padding: 22px !important; border-width: 1px !important; }
.cs-ui-v2.woocommerce-cart .cart_totals h2 { font-size: 20px; margin: 0 0 12px; }
.cs-ui-v2 .shop_table th { font-weight: 600; color: var(--cs-ink-2); font-size: 14px; }
.cs-ui-v2 .shop_table td.product-name a { color: var(--cs-ink) !important; font-weight: 600; }
.cs-ui-v2 .shop_table td.product-thumbnail img { border-radius: 12px; background: #fff; }
.cs-ui-v2 .order-total .woocommerce-Price-amount { color: var(--cs-ink) !important; font-size: 24px; font-weight: 800; }
.cs-ui-v2 .woocommerce-cart-form .product-subtotal .woocommerce-Price-amount { color: var(--cs-ink) !important; font-weight: 700; }
.cs-ui-v2 #shipping_method li { margin: 0 0 8px; }
.cs-ui-v2 #shipping_method li label { font-weight: 500; }
.cs-ui-v2 .checkout-button, .cs-ui-v2 #place_order {
	min-height: 56px !important; border-radius: 16px !important; font-size: 18px !important; font-weight: 800 !important;
	background: var(--cs-pink-strong) !important; border-color: var(--cs-pink-strong) !important; color: #fff !important; letter-spacing: 0;
}
.cs-ui-v2 .checkout-button:hover, .cs-ui-v2 #place_order:hover { background: #b0105d !important; }
.cs-ui-v2 .woocommerce-error, .cs-ui-v2 .woocommerce-info, .cs-ui-v2 .woocommerce-message { border-radius: 16px; }

.cs-ui-v2.woocommerce-checkout form.checkout .woocommerce-billing-fields,
.cs-ui-v2.woocommerce-checkout form.checkout .woocommerce-shipping-fields,
.cs-ui-v2.woocommerce-checkout form.checkout .woocommerce-additional-fields { padding: 20px 22px 8px; margin-bottom: 16px; }
.cs-ui-v2.woocommerce-checkout #order_review { padding: 20px 22px; }
.cs-ui-v2.woocommerce-checkout h3 { font-size: 20px; color: var(--cs-ink); }
.cs-ui-v2 form.checkout .form-row .input-text,
.cs-ui-v2 form.checkout .form-row select,
.cs-ui-v2 form.checkout .form-row textarea,
.cs-ui-v2 .woocommerce-cart-form .coupon .input-text {
	min-height: 52px; font-size: 16px !important; border: 1.5px solid #d9d6e3 !important; border-radius: 14px !important; background: #fff !important; color: var(--cs-ink);
}
.cs-ui-v2 form.checkout .form-row .input-text:focus,
.cs-ui-v2 form.checkout .form-row select:focus,
.cs-ui-v2 form.checkout .form-row textarea:focus { border-color: var(--cs-sky) !important; box-shadow: 0 0 0 3px rgb(10 111 163 / 15%) !important; outline: none; }
.cs-ui-v2 form.checkout .form-row.woocommerce-invalid .input-text { border-color: #b3261e !important; }
.cs-ui-v2 form.checkout label { color: var(--cs-ink-2); }
.cs-ui-v2 #payment { background: var(--cs-surface-2) !important; border-radius: 16px; }
.cs-ui-v2 .woocommerce-privacy-policy-text p { font-size: 14px; line-height: 1.6; color: var(--cs-ink-2); }
.cs-ui-v2 .woocommerce-privacy-policy-text a, .cs-ui-v2 .woocommerce-terms-and-conditions-wrapper a { color: var(--cs-sky) !important; text-decoration: underline; }

.cs-facts--cart { margin-top: 16px; }
@media (max-width: 767px) {
	.cs-ui-v2.woocommerce-cart .woocommerce-cart-form { padding: 4px 12px 12px; }
	.cs-ui-v2.woocommerce-checkout form.checkout .woocommerce-billing-fields,
	.cs-ui-v2.woocommerce-checkout #order_review { padding: 16px 14px; }
}
/* Israel is the only country offered — the field carries the value but needs no screen space */
.cs-ui-v2 #billing_country_field, .cs-ui-v2 #shipping_country_field { display: none !important; }
/* Pickup needs no shipping address: the box would stay as an empty card */
.cs-ui-v2 .woocommerce-shipping-fields:not(:has(h3, .shipping_address)) { display: none; }
/* Touch-friendly checkboxes (terms, different address) — WCAG 2.5.8 target size */
.cs-ui-v2 form.checkout input[type="checkbox"], .cs-ui-v2 .woocommerce-form__input-checkbox { width: 20px; height: 20px; accent-color: var(--cs-pink-strong); vertical-align: middle; }
/* Empty cart: grey hint and the light-pink "return to shop" button failed 4.5:1 */
.nasa-extra-empty { color: #5f5d75 !important; }
.woocommerce a.button.wc-backward { background: var(--cs-pink-strong) !important; border-color: var(--cs-pink-strong) !important; color: #fff !important; font-size: 15px !important; min-height: 48px; border-radius: 14px !important; }
/* Checkout review on phones: the product name column collapsed to one letter per line */
.woocommerce-checkout-review-order-table td.product-name { word-break: normal; overflow-wrap: break-word; min-width: 140px; }
.woocommerce-checkout-review-order-table td.product-total { width: 76px; white-space: nowrap; }
@media (max-width: 767px) {
	.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > th,
	.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > td { display: block; width: 100% !important; white-space: normal; text-align: start; }
}

/* Error notices (e.g. "delivery minimum ₪380" after "שליחת הזמנה") were white text on a very light
   pink background — an empty-looking box on mobile (reported 2026-09-27). Dark red on light pink, AA. */
.woocommerce-error, .woocommerce-NoticeGroup .woocommerce-error {
	background: #fff1f1 !important; border: 1px solid #f0b4b0 !important; border-inline-start: 4px solid #b3261e !important; border-radius: 14px;
	color: #7a1712 !important; padding: 12px 16px !important;
}
.woocommerce-error li, .woocommerce-error li a:not(.button) { color: #7a1712 !important; font-size: 15px; line-height: 1.6; font-weight: 500; }
.woocommerce-error li svg { fill: #b3261e !important; color: #b3261e !important; flex: none; }
.woocommerce-info, .woocommerce-message { color: var(--cs-ink) !important; }

/* Floating WhatsApp — small, bottom-left (RTL: away from the main actions), above the mobile bottom bar */
.cs-wa-float {
	position: fixed; z-index: 90; left: 16px; bottom: 92px;
	width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
	background: #1a7f45; color: #fff !important; box-shadow: 0 6px 18px rgb(0 0 0 / 22%);
	transition: transform var(--cs-ease);
}
.cs-wa-float:hover { transform: scale(1.06); }
.cs-wa-float:focus-visible { outline: 3px solid var(--cs-sky); outline-offset: 3px; }
@media (max-width: 767px) { .cs-wa-float { bottom: 148px; left: 10px; width: 44px; height: 44px; opacity: .95; } .cs-wa-float svg { width: 22px; height: 22px; } }
/* The theme's floating "recently viewed" (clock) and scroll-top buttons sat on the same corner and over content */
.cs-ui-v2 .nasa-recently-viewed-toggle, .cs-ui-v2 #nasa-init-viewed { display: none !important; }

/* Legal documents */
.cs-legal { max-width: 860px; margin: 24px auto 56px; padding: 0 16px; line-height: 1.8; color: var(--cs-ink); }
.cs-legal h1 { font-size: clamp(28px, 2vw + 18px, 40px); margin-bottom: 4px; }
.cs-legal h2 { font-size: 20px; margin: 28px 0 8px; }
.cs-legal-updated { color: var(--cs-ink-2); font-size: 14px; }
.cs-legal a { color: var(--cs-sky) !important; text-decoration: underline; text-underline-offset: 3px; }
.cs-legal-contact, .cs-legal-summary { background: var(--cs-surface-2); border: 1px solid var(--cs-line); border-radius: 16px; padding: 14px 20px 14px 14px; list-style: none; }
.cs-legal-contact li, .cs-legal-summary li { margin: 4px 0; }

/* Home: "למה Candy Store" */
.cs-why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cs-why li { margin: 0; background: #fff; border: 1px solid var(--cs-line); border-radius: var(--cs-r-lg); padding: 22px; box-shadow: var(--cs-shadow-1); }
.cs-why .cs-icon { width: 34px; height: 34px; color: var(--cs-pink-strong); }
.cs-why li:nth-child(even) .cs-icon { color: var(--cs-sky); }
.cs-why h3 { font-size: 18px; margin: 10px 0 6px; }
.cs-why p { margin: 0; color: var(--cs-ink-2); line-height: 1.65; }
.cs-b2b__lead { font-size: 18px; font-weight: 600; color: var(--cs-ink); }
.cs-btn--wa { border-color: #1a7f45 !important; color: #14663a !important; }
.cs-btn--wa:hover { background: #1a7f45 !important; color: #fff !important; }
@media (max-width: 1024px) { .cs-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	.cs-why { grid-template-columns: 1fr; gap: 12px; }
	.cs-why li { padding: 16px; }
	.cs-home-ctas { flex-direction: column; align-items: stretch; }
}

/* Business page (inc/business-page.php): buttons inside .cs-legal keep their own colors — `.cs-legal a` would turn them sky-on-sky */
.cs-legal .cs-btn { text-decoration: none; }
.cs-legal .cs-btn--b2b { color: #fff !important; }
.cs-legal .cs-btn--ghost { color: var(--cs-ink) !important; }
.cs-business .cs-home-ctas { margin: 16px 0 8px; }
.cs-business a[href^="tel:"] { white-space: nowrap; }

/* The theme builds the mobile header (84px) with JavaScript; until then #masthead is 0px high and the page
   jumps down when it appears (CLS 0.10 on product pages). Reserve its height on phones. */
@media (max-width: 767px) { #masthead { min-height: 84px; } }
