/* ריקי לק - UX Boost (rkux_). הכול תחת body.rk-on. RTL, מובייל קודם. */
body.rk-on {
	--rkux-brand: #c8175a;
	--rkux-deep: #a8104a;
	--rkux-dark: #231a20;
	--rkux-mute: #6e626a;
	--rkux-soft: #fbeef3;
	--rkux-line: #e7e1e6;
	--rkux-bar-h: 64px;
}

/* ---------- A11y: scroll padding so focused items are not hidden under the sticky header (WCAG 2.4.11) ---------- */
html:has(body.rk-on) { scroll-padding-top: 110px; }
@media (min-width: 900px) { html:has(body.rk-on) { scroll-padding-top: 160px; } }

/* ---------- A11y: skip link above the announcement bar, visible on focus ---------- */
body.rk-on a.rk-skip:focus,
body.rk-on a.skip-link:focus { z-index: 100002; }
body.rk-on #content:focus,
body.rk-on #rkux-cats:focus { outline: none; }

/* ---------- A11y: focus-visible everywhere (2px halo + 3px brand ring, works on light and pink) ---------- */
body.rk-on :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--rkux-brand);
	outline-offset: 2px;
}
body.rk-on :where(.button, .rk-vpick, .rkux-btn, .rkux-cartbar__go, .single_add_to_cart_button, .checkout-button):focus-visible {
	outline: 3px solid var(--rkux-dark);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #fff;
}
body.rk-on .quantity a:focus-visible,
body.rk-on .quantity input:focus-visible {
	outline: 3px solid var(--rkux-brand);
	outline-offset: -2px;
	border-radius: 6px;
}

/* ---------- A11y: contrast (minimum change, brand colours unchanged) ---------- */
/* disabled-looking ATC is still clickable (it explains what to choose): keep it readable */
body.rk-on .single_add_to_cart_button.disabled,
body.rk-on .single_add_to_cart_button.wc-variation-selection-needed {
	color: var(--rkux-deep) !important;
	border-color: var(--rkux-deep) !important;
	opacity: 1 !important;
}
/* product tab / accordion headers */
body.rk-on.single-product .ast-single-tab .ast-tab-header,
body.rk-on.single-product .ast-accordion-header { color: var(--rkux-brand); }
/* struck-through old price */
body.rk-on.single-product .summary .price del,
body.rk-on.single-product .summary .price del .amount,
body.rk-on.single-product .summary .price del bdi { color: var(--rkux-mute); opacity: 1; }
html body.rk-on.single-product .summary p.price del { opacity: 1 !important; }
/* decorative dot in the announcement bar */
body.rk-on .rk-ann__sep { color: #fff; opacity: .9; }
/* checkout: optional / required marks and red inline notes */
body.rk-on.woocommerce-checkout .form-row .optional { color: var(--rkux-mute); }
body.rk-on.woocommerce-checkout .form-row .required { color: #b3261e; }
body.rk-on.woocommerce-checkout font > b,
body.rk-on.woocommerce-cart font > b { color: #b00000; }

/* ---------- A11y: touch targets >= 44px ---------- */
body.rk-on .woocommerce a.remove,
body.rk-on .woocommerce-cart-form a.remove {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px;
}
body.rk-on .quantity a { min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
body.rk-on.woocommerce-checkout #shipping_method li,
body.rk-on.woocommerce-cart #shipping_method li { margin: 0; }
body.rk-on #shipping_method li label,
body.rk-on .woocommerce-checkout #payment ul.payment_methods > li > label {
	display: inline-flex; align-items: center; min-height: 44px; padding-block: 4px; cursor: pointer;
}
body.rk-on #shipping_method input[type="radio"],
body.rk-on .wc_payment_methods input[type="radio"],
body.rk-on .woocommerce-form__input-checkbox { width: 22px; height: 22px; margin-inline-end: 8px; }
body.rk-on.woocommerce-cart .coupon .button,
body.rk-on.woocommerce-cart .coupon input.input-text { min-height: 48px; }
body.rk-on .rk-sheet__o { min-height: 56px; }

/* ---------- Product titles: real 2-line clamp with ellipsis (no cut-off third line) ---------- */
body.rk-on ul.products li.product a.ast-loop-product__link {
	display: block;
	max-height: none;
	height: auto;
	overflow: visible;
}
html body.rk-on ul.products li.product h2.woocommerce-loop-product__title,
html body.rk-on .rk-card .woocommerce-loop-product__title {
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 2 !important;
	line-clamp: 2 !important;
	overflow: hidden !important;
	max-height: none !important;
	height: auto !important;
	text-overflow: ellipsis;
	overflow-wrap: anywhere;
}
body.rk-on .rk-tile__t {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: auto;
	max-height: none;
	text-overflow: ellipsis;
	overflow-wrap: anywhere;
}

/* ---------- Variant picker (swatch replacement) ---------- */
body.rk-on .rk-vpick { min-height: 56px; width: 100%; }
body.rk-on .rk-vpick--empty .rk-vpick__l { color: var(--rkux-mute); }
body.rk-on .rk-sheet__o[aria-pressed="true"] {
	border-color: var(--rkux-brand);
	background: var(--rkux-soft);
	box-shadow: inset 0 0 0 1px var(--rkux-brand);
}
body.rk-on .rk-sheet__ok { color: #1d6b3a; }
body.rk-on .thwvs_attr_description:empty { display: none; }

/* ---------- Home hero ---------- */
body.rk-on .rkux-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
body.rk-on .rkux-hero {
	background: linear-gradient(180deg, var(--rkux-soft), #fff);
	padding: 24px 0 16px;
	text-align: center;
	border-radius: 16px 16px 0 0;
}
body.rk-on .rkux-hero__t {
	margin: 0 0 8px;
	font-size: clamp(1.5rem, 1.1rem + 2vw, 2.4rem);
	line-height: 1.2;
	color: var(--rkux-dark);
	font-weight: 800;
	text-wrap: balance;
}
body.rk-on .rkux-hero__s {
	margin: 0 auto 16px;
	max-width: 46ch;
	font-size: 1.0625rem;
	line-height: 1.5;
	color: var(--rkux-mute);
}
body.rk-on .rkux-hero__b { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
body.rk-on .rkux-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 22px; border-radius: 999px;
	font-weight: 800; font-size: 1rem; text-decoration: none; line-height: 1.2;
	transition: background-color .2s, color .2s, transform .15s;
}
body.rk-on .rkux-btn--p { background: var(--rkux-brand); color: #fff; border: 2px solid var(--rkux-brand); }
body.rk-on .rkux-btn--p:hover { background: var(--rkux-deep); border-color: var(--rkux-deep); color: #fff; }
body.rk-on .rkux-btn--g { background: #fff; color: var(--rkux-deep); border: 2px solid var(--rkux-brand); }
body.rk-on .rkux-btn--g:hover { background: var(--rkux-soft); color: var(--rkux-deep); }
body.rk-on .rkux-btn:active { transform: scale(.98); }
@media (max-width: 480px) {
	body.rk-on .rkux-hero__b { flex-direction: column; align-items: stretch; }
}

/* ---------- Trust strip ---------- */
body.rk-on .rkux-trust { background: #fff; border: 1px solid var(--rkux-line); border-radius: 12px; margin: 0 0 16px; }
body.rk-on .rkux-hero + .rkux-trust { border-radius: 0 0 16px 16px; border-top: 0; }
body.rk-on .rkux-trust__l {
	list-style: none; margin: 0; padding: 4px 0;
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px;
}
body.rk-on .rkux-trust__it { margin: 0; padding: 0; }
body.rk-on .rkux-trust__c, body.rk-on .rkux-trust__a {
	display: flex; align-items: center; gap: 6px; min-height: 44px;
	font-size: .875rem; line-height: 1.3; color: var(--rkux-dark); text-decoration: none;
}
body.rk-on .rkux-trust__a { font-weight: 700; color: var(--rkux-deep); }
body.rk-on .rkux-trust__a:hover span { text-decoration: underline; }
body.rk-on .rkux-trust__i { width: 20px; height: 20px; flex: none; color: var(--rkux-brand); }
@media (min-width: 900px) {
	body.rk-on .rkux-trust__l { grid-template-columns: repeat(4, auto); justify-content: space-between; }
	body.rk-on .rkux-trust__c, body.rk-on .rkux-trust__a { font-size: 1rem; }
}

/* ---------- Cart: sticky checkout bar, mobile only ---------- */
body.rk-on .rkux-cartbar { display: none; }
@media (max-width: 767px) {
	body.rk-on .rkux-cartbar:not([hidden]) {
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		position: fixed; inset-inline: 0; bottom: 0; z-index: 9990;
		min-height: var(--rkux-bar-h);
		padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
		background: #fff; border-top: 1px solid var(--rkux-line);
		box-shadow: 0 -6px 18px rgba(35, 26, 32, .1);
	}
	body.rk-on .rkux-cartbar__tot { font-size: 1rem; color: var(--rkux-dark); }
	body.rk-on .rkux-cartbar__k { color: var(--rkux-mute); font-size: .9375rem; }
	body.rk-on .rkux-cartbar__go {
		flex: 1 1 auto; max-width: 60%;
		display: inline-flex; align-items: center; justify-content: center;
		min-height: 48px; border-radius: 999px;
		background: var(--rkux-brand); color: #fff; font-weight: 800; font-size: 1.0625rem; text-decoration: none;
	}
	body.rk-on .rkux-cartbar__go:hover { background: var(--rkux-deep); color: #fff; }
	/* lift floating widgets (WhatsApp, accessibility toggle) above the bar */
	html body.rk-on.woocommerce-cart.rkux-has-cartbar #ht-ctc-chat,
	html body.rk-on.woocommerce-cart.rkux-has-cartbar .ht-ctc-chat,
	html body.rk-on.woocommerce-cart.rkux-has-cartbar #sitelinx-toggle-toolbar {
		top: auto !important;
		bottom: calc(var(--rkux-bar-h) + 12px + env(safe-area-inset-bottom)) !important;
	}
	body.rk-on.rkux-has-cartbar.woocommerce-cart #page { padding-bottom: calc(var(--rkux-bar-h) + 8px); }
}

@media (prefers-reduced-motion: reduce) {
	body.rk-on .rkux-btn { transition: none; }
}
