/* Pure Jewelry — global cart-drawer enhancements (loads site-wide).
   Prefixed with `pure-`; removable with the plugin folder. */

/* Unify primary CTAs to the brand forest green (theme default is brown/tan,
   which competes with the green brand equity). */
/* Unify primary CTAs to forest green — but NOT the category-loop add-to-cart,
   which Woodmart renders as a small ICON button (filling it green makes an ugly
   solid block over the product photo). `.add-to-cart-loop` is excluded so the
   theme's native icon style shows on shop/category cards. */
.woocommerce div.product form.cart .button,
.single_add_to_cart_button,
.wd-buy-now-btn,
a.add_to_cart_button.button:not(.add-to-cart-loop):not(.wd-add-cart-icon),
.woocommerce a.button.alt:not(.add-to-cart-loop),
.woocommerce button.button.alt {
	background-color: #6b4c32 !important;
	border-color: #6b4c32 !important;
	color: #fffefb !important;
}

.woocommerce div.product form.cart .button:hover,
.single_add_to_cart_button:hover,
.wd-buy-now-btn:hover,
a.add_to_cart_button.button:not(.add-to-cart-loop):not(.wd-add-cart-icon):hover,
.woocommerce a.button.alt:not(.add-to-cart-loop):hover,
.woocommerce button.button.alt:hover {
	background-color: #523a26 !important;
	border-color: #523a26 !important;
}

/* Category/shop loop: brand the icon-style add-to-cart cleanly — a subtle sand
   circle that fills forest-green on tap/hover, never a heavy block over the photo. */
.wd-add-cart-icon a.add-to-cart-loop,
.wd-hover-icons .wd-add-cart-icon a {
	color: #6b4c32;
}

.wd-add-cart-icon a.add-to-cart-loop.added,
.wd-hover-icons .wd-add-cart-icon a:hover {
	color: #523a26;
}

/* Checkout trust row + delivery estimate + consent. */
.pure-checkout-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin: 4px 0 10px;
	padding: 14px 0;
	border-top: 1px solid #e3ddd0;
	font-family: "Assistant", Arial, Helvetica, sans-serif;
	font-size: 13px;
	color: #43403a;
}

.pure-checkout-trust span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.pure-checkout-trust svg { color: #6b4c32; flex: none; }

.pure-checkout-eta {
	margin: 0 0 14px;
	font-family: "Assistant", Arial, Helvetica, sans-serif;
	font-size: 13px;
	color: #6e6960;
}

.pure-consent {
	margin: 6px 0 12px;
	font-family: "Assistant", Arial, Helvetica, sans-serif;
	font-size: 13px;
	color: #43403a;
}

/* Newsletter club popup + welcome coupon reveal. */
.pure-nl[hidden] { display: none; }

.pure-nl {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: "Assistant", Arial, Helvetica, sans-serif;
}

.pure-nl__overlay {
	position: absolute;
	inset: 0;
	background: rgba(60, 44, 30, .55);
	backdrop-filter: blur(2px);
}

.pure-nl__box {
	position: relative;
	width: min(460px, 100%);
	max-height: 90vh;
	overflow-y: auto;
	padding: 42px clamp(24px, 5vw, 44px) 34px;
	background: #fffefb;
	border-radius: 4px;
	box-shadow: 0 30px 80px -30px rgba(60, 44, 30, .6);
	text-align: center;
	animation: pure-nl-in .3s cubic-bezier(.22, .61, .36, 1);
}

@keyframes pure-nl-in {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

.pure-nl__x {
	position: absolute;
	inset-block-start: 12px;
	inset-inline-start: 14px;
	width: 34px;
	height: 34px;
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	color: #6e6960;
	cursor: pointer;
}

.pure-nl__eyebrow {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .18em;
	color: #6b4c32;
}

.pure-nl__title {
	margin: 0 0 14px;
	font-size: clamp(28px, 4vw, 38px);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -.02em;
	color: #211f1b;
}

.pure-nl__sub {
	margin: 0 auto 22px;
	max-width: 360px;
	font-size: 15px;
	line-height: 1.6;
	color: #4a463f;
}

.pure-nl__form { min-height: 56px; }

.pure-nl__code {
	display: inline-block;
	margin: 4px 0 22px;
	padding: 12px 30px;
	border: 1px dashed #6b4c32;
	border-radius: 3px;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: .1em;
	color: #6b4c32;
}

.pure-nl__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 28px;
	background: #6b4c32;
	border-radius: 3px;
	color: #fffefb;
	font-size: 15px;
	font-weight: 600;
}

.pure-nl__cta:hover { background: #523a26; }

@media (prefers-reduced-motion: reduce) {
	.pure-nl__box { animation: none; }
}

/* Cookie popup (Woodmart .wd-cookies-popup) collides with the WhatsApp FAB and
   clips its text on mobile — give the text room to clear the bottom-right FAB. */
@media (max-width: 767px) {
	.wd-cookies-popup .wd-cookies-inner {
		padding-right: 72px;
	}
}

/* Header: opaque white on every page. The Woodmart header ships transparent
   (`whb-without-bg`, over-content) so on light inner pages it vanishes. */
.whb-general-header,
.whb-general-header.whb-without-bg,
.whb-main-header {
	background-color: #fffefb !important;
}

.whb-header {
	border-bottom: 1px solid #e3ddd0;
}

.whb-general-header .wd-nav-main > li > a,
.whb-general-header .wd-tools-icon,
.whb-general-header .wd-tools-text,
.whb-general-header .site-logo a {
	color: #211f1b !important;
}

/* The bar and trust line are hooked inside the mini-cart contents container
   (theme `ul.woocommerce-mini-cart` or Elementor `.elementor-menu-cart__products`).
   Force them to full-width blocks so they don't inherit the item-row layout. */
.woocommerce-mini-cart > .pure-ship,
.woocommerce-mini-cart > .pure-minicart-reassurance,
.elementor-menu-cart__products > .pure-ship,
.elementor-menu-cart__products > .pure-minicart-reassurance {
	display: block;
	width: 100%;
	flex: 0 0 100%;
	box-sizing: border-box;
	list-style: none;
}

.pure-ship {
	--pure-ship-forest: #6b4c32;
	--pure-ship-sand: #c9a86a;
	--pure-ship-line: #e3ddd0;
	margin: 0 0 18px;
	padding: 16px 18px;
	background: #fbf8f1;
	border: 1px solid var(--pure-ship-line);
	border-radius: 2px;
	font-family: "Assistant", Arial, Helvetica, sans-serif;
}

.pure-ship__label {
	margin: 0 0 10px;
	font-size: 13.5px;
	line-height: 1.4;
	color: #4a463f;
	text-align: center;
}

.pure-ship__label strong {
	color: var(--pure-ship-forest);
	font-weight: 700;
	white-space: nowrap;
}

.pure-ship__label .amount {
	white-space: nowrap;
}

.pure-ship__track {
	display: block;
	position: relative;
	width: 100%;
	height: 6px;
	background: #ece5d7;
	border-radius: 100px;
	overflow: hidden;
}

.pure-ship__fill {
	display: block;
	height: 100%;
	min-width: 6px;
	border-radius: 100px;
	background: linear-gradient(90deg, var(--pure-ship-forest), #8a6b4f 55%, var(--pure-ship-sand));
	transition: width .55s cubic-bezier(.22, .61, .36, 1);
}

/* RTL: bar fills from the right, matching reading direction. */
.pure-ship__track {
	transform: scaleX(-1);
}

.pure-ship--done {
	background: #f6efe3;
	border-color: #e3d5c0;
}

.pure-ship--done .pure-ship__label {
	color: var(--pure-ship-forest);
	font-weight: 600;
}

.pure-ship--done .pure-ship__label::before {
	content: "✓ ";
	font-weight: 700;
}

.pure-ship--done .pure-ship__fill {
	background: var(--pure-ship-forest);
}

/* Add-to-cart success feedback on any Pure quick-add button (global). */
.pure-product-card__action.is-adding {
	opacity: .6;
	pointer-events: none;
}

.pure-product-card__action.pure-added {
	background: #6b4c32;
	border-color: #6b4c32;
	color: #fffefb;
}

/* Header cart-count bump when an item is added. */
.pure-count-bump {
	animation: pure-count-bump .45s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes pure-count-bump {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.32); }
	100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.pure-ship__fill { transition: none; }
	.pure-count-bump { animation: none; }
}

/* =====================================================================
   SITE-WIDE BRAND ACCENT — inner pages (shop/category/product/cart…) ship
   with Woodmart's tan primary (rgb(195,147,91)); force forest-green so every
   page matches the homepage instead of looking like the default theme.
   ===================================================================== */
:root {
	--wd-primary-color: #6b4c32 !important;
	--wd-primary-color-rgb: 24, 60, 52 !important;
	--btn-accented-bgcolor: #6b4c32 !important;
	--btn-accented-bgcolor-hover: #523a26 !important;
	--btn-accented-color: #fffefb !important;
	--wd-link-color: #6b4c32 !important;
	--wd-link-color-hover: #523a26 !important;
}

/* Prices + sale price (Woodmart colours these with the primary). */
.woocommerce span.price,
.woocommerce span.price ins,
.woocommerce span.price .amount,
.woocommerce ul.products li.product .price,
.wd-product .price,
.product .summary .price,
.price ins .amount {
	color: #6b4c32 !important;
}

.woocommerce del,
.woocommerce del .amount { color: #9a9488 !important; }

/* Header cart + wishlist count bubbles (were tan). */
.wd-cart-number,
.wd-tools-count,
.wd-header-cart .wd-cart-number,
.wd-header-wishlist .wd-tools-count {
	background-color: #6b4c32 !important;
	color: #fffefb !important;
}

/* On-sale / product badges to brand instead of tan/red. */
.woocommerce span.onsale,
.wd-product .product-labels .onsale,
.product-labels .out-of-stock { background-color: #6b4c32 !important; color: #fffefb !important; }

/* =====================================================================
   COOKIE CONSENT — Woodmart popup floats mid-screen and covers the hero /
   buy box on mobile. Dock it as a slim brand bottom bar that never overlaps.
   ===================================================================== */
.wd-cookies-popup {
	position: fixed !important;
	inset: auto 0 0 0 !important;
	top: auto !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border-radius: 0 !important;
	background: #6b4c32 !important;
	color: #fffefb !important;
	box-shadow: 0 -8px 28px -12px rgba(0, 0, 0, .45) !important;
	z-index: 9990 !important;
	transform: none !important;
}

.wd-cookies-popup .wd-cookies-inner {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-wrap: wrap !important;
	gap: 10px 18px !important;
	max-width: 1200px !important;
	margin: 0 auto !important;
	padding: 12px 20px !important;
}

.wd-cookies-popup .cookies-info-text,
.wd-cookies-popup .cookies-info-text * { color: #fffefb !important; font-size: 13px !important; margin: 0 !important; }

.wd-cookies-popup .cookies-accept-btn.btn-accent,
.wd-cookies-popup .cookies-accept-btn {
	background: #fffefb !important;
	border-color: #fffefb !important;
	color: #6b4c32 !important;
	min-height: 40px !important;
}

.wd-cookies-popup .cookies-more-btn { color: rgba(255,254,251,.8) !important; }

@media (max-width: 767px) {
	.wd-cookies-popup .wd-cookies-inner { padding: 10px 14px 14px !important; text-align: center; }
	/* keep the WhatsApp FAB clear of the bar */
	.wd-cookies-popup { padding-inline-end: 0 !important; }
}

/* Hide the Woodmart Compare feature site-wide (low value for mobile jewelry;
   the standalone page is unpublished). Removes nav item, header tool, card buttons. */
.menu-item-compare,
.wd-header-compare,
.compare-btn,
.wd-compare-btn,
a.compare-button,
.add-to-compare-button,
.woodmart-compare-btn,
.product-compare-button { display: none !important; }

/* =====================================================================
   BRANDED PRE-FOOTER — replaces broken Woodmart cms_block #1510 (missing
   icons, "אחריות ל12 חודשים" → "127" bidi glitch). #1510 hidden; ours injected
   via get_footer (all pages except home).
   ===================================================================== */
.elementor-1510 { display: none !important; }

.pure-prefooter {
	background: #fbf8f1;
	border-block: 1px solid #ece5d7;
	font-family: "Assistant", Arial, Helvetica, sans-serif;
}

.pure-prefooter__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 4px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 6px clamp(12px, 4vw, 32px);
}

.pure-prefooter__item {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 200px;
	min-width: 180px;
	padding: 18px 14px;
}

.pure-prefooter__icon { color: #6b4c32; flex: none; display: inline-flex; }
.pure-prefooter__text { display: flex; flex-direction: column; line-height: 1.3; }
.pure-prefooter__text strong { font-size: 14px; color: #211f1b; font-weight: 700; }
.pure-prefooter__text small { font-size: 12px; color: #6e6960; margin-top: 2px; }

@media (max-width: 767px) {
	.pure-prefooter__inner { gap: 0; }
	.pure-prefooter__item { flex: 1 1 46%; min-width: 0; padding: 14px 8px; gap: 9px; }
	.pure-prefooter__text strong { font-size: 12.5px; }
	.pure-prefooter__text small { display: none; }
}

/* =====================================================================
   CUSTOM FOOTER — replaces the Elementor footer (#322, hidden) + the empty
   Woodmart prefooter wrapper. Rendered via get_footer (pure_custom_footer).
   ===================================================================== */
.elementor-location-footer,
.wd-prefooter { display: none !important; }

.pure-footer {
	background: #3c2c1e;
	color: #d8d3c8;
	font-family: "Assistant", Arial, Helvetica, sans-serif;
	padding: clamp(40px, 6vw, 72px) 0 0;
}
.pure-footer__inner {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
	gap: 40px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 40px) clamp(36px, 5vw, 56px);
}
.pure-footer__logo { display: inline-block; font-size: 26px; letter-spacing: .12em; color: #fffefb; margin-bottom: 16px; }
.pure-footer__logo span { font-size: 12px; letter-spacing: .3em; color: #c9a86a; }
.pure-footer__brand p { font-size: 14px; line-height: 1.7; color: rgba(255,254,251,.7); max-width: 340px; margin: 0 0 20px; }
.pure-footer__social { display: flex; gap: 12px; }
.pure-footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,254,251,.25); border-radius: 50%; color: #fffefb; transition: background-color .2s, color .2s, border-color .2s; }
.pure-footer__social a:hover { background: #c9a86a; border-color: #c9a86a; color: #3c2c1e; }
.pure-footer__col h4 { font-size: 13px; letter-spacing: .08em; color: #c9a86a; margin: 0 0 16px; font-weight: 700; }
.pure-footer__col ul { list-style: none; margin: 0; padding: 0; }
.pure-footer__col li { margin-bottom: 10px; }
.pure-footer__col a { color: rgba(255,254,251,.78); font-size: 14px; }
.pure-footer__col a:hover { color: #fffefb; }
.pure-footer__contact p { font-size: 14px; line-height: 1.7; color: rgba(255,254,251,.78); margin: 0 0 10px; }
.pure-footer__contact a { color: #fffefb; border-bottom: 1px solid rgba(201,168,106,.6); }
.pure-footer__bottom {
	border-top: 1px solid rgba(255,254,251,.12);
	max-width: 1320px; margin: 0 auto;
	padding: 20px clamp(20px, 4vw, 40px);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px;
	font-size: 12.5px; color: rgba(255,254,251,.55);
}
@media (max-width: 900px) {
	.pure-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
	.pure-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.pure-footer__bottom { flex-direction: column; text-align: center; }
}

/* Footer + prefooter must be FULL-BLEED even when get_footer fires inside
   Woodmart's centered .container on inner pages (on the home template they're
   already full-width; the negative-margin math resolves to 0 there). Inner
   content stays centered via __inner max-width. Adds breathing room above. */
.pure-prefooter,
.pure-footer {
	width: auto !important;
	margin-inline: calc(50% - 50vw) !important;
	max-width: 100vw;
}
.pure-prefooter { margin-top: clamp(40px, 6vw, 72px) !important; }
/* guard against horizontal scroll from 100vw incl. scrollbar */
html { overflow-x: hidden; }

/* Newsletter popup close-X: Woodmart's global button styles forced it to
   position:relative + gave it a gray box, so it floated center-top over the
   heading. Force a clean absolute corner X (RTL: visual-left = the close corner). */
.pure-nl .pure-nl__x {
	position: absolute !important;
	top: 8px !important;
	left: 10px !important;
	right: auto !important;
	inset-inline: auto !important;
	width: 38px !important;
	height: 38px !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 50% !important;
	font-size: 26px !important;
	line-height: 1 !important;
	color: #6e6960 !important;
	cursor: pointer;
	z-index: 12 !important;
}
.pure-nl .pure-nl__x:hover { color: #6b4c32 !important; background: rgba(60,44,30,.06) !important; }

/* Popup X final placement: earlier inset-inline:auto canceled the offset. In RTL
   inset-inline-end = visual-left, the natural close corner. */
.pure-nl .pure-nl__x {
	inset-inline-start: auto !important;
	inset-inline-end: 10px !important;
	left: auto !important;
	right: auto !important;
}

/* Popup X — DEFINITIVE: physical left only, declared last so nothing self-cancels
   (box has text-align:center which pulled the auto-positioned X to center). */
.pure-nl .pure-nl__x {
	position: absolute !important;
	top: 8px !important;
	bottom: auto !important;
	right: auto !important;
	left: 10px !important;
}

/* Heading for empty-cart/checkout recommended products. */
.pure-empty-heading {
	font-family: "Assistant", Arial, Helvetica, sans-serif;
	font-size: clamp(22px, 3vw, 30px); font-weight: 400; color: #211f1b;
	text-align: center; margin: 40px 0 24px;
}

/* Cookie bar compact mobile + clickable buttons above the WhatsApp FAB. */
.wd-cookies-popup .cookies-more-btn,
.wd-cookies-popup .cookies-accept-btn { position: relative; z-index: 2; pointer-events: auto !important; }
@media (max-width: 767px) {
	.wd-cookies-popup .wd-cookies-inner { padding: 8px 12px 10px !important; gap: 6px 12px !important; }
	.wd-cookies-popup .cookies-info-text,
	.wd-cookies-popup .cookies-info-text * { font-size: 11.5px !important; line-height: 1.35 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.wd-cookies-popup .cookies-buttons { display: flex; gap: 10px; align-items: center; }
	.wd-cookies-popup .cookies-accept-btn { min-height: 34px !important; padding: 0 16px !important; font-size: 13px !important; }
	.wd-cookies-popup .cookies-more-btn { font-size: 12px !important; }
	.wd-cookies-popup { padding-inline-end: 68px !important; }
}

/* "You looked at these" quick-add row (cart + checkout). */
.pure-interest { max-width: 1100px; margin: 8px auto 32px; padding: 0 16px; font-family: "Assistant", Arial, Helvetica, sans-serif; }
.pure-interest__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pure-interest__card { display: flex; flex-direction: column; background: #fffefb; border: 1px solid #ece5d7; border-radius: 10px; padding: 10px 10px 12px; text-align: center; }
.pure-interest__media img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: contain; display: block; }
.pure-interest__name { margin-top: 8px; font-size: 13.5px; line-height: 1.35; color: #211f1b; min-height: 36px; }
.pure-interest__price { font-size: 14px; font-weight: 700; color: #6b4c32; margin: 4px 0 10px; }
.pure-interest__price del { color: #9a9488; font-weight: 400; margin-inline-end: 5px; }
.pure-interest__add { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; border-radius: 4px; background: #6b4c32; color: #fffefb !important; font-size: 13.5px; font-weight: 600; }
.pure-interest__add:hover { background: #523a26; }
.pure-interest__add--opts { background: none; border: 1px solid #6b4c32; color: #6b4c32 !important; }
@media (max-width: 700px) { .pure-interest__row { grid-template-columns: repeat(2, 1fr); } }


/* Footer: real brand logo image (was a text wordmark). Cream-tinted for the dark footer. */
.pure-footer__logo { display: inline-block; margin-bottom: 16px; }
.pure-footer__logo img { width: 165px; height: auto; display: block; filter: brightness(0) invert(1); opacity: .92; }

/* Quantity-ladder nudge: "one more piece and you get 25% plus free shipping".
   Shown in the cart, the checkout and the side-cart drawer. */
.pure-offer-nudge {
	margin: 0 0 14px;
	padding: 11px 14px;
	border: 1px solid var(--pure-sand, #d9cbb8);
	border-inline-start: 3px solid var(--pure-coffee, #6b4f3a);
	border-radius: 8px;
	background: var(--pure-cream, #f7f1e8);
	color: var(--pure-espresso, #3d2a1c);
	font-size: 14px;
	line-height: 1.45;
	text-align: start;
}

.pure-offer-nudge strong { font-weight: 600; }

.widget_shopping_cart_content .pure-offer-nudge,
.wd-cart-drawer .pure-offer-nudge {
	margin: 0 0 10px;
	padding: 9px 11px;
	font-size: 13px;
}

/* 2+1 promise, shown on the product page where the decision happens. */
.pure-offer-badge {
	display: flex; flex-direction: column; gap: 3px;
	margin: 14px 0; padding: 12px 14px;
	border: 1px solid var(--pure-sand, #d9cbb8);
	border-inline-start: 3px solid var(--pure-coffee, #6b4f3a);
	border-radius: 8px;
	background: var(--pure-cream, #f7f1e8);
	color: var(--pure-espresso, #3d2a1c);
}
.pure-offer-badge strong { font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.pure-offer-badge span { font-size: 13.5px; line-height: 1.45; }

/* Holiday wording for the offer badge on the product page. */
.pure-offer-badge { border-inline-start-color:#b08d4f; }
.pure-offer-badge strong { color:#8a6c33; }
