/**
 * Rachel Mizrahi — brand design system (Astra child override layer).
 *
 * Loaded after astra-theme-css. Astra prints its Customizer settings as
 * inline CSS (wp_add_inline_style on 'astra-theme-css'), which always wins
 * over same-specificity rules from this file — therefore !important is used
 * SURGICALLY on colors, fonts and backgrounds that the Customizer inlines,
 * and avoided everywhere else. Layout/spacing rules rely on specificity only.
 *
 * The site runs RTL (Hebrew). Logical properties (margin-inline-*,
 * padding-inline-*, inset-inline-*, border-inline-*) are used wherever
 * direction matters, so the same rules hold if an LTR locale is ever added.
 *
 * TABLE OF CONTENTS
 *  a. Tokens + base (body, headings, links)
 *  b. Header (thin sticky bar, menu underlines, cart badge)
 *  c. Buttons (global + WooCommerce)
 *  d. Shop archive / catalog (cards, badge, ordering, pagination, breadcrumbs)
 *  e. Single product (gallery, title, price, variations, quantity, tabs, related)
 *  f. Cart page
 *  g. Checkout
 *  h. My Account
 *  i. WooCommerce notices
 *  j. Spectra (.uagb-*) + Gutenberg core blocks
 *  k. Content pages + footer
 *  l. RTL safety notes (logical properties are applied inline in each section)
 *  m. Accessibility: focus-visible + reduced motion
 *  n. Front page (front-page.php rm- sections: announcement bar, light hero,
 *     category tiles, new products, quiz strip — shop-first, light catalog look)
 */

/* ==========================================================================
   a. Tokens + base
   ========================================================================== */

:root {
	/* Light beige / white neutral palette (round 5). Page grounds are the two
	   warm neutrals --rm-paper / --rm-cream; espresso is reserved for headings,
	   strong text and buttons — never as a large background. */
	--rm-paper: #F7F3EF;        /* Primary page background — soft warm white. */
	--rm-cream: #EFEAE5;        /* Alternating section background. */
	--rm-cream-warm: #E7DFDD;   /* Tiles / media wells (a touch deeper). */
	--rm-beige: #C5AF9E;        /* Thin bands, motifs, hovers. */
	--rm-taupe: #725C4E;        /* Secondary text, prices, hovers. */
	--rm-taupe-soft: #8C7361;   /* Lighter taupe companion. */
	--rm-espresso: #422B1C;     /* Headings, strong text, buttons ONLY. */
	--rm-charcoal: #5A5A58;
	--rm-body: #4A4038;         /* Body text — warm, high contrast. */
	--rm-white: #ffffff;

	/* Site-wide typeface: Calibri, per the owner's request. Calibri is a
	   proprietary Microsoft font (no webfont), so it renders only where it is
	   installed — chiefly Windows/Office. The fallbacks keep the look close and
	   Hebrew-legible everywhere else: Segoe UI (Windows Hebrew), Carlito (an
	   open metric-compatible Calibri clone, Latin only), then Arial / system.
	   All four former roles (serif / display / latin / body) now resolve to the
	   same stack so the whole site is one typeface. */
	--rm-font-calibri: Calibri, 'Segoe UI', Carlito, 'Helvetica Neue', Arial, sans-serif;
	--rm-font-serif: var(--rm-font-calibri);
	--rm-font-display: var(--rm-font-calibri);
	--rm-font-latin-serif: var(--rm-font-calibri);
	--rm-font-body: var(--rm-font-calibri);

	--rm-radius: 2px;
	--rm-border-soft: rgba(66, 43, 28, 0.08);
	--rm-border-mid: rgba(66, 43, 28, 0.16);
	--rm-shadow-soft: 0 18px 40px -24px rgba(66, 43, 28, 0.35);
	--rm-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body,
button,
input,
select,
textarea,
.ast-single-post .entry-content {
	font-family: var(--rm-font-body) !important; /* Customizer inlines body font. */
}

/* Full-bleed sections use `width: 100vw; margin-inline: calc(50% - 50vw)`.
   100vw includes the scrollbar gutter, so each full-bleed band overhangs the
   content box by the scrollbar width and creates a stray horizontal scroll.
   Clip it with overflow-x: clip — unlike overflow-x: hidden it does NOT turn
   <html> into a scroll container, so the sticky header keeps working. */
html {
	overflow-x: clip;
}

body {
	background-color: var(--rm-paper) !important; /* Customizer inlines site bg. */
	color: var(--rm-body) !important;
	font-weight: 400;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .comments-area,
.ast-separate-container .ast-woocommerce-container {
	background-color: transparent;
	border: none;
	box-shadow: none;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.entry-title a,
.site-title,
.site-title a {
	font-family: var(--rm-font-serif) !important; /* Customizer inlines heading font. */
	color: var(--rm-espresso) !important;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0.01em;
}

/* Body links: taupe with an animated underline reveal. */
.entry-content a:not(.button):not(.ast-button):not(.wp-block-button__link),
.woocommerce-info a,
.woocommerce-message a,
.rm-link {
	color: var(--rm-taupe);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: bottom left; /* Physical is fine: full-width sweep. */
	background-size: 0% 1px;
	transition: background-size 0.35s var(--rm-ease), color 0.2s ease;
	padding-bottom: 1px;
}

.entry-content a:not(.button):not(.ast-button):not(.wp-block-button__link):hover,
.woocommerce-info a:hover,
.woocommerce-message a:hover,
.rm-link:hover {
	color: var(--rm-espresso);
	background-size: 100% 1px;
}

::selection {
	background: var(--rm-beige);
	color: var(--rm-espresso);
}

/* ==========================================================================
   b. Header — thin, blurred, sticky
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 99;
}

.site-header,
.ast-primary-header-bar,
.ast-primary-header-bar .site-primary-header-wrap,
.ast-above-header-bar,
.ast-header-break-point .main-header-bar,
.ast-mobile-header-wrap .ast-main-header-wrap {
	background: rgba(239, 234, 229, 0.92) !important; /* Customizer inlines header bg. */
}

.site-header {
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--rm-border-soft);
}

.ast-primary-header-bar {
	border-bottom: none;
}

/* Thin bar. */
.ast-primary-header-bar .site-primary-header-wrap {
	min-height: 64px;
}

.site-header .site-logo-img img {
	max-height: 44px;
	width: auto;
}

/* Menu: small caps rhythm + animated underline. */
.main-header-menu .menu-item > .menu-link {
	font-family: var(--rm-font-body);
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: var(--rm-espresso) !important; /* Customizer inlines menu color. */
	position: relative;
}

.main-header-menu .menu-item > .menu-link::after {
	content: "";
	position: absolute;
	inset-inline: 1em;
	bottom: 0.55em;
	height: 1px;
	background: var(--rm-taupe);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.3s var(--rm-ease);
}

.main-header-menu .menu-item > .menu-link:hover,
.main-header-menu .menu-item.current-menu-item > .menu-link {
	color: var(--rm-taupe) !important;
	background: transparent;
}

.main-header-menu .menu-item > .menu-link:hover::after,
.main-header-menu .menu-item.current-menu-item > .menu-link::after {
	transform: scaleX(1);
}

/* Dropdowns: flat cream panels. */
.main-header-menu .sub-menu {
	background: var(--rm-cream) !important;
	border: 1px solid var(--rm-border-soft);
	box-shadow: var(--rm-shadow-soft);
}

.main-header-menu .sub-menu .menu-link {
	color: var(--rm-espresso) !important;
	border-bottom: 1px solid var(--rm-border-soft);
}

.main-header-menu .sub-menu .menu-link:hover {
	color: var(--rm-taupe) !important;
	background: var(--rm-cream-warm) !important;
}

/* Header cart icon + count badge (Astra: .ast-site-header-cart / .ast-cart-menu-wrap .count). */
.ast-site-header-cart a,
.ast-site-header-cart .ast-cart-menu-wrap {
	color: var(--rm-espresso) !important;
}

.ast-cart-menu-wrap .count,
.ast-cart-menu-wrap .count:after,
.ast-addon-cart-wrap .ast-count-text {
	color: var(--rm-espresso) !important;
	border-color: var(--rm-beige) !important;
}

.ast-cart-menu-wrap:hover .count {
	background-color: var(--rm-beige) !important;
	color: var(--rm-espresso) !important;
}

.ast-addon-cart-wrap {
	color: var(--rm-espresso) !important;
}

/* Mobile toggle. */
.ast-header-break-point .ast-mobile-menu-trigger-minimal,
.ast-header-break-point .menu-toggle {
	color: var(--rm-espresso) !important;
	background: transparent !important;
}

/* ==========================================================================
   c. Buttons — rectangular, espresso, hover taupe
   ========================================================================== */

.ast-button,
.button,
button[type="submit"],
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.wp-block-search__button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce .single_add_to_cart_button,
.woocommerce .checkout-button,
.woocommerce #place_order,
.wc-block-components-button,
.rm-btn {
	background-color: var(--rm-espresso) !important; /* Astra inlines button colors. */
	color: var(--rm-cream) !important;
	border: 1px solid var(--rm-espresso) !important;
	border-radius: var(--rm-radius) !important;
	font-family: var(--rm-font-body) !important;
	font-weight: 500;
	font-size: 0.92rem;
	letter-spacing: 0.08em;
	padding: 14px 34px;
	line-height: 1.4;
	text-decoration: none;
	box-shadow: none;
	transition: background-color 0.25s var(--rm-ease), border-color 0.25s var(--rm-ease), color 0.25s var(--rm-ease), transform 0.25s var(--rm-ease);
}

.ast-button:hover,
.ast-button:focus,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover,
.wp-block-search__button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce .checkout-button:hover,
.woocommerce #place_order:hover,
.wc-block-components-button:hover,
.rm-btn:hover {
	background-color: var(--rm-taupe) !important;
	border-color: var(--rm-taupe) !important;
	color: var(--rm-cream) !important;
	transform: translateY(-1px);
}

.woocommerce a.button.disabled,
.woocommerce button.button.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled] {
	background-color: var(--rm-beige) !important;
	border-color: var(--rm-beige) !important;
	color: var(--rm-espresso) !important;
	opacity: 0.7;
}

/* Outline (secondary) variant — used on front page and reusable in content. */
.rm-btn--outline {
	background-color: transparent !important;
	color: var(--rm-espresso) !important;
	border: 1px solid var(--rm-espresso) !important;
}

.rm-btn--outline:hover {
	background-color: var(--rm-espresso) !important;
	color: var(--rm-cream) !important;
}

/* ==========================================================================
   d. Shop archive / catalog
   ========================================================================== */

/* Borderless cards: edge-to-edge image, no chrome. */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	overflow: visible;
	text-align: start;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
	border: none;
	border-radius: var(--rm-radius);
	box-shadow: none;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
	overflow: hidden;
	background: var(--rm-cream-warm);
	margin-bottom: 20px;
}

.woocommerce ul.products li.product a img {
	transition: transform 0.7s var(--rm-ease);
	margin-bottom: 0;
	display: block;
	width: 100%;
}

/* Uniform packshots. The supplier images arrive on white, off-white, grey and
   transparent grounds, and one is portrait — side by side the grid looked
   patchy. Multiply lets every white ground take the well colour, and
   contain + padding gives every product the same square frame. */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img {
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: contain;
	padding: 6%;
	box-sizing: border-box;
	mix-blend-mode: multiply;
}

.woocommerce ul.products li.product:hover a img,
.woocommerce ul.products li.product a:focus-visible img {
	transform: scale(1.04);
}

.woocommerce ul.products li.product .astra-shop-summary-wrap {
	padding-inline: 2px;
}

/* Card title: serif, thin taupe underline sweep on card hover. */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-category__title {
	font-family: var(--rm-font-serif) !important;
	font-size: 1.15rem;
	font-weight: 500;
	color: var(--rm-espresso) !important;
	padding: 0;
	margin-bottom: 6px;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap > a {
	text-decoration: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	display: inline;
	background-image: linear-gradient(var(--rm-taupe), var(--rm-taupe));
	background-repeat: no-repeat;
	background-position: bottom left;
	background-size: 0% 1px;
	transition: background-size 0.4s var(--rm-ease);
	padding-bottom: 2px;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
	background-size: 100% 1px;
}

/* Price: taupe, quiet. */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .amount {
	color: var(--rm-taupe) !important;
	font-family: var(--rm-font-body);
	font-weight: 500;
	font-size: 1rem;
	letter-spacing: 0.02em;
}

.woocommerce ul.products li.product .price del {
	color: var(--rm-charcoal) !important;
	opacity: 0.6;
	margin-inline-end: 6px;
}

.woocommerce ul.products li.product .price ins {
	text-decoration: none;
}

/* Category label above title (Astra structure option). */
/*
 * Product-card category label.
 *
 * Astra ships this at opacity .6, which renders #5A5A58 as an effective #999794
 * on the cream card — 2.63:1, well under the 4.5:1 that WCAG 2.0 AA (and so
 * IS 5568) requires for text this size. Forcing opacity back to 1 restores the
 * real colour and measures 6.27:1; the label still reads as secondary because it
 * is small, uppercase and letter-spaced, so nothing is lost visually.
 */
.woocommerce ul.products li.product .ast-woo-product-category,
.rm-catalog ul.products li.product .ast-woo-product-category,
.rm-featured ul.products li.product .ast-woo-product-category,
body.single-product .related.products li.product .ast-woo-product-category {
	opacity: 1;
}

.woocommerce ul.products li.product .ast-woo-product-category {
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rm-charcoal);
}

/* Sale badge: rectangular espresso chip, logical positioning for RTL. */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
	background: var(--rm-espresso) !important;
	color: var(--rm-cream) !important;
	border-radius: var(--rm-radius);
	font-family: var(--rm-font-body);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1;
	min-height: 0;
	min-width: 0;
	padding: 8px 14px;
	position: absolute;
	top: 14px;
	inset-inline-start: 14px;
	left: auto;
	right: auto;
	margin: 0;
	z-index: 3;
}

/* Result count + ordering: minimal. */
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
	color: var(--rm-charcoal);
	font-size: 0.85rem;
	letter-spacing: 0.04em;
}

.woocommerce .woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select,
.woocommerce select.orderby {
	background-color: transparent;
	border: none;
	border-bottom: 1px solid var(--rm-border-mid);
	border-radius: 0;
	color: var(--rm-espresso);
	font-size: 0.85rem;
	padding: 6px 2px;
	box-shadow: none;
}

/* Pagination: minimal taupe. */
.woocommerce nav.woocommerce-pagination ul,
.ast-pagination {
	border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: none;
	background: transparent;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.ast-pagination .page-numbers {
	background: transparent !important;
	border: none;
	border-bottom: 1px solid transparent;
	border-radius: 0;
	color: var(--rm-taupe) !important;
	font-family: var(--rm-font-body);
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	padding: 8px 12px;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.ast-pagination .page-numbers:hover {
	color: var(--rm-espresso) !important;
	border-bottom-color: var(--rm-taupe);
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.ast-pagination .page-numbers.current {
	color: var(--rm-espresso) !important;
	border-bottom-color: var(--rm-espresso);
	font-weight: 600;
}

/* Breadcrumbs — both WooCommerce's and Astra's addon markup. */
.woocommerce .woocommerce-breadcrumb,
.ast-breadcrumbs-wrapper,
.ast-breadcrumbs .trail-items,
.ast-breadcrumbs .trail-items li {
	color: var(--rm-charcoal) !important;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
}

.woocommerce .woocommerce-breadcrumb a,
.ast-breadcrumbs-wrapper a,
.ast-breadcrumbs .trail-items a {
	color: var(--rm-charcoal) !important;
	text-decoration: none;
	transition: color 0.2s ease;
}

.woocommerce .woocommerce-breadcrumb a:hover,
.ast-breadcrumbs-wrapper a:hover,
.ast-breadcrumbs .trail-items a:hover {
	color: var(--rm-taupe) !important;
}

/* Shop page title. */
.woocommerce-products-header__title.page-title,
.ast-woocommerce-container .page-title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 400;
}

/* Star ratings in brand taupe. */
.woocommerce .star-rating,
.woocommerce .star-rating::before,
.woocommerce p.stars a {
	color: var(--rm-taupe) !important;
}

/* ==========================================================================
   e. Single product
   ========================================================================== */

/* Gallery: clean, no borders. */
.woocommerce div.product div.images img,
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .woocommerce-product-gallery__image {
	border: none;
	border-radius: var(--rm-radius);
	box-shadow: none;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image {
	overflow: hidden;
	background: var(--rm-cream-warm);
}

.woocommerce div.product div.images .flex-control-thumbs li img {
	border: 1px solid transparent;
	border-radius: var(--rm-radius);
	opacity: 0.65;
	transition: opacity 0.25s ease, border-color 0.25s ease;
}

.woocommerce div.product div.images .flex-control-thumbs li img:hover,
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
	border-color: var(--rm-taupe);
	opacity: 1;
}

/* Title + price. */
.woocommerce div.product .product_title {
	font-size: clamp(1.9rem, 3.5vw, 2.6rem);
	font-weight: 400;
	margin-bottom: 0.4em;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce div.product p.price .amount,
.woocommerce div.product span.price .amount {
	color: var(--rm-taupe) !important;
	font-family: var(--rm-font-serif);
	font-size: 1.5rem;
	font-weight: 500;
}

.woocommerce div.product p.price del {
	opacity: 0.55;
	font-size: 0.8em;
}

.woocommerce div.product p.price ins {
	text-decoration: none;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	color: var(--rm-body);
	font-size: 1.02rem;
	line-height: 1.85;
}

/* Variations: minimal 1px-bottom-border controls. */
.woocommerce div.product form.cart table.variations,
.woocommerce div.product form.cart table.variations td,
.woocommerce div.product form.cart table.variations th {
	border: none;
	background: transparent;
}

.woocommerce div.product form.cart table.variations label {
	color: var(--rm-espresso);
	font-weight: 500;
	font-size: 0.9rem;
	letter-spacing: 0.04em;
}

.woocommerce div.product form.cart .variations select,
.woocommerce div.product form.cart select {
	background-color: transparent;
	border: none;
	border-bottom: 1px solid var(--rm-border-mid);
	border-radius: 0;
	color: var(--rm-espresso);
	padding: 8px 2px;
	transition: border-color 0.2s ease;
}

.woocommerce div.product form.cart .variations select:focus {
	border-bottom-color: var(--rm-taupe);
	outline: none;
}

.woocommerce div.product form.cart .reset_variations {
	color: var(--rm-charcoal);
	font-size: 0.8rem;
}

/* Quantity: minimal. */
.woocommerce .quantity .qty,
.woocommerce-page .quantity .qty {
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--rm-border-mid);
	border-radius: 0;
	color: var(--rm-espresso);
	font-family: var(--rm-font-body);
	font-size: 1rem;
	padding: 8px 4px;
	transition: border-color 0.2s ease;
}

.woocommerce .quantity .qty:focus {
	border-bottom-color: var(--rm-taupe);
	outline: none;
	box-shadow: none;
}

/* Meta (SKU / categories). */
.woocommerce div.product .product_meta {
	border-top: 1px solid var(--rm-border-soft);
	padding-top: 18px;
	color: var(--rm-charcoal);
	font-size: 0.82rem;
	letter-spacing: 0.05em;
}

.woocommerce div.product .product_meta a {
	color: var(--rm-taupe);
	text-decoration: none;
}

/* Tabs → minimal underline tabs. */
.woocommerce div.product .woocommerce-tabs ul.tabs {
	padding: 0;
	margin: 0 0 2em;
	border-bottom: 1px solid var(--rm-border-soft);
	background: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: transparent !important;
	border: none;
	border-radius: 0;
	margin: 0;
	margin-inline-end: 8px;
	padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	color: var(--rm-charcoal) !important;
	font-family: var(--rm-font-body);
	font-weight: 500;
	font-size: 0.92rem;
	letter-spacing: 0.08em;
	padding: 14px 18px;
	border-bottom: 1px solid transparent;
	margin-bottom: -1px;
	display: inline-block;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--rm-taupe) !important;
	border-bottom-color: var(--rm-taupe);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--rm-espresso) !important;
	border-bottom-color: var(--rm-espresso);
}

.woocommerce div.product .woocommerce-tabs .panel {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
	font-size: 1.3rem;
}

/* Related / upsells: inherit the card treatment (section d) + serif heading. */
.woocommerce .related.products > h2,
.woocommerce .up-sells > h2,
.woocommerce .cross-sells > h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 400;
	margin-bottom: 1.4em;
}

/* Reviews. */
.woocommerce #reviews #comments ol.commentlist li img.avatar {
	border: none;
	border-radius: 50%;
	background: var(--rm-cream-warm);
	padding: 0;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
	border: 1px solid var(--rm-border-soft);
	border-radius: var(--rm-radius);
	background: var(--rm-cream-warm);
}

/* ==========================================================================
   f. Cart page
   ========================================================================== */

.woocommerce table.shop_table {
	border: none;
	border-radius: 0;
	border-collapse: collapse;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border: none;
	border-bottom: 1px solid var(--rm-border-soft);
	background: transparent;
	padding: 18px 12px;
}

.woocommerce table.shop_table thead th {
	color: var(--rm-espresso);
	font-family: var(--rm-font-body);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--rm-border-mid);
}

.woocommerce table.cart img,
.woocommerce-page table.cart img {
	border-radius: var(--rm-radius);
	background: var(--rm-cream-warm);
}

.woocommerce table.cart td.product-name a,
.woocommerce-page table.cart td.product-name a {
	color: var(--rm-espresso);
	font-family: var(--rm-font-serif);
	font-size: 1.05rem;
	text-decoration: none;
}

.woocommerce table.cart td.product-name a:hover {
	color: var(--rm-taupe);
}

.woocommerce table.cart .product-price .amount,
.woocommerce table.cart .product-subtotal .amount {
	color: var(--rm-taupe);
	font-weight: 500;
}

.woocommerce a.remove {
	color: var(--rm-charcoal) !important;
	background: transparent;
	transition: color 0.2s ease;
}

.woocommerce a.remove:hover {
	color: var(--rm-espresso) !important;
	background: transparent !important;
}

/* Coupon input: minimal. */
.woocommerce table.cart td.actions .coupon .input-text,
.woocommerce-page table.cart td.actions .coupon .input-text {
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--rm-border-mid);
	border-radius: 0;
	color: var(--rm-espresso);
	padding: 10px 4px;
	margin-inline-end: 12px;
	transition: border-color 0.2s ease;
}

.woocommerce table.cart td.actions .coupon .input-text:focus {
	border-bottom-color: var(--rm-taupe);
	outline: none;
	box-shadow: none;
}

/* Totals box: cream-warm tile. */
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
	background: var(--rm-cream-warm);
	border: none;
	border-radius: var(--rm-radius);
	padding: 32px;
}

.woocommerce .cart-collaterals .cart_totals h2 {
	font-size: 1.35rem;
	font-weight: 500;
	margin-top: 0;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table th,
.woocommerce .cart-collaterals .cart_totals table.shop_table td {
	border-bottom-color: rgba(66, 43, 28, 0.1);
}

.woocommerce .cart-collaterals .cart_totals .order-total .amount {
	color: var(--rm-espresso);
	font-family: var(--rm-font-serif);
	font-size: 1.25rem;
}

.woocommerce .wc-proceed-to-checkout {
	padding-top: 1.5em;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button {
	display: block;
	text-align: center;
	font-size: 1rem;
}

/* Cross-sells under cart reuse the card grid from section d. */

/* ==========================================================================
   g. Checkout
   ========================================================================== */

/* Fields: minimal — 1px bottom border, taupe focus. Scoped to Woo wrappers so
   Spectra/other plugin form UIs are untouched. */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row textarea,
.select2-container--default .select2-selection--single {
	background: transparent !important;
	border: none !important;
	border-bottom: 1px solid var(--rm-border-mid) !important; /* Astra inlines input borders. */
	border-radius: 0 !important;
	color: var(--rm-espresso) !important;
	box-shadow: none !important;
	padding: 12px 4px;
	transition: border-color 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
	border-bottom-color: var(--rm-taupe) !important;
	outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--rm-espresso);
	padding-inline-start: 4px;
}

.select2-dropdown {
	background: var(--rm-cream);
	border: 1px solid var(--rm-border-soft);
	border-radius: var(--rm-radius);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background-color: var(--rm-cream-warm);
	color: var(--rm-espresso);
}

.woocommerce form .form-row label {
	color: var(--rm-charcoal);
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.06em;
}

.woocommerce form .form-row .required {
	color: var(--rm-taupe);
}

#customer_details h3,
.woocommerce-checkout #order_review_heading {
	font-size: 1.35rem;
	font-weight: 500;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--rm-border-soft);
}

/* Order review: cream-warm tile. */
.woocommerce-checkout #order_review {
	background: var(--rm-cream-warm);
	border-radius: var(--rm-radius);
	padding: 32px;
}

.woocommerce-checkout #order_review table.shop_table {
	background: transparent;
	border: none;
}

.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
	border-bottom-color: rgba(66, 43, 28, 0.1);
}

/* Payment box: clean, flat. */
.woocommerce-checkout #payment {
	background: transparent;
	border-radius: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
	border-bottom: 1px solid var(--rm-border-soft);
	padding: 0 0 1em;
}

.woocommerce-checkout #payment ul.payment_methods li {
	line-height: 1.6;
}

.woocommerce-checkout #payment div.payment_box {
	background: rgba(255, 255, 255, 0.55);
	border-radius: var(--rm-radius);
	color: var(--rm-body);
}

.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: rgba(255, 255, 255, 0.55);
}

/* Place order: prominent espresso, full width. */
.woocommerce-checkout #payment #place_order {
	width: 100%;
	font-size: 1.02rem;
	padding: 18px 34px;
	float: none;
}

/* ==========================================================================
   h. My Account
   ========================================================================== */

.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-inline-end: 1px solid var(--rm-border-soft);
}

.woocommerce-MyAccount-navigation ul li {
	list-style: none;
	border: none;
}

.woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: 12px 4px;
	color: var(--rm-charcoal);
	font-size: 0.92rem;
	letter-spacing: 0.05em;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover {
	color: var(--rm-taupe);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
	color: var(--rm-espresso);
	font-weight: 600;
}

.woocommerce-MyAccount-content {
	color: var(--rm-body);
}

.woocommerce-MyAccount-content .woocommerce-table--order-details,
.account-orders-table {
	font-size: 0.95rem;
}

.woocommerce-account .addresses .title h3 {
	font-size: 1.15rem;
}

.woocommerce-account .woocommerce-Address,
.woocommerce-account .addresses .title + address {
	background: var(--rm-cream-warm);
	border-radius: var(--rm-radius);
	padding: 24px;
	border: none;
	font-style: normal;
}

/* Login/register forms. */
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.checkout_coupon {
	border: 1px solid var(--rm-border-soft);
	border-radius: var(--rm-radius);
	background: var(--rm-cream-warm);
	padding: 32px;
}

/* ==========================================================================
   i. WooCommerce notices — flat brand tiles
   ========================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
	background-color: var(--rm-cream-warm) !important;
	color: var(--rm-espresso) !important;
	border-top: none;
	border-radius: var(--rm-radius);
	border-inline-start: 3px solid var(--rm-taupe);
	padding: 18px 24px;
	padding-inline-start: 24px;
	font-size: 0.95rem;
	box-shadow: none;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-error li::before {
	color: var(--rm-taupe) !important;
	position: static;
	margin-inline-end: 8px;
	display: none; /* Drop the default icon; the border carries the accent. */
}

.woocommerce-error {
	border-inline-start-color: var(--rm-espresso);
}

.woocommerce-error li {
	margin: 0;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	padding: 10px 22px;
	font-size: 0.82rem;
}

/* Store notice (demo banner) — soft beige band, espresso text (never dark). */
.woocommerce-store-notice,
p.demo_store {
	background: var(--rm-beige) !important;
	color: var(--rm-espresso) !important;
}

/* ==========================================================================
   j. Spectra (.uagb-*) + Gutenberg core blocks
   ========================================================================== */

.uagb-heading-text,
.wp-block-heading {
	font-family: var(--rm-font-serif) !important;
	color: var(--rm-espresso) !important;
}

.uagb-desc-text {
	color: var(--rm-body);
	font-family: var(--rm-font-body);
}

.uagb-buttons__wrap .uagb-button__wrapper .uagb-buttons-repeater,
.uagb-container-inner-blocks-wrap .wp-block-button__link {
	background-color: var(--rm-espresso) !important;
	color: var(--rm-cream) !important;
	border-radius: var(--rm-radius) !important;
	border-color: var(--rm-espresso) !important;
	font-family: var(--rm-font-body) !important;
	letter-spacing: 0.08em;
}

.uagb-buttons__wrap .uagb-button__wrapper .uagb-buttons-repeater:hover {
	background-color: var(--rm-taupe) !important;
	border-color: var(--rm-taupe) !important;
	color: var(--rm-cream) !important;
}

.uagb-icon-list__source-icon svg,
.uagb-icon-wrap svg {
	fill: var(--rm-taupe);
}

/* Core blocks. */
.wp-block-separator {
	border: none;
	border-top: 1px solid var(--rm-border-mid);
	max-width: 96px;
	opacity: 1;
}

.wp-block-quote,
blockquote {
	border-inline-start: 2px solid var(--rm-beige);
	padding-inline-start: 1.5em;
	font-family: var(--rm-font-serif);
	font-size: 1.15rem;
	color: var(--rm-espresso);
	font-style: normal;
}

.wp-block-quote cite,
blockquote cite {
	font-family: var(--rm-font-body);
	font-size: 0.85rem;
	color: var(--rm-charcoal);
	letter-spacing: 0.08em;
}

.wp-block-pullquote {
	border-top: 1px solid var(--rm-border-mid);
	border-bottom: 1px solid var(--rm-border-mid);
	color: var(--rm-espresso);
}

.wp-block-image img {
	border-radius: var(--rm-radius);
}

.wp-block-group.has-background,
.wp-block-cover {
	border-radius: var(--rm-radius);
}

/* ==========================================================================
   k. Content pages + footer
   ========================================================================== */

.entry-title {
	font-weight: 400;
}

.ast-archive-description .ast-archive-title,
.entry-header .entry-title {
	font-size: clamp(2rem, 4vw, 2.75rem);
}

.entry-content h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 400;
	margin-top: 2em;
}

article.post .entry-title a:hover,
article.page .entry-title a:hover {
	color: var(--rm-taupe) !important;
}

/* Footer: styling is owned by the teammate's chrome.css (soft-beige footer).
   Brand.css intentionally does NOT paint a footer background — it only supplies
   dark-on-light text/link colors so text stays legible on a light beige ground
   and never re-introduces the old espresso band. */
.site-footer .site-footer-section,
.site-footer .ast-builder-layout-element {
	color: var(--rm-body);
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .widget-title {
	color: var(--rm-espresso);
	font-family: var(--rm-font-serif) !important;
	font-weight: 400;
	font-size: 1.1rem;
	letter-spacing: 0.06em;
}

.site-footer a,
.ast-footer-copyright a {
	color: var(--rm-taupe);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: bottom left;
	background-size: 0% 1px;
	transition: background-size 0.35s var(--rm-ease), color 0.2s ease;
}

.site-footer a:hover,
.ast-footer-copyright a:hover {
	color: var(--rm-espresso);
	background-size: 100% 1px;
}

.site-footer .ast-footer-copyright,
.site-footer .ast-footer-copyright p {
	color: var(--rm-charcoal);
	font-size: 0.82rem;
	letter-spacing: 0.05em;
}

.site-footer .footer-menu-navigation .menu-link {
	color: var(--rm-body);
}

.site-footer .footer-menu-navigation .menu-link:hover {
	color: var(--rm-taupe);
}

/* Footer logo sizing (image widget / site branding in footer). */
.site-footer .site-logo-img img,
.site-footer .wp-block-image img,
.site-footer img.rm-footer-logo {
	max-height: 56px;
	width: auto;
}

.site-footer .widget {
	color: var(--rm-body);
}

/* ==========================================================================
   l. RTL safety
   ==========================================================================
   Direction-sensitive rules throughout this file use logical properties
   (inset-inline-start, margin-inline-end, border-inline-start, text-align:
   start, padding-inline). Astra loads its own *-rtl.css builds; nothing here
   assumes a physical side except full-width underline sweeps, which are
   direction-neutral. */

/* ==========================================================================
   m. Accessibility
   ========================================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.ast-button:focus-visible,
.button:focus-visible {
	outline: 2px solid var(--rm-taupe) !important;
	outline-offset: 2px;
	box-shadow: none;
}

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

	.woocommerce ul.products li.product:hover a img {
		transform: none;
	}
}

/* Astra's scroll-to-top control ships bright blue and is not part of the
   Rachel Mizrahi layout — hide it to keep the pages clean and on-palette. */
#ast-scroll-top {
	display: none !important;
}
