/*
Theme Name:  Neutraland Child
Template:    woodmart
Description: WoodMart child theme for neutraland.ir — no external resource calls.
Version:     2.8.0
*/

/* ================================================================
 * GLOBAL: Force site font to IRANSansXFaNum
 * The font is already loaded by the theme (rtl.css), so no @font-face
 * or upload is needed — we only set the family. The matching primary
 * font is applied via functions.php (printed into <head>); this block
 * is a stylesheet fallback. Icons keep their own font-family.
 * ================================================================ */
html body,
html body input,
html body textarea,
html body select,
html body button,
html body optgroup,
html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body h6 {
	font-family: 'IRANSansx', Tahoma, 'Segoe UI', Arial, sans-serif !important;
}

/* ================================================================
 * GLOBAL: Discount banner
 * ================================================================ */
body .wdm-global-discount-banner {
	background: linear-gradient(90deg, #007bff 0%, #00d2ff 100%);
	padding: 16px 24px;
	border-radius: 10px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
	margin-bottom: 30px;
	text-align: center;
	animation: fadeInBanner 0.6s ease-out;
}

body .wdm-global-discount-banner a {
	display: inline-block;
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
	padding: 12px 20px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.2);
	transition: background 0.3s ease, transform 0.3s ease;
}

body .wdm-global-discount-banner a:hover {
	background: rgba(255, 255, 255, 0.35);
	transform: translateY(-3px);
}

@keyframes fadeInBanner {
	0%   { opacity: 0; transform: translateY(-10px); }
	100% { opacity: 1; transform: translateY(0); }
}

/* ================================================================
 * HERO section
 * ================================================================ */
.custom-hero-gradient {
	position: relative;
	padding: 120px 0;
	background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
	overflow: hidden;
	text-align: center;
}

.custom-hero__content {
	position: relative;
	max-width: 700px;
	margin: 0 auto;
	color: #fff;
}

.custom-hero__title {
	font-size: 48px;
	font-weight: 800;
	margin-bottom: 10px;
	line-height: 1.2;
}

.custom-hero__subtitle {
	font-size: 20px;
	margin-bottom: 30px;
	opacity: 0.95;
}

.scroll-indicator a {
	font-size: 36px;
	display: inline-block;
	text-decoration: none;
	animation: bounce 2s infinite;
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
	40%  { transform: translateY(-15px); }
	60%  { transform: translateY(-7px); }
}

/* ================================================================
 * ARCHIVE: Product title — max 2 lines, equal height
 * ================================================================ */
.wd-entities-title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wd-entities-title {
	min-height: 3.6em;
}

/* ================================================================
 * INVENTORY: Sticky top notice
 * ================================================================ */
.supsport-inventory-notice {
	position: sticky;
	top: 0;
	z-index: 9999;
	padding: 12px 16px;
	text-align: center;
	font-size: 14px;
	border-radius: 0;
	background: #111827;
	color: #fff;
}

.supsport-inventory-notice b {
	color: #fbbf24;
}

/* ================================================================
 * INVENTORY: Inline note on PDP
 * ================================================================ */
.supsport-inventory-note-inline {
	margin: 10px 0 0;
	padding: 10px 12px;
	font-size: 13px;
	border-radius: 10px;
	background: rgba(17, 24, 39, 0.06);
	color: #111827;
}

/* ================================================================
 * CHECKOUT: Shipping cost explanation box
 * ================================================================ */
.neutraland-shipping-notice {
	margin-top: 30px;
	padding: 20px;
	border: 2px solid #a5d6a7;
	background-color: #e8f5e9;
	border-radius: 12px;
	font-size: 15px;
	line-height: 1.9;
	color: #2e7d32;
	font-weight: 500;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* ================================================================
 * CHECKOUT: Postcode inline error (moved out of inline JS styles)
 * ================================================================ */
.neutraland-postcode-error {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: #e53935;
}

/* ================================================================
 * CHECKOUT: Cross-sells section
 * ================================================================ */
.neutraland-cross-sells {
	margin: 30px 0;
}

.neutraland-crosssell-heading {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 16px;
}

/* ================================================================
 * PDP: Product highlights under Add-to-Cart
 * ================================================================ */
.neutraland-product-highlights {
	margin-top: 16px;
	padding: 14px 16px;
	background: rgba(17, 24, 39, 0.04);
	border-radius: 10px;
}

.neutraland-product-highlights .highlight-item {
	padding: 6px 0;
	font-size: 14px;
	line-height: 1.7;
	color: #333;
}

.neutraland-product-highlights .highlight-item .icon {
	margin-left: 6px;
}

/* ================================================================
 * ADMIN: Shipping rate ID debug label
 * ================================================================ */
.neutraland-rate-id-debug {
	font-size: 11px;
	color: #999;
	margin-right: 4px;
}

/* ================================================================
 * FREE SHIPPING: site-wide promo banner (bold + shimmer)
 * ================================================================ */
.neutraland-freeship-banner {
	position: relative;
	overflow: hidden;
	background: linear-gradient(90deg, #1b5e20 0%, #2e7d32 50%, #43a047 100%);
	color: #fff;
	text-align: center;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.2px;
	line-height: 1.6;
	padding: 12px 16px;
}
.neutraland-freeship-banner strong {
	font-weight: 900;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
}
.neutraland-freeship-banner::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 45%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	transform: skewX(-20deg);
	animation: nfp-shine 3.5s ease-in-out infinite;
}
@keyframes nfp-shine {
	0%        { left: -60%; }
	60%, 100% { left: 130%; }
}

/* ================================================================
 * FREE SHIPPING: fancy progress bar (cart, side-cart, product page)
 * ================================================================ */
.neutraland-freeship-progress {
	margin: 14px 0 18px;
	padding: 14px 16px;
	border: 1.5px solid #a5d6a7;
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(67, 160, 71, 0.10), rgba(67, 160, 71, 0.02));
}
.neutraland-freeship-progress .nfp-text {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.7;
	color: #1b5e20;
}
.neutraland-freeship-progress .nfp-emoji { font-size: 16px; }
.neutraland-freeship-progress .nfp-amount {
	font-size: 16px;
	font-weight: 900;
	color: #c62828;
}
.neutraland-freeship-progress .nfp-text.nfp-done { font-size: 15px; }

.neutraland-freeship-progress .nfp-track {
	position: relative;
	height: 16px;
	background: #e6e6e6;
	border-radius: 999px;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}
.neutraland-freeship-progress .nfp-fill {
	position: relative;
	height: 100%;
	min-width: 18px;
	background: linear-gradient(90deg, #2e7d32, #43a047, #66bb6a);
	border-radius: 999px;
	transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.neutraland-freeship-progress .nfp-fill::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.25) 0 8px, transparent 8px 16px);
	animation: nfp-stripes 0.7s linear infinite;
}
@keyframes nfp-stripes { to { background-position: 22px 0; } }

.neutraland-freeship-progress .nfp-truck {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translate(-50%, -50%);
	font-size: 16px;
	line-height: 1;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.neutraland-freeship-progress.is-done {
	border-color: #43a047;
	background: linear-gradient(180deg, rgba(67, 160, 71, 0.16), rgba(67, 160, 71, 0.04));
}
.neutraland-freeship-progress.is-done .nfp-fill {
	background: linear-gradient(90deg, #1b5e20, #43a047);
}
.neutraland-freeship-progress.is-done .nfp-track {
	box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.25);
}

/* ================================================================
 * SNAPPBOX: rate descriptions + express slot picker (checkout)
 * ================================================================ */
.nl-banner-sep { opacity: 0.6; margin: 0 6px; }

.nl-snapp-desc {
	display: block;
	margin: 4px 26px 8px 0;
	font-size: 12.5px;
	line-height: 1.8;
	color: #555;
}

.nl-snapp-slot {
	margin: 6px 26px 12px 0;
	padding: 10px 12px;
	background: rgba(46, 125, 50, 0.06);
	border: 1px solid #a5d6a7;
	border-radius: 10px;
}
.nl-snapp-slot label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #1b5e20;
}
.nl-snapp-slot select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #a5d6a7;
	border-radius: 8px;
	font-size: 13px;
	background: #fff;
}

.nl-snapp-order-note { margin-top: 12px; }

/* ================================================================
 * ==== SnappBox delivery MAP PICKER (checkout) ====
 * Rendered by inc/snappbox-location.php under the chosen SnappBox
 * shipping method, driven by assets/nl-delivery-map.js.
 *
 * Markup contract (PHP prints these; the JS fills them):
 *   .nl-map-box#nl-delivery-map-field      wrapper, gets .is-set once a point exists
 *     .nl-map-title / .nl-map-req    heading + required asterisk
 *     .nl-map-hint                   one-line explainer
 *     .nl-map-canvas#nl-map-canvas   the SDK renders here
 *     .nl-map-status#nl-map-status   JS messages (.is-error for failures)
 *     .nl-map-addr#nl-map-addr       reverse-geocoded Persian address
 *     .nl-map-coords#nl-map-coords   Persian-digit coordinates (display only)
 *     3 hidden inputs (neutraland_delivery_lat/lng/geo_address)
 * JS-owned optionals styled here too: .nl-map-actions, .nl-map-btn,
 * .nl-map-crosshair, .nl-map-loading.
 *
 * RTL: the box is indented from the RIGHT (start side) by 26px so it
 * lines up with .nl-snapp-desc / .nl-snapp-slot under the rate radio.
 * ================================================================ */
.nl-map-box {
	margin: 8px 26px 14px 0;
	padding: 12px;
	border: 1.5px solid #a5d6a7;
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(67, 160, 71, 0.10), rgba(67, 160, 71, 0.02));
	direction: rtl;
	text-align: right;
}

/* Fallback render path: a full-width row inside the review-order table. */
tr.nl-map-row > td {
	padding: 0 !important;
	border: 0 !important;
}
tr.nl-map-row .nl-map-box {
	margin-left: 0;
	margin-right: 0;
}

.nl-map-title {
	margin: 0 0 4px;
	font-size: 13.5px;
	font-weight: 800;
	line-height: 1.8;
	color: #1b5e20;
}

.nl-map-req {
	border: 0;
	color: #c62828;
	text-decoration: none;
	font-weight: 900;
}

.nl-map-hint {
	margin: 0 0 10px;
	font-size: 12px;
	line-height: 1.8;
	color: #555;
}

/* The SDK canvas. min-height (not height) so a taller map is fine. */
.nl-map-canvas {
	position: relative;
	width: 100%;
	min-height: 240px;
	overflow: hidden;
	border: 1px solid #a5d6a7;
	border-radius: 12px;
	background: #eef1f3;
}
.nl-map-canvas:empty::after {
	content: "در حال بارگذاری نقشه…";
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	transform: translateY(-50%);
	text-align: center;
	font-size: 12.5px;
	color: #888;
}
/* Map tiles/controls must not inherit the RTL text flow. */
.nl-map-canvas * {
	direction: ltr;
}

/* Fixed centre crosshair pattern (drag the map under the pin). */
.nl-map-crosshair {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 400;
	transform: translate(-50%, -100%);
	font-size: 26px;
	line-height: 1;
	pointer-events: none;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

.nl-map-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.nl-map-btn {
	padding: 8px 14px;
	border: 1px solid #43a047;
	border-radius: 10px;
	background: #fff;
	color: #1b5e20;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.6;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}
.nl-map-btn:hover,
.nl-map-btn:focus {
	background: #43a047;
	color: #fff;
}
.nl-map-btn[disabled] {
	opacity: 0.55;
	cursor: default;
}

.nl-map-status {
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.8;
	color: #555;
}
.nl-map-status:empty {
	display: none;
}
.nl-map-status.is-error {
	color: #c62828;
	font-weight: 700;
}

.nl-map-addr {
	margin-top: 8px;
	padding: 8px 10px;
	border: 1px solid #a5d6a7;
	border-radius: 10px;
	background: #fff;
	font-size: 12.5px;
	line-height: 1.9;
	color: #333;
}
.nl-map-addr:empty {
	display: none;
}

.nl-map-coords {
	margin-top: 6px;
	font-size: 11.5px;
	line-height: 1.8;
	color: #777;
}
.nl-map-coords:empty {
	display: none;
}

/* A point has been chosen — confirm it visually. */
.nl-map-box.is-set {
	border-color: #43a047;
	background: linear-gradient(180deg, rgba(67, 160, 71, 0.16), rgba(67, 160, 71, 0.04));
}
.nl-map-box.is-set .nl-map-canvas {
	border-color: #43a047;
}

/* Validation failed on submit — WooCommerce keeps the customer on the page. */
.nl-map-box.has-error {
	border-color: #e53935;
	background: linear-gradient(180deg, rgba(229, 57, 53, 0.10), rgba(229, 57, 53, 0.02));
}

.nl-map-loading {
	opacity: 0.6;
	pointer-events: none;
}

@media (max-width: 480px) {
	.nl-map-box {
		margin-right: 0;
		padding: 10px;
	}
	.nl-map-canvas {
		min-height: 200px;
	}
	.nl-map-btn {
		flex: 1 1 auto;
		text-align: center;
	}
}

/* ================================================================
 * ==== Bundles (پک) ====
 * PDP «محتویات این پک» box — see inc/bundles.php.
 * ================================================================ */
.nl-bundle-box {
	margin: 18px 0;
	padding: 16px;
	border: 1.5px solid #a5d6a7;
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(22, 163, 74, 0.06), rgba(22, 163, 74, 0.01));
}

.nl-bundle-title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 800;
	color: #1b5e20;
}

.nl-bundle-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px dashed rgba(165, 214, 167, 0.7);
	font-size: 14px;
	line-height: 1.7;
}
.nl-bundle-items .nl-bundle-item:last-child { border-bottom: 0; }

.nl-bundle-thumb {
	flex: 0 0 48px;
	line-height: 0;
}
.nl-bundle-thumb img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border: 1px solid #a5d6a7;
	border-radius: 8px;
	background: #fff;
}

.nl-bundle-qty {
	font-weight: 800;
	color: #16a34a;
	white-space: nowrap;
}

.nl-bundle-name {
	flex: 1;
	min-width: 0;
	color: #333;
}
.nl-bundle-name a {
	color: inherit;
	text-decoration: none;
}
.nl-bundle-name a:hover { color: #16a34a; }

.nl-bundle-price {
	font-size: 13px;
	color: #555;
	white-space: nowrap;
}

.nl-bundle-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #a5d6a7;
	font-size: 14px;
	color: #333;
}

.nl-bundle-sum {
	text-decoration: line-through;
	color: #999;
	font-size: 13px;
}

.nl-bundle-final {
	font-weight: 900;
	color: #1b5e20;
}

.nl-bundle-save {
	padding: 2px 10px;
	background: #16a34a;
	border-radius: 999px;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.nl-bundle-box { padding: 12px; }
	.nl-bundle-item { font-size: 13px; gap: 8px; }
	.nl-bundle-thumb { flex-basis: 40px; }
	.nl-bundle-thumb img { width: 40px; height: 40px; }
	.nl-bundle-footer { font-size: 13px; }
}

/* ================================================================
 * SNAPPBOX: delivery slot picker (checkout) — v2 redesign
 * Theme-agnostic: neutral translucent surfaces + inherit text colour,
 * so it reads correctly on WoodMart's dark checkout AND light pages.
 * Selected state is always brand-green with white text.
 * ================================================================ */
.nl-slot {
	margin: 12px 0 16px;
	padding: 14px;
	background: rgba(67, 160, 71, 0.07);
	border: 1px solid rgba(67, 160, 71, 0.35);
	border-radius: 14px;
}
.nl-slot-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.6;
}
.nl-slot-head small { font-weight: 600; opacity: .7; }
.nl-slot-ico { font-size: 18px; line-height: 1; }

.nl-slot-h {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	opacity: .8;
}
.nl-slot-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #2e7d32;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
}
.nl-slot-h + .nl-slot-row { margin-bottom: 14px; }

/* Equal-width grid: chips always share the row evenly and wrap cleanly. */
.nl-slot-row.nl-slot-days,
.nl-slot-row.nl-slot-times {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
	gap: 8px;
}

.nl-chip {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 52px;
	padding: 8px 6px;
	background: rgba(127, 127, 127, 0.12);
	border: 1.5px solid rgba(127, 127, 127, 0.35);
	border-radius: 12px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
	color: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: border-color .15s ease, background .15s ease,
		box-shadow .15s ease, transform .1s ease;
}
.nl-chip:hover { border-color: #43a047; }
.nl-chip:active { transform: scale(.96); }
.nl-chip:focus-visible { outline: 2px solid #43a047; outline-offset: 2px; }
.nl-chip.is-on {
	background: linear-gradient(135deg, #2e7d32, #43a047);
	border-color: #43a047;
	color: #fff;
	box-shadow: 0 4px 14px rgba(46, 125, 50, 0.35);
}
.nl-chip.is-on::before {
	content: '✓';
	position: absolute;
	top: 3px;
	inset-inline-start: 7px;
	font-size: 11px;
	font-weight: 900;
	opacity: .9;
}
.nl-chip[hidden] { display: none !important; }

/* Status line → success strip once a slot is locked in. */
.nl-slot-note {
	margin: 12px 0 0;
	padding: 10px 12px;
	border: 1px dashed rgba(127, 127, 127, 0.4);
	border-radius: 10px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.8;
	background: rgba(127, 127, 127, 0.08);
}
.nl-slot-note.is-set {
	border: 1px solid rgba(67, 160, 71, 0.55);
	background: rgba(46, 125, 50, 0.16);
}
.nl-slot-note.is-set::before { content: '✅ '; }

@media (max-width: 420px) {
	.nl-slot { padding: 12px 10px; }
	.nl-slot-row.nl-slot-days,
	.nl-slot-row.nl-slot-times {
		grid-template-columns: repeat(2, 1fr);
	}
	.nl-chip { min-height: 48px; font-size: 12.5px; }
}

/* ================================================================
 * ==== B2B landing ====
 * [nutra_b2b_packs] wholesale pack grid (پک‌های عمده) — see
 * inc/bundles.php. Direct-link page only (noindex).
 * ================================================================ */
.nl-b2b-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	margin: 18px 0;
	direction: rtl;
}

.nl-b2b-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	border: 1.5px solid #a5d6a7;
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(22, 163, 74, 0.06), rgba(22, 163, 74, 0.01));
}

.nl-b2b-thumb {
	display: block;
	line-height: 0;
	text-align: center;
}
.nl-b2b-thumb img {
	width: 100%;
	max-width: 100%;
	height: auto;
	border: 1px solid #a5d6a7;
	border-radius: 10px;
	background: #fff;
	object-fit: cover;
}

.nl-b2b-name {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.7;
	color: #1b5e20;
}
.nl-b2b-name a {
	color: inherit;
	text-decoration: none;
}
.nl-b2b-name a:hover { color: #16a34a; }

.nl-b2b-items {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13.5px;
	line-height: 1.8;
	color: #333;
}
.nl-b2b-items li {
	padding: 6px 0;
	border-bottom: 1px dashed rgba(165, 214, 167, 0.7);
}
.nl-b2b-items li:last-child { border-bottom: 0; }

.nl-b2b-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid #a5d6a7;
	font-size: 14px;
	color: #333;
}

.nl-b2b-sum {
	text-decoration: line-through;
	color: #999;
	font-size: 13px;
}

.nl-b2b-price {
	font-weight: 900;
	color: #1b5e20;
}

.nl-b2b-unit {
	flex-basis: 100%;
	font-size: 12.5px;
	color: #555;
}

.nl-b2b-save {
	padding: 2px 10px;
	background: #16a34a;
	border-radius: 999px;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.nl-b2b-add {
	display: block;
	padding: 10px 14px;
	background: linear-gradient(135deg, #2e7d32, #43a047);
	border-radius: 10px;
	color: #fff !important;
	font-size: 14px;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	transition: box-shadow .15s ease, transform .1s ease;
}
.nl-b2b-add:hover {
	box-shadow: 0 4px 14px rgba(46, 125, 50, 0.35);
	transform: translateY(-1px);
}
.nl-b2b-add.is-off {
	background: rgba(127, 127, 127, 0.25);
	color: #666 !important;
	cursor: default;
}

.nl-b2b-empty {
	margin: 24px 0;
	padding: 14px 16px;
	border: 1px dashed rgba(127, 127, 127, 0.4);
	border-radius: 10px;
	background: rgba(127, 127, 127, 0.06);
	text-align: center;
	font-size: 14px;
	color: #555;
}

@media (max-width: 480px) {
	.nl-b2b-grid { grid-template-columns: 1fr; gap: 12px; }
	.nl-b2b-card { padding: 12px; }
}

/* ================================================================
 * URGENCY: sale countdown + low-stock alerts
 * Fixed urgency palette (red) with white text on the timer, so it
 * reads identically on light PDP and dark checkout.
 * ================================================================ */
.nl-count {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0 6px;
	padding: 12px 14px;
	background: linear-gradient(135deg, #b71c1c, #e53935);
	border-radius: 14px;
	color: #fff;
	box-shadow: 0 6px 18px rgba(198, 40, 40, 0.30);
	animation: nl-count-breathe 2.6s ease-in-out infinite;
}
.nl-count-label {
	font-size: 13.5px;
	font-weight: 800;
	line-height: 1.6;
}
.nl-count-cells {
	display: flex;
	align-items: center;
	gap: 6px;
}
.nl-count-cell {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	min-width: 44px;
	padding: 5px 6px 4px;
	background: rgba(0, 0, 0, 0.28);
	border-radius: 9px;
}
.nl-count-cell b {
	font-size: 17px;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: 0.5px;
	font-variant-numeric: tabular-nums;
}
.nl-count-cell i {
	font-style: normal;
	font-size: 9.5px;
	font-weight: 600;
	opacity: 0.85;
}
.nl-count-sep {
	font-weight: 900;
	opacity: 0.7;
}
@keyframes nl-count-breathe {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.012); }
}
.nl-count.is-critical {
	background: linear-gradient(135deg, #d50000, #ff1744);
	animation: nl-count-alarm 0.9s ease-in-out infinite;
}
@keyframes nl-count-alarm {
	0%, 100% { box-shadow: 0 6px 18px rgba(213, 0, 0, 0.35); }
	50%      { box-shadow: 0 6px 26px rgba(213, 0, 0, 0.65); transform: scale(1.015); }
}
@media (max-width: 480px) {
	.nl-count { justify-content: center; text-align: center; }
}

.nl-lowstock {
	margin: 8px 0 6px;
	padding: 10px 12px;
	background: rgba(198, 40, 40, 0.08);
	border: 1.5px solid rgba(198, 40, 40, 0.45);
	border-radius: 12px;
}
.nl-lowstock-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 7px;
}
.nl-lowstock-ico {
	font-size: 16px;
	animation: nl-flame 1.1s ease-in-out infinite;
}
@keyframes nl-flame {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.18); }
}
.nl-lowstock-txt {
	font-size: 13.5px;
	font-weight: 800;
	color: #d32f2f;
	line-height: 1.7;
}
.nl-lowstock-bar {
	display: block;
	height: 7px;
	background: rgba(127, 127, 127, 0.18);
	border-radius: 999px;
	overflow: hidden;
}
.nl-lowstock-fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #d32f2f, #ff5252);
	border-radius: 999px;
	background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.3) 0 6px, transparent 6px 12px);
	animation: nl-lowstock-stripes 0.8s linear infinite;
}
@keyframes nl-lowstock-stripes { to { background-position: 17px 0; } }

.nl-lowstock-mini {
	margin: 6px 0 0;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 700;
	color: #d32f2f;
	line-height: 1.7;
}
.nl-lowstock-mini b { font-weight: 800; }

/* URGENCY: archive-card low-stock pill */
.nl-lowstock-pill {
	display: inline-block;
	margin: 6px auto 0;
	padding: 3px 10px;
	background: rgba(198, 40, 40, 0.10);
	border: 1px solid rgba(198, 40, 40, 0.45);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	color: #d32f2f;
	line-height: 1.8;
	animation: nl-pill-pulse 1.6s ease-in-out infinite;
}
@keyframes nl-pill-pulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.65; }
}

/* ================================================================
 * ORDER-PAY: coupon form on the pay-for-order page
 * ================================================================ */
.nl-paycoupon {
	margin: 0 0 18px;
	padding: 14px;
	background: rgba(67, 160, 71, 0.07);
	border: 1px solid rgba(67, 160, 71, 0.35);
	border-radius: 14px;
}
.nl-paycoupon-h { margin: 0 0 10px; font-size: 13.5px; font-weight: 800; }
.nl-paycoupon-form { display: flex; gap: 8px; }
.nl-paycoupon-form input[type="text"] {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 1.5px solid rgba(127, 127, 127, 0.35);
	border-radius: 10px;
	font-size: 14px;
	text-align: center;
	letter-spacing: 1px;
}
.nl-paycoupon-form .button {
	background: #2e7d32;
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 10px 18px;
	font-weight: 700;
	white-space: nowrap;
}
.nl-paycoupon-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.nl-paycoupon-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	background: rgba(46, 125, 50, 0.16);
	border: 1px solid rgba(67, 160, 71, 0.55);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
}
.nl-paycoupon-chip a { color: #c62828; font-weight: 900; text-decoration: none; padding: 0 2px; }

/* ================================================================
 * STOREFRONT (Elementor homepage rebuild) — design tokens + card kit
 * Scope: everything below only applies inside a container that carries
 * the `nl-cards` class (set it on the Elementor widget's container),
 * so WoodMart archives and the product page are untouched.
 * ================================================================ */
:root {
	--nl-primary: #17259E;
	--nl-primary-dark: #0B1550;
	--nl-accent: #FFD200;
	--nl-text: #12142E;
	--nl-text-2: #5B6180;
	--nl-border: #E3E5F0;
	--nl-band: #F4F5FA;
	--nl-sale: #A6231A;
	--nl-success: #0E7A52;
}

/* The ٪-flash is opt-in: hidden wherever WoodMart runs its own label
 * system, shown only inside the Elementor card kit. */
.nl-flash { display: none; }
.nl-cards ul.products li.product .nl-flash { display: inline-block; }

/* Card — both class spellings of the Elementor Pro Products widget. */
.nl-cards ul.products li.product {
	position: relative;
	background: #fff;
	border: 1px solid var(--nl-border);
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow .18s ease;
}
.nl-cards ul.products li.product:hover {
	box-shadow: 0 4px 16px rgba(18, 20, 46, .08);
}
.nl-cards ul.products li.product img {
	aspect-ratio: 1 / 1;
	width: 100%;
	height: auto;
	object-fit: contain;
	background: var(--nl-band);
}
.nl-cards ul.products li.product .onsale {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	inset-inline-start: auto;
	margin: 0;
	min-width: 0;
	min-height: 0;
	padding: 3px 8px;
	background: var(--nl-sale);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.8;
	border-radius: 4px;
	z-index: 2;
}
.nl-cards ul.products li.product .woocommerce-loop-product__title {
	padding: 10px 12px 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--nl-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nl-cards .nl-rating {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px 12px 0;
	font-size: 12.5px;
	color: var(--nl-text-2);
}
.nl-cards .nl-rating-star { color: #F2A600; font-size: 14px; }
.nl-cards .nl-rating-avg { font-weight: 700; color: var(--nl-text); }
.nl-cards ul.products li.product .price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	padding: 6px 12px 0;
	color: var(--nl-text);
	font-variant-numeric: tabular-nums;
}
.nl-cards ul.products li.product .price del {
	order: 1;
	font-size: 13px;
	color: var(--nl-text-2);
	opacity: 1;
}
.nl-cards ul.products li.product .price ins {
	order: 2;
	font-size: 22px;
	font-weight: 800;
	text-decoration: none;
}
/* «تومان» unit: small + medium weight next to the 22px figure */
.nl-cards ul.products li.product .price ins .woocommerce-Price-currencySymbol {
	font-size: 12px;
	font-weight: 600;
	color: var(--nl-text-2);
}
.nl-cards ul.products li.product .button {
	display: block;
	width: calc(100% - 24px);
	margin: 10px 12px 12px;
	min-height: 44px;
	line-height: 44px;
	padding: 0 12px;
	text-align: center;
	background: var(--nl-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	border-radius: 8px;
	transition: background .15s ease;
}
.nl-cards ul.products li.product .button:hover {
	background: var(--nl-primary-dark);
	color: #fff;
}
.nl-cards .price .woocommerce-Price-amount,
.woocommerce-Price-amount {
	font-variant-numeric: tabular-nums;
}
.nl-cards a:focus-visible,
.nl-cards button:focus-visible {
	outline: 2px solid var(--nl-primary);
	outline-offset: 2px;
}
@media (max-width: 767px) {
	.nl-cards ul.products li.product .woocommerce-loop-product__title { min-height: 44px; }
	.nl-cards ul.products li.product .price ins { font-size: 18px; }
}
