/*
 * Biorganica Noir — product landing pages (lp/*), thank-you / view-order / order-guide pages.
 * Loaded after each page's own styles (assets/css/lp-hero-product.css or the page's <style> block), on
 * body.noir-lp. Layout and content stay the page's own; this converts palette, type and shape to Noir:
 * green → gold, cream/white → dark green panels, Playfair/system → Marcellus/Jost, square corners, no shadows.
 */

/* ---------- 1. Re-point the pages' own variables (also on the wrappers that define their own) ---------- */
body.noir-lp, body.noir-lp .biosnack-starter-landing-page, body.noir-lp .biokids-starter-landing-page {
	/* lp-hero-product.css */
	--primary-green: #C9A24B; --primary-light: #D6B25E; --secondary-orange: #C9A24B;
	--bg-cream: #08140F; --bg-light-green: #13291F; --text-dark: #F3EBD7; --text-gray: #E6DFCB; --white: #0E1F17;
	/* curatenie-eco / superfoods / suplimente-naturale */
	--lp-primary: #C9A24B; --lp-primary-dark: #B08A3A; --lp-primary-light: #13291F; --lp-accent: #C9A24B;
	--lp-bg: #08140F; --lp-white: #0E1F17; --lp-text: #F3EBD7; --lp-text-muted: #B9B5A3;
	--lp-border: rgba(201, 162, 75, .45); --lp-radius: 0px; --lp-shadow: none;
	/* biokids / biosnack box */
	--bk-bg: #08140F; --bk-green: #C9A24B; --bk-green-dark: #B08A3A; --bk-mint: #13291F;
	--bk-pink: #C9A24B; --bk-pink-dark: #B08A3A; --bk-text: #F3EBD7; --bk-text-light: #B9B5A3;
}

/* ---------- 2. Base: dark background, Jost text, Marcellus headings, gold accents ---------- */
body.noir-lp #content { background: var(--bg); color: var(--ivory-2); font-family: var(--font-body); }
body.noir-lp #content *:not(svg):not(path):not(i):not([class*="fa-"]) { font-family: var(--font-body); }
body.noir-lp #content :is(h1, h2, h3, h4, h5, .hero-headline, .section-title, .solution-title, .step-title, .ingredient-name,
	.cart-modal-title, .product-slide-name, .related-product-title, .faq-question, [class*="title"]):not(input):not(button) {
	font-family: var(--font-display) !important; font-weight: 400 !important; color: var(--ivory); letter-spacing: 0; text-transform: none;
}
body.noir-lp #content :is(h1, .hero-headline) { line-height: 1.06; }
body.noir-lp #content :is(h1, h2, h3) span, body.noir-lp #content .highlight, body.noir-lp #content .text-highlight { color: var(--gold) !important; background: none !important; -webkit-text-fill-color: currentColor; }
body.noir-lp #content :is(p, li, td, th, label, span, small, div) { border-color: var(--line-soft); }
body.noir-lp #content a { color: var(--gold); }
body.noir-lp #content em, body.noir-lp #content i:not([class]) { font-style: normal; }
body.noir-lp #content strong, body.noir-lp #content b { color: var(--ivory); font-weight: 500; }

/* Every surface: square corners, no drop shadows, gold hairlines */
body.noir-lp #content * { border-radius: 0 !important; box-shadow: none !important; text-shadow: none !important; }
body.noir-lp #content :is(.bio-profile-img, .bio-profile-img img, [class*="avatar"], [class*="avatar"] img, .step-number, .problem-icon, .solution-icon, .cart-modal-close) { border-radius: 50% !important; }

/* Sections and panels */
body.noir-lp #content :is(.hero-single, .hero, [class*="hero-section"], [class*="-hero"]):not(.nr-hero-band) {
	background: var(--bg-hero) !important; border-bottom: 1px solid var(--line-soft); position: relative;
}
body.noir-lp #content .hero-single::before, body.noir-lp #content [class*="-hero"]::before { opacity: .12 !important; filter: grayscale(1); }
body.noir-lp #content :is(.section, section) { background-color: transparent; }
body.noir-lp #content :is(.section-alt, [class*="section-alt"], [class*="bg-light"], [class*="bg-cream"]) { background: var(--bg-hero) !important; border-top: 1px solid var(--line-faint); border-bottom: 1px solid var(--line-faint); }
body.noir-lp #content :is(.product-showcase, .product-price-box, .problem-item, .solution-card, .ingredient-card, .how-to-step, .faq-item,
	.result-item, .related-product-card, .product-slide, .bio-review-item, .trust-badge, .trust-info-section, .partner-logo, .cart-modal,
	[class$="-card"], [class*="-card "], [class$="-box"]:not(.nr-box), [class*="-box "]:not(.nr-box), [class$="-panel"], [class*="-panel "],
	[class$="feature-item"], [class$="benefit-item"], [class*="comparison"] table) {
	background-color: var(--panel) !important; border: 1px solid var(--line) !important; color: var(--ivory-2);
}
body.noir-lp #content :is(.product-price-box, .product-showcase, .cart-modal) { border-color: var(--gold) !important; }
body.noir-lp #content :is(.ingredient-card) { border-left: 2px solid var(--gold) !important; }
body.noir-lp #content :is(.hero-trust-badges, .trust-badges-bar, .hero-benefits) { color: var(--ivory-2); }

/* Product images keep their white backgrounds on an ivory field */
body.noir-lp #content :is(.product-image-main, .product-image-link, .related-product-image-wrapper, .product-slide-image, .product-showcase figure, [class*="product-image"]) {
	background: var(--ivory) !important;
}
body.noir-lp #content :is(.product-image-main, .related-product-image, .product-slide img, [class*="product-image"] img) { mix-blend-mode: multiply; }

/* Text colours */
body.noir-lp #content :is(.hero-subheadline, .section-subtitle, .problem-text, .solution-text, .ingredient-benefit, .step-description, .result-caption,
	.trust-info-text, .faq-answer, .rating-text, .product-stock, [class*="subtitle"], [class*="description"], [class*="-text"]) { color: var(--ivory-2) !important; }
body.noir-lp #content :is(.product-price-current, .product-slide-price, .related-product-price, [class*="price-current"], [class*="price-now"], .price) {
	font-family: var(--font-display) !important; color: var(--gold) !important; font-weight: 400 !important;
}
body.noir-lp #content :is(.product-price-old, del, s) { color: var(--muted) !important; }
body.noir-lp #content :is(.product-save, .product-price-label, .treatment-badge, .hero-eyebrow, .bio-verified-badge, [class*="badge"]:not(.nr-badge):not([class*="badges"]):not(.bio-verified-badge-wrap)) {
	background: transparent !important; color: var(--gold) !important; border: 1px solid var(--gold) !important;
	font-size: 10px !important; letter-spacing: .16em !important; text-transform: uppercase; font-weight: 500 !important; line-height: 1.5 !important;
}
body.noir-lp #content :is(.stars, .bio-stars, .bio-stars-large, .product-rating, .product-slide-rating, .related-product-rating, [class*="stars"]) { color: var(--gold) !important; }
body.noir-lp #content :is(.step-number) { background: transparent !important; color: var(--gold) !important; border: 1px solid var(--gold) !important; font-family: var(--font-display) !important; }

/* Buttons */
body.noir-lp #content :is(.btn-primary, .btn-cta-final, .cart-modal-btn, .related-product-cta, button[type="submit"], [class*="btn-add"], [class*="add-to-cart"], .lp-btn, [class*="btn-primary"]) {
	background: var(--gold) !important; background-image: none !important; color: var(--bg) !important; border: 1px solid var(--gold) !important;
	font-family: var(--font-body) !important; font-size: 12px !important; letter-spacing: .24em !important; text-transform: uppercase !important; font-weight: 500 !important;
	transform: none !important; min-height: 50px;
}
body.noir-lp #content :is(.btn-secondary, [class*="btn-outline"], [class*="btn-secondary"], .cart-modal-btn.secondary) {
	background: transparent !important; color: var(--ivory) !important; border: 1px solid var(--gold) !important;
	font-family: var(--font-body) !important; font-size: 12px !important; letter-spacing: .24em !important; text-transform: uppercase !important; font-weight: 400 !important;
}
body.noir-lp #content :is(.btn-primary, .btn-secondary, .btn-cta-final) :is(svg, i) { color: inherit; fill: currentColor; }

/* Final CTA = the design's gold band */
body.noir-lp #content :is(.cta-final, [class*="cta-final"], [class*="final-cta"]) { background: var(--gold) !important; background-image: none !important; color: var(--bg) !important; }
body.noir-lp #content :is(.cta-final, [class*="final-cta"]) :is(h2, h3, p, .section-title, .section-subtitle, span, li) { color: var(--bg) !important; }
body.noir-lp #content :is(.cta-final, [class*="final-cta"]) :is(.btn-cta-final, .btn-primary, a[class*="btn"]) { background: var(--bg) !important; color: var(--gold) !important; border-color: var(--bg) !important; }

/* FAQ, tables, forms */
body.noir-lp #content .faq-question { color: var(--ivory) !important; background: transparent !important; }
body.noir-lp #content :is(table) { border-collapse: collapse; }
body.noir-lp #content :is(th) { background: var(--panel-2) !important; color: var(--gold) !important; font-weight: 500; letter-spacing: .08em; }
body.noir-lp #content :is(td, th) { border-color: var(--line-faint) !important; color: var(--ivory-2); }
body.noir-lp #content tr:nth-child(even) td { background: rgba(201, 162, 75, .04) !important; }
body.noir-lp #content :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea) {
	background: transparent !important; border: 1px solid var(--line-field) !important; color: var(--ivory) !important;
}

/* Carousels arrows / dots */
body.noir-lp #content :is(.bio-prev, .bio-next, [class*="carousel"] button, [class*="slider"] button, [class*="-arrow"]) { background: var(--panel) !important; border: 1px solid var(--gold) !important; color: var(--gold) !important; }
body.noir-lp #content :is([class*="dot"].active, [class*="dot"][aria-current]) { background: var(--gold) !important; }

/* Add-to-cart modal */
body.noir-lp .cart-modal-overlay { background: rgba(3, 8, 5, .72) !important; }
body.noir-lp .cart-modal { background: var(--panel) !important; color: var(--ivory) !important; border: 1px solid var(--gold) !important; }

/* Inline styles written into the markup (style="…"): neutral greys / whites / greens → Noir */
body.noir-lp #content [style*="background: #fff"], body.noir-lp #content [style*="background:#fff"], body.noir-lp #content [style*="background: white"],
body.noir-lp #content [style*="background: var(--white)"], body.noir-lp #content [style*="background: #f9f9f9"], body.noir-lp #content [style*="background: #f8f9fa"],
body.noir-lp #content [style*="background: #fafafa"], body.noir-lp #content [style*="background: #f0f0f0"], body.noir-lp #content [style*="background-color: #fff"],
body.noir-lp #content [style*="background: #fef"], body.noir-lp #content [style*="background: #f0f"], body.noir-lp #content [style*="background: #e8f"],
body.noir-lp #content [style*="background: linear-gradient(135deg, #f"], body.noir-lp #content [style*="background: #fff3cd"] {
	background: var(--panel) !important; background-image: none !important;
}
body.noir-lp #content [style*="background: var(--primary-green)"], body.noir-lp #content [style*="background: #1e8449"], body.noir-lp #content [style*="background: #27ae60"],
body.noir-lp #content [style*="background: #6c757d"], body.noir-lp #content [style*="background: linear-gradient(135deg, var(--primary"] {
	background: var(--gold) !important; background-image: none !important; color: var(--bg) !important;
}
body.noir-lp #content [style*="border: 1px solid #ddd"], body.noir-lp #content [style*="border: 1px solid #e"], body.noir-lp #content [style*="border-left: 4px solid"] { border-color: var(--line) !important; }
body.noir-lp #content [style*="color: #666"], body.noir-lp #content [style*="color: #888"], body.noir-lp #content [style*="color: #4a4a4a"], body.noir-lp #content [style*="color: var(--text-gray)"],
body.noir-lp #content [style*="color: #6c757d"], body.noir-lp #content [style*="color: #6b7280"], body.noir-lp #content [style*="color: #374151"], body.noir-lp #content [style*="color: #2c3e50"],
body.noir-lp #content [style*="color: #856404"] { color: var(--ivory-2) !important; }
body.noir-lp #content [style*="color: green"], body.noir-lp #content [style*="color: var(--primary-green)"], body.noir-lp #content [style*="color: #1e8449"],
body.noir-lp #content [style*="color: #27ae60"], body.noir-lp #content [style*="color: #059669"] { color: var(--gold) !important; }
body.noir-lp #content [style*="color: white"], body.noir-lp #content [style*="color: #fff"] { color: var(--ivory) !important; }

/* Breadcrumb component */
body.noir-lp .sbomart-breadcrumb-wrapper.lp-custom-breadcrumb { background: transparent !important; border-bottom: 1px solid var(--line-soft); }
body.noir-lp .lp-custom-breadcrumb, body.noir-lp .lp-custom-breadcrumb a { color: var(--muted) !important; font-size: 12px !important; letter-spacing: .2em; text-transform: uppercase; }
body.noir-lp .lp-custom-breadcrumb .breadcrumb-separator { color: var(--muted) !important; }

/* Order pages (thank-you, view order, order guide): purple/green themes → Noir */
body.noir-lp #content [style*="#667eea"], body.noir-lp #content [style*="#764ba2"] { background: var(--panel-2) !important; background-image: none !important; color: var(--ivory) !important; border-color: var(--gold) !important; }
body.noir-lp #content :is(.order-header, .order-hero, [class*="order-success"], [class*="thank"]) { background: var(--bg-hero) !important; background-image: none !important; color: var(--ivory) !important; border: 1px solid var(--line) !important; }
body.noir-lp #content :is(.order-details, .order-summary, .order-items, [class*="order-"]) { color: var(--ivory-2); }

@media (max-width: 900px) {
	body.noir-lp #content :is(h1, .hero-headline) { font-size: clamp(34px, 9vw, 46px) !important; }
	body.noir-lp #content :is(h2, .section-title) { font-size: clamp(28px, 7.5vw, 36px) !important; }
}

/* Components: reviews widget, delivery/payment box, FBT, brand slider */
body.noir-lp #content :is(.bio-widget-container, .trust-info-section, .bio-reviews-widget, .frequently-bought-together .fbt-wrapper) { background: var(--panel) !important; border: 1px solid var(--line) !important; }
body.noir-lp #content .bio-review-item, body.noir-lp #content .bio-review-inner { background: var(--bg) !important; }
body.noir-lp #content :is(.bio-reviewer-name, .bio-rating-text, .bio-rating-large, .fbt-product-name, .fbt-total-label) { color: var(--ivory) !important; }
body.noir-lp #content :is(.bio-review-date, .bio-review-product) { color: var(--muted) !important; }
body.noir-lp #content .bio-review-content { color: var(--ivory-2) !important; }
body.noir-lp #content :is(h6, .trust-info-text h6) { font-family: var(--font-body) !important; color: var(--ivory-2) !important; font-weight: 300 !important; line-height: 1.7; }
body.noir-lp #content :is(.payment-methods-logos, .shipping-methods-logos) { background: var(--ivory) !important; padding: 14px 18px !important; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
body.noir-lp #content :is(.fbt-total-price, .fbt-product-price) { font-family: var(--font-display) !important; color: var(--gold) !important; }
body.noir-lp #content .fbt-savings { color: var(--gold) !important; border: 1px solid var(--gold) !important; background: transparent !important; }

/* Text sitting on a gold surface is dark */
body.noir-lp #content :is([style*="background: linear-gradient(135deg, var(--primary"], [style*="background: var(--primary-green)"], [style*="background: #1e8449"], [style*="background: #27ae60"]) :is(*, p, span, strong, em, h3, h4) { color: var(--bg) !important; }
body.noir-lp #content [style*="background: linear-gradient(135deg, var(--primary"] { color: var(--bg) !important; }

/* Status colours in comparison tables: softer on dark */
body.noir-lp #content [style*="color: red"], body.noir-lp #content [style*="color: #e74c3c"], body.noir-lp #content [style*="color: #dc3545"] { color: #E3A090 !important; }
body.noir-lp #content [style*="color: orange"], body.noir-lp #content [style*="color: #ffa500"], body.noir-lp #content [style*="color: #f39c12"] { color: #D9B977 !important; }

/* Showcase product photo: white field, no blending into the panel */
body.noir-lp #content .product-showcase img, body.noir-lp #content .hero-product img { background: var(--ivory); mix-blend-mode: normal !important; padding: 12px; box-sizing: border-box; }

/* Gold statement boxes (empathy-box etc.): the design's gold surface with dark text */
body.noir-lp #content .empathy-box { background: var(--gold) !important; background-image: none !important; border: 0 !important; color: var(--bg) !important; }
body.noir-lp #content .empathy-box * { color: var(--bg) !important; }
/* Pages end with the gold CTA band — the footer follows directly */
body.noir-lp .nr-footer { margin-top: 0; }

/* BioSnack / BioKids (bk-*) */
body.noir-lp #content :is(.bk-hero-cta, .bk-pricing-card.featured .bk-pricing-btn) { background: var(--gold) !important; color: var(--bg) !important; border: 1px solid var(--gold) !important; font-size: 12px !important; letter-spacing: .24em !important; text-transform: uppercase !important; font-weight: 500 !important; padding: 16px 32px !important; }
body.noir-lp #content .bk-pricing-btn { background: transparent !important; color: var(--ivory) !important; border: 1px solid var(--gold) !important; font-size: 12px !important; letter-spacing: .24em !important; text-transform: uppercase !important; }
body.noir-lp #content .bk-pricing-badge { background: var(--gold) !important; background-image: none !important; color: var(--bg) !important; }
body.noir-lp #content :is(.bk-pricing-price, .bk-product-card-price, .bk-pricing-value strong) { font-family: var(--font-display) !important; color: var(--gold) !important; }
body.noir-lp #content .bk-pricing-savings { background: transparent !important; color: var(--gold) !important; border: 1px solid var(--gold) !important; }
body.noir-lp #content .bk-product-card-img { background: var(--ivory) !important; }
body.noir-lp #content .bk-trust-badge { background: transparent !important; color: var(--gold) !important; border: 1px solid var(--gold) !important; }
body.noir-lp #content [class*="bk-"] :is(h2, h3) { color: var(--ivory) !important; }
body.noir-lp #content td:first-child { color: var(--ivory) !important; }
body.noir-lp #content [style*="#4CAF50"], body.noir-lp #content [style*="#4caf50"], body.noir-lp #content [style*="color: #2e7d32"] { color: var(--gold) !important; }
body.noir-lp #content td { color: var(--ivory-2); }

/* Curățenie Eco / Superfoods / Suplimente naturale (lp-* pages) */
body.noir-lp #content :is(.lp-cta-btn, .lp-add-to-cart, .lp-footer-cta a, .lp-footer-cta .lp-cta-btn) {
	background: var(--gold) !important; color: var(--bg) !important; border: 1px solid var(--gold) !important;
	font-size: 12px !important; letter-spacing: .24em !important; text-transform: uppercase !important; font-weight: 500 !important;
}
body.noir-lp #content .lp-footer-cta { background: var(--gold) !important; background-image: none !important; color: var(--bg) !important; }
body.noir-lp #content .lp-footer-cta :is(h2, h3, p, span) { color: var(--bg) !important; }
body.noir-lp #content .lp-footer-cta :is(a, .lp-cta-btn) { background: var(--bg) !important; color: var(--gold) !important; border-color: var(--bg) !important; }
body.noir-lp #content :is(.lp-product-card .lp-product-name, .lp-product-card h3) { color: var(--ivory) !important; font-family: var(--font-display) !important; font-weight: 400 !important; }
body.noir-lp #content :is([class*="badges"], [class*="-badge-row"], [class*="trust-row"]) { border: 0 !important; background: transparent !important; }

/* Slider / grid product photos: white field, no blending */
body.noir-lp #content :is(.product-slide, .related-product-card, .lp-product-card, .bk-product-card) img { background: var(--ivory); mix-blend-mode: normal !important; }

/* ---------- Thank-you page (order-received) and "view order" (lp/page-order-*-lp.php) ---------- */
body.noir-lp #content :is(.order-content, .content-section) { background: transparent !important; color: var(--ivory-2) !important; border-color: var(--line) !important; }
body.noir-lp #content :is(.gradient-header, .order-header) { background: var(--bg-hero) !important; background-image: none !important; border: 1px solid var(--line) !important; color: var(--ivory) !important; }
body.noir-lp #content :is(.gradient-header, .order-header) :is(h1, p) { color: var(--ivory) !important; }
body.noir-lp #content :is(.gradient-header, .order-header) h1 { font-size: 52px !important; }
body.noir-lp #content :is(.gradient-header, .order-header) svg, body.noir-lp #content :is(.gradient-header, .order-header) [class*="icon"] { color: var(--gold) !important; stroke: var(--gold) !important; border-color: var(--gold) !important; }
body.noir-lp #content :is(.order-number, .order-status) { background: transparent !important; color: var(--gold) !important; border: 1px solid var(--gold) !important; letter-spacing: .14em; }
body.noir-lp #content :is(.detail-card, .address-card) { background: var(--panel) !important; border: 1px solid var(--line) !important; }
body.noir-lp #content :is(.detail-card .label) { color: var(--gold) !important; font-size: 11px !important; letter-spacing: .24em !important; text-transform: uppercase; font-weight: 500 !important; }
body.noir-lp #content :is(.detail-card .value, .address-card .address-content, .address-card strong) { color: var(--ivory) !important; }
body.noir-lp #content :is(.address-card h3, .section-title) { color: var(--ivory) !important; font-family: var(--font-display) !important; font-weight: 400 !important; }
body.noir-lp #content :is(.products-table, .totals-table) { background: transparent !important; }
body.noir-lp #content .products-table th { background: transparent !important; color: var(--gold) !important; border-bottom: 1px solid var(--line) !important; font-size: 11px !important; letter-spacing: .24em; text-transform: uppercase; }
body.noir-lp #content :is(.products-table td, .products-table tbody tr, .totals-table tr td) { background: transparent !important; color: var(--ivory-2) !important; border-color: var(--line-faint) !important; }
body.noir-lp #content :is(.product-name) { color: var(--ivory) !important; font-family: var(--font-display) !important; }
body.noir-lp #content .product-meta { color: var(--muted) !important; }
body.noir-lp #content .product-image { background: var(--ivory) !important; border: 1px solid var(--line-soft) !important; }
body.noir-lp #content :is(.products-table td:last-child, .totals-table tr:last-child td:last-child) { color: var(--gold) !important; font-family: var(--font-display) !important; }
body.noir-lp #content .totals-table tr:last-child td { border-top: 1px solid var(--line) !important; font-size: 22px !important; }

/* Order guide (/ghid/…) */
body.noir-lp #content :is(.guide-page) { background: transparent !important; color: var(--ivory-2) !important; }
body.noir-lp #content :is(.guide-header, .guide-footer) { background: var(--bg-hero) !important; background-image: none !important; border: 1px solid var(--line) !important; color: var(--ivory) !important; }
body.noir-lp #content :is(.guide-header, .guide-footer, .guide-error, .products-section, .analysis-section) :is(h1, h2, h3, h4) { color: var(--ivory) !important; }
body.noir-lp #content :is(.analysis-section p, .contact-info p, .guide-footer p, .guide-error p) { color: var(--ivory-2) !important; }
body.noir-lp #content :is(.guide-footer .btn-shop, .guide-error .btn-primary) { background: var(--gold) !important; color: var(--bg) !important; border: 0 !important; }
body.noir-lp #content .contact-info { background: var(--panel) !important; border: 1px solid var(--line) !important; }
body.noir-lp #content .address-card h3 { background: var(--panel-2) !important; border-bottom: 1px solid var(--line) !important; color: var(--gold) !important; font-size: 18px !important; }
