/**
 * Rachel Mizrahi — site chrome (header + footer + mobile drawer).
 *
 * Fully DB-independent styling for the child theme's hard-coded
 * header.php / footer.php markup. RTL-first via logical properties.
 * Animations use transform/opacity only; reduced motion respected.
 */

:root {
	--rmc-espresso: #422B1C;
	--rmc-espresso-deep: #2A1B10;
	--rmc-taupe: #725C4E;
	--rmc-beige: #C5AF9E;
	/* Text-safe beige. Plain --rmc-beige on the mocha footer is only 4.16:1,
	   below the 4.5:1 that IS 5568 requires; this lifted tone measures 5.18:1.
	   Use it for *text* on dark surfaces — decorative bands keep --rmc-beige. */
	--rmc-beige-text: #D8C6B6;
	--rmc-cream: #EFEAE5;
	--rmc-cream-warm: #E7DFDD;
	--rmc-body: #4A4038;
	/* Warm medium-dark "mocha" — reintroduces depth (announcement strip + footer)
	   without the near-black espresso; a mid tone between taupe and espresso. */
	--rmc-mocha: #5B4739;
	--rmc-announce-h: 36px;
	--rmc-bar-h: 132px;
	--rmc-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------------------------
 * Header shell — sticky as a whole; the 34px announcement strip is
 * allowed to scroll out (negative top) while the main bar stays.
 * ------------------------------------------------------------------ */
.rm-header {
	position: sticky;
	top: calc(-1 * var(--rmc-announce-h));
	z-index: 9990;
}

.admin-bar .rm-header {
	top: calc(32px - var(--rmc-announce-h));
}

@media screen and (max-width: 782px) {
	.admin-bar .rm-header {
		top: calc(46px - var(--rmc-announce-h));
	}
}

/* ------------------------------------------------------------------
 * Announcement bar
 * ------------------------------------------------------------------ */
.rm-announce {
	height: var(--rmc-announce-h);
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--rmc-mocha);
	border-block-end: 1px solid rgba(0, 0, 0, 0.12);
	padding-inline: 16px;
}

.rm-announce__text {
	margin: 0;
	color: var(--rmc-cream);
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 0.8125rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-inline-size: 100%;
}

/* ------------------------------------------------------------------
 * Main bar
 * ------------------------------------------------------------------ */
.rm-header__bar {
	position: relative;
	z-index: 2;
	height: var(--rmc-bar-h);
	background: rgba(247, 243, 239, 0.94);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-block-end: 1px solid rgba(66, 43, 28, 0.08);
}

/* Two rows: the logo centred on top, the menu centred beneath it (client
   request). The icons are taken out of flow and pinned to the inline end of
   the top row so they cannot pull the logo off centre. */
.rm-header__inner {
	position: relative;
	max-inline-size: 1200px;
	height: 100%;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 40px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.rm-header__top {
	display: flex;
	justify-content: center;
	inline-size: 100%;
}

/* Logo — centred and enlarged (she asked for it noticeably bigger) */
.rm-header__logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 0;
}

.rm-header__logo img {
	height: 84px;
	width: auto;
	display: block;
}

/* ------------------------------------------------------------------
 * Desktop nav
 * ------------------------------------------------------------------ */
.rm-nav {
	display: flex;
	justify-content: center;
	inline-size: 100%;
	min-inline-size: 0;
}

.rm-menu {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.5vw, 34px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rm-menu li {
	margin: 0;
}

.rm-menu a {
	position: relative;
	display: inline-block;
	padding-block: 6px;
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--rmc-espresso);
	text-decoration: none;
	transition: color 0.25s var(--rmc-ease);
}

/* Animated underline — grows from the inline start (right in RTL) */
.rm-menu a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	height: 1px;
	background: var(--rmc-taupe);
	transform: scaleX(0);
	transform-origin: 100% 50%;
	transition: transform 0.3s var(--rmc-ease);
}

[dir="ltr"] .rm-menu a::after {
	transform-origin: 0 50%;
}

.rm-menu a:hover,
.rm-menu a:focus-visible {
	color: var(--rmc-taupe);
}

.rm-menu a:hover::after,
.rm-menu a:focus-visible::after {
	transform: scaleX(1);
}

/* Quiz link — visually distinct */
.rm-menu .rm-menu__quiz > a {
	color: var(--rmc-taupe);
	border-block-end: 1px solid var(--rmc-beige);
	padding-block-end: 5px;
}

.rm-menu .rm-menu__quiz > a:hover,
.rm-menu .rm-menu__quiz > a:focus-visible {
	color: var(--rmc-espresso);
}

/* WhatsApp contact — espresso button */
.rm-menu .rm-menu__cta > a {
	background: var(--rmc-espresso);
	color: var(--rmc-cream);
	padding: 9px 22px;
	border-radius: 999px;
	line-height: 1;
	transition: background-color 0.25s var(--rmc-ease), transform 0.25s var(--rmc-ease);
}

.rm-menu .rm-menu__cta > a::after {
	display: none;
}

.rm-menu .rm-menu__cta > a:hover,
.rm-menu .rm-menu__cta > a:focus-visible {
	background: var(--rmc-espresso-deep);
	color: var(--rmc-cream);
	transform: translateY(-1px);
}

/* ------------------------------------------------------------------
 * Icons cluster (inline end = left side in RTL)
 * ------------------------------------------------------------------ */
/* Pinned to the inline end of the top row, out of flow, so the centred logo
   stays centred no matter how wide this cluster gets. */
.rm-header__icons {
	position: absolute;
	inset-inline-end: clamp(16px, 4vw, 40px);
	inset-block-start: 28px;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

.rm-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 40px;
	block-size: 40px;
	color: var(--rmc-espresso);
	transition: color 0.25s var(--rmc-ease);
}

.rm-cart:hover,
.rm-cart:focus-visible {
	color: var(--rmc-taupe);
}

.rm-cart__icon {
	display: block;
}

.rm-cart-count {
	position: absolute;
	inset-block-start: 2px;
	inset-inline-end: 0;
	min-inline-size: 17px;
	block-size: 17px;
	padding-inline: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--rmc-beige);
	color: var(--rmc-espresso-deep);
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1;
	border-radius: 999px;
}

/* ------------------------------------------------------------------
 * Hamburger (hidden on desktop)
 * ------------------------------------------------------------------ */
.rm-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	inline-size: 40px;
	block-size: 40px;
	padding: 9px;
	background: transparent;
	border: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

/* Astra paints button:focus/:hover in its blue — a tap left the burger blue. */
.rm-burger:hover,
.rm-burger:focus {
	background: transparent;
}

.rm-burger:focus-visible {
	outline: 2px solid var(--rmc-taupe);
	outline-offset: 2px;
}

.rm-burger__line {
	display: block;
	inline-size: 22px;
	block-size: 1.5px;
	background: var(--rmc-espresso);
	transition: transform 0.3s var(--rmc-ease), opacity 0.3s var(--rmc-ease);
}

.rm-burger[aria-expanded="true"] .rm-burger__line:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}

.rm-burger[aria-expanded="true"] .rm-burger__line:nth-child(2) {
	opacity: 0;
	transform: scaleX(0.4);
}

.rm-burger[aria-expanded="true"] .rm-burger__line:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

/* ------------------------------------------------------------------
 * Mobile slide-down panel
 * ------------------------------------------------------------------ */
.rm-mobile-panel {
	position: absolute;
	inset-inline: 0;
	inset-block-start: 100%;
	z-index: 1;
	background: var(--rmc-cream);
	border-block-end: 1px solid rgba(66, 43, 28, 0.08);
	box-shadow: 0 24px 40px -24px rgba(42, 27, 16, 0.35);
	/* The header is sticky, so scrolling the page never brings the bottom of
	   this panel into view — it scrolls on its own instead. --rm-panel-top is
	   set by the header script when the panel opens. */
	max-block-size: calc(100vh - var(--rm-panel-top, 120px));
	max-block-size: calc(100dvh - var(--rm-panel-top, 120px));
	overflow-y: auto;
	overscroll-behavior: contain;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-12px);
	transition:
		opacity 0.3s var(--rmc-ease),
		transform 0.3s var(--rmc-ease),
		visibility 0s linear 0.3s;
}

.rm-mobile-panel.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition:
		opacity 0.3s var(--rmc-ease),
		transform 0.3s var(--rmc-ease),
		visibility 0s;
}

.rm-mobile-panel__nav {
	/* Bottom clears the floating accessibility button once scrolled to the end. */
	padding: 28px clamp(20px, 6vw, 48px) 96px;
}

.rm-menu--mobile {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.rm-menu--mobile li + li {
	border-block-start: 1px solid rgba(66, 43, 28, 0.08);
}

.rm-menu--mobile a {
	display: block;
	padding-block: 16px;
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 1.5rem;
	font-weight: 400;
	letter-spacing: 0.01em;
}

.rm-menu--mobile a::after {
	display: none;
}

.rm-menu--mobile .rm-menu__quiz > a {
	border-block-end: 0;
	padding-block-end: 16px;
}

.rm-menu--mobile .rm-menu__cta > a {
	display: inline-block;
	margin-block-start: 18px;
	padding: 13px 34px;
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 1.0625rem;
}

.rm-menu--mobile .rm-menu__cta {
	border-block-start: 0;
}

/* Breakpoint */
@media (max-width: 920px) {
	.rm-nav {
		display: none;
	}

	.rm-burger {
		display: inline-flex;
	}

	.rm-header__inner {
		padding-inline: 16px;
	}

	.rm-header__logo img {
		height: 52px;
	}

	/* With the nav hidden the header is a single row again, so the icon
	   cluster centres vertically instead of hugging the logo row. */
	.rm-header__icons {
		inset-block-start: 50%;
		transform: translateY(-50%);
		inset-inline-end: 16px;
	}
}

/* Phones: the three icons together are wider than the space beside the
   centred logo, so the language pill sat on top of it. Split the cluster —
   the pill takes the opposite edge, cart + burger keep theirs. The row spans
   the header, so it lets taps through to the logo underneath. */
@media (max-width: 600px) {
	.rm-header__icons {
		inset-inline-start: 16px;
		pointer-events: none;
	}

	.rm-header__icons > * {
		pointer-events: auto;
	}

	/* On the cart, not the pill: the pill carries dir= of the language it
	   switches TO, so its own inline-end points the wrong way. */
	.rm-header__icons .rm-cart {
		margin-inline-start: auto;
	}
}

@media (max-width: 360px) {
	.rm-header__icons {
		gap: 6px;
	}

	.rm-header__logo img {
		height: 42px;
	}
}

@media (min-width: 921px) {
	.rm-mobile-panel {
		display: none;
	}
}

/* ------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------ */
.rm-footer {
	position: relative;
	background: var(--rmc-mocha);
	color: var(--rmc-cream);
	border-block-start: 1px solid rgba(0, 0, 0, 0.14);
	overflow: hidden;
}

/* lotus.png motif — faint corner ornament */
.rm-footer::before {
	content: "";
	position: absolute;
	inset-block-end: -60px;
	inset-inline-start: -60px;
	inline-size: 340px;
	block-size: 340px;
	background: url("../img/lotus.png") center / contain no-repeat;
	filter: brightness(0) invert(1); /* faint LIGHT lotus on the mocha ground */
	opacity: 0.07;
	pointer-events: none;
}

/* Desktop: horizontal row — brand+logo | nav | social, spread across width. */
.rm-footer__inner {
	position: relative;
	max-inline-size: 1200px;
	margin-inline: auto;
	padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 40px) clamp(18px, 2.5vw, 26px);
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	text-align: start;
	gap: clamp(20px, 4vw, 48px);
}

.rm-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	flex-shrink: 0;
}

.rm-footer__brand img {
	height: 46px;
	width: auto;
	display: block;
}

.rm-footer__tagline {
	margin: 0;
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 0.95rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	color: var(--rmc-beige-text);
}

/*
 * Contact phone. --rmc-beige-text rather than plain --rmc-beige: the plain
 * beige measures 4.16:1 on the mocha footer and fails AA.
 */
.rm-footer__contact {
	margin: 0.6rem 0 0;
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 0.95rem;
	color: var(--rmc-beige-text);
}

.rm-footer__contact-label {
	letter-spacing: 0.02em;
}

.rm-footer__phone {
	color: var(--rmc-beige-text);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 1px;
	/* Keeps the digits LTR inside the RTL line without reordering them. */
	unicode-bidi: embed;
}

.rm-footer__phone:hover,
.rm-footer__phone:focus-visible {
	color: #fff;
}

/* Prominent social row — sits at the inline end of the desktop row. */
.rm-footer__social {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	order: 1; /* push past the nav so the row reads brand | nav | social */
	flex-shrink: 0;
}

.rm-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 40px;
	block-size: 40px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: var(--rmc-cream);
	background: transparent;
	transition: color 0.25s var(--rmc-ease), background-color 0.25s var(--rmc-ease), border-color 0.25s var(--rmc-ease), transform 0.25s var(--rmc-ease);
}

.rm-footer__social-link svg {
	display: block;
	width: 22px;
	height: 22px;
}

.rm-footer__social-link:hover,
.rm-footer__social-link:focus-visible {
	color: var(--rmc-espresso);
	background: var(--rmc-beige);
	border-color: var(--rmc-beige);
	transform: translateY(-2px);
}

/* Short horizontal nav — center column of the footer row on desktop. */
.rm-footer__nav {
	flex: 1 1 auto;
	min-inline-size: 0;
}

.rm-footer__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(20px, 4vw, 40px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rm-footer__list li {
	margin: 0;
}

.rm-footer__list a {
	position: relative;
	display: inline-block;
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--rmc-cream);
	text-decoration: none;
	transition: color 0.25s var(--rmc-ease);
}

.rm-footer__list a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: -4px;
	height: 1px;
	background: var(--rmc-beige);
	transform: scaleX(0);
	transform-origin: 100% 50%;
	transition: transform 0.3s var(--rmc-ease);
}

[dir="ltr"] .rm-footer__list a::after {
	transform-origin: 0 50%;
}

.rm-footer__list a:hover,
.rm-footer__list a:focus-visible {
	color: #fff;
}

.rm-footer__list a:hover::after,
.rm-footer__list a:focus-visible::after {
	transform: scaleX(1);
}

.rm-footer__bottom {
	position: relative;
	border-block-start: 1px solid rgba(255, 255, 255, 0.14);
	padding: 12px clamp(20px, 4vw, 40px);
	text-align: center;
}

.rm-footer__copy {
	margin: 0;
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
	color: var(--rmc-beige-text);
}

/* Mobile: collapse the horizontal row back to a centered stack. */
@media (max-width: 640px) {
	.rm-footer__inner {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		gap: clamp(16px, 5vw, 22px);
	}

	.rm-footer__brand {
		align-items: center;
	}

	.rm-footer__social {
		order: 0; /* natural DOM order (brand, social, nav) when stacked */
	}

	.rm-footer__nav {
		inline-size: 100%;
		flex: 0 1 auto;
	}
}

/* ------------------------------------------------------------------
 * Accessibility
 * ------------------------------------------------------------------ */
.rm-header a:focus-visible,
.rm-header button:focus-visible,
.rm-footer a:focus-visible {
	outline: 2px solid var(--rmc-taupe);
	outline-offset: 3px;
	border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.rm-menu a,
	.rm-menu a::after,
	.rm-menu .rm-menu__cta > a,
	.rm-cart,
	.rm-burger__line,
	.rm-mobile-panel,
	.rm-footer__social-link,
	.rm-footer__list a,
	.rm-footer__list a::after {
		transition: none !important;
	}

	.rm-menu .rm-menu__cta > a:hover,
	.rm-footer__social-link:hover,
	.rm-footer__social-link:focus-visible {
		transform: none;
	}
}

/* ==========================================================================
   Side cart drawer + toast (assets/js/cart.js + woocommerce/cart/mini-cart.php)
   ========================================================================== */
.rm-cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 10000;
	visibility: hidden;
	pointer-events: none;
}

.rm-cart-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
}

/* Lock the page behind the open drawer so only the drawer body scrolls. */
body.rm-cart-open {
	overflow: hidden;
}

.rm-cart-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(42, 27, 16, 0.40);
	opacity: 0;
	transition: opacity 0.36s var(--rmc-ease, ease);
}

.rm-cart-drawer.is-open .rm-cart-drawer__overlay {
	opacity: 1;
}

/* Panel slides in from the physical left (where the cart icon sits). */
.rm-cart-drawer__panel {
	position: absolute;
	inset-block: 0;
	left: 0;
	inline-size: min(420px, 92vw);
	background: var(--rmc-paper, #F7F3EF);
	box-shadow: 24px 0 60px -20px rgba(42, 27, 16, 0.45);
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform 0.44s cubic-bezier(0.32, 0.72, 0, 1);
}

.rm-cart-drawer.is-open .rm-cart-drawer__panel {
	transform: translateX(0);
}

.rm-cart-drawer__head {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	border-block-end: 1px solid rgba(66, 43, 28, 0.10);
}

.rm-cart-drawer__title {
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 1.25rem;
	color: var(--rmc-espresso, #422B1C);
}

.rm-cart-drawer__close {
	background: none;
	border: none;
	font-size: 1.7rem;
	line-height: 1;
	color: var(--rmc-taupe, #725C4E);
	cursor: pointer;
	padding: 0 4px;
	transition: color 0.2s ease, transform 0.2s ease;
}

.rm-cart-drawer__close:hover {
	color: var(--rmc-espresso, #422B1C);
	transform: rotate(90deg);
}

/* ------------------------------------------------------------------
 * Drawer body — column flex: scrollable items/suggestions, pinned foot.
 * (.rm-mini-body / .rm-mini-foot come from woocommerce/cart/mini-cart.php.)
 * ------------------------------------------------------------------ */
.rm-cart-drawer__content {
	flex: 1;
	min-block-size: 0;
	display: flex;
	flex-direction: column;
	transition: opacity 0.25s ease;
}

/* Subtle busy state while a cart AJAX call is in flight (cart.js). */
.rm-cart-drawer.is-busy .rm-cart-drawer__content {
	opacity: 0.55;
	pointer-events: none;
}

.rm-mini-body {
	flex: 1;
	min-block-size: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 18px 22px 26px;
}

.rm-mini-foot {
	flex: none;
	padding: 14px 22px calc(18px + env(safe-area-inset-bottom, 0px));
	border-block-start: 1px solid rgba(66, 43, 28, 0.10);
	background: var(--rmc-paper, #F7F3EF);
	box-shadow: 0 -14px 26px -20px rgba(42, 27, 16, 0.30);
}

/* ------------------------------------------------------------------
 * Free-shipping progress (rendered by rm_child_cart_free_shipping_notice).
 * ------------------------------------------------------------------ */
.rm-mini-progress {
	margin-block-end: 6px;
	padding: 14px 16px;
	background: var(--rmc-cream, #EFEAE5);
	border-radius: 2px;
}

.rm-mini-progress__label {
	margin: 0 0 10px;
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 0.85rem;
	letter-spacing: 0.01em;
	color: var(--rmc-taupe, #725C4E);
}

.rm-mini-progress__label strong,
.rm-mini-progress__label .amount {
	color: var(--rmc-espresso, #422B1C);
	font-weight: 600;
}

.rm-mini-progress.is-done .rm-mini-progress__label {
	color: var(--rmc-espresso, #422B1C);
	font-weight: 500;
}

.rm-mini-progress__track {
	block-size: 4px;
	border-radius: 999px;
	background: rgba(197, 175, 158, 0.45);
	overflow: hidden;
}

.rm-mini-progress__fill {
	display: block;
	block-size: 100%;
	border-radius: 999px;
	background: var(--rmc-espresso, #422B1C);
	transform-origin: 100% 50%; /* grows from the right — RTL reading order */
	animation: rm-fill-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes rm-fill-in {
	from { transform: scaleX(0); }
}

/* ------------------------------------------------------------------
 * Item rows — card-like rows with hairline separators.
 * ------------------------------------------------------------------ */
.rm-cart-drawer .woocommerce-mini-cart,
.rm-cart-drawer ul.cart_list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rm-cart-drawer .woocommerce-mini-cart-item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding-block: 18px;
	border-block-end: 1px solid rgba(66, 43, 28, 0.08);
	font-size: 0.9rem;
	transition: opacity 0.25s ease;
}

/* Row fading out while its removal request is in flight (cart.js). */
.rm-cart-drawer .woocommerce-mini-cart-item.is-removing {
	opacity: 0.35;
	pointer-events: none;
}

.rm-mini-item__media {
	flex: none;
}

.rm-mini-item__media img {
	display: block;
	inline-size: 72px;
	block-size: auto;
	border-radius: 2px;
	background: var(--rmc-cream-warm, #E7DFDD);
}

.rm-mini-item__info {
	flex: 1;
	min-inline-size: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-inline-end: 24px; /* room for the remove × */
}

.rm-cart-drawer .rm-mini-item__name {
	display: block;
	color: var(--rmc-espresso, #422B1C);
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
}

.rm-cart-drawer a.rm-mini-item__name:hover {
	color: var(--rmc-taupe, #725C4E);
}

/* Variation / item meta printed by wc_get_formatted_cart_item_data(). */
.rm-cart-drawer .woocommerce-mini-cart-item dl.variation {
	margin: 0;
	font-size: 0.78rem;
	color: var(--rmc-taupe, #725C4E);
}

.rm-mini-item__line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-block-start: 2px;
}

.rm-mini-item__price {
	flex: none;
	color: var(--rmc-taupe, #725C4E);
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Elegant remove × — hairline circle on hover. */
.rm-cart-drawer .woocommerce-mini-cart-item a.remove {
	position: absolute;
	inset-inline-end: 0;
	inset-block-start: 18px;
	inline-size: 22px;
	block-size: 22px;
	line-height: 20px;
	text-align: center;
	border-radius: 50%;
	border: 1px solid transparent;
	color: var(--rmc-taupe, #725C4E) !important;
	font-size: 16px;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.rm-cart-drawer .woocommerce-mini-cart-item a.remove:hover {
	color: var(--rmc-espresso, #422B1C) !important;
	border-color: rgba(66, 43, 28, 0.30);
	background: transparent;
}

/* ------------------------------------------------------------------
 * Quantity stepper (− / value / +) — mini-cart.php override, cart.js.
 * ------------------------------------------------------------------ */
.rm-qty {
	flex: none;
	display: inline-flex;
	align-items: stretch;
	border: 1px solid rgba(66, 43, 28, 0.18);
	border-radius: 999px;
	background: var(--rmc-paper, #F7F3EF);
	overflow: hidden;
	line-height: 0; /* Kill inline-box gaps so the pill hugs its buttons. */
}

.rm-qty__btn {
	inline-size: 30px;
	block-size: 30px;
	display: grid;
	place-items: center;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	color: var(--rmc-taupe, #725C4E);
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1;
	-webkit-appearance: none;
	appearance: none;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.rm-qty__btn:hover {
	color: var(--rmc-espresso, #422B1C);
	background: var(--rmc-cream-warm, #E7DFDD);
}

.rm-qty__val {
	display: grid;
	place-items: center;
	min-inline-size: 30px;
	padding-inline: 2px;
	text-align: center;
	color: var(--rmc-espresso, #422B1C);
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------
 * Suggestions — "אולי יתאים לך גם" (rm_child_cart_suggestions_html).
 * ------------------------------------------------------------------ */
.rm-mini-suggest {
	margin-block-start: 24px;
}

.rm-mini-suggest__title {
	margin: 0 0 12px;
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--rmc-espresso, #422B1C);
}

.rm-mini-suggest__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rm-mini-suggest__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	background: rgba(231, 223, 221, 0.45);
	border-radius: 2px;
}

.rm-mini-suggest__media {
	flex: none;
	line-height: 0;
}

.rm-mini-suggest__media img {
	display: block;
	inline-size: 56px;
	block-size: auto;
	border-radius: 2px;
	background: var(--rmc-cream-warm, #E7DFDD);
}

.rm-mini-suggest__info {
	flex: 1;
	min-inline-size: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.rm-cart-drawer .rm-mini-suggest__name {
	color: var(--rmc-espresso, #422B1C);
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}

.rm-cart-drawer .rm-mini-suggest__name:hover {
	color: var(--rmc-taupe, #725C4E);
}

.rm-mini-suggest__price {
	color: var(--rmc-taupe, #725C4E);
	font-size: 0.82rem;
	font-variant-numeric: tabular-nums;
}

/* Quick-add: espresso outline circle that fills on hover. */
.rm-mini-suggest__add {
	flex: none;
	inline-size: 32px;
	block-size: 32px;
	padding: 0; /* Reset the global .button padding that was inflating this to an oval. */
	display: grid;
	place-items: center;
	background: transparent;
	border: 1px solid var(--rmc-espresso, #422B1C);
	border-radius: 50%;
	color: var(--rmc-espresso, #422B1C);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.rm-mini-suggest__add:hover,
.rm-mini-suggest__add.is-loading {
	background: var(--rmc-espresso, #422B1C);
	color: var(--rmc-cream, #EFEAE5);
}

.rm-mini-suggest__add.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* ------------------------------------------------------------------
 * Pinned foot: total + buttons.
 * ------------------------------------------------------------------ */
.rm-cart-drawer .woocommerce-mini-cart__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 0 0 14px;
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 1.05rem;
	color: var(--rmc-espresso, #422B1C);
}

.rm-cart-drawer .woocommerce-mini-cart__total .amount {
	font-size: 1.25rem;
}

.rm-cart-drawer .woocommerce-mini-cart__buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}

.rm-cart-drawer .woocommerce-mini-cart__buttons .button {
	width: 100%;
	text-align: center;
	padding: 13px 18px;
	border-radius: 2px;
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Primary — "למעבר לתשלום". */
.rm-cart-drawer .woocommerce-mini-cart__buttons .button.checkout {
	order: -1;
	background: var(--rmc-espresso, #422B1C) !important;
	color: var(--rmc-cream, #EFEAE5) !important;
	border: 1px solid var(--rmc-espresso, #422B1C) !important;
}

.rm-cart-drawer .woocommerce-mini-cart__buttons .button.checkout:hover {
	background: var(--rmc-espresso-deep, #2A1B10) !important;
	border-color: var(--rmc-espresso-deep, #2A1B10) !important;
}

/* Secondary — "צפייה בסל" reads as a quiet outline. */
.rm-cart-drawer .woocommerce-mini-cart__buttons .button:not(.checkout) {
	background: transparent !important;
	color: var(--rmc-espresso, #422B1C) !important;
	border: 1px solid rgba(66, 43, 28, 0.35) !important;
}

.rm-cart-drawer .woocommerce-mini-cart__buttons .button:not(.checkout):hover {
	border-color: var(--rmc-espresso, #422B1C) !important;
}

/* ------------------------------------------------------------------
 * Empty state — lotus motif + suggestions keep the drawer alive.
 * ------------------------------------------------------------------ */
.rm-mini-empty {
	text-align: center;
	padding: 36px 0 26px;
}

.rm-mini-empty__lotus {
	display: block;
	inline-size: 64px;
	block-size: auto;
	margin: 0 auto 14px;
	opacity: 0.35;
}

.rm-cart-drawer .woocommerce-mini-cart__empty-message {
	margin: 0 0 6px;
	color: var(--rmc-taupe, #725C4E);
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 1.05rem;
}

.rm-mini-empty__sub {
	margin: 0;
	color: var(--rmc-taupe, #725C4E);
	font-size: 0.85rem;
	opacity: 0.85;
}

/* ------------------------------------------------------------------
 * Open-motion polish — rows stagger-fade in while .is-anim is set
 * (toggled by cart.js for ~0.9s on open; transform/opacity only).
 * ------------------------------------------------------------------ */
.rm-cart-drawer.is-anim .rm-mini-progress,
.rm-cart-drawer.is-anim .woocommerce-mini-cart-item,
.rm-cart-drawer.is-anim .rm-mini-empty,
.rm-cart-drawer.is-anim .rm-mini-suggest {
	animation: rm-item-in 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.rm-cart-drawer.is-anim .rm-mini-progress { animation-delay: 0.05s; }
.rm-cart-drawer.is-anim .rm-mini-empty { animation-delay: 0.08s; }
.rm-cart-drawer.is-anim .woocommerce-mini-cart-item:nth-child(1) { animation-delay: 0.10s; }
.rm-cart-drawer.is-anim .woocommerce-mini-cart-item:nth-child(2) { animation-delay: 0.16s; }
.rm-cart-drawer.is-anim .woocommerce-mini-cart-item:nth-child(3) { animation-delay: 0.22s; }
.rm-cart-drawer.is-anim .woocommerce-mini-cart-item:nth-child(4) { animation-delay: 0.28s; }
.rm-cart-drawer.is-anim .woocommerce-mini-cart-item:nth-child(5) { animation-delay: 0.34s; }
.rm-cart-drawer.is-anim .woocommerce-mini-cart-item:nth-child(n+6) { animation-delay: 0.40s; }
.rm-cart-drawer.is-anim .rm-mini-suggest { animation-delay: 0.30s; }

@keyframes rm-item-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

/* Toast — small centered pill at the top, replaces the full-width WC banner. */
.rm-toast-host {
	position: fixed;
	inset-block-start: 18px;
	inset-inline: 0;
	z-index: 10001;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	pointer-events: none;
}

.rm-toast {
	background: var(--rmc-espresso, #422B1C);
	color: var(--rmc-cream, #EFEAE5);
	padding: 12px 24px;
	border-radius: 999px;
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 0.9rem;
	letter-spacing: 0.02em;
	box-shadow: 0 14px 34px -12px rgba(42, 27, 16, 0.5);
	opacity: 0;
	transform: translateY(-12px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.rm-toast.is-in {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.rm-cart-drawer__panel,
	.rm-cart-drawer__overlay,
	.rm-cart-drawer__content,
	.rm-cart-drawer .woocommerce-mini-cart-item,
	.rm-qty__btn,
	.rm-mini-suggest__add,
	.rm-cart-drawer .woocommerce-mini-cart__buttons .button,
	.rm-toast { transition: none; }

	.rm-cart-drawer__close:hover { transform: none; }

	.rm-mini-progress__fill,
	.rm-cart-drawer.is-anim .rm-mini-progress,
	.rm-cart-drawer.is-anim .woocommerce-mini-cart-item,
	.rm-cart-drawer.is-anim .rm-mini-empty,
	.rm-cart-drawer.is-anim .rm-mini-suggest { animation: none; }
}

/* ==================================================================
 * Shop category dropdown ("חנות" → 4 super-groups)
 * Desktop: hover / focus-within mega-panel. Mobile: JS-expanded block
 * inside the slide-down panel (the .rm-submenu-toggle button drives it).
 * ================================================================== */

/* --- Caret next to "חנות" (desktop only) --- */
.rm-menu__caret {
	display: inline-block;
	inline-size: 0;
	block-size: 0;
	margin-inline-start: 6px;
	vertical-align: middle;
	border-inline: 4px solid transparent;
	border-block-start: 5px solid currentColor;
	opacity: 0.7;
	transition: transform 0.25s var(--rmc-ease);
}

/* The mobile expand button is hidden on desktop; the caret handles the cue. */
.rm-submenu-toggle {
	display: none;
}

/* ---------- Desktop dropdown ---------- */
.rm-nav .rm-menu__shop {
	position: relative;
}

.rm-nav .rm-submenu {
	position: absolute;
	inset-block-start: calc(100% + 14px);
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	z-index: 30;
	display: grid;
	grid-template-columns: repeat(2, minmax(150px, 1fr));
	gap: 6px 30px;
	min-inline-size: 440px;
	margin: 0;
	padding: 24px 28px;
	list-style: none;
	background: var(--rmc-cream, #EFEAE5);
	border: 1px solid rgba(66, 43, 28, 0.08);
	border-radius: 16px;
	box-shadow: 0 26px 46px -26px rgba(42, 27, 16, 0.5);
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.26s var(--rmc-ease),
		transform 0.26s var(--rmc-ease),
		visibility 0s linear 0.26s;
}

/* Transparent hover bridge so the 14px gap doesn't drop the hover. */
.rm-nav .rm-submenu::before {
	content: "";
	position: absolute;
	inset-block-end: 100%;
	inset-inline: 0;
	block-size: 16px;
}

.rm-nav .rm-menu__shop:hover .rm-submenu,
.rm-nav .rm-menu__shop:focus-within .rm-submenu {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
	transition:
		opacity 0.26s var(--rmc-ease),
		transform 0.26s var(--rmc-ease),
		visibility 0s;
}

.rm-nav .rm-menu__shop:hover .rm-menu__caret,
.rm-nav .rm-menu__shop:focus-within .rm-menu__caret {
	transform: rotate(180deg);
}

/* Group heading + its category links */
.rm-submenu__group {
	margin: 0;
}

.rm-submenu__title {
	display: block;
	margin-block-end: 6px;
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--rmc-taupe);
	text-transform: none;
}

.rm-submenu__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rm-nav .rm-submenu__item a {
	display: block;
	padding-block: 5px;
	font-size: 0.95rem;
	font-weight: 400;
	color: var(--rmc-espresso);
	white-space: nowrap;
}

.rm-nav .rm-submenu__item a::after {
	inset-block-end: 2px;
}

/* ---------- Mobile: expandable block in the slide-down panel ---------- */
.rm-menu--mobile .rm-menu__shop {
	position: relative;
}

/* The button sits over the row's inline-end so tapping it expands the list
   while the "חנות" text itself still links through to the shop page. */
.rm-menu--mobile .rm-submenu-toggle {
	display: block;
	position: absolute;
	inset-block-start: 0;
	inset-inline-end: 0;
	inline-size: 56px;
	block-size: 56px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.rm-menu--mobile .rm-submenu-toggle::before,
.rm-menu--mobile .rm-submenu-toggle::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 20px;
	inline-size: 14px;
	block-size: 2px;
	background: var(--rmc-espresso);
	transition: transform 0.25s var(--rmc-ease);
}

/* Vertical bar of the "+" — rotated away when open to read as "–". */
.rm-menu--mobile .rm-submenu-toggle::after {
	transform: rotate(90deg);
}

.rm-menu--mobile .rm-menu__shop.is-open .rm-submenu-toggle::after {
	transform: rotate(0deg);
}

.rm-menu--mobile .rm-menu__caret {
	display: none;
}

.rm-menu--mobile .rm-submenu {
	margin: 0;
	padding: 0;
	list-style: none;
	overflow: hidden;
	max-block-size: 0;
	transition: max-block-size 0.32s var(--rmc-ease);
}

.rm-menu--mobile .rm-menu__shop.is-open .rm-submenu {
	/* Ceiling clears the 4 groups with headroom for narrow-screen wrapping
	   (content is ~800px at desktop metrics, taller when items wrap at 375px). */
	max-block-size: 1600px;
}

.rm-menu--mobile .rm-submenu__group {
	padding-block: 10px 4px;
	padding-inline-start: 14px;
	border-block-start: 1px solid rgba(66, 43, 28, 0.06);
}

.rm-menu--mobile .rm-submenu__title {
	margin-block-end: 2px;
	font-size: 0.875rem;
}

.rm-menu--mobile .rm-submenu__item a {
	padding-block: 9px;
	padding-inline-start: 6px;
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 1.0625rem;
	font-weight: 400;
}

/* ---- Mini-cart "continue shopping" ---------------------------------------
   Client request: after add-to-cart the drawer opens and there was no obvious
   route back to browsing. Quiet tertiary action under the two primary buttons.
   -------------------------------------------------------------------------- */
.rm-mini-continue {
	margin: 10px 0 0;
	text-align: center;
}

.rm-mini-continue__btn {
	display: inline-block;
	padding: 10px 18px;
	background: transparent;
	border: 0;
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 0.9375rem;
	color: var(--rmc-taupe);
	text-decoration: underline;
	text-underline-offset: 0.25em;
	cursor: pointer;
	transition: color 0.25s var(--rmc-ease);
}

.rm-mini-continue__btn:hover,
.rm-mini-continue__btn:focus-visible {
	color: var(--rmc-espresso);
}

.rm-mini-continue__btn:focus-visible {
	outline: 2px solid var(--rmc-taupe);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Mobile keeps the compact single-row bar — the two-row height is a desktop
   affordance only (the nav row is hidden below 920px). */
@media (max-width: 920px) {
	:root {
		--rmc-bar-h: 84px;
	}
}

/* ---- Mobile tap targets in the cart drawer -------------------------------
   The close "×" and the per-item remove control were both under 24px, which is
   fiddly on a phone. Enlarged without changing their visual weight — the extra
   size is padding, so the glyph stays the same.
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.rm-cart-drawer__close {
		min-inline-size: 40px;
		min-block-size: 40px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.rm-cart-drawer a.remove,
	.woocommerce-mini-cart a.remove {
		inline-size: 28px;
		block-size: 28px;
		line-height: 28px;
		font-size: 18px;
	}
}

/* The remove control appears in the drawer, the mini-cart widget and the cart
   table with different ancestors; target it directly on small screens. */
@media (max-width: 768px) {
	a.remove {
		inline-size: 28px !important;
		block-size: 28px !important;
		line-height: 26px !important;
		font-size: 18px !important;
	}
}

/* ---- Language toggle -----------------------------------------------------
   Sits in the header icon cluster. Kept as a compact pill so it reads as a
   control rather than another nav link, and stays legible in both directions.
   -------------------------------------------------------------------------- */
.rm-lang-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-inline-size: 44px;
	block-size: 32px;
	padding-inline: 10px;
	border: 1px solid var(--rmc-taupe);
	border-radius: 999px;
	font-family: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--rmc-espresso);
	text-decoration: none;
	transition: background-color 0.25s var(--rmc-ease), color 0.25s var(--rmc-ease);
}

.rm-lang-toggle:hover,
.rm-lang-toggle:focus-visible {
	background: var(--rmc-espresso);
	color: var(--rmc-cream);
}

.rm-lang-toggle:focus-visible {
	outline: 2px solid var(--rmc-taupe);
	outline-offset: 3px;
}

/* In English the whole document flips to LTR; the logical properties handle
   the mirror, this only re-anchors the one place that reads as a pair. */
.rm-lang-en .rm-name-en {
	direction: rtl;
}
