/*
 * Habiba Ivory — theme styles.
 *
 * Recovered 2026-08-24 from the browser's live CSSOM after the previous
 * theme folder (named "ivory") was overwritten by the unrelated WordPress.org
 * theme of the same slug. Every rule is byte-intact; only the original
 * comments and blank-line grouping were lost, since the CSSOM exposes
 * cssText only. Section banners below were re-added by hand.
 */


/* ==========================================================================
   Design tokens
   ========================================================================== */
:root { --ivory-bg: #FBFAF7; --ivory-bg-alt: #F1EBE2; --ivory-fg: #1C1815; --ivory-muted: #716962; --ivory-accent: #B8935A; --ivory-accent-text: #7E6136; --ivory-white: #FFFFFF; --ivory-error: #8C2F1E; --ivory-line: rgba(28, 24, 21, 0.12); --ivory-line-gold: rgba(184, 147, 90, 0.55); --font-serif: 'Cormorant Garamond', Georgia, serif; --font-sans: 'Jost', system-ui, -apple-system, sans-serif; --eyebrow: 11px; --gap-page: clamp(20px, 5vw, 72px); }

/* ==========================================================================
   Base
   ========================================================================== */
/* Placeholders. Browsers paint these in their own grey — Chrome's is
   rgb(117,117,117), which measures 3.89:1 on Warm Sand and so misses the
   4.5:1 that placeholder text has to clear. Warm Taupe is the system's own
   secondary-text tone and is already documented as clearing 4.5:1 on both
   backgrounds, so the hint becomes legible AND stops being a browser default
   sitting inside a designed page. */
.ivory-theme ::placeholder { color: var(--ivory-muted); opacity: 1; }
html, body { margin: 0px; padding: 0px; background: var(--ivory-bg); color: var(--ivory-fg); font-family: var(--font-sans); font-weight: 300; -webkit-font-smoothing: antialiased; }
.ivory-theme * { box-sizing: border-box; }
.ivory-theme a { color: var(--ivory-fg); text-decoration: none; }
.ivory-theme a:hover { color: var(--ivory-accent-text); }
.ivory-theme ::selection { background: var(--ivory-bg-alt); }
.ivory-theme a:focus-visible, .ivory-theme button:focus-visible, .ivory-theme input:focus-visible, .ivory-theme [tabindex]:focus-visible { outline: 2px solid var(--ivory-accent-text); outline-offset: 3px; }
.ivory-theme a.ivory-product-card__media:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ivory-accent-text); }
.ivory-theme h1, .ivory-theme h2, .ivory-theme h3 { font-family: var(--font-serif); font-weight: 300; margin: 0px; }
.ivory-theme img { max-width: 100%; display: block; }
.ivory-theme button { font-family: inherit; }

/* ==========================================================================
   Shared primitives (eyebrow / button / link)
   ========================================================================== */
.ivory-eyebrow { font-size: var(--eyebrow); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-muted); }
.ivory-btn { display: inline-block; background: var(--ivory-accent); color: var(--ivory-white); border: 1px solid var(--ivory-accent); padding: 15px 34px; font-size: var(--eyebrow); letter-spacing: 0.16em; text-transform: uppercase; transition: background 500ms, color 500ms; cursor: pointer; }
.ivory-btn:hover { background: transparent; color: var(--ivory-accent-text); }
.ivory-link { font-size: var(--eyebrow); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-fg); padding-bottom: 4px; border-bottom: 1px solid var(--ivory-line-gold); transition: border-color 400ms, color 400ms; }
.ivory-link:hover { color: var(--ivory-accent-text); border-color: var(--ivory-accent); }

/* ==========================================================================
   Announcement bar
   ========================================================================== */
.ivory-announcement { background: var(--ivory-bg-alt); padding: 0 var(--gap-page); }
.ivory-announcement__inner { max-width: 1560px; margin: 0px auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; min-height: 38px; padding: 8px 0px; }
.ivory-announcement__inner span { font-size: var(--eyebrow); }
.ivory-announcement__est { color: var(--ivory-muted); letter-spacing: 0.16em; text-transform: uppercase; }
span.ivory-announcement__msg { color: var(--ivory-fg); text-align: center; letter-spacing: 0.02em; font-size: 12px; }
.ivory-announcement__lang { display: flex; align-items: center; gap: 10px; }
.ivory-announcement__divider { width: 1px; height: 11px; background: rgba(28, 24, 21, 0.25); }

/* ==========================================================================
   Header + sticky nav
   ========================================================================== */
.ivory-header { position: sticky; top: 0px; z-index: 50; background: var(--ivory-bg); padding: 0 var(--gap-page); border-bottom: 1px solid transparent; transition: border-color 500ms; }
.ivory-header.is-scrolled { border-bottom-color: var(--ivory-line); }
.ivory-header__inner { max-width: 1560px; margin: 0px auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 88px; }
.ivory-header__nav { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 26px); }
.ivory-header__nav-divider { width: 1px; height: 12px; background: rgba(28, 24, 21, 0.18); }
.ivory-header__nav a { font-size: var(--eyebrow); letter-spacing: 0.16em; text-transform: uppercase; padding-bottom: 3px; border-bottom: 1px solid transparent; transition: border-color 400ms, color 400ms; }
.ivory-header__nav a:hover { border-bottom-color: var(--ivory-accent); color: var(--ivory-accent-text); }
.ivory-menu-toggle { display: flex; align-items: center; gap: 11px; border: 0px; background: none; padding: 0px; cursor: pointer; font-size: var(--eyebrow); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-fg); transition: color 400ms; }
.ivory-menu-toggle:hover { color: var(--ivory-accent-text); }
.ivory-menu-toggle__bars { display: flex; flex-direction: column; gap: 4px; width: 20px; }
.ivory-menu-toggle__bars span { height: 1px; background: currentcolor; }
.ivory-header__logo { display: flex; align-items: center; justify-content: center; }
.ivory-header__logo img { height: 66px; width: auto; }
.ivory-header__icons { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.ivory-header__icons a { display: flex; align-items: center; gap: 7px; }
.ivory-header__bag-count { font-size: var(--eyebrow); letter-spacing: 0.12em; color: var(--ivory-muted); }

/* ==========================================================================
   Cart drawer
   ==========================================================================
   Slides in from the inline END — the right on the English site, and the LEFT
   on /ar/ without a second rule, because every offset here is logical. The
   mega menu is a full takeover; this is deliberately not, since the whole
   point is that you can see you are still on the page you were browsing.

   The system has no shadows, so the panel is separated from the page by a
   1px gold hairline on its leading edge plus a scrim, never elevation. Corners
   stay square, per The Sharp Edge Rule.
   ========================================================================== */
.ivory-cart {
	position: fixed;
	inset: 0;
	/* Stacking order on this site, lowest first:
	     50    sticky header
	     60    mega menu
	     99    WooCommerce's product-gallery zoom trigger
	     1000  this drawer
	     1500+ PhotoSwipe, the gallery lightbox
	   70 was not enough: the gallery trigger ships at 99 and punched a
	   magnifier icon straight through the open drawer on every product page.
	   1000 clears everything the site and WooCommerce put on a product page,
	   while staying under PhotoSwipe — when the lightbox is open it is the
	   modal that owns the screen, and the drawer cannot be reached anyway. */
	z-index: 1000;
	/* Hidden with visibility rather than display, so the panel is always laid
	   out and its transform has a value to transition FROM. The zero-duration
	   visibility transition is delayed by the panel's own duration, which
	   keeps the drawer present while it slides out and removes it — and its
	   contents, from the accessibility tree — the instant it has gone. */
	visibility: hidden;
	transition: visibility 0s linear 520ms;
}
.ivory-cart.is-open {
	visibility: visible;
	transition-delay: 0s;
}

/* The scrim is a tint of the page's own ink rather than neutral black, so the
   dimmed page stays warm instead of going grey. */
.ivory-cart__scrim {
	position: absolute;
	inset: 0;
	background: rgba(28, 24, 21, 0.38);
	opacity: 0;
	transition: opacity 450ms ease;
}
.ivory-cart.is-open .ivory-cart__scrim { opacity: 1; }

.ivory-cart__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	inline-size: min(420px, 100vw);
	display: flex;
	flex-direction: column;
	background: var(--ivory-bg);
	border-inline-start: 1px solid var(--ivory-line-gold);
	/* 100% of its own width, in the writing direction: positive translate is
	   off-screen to the right in LTR and to the left in RTL. */
	transform: translateX(100%);
	transition: transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}
[dir="rtl"] .ivory-cart__panel { transform: translateX(-100%); }
.ivory-cart.is-open .ivory-cart__panel,
[dir="rtl"] .ivory-cart.is-open .ivory-cart__panel { transform: translateX(0); }

/* The drawer is an interruption; honour a request for less movement by
   letting it appear rather than travel. */
@media (prefers-reduced-motion: reduce) {
	.ivory-cart__panel,
	.ivory-cart__scrim { transition: none; }
	.ivory-cart__panel { transform: none; opacity: 0; }
	.ivory-cart.is-open .ivory-cart__panel { opacity: 1; }
}

/* Head ------------------------------------------------------------------ */
.ivory-cart__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px var(--ivory-cart-pad) 18px;
	border-block-end: 1px solid var(--ivory-line);
}
.ivory-cart { --ivory-cart-pad: clamp(20px, 4vw, 28px); }
.ivory-cart__title {
	font-family: var(--font-serif);
	font-weight: 300;
	font-size: 21px; /* Title step. */
	color: var(--ivory-fg);
	margin: 0;
}
.ivory-cart__close {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 40px;
	block-size: 40px;
	/* Optically aligns the glyph with the panel's inline padding; the button's
	   own box is wider than the mark for the tap target. */
	margin-inline-end: -10px;
	border: 0;
	background: none;
	color: var(--ivory-fg);
	cursor: pointer;
	transition: color 300ms ease;
}
.ivory-cart__close:hover { color: var(--ivory-accent-text); }

/* Items ----------------------------------------------------------------- */
.ivory-cart__body {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain; /* scrolling the list must not scroll the page */
	-webkit-overflow-scrolling: touch;
}
.ivory-cart__items { margin: 0; padding: 0; list-style: none; }
.ivory-cart__item {
	display: grid;
	grid-template-columns: 76px 1fr auto;
	gap: 0 14px;
	padding: 18px var(--ivory-cart-pad);
	border-block-end: 1px solid var(--ivory-line);
}
.ivory-cart__thumb { display: block; background: var(--ivory-white); }
.ivory-cart__thumb img {
	display: block;
	inline-size: 76px;
	block-size: 76px;
	object-fit: cover;
}
.ivory-cart__detail { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-inline-size: 0; }
.ivory-cart__name {
	font-family: var(--font-serif);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.3;
	color: var(--ivory-fg);
}
a.ivory-cart__name:hover { color: var(--ivory-accent-text); }
.ivory-cart__unit {
	font-size: var(--eyebrow);
	letter-spacing: 0.12em;
	color: var(--ivory-muted);
	font-variant-numeric: lining-nums tabular-nums;
}

/* Quantity: a hairline frame rather than two filled buttons — the drawer
   should not have three competing gold surfaces in it. */
.ivory-cart__qty {
	display: inline-flex;
	align-items: center;
	margin-block-start: 6px;
	border: 1px solid var(--ivory-line);
}
.ivory-cart__step {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 32px;
	block-size: 30px;
	border: 0;
	background: none;
	color: var(--ivory-fg);
	cursor: pointer;
	transition: color 250ms ease, background 250ms ease;
}
.ivory-cart__step:hover { background: var(--ivory-bg-alt); color: var(--ivory-accent-text); }
.ivory-cart__count {
	min-inline-size: 26px;
	text-align: center;
	font-size: 15px;
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--ivory-fg);
}
.ivory-cart__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; }
.ivory-cart__total {
	font-size: 15px;
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--ivory-fg);
	white-space: nowrap;
}
.ivory-cart__remove {
	border: 0;
	background: none;
	padding: 0;
	font-family: var(--font-sans);
	font-size: var(--eyebrow);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ivory-muted);
	cursor: pointer;
	transition: color 250ms ease;
	/* Small inline control: the 24px tap target comes from an invisible band,
	   the sitewide pattern for marks that must stay visually light. */
	position: relative;
}
.ivory-cart__remove::after {
	content: "";
	position: absolute;
	inset-inline: -6px;
	inset-block: -8px;
}
.ivory-cart__remove:hover { color: var(--ivory-error); }

/* Empty ----------------------------------------------------------------- */
.ivory-cart__empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: clamp(32px, 6vw, 48px) var(--ivory-cart-pad);
}
.ivory-cart__empty-title {
	margin: 0;
	font-family: var(--font-serif);
	font-size: 21px;
	font-weight: 300;
	color: var(--ivory-fg);
}

/* Foot ------------------------------------------------------------------ */
.ivory-cart__foot:not(:empty) {
	flex: 0 0 auto;
	padding: 18px var(--ivory-cart-pad) clamp(20px, 4vw, 26px);
	border-block-start: 1px solid var(--ivory-line);
	background: var(--ivory-bg-alt);
}
/* The collection rule is a condition of the sale, so it sits above the total
   where it is read before committing — not under the button after it. */
.ivory-cart__notice {
	margin: 0 0 16px;
	padding-block-end: 16px;
	border-block-end: 1px solid var(--ivory-line);
	/* 13px is this system's de-facto fine-print size (the checkout
	   declaration and the Civil ID intro both use it). Not on DESIGN.md's
	   ramp, which has no step between Body 15px and Label 11px. */
	font-size: 13px;
	line-height: 1.65;
	color: var(--ivory-muted);
}
/* The same notice on the Cart page. It lands between the totals box and the
   checkout button — the right place, since the condition should be read
   before committing — but in open space rather than inside a panel, so it
   carries no rules of its own: the totals box already draws a line directly
   above it and a second one would read as a double border. */
.ivory-cart__notice--page {
	margin: clamp(16px, 2vw, 22px) 0 0;
	padding: 0;
	border: 0;
	max-inline-size: 46ch;
}

.ivory-cart__subtotal {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-block-end: 16px;
	font-family: var(--font-sans);
	font-size: var(--eyebrow);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ivory-muted);
}
.ivory-cart__subtotal-value {
	font-family: var(--font-serif);
	font-size: 21px;
	letter-spacing: normal;
	text-transform: none;
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--ivory-fg);
}
.ivory-cart__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ivory-cart__checkout { display: block; inline-size: 100%; text-align: center; }

/* Busy ------------------------------------------------------------------ */
.ivory-cart.is-busy .ivory-cart__body { opacity: 0.55; pointer-events: none; transition: opacity 200ms ease; }

/* Page behind must not scroll while the drawer owns the screen. */
body.ivory-cart-open { overflow: hidden; }

@media (max-width: 600px) {
	/* The panel takes the whole screen at phone widths, so it needs no
	   leading hairline — there is no page left beside it to divide from. */
	.ivory-cart__panel { border-inline-start: 0; }
	/* Thumb-sized quantity controls. 30px cleared the sitewide 24px floor but
	   is tight for the one control people press repeatedly; the height comes
	   from the component's own frame rather than an invisible band, because
	   two adjacent bands would overlap inside this border. */
	.ivory-cart__step { block-size: 38px; inline-size: 38px; }
	.ivory-cart__count { min-inline-size: 30px; }
}

/* ==========================================================================
   Full-screen mega menu
   ========================================================================== */
.ivory-megamenu { position: fixed; inset: 0px; z-index: 60; background: var(--ivory-bg); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 350ms, transform 350ms, visibility linear 350ms; }
.ivory-megamenu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 350ms, transform 350ms; }
.ivory-megamenu__close { position: absolute; top: 30px; inset-inline-end: var(--gap-page); border: 0px; background: none; cursor: pointer; font-size: var(--eyebrow); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-accent-text); }
.ivory-megamenu__grid { width: 100%; max-width: 1560px; margin: 0px auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(28px, 4vw, 72px); padding: clamp(90px, 12vh, 150px) var(--gap-page) clamp(48px, 6vw, 80px); }
.ivory-megamenu__col { display: flex; flex-direction: column; gap: 16px; text-align: start; }
.ivory-megamenu__col--visit { border-inline-start: 1px solid var(--ivory-line); padding-inline-start: clamp(20px, 2vw, 40px); gap: 14px; }
.ivory-megamenu__label { font-size: var(--eyebrow); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-muted); }
.ivory-megamenu__col a.ivory-megamenu__big { font-family: var(--font-serif); font-size: clamp(22px, 2.3vw, 30px); font-weight: 300; align-self: flex-start; padding-bottom: 3px; border-bottom: 1px solid transparent; transition: border-color 400ms, color 400ms; }
.ivory-megamenu__col a.ivory-megamenu__big:hover { border-bottom-color: var(--ivory-accent); color: var(--ivory-accent-text); }
.ivory-megamenu__col a.ivory-megamenu__mid { font-family: var(--font-serif); font-size: 21px; align-self: flex-start; }
.ivory-megamenu__col a.ivory-megamenu__small { font-size: 14px; font-weight: 300; }
.ivory-megamenu__col p { margin: 0px; font-size: 14px; font-weight: 300; line-height: 1.8; color: var(--ivory-muted); }
body.ivory-menu-open { overflow: hidden; }

/* ==========================================================================
   Product Showcase widget (custom Elementor widget)
   ========================================================================== */
.ivory-products__grid { display: grid; gap: clamp(16px, 2vw, 34px); }
.ivory-product-card__media { display: block; position: relative; overflow: hidden; background: var(--ivory-bg-alt); aspect-ratio: 1 / 1; }
.ivory-product-card__media .ivory-product-card__img { position: absolute; inset: 0px; width: 100%; height: 100%; object-fit: cover; transition: opacity 700ms; }
.ivory-product-card__img--b { opacity: 0; }
.ivory-product-card:hover .ivory-product-card__img--a, .ivory-product-card:focus-within .ivory-product-card__img--a { opacity: 0; }
.ivory-product-card:hover .ivory-product-card__img--b, .ivory-product-card:focus-within .ivory-product-card__img--b { opacity: 1; }
.ivory-product-card__quickview { position: absolute; left: 0px; right: 0px; bottom: 0px; background: var(--ivory-accent); color: var(--ivory-white); text-align: center; padding: 13px 0px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transform: translateY(100%); transition: transform 500ms; }
.ivory-product-card:hover .ivory-product-card__quickview, .ivory-product-card:focus-within .ivory-product-card__quickview { transform: translateY(0px); }
.ivory-product-card__tag { position: absolute; top: 14px; inset-inline-start: 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-accent-text); background: rgba(251, 250, 247, 0.85); padding: 3px 8px; }
/* Two-column card body: name (left) and price (right) share the first row,
   the category meta sits under the name. Grid keeps the price right-aligned
   without changing the DOM order used by the loop + showcase templates. */
.ivory-product-card__body { padding-top: 18px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 16px; row-gap: 6px; }
.ivory-product-card__name { grid-column: 1; grid-row: 1; font-family: var(--font-serif); font-size: 21px; line-height: 1.2; }
.ivory-product-card__meta { grid-column: 1; grid-row: 2; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-muted); }
.ivory-product-card__price { grid-column: 2; grid-row: 1; justify-self: end; text-align: end; font-size: 14px; letter-spacing: 0.12em; color: var(--ivory-fg); }
.ivory-product-card__price del { color: var(--ivory-muted); margin-inline-end: 6px; font-size: 11px; }

/* ==========================================================================
   Product Rail widget (custom Elementor widget)
   ========================================================================== */
.ivory-rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 3vw, 44px); }
.ivory-rail-head__text { display: flex; flex-direction: column; gap: 10px; }
.ivory-rail-head__controls { display: flex; gap: 10px; }
.ivory-rail-arrow { width: 46px; height: 46px; border: 1px solid var(--ivory-line-gold); background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 400ms; }
.ivory-rail-arrow:hover { background: var(--ivory-accent); }
.ivory-rail-arrow svg path { transition: stroke 400ms; }
.ivory-rail-arrow:hover svg path { stroke: var(--ivory-fg); }
.ivory-rail { display: flex; gap: clamp(14px, 1.8vw, 30px); overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.ivory-rail::-webkit-scrollbar { display: none; }
.ivory-rail-item { flex: 0 0 clamp(240px, 24vw, 340px); display: block; }
.ivory-rail-item__media { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--ivory-bg-alt); }
.ivory-rail-item__media img { position: absolute; inset: 0px; width: 100%; height: 100%; object-fit: cover; }
.ivory-rail-item__body { padding-top: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ivory-rail-item__name { font-family: var(--font-serif); font-size: 20px; }
.ivory-rail-item__price { font-size: 14px; letter-spacing: 0.12em; color: var(--ivory-muted); }
/* The rail section is padded on the left only, so the card strip bleeds off
   the right edge of the phone screen. The heading row must not inherit that
   bleed or the next/prev arrows sit flush against the viewport edge — pad it
   back in by the same page gutter the section uses on the left. */
@media (max-width: 900px) {
  .ivory-rail-head { padding-inline-end: var(--gap-page); }
}
#ivory-instagram .elementor-image-gallery .gallery { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; gap: clamp(10px, 1.2vw, 20px) !important; }
#ivory-instagram .elementor-image-gallery .gallery-item { display: block !important; margin: 0px !important; width: 100% !important; max-width: 100% !important; height: 100% !important; }
#ivory-instagram .elementor-image-gallery .gallery-icon { display: block; width: 100%; height: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ivory-bg-alt); }
#ivory-instagram .elementor-image-gallery .gallery-icon img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms; }
#ivory-instagram .elementor-image-gallery .gallery-icon:hover img { transform: scale(1.04); }
#ivory-instagram .elementor-image-gallery .gallery-caption { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.ivory-footer { background: var(--ivory-bg-alt); padding: clamp(56px, 6vw, 96px) var(--gap-page) 32px; border-top: 1px solid var(--ivory-line); }
.ivory-footer__grid { max-width: 1560px; margin: 0px auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); padding-bottom: clamp(40px, 5vw, 72px); }
.ivory-footer__col { display: flex; flex-direction: column; gap: 14px; }
.ivory-footer__col a { font-size: 14px; font-weight: 300; }
.ivory-footer__col p { margin: 0px; font-size: 14px; font-weight: 300; line-height: 1.8; color: var(--ivory-muted); }
.ivory-footer__bottom { max-width: 1560px; margin: 0px auto; border-top: 1px solid var(--ivory-line); padding-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.ivory-footer__copy { font-size: 12px; letter-spacing: 0.02em; color: var(--ivory-muted); }
.ivory-footer__payments { display: flex; gap: 8px; flex-wrap: wrap; }
.ivory-footer__payments span { border: 1px solid var(--ivory-line); padding: 6px 12px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory-muted); }
.ivory-footer__legal { display: flex; gap: 20px; }
.ivory-footer__legal a { font-size: 12px; letter-spacing: 0.02em; color: var(--ivory-muted); }

/* ==========================================================================
   WooCommerce breadcrumb (sitewide)
   ========================================================================== */
.woocommerce-breadcrumb { max-width: 1560px; margin: 0px auto; padding: clamp(20px, 3vw, 32px) var(--gap-page) 0; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory-muted); }
.woocommerce-breadcrumb a { color: var(--ivory-muted); }
.woocommerce-breadcrumb a:hover { color: var(--ivory-accent-text); }

/* ==========================================================================
   Single product page
   ========================================================================== */
.ivory-pdp { max-width: 1560px; margin: 0px auto; padding: clamp(24px, 3vw, 40px) var(--gap-page) 0; }
.ivory-pdp__grid { display: grid; grid-template-columns: minmax(0px, 1.15fr) minmax(0px, 0.85fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.ivory-pdp__gallery { position: relative; }
.ivory-pdp__summary { clear: none; display: flex; flex-direction: column; position: sticky; top: 108px; width: 100% !important; float: none !important; }
.ivory-pdp .onsale { z-index: 5; font-family: var(--font-sans); font-weight: 300; letter-spacing: 0.16em; text-transform: uppercase; position: absolute !important; top: 14px !important; inset-inline-start: 14px !important; inset-inline-end: auto !important; min-height: 0px !important; min-width: 0px !important; margin: 0px !important; padding: 4px 10px !important; border-radius: 0px !important; background: var(--ivory-accent) !important; color: var(--ivory-white) !important; font-size: 11px !important; line-height: 1.4 !important; }
.woocommerce-product-gallery { position: relative; background: transparent; width: 100% !important; float: none !important; margin-bottom: 0px !important; }
.woocommerce-product-gallery__wrapper { aspect-ratio: 1 / 1; height: 100%; background: transparent; }
.flex-viewport { background: transparent; height: auto !important; aspect-ratio: 1 / 1 !important; }
.woocommerce-product-gallery__image { height: 100%; }
.woocommerce-product-gallery__image > a { display: block; height: 100%; }
.woocommerce-product-gallery__image img.wp-post-image { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0px; }
/* Gallery zoom control. Built in the Product Rail arrow's idiom — the
   system's documented pattern for a square icon button: a gold hairline at
   rest, filling Warm Gold on hover with the icon stroke staying Espresso.
   That stroke is the rail arrow's named exception to The White-on-Gold Rule,
   and it applies for the same reason: this is a graphic, not a text label.
   The icon itself is drawn (see inc/product-gallery.php) — it used to be
   WordPress's magnifier emoji fetched from s.w.org, which could not respond
   to the button's hover state and was a multi-colour mark in a near-
   monochrome page. The ivory veil behind it is deliberate: the control sits
   on photography and needs a ground to stay legible. */
.woocommerce-product-gallery__trigger {
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ivory-fg);
	border: 1px solid var(--ivory-line-gold);
	transition: background 400ms ease, color 400ms ease, border-color 400ms ease;
	position: absolute !important;
	top: 16px !important;
	inset-inline-end: 16px !important;
	inset-inline-start: auto !important;
	width: 40px !important;
	height: 40px !important;
	background: rgba(251, 250, 247, 0.9) !important;
	border-radius: 0px !important;
}
.woocommerce-product-gallery__trigger:hover,
.woocommerce-product-gallery__trigger:focus-visible {
	background: var(--ivory-accent) !important;
	border-color: var(--ivory-accent);
	color: var(--ivory-fg);
}
/* The frame. WooCommerce sets `border-style: none` and `box-sizing:
   content-box` on this control at (0,4,2), so the gold hairline above never
   rendered at all and a bordered 40px box would have measured 42. Same
   specificity lift as the icon rules below, and for the same reason. */
body.ivory-theme div.product div.images .woocommerce-product-gallery__trigger {
	box-sizing: border-box;
	border: 1px solid var(--ivory-line-gold);
	color: var(--ivory-fg);
}
body.ivory-theme div.product div.images .woocommerce-product-gallery__trigger:hover,
body.ivory-theme div.product div.images .woocommerce-product-gallery__trigger:focus-visible {
	border-color: var(--ivory-accent);
	color: var(--ivory-fg);
}

/* The icon.
   WooCommerce does not ship an icon file here — it DRAWS a magnifier out of
   two pseudo-elements: a fully rounded ::before circle struck at double this
   system's weight, plus a ::after handle with rounded ends. Two round shapes
   and a heavy stroke, which The Sharp Edge Rule and the site's own 1.1 stroke
   both rule out. (The element inside the anchor is only the accessible label,
   clipped from view; the anchor's own aria-label carries the name.)

   So both pseudo-elements are taken over: ::after is dropped and ::before
   becomes a single mask painted with `currentColor`, which is what lets the
   mark flip with the button instead of staying a fixed black graphic.

   The selector needs more weight than WooCommerce's (0,4,3), because its
   stylesheet is enqueued AFTER the theme's and would win any tie on load
   order. Note `body.ivory-theme` and not `.ivory-theme .woocommerce`:
   WordPress puts BOTH classes on <body>, so a descendant combinator between
   them matches nothing. Leading with the element lifts this to (0,4,4). */
body.ivory-theme div.product div.images .woocommerce-product-gallery__trigger::before {
	position: static;
	inline-size: 16px;
	block-size: 16px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='7.4' cy='7.4' r='5.6' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3Cpath d='M11.6 11.6 16 16' fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='7.4' cy='7.4' r='5.6' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3Cpath d='M11.6 11.6 16 16' fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.ivory-theme div.product div.images .woocommerce-product-gallery__trigger::after {
	display: none;
}
/* The emoji character WordPress would otherwise substitute an <img> for. It
   is aria-hidden, so removing it costs nothing. */
.woocommerce-product-gallery__trigger > * { display: none !important; }

.flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 12px 0px 0px; padding: 0px; }
.flex-control-thumbs li { flex: 0 0 auto; width: 72px !important; height: 72px !important; }
.flex-control-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; border: 1px solid transparent; border-radius: 0px; opacity: 0.55; cursor: pointer; transition: opacity 400ms, border-color 400ms; }
.flex-control-thumbs img:hover { opacity: 0.85; }
.flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--ivory-accent); }
.ivory-pdp__summary .product_title { font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1.1; margin-bottom: 14px; }
.ivory-pdp__summary .woocommerce-product-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ivory-pdp__summary .star-rating { color: var(--ivory-accent-text); font-size: 13px; }
.ivory-pdp__summary .star-rating::before { color: var(--ivory-line); }
.ivory-pdp__summary .star-rating span::before { color: var(--ivory-accent-text); }
.ivory-pdp__summary .woocommerce-review-link { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory-muted); }
.ivory-pdp__summary .price { font-family: var(--font-sans); font-size: 17px; letter-spacing: 0.02em; margin: 0px 0px 22px; color: var(--ivory-fg) !important; }
.ivory-pdp__summary .price del { font-size: 15px; margin-inline-end: 10px; color: var(--ivory-muted) !important; }
.ivory-pdp__summary .price ins { text-decoration: none; color: var(--ivory-accent-text) !important; }
.woocommerce-product-details__short-description { max-width: 46ch; margin-bottom: 22px; }
.woocommerce-product-details__short-description p { font-size: 15px; line-height: 1.8; color: var(--ivory-muted); margin: 0px; }
.ivory-pdp__summary p.stock { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0px 0px 18px; color: var(--ivory-muted) !important; }
.ivory-pdp__summary p.stock.out-of-stock, .ivory-pdp__summary p.stock.on-backorder { color: var(--ivory-fg) !important; }
.ivory-pdp__summary form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin-bottom: 0px; }
.ivory-pdp__summary .quantity { margin: 0px; }
.ivory-pdp__summary .quantity .qty { width: 64px; height: 100%; min-height: 50px; border: 1px solid var(--ivory-line); border-radius: 0px; background: transparent; text-align: center; font-family: var(--font-sans); font-size: 14px; font-weight: 300; color: var(--ivory-fg); }
.ivory-pdp__summary .single_add_to_cart_button.button { flex: 1 1 0%; min-width: 200px; border: 1px solid var(--ivory-accent); padding: 15px 34px; font-family: var(--font-sans); font-size: 11px; font-weight: 300; letter-spacing: 0.16em; text-transform: uppercase; transition: background 500ms, color 500ms; background: var(--ivory-accent) !important; color: var(--ivory-white) !important; border-radius: 0px !important; }
.ivory-pdp__summary .single_add_to_cart_button.button:hover { background: transparent !important; color: var(--ivory-accent-text) !important; }
.ivory-pdp__summary .single_add_to_cart_button.disabled { opacity: 0.4; cursor: not-allowed; }
.ivory-pdp__summary table.variations { width: 100%; margin-bottom: 18px; border-collapse: collapse; }
.ivory-pdp__summary table.variations tr { display: block; margin-bottom: 14px; }
.ivory-pdp__summary table.variations label { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory-muted); margin-bottom: 8px; }
.ivory-pdp__summary table.variations select { width: 100%; border-width: 0px 0px 1px; border-style: none none solid; border-color: currentcolor currentcolor rgba(28, 24, 21, 0.25); border-image: initial; border-radius: 0px; background: transparent; padding: 8px 0px; font-family: var(--font-sans); font-size: 14px; font-weight: 300; color: var(--ivory-fg); }
.ivory-pdp__summary .woocommerce-variation-price .price { margin-bottom: 8px; }
.ivory-pdp__summary a.reset_variations { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory-muted); }
.ivory-pdp__assurance { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ivory-line); display: flex; flex-direction: column; gap: 10px; }
.ivory-pdp__assurance-line { margin: 0px; font-size: 13px; color: var(--ivory-muted); }
.ivory-pdp__summary .product_meta { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ivory-line); display: flex; flex-direction: column; gap: 12px; }
.ivory-pdp__summary .product_meta > span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ivory-muted); }
.ivory-pdp__summary .product_meta a { color: var(--ivory-muted); border-bottom: 1px solid transparent; transition: color 400ms, border-color 400ms; }
.ivory-pdp__summary .product_meta a:hover { color: var(--ivory-accent-text); border-bottom-color: var(--ivory-accent); }
.ivory-pdp__below { margin-top: clamp(56px, 6vw, 96px); }
.ivory-pdp__section { padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ivory-line); }
.ivory-pdp__section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: clamp(18px, 1.8vw, 24px); }
.ivory-products__grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .ivory-pdp__grid { grid-template-columns: 1fr; gap: 32px; }
  .ivory-pdp__summary { position: static; top: auto; }
  .ivory-products__grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ivory-pdp__summary form.cart { flex-direction: column; }
  .ivory-pdp__summary .quantity .qty { width: 100%; min-height: 46px; }
  .ivory-products__grid--4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Shop / category / brand archives
   ========================================================================== */
.ivory-shop { max-width: 1560px; margin: 0px auto; padding: clamp(24px, 3vw, 40px) var(--gap-page) clamp(64px, 8vw, 120px); }
.ivory-shop__header { display: flex; flex-direction: column; gap: 12px; max-width: 640px; padding-bottom: clamp(32px, 4vw, 56px); }
.ivory-shop__title { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; }
.ivory-shop__header .term-description, .ivory-shop__header .page-description { margin: 0px; }
.ivory-shop__header .term-description p, .ivory-shop__header .page-description p { font-size: 15px; line-height: 1.8; color: var(--ivory-muted); margin: 0px; }
.ivory-shop__count { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory-muted); }
.ivory-shop__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 18px 0px; margin-bottom: clamp(24px, 3vw, 40px); border-top: 1px solid var(--ivory-line); border-bottom: 1px solid var(--ivory-line); }
/* WooCommerce prints its notices from a hook that lands INSIDE this bar, so
   the "added to cart" band became a flex item and shrank to its own content —
   a 473px box floating next to the result count instead of a band across the
   page. Given a full row of its own it reads as the band it is; the reduced
   inline padding is because, unlike on a product page, it is already inset to
   the content column and does not need the full page gutter again. */
.ivory-shop__bar .woocommerce-notices-wrapper {
	flex: 1 0 100%;
	order: -1;
}
.ivory-shop__bar .woocommerce-notices-wrapper > * {
	padding-inline: clamp(24px, 2.6vw, 32px);
	margin-block-start: 0;
}

.ivory-shop__bar .woocommerce-result-count { margin: 0px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ivory-muted); }
.ivory-shop__bar .woocommerce-ordering { margin: 0px; }
.ivory-shop__bar .woocommerce-ordering select { appearance: none; border: 0px; border-radius: 0px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 9 6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' fill='none' stroke='%237E6136' stroke-width='1.1'/%3E%3C/svg%3E") right center no-repeat transparent; padding: 4px 18px 4px 0px; font-family: var(--font-sans); font-size: 11px; font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory-fg); cursor: pointer; }
.ivory-shop__empty { display: flex; flex-direction: column; gap: 16px; max-width: 480px; padding: clamp(48px, 6vw, 96px) 0px; }
.ivory-shop__empty p { margin: 0px; font-size: 15px; line-height: 1.8; color: var(--ivory-muted); }
/* Minimal pagination: plain numbers, gold underline on the current page. Every rule is scoped as
   `.woocommerce nav.woocommerce-pagination` so it out-specifies WooCommerce's own boxed default (bordered, floated
   cells with a lilac current-page fill), which otherwise wins and was hiding this design. */
.woocommerce-pagination { margin-top: clamp(48px, 6vw, 80px); }
.woocommerce nav.woocommerce-pagination ul.page-numbers { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0px; padding: 0px; border: 0px; white-space: normal; }
.woocommerce nav.woocommerce-pagination ul.page-numbers li { float: none; display: block; border: 0px; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li a.page-numbers, .woocommerce nav.woocommerce-pagination ul li span.page-numbers { display: inline-block; min-width: 0px; padding: 0px 0px 4px; line-height: 1.4; background: none; font-family: var(--font-sans); font-size: 13px; font-weight: 300; letter-spacing: 0.04em; color: var(--ivory-muted); border-bottom: 1px solid transparent; transition: color 400ms, border-color 400ms; }
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover, .woocommerce nav.woocommerce-pagination ul li a.page-numbers:focus { background: none; color: var(--ivory-accent-text); border-bottom-color: var(--ivory-accent); }
.woocommerce nav.woocommerce-pagination ul li span.page-numbers.current { background: none; color: var(--ivory-fg); border-bottom-color: var(--ivory-accent); }
.woocommerce nav.woocommerce-pagination ul li .next.page-numbers, .woocommerce nav.woocommerce-pagination ul li .prev.page-numbers { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 560px) {
  .ivory-shop__bar { flex-direction: column; align-items: flex-start; gap: 14px; padding: 14px 0px; }
}
@media (max-width: 900px) {
  .ivory-header__inner { grid-template-columns: auto auto auto; height: 72px; }
  .ivory-header__nav a, .ivory-header__nav-divider { display: none; }
  /* The footer grid is pinned to 4 columns rather than auto-fit, so it needs
     its own steps down: 4 -> 2 at the tablet breakpoint, 2 -> 1 on phones. */
  .ivory-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ivory-header__logo img { height: 48px; }
  .ivory-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .ivory-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Plain (non-Elementor) content pages
   ========================================================================== */
.ivory-plain-content { max-width: 760px; margin: 0px auto; padding: clamp(64px, 8vw, 120px) var(--gap-page); min-height: 40vh; }
.ivory-plain-content h1 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 24px; }
.ivory-plain-content h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-top: clamp(36px, 5vw, 56px); margin-bottom: 14px; }
.ivory-plain-content p { font-size: 15px; line-height: 1.8; color: var(--ivory-muted); margin: 0px 0px 16px; }
.ivory-plain-content p:last-child { margin-bottom: 0px; }
.ivory-plain-content strong { font-weight: 500; color: var(--ivory-fg); }
.ivory-plain-content ul { list-style: none; margin: 0px 0px 16px; padding: 0px; display: flex; flex-direction: column; gap: 10px; }
.ivory-plain-content li { margin: 0px; }
.ivory-plain-content li a { display: inline-block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory-fg); padding-bottom: 4px; border-bottom: 1px solid var(--ivory-line-gold); transition: border-color 400ms, color 400ms; }
.ivory-plain-content li a:hover { color: var(--ivory-accent-text); border-color: var(--ivory-accent); }
.ivory-plain-content .wpcf7-form { margin: 0px 0px 8px; max-width: 480px; }
.ivory-plain-content .wpcf7-form p { margin: 0px 0px 22px; }
.ivory-plain-content .wpcf7-form label { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory-muted); margin-bottom: 8px; }
.ivory-plain-content .wpcf7-form-control-wrap { display: block; }
.ivory-plain-content .wpcf7-form-control { width: 100%; border-width: 0px 0px 1px; border-style: none none solid; border-color: currentcolor currentcolor rgba(28, 24, 21, 0.25); border-image: initial; border-radius: 0px; background: transparent; padding: 8px 0px; font-family: var(--font-sans); font-size: 15px; font-weight: 300; color: var(--ivory-fg); transition: border-color 400ms; }
.ivory-plain-content .wpcf7-form-control:focus { outline: none; border-bottom-color: var(--ivory-accent); }
.ivory-plain-content .wpcf7-form textarea.wpcf7-form-control { resize: vertical; min-height: 120px; }
.ivory-plain-content .wpcf7-submit { display: inline-block; background: var(--ivory-accent); color: var(--ivory-white); border: 1px solid var(--ivory-accent); border-radius: 0px; padding: 15px 34px; font-family: var(--font-sans); font-size: 11px; font-weight: 300; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: background 500ms, color 500ms; }
.ivory-plain-content .wpcf7-submit:hover { background: transparent; color: var(--ivory-accent-text); }
.ivory-plain-content .wpcf7-response-output { font-size: 13px; color: var(--ivory-muted); margin: 16px 0px 0px !important; padding: 0px !important; border-width: medium !important; border-style: none !important; border-color: currentcolor !important; border-image: initial !important; }

/* ==========================================================================
   Hero Video widget (custom Elementor widget)
   ========================================================================== */
.ivory-hero-video { position: relative; overflow: hidden; }
.ivory-hero-video__media, .ivory-hero-video__overlay { position: absolute; inset: 0px; width: 100%; height: 100%; }
.ivory-hero-video__media { object-fit: cover; }
.ivory-hero-video__content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 820px; margin: 0px auto; padding: 0 var(--gap-page) clamp(56px, 9vh, 110px); }
.ivory-hero-video__eyebrow { font-family: var(--font-sans); font-size: var(--eyebrow); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-muted); }
.ivory-hero-video__heading { font-family: var(--font-serif); font-weight: 300; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.04; margin: 0px; color: var(--ivory-fg); }
.ivory-hero-video__description { max-width: 46ch; font-family: var(--font-sans); font-size: 15px; font-weight: 300; line-height: 1.75; color: var(--ivory-muted); margin: 0px; }
/* Scoped with .ivory-theme so the white actually lands. This rule always said
   `color: var(--ivory-white)`, but as a lone class (0,1,0) it lost to the base
   `.ivory-theme a` (0,1,1), so the button had silently been rendering Espresso
   since it was written. Requested in white; see the contrast note below. */
.ivory-theme .ivory-hero-video__button { margin-top: 6px; display: inline-block; background: var(--ivory-accent); color: var(--ivory-white); border: 1px solid var(--ivory-accent); padding: 15px 34px; font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; transition: background 500ms, color 500ms; }
/* White on Warm Gold is 2.7:1 — below the 4.5:1 WCAG AA needs for 11px text.
   This is a deliberate client choice, matching the same call already made on
   cart/checkout, and it overrides DESIGN.md's Espresso-on-gold button rule for
   this element only. The hover state stays on Gold Ink over the ivory ground,
   which clears AA at 5.5:1. */
.ivory-theme .ivory-hero-video__button:hover { background: transparent; color: var(--ivory-accent-text); }

/* ==========================================================================
   Product tabs accordion (single product)

   RECONSTRUCTED 2026-08-24, not recovered. The <details>/<summary> accordion
   markup in woocommerce/single-product/tabs/tabs.php is documented in the
   project notes, but no matching rules survived in the recovered stylesheet,
   so these were rewritten from the design tokens. If the original styling
   differed, this is the block to revisit.
   ========================================================================== */
.ivory-accordion { border-bottom: 1px solid var(--ivory-line); }
.ivory-accordion__summary {
	list-style: none;
	cursor: pointer;
	padding: 20px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ivory-fg);
	transition: color 400ms ease;
}
.ivory-accordion__summary::-webkit-details-marker { display: none; }
.ivory-accordion__summary::after {
	content: "+";
	font-size: 15px;
	line-height: 1;
	color: var(--ivory-accent-text);
	transition: transform 300ms ease;
}
.ivory-accordion[open] > .ivory-accordion__summary::after { content: "–"; }
.ivory-accordion__summary:hover { color: var(--ivory-accent-text); }
.ivory-accordion__panel { padding: 0 0 28px; max-width: 74ch; }
.ivory-accordion__panel p,
.ivory-accordion__panel li { font-size: 15px; line-height: 1.8; color: var(--ivory-muted); }
.ivory-accordion__panel table { width: 100%; border-collapse: collapse; }
.ivory-accordion__panel th,
.ivory-accordion__panel td {
	text-align: start;
	padding: 10px 0;
	border-bottom: 1px solid var(--ivory-line);
	font-size: 14px;
	font-weight: 300;
	color: var(--ivory-muted);
}
.ivory-accordion__panel th { color: var(--ivory-fg); width: 34%; }
/* WooCommerce computes the Reviews panel heading rather than exposing it via
   a filter (unlike the Description/Additional Information headings, which are
   filtered off in functions.php), so it is suppressed here instead. */
.ivory-accordion__panel #reviews > h2:first-child { display: none; }

/* ==========================================================================
   WooCommerce specificity fixes

   woocommerce.css ships `.woocommerce .woocommerce-breadcrumb { padding: 0 }`
   at specificity (0,2,0), which out-ranks this theme's single-class
   `.woocommerce-breadcrumb` rule above and strips the page gutter — the
   breadcrumb then sits flush against the viewport edge (most obvious on
   mobile). Re-asserted here at (0,2,1) so it wins on specificity rather
   than on stylesheet load order, and without !important.
   Confirmed against computed styles in-browser, not assumed.
   ========================================================================== */
body.woocommerce .woocommerce-breadcrumb,
body.woocommerce-page .woocommerce-breadcrumb {
	max-width: 1560px;
	margin: 0 auto;
	padding: clamp(20px, 3vw, 32px) var(--gap-page) 0;
}

/* ==========================================================================
   Category Grid widget (custom Elementor widget)

   Replaces the hand-built container/heading version of "Shop by category",
   whose piece counts were static text and had drifted out of date. Visual
   spec is unchanged from that version — 4:5 card, 22px serif name, 10px
   uppercase Jost count — so this is a data fix, not a redesign.
   ========================================================================== */
.ivory-catgrid { max-width: 1560px; margin: 0 auto; padding: clamp(64px, 7vw, 112px) var(--gap-page) clamp(72px, 8vw, 124px); }
.ivory-catgrid__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 20px;
	margin-bottom: clamp(32px, 4vw, 56px);
	border-bottom: 1px solid var(--ivory-line);
}
.ivory-catgrid__title { font-family: var(--font-serif); font-weight: 300; font-size: clamp(28px, 2.6vw, 40px); margin: 0; color: var(--ivory-fg); }
.ivory-catgrid__all { font-size: var(--eyebrow); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-muted); }
.ivory-catgrid__all:hover { color: var(--ivory-accent-text); }
.ivory-catgrid__grid { display: grid; gap: clamp(14px, 1.6vw, 28px); }
.ivory-catcard { display: block; }
.ivory-catcard__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ivory-white); }
.ivory-catcard__media img {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms cubic-bezier(.22,.61,.36,1);
}
.ivory-catcard__tile { position: absolute; inset: 0; display: block; overflow: hidden; }
/* 2x2 collage of four real product photos; the hairline gap between tiles is
   the card background showing through, so it follows the theme. */
.ivory-catcard__media--collage {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 2px;
}
.ivory-catcard__media--collage .ivory-catcard__tile { position: relative; inset: auto; }
.ivory-catcard:hover .ivory-catcard__media img,
.ivory-catcard:focus-within .ivory-catcard__media img { transform: scale(1.04); }
.ivory-catcard__body { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 16px; }
.ivory-catcard__name { font-family: var(--font-serif); font-size: 22px; color: var(--ivory-fg); }
.ivory-catcard__count { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-muted); white-space: nowrap; }
@media (max-width: 560px) {
	.ivory-catgrid__head { flex-direction: column; align-items: flex-start; gap: 10px; }
	.ivory-catcard__name { font-size: 19px; }
}

/* ==========================================================================
   Cart & Checkout (WooCommerce Blocks)

   Both pages are block-based (wp:woocommerce/cart, wp:woocommerce/checkout),
   NOT the classic shortcode templates — so unlike every other WooCommerce
   surface in this theme they cannot be themed with PHP template overrides in
   woocommerce/. They are React-rendered at runtime and can only be styled by
   targeting the block class names, which is what this section does.
   Class names were read off the live DOM, not guessed.
   ========================================================================== */

/* -- Container ------------------------------------------------------------ */
.ivory-commerce {
	max-width: 1560px;
	margin: 0 auto;
	padding: clamp(48px, 6vw, 88px) var(--gap-page) clamp(64px, 8vw, 112px);
}
/* `.ivory-theme h1` (the base reset) is (0,1,1) and out-ranks a plain
   `.ivory-commerce__title` class selector at (0,1,0) — the margin below was
   silently losing to that reset's `margin: 0`, collapsing the gap under
   "Cart"/"Checkout" to nothing. Scoped through the wrapper to win. */
.ivory-commerce .ivory-commerce__title {
	font-family: var(--font-serif);
	font-weight: 300;
	font-size: clamp(32px, 4vw, 52px);
	margin: 0 0 clamp(28px, 4vw, 48px);
}

/* -- Shared block resets -------------------------------------------------- */
.ivory-commerce .wc-block-components-button,
.ivory-commerce .wc-block-components-text-input input,
.ivory-commerce .wc-blocks-components-select__select,
.ivory-commerce .wc-block-components-quantity-selector {
	border-radius: 0;
	font-family: var(--font-sans);
}
.ivory-commerce .wc-block-components-title,
.ivory-commerce .wp-block-heading {
	font-family: var(--font-serif);
	font-weight: 300;
	color: var(--ivory-fg);
}

/* -- Primary actions: Proceed to Checkout / Place Order -------------------
   WooCommerce Blocks ships these as a dark filled pill. Re-cast as the
   theme's own gold-fill button. Text is white per explicit client direction
   (2026-08-24), overriding DESIGN.md's Fill-Ink Split rule (Espresso-on-gold,
   6.2:1) for this specific pairing — white-on-#B8935A measures ~2.8:1, below
   WCAG AA's 4.5:1 for this text size. Flagged to the client at the time;
   this is their call to make on their own brand, not a bug. */
.ivory-commerce .wc-block-cart__submit-button,
.ivory-commerce .wc-block-components-checkout-place-order-button {
	width: 100%;
	background: var(--ivory-accent);
	color: var(--ivory-white);
	border: 1px solid var(--ivory-accent);
	border-radius: 0;
	padding: 17px 34px;
	font-size: var(--eyebrow);
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transition: background 500ms ease, color 500ms ease;
}
.ivory-commerce .wc-block-cart__submit-button:hover,
.ivory-commerce .wc-block-components-checkout-place-order-button:hover {
	background: transparent;
	color: var(--ivory-accent-text);
}

/* -- Form fields ---------------------------------------------------------
   Matches the underline-only treatment used by the CF7 forms elsewhere. */
/* checkout.css styles these as white boxed inputs with a 4px radius at
   specificity (0,3,1) — `.wc-block-components-form
   .wc-block-components-text-input input[type="email"]`. A matching (0,3,1)
   selector only ties and would be decided by load order, so the form class
   is included here to reach (0,4,1) and win outright. */
.ivory-commerce .wc-block-components-form .wc-block-components-text-input input[type="text"],
.ivory-commerce .wc-block-components-form .wc-block-components-text-input input[type="email"],
.ivory-commerce .wc-block-components-form .wc-block-components-text-input input[type="tel"],
.ivory-commerce .wc-block-components-form .wc-block-components-text-input input[type="number"],
.ivory-commerce .wc-block-components-text-input input[type="text"],
.ivory-commerce .wc-block-components-text-input input[type="email"],
.ivory-commerce .wc-block-components-text-input input[type="tel"],
.ivory-commerce .wc-block-components-text-input input[type="number"],
.ivory-commerce .wc-blocks-components-select .wc-blocks-components-select__select {
	border: none;
	border-bottom: 1px solid var(--ivory-line);
	border-radius: 0;
	background: transparent;
	padding: 14px 0;
	font-size: 15px;
	font-weight: 300;
	color: var(--ivory-fg);
	box-shadow: none;
}
.ivory-commerce .wc-block-components-form .wc-block-components-text-input input:focus,
.ivory-commerce .wc-block-components-text-input input:focus,
.ivory-commerce .wc-blocks-components-select .wc-blocks-components-select__select:focus {
	outline: none;
	border-bottom-color: var(--ivory-accent);
	box-shadow: none;
}
.ivory-commerce .wc-block-components-text-input label,
.ivory-commerce .wc-blocks-components-select__label {
	font-family: var(--font-sans);
	font-size: var(--eyebrow);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ivory-muted);
}

/* These are floating labels positioned 10px in from the left, which assumes
   a boxed field with inner padding. With the underline treatment the field
   starts at x=0, so the label has to as well or it sits indented from every
   heading and value on the page. */
.ivory-commerce .wc-block-components-form .wc-block-components-text-input label,
.ivory-commerce .wc-block-components-text-input label { inset-inline-start: 0; }

/* The select sits in its own wrapper that carries the white fill and 4px
   radius (the <select> itself is transparent), and its floating label is
   absolutely positioned 10px in — both assume a boxed field. Flatten the
   wrapper and pull the label back to the underline's left edge. */
.ivory-commerce .wc-blocks-components-select .wc-blocks-components-select__container {
	background: transparent;
	border: none;
	border-radius: 0;
}
.ivory-commerce .wc-blocks-components-select .wc-blocks-components-select__label {
	inset-inline-start: 0;
	top: 0;
}
.ivory-commerce .wc-blocks-components-select .wc-blocks-components-select__select {
	padding-top: 22px;
	padding-bottom: 10px;
}

/* -- Checkout step headings ---------------------------------------------- */
.ivory-commerce .wc-block-components-checkout-step__title,
.ivory-commerce .wc-block-components-checkout-order-summary__title-text {
	font-family: var(--font-serif);
	font-weight: 300;
	font-size: clamp(20px, 2vw, 26px);
	color: var(--ivory-fg);
	text-transform: none;
	letter-spacing: 0;
}
.ivory-commerce .wc-block-components-checkout-step__description {
	font-size: 14px;
	line-height: 1.7;
	color: var(--ivory-muted);
}

/* -- Cart line items ------------------------------------------------------
   SPECIFICITY NOTE, and it governs this whole section: cart.css targets the
   line-item internals through its own table chain, at up to (0,4,1) —
   e.g. `table.wc-block-cart-items .wc-block-cart-items__row
   .wc-block-components-product-name`. A single `.ivory-commerce X` prefix is
   only (0,2,0) and silently loses, which is why the cart rendered with
   WooCommerce's default 13-14px type despite theme rules existing for it.
   Every rule below that has to beat cart.css therefore MIRRORS cart.css's own
   chain and prefixes it, landing one class above whatever it overrides.
   Do not "simplify" these selectors back to a single prefix. */
.ivory-commerce table.wc-block-cart-items .wc-block-cart-items__header th,
.ivory-commerce table.wc-block-cart-items .wc-block-cart-items__header {
	font-family: var(--font-sans);
	font-size: var(--eyebrow);
	font-weight: 300;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ivory-muted);
	border-bottom: 1px solid var(--ivory-line);
	padding-bottom: 14px;
}
.ivory-commerce .wc-block-cart-items__row { border-bottom: 1px solid var(--ivory-line); }
/* Breathing room between the stacked name / price / spec / quantity lines —
   WooCommerce packs them at 4px, which reads as a dense receipt rather than a
   considered list of jewelry. */
.ivory-commerce table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__wrap,
.ivory-commerce .wc-block-cart-item__wrap { gap: 10px; }
/* The image cell is sized by WooCommerce to a narrow column, and
   cart.css forces the <img> itself to width:100% at specificity (0,3,1)
   via `table.wc-block-cart-items .wc-block-cart-items__row
   .wc-block-cart-item__image img`. So the cell has to be widened AND the
   img rule re-stated at (0,4,1) to win — matching the site's 1:1 product
   crop instead of the squeezed default.
   DESKTOP ONLY, deliberately: below 700px cart.css switches the row from a
   real `<table>` layout to its own `display:grid` with a *container query*
   (`grid-template-columns: 80px 132px`, an implicit auto-sized 3rd track for
   the total). An earlier version of this rule had no breakpoint guard, so it
   also fought that grid's 80px image track at mobile widths — the resulting
   mismatch was what pushed the total column past the row's own right edge.
   Never widen this cell outside min-width:701px; the mobile column widths
   live in the container-query block below instead. */
@media (min-width: 701px) {
	.ivory-commerce table.wc-block-cart-items .wc-block-cart-item__image {
		width: 124px;
		padding-inline-end: 20px;
	}
}
.ivory-commerce table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img {
	width: 100%;
	max-width: none;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: var(--ivory-bg-alt);
}
/* The piece name is the row's headline — Title role (21px Cormorant), not
   cart.css's 14px preset. Mirrors cart.css's chain to out-rank it. */
.ivory-commerce table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name,
.ivory-commerce .wc-block-components-product-name {
	font-family: var(--font-serif);
	font-size: 21px;
	font-weight: 300;
	line-height: 1.2;
	color: var(--ivory-fg);
}
.ivory-commerce .wc-block-components-product-name:hover { color: var(--ivory-accent-text); }
.ivory-commerce .wc-block-components-product-metadata__description,
.ivory-commerce .wc-block-components-product-metadata {
	font-size: 13px;
	line-height: 1.7;
	color: var(--ivory-muted);
}
/* Per-unit price sits under the name AND is repeated as the line total on the
   right; at quantity 1 they are the same number. Demote this one to quiet
   meta so the row has a single dominant figure (the line total) instead of
   two competing ones. */
.ivory-commerce table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__prices,
.ivory-commerce .wc-block-cart-item__prices .wc-block-components-product-price {
	font-size: var(--eyebrow);
	letter-spacing: 0.12em;
	color: var(--ivory-muted);
}
/* The line total is the number the shopper actually reads down the column. */
.ivory-commerce table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total .wc-block-components-product-price,
.ivory-commerce .wc-block-cart-item__total .wc-block-components-product-price {
	font-size: 15px;
	letter-spacing: 0.02em;
	color: var(--ivory-fg);
}
/* Every figure in the cart and checkout is money in a column. Lining,
   fixed-width numerals keep the decimal points stacked between rows and stop
   the total shifting as digits change — Jost's default proportional figures
   do neither. */
.ivory-commerce .wc-block-components-product-price,
.ivory-commerce .wc-block-components-formatted-money-amount,
.ivory-commerce .wc-block-components-totals-item__value,
.ivory-commerce .wc-block-components-quantity-selector__input {
	font-family: var(--font-sans);
	font-weight: 300;
	letter-spacing: 0.02em;
	color: var(--ivory-fg);
	font-variant-numeric: tabular-nums lining-nums;
	font-feature-settings: "tnum" 1, "lnum" 1;
}
.ivory-commerce .wc-block-cart-item__remove-link {
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ivory-muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}
.ivory-commerce .wc-block-cart-item__remove-link:hover {
	color: var(--ivory-accent-text);
	border-bottom-color: var(--ivory-accent);
}

/* -- Quantity stepper ----------------------------------------------------- */
.ivory-commerce .wc-block-components-quantity-selector {
	border: 1px solid var(--ivory-line);
	background: transparent;
	max-width: 118px;
}
.ivory-commerce .wc-block-components-quantity-selector::after { display: none; }
.ivory-commerce .wc-block-components-quantity-selector__input {
	font-size: 14px;
	color: var(--ivory-fg);
	background: transparent;
}
.ivory-commerce .wc-block-components-quantity-selector__button {
	color: var(--ivory-muted);
	font-size: 16px;
	transition: color 300ms ease;
}
.ivory-commerce .wc-block-components-quantity-selector__button:hover { color: var(--ivory-accent-text); }

/* -- Totals & order summary -----------------------------------------------
   The summary reads as one Warm Sand block rather than a bordered card —
   depth here is tonal, per the system's No-Shadow Rule. The title lives
   inside the block with the figures it heads, instead of floating above it. */
/* Cart only: this panel sits on the page background rather than a Warm Sand
   fill, with a hairline for its edge — structure by 1px rule, never by
   shadow, per the system's No-Shadow Rule. The checkout's own summary box
   deliberately keeps the Warm Sand fill (see the order review table below);
   they are intentionally not identical. */
.ivory-commerce .wp-block-woocommerce-cart-order-summary-block {
	background: transparent;
	border: 1px solid var(--ivory-line);
	padding: clamp(24px, 2.4vw, 34px);
}
.ivory-commerce .wp-block-woocommerce-checkout-order-summary-block {
	background: var(--ivory-bg-alt);
	padding: clamp(24px, 2.4vw, 34px);
}
/* Sticky summary on wide screens, reusing the offset the product page's buy
   box already uses so the two behave identically. */
@media (min-width: 901px) {
	.ivory-commerce .wc-block-cart__sidebar,
	.ivory-commerce .wc-block-checkout__sidebar {
		position: sticky;
		top: 108px;
		align-self: flex-start;
	}
}
.ivory-commerce .wc-block-components-totals-wrapper { border-top: 1px solid var(--ivory-line); }
/* First wrapper inside the panel needs no rule above it — the panel edge
   already separates it. */
.ivory-commerce .wp-block-woocommerce-cart-order-summary-block > *:first-child,
.ivory-commerce .wp-block-woocommerce-checkout-order-summary-block > *:first-child { border-top: none; }
/* The summary panel carries its own edge, so the button sits clear of it. */
.ivory-commerce .wc-block-cart__submit { padding-top: clamp(20px, 2vw, 28px); }
.ivory-commerce .wc-block-cart__totals-title {
	display: block;
	font-family: var(--font-sans);
	font-size: var(--eyebrow);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ivory-muted);
	padding: 0 0 4px;
}
.ivory-commerce .wc-block-components-totals-item__label {
	font-size: var(--eyebrow);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ivory-muted);
}
.ivory-commerce .wc-block-components-totals-item__value { font-family: var(--font-sans); color: var(--ivory-fg); }
/* The order total is the one figure that gets real size — Title scale, serif,
   so it lands as the conclusion of the column rather than another table row. */
.ivory-commerce .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-family: var(--font-serif);
	font-size: 21px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ivory-fg);
}
.ivory-commerce .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 19px;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--ivory-fg);
}
.ivory-commerce .wc-block-components-panel__button {
	font-size: var(--eyebrow);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ivory-muted);
}
.ivory-commerce .wc-block-components-panel__button:hover { color: var(--ivory-accent-text); }

/* -- Empty cart -----------------------------------------------------------
   The `with-empty-cart-icon` class paints a large cartoon sad-face via a
   ::before background image — badly off-brand for this shop. Suppressed and
   replaced with the theme's own quiet empty-state typography. */
.ivory-commerce .wc-block-cart__empty-cart__title.with-empty-cart-icon::before { display: none; }
/* The block centres its own headings while the page title, the shop header
   and every other surface on this site run left off the page gutter. Two
   competing axes in one short composition read as an accident, so the empty
   state is pulled onto the page's own axis. */
.ivory-commerce .wp-block-woocommerce-empty-cart-block,
.ivory-commerce .wp-block-woocommerce-empty-cart-block .wp-block-heading,
.ivory-commerce .wp-block-woocommerce-empty-cart-block .wc-block-grid__products,
.ivory-commerce .wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
	text-align: start;
}
/* The message is the moment; the "New in store" rule below it is a section
   label. They shipped at the same size, which flattened the state to a list
   of same-weight sentences. */
.ivory-commerce .wc-block-cart__empty-cart__title {
	font-family: var(--font-serif);
	font-weight: 300;
	font-size: clamp(28px, 3.2vw, 42px);
	line-height: 1.1;
	color: var(--ivory-fg);
	padding-top: 0;
	margin: 0 0 clamp(48px, 6vw, 76px);
	max-width: none;
}
.ivory-commerce .wp-block-woocommerce-empty-cart-block .wp-block-heading:not(.wc-block-cart__empty-cart__title) {
	font-family: var(--font-sans);
	font-size: var(--eyebrow);
	font-weight: 300;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ivory-muted);
	padding-bottom: 14px;
	margin: 0 0 clamp(24px, 3vw, 36px);
	border-bottom: 1px solid var(--ivory-line);
}
.ivory-commerce .wp-block-separator.is-style-dots { display: none; }
/* WooCommerce's grid uses negative side margins for its own gutter, which
   pushed the product row 8px left of the page gutter every other section
   aligns to. */
.ivory-commerce .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
	margin-left: 0;
	margin-right: 0;
}

/* -- Notices -------------------------------------------------------------- */
.ivory-commerce .wc-block-components-notice-banner {
	border-radius: 0;
	font-family: var(--font-sans);
	font-size: 14px;
}

/* Below 700px, cart.css itself switches `.wc-block-cart-items__row` from a
   real table row to `display:grid` (a CONTAINER query, not a viewport media
   query, but this cart layout never sits beside a narrower sidebar column
   so the two track closely enough to key off viewport width here too) —
   `grid-template-columns: 80px 132px`, with the total column auto-placed
   into an implicit, content-sized third track. That grid is already
   correctly contained within the row's own box; the fix here is content
   styling ONLY. Do not add width/padding to `.wc-block-cart-item__image` or
   `__total` in this block — an earlier version did, which fought their
   track sizing and pushed the total column's box past the row's right edge
   (see the desktop-only guard above `.wc-block-cart-item__image`). */
@media (max-width: 780px) {
	.ivory-commerce table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name,
	.ivory-commerce .wc-block-components-product-name { font-size: 18px; }
	.ivory-commerce table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total .wc-block-components-product-price,
	.ivory-commerce .wc-block-cart-item__total .wc-block-components-product-price {
		font-size: 13px;
	}
	.ivory-commerce .wc-block-cart-item__wrap { gap: 8px; }
}

/* -- Empty cart: "New in store" product grid -------------------------------
   The empty-cart block embeds WooCommerce's own wc-block-grid product list,
   which ships its own card styling (including a dark slate Add-to-cart
   button). Bring it in line with the rest of the shop. */
.ivory-commerce .wc-block-cart__empty-cart__title + .wp-block-separator + .wp-block-heading,
.ivory-commerce .wp-block-woocommerce-empty-cart-block .wp-block-heading {
	font-family: var(--font-serif);
	font-weight: 300;
	font-size: clamp(20px, 2vw, 26px);
	color: var(--ivory-fg);
	margin-bottom: clamp(24px, 3vw, 40px);
}
.ivory-commerce .wc-block-grid__product { text-align: start; }
.ivory-commerce .wc-block-grid__product-image img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: var(--ivory-bg-alt);
}
.ivory-commerce .wc-block-grid__product-title {
	font-family: var(--font-serif);
	font-size: 20px;
	font-weight: 300;
	color: var(--ivory-fg);
}
.ivory-commerce .wc-block-grid__product-price {
	font-family: var(--font-sans);
	font-size: 12px;
	letter-spacing: 0.12em;
	color: var(--ivory-muted);
}
.ivory-commerce .wc-block-grid__product .wp-block-button__link,
.ivory-commerce .wp-block-woocommerce-empty-cart-block .wp-block-button__link {
	background: transparent;
	color: var(--ivory-fg);
	border: 1px solid var(--ivory-accent);
	border-radius: 0;
	padding: 11px 22px;
	font-family: var(--font-sans);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transition: background 500ms ease, color 500ms ease;
}
.ivory-commerce .wc-block-grid__product .wp-block-button__link:hover,
.ivory-commerce .wp-block-woocommerce-empty-cart-block .wp-block-button__link:hover {
	background: var(--ivory-accent);
	color: var(--ivory-white);
}

/* ==========================================================================
   Classic checkout (shortcode) + Civil ID upload

   Checkout was moved off the WooCommerce block checkout because that block
   cannot render a file field (its API allows text/select/checkbox only) and
   the store must collect a Civil ID. These rules dress the classic template;
   the block rules above still serve the Cart page, which remains a block.
   ========================================================================== */
.ivory-commerce .woocommerce-billing-fields h3,
.ivory-commerce #order_review_heading,
.ivory-commerce .woocommerce-additional-fields h3 {
	font-family: var(--font-serif);
	font-weight: 300;
	font-size: clamp(20px, 2vw, 26px);
	color: var(--ivory-fg);
	margin: 0 0 clamp(18px, 2vw, 26px);
}
.ivory-commerce form.checkout { display: grid; gap: clamp(32px, 4vw, 64px); }
@media (min-width: 901px) {
	.ivory-commerce form.checkout {
		/* Roughly 60/40. The form column carries paired fields so it needs the
		   width; the summary is a narrow list of figures. */
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		column-gap: clamp(40px, 5vw, 88px);
		align-items: start;
	}
	/* Explicit rows matter: with auto-placement the summary heading landed in
	   row 2 and the summary itself in row 3, which pushed the whole right
	   column far below the billing fields instead of beside them.
	   `auto 1fr` is equally load-bearing — the billing column spans both rows,
	   and without a 1fr row to absorb its height the surplus inflated row 1,
	   opening a large gap between "Your order" and the summary box. */
	/* row-gap 0: the only row boundary in this grid is between "Your order"
	   and the summary box, and that pair should read as one unit. The
	   heading's own margin-bottom provides the space; the inherited 51px row
	   gap on top of it was the visible split. */
	/* Row 1 exists only for the validation notice, which WooCommerce's script
	   PREPENDS to the form after a failed submit. Every other child is placed
	   explicitly, so that un-placed arrival was auto-flowed into the first
	   free cell — the bottom of the left column, below two thousand pixels of
	   form, which is the worst possible spot for the message telling you what
	   went wrong. With no notice present this row is `auto` over an empty
	   track and collapses to zero. */
	.ivory-commerce form.checkout { grid-template-rows: auto auto 1fr; row-gap: 0; }
	.ivory-commerce form.checkout > .woocommerce-NoticeGroup {
		grid-column: 1 / -1;
		grid-row: 1;
	}
	.ivory-commerce form.checkout > #customer_details {
		grid-column: 1;
		grid-row: 2 / -1;
	}
	.ivory-commerce form.checkout > h3#order_review_heading {
		grid-column: 2;
		grid-row: 2;
		margin-top: 0;
	}
	.ivory-commerce form.checkout > #order_review {
		grid-column: 2;
		grid-row: 3;
		align-self: start;
		position: sticky;
		top: 108px;
	}
}
/* WooCommerce's classic template wraps billing and "additional information"
   in a floated .col2-set, which inside the left grid column collapsed both
   into two cramped ~47% columns. Stack them instead — billing is long, and
   the order notes belong after it, not beside it. */
/* The notice is its own group and needs to clear the form beneath it. */
.ivory-commerce form.checkout > .woocommerce-NoticeGroup {
	margin-block-end: clamp(28px, 3vw, 40px);
}

.ivory-commerce .col2-set { display: block; width: 100%; }
.ivory-commerce .col2-set .col-1,
.ivory-commerce .col2-set .col-2 {
	float: none;
	width: 100%;
	max-width: none;
	margin: 0;
}
.ivory-commerce .col2-set .col-2 { margin-top: clamp(28px, 3vw, 44px); }
/* WooCommerce lays these out with legacy floats and percentage widths
   (.form-row-first/.form-row-last at 47%). Replace with a real two-column
   grid so paired fields align and full-width fields span cleanly. */
.ivory-commerce .woocommerce-billing-fields__field-wrapper,
.ivory-commerce .woocommerce-shipping-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 clamp(16px, 2vw, 28px);
}
.ivory-commerce .woocommerce-billing-fields__field-wrapper .form-row,
.ivory-commerce .woocommerce-shipping-fields__field-wrapper .form-row {
	float: none;
	width: auto;
	grid-column: 1 / -1;
}
.ivory-commerce .woocommerce-billing-fields__field-wrapper .form-row-first { grid-column: 1; }
.ivory-commerce .woocommerce-billing-fields__field-wrapper .form-row-last { grid-column: 2; }
@media (max-width: 640px) {
	.ivory-commerce .woocommerce-billing-fields__field-wrapper,
	.ivory-commerce .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
	.ivory-commerce .woocommerce-billing-fields__field-wrapper .form-row-first,
	.ivory-commerce .woocommerce-billing-fields__field-wrapper .form-row-last { grid-column: 1; }
}

/* Only one country is sold to, so WooCommerce renders a locked single-option
   select (`country_to_state--single`). The value still posts — this hides the
   row only, so nothing downstream (WooCommerce validation, Tap's gateway)
   loses the country. Do NOT remove the field itself.
   !important is required and verified, not defensive: WooCommerce's checkout
   JS calls jQuery .show() on address rows, which writes `display: block`
   as an INLINE style — inline beats any stylesheet selector regardless of
   specificity, so this is the only thing that holds. */
.ivory-commerce #billing_country_field,
.ivory-commerce #shipping_country_field { display: none !important; }

.ivory-commerce .form-row { margin: 0 0 22px; padding: 0; }
.ivory-commerce .form-row label {
	display: block;
	font-family: var(--font-sans);
	font-size: var(--eyebrow);
	font-weight: 300;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ivory-muted);
	margin-bottom: 6px;
}
.ivory-commerce .form-row .required { color: var(--ivory-accent-text); text-decoration: none; }
/* woocommerce.css dresses every field as a boxed control via
   `.woocommerce form .form-row .input-text` at (0,3,2). Matching that reach
   only ties (and would then be settled by load order), so these selectors
   add the form's own class to land at (0,4,2) and win outright. */
.ivory-commerce form.checkout .form-row input.input-text,
.ivory-commerce form.checkout .form-row textarea.input-text,
.ivory-commerce form.checkout .form-row textarea,
.ivory-commerce form.checkout .form-row select,
.ivory-commerce .form-row input.input-text,
.ivory-commerce .form-row textarea,
.ivory-commerce .form-row select,
.ivory-commerce .select2-container .select2-selection--single {
	width: 100%;
	border: none;
	border-bottom: 1px solid var(--ivory-line);
	border-radius: 0;
	background: transparent;
	padding: 12px 0;
	font-family: var(--font-sans);
	font-size: 15px;
	font-weight: 300;
	color: var(--ivory-fg);
	box-shadow: none;
	height: auto;
}
.ivory-commerce .form-row input.input-text:focus,
.ivory-commerce .form-row textarea:focus,
.ivory-commerce .form-row select:focus {
	outline: none;
	border-bottom-color: var(--ivory-accent);
}
/* woocommerce.css styles the order-notes textarea as a boxed control at
   `.woocommerce form .form-row textarea` (0,3,2), which out-ranks the shared
   field rule above — restate it at matching reach so notes match every other
   field on the page. */
.ivory-commerce form.checkout .form-row textarea,
.ivory-commerce .form-row textarea { min-height: 110px; resize: vertical; }
.ivory-commerce .woocommerce-input-wrapper { display: block; width: 100%; }

/* Order review table — keeps the Warm Sand fill (client's call: only the cart
   panel was to lose it). Type roles below are matched to the cart summary so
   the two read as the same component in two states. */
.ivory-commerce .woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--ivory-bg-alt);
	padding: clamp(20px, 2vw, 30px);
	display: block;
}
.ivory-commerce .woocommerce-checkout-review-order-table tbody,
.ivory-commerce .woocommerce-checkout-review-order-table tfoot,
.ivory-commerce .woocommerce-checkout-review-order-table thead { display: block; }
.ivory-commerce .woocommerce-checkout-review-order-table tr {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ivory-line);
}
/* The rule under each line belongs to the ROW, not to its cells. WooCommerce
   puts a border-top on every th/td at (0,2,2) and loads after this stylesheet,
   so the `border: none` below — (0,2,1) — lost: each row drew TWO short rules
   with a 246px gap between them, because the row is a flex with
   space-between. Leading with `body.ivory-theme` and naming the table element
   takes this to (0,4,3) so the cells stay clean and the row's own single
   border is what you see. */
body.ivory-theme .ivory-commerce table.woocommerce-checkout-review-order-table th,
body.ivory-theme .ivory-commerce table.woocommerce-checkout-review-order-table td {
	border: none;
}
body.ivory-theme .ivory-commerce table.woocommerce-checkout-review-order-table tr {
	border-bottom: 1px solid var(--ivory-line);
}
/* Only the final row of the whole table loses its rule. `tr:last-child` alone
   is wrong here: thead, tbody and tfoot are each display:block, so every
   section has its own last child — it stripped the rule from the header row
   and the last line item too, leaving a single rule floating under the
   subtotal. */
body.ivory-theme .ivory-commerce table.woocommerce-checkout-review-order-table tfoot tr:last-child {
	border-bottom: none;
}

.ivory-commerce .woocommerce-checkout-review-order-table th,
.ivory-commerce .woocommerce-checkout-review-order-table td {
	border: none;
	padding: 0;
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 300;
	text-align: start;
	font-variant-numeric: tabular-nums lining-nums;
}
.ivory-commerce .woocommerce-checkout-review-order-table .product-name { color: var(--ivory-fg); }
.ivory-commerce .woocommerce-checkout-review-order-table .product-total,
.ivory-commerce .woocommerce-checkout-review-order-table td { text-align: end; }
.ivory-commerce .woocommerce-checkout-review-order-table thead th {
	font-size: var(--eyebrow);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ivory-muted);
}
/* Type roles matched 1:1 to the cart summary panel, which is the reference:
   column headers and intermediate rows are Label (11px Jost 300, uppercase,
   0.16em, Warm Taupe); the final total pairs a Cormorant 21px/500 label with
   a Jost 19px/500 figure. Weights are set explicitly because <th> is bold by
   browser default, which was the main visible mismatch. */
.ivory-commerce .woocommerce-checkout-review-order-table thead th {
	font-family: var(--font-sans);
	font-size: var(--eyebrow);
	font-weight: 300;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ivory-muted);
}
.ivory-commerce .woocommerce-checkout-review-order-table .cart-subtotal th {
	font-family: var(--font-sans);
	font-size: var(--eyebrow);
	font-weight: 300;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ivory-muted);
}
.ivory-commerce .woocommerce-checkout-review-order-table .cart-subtotal td {
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 300;
	color: var(--ivory-fg);
}
.ivory-commerce .woocommerce-checkout-review-order-table .order-total th {
	font-family: var(--font-serif);
	font-size: 21px;
	font-weight: 500;
	letter-spacing: normal;
	text-transform: none;
	color: var(--ivory-fg);
}
/* WooCommerce wraps the order total figure in <strong>, which is bold (700)
   by browser default and overrides the cell's own weight — so the inner
   element has to be set too, or the total stays heavier than the cart's. */
.ivory-commerce .woocommerce-checkout-review-order-table .order-total td,
.ivory-commerce .woocommerce-checkout-review-order-table .order-total td strong,
.ivory-commerce .woocommerce-checkout-review-order-table .order-total td .amount,
.ivory-commerce .woocommerce-checkout-review-order-table .order-total td bdi {
	font-family: var(--font-sans);
	font-size: 19px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--ivory-fg);
}
/* Line items: the piece name carries the same serif voice it has everywhere
   else in the shop, with the quantity kept quiet beside it. */
.ivory-commerce .woocommerce-checkout-review-order-table .cart_item td.product-name {
	font-family: var(--font-serif);
	font-size: 18px;
	font-weight: 400;
	color: var(--ivory-fg);
}
.ivory-commerce .woocommerce-checkout-review-order-table .cart_item td.product-name .product-quantity {
	font-family: var(--font-sans);
	font-size: var(--eyebrow);
	letter-spacing: 0.12em;
	color: var(--ivory-muted);
}
.ivory-commerce .woocommerce-checkout-review-order-table .cart_item td.product-total {
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 300;
	color: var(--ivory-fg);
}
.ivory-commerce .woocommerce-checkout-review-order-table tr:last-child { border-bottom: none; }

/* Place order */
.ivory-commerce #place_order,
.ivory-commerce .woocommerce-checkout #payment #place_order {
	width: 100%;
	background: var(--ivory-accent);
	color: var(--ivory-white);
	border: 1px solid var(--ivory-accent);
	border-radius: 0;
	padding: 17px 34px;
	font-family: var(--font-sans);
	font-size: var(--eyebrow);
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transition: background 500ms ease, color 500ms ease;
}
.ivory-commerce #place_order:hover { background: transparent; color: var(--ivory-accent-text); }
.ivory-commerce #payment {
	background: transparent;
	border-radius: 0;
	margin-top: clamp(20px, 2vw, 28px);
}
.ivory-commerce #payment ul.payment_methods {
	border: none;
	padding: 0 0 16px;
	margin: 0;
	list-style: none;
}
.ivory-commerce #payment div.form-row { padding: 0; }
.ivory-commerce #payment .payment_box {
	background: var(--ivory-bg-alt);
	border-radius: 0;
	font-size: 14px;
	color: var(--ivory-muted);
}
.ivory-commerce #payment .payment_box::before { display: none; }

/* -- Loading state -------------------------------------------------------
   WooCommerce blocks the order review on every address change and paints a
   grey circular spinner from its own assets (loader.svg) over a flat white
   veil. Two problems: it is a plugin default sitting in the middle of a
   deliberately quiet page, and a rotating circle is the one shape this system
   does not have — The Sharp Edge Rule puts border-radius at 0 everywhere, so
   a spinning disc reads as borrowed from somewhere else.

   Replaced with a gold hairline sweeping across the top edge of whatever is
   loading. That is the system's own vocabulary: a 1–2px rule in the accent,
   the same device used for dividers and focus. The overlay tone comes from
   the page rather than pure white.

   !important is required and verified, not defensive: jQuery blockUI writes
   the veil's background and opacity as INLINE styles, which no selector can
   outrank. The ::before rules need no such help and do not use it. */
.ivory-commerce .blockUI.blockOverlay {
	background: var(--ivory-bg) !important;
	opacity: 0.74 !important;
	cursor: progress;
}
.ivory-commerce .blockUI.blockOverlay::before {
	inset-block-start: 0;
	inset-inline-start: 0;
	inline-size: 100%;
	block-size: 2px;
	margin: 0;
	/* Cancels the stock sprite, its sizing and its spin keyframes. */
	background-image: linear-gradient(90deg, transparent, var(--ivory-accent), transparent);
	background-repeat: no-repeat;
	background-size: 42% 100%;
	background-position: -42% 0;
	animation: ivory-loading-sweep 1150ms cubic-bezier(0.45, 0, 0.3, 1) infinite;
}
@keyframes ivory-loading-sweep {
	from { background-position: -42% 0; }
	to   { background-position: 142% 0; }
}
/* A looping indicator is exactly the kind of motion that should stop when the
   viewer has asked for less of it; the bar stays, so the state is still
   legible without the travel. */
@media (prefers-reduced-motion: reduce) {
	.ivory-commerce .blockUI.blockOverlay::before {
		animation: none;
		background-size: 100% 100%;
		background-position: 0 0;
		opacity: 0.6;
	}
}

/* -- Compact order summary (narrow screens only) --------------------------
   See inc/checkout-summary-bar.php for why this exists. Hidden entirely at
   901px and up, where the real summary is already a sticky rail beside the
   form — one summary per viewport, never two competing for the same job. */
.ivory-ordersum {
	margin: 0 0 clamp(28px, 3.5vw, 40px);
	background: var(--ivory-bg-alt);
}
@media (min-width: 901px) {
	.ivory-ordersum { display: none; }
}
.ivory-ordersum__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	cursor: pointer;
	list-style: none;
	/* 44px of touch target from padding + line-height, not from a min-height
	   that would fight the flex row. */
	min-block-size: 52px;
	box-sizing: border-box;
}
/* Safari paints its own disclosure triangle on the summary element. */
.ivory-ordersum__bar::-webkit-details-marker { display: none; }
.ivory-ordersum__bar::marker { content: ""; }
.ivory-ordersum__bar:focus-visible {
	outline: 2px solid var(--ivory-accent-text);
	outline-offset: -2px;
}
.ivory-ordersum__label {
	font-family: var(--font-sans);
	font-size: var(--eyebrow);
	font-weight: 300;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1.5;
	color: var(--ivory-muted);
	/* Yields to the total, which must never wrap or shrink. */
	min-inline-size: 0;
}
/* The count breaks away from the name as a unit; it never breaks inside
   itself, which is what turned "· 2 items" into "· 2" / "ITEMS" at 375px. */
.ivory-ordersum__count { white-space: nowrap; }
.ivory-ordersum__count::before {
	content: "·";
	margin-inline: 0.45em 0.4em;
}
/* The total is the one figure worth leading with, so it takes the serif and
   sits hard against the inline end where the eye lands. */
.ivory-ordersum__total {
	margin-inline-start: auto;
	flex: 0 0 auto;
	white-space: nowrap;
	font-family: var(--font-serif);
	/* Title step: the total is the figure this bar exists to show, so it
	   takes the ramp's card-title size and leads the row outright. */
	font-size: 21px;
	font-weight: 300;
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--ivory-fg);
}
.ivory-ordersum__chevron {
	flex: 0 0 auto;
	color: var(--ivory-accent-text);
	transition: transform 400ms ease;
}
.ivory-ordersum[open] .ivory-ordersum__chevron { transform: rotate(180deg); }

.ivory-ordersum__body {
	padding: 0 20px 18px;
	border-block-start: 1px solid var(--ivory-line);
	margin-block-start: -1px;
}
.ivory-ordersum__items {
	margin: 0;
	padding: 0;
	list-style: none;
}
.ivory-ordersum__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-block: 14px;
	border-block-end: 1px solid var(--ivory-line);
}
.ivory-ordersum__item:last-child { border-block-end: none; }
.ivory-ordersum__thumb {
	flex: 0 0 auto;
	inline-size: 54px;
	background: var(--ivory-white);
}
.ivory-ordersum__thumb img {
	display: block;
	inline-size: 54px;
	block-size: 54px;
	object-fit: cover;
}
/* Body step, not the 21px title a product name takes inside a card: here the
   name is list content under the total, and matching the total would set two
   leads in one component. */
.ivory-ordersum__name {
	font-family: var(--font-serif);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.4;
	color: var(--ivory-fg);
}
.ivory-ordersum__qty {
	display: block;
	font-family: var(--font-sans);
	font-size: var(--eyebrow);
	letter-spacing: 0.14em;
	color: var(--ivory-muted);
	margin-block-start: 3px;
}
.ivory-ordersum__price {
	margin-inline-start: auto;
	font-family: var(--font-sans);
	font-size: 15px;
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--ivory-fg);
	white-space: nowrap;
}

/* -- Civil ID upload ------------------------------------------------------
   A sub-section of the Customer information panel, not a panel of its own.
   The number and the photograph of the same card are one step; giving the
   photograph its own sand box drew a container boundary where no conceptual
   one exists, and put two identical panels back to back. It is separated by a
   hairline and a generous interval instead — the panel keeps one background,
   and the heading ramp (serif panel title → label sub-heading) carries the
   nesting that two equal serif titles previously denied. */
.ivory-civilid {
	margin-block-start: clamp(30px, 3.4vw, 42px);
	padding-block-start: clamp(26px, 3vw, 34px);
	border-block-start: 1px solid var(--ivory-line);
}
/* Label typography, deliberately not a second serif title: it has to read as
   subordinate to the panel's own heading rather than competing with it. */
.ivory-civilid__title {
	font-family: var(--font-sans);
	font-weight: 300;
	font-size: var(--eyebrow);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ivory-fg);
	margin: 0 0 10px;
}
.ivory-civilid__intro {
	margin: 0 0 18px;
	max-width: 60ch;
	font-size: 13px;
	line-height: 1.7;
	color: var(--ivory-muted);
}
/* The native control is replaced by its own label so the affordance can carry
   the system's button language; the input stays in the DOM and keyboard
   focus is mirrored onto the label via :focus-within below. */
.ivory-civilid__drop {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding: 16px 18px;
	background: var(--ivory-bg);
	border: 1px solid var(--ivory-line-gold);
	cursor: pointer;
	transition: border-color 400ms ease;
}
.ivory-civilid__drop:hover { border-color: var(--ivory-accent); }
.ivory-civilid__drop:focus-within {
	outline: 2px solid var(--ivory-accent-text);
	outline-offset: 3px;
}
.ivory-civilid__drop input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
.ivory-civilid__cta {
	font-family: var(--font-sans);
	font-size: var(--eyebrow);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ivory-fg);
	border-bottom: 1px solid var(--ivory-accent);
	padding-bottom: 3px;
}
.ivory-civilid__hint {
	font-size: 12px;
	letter-spacing: 0.02em;
	color: var(--ivory-muted);
}
.ivory-civilid__status {
	margin: 12px 0 0;
	min-height: 1.2em;
	font-size: 12px;
	letter-spacing: 0.02em;
	color: var(--ivory-muted);
}
.ivory-civilid__status.is-done { color: var(--ivory-accent-text); }
.ivory-civilid__status.is-error { color: var(--ivory-error); }
.ivory-civilid__side.is-uploading .ivory-civilid__drop { opacity: 0.6; pointer-events: none; }

/* -- Customer information (AML) fieldset ----------------------------------
   Shares the Civil ID block's panel treatment so the two read as one
   compliance step rather than two unrelated interruptions in the checkout.
   Logical properties throughout: this fieldset mirrors wholesale on /ar/. */
/* Sections are separated by roughly 2.5x the 22px interval between fields
   inside one, so the eye reads groups before it reads rows. At 40px that
   ratio was 1.8x and the whole column read as one undifferentiated stream. */
.ivory-kyc {
	margin: clamp(44px, 4.5vw, 60px) 0 0;
	padding: clamp(24px, 2.6vw, 32px);
	background: var(--ivory-bg-alt);
}
.ivory-kyc__title {
	font-family: var(--font-serif);
	font-weight: 300;
	font-size: 21px;
	color: var(--ivory-fg);
	margin: 0 0 8px;
}
.ivory-kyc__intro {
	margin: 0 0 24px;
	max-width: 60ch;
	font-size: 13px;
	line-height: 1.7;
	color: var(--ivory-muted);
}
.ivory-kyc__note {
	margin: -8px 0 20px;
	font-size: 12px;
	line-height: 1.6;
	color: var(--ivory-muted);
}

/* A field hidden by the conditional script. Kept as a single class so the
   server and the script agree on one mechanism — the fieldset renders with
   this class already applied where a question does not yet apply, so nothing
   flashes into view on load. */
.habiba-kyc-hidden { display: none !important; }

/* Radio groups ----------------------------------------------------------
   The paper form prints tick-boxes, and a short closed list reads faster as
   visible options than as a collapsed select — which also makes an
   unanswered compliance question impossible to miss. */
/* A radio group is a question, not a row — it gets the next step up from the
   22px field interval so consecutive questions do not fuse into a list. */
.habiba-kyc-radios {
	margin-block-end: 30px;
}
/* Matches the uppercase treatment the checkout gives every other field
   label, so a radio group does not read as a different kind of question from
   the text field above it. */
.habiba-kyc-grouplabel {
	display: block;
	margin-block-end: 10px;
	font-family: var(--font-sans);
	font-size: 13px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--ivory-fg);
}
.habiba-kyc-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
}
.ivory-kyc .habiba-kyc-options .habiba-kyc-option {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	/* 24px minimum tap target, matching the sitewide rule — here it is met by
	   the control's own height rather than an ::after band, because the label
	   is already a block-level hit area. */
	min-height: 24px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ivory-fg);
	cursor: pointer;
}
.ivory-kyc .habiba-kyc-options .habiba-kyc-option input[type="radio"] {
	inline-size: 17px;
	block-size: 17px;
	margin: 0;
	accent-color: var(--ivory-accent-text);
	flex: 0 0 auto;
	cursor: pointer;
}
.ivory-kyc .habiba-kyc-options .habiba-kyc-option input[type="radio"]:focus-visible {
	outline: 2px solid var(--ivory-accent-text);
	outline-offset: 2px;
}

/* Two-column layout -----------------------------------------------------
   WooCommerce pairs fields with floated .form-row-first/.form-row-last, which
   assumes both halves of a pair are always present. Half the rows here are
   conditional — hide one and the float sequence collapses, dropping the next
   field into the wrong column and leaving a hole behind it. A grid has no
   such sequence: a display:none row is simply absent, and the columns are
   assigned rather than inferred, so every pair stays a pair whatever is
   hidden. */
.ivory-kyc {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: clamp(16px, 2vw, 26px);
	align-items: start;
}
.ivory-kyc > * { grid-column: 1 / -1; }

/* The float and the 47% width those classes carry would fight the grid, and
   WooCommerce sets them from `.woocommerce form .form-row-first` — two
   classes and two elements — so undoing them takes three classes, not the
   two that `.ivory-kyc .habiba-kyc-row` would give. Without the extra class
   the 47% applies to the grid track instead of the form, and every field
   renders at half the column width with its label wrapped. */
.ivory-kyc .habiba-kyc-row.form-row-first,
.ivory-kyc .habiba-kyc-row.form-row-last,
.ivory-kyc .habiba-kyc-row.form-row-wide {
	float: none;
	inline-size: auto;
	margin-inline: 0;
	padding: 0;
}
.ivory-kyc .habiba-kyc-row.form-row-first { grid-column: 1; }
.ivory-kyc .habiba-kyc-row.form-row-last  { grid-column: 2; }

/* Field labels. Inputs themselves are left to the checkout's own styling, so
   these rows are indistinguishable from the billing fields above them. */
.ivory-kyc .habiba-kyc-row > label {
	display: block;
	margin-block-end: 6px;
	font-family: var(--font-sans);
	font-size: 13px;
	letter-spacing: 0.02em;
	color: var(--ivory-fg);
}
/* The Civil ID number is read back digit by digit against a card, so it gets
   a tabular face and loosened tracking to make a transposition visible. */
.ivory-kyc #habiba_kyc_civil_id_number {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.14em;
}
/* The tracking above is for digits being checked against a card. Inherited by
   the placeholder it spaced out a word — "1 2   d i g i t s" — so the hint
   resets it. */
.ivory-kyc #habiba_kyc_civil_id_number::placeholder { letter-spacing: normal; }
/* Numbers and dates stay left-to-right inside an RTL form: a Civil ID and a
   date are both read in the Latin direction even on the Arabic site. */
[dir="rtl"] .ivory-kyc #habiba_kyc_civil_id_number,
[dir="rtl"] .ivory-kyc input[type="date"] {
	direction: ltr;
	text-align: start;
}

/* Declaration ----------------------------------------------------------
   The legal weight of this tick is the whole point of the block, so it is
   given a rule above it and real room rather than being tucked under the
   last field. */
.habiba-kyc-declaration {
	margin-block-start: 26px;
	padding-block-start: 22px;
	border-block-start: 1px solid var(--ivory-line);
}
/* The checkout uppercases every <label>, which suits a two-word field name
   and is unreadable for a four-line legal undertaking — and shouty, which is
   the wrong register for the one thing the customer is actually agreeing to.
   This is the one label in the form that stays in sentence case. */
.ivory-kyc .habiba-kyc-declaration .habiba-kyc-check,
.ivory-kyc .habiba-kyc-declaration .habiba-kyc-check span {
	text-transform: none;
	letter-spacing: 0;
}
.ivory-kyc .habiba-kyc-declaration .habiba-kyc-check {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin: 0;
	font-size: 13px;
	line-height: 1.65;
	color: var(--ivory-fg);
	cursor: pointer;
}
.ivory-kyc .habiba-kyc-declaration .habiba-kyc-check input[type="checkbox"] {
	inline-size: 18px;
	block-size: 18px;
	/* Optically aligns the box with the first line of a 1.65 line-height. */
	margin-block-start: 3px;
	flex: 0 0 auto;
	accent-color: var(--ivory-accent-text);
	cursor: pointer;
}
.ivory-kyc .habiba-kyc-declaration .habiba-kyc-check input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--ivory-accent-text);
	outline-offset: 2px;
}
.ivory-kyc .habiba-kyc-declaration .habiba-kyc-check a {
	color: var(--ivory-accent-text);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* One column on a phone: two-up date and text fields are unusable at this
   width, and the grid collapses without the floats needing to be undone. */
@media (max-width: 600px) {
	.ivory-kyc { grid-template-columns: 1fr; }
	.ivory-kyc .habiba-kyc-row.form-row-first,
	.ivory-kyc .habiba-kyc-row.form-row-last { grid-column: 1; }
}

/* Notices — see the sitewide block near the end of this file. These rules
   used to live here scoped to .ivory-commerce, which only wraps cart and
   checkout, so every notice on a product or shop page rendered as raw
   WooCommerce green. */

@media (max-width: 900px) {
	.ivory-commerce form.checkout > #order_review { position: static; }
}

/* Validation states — WooCommerce ships a hard red/green pair that belongs to
   no palette. Errors use a muted oxblood that still reads as a warning
   against Ivory; success is a quiet hairline rather than a green flag, since
   a correctly filled field doesn't need to celebrate. */
/* Labels keep their normal muted colour when a field is invalid — recolouring
   the whole label (and its asterisk) shouted at the customer before they had
   done anything wrong, since WooCommerce marks required-but-empty fields
   invalid on load. The underline below carries the state instead, and the
   real error text still appears in the notice at the top of the form. */
/* woocommerce.css paints these borders at `.woocommerce form
   .form-row.woocommerce-validated .select2-container, … input.input-text,
   … select` — (0,4,2). Matched here with the form class so the theme's
   colours win rather than WooCommerce's stock red/green. */
.ivory-commerce form.checkout .form-row.woocommerce-invalid input.input-text,
.ivory-commerce form.checkout .form-row.woocommerce-invalid select,
.ivory-commerce form.checkout .form-row.woocommerce-invalid textarea,
.ivory-commerce .form-row.woocommerce-invalid input.input-text,
.ivory-commerce .form-row.woocommerce-invalid select,
.ivory-commerce .form-row.woocommerce-invalid textarea { border-bottom-color: var(--ivory-error); }
.ivory-commerce form.checkout .form-row.woocommerce-validated input.input-text,
.ivory-commerce form.checkout .form-row.woocommerce-validated select,
.ivory-commerce form.checkout .form-row.woocommerce-validated textarea,
.ivory-commerce .form-row.woocommerce-validated input.input-text,
.ivory-commerce .form-row.woocommerce-validated select,
.ivory-commerce .form-row.woocommerce-validated textarea { border-bottom-color: var(--ivory-line-gold); }
/* WooCommerce enhances the Governorate field with Select2, so in that row the
   coloured border lives on `.select2-selection--single`, NOT on the native
   <select> — styling the select alone leaves a stock green line visible. */
.ivory-commerce .form-row .select2-container .select2-selection--single,
.ivory-commerce .form-row.woocommerce-validated .select2-container .select2-selection--single {
	border: none;
	border-bottom: 1px solid var(--ivory-line-gold);
	border-radius: 0;
	background: transparent;
}
.ivory-commerce .form-row .select2-container--default .select2-selection--single { border-bottom-color: var(--ivory-line); }
/* woocommerce.css colours the validated/invalid Select2 box through
   `.woocommerce form .form-row.woocommerce-validated
   .select2-container:not(.select2-container--open) .select2-selection`
   — (0,6,1), which out-ranks a plainer override. Mirrored here with the
   form's own class to land at (0,7,1) and finally win. */
.ivory-commerce form.checkout .form-row.woocommerce-validated .select2-container:not(.select2-container--open) .select2-selection {
	border-color: var(--ivory-line-gold);
}
.ivory-commerce form.checkout .form-row.woocommerce-invalid .select2-container:not(.select2-container--open) .select2-selection {
	border-color: var(--ivory-error);
}
.ivory-commerce .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: inherit;
	padding-inline-start: 0;
	color: var(--ivory-fg);
}
.ivory-commerce .select2-container--default .select2-selection--single .select2-selection__arrow { inset-inline-end: 0; }
.ivory-commerce .form-row.woocommerce-validated::after,
.ivory-commerce .form-row.woocommerce-invalid::after { display: none; }

/* Area select before a governorate is chosen — muted and clearly inert, so it
   reads as "waiting on the field above" rather than as a broken control. */
.ivory-commerce form.checkout .form-row select:disabled,
.ivory-commerce .form-row select:disabled {
	color: var(--ivory-muted);
	opacity: 1; /* Reset the UA's grey-out; the colour above carries the state. */
	cursor: not-allowed;
	border-bottom-style: dashed;
	border-bottom-color: var(--ivory-line);
}

/* Pair Phone + Email on one row, like First/Last name.
   Done by ID rather than by adding form-row-first/last in PHP: WooCommerce
   rewrites the `class` arg on address fields as it merges the country locale
   (phone comes back as `form-row-wide` however it is set upstream), so a
   class-based pairing silently reverts. The IDs are stable. */
@media (min-width: 641px) {
	.ivory-commerce .woocommerce-billing-fields__field-wrapper #billing_phone_field { grid-column: 1; }
	.ivory-commerce .woocommerce-billing-fields__field-wrapper #billing_email_field { grid-column: 2; }
}

/* Shop bar: keep the result count hard left.
   WooCommerce prints an (almost always empty) .woocommerce-notices-wrapper as
   the first child of this bar, so with `justify-content: space-between` the
   three children resolved to [empty] · [count] · [sorting] — which is why the
   count sat centred rather than left. Dropping the empty wrapper out of the
   flow fixes it, and pushing the sorting form with `margin-inline-start:auto` keeps
   the layout correct even when a notice IS present. */
.ivory-shop__bar .woocommerce-notices-wrapper:empty { display: none; }
.ivory-shop__bar .woocommerce-result-count { margin-inline-end: auto; }
.ivory-shop__bar .woocommerce-ordering { margin-inline-start: auto; }

/* Product gallery: sit on the page, not in a filled frame.
   The frames above are transparent so the page ground reads through, and the
   photos themselves get separated by real gaps rather than by a change of
   background — the images are white-ground studio shots, so a white frame
   made them one continuous block. */
.ivory-pdp__gallery .woocommerce-product-gallery__image,
.ivory-pdp__gallery .flex-control-thumbs li { background: var(--ivory-white); }
.ivory-pdp__gallery .flex-control-thumbs {
	gap: 14px;
	margin-top: 14px;
}

/* Gallery thumbnails need to clear the main image.
   woocommerce.css zeroes their margin at
   `.woocommerce div.product div.images .flex-control-thumbs` — (0,4,2) —
   so a `.ivory-pdp__gallery .flex-control-thumbs` rule (0,2,0) silently lost
   and the strip sat flush against the photo. Mirrored here with the gallery
   class added, landing at (0,5,2). */
.woocommerce div.product .ivory-pdp__gallery div.images .flex-control-thumbs {
	margin-top: 16px;
}

/* The product page had no bottom padding at all (`... var(--gap-page) 0`), so
   the related-products grid ran straight into the footer. */
.ivory-pdp { padding-bottom: clamp(64px, 8vw, 112px); }

/* ==========================================================================
   Our Story — editorial story template (page-our-story.php)
   --------------------------------------------------------------------------
   One scale ladder, top to bottom: display H1 -> serif lead -> headline H2 ->
   body. The lead is the page's only elevated paragraph, so nothing competes
   with it. Rhythm comes from the system's two-tone band (Ivory / Warm Sand),
   not from borders or cards, and every heading carries more space above it
   than below.

   The article is a full-bleed grid: every child lands in the centred content
   column by default, and the Warm Sand band opts out to span edge to edge.
   That keeps one shared left edge for the h1, the lead, and the narrative
   without the `100vw` trick, which overflows by the scrollbar's width.
   ========================================================================== */
.ivory-story {
	display: grid;
	grid-template-columns:
		[full-start] minmax(var(--gap-page), 1fr)
		[content-start] minmax(0, 1560px) [content-end]
		minmax(var(--gap-page), 1fr) [full-end];
	padding-bottom: clamp(72px, 9vw, 132px);
}
.ivory-story > * { grid-column: content; }
.ivory-story__band { grid-column: full; }

/* Masthead ---------------------------------------------------------------- */
.ivory-story__masthead { padding-top: clamp(64px, 9vw, 132px); }
.ivory-story__masthead h1 { font-family: var(--font-serif); font-size: clamp(40px, 5.4vw, 68px); font-weight: 300; line-height: 1.04; color: var(--ivory-fg); }

/* The lead: the brand statement, and the only paragraph set above body size.
   Serif, because this system gives Cormorant everything that carries weight. */
.ivory-story__lead { font-family: var(--font-serif); font-size: clamp(26px, 2.7vw, 34px); font-weight: 300; line-height: 1.45; color: var(--ivory-fg); max-width: 42ch; margin: clamp(28px, 3.4vw, 44px) 0px 0px; }

/* The one divider on the page — the system's gold hairline, not a border box. */
.ivory-story__chapter { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--ivory-line-gold); }
.ivory-story__chapter h2 { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 300; line-height: 1.1; color: var(--ivory-fg); max-width: 30ch; margin: 0px 0px 20px; }
.ivory-story__chapter p { font-size: 15px; line-height: 1.8; color: var(--ivory-muted); max-width: 62ch; margin: 0px 0px 20px; }
.ivory-story__chapter p:last-child { margin-bottom: 0px; }

/* Warm Sand band ---------------------------------------------------------- */
.ivory-story__band { background: var(--ivory-bg-alt); margin-top: clamp(72px, 9vw, 128px); padding: clamp(64px, 8vw, 112px) var(--gap-page); }
.ivory-story__triad { max-width: 1560px; margin: 0px auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 5vw, 88px); }
.ivory-story__triad > div { display: flex; flex-direction: column; }
.ivory-story__triad h2 { font-family: var(--font-serif); font-size: 21px; font-weight: 300; line-height: 1.2; color: var(--ivory-fg); margin: 0px 0px 14px; }
.ivory-story__triad p { font-size: 15px; line-height: 1.8; color: var(--ivory-muted); margin: 0px; max-width: 42ch; }

/* Close ------------------------------------------------------------------- */
.ivory-story__close { margin-top: clamp(56px, 7vw, 96px); }

/* Real-photography slot (see page-our-story.php) --------------------------- */
.ivory-story__figure { margin: clamp(56px, 7vw, 96px) 0px 0px; }
.ivory-story__figure img { display: block; width: 100%; height: auto; }

@media (max-width: 900px) {
	.ivory-story__triad { grid-template-columns: 1fr; gap: 0px; }
	.ivory-story__triad > div + div { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--ivory-line); }
	.ivory-story__lead { max-width: 46ch; }
}

/* ==========================================================================
   Tap targets — WCAG 2.5.8 Target Size (Minimum), 24×24
   --------------------------------------------------------------------------
   This system's UI chrome is 11–14px uppercase micro-type, so its links and
   buttons render 16–21px tall — under the 24px minimum, and small for a
   thumb. Growing them with padding would move layout on every page, so each
   carries a centred, invisible ::after that extends the hit area only.
   Nothing moves; the target grows around the mark.

   24px was checked against the tightest stacks on the site before being
   chosen: footer columns sit on a 35px pitch (21px links + 14px gaps) and the
   mega-menu on 37px, so a 24px band leaves 11px and 13px of clearance — no
   two targets can overlap. The header icons (17×17, 22px apart) also need the
   horizontal axis, handled separately below.

   This is the AA conformance floor, not the comfort ideal. 44px (WCAG 2.5.5
   AAA, and both platform HIGs) would mean redesigning header and footer
   density, not patching hit areas.
   ========================================================================== */
.ivory-link,
.ivory-menu-toggle,
.ivory-megamenu__col a,
.ivory-header__nav a,
.ivory-header__icons a,
.ivory-footer__col a,
.ivory-footer__legal a,
.ivory-plain-content li a,
.ivory-catgrid__all,
.ivory-theme .elementor-button-link,
.ivory-theme .woocommerce-breadcrumb a,
.ivory-theme a.page-numbers,
.ivory-pdp__assurance-line a,
.ivory-pdp__summary .product_meta a,
.ivory-plain-content a[href^="tel:"],
.ivory-plain-content a[href^="mailto:"],
.ivory-plain-content a[href^="https://wa.me"] { position: relative; }

/* .ivory-megamenu__close is already position:absolute — it is left out of the
   rule above on purpose, since re-declaring it relative would detach it from
   its corner. It still anchors its own ::after. */
.ivory-link::after,
.ivory-menu-toggle::after,
.ivory-megamenu__close::after,
.ivory-megamenu__col a::after,
.ivory-header__nav a::after,
.ivory-footer__col a::after,
.ivory-footer__legal a::after,
.ivory-plain-content li a::after,
.ivory-catgrid__all::after,
.ivory-theme .elementor-button-link::after,
.ivory-theme .woocommerce-breadcrumb a::after,
.ivory-pdp__assurance-line a::after,
/* Links inside body copy already meet 2.5.8 through the inline exception —
   their size is constrained by the line-height of the sentence around them.
   tel:, mailto: and wa.me are the exception worth overriding anyway, since
   they are the tap-to-contact links a phone user actually reaches for. Scoped
   to those three so an ordinary prose link that wraps across two lines never
   gets a band centred on its multi-line bounding box. */
.ivory-plain-content a[href^="tel:"]::after,
.ivory-plain-content a[href^="mailto:"]::after,
.ivory-plain-content a[href^="https://wa.me"]::after,
.ivory-pdp__summary .product_meta a::after {
	content: "";
	position: absolute;
	left: 0px;
	right: 0px;
	top: 50%;
	height: 24px;
	transform: translateY(-50%);
}

/* Targets that fail on width as well as height get a band centred on both
   axes rather than stretched to the element: the header icons (17×17) and the
   pagination arrow (23×23, one pixel short on each side). The pagination row
   sits on 1px gaps, and a 24px band on a 23px link reaches only half a pixel
   into each of them, so no two page links can overlap. */
.ivory-header__icons a::after,
.ivory-theme a.page-numbers::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 24px;
	height: 24px;
	transform: translate(-50%, -50%);
}

/* ==========================================================================
   WooCommerce notices — sitewide
   --------------------------------------------------------------------------
   Scoped to .ivory-theme, not .ivory-commerce: that wrapper is only applied
   to cart and checkout by page.php, so the previous rules never reached the
   "added to your cart" notice on a product page, and WooCommerce's default
   green bar showed through.

   The system has exactly one accent and no rounded corners, so a notice is a
   quiet Warm Sand band between two gold hairlines rather than a coloured
   alert box. Status is carried by the message text itself, which is where it
   belongs — WooCommerce's tick/cross glyphs are dropped.
   ========================================================================== */
.ivory-theme .woocommerce-message,
.ivory-theme .woocommerce-info,
.ivory-theme .woocommerce-error,
.ivory-theme .woocommerce-noreviews {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 28px;
	/* Symmetric. The band shipped with a 0 top against a 40px bottom, which
	   left it flush under the header or breadcrumb while floating well clear
	   of the content below — an asymmetry nothing had decided. A full-bleed
	   band needs air on both sides to read as its own register rather than as
	   part of whatever it happens to sit beneath. */
	margin: clamp(24px, 3vw, 40px) 0px;
	padding: 18px var(--gap-page);
	border-width: 1px 0px;
	border-style: solid;
	border-color: var(--ivory-line-gold);
	border-radius: 0px;
	background: var(--ivory-bg-alt);
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.6;
	color: var(--ivory-fg);
	list-style: none;
}

/* WooCommerce sets its status glyph in a ::before and floats the button; both
   are replaced by the flex row above. */
.ivory-theme .woocommerce-message::before,
.ivory-theme .woocommerce-info::before,
.ivory-theme .woocommerce-error::before,
.ivory-theme .woocommerce-message::after,
.ivory-theme .woocommerce-info::after,
.ivory-theme .woocommerce-error::after { display: none; }

/* Errors keep the same quiet frame and are marked by the rule colour plus the
   word itself, never by colour alone. The colour is Carnelian, the system's
   one status tone — see DESIGN.md › Colors › Status, which also records why
   it is not a second accent. */
.ivory-theme .woocommerce-error { border-color: var(--ivory-error); }
.ivory-theme .woocommerce-error li { margin: 0px; list-style: none; }

/* A checkout failure prints one <li> per rejected field — twenty of them on
   an empty form. The flex row above is built for a one-line notice beside its
   button, so a long list came out four columns across at 1440px: the message
   telling you what to fix became the least readable thing on the page. Inside
   the checkout notice group it is a list again, held to a measure the eye can
   run straight down, and inset to match the Customer information panel so the
   two sand surfaces on this page share an edge. */
.ivory-theme .woocommerce-NoticeGroup .woocommerce-error {
	display: block;
	padding-inline: clamp(24px, 2.6vw, 32px);
}
/* The measure belongs on the TEXT, not on the band. The <ul> carries the sand
   background and the Carnelian rules, so capping its width cropped the band
   itself — it stopped 728px short of the form and read as a half-drawn box
   instead of the full-width band this system uses for every notice. */
.ivory-theme .woocommerce-NoticeGroup .woocommerce-error li {
	margin-block-end: 7px;
	max-inline-size: 70ch;
}
.ivory-theme .woocommerce-NoticeGroup .woocommerce-error li:last-child { margin-block-end: 0; }

/* The notice's action ("View cart", "View order") reads as the system's ghost
   link rather than a second gold button competing with the page's own CTA.
   The message text sits first visually even though WooCommerce prints the
   button first in the markup. */
.ivory-theme .woocommerce-message > .button,
.ivory-theme .woocommerce-info > .button,
.ivory-theme .woocommerce-error > .button {
	order: 2;
	flex: 0 0 auto;
	float: none;
	margin: 0px;
	padding: 0px 0px 4px;
	border: 0px;
	border-bottom: 1px solid var(--ivory-line-gold);
	border-radius: 0px;
	background: none;
	color: var(--ivory-fg);
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 300;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1.4;
	transition: color 400ms, border-color 400ms;
}
.ivory-theme .woocommerce-message > .button:hover,
.ivory-theme .woocommerce-info > .button:hover,
.ivory-theme .woocommerce-error > .button:hover {
	background: none;
	color: var(--ivory-accent-text);
	border-bottom-color: var(--ivory-accent);
}

/* Empty wrappers print on nearly every WooCommerce page; without this they
   leave a gap above the content. */
.ivory-theme .woocommerce-notices-wrapper:empty { display: none; }

/* Block notices (cart and checkout) get the same frame so a shopper does not
   meet two different notice designs in one session.
   
   These need the status class as well as the block class. WooCommerce's
   wc-blocks.css enqueues AFTER the theme stylesheet, so a rule of equal
   specificity loses the tie — `.ivory-theme .wc-block-components-notice-banner`
   (0,2,0) was being beaten by `.wc-block-components-notice-banner.is-info`
   (0,2,0), and its pale blue and pink backgrounds showed through. Naming the
   status class here takes these to (0,3,0), which wins outright without
   reaching for !important. */
.ivory-theme .wc-block-components-notice-banner {
	border-width: 1px 0px;
	border-style: solid;
	border-color: var(--ivory-line-gold);
	border-radius: 0px;
	background: var(--ivory-bg-alt);
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 300;
	color: var(--ivory-fg);
}
.ivory-theme .wc-block-components-notice-banner.is-success,
.ivory-theme .wc-block-components-notice-banner.is-info,
.ivory-theme .wc-block-components-notice-banner.is-warning,
.ivory-theme .wc-block-components-notice-banner.is-error {
	border-width: 1px 0px;
	border-style: solid;
	border-color: var(--ivory-line-gold);
	border-radius: 0px;
	background: var(--ivory-bg-alt);
	color: var(--ivory-fg);
}
.ivory-theme .wc-block-components-notice-banner.is-error { border-color: var(--ivory-error); }
.ivory-theme .wc-block-components-notice-banner > svg { display: none; }
.ivory-theme .wc-block-components-notice-banner__content { color: var(--ivory-fg); }


/* ==========================================================================
   Arabic / RTL
   --------------------------------------------------------------------------
   Layout direction is handled at source: every one-sided rule in this file
   uses logical properties (inset-inline-*, margin-inline-*, text-align:
   start/end), and Elementor maps its container padding through
   --padding-inline-start/-end, so the homepage "bleed" sections mirror on
   their own. What is left here is what logical properties cannot express.
   ========================================================================== */

/* Latin glyphs for the two brand families — self-hosted (SIL OFL).
   Previously these came from a render-blocking <link> to fonts.googleapis.com,
   which made every Latin glyph on the site depend on a third-party request:
   if it was slow, blocked or reset, the whole serif ramp silently fell back
   to Georgia. Google also serves a SEPARATE face per weight, so a partially
   cached stylesheet could leave weight 300 missing while 400 and 500 loaded —
   and since DESIGN.md sets the entire serif hierarchy at 300, that one absent
   file degraded every heading while the rest of the page looked fine.

   Self-hosting also halves the bytes. Google's css2 endpoint hands out the
   same VARIABLE font file for 300, 400 and 500 and merely pins an instance
   per @font-face, so the 14 declarations it returns resolve to 6 real files
   (verified by checksum). These rules declare the weight RANGE instead and
   reference each file once — the same pattern the Arabic faces below use.

   Order matters only against the Arabic block: the ranges do not overlap, so
   the two coexist and a page downloads only the scripts it actually renders. */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 500; font-display: swap; src: url(../fonts/cormorant-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 500; font-display: swap; src: url(../fonts/cormorant-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 500; font-display: swap; src: url(../fonts/cormorant-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 500; font-display: swap; src: url(../fonts/cormorant-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 500; font-display: swap; src: url(../fonts/jost-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 500; font-display: swap; src: url(../fonts/jost-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Arabic glyphs for the two brand families.
   Neither Cormorant Garamond nor Jost has Arabic, and Elementor writes those
   family names straight into its widget CSS, so overriding font-family per
   element would never be complete. Instead the Arabic faces are registered
   UNDER THE SAME FAMILY NAMES, limited to the Arabic unicode-range: Latin
   comes from the self-hosted faces above, Arabic from Amiri (a classical
   Naskh that sits well beside Cormorant) and IBM Plex Sans Arabic (light
   weights to match Jost 300). Files are self-hosted Arabic-only subsets
   (SIL OFL), downloaded only when a page actually contains Arabic text. */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 500; font-display: swap; src: url(../fonts/amiri-400-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600 700; font-display: swap; src: url(../fonts/amiri-700-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
/* Arabic has no italic. Mapping the italic slot to the upright file stops the
   browser synthesising a fake slant on italic Cormorant headings. */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 500; font-display: swap; src: url(../fonts/amiri-400-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
/* Plex Arabic sets visibly smaller than Jost at the same font-size (15px body
   read like ~13px beside the Latin), so its faces carry size-adjust: 110% —
   scales only the Arabic glyphs, everywhere, without touching any size rule. */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; size-adjust: 110%; src: url(../fonts/plex-arabic-300.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; size-adjust: 110%; src: url(../fonts/plex-arabic-400.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500 700; font-display: swap; size-adjust: 110%; src: url(../fonts/plex-arabic-500.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }

/* Tracking breaks Arabic: letters are joined, and letter-spacing pulls the
   joins apart. The design tracks nearly every eyebrow/nav/label at
   0.12–0.16em (and Elementor widgets carry their own), so reset it wholesale
   on the Arabic site rather than chase each rule. */
body.rtl, body.rtl * { letter-spacing: normal !important; }

/* Arabic has a much taller ascender/descender envelope than Cormorant, so the
   display headings' tight Latin leading clips diacritics and collides lines. */
body.rtl :is(h1, h2, h3, h4, .elementor-heading-title) { line-height: 1.45; }

/* Elementor deliberately keeps container spacing PHYSICAL in RTL: its
   `body.rtl .e-con` rule re-maps --padding-inline-start to var(--padding-right).
   This design was authored left-to-right and "left" always means "start"
   (the homepage rail sections are padded on the reading-start side and bleed
   off the end), so restore the start/end mapping. Doubled class to outrank
   Elementor's identical selector regardless of stylesheet order. */
body.rtl .e-con.e-con {
	--padding-inline-start: var(--padding-left);
	--padding-inline-end: var(--padding-right);
	--margin-inline-start: var(--margin-left);
	--margin-inline-end: var(--margin-right);
	--border-inline-start-width: var(--border-left-width);
	--border-inline-end-width: var(--border-right-width);
}

/* Elementor stores button alignment as physical left/right. "Left" in this
   design means "the start of the line", so follow the reading direction. */
body.rtl .elementor-align-left { text-align: right; }
body.rtl .elementor-align-right { text-align: left; }

/* Directional arrows point the other way in a right-to-left reading order
   (the "previous" button sits on the right and must point right). */
body.rtl .ivory-rail-arrow svg { transform: scaleX(-1); }

/* Phone numbers are digit groups separated by spaces; in a right-to-left
   line the browser lays the GROUPS out right-to-left, so "2244 5410" reads
   "5410 2244". Phone and WhatsApp links are isolated with `plaintext`, which
   takes each link's direction from its own text: a bare number has no
   strong characters and falls back to left-to-right, while an Arabic label
   such as "راسلنا عبر واتساب" stays right-to-left (forcing direction:ltr
   would reverse its word order). Footer plain-text numbers carry dir="ltr"
   in the markup; numbers inside translated sentences use LRI/PDI isolates. */
body.rtl a[href^="tel:"],
body.rtl a[href*="wa.me/"] { unicode-bidi: plaintext; }

/* Language switcher (announcement bar). */
.ivory-announcement__lang a { color: inherit; }
.ivory-announcement__lang a:hover { color: var(--ivory-accent-text); }
.ivory-announcement__lang [lang="ar"] { font-family: var(--font-sans); font-size: 13px; }

.ivory-civilid__side + .ivory-civilid__side { margin-block-start: 18px; }
.ivory-civilid__status { overflow-wrap: anywhere; }

.ivory-cart__error { margin: 16px 24px; color: var(--ivory-error); font-size: 13px; }
.ivory-cart__error[hidden] { display: none; }
