/*!
Theme Name: Bilal Fruits
Theme URI: 
Author: Bilal Fruits
Author URI: 
Description: Custom WooCommerce theme for Bilal Fruits — Vercel design (dark green #1B4332, lime #A7F040, cream #FAFAF2, Poppins). Light/dark toggle included. Mobile-first: mobile feels like a mobile app, desktop like a professional organised website. Built from Underscores.
Version: 1.0.8
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: bilal-fruits
Tags: e-commerce, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   BILAL FRUITS — Vercel theme tokens (v1.3.0)
   Dark green #1B4332 — hero, headings, buttons
   Cream      #FAFAF2 — page background
   Lime       #A7F040 — accent, primary buttons
   Marquee    #D3FF2C — scrolling strips
   WhatsApp   #25D366 — WhatsApp buttons
   Price red  #E53935 — sale prices, SALE badge
   Orange     #FF6D37 — CTA gradient, accent words
   Footer     #0D1F18 — very dark green
   The old maroon/gold variable NAMES are kept (they are used across
   the stylesheet) but now hold the Vercel palette, so the whole site
   shifts at once.
   ============================================================ */
:root {
	--maroon: #1b4332;
	--maroon-deep: #0d1f18;
	--maroon-soft: #214a32;
	--cream: #fafaf2;
	--cream-soft: #ffffff;
	--cream-line: #e7e7d8;
	--gold: #a7f040;
	--gold-dark: #8fd62e;
	--ink: #33413a;
	--muted: #6b7a70;
	--white: #ffffff;
	--vf-red: #e53935;
	--vf-orange: #ff6d37;
	--vf-orange-2: #ff975a;
	--vf-wa: #25d366;
	--vf-marquee: #d3ff2c;
	--vf-star: #ffc107;
	--shadow-1: 0 1px 2px rgba(27, 67, 50, .08), 0 4px 14px rgba(27, 67, 50, .07);
	--shadow-2: 0 2px 4px rgba(27, 67, 50, .08), 0 12px 32px rgba(27, 67, 50, .14);
	--radius: 24px;
	--font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; color: var(--maroon); }
p { margin: 0; }
button { font: inherit; }

.container, .wrap { max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.site-main { min-height: 40vh; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto;
	padding: 10px 16px; background: var(--gold); color: var(--maroon); clip: auto;
}
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible {
	outline: 2px solid var(--gold); outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn, .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
	transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.btn-primary, .woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce input.button.alt, .woocommerce #respond input#submit.alt {
	background: var(--gold); color: var(--maroon) !important; box-shadow: var(--shadow-1);
}
.btn-primary:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
	background: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-2);
}
.btn-ghost, .woocommerce a.button, .woocommerce button.button {
	background: transparent; border-color: var(--maroon); color: var(--maroon) !important;
}
.btn-ghost:hover, .woocommerce a.button:hover, .woocommerce button.button:hover {
	background: var(--maroon); color: #fff !important;
}
.woocommerce a.button.checkout-button { background: var(--gold); color: #fff !important; border-color: transparent; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 200;
	background: #fafaf2; color: #1b4332;
	border-bottom: 1px solid #e7e7d8;
}
.site-header-inner {
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
	padding-top: 14px; padding-bottom: 14px;
}
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.logo-mark {
	width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
	background: transparent; display: grid; place-items: center; box-shadow: none;
}
.logo-mark img { width: 100%; height: 100%; border-radius: 50%; display: block; object-fit: cover; }
.logo-text {
	line-height: 1.15; font-family: var(--font-display); font-size: 22px; font-weight: 800; color: #1b4332;
}
.logo-text small {
	display: block; font-family: var(--font-body); font-size: 11px; font-weight: 600;
	letter-spacing: .14em; text-transform: uppercase; color: #6b7a70;
}
.custom-logo { max-height: 56px; width: auto; }
.main-navigation { margin-left: auto; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-navigation a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
	color: #1b4332; text-decoration: none; font-weight: 600; border-radius: 999px;
	transition: background-color .25s ease, color .25s ease;
}
.main-navigation a:hover, .main-navigation a:focus-visible {
	background: #eef0e6; color: #1b4332; outline: none;
}
.main-navigation .current-menu-item > a, .main-navigation .current_page_item > a {
	background: #e6ece0; color: #1b4332;
}
.menu-toggle {
	display: none; background: transparent; border: 1px solid #c9d2c2;
	color: #1b4332; border-radius: 999px; padding: 10px 18px; cursor: pointer; min-height: 44px;
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 44px; min-height: 44px; padding: 10px; border-radius: 999px;
	border: 1px solid #d8ddd0; background: transparent; color: #1b4332;
	text-decoration: none; cursor: pointer; position: relative;
	transition: background-color .25s ease, transform .25s ease;
}
.icon-btn:hover { background: #eef0e6; transform: translateY(-2px); }
.cart-count {
	min-width: 24px; height: 24px; border-radius: 999px; background: #e53935; color: #fff;
	display: inline-grid; place-items: center; font-size: 13px; padding: 0 6px; font-weight: 700;
}
.header-search { padding-bottom: 14px; }
.header-search input[type="search"] {
	width: 100%; min-height: 48px; border-radius: 999px; border: 2px solid var(--cream-line);
	padding: 10px 18px; font: inherit; background: var(--cream-soft); color: var(--ink);
}

/* ---------- Header pills: Sign in + WhatsApp Us ---------- */
.bf-vf-signin {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px;
	border-radius: 999px; background: #fff; color: #1b4332; font-weight: 700; font-size: 15px;
	text-decoration: none; border: 1px solid #e3e3d8; box-shadow: 0 1px 3px rgba(27, 67, 50, .12);
}
.bf-vf-signin:hover { box-shadow: var(--shadow-1); }
.bf-vf-wa-us {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px;
	border-radius: 999px; background: #25d366; color: #fff; font-weight: 700; font-size: 15px;
	text-decoration: none;
}
.bf-vf-wa-us:hover { background: #1da851; color: #fff; }

/* ==========================================================================
 * Bilal Fruits v1.3.0 — Vercel design
 * Dark green #1B4332, lime #A7F040, marquee lime #D3FF2C, cream #FAFAF2,
 * WhatsApp green #25D366, price red #E53935, orange CTA #FF6D37→#FF975A,
 * footer #0D1F18, Poppins (one family, 400–800). The HMB Fresh Fruit
 * Vercel site's layout, rebuilt for this store with live data.
 * ========================================================================== */

/* ---------- Lime marquee (top of page + hero bottom) ---------- */
.bf-vf-marquee { background: #d3ff2c; color: #1b4332; overflow: hidden; padding: 9px 0; }
.bf-vf-marquee-track { display: flex; width: max-content; animation: bf-vf-marquee 30s linear infinite; }
.bf-vf-marquee-group { display: flex; align-items: center; }
.bf-vf-marquee-item { padding: 0 16px; font-weight: 700; font-size: 14px; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.bf-vf-marquee-star { color: #1b4332; }
@keyframes bf-vf-marquee { to { transform: translateX(-50%); } }
.bf-vf-marquee-hero { padding: 12px 0; }

/* ---------- Hero ---------- */
.bf-vf-hero { background: linear-gradient(100deg, #1b4332 0%, #1e4a36 60%, #214a32 100%); color: #fff; border-radius: 0 0 28px 28px; overflow: hidden; }
.bf-vf-hero-inner { display: grid; grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 56px; align-items: center; }
.bf-vf-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #22523e; color: #a7f040; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-radius: 999px; padding: 8px 16px; margin: 0 0 20px; }
.bf-vf-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: #a7f040; }
.bf-vf-hero h1 { color: #fff; font-size: clamp(38px, 6vw, 62px); line-height: 1.08; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.bf-vf-hero h1 em { font-style: normal; color: #a7f040; }
.bf-vf-hero-lede { color: rgba(255, 255, 255, .85); font-size: 18px; max-width: 520px; margin: 18px 0 26px; }
.bf-vf-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.bf-vf-btn-lime { background: #a7f040; color: #1b4332 !important; border-color: transparent; }
.bf-vf-btn-lime:hover { background: #8fd62e; color: #1b4332 !important; transform: translateY(-2px); }
.bf-vf-btn-outline { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .6); }
.bf-vf-btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff !important; transform: translateY(-2px); }
.bf-vf-btn-white { background: #fff; color: #1b4332 !important; border-color: transparent; }
.bf-vf-btn-white:hover { background: #f0f0e8; transform: translateY(-2px); }

/* ---------- Hero visual: mango + orbiting fruit ring ---------- */
.bf-vf-hero-visual { display: flex; justify-content: center; }
.bf-vf-orbit { position: relative; width: min(520px, 92vw); aspect-ratio: 1 / 1; --orbit-r: clamp(150px, 24vw, 235px); }
.bf-vf-orbit-logo { position: absolute; top: 50%; left: 50%; width: 58%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); object-fit: cover; object-position: 50% 50%; border-radius: 50%; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.bf-vf-orbit-ring { position: absolute; inset: 0; animation: bf-vf-orbit 70s linear infinite; }
@keyframes bf-vf-orbit { to { transform: rotate(360deg); } }
.bf-vf-orbit-item { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; transform: rotate(var(--a)) translateY(calc(var(--orbit-r) * -1)) rotate(calc(var(--a) * -1)); }
.bf-vf-orbit-upright { display: block; animation: bf-vf-orbit-rev 70s linear infinite; }
@keyframes bf-vf-orbit-rev { to { transform: rotate(-360deg); } }
.bf-vf-orbit-bob { display: block; font-size: 30px; line-height: 46px; text-align: center; animation: bf-vf-bob 3s ease-in-out infinite alternate; }
@keyframes bf-vf-bob { from { transform: translateY(-7px); } to { transform: translateY(7px); } }
.bf-vf-rating { position: absolute; right: 0; bottom: 4%; z-index: 3; display: flex; gap: 10px; align-items: center; background: rgba(13, 31, 24, .72); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); border-radius: 16px; padding: 12px 16px; box-shadow: 0 12px 32px rgba(0, 0, 0, .3); }
.bf-vf-rating-star { color: #ffc107; font-size: 22px; line-height: 1; }
.bf-vf-rating strong { display: block; color: #fff; font-size: 15px; line-height: 1.3; }
.bf-vf-rating span span { display: block; color: rgba(255, 255, 255, .72); font-size: 13px; line-height: 1.3; }

/* ---------- Guarantee strip ---------- */
.bf-vf-guarantee { background: #2c5233; color: #fff; padding: 18px 0; }
.bf-vf-guarantee-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: center; align-items: center; }
.bf-vf-guarantee-inner > span { font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

/* ---------- Promo banner ---------- */
.bf-vf-promo { padding: 40px 0 0; }
.bf-vf-promo-inner { position: relative; overflow: hidden; background: linear-gradient(120deg, #1b4332, #214a32); color: #fff; border-radius: 24px; padding: 40px 28px; text-align: center; box-shadow: var(--shadow-2); }
.bf-vf-promo-emoji { position: absolute; font-size: 72px; opacity: .14; line-height: 1; }
.bf-vf-promo-emoji:nth-of-type(1) { left: -12px; top: -16px; transform: rotate(-18deg); }
.bf-vf-promo-emoji:nth-of-type(2) { right: -8px; top: -10px; transform: rotate(14deg); }
.bf-vf-promo-emoji:nth-of-type(3) { left: 6%; bottom: -20px; transform: rotate(10deg); }
.bf-vf-promo-emoji:nth-of-type(4) { right: 8%; bottom: -18px; transform: rotate(-12deg); }
.bf-vf-promo-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #a7f040; margin: 0 0 8px; }
.bf-vf-promo h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); margin: 0 0 8px; }
.bf-vf-promo p { color: rgba(255, 255, 255, .85); margin: 0 0 20px; }

/* ---------- Sections ---------- */
.bf-vf-section { padding: 56px 0; }
.bf-vf-section[id] { scroll-margin-top: 128px; }
.bf-vf-head { max-width: 640px; margin-bottom: 28px; }
.bf-vf-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bf-vf-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin: 8px 0 10px; }
.bf-vf-head h2 em { font-style: normal; color: #ff6d37; }
#how-it-works .bf-vf-head h2 em { color: #2e7d32; }
.bf-vf-head p { color: var(--muted); }
.bf-vf-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.bf-vf-see-all { color: #e53935; font-weight: 700; text-decoration: none; white-space: nowrap; }
.bf-vf-see-all:hover { text-decoration: underline; }

/* ---------- Browse by Categories ---------- */
.bf-vf-cat-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.bf-vf-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; }
.bf-vf-pill-dark { background: #1b4332; color: #fff; }
.bf-vf-pill-dark:hover { background: #0d1f18; color: #fff; }
.bf-vf-pill-light { background: var(--white); color: #1b4332; border: 1px solid var(--cream-line); box-shadow: var(--shadow-1); }
.bf-vf-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bf-vf-cat-card { background: var(--white); border: 1px solid var(--cream-line); border-radius: 24px; padding: 24px 18px; text-align: center; text-decoration: none; box-shadow: var(--shadow-1); display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .25s ease, box-shadow .25s ease; }
.bf-vf-cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.bf-vf-cat-icon { font-size: 40px; line-height: 1; }
.bf-vf-cat-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--maroon); }
.bf-vf-cat-count { font-size: 13px; color: var(--muted); }

/* ---------- Today's Fresh Picks grid ---------- */
.bf-vf-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* ---------- Four Easy Steps ---------- */
.bf-vf-steps { display: grid; grid-template-columns: 1fr; gap: 16px; }
.bf-vf-step { background: var(--white); border: 1px solid var(--cream-line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-1); }
.bf-vf-step-no { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.bf-vf-step-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #eef7e6; font-size: 26px; margin-bottom: 14px; }
.bf-vf-step h3 { font-size: 20px; margin: 0 0 8px; }
.bf-vf-step p { color: var(--muted); }

/* ---------- Our Freshness Promise ---------- */
.bf-vf-promise { display: grid; grid-template-columns: 1fr; gap: 16px; }
.bf-vf-promise-main { background: var(--white); border: 1px solid var(--cream-line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-1); }
.bf-vf-promise-emoji { font-size: 48px; line-height: 1; display: block; margin-bottom: 14px; }
.bf-vf-promise-main h3 { color: #2e7d32; font-size: 22px; margin: 0 0 8px; }
.bf-vf-promise-main p { color: var(--muted); }
.bf-vf-promise-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.bf-vf-promise-card { background: var(--white); border: 1px solid var(--cream-line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-1); }
.bf-vf-promise-card > span { font-size: 28px; line-height: 1; display: block; margin-bottom: 10px; }
.bf-vf-promise-card h3 { font-size: 18px; margin: 0 0 6px; }
.bf-vf-promise-card p { color: var(--muted); font-size: 15px; }

/* ---------- Orange CTA band ---------- */
.bf-vf-cta { padding: 0 0 64px; }
.bf-vf-cta-inner { position: relative; overflow: hidden; background: linear-gradient(100deg, #ff6d37, #ff975a); color: #fff; border-radius: 24px; padding: 48px 28px; text-align: center; box-shadow: var(--shadow-2); }
.bf-vf-cta-emoji { position: absolute; font-size: 64px; opacity: .18; line-height: 1; }
.bf-vf-cta-emoji:nth-of-type(1) { left: -10px; top: -12px; transform: rotate(-16deg); }
.bf-vf-cta-emoji:nth-of-type(2) { right: -6px; top: -8px; transform: rotate(12deg); }
.bf-vf-cta-emoji:nth-of-type(3) { left: 8%; bottom: -16px; transform: rotate(8deg); }
.bf-vf-cta-emoji:nth-of-type(4) { right: 10%; bottom: -14px; transform: rotate(-10deg); }
.bf-vf-cta h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; }
.bf-vf-cta p { color: rgba(255, 255, 255, .92); margin: 0 auto 22px; max-width: 560px; }
.bf-vf-cta-note { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .85) !important; margin: 18px 0 0 !important; }

/* ---------- Footer (centred, very dark green) ---------- */
.site-footer { background: #0d1f18; color: #f2f5ef; padding: 48px 0 32px; border-top: none; }
.bf-vf-footer-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.bf-vf-footer-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 16px; }
.bf-vf-footer-logo .logo-mark { width: 44px; height: 44px; flex: 0 0 44px; background: transparent; box-shadow: none; }
.bf-vf-footer-logo .logo-mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.bf-vf-footer-logo .logo-text { color: #fff; }
.bf-vf-footer-sub { color: rgba(242, 245, 239, .75); margin: 0 auto 20px; max-width: 560px; }
.bf-vf-footer-social { margin: 0 0 16px; }
.bf-vf-footer-social a { color: #fff; font-weight: 700; text-decoration: none; }
.bf-vf-footer-social a:hover { color: #a7f040; }
.bf-vf-footer-links { margin: 0 0 20px; font-size: 14px; }
.bf-vf-footer-links a { color: rgba(242, 245, 239, .85); text-decoration: none; }
.bf-vf-footer-links a:hover { color: #a7f040; text-decoration: underline; }
.bf-vf-footer-links span { margin: 0 8px; color: rgba(242, 245, 239, .4); }
.bf-vf-footer-copy { color: rgba(242, 245, 239, .6); font-size: 14px; margin: 0 0 6px; }
.bf-vf-footer-addr { color: rgba(242, 245, 239, .6); font-size: 14px; margin: 0; }

/* ---------- Floating WhatsApp button ---------- */
.bf-vf-float-wa { position: fixed; right: 18px; bottom: 18px; z-index: 400; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); text-decoration: none; transition: transform .2s ease; }
.bf-vf-float-wa:hover { transform: scale(1.08); color: #fff; }

/* ---------- Product cards (Vercel) ---------- */
.woocommerce ul.products { margin: 0; padding: 0; list-style: none; }
.woocommerce div.product { position: relative; }
.woocommerce .star-rating { color: #ffc107; }
.woocommerce ul.products li.product.bf-vf-card { background: var(--white); border: 1px solid var(--cream-line); border-radius: 24px; padding: 0; box-shadow: var(--shadow-1); display: flex; flex-direction: column; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.woocommerce ul.products li.product.bf-vf-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.woocommerce ul.products li.product.bf-vf-card .bf-vf-card-media { display: block; position: relative; text-decoration: none; background: var(--cream-soft); }
.woocommerce ul.products li.product.bf-vf-card .bf-vf-card-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; border-radius: 0; background: var(--cream-soft); display: block; }
.bf-vf-badge { position: absolute; z-index: 3; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; line-height: 1.6; color: #fff; }
.bf-vf-badge-sale { top: 12px; left: 12px; background: #e53935; }
.bf-vf-badge-best { top: 12px; right: 12px; background: #f97316; }
.bf-vf-card-body { display: flex; flex-direction: column; padding: 16px 16px 18px; flex: 1 1 auto; }
.bf-vf-card-cat { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.bf-vf-card-name { font-family: var(--font-display); font-size: 18px; line-height: 1.3; margin: 0 0 8px; }
.bf-vf-card-name a { color: var(--maroon); text-decoration: none; }
.bf-vf-card-name a:hover { text-decoration: underline; }
.bf-vf-card-price { font-size: 20px; font-weight: 800; margin: 0 0 2px; }
.bf-vf-card-price .bf-vf-price-now, .bf-vf-card-price .amount { color: #e53935; }
.bf-vf-card-price del { color: var(--muted); font-weight: 400; font-size: 15px; margin-right: 6px; }
.bf-vf-card-price ins { text-decoration: none; }
.bf-vf-card-unit { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin: 0 0 12px; }

/* Variation expander: arrow button opens the weights on the same card. */
.bf-vf-variations { margin: 0 0 12px; }
.bf-vf-var-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--cream-line); background: var(--cream-soft); color: var(--maroon); font-weight: 700; font-size: 14px; cursor: pointer; }
.bf-vf-var-toggle:hover { border-color: var(--maroon); }
.bf-vf-var-arrow { font-size: 18px; line-height: 1; transition: transform .25s ease; }
.bf-vf-var-toggle-on .bf-vf-var-arrow { transform: rotate(180deg); }
.bf-vf-var-panel { margin-top: 8px; border: 1px solid var(--cream-line); border-radius: 14px; overflow: hidden; }
.bf-vf-var-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 14px; border: none; border-bottom: 1px solid var(--cream-line); background: var(--white); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; text-align: left; }
.bf-vf-var-row:last-child { border-bottom: none; }
.bf-vf-var-row:hover { background: var(--cream); }
.bf-vf-var-row-on { background: #eef7e6; }
.bf-vf-var-label { font-weight: 700; }
.bf-vf-var-price { font-weight: 700; color: #e53935; white-space: nowrap; }
.bf-vf-var-price del { color: var(--muted); font-weight: 400; font-size: 13px; margin-right: 4px; }

/* Add to Cart + Ask on WhatsApp + Out of stock. */
.bf-vf-add { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 999px; background: #1b4332; color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none; border: none; cursor: pointer; margin-top: auto; transition: transform .25s ease, background-color .25s ease; }
.bf-vf-add:hover { background: #0d1f18; transform: translateY(-2px); color: #fff !important; }
.bf-vf-add.loading { opacity: .7; }
.bf-vf-oos { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 999px; background: var(--cream-line); color: var(--maroon); font-weight: 700; font-size: 15px; margin-top: auto; }
.bf-vf-wa { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; color: #1da851; font-weight: 700; font-size: 14px; text-decoration: none; }
.bf-vf-wa:hover { text-decoration: underline; color: #128c4a; }
.bf-vf-wa svg { flex: 0 0 auto; }

/* ---------- Single product: Ask on WhatsApp + freshness note ---------- */
.bf-vf-wa-single { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: #1da851; font-weight: 700; font-size: 15px; text-decoration: none; }
.bf-vf-wa-single:hover { text-decoration: underline; color: #128c4a; }
.bf-vf-fresh-note { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ---------- WooCommerce: shop / archive ---------- */
.woocommerce-breadcrumb { color: var(--muted); font-size: 14px; margin: 24px 0 8px; }
.woocommerce-breadcrumb a { color: var(--maroon); font-weight: 600; text-decoration: none; }
.woocommerce-products-header__title, .woocommerce .page-title, .entry-title {
	font-size: clamp(30px, 5vw, 44px); color: var(--maroon); margin: 8px 0 12px;
}
.term-description p, .woocommerce-products-header p { color: var(--muted); }
.woocommerce .woocommerce-result-count { color: var(--muted); }
.woocommerce .woocommerce-ordering select, .woocommerce-ordering select {
	min-height: 44px; border-radius: 999px; border: 2px solid var(--cream-line);
	padding: 8px 14px; font: inherit; background: var(--cream-soft); color: var(--ink);
}
.woocommerce ul.products.columns-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.woocommerce ul.products.columns-4::before, .woocommerce ul.products.columns-4::after { display: none; }
/* Fallback grid for any other WC product list (related, upsells, cross-sells).
   Rails are excluded — they scroll horizontally on mobile. */
.woocommerce ul.products:not(.bf-rail):not(.bf-vf-picks) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.woocommerce nav.woocommerce-pagination ul {
	border: none; display: flex; flex-wrap: wrap; justify-content: center;
	list-style: none; margin: 0; padding: 0;
}
.woocommerce nav.woocommerce-pagination ul li { border: none; margin: 0 2px; list-style: none; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
	border-radius: 999px; min-width: 44px; min-height: 44px; display: inline-flex;
	align-items: center; justify-content: center; padding: 8px 12px; color: var(--maroon); font-weight: 700;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--maroon); color: #fff; }
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--cream); }
.woocommerce .woocommerce-no-products-found { background: var(--cream-soft); border: 1px solid var(--cream-line); border-radius: var(--radius); padding: 24px; }

/* ---------- WooCommerce: notices / messages ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	background: var(--cream-soft); border: 1px solid var(--cream-line); border-top: 3px solid var(--maroon);
	color: var(--ink); border-radius: 12px; padding: 16px 20px 16px 54px;
}
/* v1.0.3 (test #9): the WooCommerce icon-font ::before glyph rendered
   as a stray line through the text (this theme does not load that
   font). Replace it with a plain CSS circle badge. */
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
	content: "i"; font-family: inherit; font-weight: 800; font-size: 15px; line-height: 24px; text-align: center;
	position: absolute; top: 50%; left: 16px; transform: translateY(-50%);
	width: 24px; height: 24px; border-radius: 50%; background: var(--maroon); color: #fff;
}
.woocommerce-message::before { content: "\2713"; }
.woocommerce-error { border-top-color: #e53935; }
.woocommerce-error::before { content: "!"; background: #e53935; color: #fff; }

/* ---------- WooCommerce: single product ---------- */
.woocommerce div.product { margin-top: 24px; }
.woocommerce div.product .woocommerce-product-gallery { margin-bottom: 24px; }
.woocommerce div.product .woocommerce-product-gallery img { border-radius: var(--radius); }
.woocommerce div.product .product_title { font-size: clamp(28px, 4vw, 40px); }
.woocommerce div.product p.price, .woocommerce div.product span.price {
	color: var(--vf-red); font-size: 28px; font-weight: 800;
}
.woocommerce div.product p.price del, .woocommerce div.product span.price del {
	color: var(--muted); font-size: 19px; font-weight: 400;
}
.woocommerce div.product p.price ins, .woocommerce div.product span.price ins { text-decoration: none; }
.woocommerce div.product .woocommerce-product-details__short-description p { color: var(--muted); }
.woocommerce div.product form.cart { margin: 20px 0; }
.woocommerce div.product form.cart .button.single_add_to_cart_button {
	background: var(--maroon); color: #fff !important; border-color: transparent; min-height: 52px;
}
.woocommerce div.product form.cart .button.single_add_to_cart_button:hover { background: var(--maroon-deep); }
.woocommerce .quantity .qty {
	min-height: 52px; border-radius: 12px; border: 2px solid var(--cream-line);
	padding: 8px 12px; font: inherit; background: #fff; width: 4.5em; text-align: center;
}
.bf-qty-wrap { display: inline-flex; align-items: stretch; }
.bf-qty-btn {
	min-width: 48px; min-height: 52px; border: 2px solid var(--cream-line); background: var(--cream-soft);
	color: var(--maroon); font-size: 20px; font-weight: 700; cursor: pointer; padding: 0 12px;
}
.bf-qty-btn:first-child { border-radius: 12px 0 0 12px; border-right: none; }
.bf-qty-btn:last-child { border-radius: 0 12px 12px 0; border-left: none; }
.bf-qty-btn:hover { background: var(--cream); }
.woocommerce div.product .variations { margin-bottom: 16px; }
.woocommerce div.product .variations th, .woocommerce div.product .variations td { padding: 6px 0; }
.woocommerce div.product .variations label { font-weight: 700; color: var(--maroon); }
.woocommerce div.product .variations select {
	min-height: 48px; border-radius: 12px; border: 2px solid var(--cream-line);
	padding: 8px 12px; font: inherit; background: #fff; max-width: 100%;
}
.bf-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bf-swatch-btn {
	min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--cream-line);
	background: #fff; color: var(--maroon); font-weight: 700; cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.bf-swatch-btn:hover { border-color: var(--maroon); }
.bf-swatch-btn.selected { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.bf-swatch-btn.disabled { opacity: .4; cursor: not-allowed; }
/* Tabs sit below the floated gallery + summary (WooCommerce core CSS is
 * disabled by this theme, so core's `clear: both` must be replicated). */
.woocommerce div.product .woocommerce-tabs { clear: both; padding-top: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
	list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; width: 100%;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { list-style: none; margin: 0 4px 0 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: var(--cream-soft); border: 1px solid var(--cream-line); border-radius: 12px 12px 0 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #fff; border-bottom-color: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--maroon); font-weight: 700; }
.woocommerce div.product .woocommerce-tabs .panel {
	background: #fff; border: 1px solid var(--cream-line); border-radius: 0 12px 12px 12px; padding: 24px;
}
.woocommerce .related.products h2, .woocommerce .upsells.products h2 { font-size: 26px; margin: 32px 0 16px; }
.stock.out-of-stock { color: var(--vf-red); font-weight: 700; }
.stock.in-stock { color: var(--maroon-soft); font-weight: 700; }
.bf-sticky-atc {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
	background: var(--maroon); color: #fff; padding: 12px 20px;
	display: none; align-items: center; gap: 16px; justify-content: center;
	box-shadow: 0 -4px 24px rgba(107, 29, 42, .25);
}
.bf-sticky-atc.show { display: flex; }
.bf-sticky-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.bf-sticky-price { color: #a7f040; font-weight: 800; }
.bf-sticky-atc .button { min-height: 44px; padding: 10px 20px; }

/* ---------- WooCommerce: cart / checkout / account ---------- */
.woocommerce table.shop_table {
	background: #fff; border: 1px solid var(--cream-line); border-radius: 12px; overflow: hidden;
}
.woocommerce table.shop_table th { background: var(--cream-soft); color: var(--maroon); }
.woocommerce table.shop_table td { border-top: 1px solid var(--cream-line); }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { background: var(--gold); color: #fff !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	min-height: 48px; border-radius: 12px; border: 2px solid var(--cream-line);
	padding: 10px 14px; font: inherit; background: #fff; width: 100%;
}
.woocommerce form .form-row label { font-weight: 700; color: var(--maroon); display: block; margin-bottom: 6px; }
.woocommerce #payment { background: var(--cream-soft); border-radius: 12px; }
.woocommerce #payment div.payment_box { background: #fff; }
.woocommerce #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce .cart-collaterals .cart_totals { background: #fff; border: 1px solid var(--cream-line); border-radius: 12px; padding: 20px; }
.woocommerce .cart-collaterals .cart_totals h2 { font-size: 22px; }

/* ---------- Phase 3 (v1.1.0): page container + two-column cart/checkout ----------
 * Regular pages (About, Contact, Privacy) and the cart/checkout pages
 * render through page.php, whose <main> had no .container — content sat
 * flush to the left edge in a 760px column. .bf-page-wrap (added in
 * page.php / 404.php) puts them in the same centred 1180px container
 * as the shop. WooCommerce core CSS is disabled by this theme, so the
 * classic two-column cart/checkout floats must be replicated here. */
.bf-page-wrap { padding-top: 32px; padding-bottom: 64px; }
.woocommerce-cart .entry-content, .woocommerce-checkout .entry-content { max-width: none; }
.woocommerce .site-main > .container { padding-bottom: 32px; }
/* WooCommerce core CSS is disabled by this theme, so the shop tables
 * need their width back (auto-width tables overflowed the narrow
 * totals column) and the shipping-methods list + remove link need
 * their core styling replicated. */
.woocommerce table.shop_table { width: 100%; }
.woocommerce table.shop_table td.product-remove { width: 40px; padding-left: 12px; }
.woocommerce table.shop_table a.remove {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; border-radius: 50%;
	color: var(--gold) !important; font-size: 20px; font-weight: 700;
	line-height: 1; text-decoration: none;
}
.woocommerce table.shop_table a.remove:hover { background: var(--gold); color: #fff !important; }
.woocommerce ul#shipping_method { list-style: none; margin: 0; padding: 0; }
.woocommerce ul#shipping_method li { margin: 0 0 4px; }
.woocommerce-cart .coupon .input-text {
	min-height: 48px; border-radius: 12px; border: 2px solid var(--cream-line);
	padding: 10px 14px; font: inherit; background: #fff; max-width: 200px;
}
@media (min-width: 1024px) {
	.woocommerce-checkout form.checkout::after { content: ""; display: table; clear: both; }
	.woocommerce-checkout form.checkout .col2-set { float: left; width: 56%; }
	.woocommerce-checkout form.checkout #order_review_heading,
	.woocommerce-checkout form.checkout #order_review { float: right; width: 41%; clear: right; }
	.woocommerce-checkout form.checkout #order_review_heading { margin-top: 0; }
	.woocommerce-cart .woocommerce::after { content: ""; display: table; clear: both; }
	.woocommerce-cart form.woocommerce-cart-form { float: left; width: 64%; }
	.woocommerce-cart .cart-collaterals { float: right; width: 33%; }
}

/* ---------- Phase 3 (v1.1.0): single-product variations + attributes ----------
 * The "Weight" label sat in the table's left column while the pills sat
 * offset right below the select. Stack label above the pills instead.
 * The Additional Information table had 1px cell padding (cramped). */
.woocommerce div.product .variations tr { display: block; margin-bottom: 10px; }
.woocommerce div.product .variations th,
.woocommerce div.product .variations td { display: block; padding: 0; text-align: left; }
.woocommerce div.product .variations td select { width: 100%; max-width: 340px; }
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td { padding: 12px 16px; }

/* ---------- Store map ---------- */
.bf-store-map { background: var(--cream-soft); border: 1px solid var(--cream-line); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.bf-store-map h3 { margin-bottom: 8px; }
.bf-store-map-embed, .bf-store-map-js { width: 100%; height: 320px; border: 0; border-radius: 12px; margin-top: 16px; }

/* ---------- WP core templates ---------- */
.entry-header { margin: 24px 0 16px; }
.entry-content { max-width: 760px; }
.entry-content p { margin-bottom: 16px; }
.entry-content a { color: var(--gold); }
.entry-content img { border-radius: 12px; }
.entry-footer { color: var(--muted); font-size: 14px; margin: 24px 0; }
.post-navigation { margin: 32px 0; }
.post-navigation a { color: var(--maroon); font-weight: 700; text-decoration: none; }
.comments-area { margin: 32px 0; max-width: 760px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--cream-soft); border: 1px solid var(--cream-line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.widget { margin-bottom: 24px; }
/* Phase 3 (v1.1.0): widget titles are white ONLY on the dark footer.
 * The old global white rule made the 404 page's "Most Used Categories"
 * heading invisible on the sand background. */
.widget-title { color: var(--maroon); }
.site-footer .widget-title { color: #fff; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form input[type="search"] {
	width: 100%; min-height: 48px; border-radius: 999px; border: 2px solid var(--cream-line);
	padding: 10px 18px; font: inherit; background: #fff;
}
.search-form input[type="submit"] {
	min-height: 48px; border-radius: 999px; border: none; background: var(--gold);
	color: #fff; font-weight: 700; padding: 10px 22px; cursor: pointer;
}
.error-404 { padding: 64px 0; text-align: center; }
.error-404 h1 { font-size: clamp(40px, 8vw, 72px); }
/* Phase 3 (v1.1.0): the 404 search was full-width and uncontained. */
.error-404 .search-form { max-width: 560px; margin: 0 auto 32px; text-align: left; }
.bf-404-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 28px; padding: 0; list-style: none; }
.bf-404-links a {
	display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px;
	border-radius: 999px; border: 2px solid var(--maroon); color: var(--maroon);
	font-weight: 700; text-decoration: none;
}
.bf-404-links a:hover { background: var(--maroon); color: #fff; }
.bf-404-sub { color: var(--maroon); font-weight: 700; margin-bottom: 12px; }

/* ---------- Breakpoints ---------- */
@media (max-width: 640px) {
	.bf-vf-hero-inner { padding-top: 40px; padding-bottom: 40px; }
	.bf-vf-rating { right: 4%; bottom: 2%; }
}
/* Tablet + small laptop: hamburger nav (full 8-item nav + pills cannot
   fit one row below ~1240px, so the menu collapses instead of wrapping). */
@media (max-width: 1400px) {
	.menu-toggle { display: inline-flex; align-items: center; order: 3; }
	/* v1.3.1: the nav contributes no box — its button and list join the
	 * header flex row, so the Menu button sits in the top row with the
	 * icons (right after the basket). The list drops full-width below
	 * only when the menu is opened. navigation.js is untouched: the
	 * button stays inside #site-navigation in the DOM. */
	.main-navigation { display: contents; }
	.main-navigation ul { display: none; flex-direction: column; width: 100%; padding: 8px 0; order: 4; flex-basis: 100%; }
	.main-navigation.toggled ul { display: flex; }
	.main-navigation a { width: 100%; }
	.header-actions { order: 2; margin-left: auto; }
	.bf-vf-signin, .bf-vf-wa-us { display: none; }
	/* In-menu search row (small screens only, menu open). */
	.menu-search { display: none; }
}
/* Wide desktop: single-row header like the Vercel reference — tighter
   nav/pills + a wider header container so all 8 nav items fit. */
@media (min-width: 1401px) {
	.menu-toggle { display: none; }
	.site-header .container { max-width: 1440px; }
	.site-header-inner { flex-wrap: nowrap; gap: 12px; }
	.main-navigation ul { flex-wrap: nowrap; }
	.main-navigation a { padding: 10px 9px; font-size: 14px; white-space: nowrap; }
	.logo-text { font-size: 20px; white-space: nowrap; }
	.bf-vf-signin, .bf-vf-wa-us { padding: 10px 14px; font-size: 14px; white-space: nowrap; }
}
@media (min-width: 768px) {
	.bf-vf-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bf-vf-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bf-vf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bf-vf-promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.woocommerce ul.products.columns-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.woocommerce div.product .woocommerce-product-gallery { width: 48%; float: left; margin-right: 4%; }
	.woocommerce div.product div.summary { width: 48%; float: right; }
}
@media (min-width: 1024px) {
	.bf-vf-hero-inner { grid-template-columns: 1.05fr .95fr; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
	.bf-vf-cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.bf-vf-picks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.bf-vf-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.bf-vf-promise { grid-template-columns: .9fr 1.1fr; align-items: stretch; }
	.bf-vf-promise-main { display: flex; flex-direction: column; justify-content: flex-start; }
	.woocommerce ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	.reveal { opacity: 1; transform: none; }
}

Bilal Fruits v1.0.0 — features built in from the start
 * (thin header, dark mode, maroon primary buttons, app-like basket,
 * app-like checkout, footer polish)
 * ========================================================================== */

/* ---------- Thin professional header ---------- */
.site-header-inner { padding-top: 12px; padding-bottom: 12px; }
.site-logo { min-height: 40px; }
.logo-mark { width: 40px; height: 40px; flex: 0 0 40px; }
.logo-mark img { width: 100%; height: 100%; border-radius: 50%; display: block; object-fit: cover; }
.custom-logo { max-height: 48px; }

/* ---------- Dark-mode toggle ---------- */
.bf-theme-toggle .bf-icon-sun { display: none; }
[data-theme="dark"] .bf-theme-toggle .bf-icon-sun { display: inline-block; }
[data-theme="dark"] .bf-theme-toggle .bf-icon-moon { display: none; }

/* ---------- Dark mode: variable overrides + hard-coded white surfaces ---------- */
[data-theme="dark"] {
	--maroon: #8fd62e;
	--maroon-deep: #0d1f18;
	--maroon-soft: #a7f040;
	--gold: #a7f040;
	--gold-dark: #c8f77a;
	--cream: #122019;
	--cream-soft: #1b2e24;
	--cream-line: #2e4a3a;
	--ink: #edf3ec;
	--muted: #a9bfae;
	--white: #1b2e24;
	--shadow-1: 0 2px 8px rgba(0, 0, 0, .35);
	--shadow-2: 0 10px 28px rgba(0, 0, 0, .45);
}
[data-theme="dark"] .woocommerce ul.products li.product,
[data-theme="dark"] .woocommerce table.shop_table,
[data-theme="dark"] .woocommerce .cart-collaterals .cart_totals,
[data-theme="dark"] .woocommerce #payment div.payment_box,
[data-theme="dark"] .woocommerce form .form-row input.input-text,
[data-theme="dark"] .woocommerce form .form-row textarea,
[data-theme="dark"] .woocommerce form .form-row select,
[data-theme="dark"] .woocommerce-cart .coupon .input-text,
[data-theme="dark"] .comment-body,
[data-theme="dark"] .woocommerce-checkout .woocommerce-billing-fields,
[data-theme="dark"] .woocommerce-checkout .woocommerce-shipping-fields,
[data-theme="dark"] .woocommerce-checkout #order_review {
	background: #1b2e24; color: var(--ink); border-color: var(--cream-line);
}
[data-theme="dark"] .woocommerce table.shop_table th { background: #243a2e; color: var(--ink); }
[data-theme="dark"] .woocommerce table.shop_table td { border-top-color: var(--cream-line); }
[data-theme="dark"] .woocommerce form .form-row label { color: var(--ink); }
[data-theme="dark"] .woocommerce ul.products li.product .woocommerce-loop-product__title,
[data-theme="dark"] .woocommerce ul.products li.product h2,
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 { color: var(--ink); }
[data-theme="dark"] .header-search input[type="search"] { background: #1b2e24; color: var(--ink); border-color: var(--cream-line); }
[data-theme="dark"] .bf-vf-add { background: #2e7d32; }
[data-theme="dark"] .bf-vf-add:hover { background: #388e3c; }

/* v1.3.1: the header goes dark too. Before this, .site-header used a
 * literal cream background, so dark mode left a cream header while the
 * rest of the site went dark. */
[data-theme="dark"] .site-header { background: #122019; color: #edf3ec; border-bottom-color: #2e4a3a; }
[data-theme="dark"] .logo-text { color: #edf3ec; }
[data-theme="dark"] .logo-text small { color: #a9bfae; }
[data-theme="dark"] .main-navigation a { color: #edf3ec; }
[data-theme="dark"] .main-navigation a:hover, [data-theme="dark"] .main-navigation a:focus-visible { background: #1b2e24; color: #edf3ec; }
[data-theme="dark"] .main-navigation .current-menu-item > a, [data-theme="dark"] .main-navigation .current_page_item > a { background: #243a2e; color: #edf3ec; }
[data-theme="dark"] .icon-btn { border-color: #2e4a3a; color: #edf3ec; }
[data-theme="dark"] .icon-btn:hover { background: #1b2e24; }
[data-theme="dark"] .menu-toggle { border-color: #2e4a3a; color: #edf3ec; }
[data-theme="dark"] .bf-vf-signin { background: #1b2e24; color: #edf3ec; border-color: #2e4a3a; }
[data-theme="dark"] .menu-search { border-color: #2e4a3a; color: #edf3ec; }

/* v1.3.1: in-menu search button (full-width row inside the open menu). */
.menu-search { display: none; width: 100%; text-align: left; min-height: 44px; padding: 10px 16px; margin-top: 4px; border-radius: 999px; border: 1px solid var(--cream-line); background: var(--cream-soft); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }

/* v1.3.1: the 390px top row must fit logo + Menu + moon + cart, so the
 * logo and icon buttons go compact and search moves into the open menu. */
@media (max-width: 640px) {
	.site-header-inner { gap: 6px; }
	.logo-mark { width: 32px; height: 32px; flex: 0 0 32px; }
	.logo-text { font-size: 16px; }
	.icon-btn { min-width: 40px; min-height: 40px; }
	.menu-toggle { min-height: 40px; padding: 10px 12px; }
	/* The basket count overlaps the icon corner (standard badge look)
	 * instead of sitting beside it — saves ~34px so the top row fits. */
	.cart-count { position: absolute; top: -4px; right: -4px; }
	.header-actions .search-toggle { display: none; }
	.main-navigation.toggled .menu-search { display: block; }
}

/* ---------- Footer polish ---------- */
.site-footer a:hover { color: var(--gold); }

/* ---------- Primary buttons: dark green (accessible on cream) ----------
 * The theme's own .btn-primary stays lime (base rule above) — the
 * Vercel "Browse Shop" style. WooCommerce's action buttons (checkout,
 * single add-to-cart, loop buttons, Place Order) stay dark green. */
.woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce input.button.alt, .woocommerce #respond input#submit.alt,
.woocommerce a.button.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce div.product form.cart .button.single_add_to_cart_button,
.woocommerce ul.products li.product .button,
.woocommerce-checkout #place_order {
	background: var(--maroon); color: #fff !important; border-color: transparent;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce a.button.checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce div.product form.cart .button.single_add_to_cart_button:hover,
.woocommerce ul.products li.product .button:hover,
.woocommerce-checkout #place_order:hover {
	background: var(--maroon-deep); transform: translateY(-2px); box-shadow: var(--shadow-2);
}
.woocommerce ul.products li.product .price { color: var(--vf-red); }
.woocommerce table.shop_table a.remove { color: var(--maroon) !important; }
.woocommerce table.shop_table a.remove:hover { background: var(--maroon); color: #fff !important; }

/* ---------- App-like basket: item cards + sticky summary ---------- */
.woocommerce-cart table.shop_table {
	border-collapse: separate; border-spacing: 0 10px;
	background: transparent; border: none; overflow: visible;
}
.woocommerce-cart table.shop_table thead th { background: transparent; border: none; }
.woocommerce-cart table.shop_table tbody tr.cart_item td {
	background: #fffdf8; border-top: 1px solid var(--cream-line);
	border-bottom: 1px solid var(--cream-line); vertical-align: middle;
}
.woocommerce-cart table.shop_table tbody tr.cart_item td:first-child {
	border-left: 1px solid var(--cream-line);
	border-top-left-radius: 12px; border-bottom-left-radius: 12px;
}
.woocommerce-cart table.shop_table tbody tr.cart_item td:last-child {
	border-right: 1px solid var(--cream-line);
	border-top-right-radius: 12px; border-bottom-right-radius: 12px;
}
.woocommerce-cart table.shop_table td.actions { background: transparent; border: none; padding: 8px 0 0; }
.woocommerce-cart table.shop_table td.product-thumbnail img { border-radius: 8px; }
.woocommerce-cart .cart_totals { background: #fffdf8; }
@media (min-width: 1024px) {
	.woocommerce-cart .woocommerce { display: flex; gap: 24px; align-items: flex-start; }
	.woocommerce-cart .woocommerce::after { display: none; }
	.woocommerce-cart form.woocommerce-cart-form { float: none; width: auto; flex: 1 1 auto; min-width: 0; }
	.woocommerce-cart .cart-collaterals { float: none; width: 360px; flex: 0 0 360px; position: sticky; top: 68px; }
	.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display: block; text-align: center; }
}

/* ---------- App-like checkout: section cards + solid Place Order ---------- */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout #order_review {
	background: #fffdf8; border: 1px solid var(--cream-line);
	border-radius: 16px; padding: 20px; margin-bottom: 20px;
}
.woocommerce-checkout #place_order {
	width: 100%; min-height: 52px; font-size: 18px; font-weight: 800;
	border-radius: 999px; margin-top: 12px;
}
.woocommerce-checkout #order_review_heading { font-size: 22px; }
@media (min-width: 1024px) {
	.woocommerce-checkout form.checkout { display: flex; gap: 24px; align-items: flex-start; }
	.woocommerce-checkout form.checkout::after { display: none; }
	.woocommerce-checkout form.checkout .col2-set { float: none; width: auto; flex: 1 1 auto; min-width: 0; }
	.woocommerce-checkout form.checkout .bf-order-review-col { float: none; width: 41%; flex: 0 0 41%; position: sticky; top: 68px; }
	.woocommerce-checkout form.checkout #order_review_heading,
	.woocommerce-checkout form.checkout #order_review { float: none; width: auto; clear: none; }
	.woocommerce-checkout form.checkout #order_review_heading { margin-top: 0; }
}
/* Fee label: keep on one line. */
table.shop_table tr.fee th { white-space: nowrap; }

/* ---------- v1.3.3: Our 5 Best Products — 3D scroll rail ----------
 * Theme 4 (hero Option 4 "Floating Orchard") applied to the CURRENT
 * theme: its floating-card language (white cards, soft shadows, gentle
 * bob, mouse parallax) in the Vercel colours only — cream section,
 * white cards, dark-green headings, lime accents, red prices. No
 * maroon/gold from Option 4 anywhere. Hero + footer are untouched.
 * The rail is a horizontal scroll-snap strip; JS tilts each card in 3D
 * (coverflow) from its distance to the rail centre. */
.bf-best3d { padding: 56px 0 64px; background: var(--cream); overflow: clip; }
.bf-best3d .bf-vf-head h2 em { color: #2e7d32; }
.bf-best3d-rail-wrap { position: relative; }
.bf-best3d-rail { display: flex; align-items: stretch; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px max(12px, calc(50% - 170px)) 30px; perspective: 1400px; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
.bf-best3d-rail::-webkit-scrollbar { display: none; }
.bf-best3d-rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.bf-best3d-card { flex: 0 0 min(320px, 82vw); scroll-snap-align: center; background: var(--white); border: 1px solid var(--cream-line); border-radius: 24px; overflow: hidden; box-shadow: 0 18px 40px rgba(27, 67, 50, .16); display: flex; flex-direction: column; transform-style: preserve-3d; will-change: transform, opacity; }
.bf-best3d-media { display: block; position: relative; text-decoration: none; background: var(--cream-soft); aspect-ratio: 4 / 3; overflow: hidden; }
.bf-best3d-media img { width: 100%; height: 100%; object-fit: cover; display: block; animation: bf-best3d-bob 7s ease-in-out infinite; }
.bf-best3d-card:nth-child(2) .bf-best3d-media img { animation-delay: -.8s; }
.bf-best3d-card:nth-child(3) .bf-best3d-media img { animation-delay: -1.6s; }
.bf-best3d-card:nth-child(4) .bf-best3d-media img { animation-delay: -2.4s; }
.bf-best3d-card:nth-child(5) .bf-best3d-media img { animation-delay: -3.2s; }
@keyframes bf-best3d-bob { 0%, 100% { transform: translateY(0) rotate(-1deg) scale(1.02); } 50% { transform: translateY(-8px) rotate(1deg) scale(1.05); } }
.bf-best3d-body { display: flex; flex-direction: column; padding: 16px 16px 18px; flex: 1 1 auto; }
.bf-best3d-rank { display: inline-block; align-self: flex-start; background: #a7f040; color: #1b4332; font-weight: 800; font-size: 12px; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.bf-best3d-arrow { position: absolute; top: 50%; z-index: 4; width: 48px; height: 48px; min-width: 48px; border-radius: 50%; border: 1px solid var(--cream-line); background: var(--white); color: var(--maroon); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-2); transform: translateY(-50%); display: flex; align-items: center; justify-content: center; padding-bottom: 3px; }
.bf-best3d-arrow:hover { background: var(--cream-soft); }
.bf-best3d-prev { left: 6px; }
.bf-best3d-next { right: 6px; }
.bf-best3d-dots { display: flex; gap: 8px; justify-content: center; margin-top: 4px; }
.bf-best3d-dots button { width: 10px; height: 10px; padding: 0; border: none; border-radius: 999px; background: var(--cream-line); cursor: pointer; transition: width .25s ease, background-color .25s ease; }
.bf-best3d-dots button.on { width: 28px; background: var(--maroon); }
@media (max-width: 640px) {
	.bf-best3d-rail { padding-inline: max(12px, calc(50% - 41vw)); gap: 16px; }
	.bf-best3d-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.bf-best3d-card .bf-best3d-media img { animation: none; }
}

/* ============================================================
   BILAL FRUITS v1.0.0 — Theme 4 (Citrus Coast) on Zuhi colours
   Hybrid font: Georgia serif display headings + Poppins body.
   Dark mode toggle kept (data-theme on <html>, see header.php).
   ============================================================ */
h1, h2, h3, h4,
.bf-vf-head h2, .bf-vf-card-name, .bf-showcase h2, .bf-showcase h3,
.bf-vf-hero-copy h1, .bf-vf-promo h2, .bf-vf-cta h2 {
	font-family: Georgia, 'Times New Roman', serif;
}
body, button, input, select, textarea,
.bf-vf-card-cat, .bf-vf-card-price, .bf-vf-card-unit,
.bf-vf-add, .bf-vf-wa, .bf-catnav a {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
/* Select Option first: the Add to Cart button stays hidden until an
   option is picked (JS removes [hidden] on selection). */
.bf-vf-add[hidden] { display: none !important; }
.bf-opt-btn.bf-vf-var-row-on { outline: 2px solid #a7f040; outline-offset: -2px; }
/* Theme 4 — sticky category nav (Citrus Coast) in Zuhi colours. */
.bf-catnav { position: sticky; top: 0; z-index: 60; background: #1b4332; border-bottom: 3px solid #a7f040; }
.bf-catnav-inner { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.bf-catnav-inner::-webkit-scrollbar { display: none; }
.bf-catnav a { flex: 0 0 auto; color: #fafaf2; text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px; }
.bf-catnav a:hover, .bf-catnav a:focus-visible { background: rgba(167, 240, 64, .18); color: #fff; outline: none; }
/* Theme 4 — showcase bands: "Two worth slowing down for". */
.bf-showcase { padding: 64px 0; background: #fafaf2; }
.bf-showcase-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bf-showcase-grid { grid-template-columns: 1fr 1fr; } }
.bf-showcase-card { background: #fff; border: 1px solid #e7e7d8; border-radius: 20px; overflow: hidden; box-shadow: 0 1px 2px rgba(27, 67, 50, .10), 0 4px 14px rgba(27, 67, 50, .08); }
.bf-showcase-media img { width: 100%; height: auto; display: block; }
.bf-showcase-body { padding: 20px 22px 24px; }
.bf-showcase-body h3 { margin: 0 0 8px; font-size: 24px; }
.bf-showcase-body h3 a { color: #1b4332; text-decoration: none; }
.bf-showcase-body .btn { margin-top: 12px; }
html[data-theme="dark"] .bf-showcase { background: #0d1f18; }
html[data-theme="dark"] .bf-showcase-card { background: #1b4332; border-color: #214a32; }
html[data-theme="dark"] .bf-showcase-body h3 a { color: #fafaf2; }
html[data-theme="dark"] .bf-catnav { background: #0d1f18; }

/* ============================================================
   BILAL FRUITS v1.0.1 — audit fixes (16 Nov 2026)
   #3 product search is a form change (header.php). #5/#6/#10/#12/#14
   are template/PHP changes. This block holds the CSS ones:
   #8 checkout layout, #9 (JS), #13 catnav/contrast/CF7.
   ============================================================ */
/* #13: the sticky catnav sat at top:0, i.e. UNDER the 72px sticky
   header (z-index 200 vs 60) — it looked like it scrolled away.
   Pin it below the header instead. */
.bf-catnav { top: 73px; z-index: 150; }
@media (max-width: 640px) { .bf-catnav { top: 65px; } }
/* Anchor jumps (#best-products etc.) must clear header + catnav. */
#best-products, #categories, #fresh-picks, #how-it-works, #promise, #showcase { scroll-margin-top: 128px; }
/* #5: out-of-stock badge for the 5 Best rail. */
/* v1.0.2: the badge had no position, so it rendered at its static
   spot behind the photo and was invisible. Pin it top-left like Sale. */
.bf-vf-badge-oos { top: 12px; left: 12px; background: #616161; color: #fff; }
/* #8: checkout at >=1024px — the form is flex with no wrap, so the
   order fields (notes, delivery area, maps link) squeezed into the
   same row as the columns and the sticky summary covered the Time
   Slot select. Wrap: columns row 1, order fields full-width row 2,
   summary static (never overlaps anything while scrolling). */
@media (min-width: 1024px) {
	.woocommerce-checkout form.checkout { flex-wrap: wrap; }
	.woocommerce-checkout form.checkout .col2-set { order: 1; flex: 1 1 55%; }
	.woocommerce-checkout form.checkout .bf-after-customer-details { order: 3; flex: 1 1 100%; min-width: 0; }
	.woocommerce-checkout form.checkout .bf-order-review-col { order: 2; flex: 0 0 41%; position: static; }
}
/* #8: Tyche date/slot inputs must not outgrow their column. */
#orddd-lite-checkout-fields input, #orddd-lite-checkout-fields select { max-width: 100%; }
/* #7: basket delivery-fee note. */
.bf-cart-delivery-note { font-size: 14px; color: #1b4332; background: #fafaf2; border: 1px solid #e7e7d8; border-radius: 12px; padding: 10px 14px; margin: 12px 0 0; }
/* #13: contrast — --gold IS lime (#a7f040). Lime background + white
   text and lime links on white were unreadable (audit: "Proceed to
   checkout", basket product names, "Change address", remove ×). */
.woocommerce a.button.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { background: var(--gold); color: #1b4332 !important; border-color: transparent; }
.woocommerce table.shop_table a.remove { color: #e53935 !important; }
.woocommerce table.shop_table a.remove:hover { background: #e53935; color: #fff !important; }
.woocommerce table.shop_table td.product-name a { color: #1b4332; }
.woocommerce-shipping-destination a { color: #1b4332; text-decoration: underline; }
.entry-content a:not(.wp-block-button__link) { color: #1b4332; }
.woocommerce-error { border-top-color: #e53935; }
.woocommerce-error::before { color: #e53935; }
/* #13: Contact Form 7 was unstyled plain HTML — match the theme. */
.wpcf7-form label { font-weight: 700; color: #1b4332; display: block; margin-bottom: 6px; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"],
.wpcf7-form textarea, .wpcf7-form select { width: 100%; min-height: 48px; border-radius: 12px; border: 2px solid #e7e7d8; padding: 10px 14px; font: inherit; background: #fff; margin-bottom: 14px; }
.wpcf7-form textarea { min-height: 120px; }
.wpcf7-form input[type="submit"] { background: #1b4332; color: #fff; border: none; border-radius: 999px; min-height: 52px; padding: 12px 28px; font-weight: 800; font-size: 16px; cursor: pointer; }
.wpcf7-form input[type="submit"]:hover { background: #214a32; }

/* ============================================================
   BILAL FRUITS v1.0.3 — human-test fixes (16 Nov 2026)
   #3 coupon/qty totals (JS), #4/#5/#12 duplicate loop button
   (functions.php), #6 dark-mode contrast, #7 block-button contrast,
   #9 notices, #10 rail tilt (JS), #11 promise/scroll-margin,
   #13 description fallback tab (functions.php), #14 search button
   + contact map (functions.php).
   ============================================================ */
/* #6: dark-mode contrast. In dark mode --maroon flips to light lime
   (#8fd62e), so buttons painted with var(--maroon) + white text
   became white-on-lime, and the green "Ask on WhatsApp" links went
   dark-on-dark. Restore dark button backgrounds; lighten the
   WhatsApp links; give the product tabs dark surfaces (their panel
   and active tab were literal white). */
[data-theme="dark"] .bf-vf-wa, [data-theme="dark"] .bf-vf-wa-single { color: #7be495; }
[data-theme="dark"] .bf-vf-wa:hover, [data-theme="dark"] .bf-vf-wa-single:hover { color: #a7f040; }
[data-theme="dark"] .woocommerce a.button.alt, [data-theme="dark"] .woocommerce button.button.alt,
[data-theme="dark"] .woocommerce input.button.alt, [data-theme="dark"] .woocommerce #respond input#submit.alt,
[data-theme="dark"] .woocommerce div.product form.cart .button.single_add_to_cart_button,
[data-theme="dark"] .woocommerce ul.products li.product .button,
[data-theme="dark"] .woocommerce-checkout #place_order { background: #1b4332; color: #fff !important; border-color: transparent; }
[data-theme="dark"] .btn-primary { background: var(--gold); color: #1b4332 !important; }
[data-theme="dark"] .btn-ghost:hover, [data-theme="dark"] .woocommerce a.button:hover, [data-theme="dark"] .woocommerce button.button:hover { background: #1b4332; color: #fff !important; }
[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li { background: #1b2e24; border-color: #2e4a3a; }
[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #1b2e24; border-bottom-color: #1b2e24; }
[data-theme="dark"] .woocommerce div.product .woocommerce-tabs .panel { background: #1b2e24; border-color: #2e4a3a; }
[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li a { color: #a7f040; }
/* #7: WordPress block buttons (About page "Shop Now" / "Order on
   WhatsApp") — the theme's dark-green pill + white text. */
.wp-block-button__link { background: #1b4332; color: #fff !important; border-radius: 999px; }
/* #9: the error icon keeps white text on its red circle (the v1.0.1
   rule set its colour to red, which would hide the "!" on red). */
.woocommerce-error::before { color: #fff; }
/* #14: the header search submit was a plain unstyled browser button. */
.header-search form { display: flex; gap: 10px; align-items: stretch; }
.header-search input[type="search"] { flex: 1 1 auto; width: auto; }
.header-search .search-submit { background: #a7f040; color: #1b4332; border: none; border-radius: 999px; min-height: 48px; padding: 10px 24px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; flex: 0 0 auto; }
.header-search .search-submit:hover { background: #8fd62e; }

/* ============================================================
   BILAL FRUITS v1.0.4 — dark-mode payment box (16 Nov 2026)
   The Cash on Delivery box rendered as a white card with faint
   text in dark mode. Explicit checkout-scoped dark rules.
   ============================================================ */
[data-theme="dark"] .woocommerce-checkout #payment { background: #1b2e24; border-color: var(--cream-line); }
[data-theme="dark"] .woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--cream-line); }
[data-theme="dark"] .woocommerce-checkout #payment div.payment_box { background: #122019; color: var(--ink); }
[data-theme="dark"] .woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #122019; }
[data-theme="dark"] .woocommerce-checkout #payment div.payment_box p { color: var(--ink); }
[data-theme="dark"] .woocommerce-checkout #payment ul.payment_methods li label { color: var(--ink); }

/* ============================================================
   BILAL FRUITS v1.0.5 — mobile optimisation + basket/checkout
   redesign (16 Nov 2026). See patch_v1_0_5.py for the full
   rationale. M1 professional polish, M2 mobile basket cards,
   M3 Select2 match, M4 file button, M5 pill prices (JS),
   M6 cache-buster refresh (JS), M7 stepper re-init (JS),
   M8 empty shipping card (JS), M9 dark-mode gaps.
   ============================================================ */
/* M1: depth + hierarchy on the summary cards. */
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout #order_review { box-shadow: var(--shadow-1); }
/* M1: highlight the Total row in both totals tables. */
.woocommerce .cart-collaterals .cart_totals tr.order-total th,
.woocommerce .cart-collaterals .cart_totals tr.order-total td,
.woocommerce-checkout #order_review tr.order-total th,
.woocommerce-checkout #order_review tr.order-total td { font-size: 20px; padding-top: 14px; }
.woocommerce .cart-collaterals .cart_totals tr.order-total,
.woocommerce-checkout #order_review tr.order-total { border-top: 2px solid var(--maroon); }
.woocommerce .cart-collaterals .cart_totals tr.order-total .amount,
.woocommerce-checkout #order_review tr.order-total .amount { color: var(--maroon); }
/* M1: Proceed to checkout — tall, full-width, arrow, shadow. */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display: block; text-align: center; min-height: 56px; line-height: 1.2; padding: 16px 24px; font-size: 17px; font-weight: 800; border-radius: 999px; box-shadow: var(--shadow-2); }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button::after { content: " \2192"; }
.woocommerce-checkout #place_order::after { content: " \2192"; }
/* M1: coupon input + button share one flex row. */
.woocommerce-cart .coupon { display: flex; gap: 10px; flex-wrap: wrap; }
.woocommerce-cart .coupon .input-text { flex: 1 1 160px; max-width: none; }
.woocommerce-cart .coupon .button { flex: 0 0 auto; background: var(--maroon); color: #fff !important; border: none; border-radius: 999px; min-height: 48px; padding: 10px 22px; font-weight: 700; cursor: pointer; }
/* M1: numbered checkout steps (1 Billing, 2 Additional info, 3 Your order). */
.woocommerce-checkout form.bf-checkout { counter-reset: bf-step; }
.woocommerce-checkout form.bf-checkout h3 { font-size: 22px; }
.woocommerce-checkout form.bf-checkout h3::before { counter-increment: bf-step; content: counter(bf-step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--maroon); color: #fff; font-size: 15px; font-weight: 800; margin-right: 10px; vertical-align: middle; }
/* M1: focus ring on checkout/cart inputs. */
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus, .woocommerce form .form-row select:focus, .woocommerce-cart .coupon .input-text:focus { border-color: var(--maroon); outline: none; box-shadow: 0 0 0 3px rgba(27, 67, 50, .12); }
/* M3: Select2 (Time Slot, Country, State) matches the 48px fields. */
.select2-container--default .select2-selection--single { min-height: 48px; border: 2px solid var(--cream-line); border-radius: 12px; background: #fff; display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-left: 14px; color: var(--ink); font: inherit; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; right: 6px; }
.select2-container--default.select2-container--focus .select2-selection--single { border-color: var(--maroon); outline: none; box-shadow: 0 0 0 3px rgba(27, 67, 50, .12); }
.select2-dropdown { border: 2px solid var(--cream-line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-2); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--maroon); color: #fff; }
/* M4: styled file button + tidy helper text for address photos. */
.bf-address-photos-field input[type="file"] { width: 100%; }
.bf-address-photos-field input[type="file"]::file-selector-button, .bf-address-photos-field input[type="file"]::-webkit-file-upload-button { background: #1b4332; color: #fff; border: none; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 700; cursor: pointer; margin-right: 12px; }
.bf-address-photos-field .description { display: block; margin-top: 8px; color: var(--muted); }
/* M5: variation pills show their price under the weight. */
.bf-swatch-btn { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.3; }
.bf-swatch-price { font-size: 13px; font-weight: 800; color: #e53935; }
.bf-swatch-btn.selected .bf-swatch-price { color: #fff; }
/* M2: mobile (<=640px) — stacked basket cards, full-width fields. */
@media (max-width: 640px) {
	.woocommerce-cart table.shop_table { border-spacing: 0; }
	.woocommerce-cart table.shop_table thead { display: none; }
	.woocommerce-cart table.shop_table, .woocommerce-cart table.shop_table tbody, .woocommerce-cart table.shop_table tr.cart_item { display: block; }
	.woocommerce-cart table.shop_table tbody tr.cart_item { background: #fffdf8; border: 1px solid var(--cream-line); border-radius: 12px; margin-bottom: 12px; padding: 12px 14px; box-shadow: var(--shadow-1); }
	.woocommerce-cart table.shop_table tbody tr.cart_item td { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: transparent !important; border: none !important; padding: 6px 0 !important; }
	.woocommerce-cart table.shop_table tbody tr.cart_item td::before { content: attr(data-title); font-weight: 700; color: var(--maroon); }
	.woocommerce-cart table.shop_table tbody tr.cart_item td.product-thumbnail, .woocommerce-cart table.shop_table tbody tr.cart_item td.product-remove { justify-content: center; }
	.woocommerce-cart table.shop_table tbody tr.cart_item td.product-thumbnail::before, .woocommerce-cart table.shop_table tbody tr.cart_item td.product-remove::before, .woocommerce-cart table.shop_table tbody tr.cart_item td.product-name::before { content: ""; display: none; }
	.woocommerce-cart table.shop_table tbody tr.cart_item td.product-name { display: block; text-align: center; }
	.woocommerce-cart table.shop_table td.product-thumbnail img { width: 72px; height: auto; }
	.woocommerce-cart table.shop_table td.actions { display: block; padding: 4px 0 0 !important; }
	.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; }
	.woocommerce-checkout .woocommerce-billing-fields, .woocommerce-checkout .woocommerce-shipping-fields, .woocommerce-checkout #order_review { padding: 16px; }
	.woocommerce-checkout form.bf-checkout h3 { font-size: 20px; }
	.woocommerce .cart-collaterals .cart_totals { padding: 16px; }
	.woocommerce-cart .coupon .input-text { flex-basis: 100%; }
	[data-theme="dark"] .woocommerce-cart table.shop_table tbody tr.cart_item { background: #1b2e24; }
}
/* M9: dark-mode gaps from the mobile review. */
[data-theme="dark"] .entry-content a:not(.wp-block-button__link) { color: #a7f040; }
[data-theme="dark"] .bf-vf-pill-light { background: #2e4a3a; color: #edf3ec; border-color: #2e4a3a; }
[data-theme="dark"] .bf-vf-pill-dark { background: #a7f040; color: #1b4332; }
[data-theme="dark"] .bf-showcase { background: #122019; }
[data-theme="dark"] .bf-showcase-card { background: #1b2e24; border-color: #2e4a3a; }
[data-theme="dark"] .woocommerce ul.products li.product.bf-vf-card, [data-theme="dark"] .bf-best3d-card { background: #1b2e24; border-color: #2e4a3a; }
[data-theme="dark"] .bf-swatch-btn { background: #1b2e24; border-color: #2e4a3a; color: #edf3ec; }
[data-theme="dark"] .bf-swatch-btn.selected { background: #1b4332; border-color: #1b4332; color: #fff; }
[data-theme="dark"] .select2-container--default .select2-selection--single { background: #1b2e24; border-color: #2e4a3a; }
[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered { color: #edf3ec; }
[data-theme="dark"] .select2-dropdown { background: #1b2e24; border-color: #2e4a3a; }
[data-theme="dark"] .select2-container--default .select2-results__option { color: #edf3ec; }
[data-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] { background: #1b4332; color: #fff; }
[data-theme="dark"] .woocommerce-cart table.shop_table tbody tr.cart_item td { background: #1b2e24; }

/* ============================================================
   BILAL FRUITS v1.0.6 (16 Nov 2026)
   F1: "Proceed to checkout" was lime (--gold, #a7f040) with dark
   text — a later rule (~line 970) overrode the v1.0.1 maroon
   block. This rule is last in the file, so it wins: dark green
   + white, matching Place Order. (Hover already goes maroon-deep.)
   ============================================================ */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { background: var(--maroon); color: #fff !important; border-color: transparent; }

/* ============================================================
   BILAL FRUITS v1.0.8 (16 Nov 2026)
   Mobile badge overlap: at 390px the 2-column cards are ~175px
   wide and a card with BOTH the Sale and Bestseller badges
   collided (Sale cut to "So..." under Bestseller). Stack the
   Bestseller badge below the Sale badge on narrow screens, only
   when both are present (adjacent-sibling selector).
   ============================================================ */
@media (max-width: 640px) {
	.bf-vf-card-media .bf-vf-badge-sale + .bf-vf-badge-best { top: 48px; left: 12px; right: auto; }
}
