/*
Theme Name:   Bhikhabhai Bhajiyawala
Theme URI:    https://bhikhabhaibhajiyawala.com/
Description:  Child theme of Kadence for Bhikhabhai Bhajiyawala. Pouch-orange brand design, English/Gujarati/Hindi typography and homepage block patterns.
Author:       TestGrid
Template:     kadence
Version:      1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  bhikhabhai
*/

/* =========================================================
   1. Brand tokens (colours from the Methi Gota pouch)
   ========================================================= */
:root {
	--bb-turmeric: #f59d00;      /* pouch amber */
	--bb-saffron: #ffb627;
	--bb-chili: #e84f09;         /* pouch orange */
	--bb-chili-dark: #b83c05;
	--bb-ember: #8f2d03;
	--bb-brown: #3a1c0b;
	--bb-cream: #fff8ec;
	--bb-sand: #fdebd0;
	--bb-leaf: #0da350;          /* veg mark green */
	--bb-chilli-green: #3f8f2a;
	--bb-text: #2b1a10;
	--bb-muted: #6d5646;
	--bb-radius: 20px;
	--bb-radius-sm: 12px;
	--bb-shadow: 0 10px 30px rgba(90, 38, 5, 0.12);
	--bb-shadow-lg: 0 24px 60px rgba(90, 38, 5, 0.22);
	--bb-ease: cubic-bezier(.2, .8, .2, 1);

	--bb-font-body: "Poppins", "Noto Sans Gujarati", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bb-font-head: "Baloo 2", "Baloo Bhai 2", "Poppins", system-ui, sans-serif;
	--bb-font-ui: "Poppins", system-ui, sans-serif;
}

/* Per-language font stacks (Polylang sets <html lang="gu-IN"> / "hi-IN") */
html:lang(gu) {
	--bb-font-body: "Noto Sans Gujarati", "Poppins", system-ui, sans-serif;
	--bb-font-head: "Baloo Bhai 2", "Noto Sans Gujarati", system-ui, sans-serif;
}
html:lang(hi) {
	--bb-font-body: "Poppins", system-ui, sans-serif; /* Poppins includes Devanagari */
	--bb-font-head: "Baloo 2", "Poppins", system-ui, sans-serif;
}

/* =========================================================
   2. Base
   ========================================================= */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	font-family: var(--bb-font-body);
	color: var(--bb-text);
	background: var(--bb-cream);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
html:lang(gu) body,
html:lang(hi) body { line-height: 1.75; }

h1, h2, h3, h4,
.entry-title,
.site-title,
.woocommerce-loop-product__title,
.product_title {
	font-family: var(--bb-font-head);
	color: var(--bb-brown);
	letter-spacing: -0.01em;
	font-weight: 800;
}
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.1; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.2; }

a { color: var(--bb-chili); transition: color .2s var(--bb-ease); }
a:hover, a:focus { color: var(--bb-chili-dark); }

img { max-width: 100%; height: auto; }

/* Highlighted words: a hand-drawn amber underline */
.bb-hl {
	position: relative;
	white-space: nowrap;
	color: inherit;
	background: linear-gradient(transparent 62%, rgba(245, 157, 0, .45) 62%, rgba(245, 157, 0, .45) 88%, transparent 88%);
}
.bb-hero .bb-hl { background: none; color: #ffe08a; }

/* Accessibility: visible focus */
a:focus-visible, button:focus-visible, .wp-block-button__link:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 3px solid var(--bb-turmeric);
	outline-offset: 3px;
}

/* =========================================================
   3. Header & menu (Kadence)
   ========================================================= */
#masthead {
	position: relative;
	z-index: 50;
}
#masthead .site-main-header-wrap .site-header-row-container-inner {
	background: rgba(255, 248, 236, .92);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid rgba(232, 79, 9, .10);
	transition: box-shadow .3s var(--bb-ease), background .3s var(--bb-ease);
}
.bb-scrolled #masthead .site-main-header-wrap .site-header-row-container-inner,
.item-is-stuck .site-header-row-container-inner {
	box-shadow: 0 6px 24px rgba(90, 38, 5, .10);
	background: rgba(255, 255, 255, .96);
}
.site-branding img.custom-logo { transition: transform .3s var(--bb-ease); }
.site-branding a:hover img.custom-logo { transform: scale(1.03); }

/* Desktop menu */
.main-navigation .primary-menu-container > ul > li.menu-item > a {
	font-family: var(--bb-font-ui);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .01em;
	color: var(--bb-brown);
	padding: .6em 1em;
	position: relative;
}
.main-navigation .primary-menu-container > ul > li.menu-item > a::after {
	content: "";
	position: absolute;
	left: 1em; right: 1em; bottom: .35em;
	height: 3px;
	border-radius: 3px;
	background: var(--bb-chili);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--bb-ease);
}
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a { color: var(--bb-chili); }
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover::after,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a::after { transform: scaleX(1); }

/* "Order now" pill in the menu (menu item with class bb-nav-cta) */
.main-navigation .primary-menu-container > ul > li.bb-nav-cta > a {
	background: var(--bb-chili);
	color: #fff !important;
	border-radius: 999px;
	padding: .65em 1.4em;
	margin-left: .5em;
	box-shadow: 0 6px 16px rgba(232, 79, 9, .35);
	transition: transform .2s var(--bb-ease), box-shadow .2s var(--bb-ease), background .2s;
}
.main-navigation .primary-menu-container > ul > li.bb-nav-cta > a::after { display: none; }
.main-navigation .primary-menu-container > ul > li.bb-nav-cta > a:hover {
	background: var(--bb-chili-dark);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(232, 79, 9, .45);
}

/* Mobile hamburger + drawer */
.menu-toggle-open { color: var(--bb-chili) !important; }
.menu-toggle-open .menu-toggle-icon svg { width: 1.5em; height: 1.5em; }
#mobile-drawer .drawer-inner {
	background: linear-gradient(165deg, var(--bb-chili) 0%, #d8430a 60%, var(--bb-ember) 100%);
	color: #fff;
}
#mobile-drawer .drawer-header .drawer-toggle { color: #fff; }
#mobile-drawer .mobile-navigation ul li > a,
#mobile-drawer .mobile-navigation ul li .drawer-nav-drop-wrap > a {
	font-family: var(--bb-font-head);
	font-weight: 700;
	font-size: 1.6rem;
	color: #fff;
	padding: .55em 0;
	border-bottom: 1px solid rgba(255, 255, 255, .18);
}
#mobile-drawer .mobile-navigation ul li.current-menu-item > a { color: #ffe08a; }
#mobile-drawer .mobile-navigation ul li.bb-nav-cta > a {
	margin-top: 1rem;
	background: #fff;
	color: var(--bb-chili-dark);
	border-radius: 999px;
	text-align: center;
	border: 0;
}

/* =========================================================
   4. Section helpers
   ========================================================= */
.bb-section {
	position: relative;
	padding-top: clamp(56px, 9vw, 110px) !important;
	padding-bottom: clamp(56px, 9vw, 110px) !important;
	padding-left: clamp(16px, 4vw, 40px) !important;
	padding-right: clamp(16px, 4vw, 40px) !important;
}
.bb-eyebrow {
	display: block;
	font-family: var(--bb-font-ui);
	text-transform: uppercase;
	letter-spacing: .16em;
	font-size: .78rem;
	font-weight: 700;
	color: var(--bb-chili);
	margin-bottom: .6rem;
}
.bb-section__lead {
	max-width: 620px;
	margin: .5rem auto 2.5rem;
	color: var(--bb-muted);
	font-size: clamp(1rem, 1.6vw, 1.1rem);
}
html:lang(gu) .bb-eyebrow, html:lang(hi) .bb-eyebrow { text-transform: none; letter-spacing: 0; font-size: .95rem; }

/* Scroll-reveal (only when JS is running; content is visible otherwise) */
.bb-anim .bb-reveal,
.bb-anim .bb-products ul.products > li {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s var(--bb-ease) var(--bb-delay, 0ms), transform .7s var(--bb-ease) var(--bb-delay, 0ms);
}
.bb-anim .bb-reveal.is-in,
.bb-anim .bb-products ul.products > li.is-in { opacity: 1; transform: none; }

/* Buttons */
.wp-block-button .wp-block-button__link {
	font-family: var(--bb-font-ui);
	font-weight: 600;
	border-radius: 999px;
	padding: .95em 1.9em;
	transition: transform .2s var(--bb-ease), box-shadow .2s var(--bb-ease), background .2s, color .2s;
}
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.bb-btn-primary .wp-block-button__link {
	background: #fff;
	color: var(--bb-chili-dark);
	box-shadow: 0 10px 24px rgba(90, 30, 0, .25);
}
.wp-block-button.bb-btn-primary .wp-block-button__link:hover { background: #ffe9c2; color: var(--bb-ember); }
.wp-block-button.bb-btn-ghost .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, .7);
}
.wp-block-button.bb-btn-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* =========================================================
   5. Hero
   ========================================================= */
.bb-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 40px) clamp(90px, 10vw, 140px) !important;
	background:
		radial-gradient(circle at 85% 20%, rgba(255, 182, 39, .55) 0, rgba(255, 182, 39, 0) 42%),
		radial-gradient(circle at 10% 90%, rgba(143, 45, 3, .55) 0, rgba(143, 45, 3, 0) 45%),
		linear-gradient(150deg, #f59d00 0%, #e84f09 42%, #c9400a 100%);
}
/* Soft spice-dust dots */
.bb-hero::before {
	content: "";
	position: absolute; inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.3px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(90deg, #000 0, transparent 60%);
	mask-image: linear-gradient(90deg, #000 0, transparent 60%);
	pointer-events: none;
}
.bb-hero > * { position: relative; }
/* Kadence wraps group content in an inner container; keep it static so the wave anchors to the hero itself. */
.bb-hero > .wp-block-group__inner-container { position: static; }
.bb-hero > .wp-block-group__inner-container > .wp-block-columns { position: relative; }
.bb-hero__cols { gap: clamp(24px, 5vw, 64px) !important; margin-bottom: 0 !important; }
.bb-hero h1 {
	color: #fff;
	font-size: clamp(2.5rem, 6.4vw, 4.6rem);
	line-height: 1.02;
	margin: .35em 0 .35em;
	text-shadow: 0 4px 24px rgba(90, 30, 0, .25);
}
.bb-hero__lead { color: #fff6e6; font-size: clamp(1.02rem, 1.8vw, 1.2rem); max-width: 34em; opacity: .96; }
.bb-pill {
	display: inline-flex; align-items: center; gap: .5em;
	font-family: var(--bb-font-ui);
	font-weight: 600; font-size: .85rem; letter-spacing: .04em;
	color: var(--bb-chili-dark);
	background: #fff;
	border-radius: 999px;
	padding: .45em 1em;
	margin: 0;
	box-shadow: 0 6px 18px rgba(90, 30, 0, .18);
}
.bb-pill::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--bb-leaf); box-shadow: 0 0 0 3px rgba(13, 163, 80, .25); }
.bb-hero__cta { margin: 1.8rem 0 1.6rem; gap: 12px; }
.bb-hero__facts {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-wrap: wrap; gap: 10px 26px;
	font-family: var(--bb-font-ui);
	font-size: .92rem;
	color: #fff3dd;
}
.bb-hero__facts strong { display: block; font-family: var(--bb-font-head); font-size: 1.6rem; line-height: 1; color: #fff; }

/* The plate */
.bb-plate {
	position: relative;
	width: min(100%, 520px);
	aspect-ratio: 1;
	margin: 0 auto;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 40px 80px rgba(90, 30, 0, .35), inset 0 -18px 40px rgba(232, 79, 9, .08);
	display: grid; place-items: center;
	animation: bb-float 6s ease-in-out infinite;
}
.bb-plate__img {
	width: 92%;
	border-radius: 50%;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: 45% 60%;
}
.bb-plate__ring {
	position: absolute; inset: -16px;
	border-radius: 50%;
	border: 2px dashed rgba(255, 255, 255, .55);
	animation: bb-spin 40s linear infinite;
}
.bb-sticker {
	position: absolute;
	font-family: var(--bb-font-head);
	font-weight: 800;
	line-height: 1;
	border-radius: 999px;
	box-shadow: 0 12px 28px rgba(90, 30, 0, .28);
	white-space: nowrap;
}
.bb-sticker--hot {
	top: 6%; left: -4%;
	background: var(--bb-saffron);
	color: var(--bb-brown);
	font-size: clamp(.95rem, 1.6vw, 1.15rem);
	padding: .7em 1.1em;
	transform: rotate(-8deg);
	animation: bb-bob 4s ease-in-out infinite;
}
.bb-sticker--veg {
	bottom: 8%; right: -2%;
	background: #fff;
	color: var(--bb-leaf);
	font-size: clamp(.9rem, 1.4vw, 1.05rem);
	padding: .65em 1em;
	display: inline-flex; align-items: center; gap: .45em;
	transform: rotate(5deg);
	animation: bb-bob 4.6s ease-in-out .6s infinite;
}
.bb-sticker--veg i {
	width: 1em; height: 1em; border: 2px solid var(--bb-leaf); border-radius: 3px;
	display: inline-grid; place-items: center;
}
.bb-sticker--veg i::after { content: ""; width: .45em; height: .45em; border-radius: 50%; background: var(--bb-leaf); }

/* Rising steam over the plate */
.bb-steam { position: absolute; top: -8%; left: 50%; transform: translateX(-50%); width: 40%; height: 30%; pointer-events: none; }
.bb-steam i {
	position: absolute; bottom: 0;
	width: 16px; height: 70%;
	border-radius: 50%;
	background: linear-gradient(to top, rgba(255, 255, 255, .0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
	filter: blur(6px);
	opacity: 0;
	animation: bb-steam 4.5s ease-in-out infinite;
}
.bb-steam i:nth-child(1) { left: 20%; }
.bb-steam i:nth-child(2) { left: 48%; animation-delay: 1.4s; }
.bb-steam i:nth-child(3) { left: 74%; animation-delay: 2.8s; }

/* Wavy bottom edge */
.bb-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 90px); display: block; }
.bb-wave path { fill: var(--bb-chili-dark); }

@keyframes bb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bb-spin { to { transform: rotate(360deg); } }
@keyframes bb-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes bb-steam {
	0% { opacity: 0; transform: translateY(20px) scaleX(1); }
	30% { opacity: .9; }
	100% { opacity: 0; transform: translateY(-50px) scaleX(1.6); }
}

/* =========================================================
   6. Marquee ticker
   ========================================================= */
.bb-marquee {
	background: var(--bb-chili-dark);
	color: #fff;
	overflow: hidden;
	padding: 14px 0 18px;
	margin-top: -1px;
}
.bb-marquee__track {
	display: flex; width: max-content; gap: 28px; align-items: center;
	font-family: var(--bb-font-head);
	font-weight: 800;
	font-size: clamp(1.2rem, 2.6vw, 1.8rem);
	white-space: nowrap;
	animation: bb-marquee 28s linear infinite;
}
.bb-marquee__track b { color: var(--bb-saffron); font-size: .7em; }
@keyframes bb-marquee { to { transform: translateX(-50%); } }

/* =========================================================
   7. Products (WooCommerce loop cards)
   ========================================================= */
.bb-products { background: var(--bb-cream); }
.bb-products .woocommerce { margin-top: 0; }
.woocommerce ul.products { gap: clamp(14px, 2.4vw, 28px); }
.woocommerce ul.products li.product,
.wc-block-grid__product {
	--bb-card: var(--bb-chili);
	--bb-card-2: var(--bb-turmeric);
	background: #fff;
	border-radius: var(--bb-radius);
	padding: 0 !important;
	overflow: hidden;
	box-shadow: var(--bb-shadow);
	text-align: center;
	transition: transform .35s var(--bb-ease), box-shadow .35s var(--bb-ease);
}
/* Pouch colour per product */
.woocommerce ul.products li.bb-p-vanela-gathiya-fafda-lot-450g { --bb-card: #f2c200; --bb-card-2: #fff04d; }
.woocommerce ul.products li.bb-p-besan-chutney-kadhi-50g { --bb-card: #8e1b24; --bb-card-2: #c8303c; }
.woocommerce ul.products li.bb-p-crunchy-french-fry-masala-160g { --bb-card: #0f73c6; --bb-card-2: #2aa0ea; }

.woocommerce ul.products li.product:hover { transform: translateY(-8px); box-shadow: var(--bb-shadow-lg); }
.woocommerce ul.products li.product .woocommerce-loop-image-link {
	display: block;
	background: radial-gradient(circle at 50% 35%, var(--bb-card-2), var(--bb-card));
	padding: 18px 18px 0;
	overflow: hidden;
}
.woocommerce ul.products li.product a img {
	border-radius: 12px 12px 0 0;
	margin: 0 !important;
	box-shadow: 0 -6px 24px rgba(0, 0, 0, .18);
	transition: transform .5s var(--bb-ease);
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.05) rotate(-1deg); }
.woocommerce ul.products li.product .product-details { padding: 16px 16px 20px; background: #fff; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: clamp(1.02rem, 1.6vw, 1.2rem);
	line-height: 1.2;
	padding: 0;
	margin: 0 0 .4em;
}
/* Kadence hides the card button until hover; marketplace buttons must always be visible (mobile has no hover). */
.woocommerce ul.products li.product .product-action-wrap {
	position: static !important;
	opacity: 1 !important;
	padding: 0 !important;
	margin-top: .6em;
	transform: none !important;
}
.woocommerce ul.products li.product .product-action-wrap .button {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: 0;
	font-family: var(--bb-font-ui);
	font-weight: 600;
	border-radius: 999px;
	background: var(--bb-cream);
	color: var(--bb-chili-dark);
	border: 2px solid var(--bb-sand);
	padding: .6em 1.2em;
	transition: background .2s, color .2s, border-color .2s;
}
.woocommerce ul.products li.product .product-action-wrap .button:hover { background: var(--bb-chili); border-color: var(--bb-chili); color: #fff; }
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price { color: var(--bb-chili); font-weight: 700; font-family: var(--bb-font-ui); }

/* Card price */
.woocommerce ul.products li.product .price { display: block; margin: .15em 0 .2em; font-size: 1.05rem; }
.woocommerce ul.products li.product .bb-price { justify-content: center; }
.woocommerce ul.products li.product .product-action-wrap .button.bb-buy-now { width: 100%; }

/* =========================================================
   7b. Product page
   ========================================================= */
.single-product .site-main { padding-top: clamp(8px, 2vw, 24px); }
.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
}
.single-product div.product > .woocommerce-product-gallery,
.single-product div.product > .summary { width: auto !important; float: none !important; margin: 0 !important; }
.single-product div.product > .bb-pd,
.single-product div.product > .related,
.single-product div.product > .upsells { grid-column: 1 / -1; }

/* Gallery: soft orange stage behind the pouch */
.single-product div.product .woocommerce-product-gallery {
	position: sticky; top: 110px;
	border-radius: 28px;
	overflow: hidden;
	padding: clamp(14px, 2.4vw, 28px);
	background:
		radial-gradient(circle at 50% 30%, rgba(255, 182, 39, .45), transparent 60%),
		linear-gradient(160deg, #fff1dc, #fde2c2);
	box-shadow: var(--bb-shadow);
}
.single-product div.product .woocommerce-product-gallery img { border-radius: 16px; }
.single-product div.product .flex-control-thumbs { display: flex; gap: 10px; margin-top: 12px !important; }
.single-product div.product .flex-control-thumbs li { width: 72px !important; }
.single-product div.product .flex-control-thumbs img { border-radius: 10px; opacity: .6; border: 2px solid transparent; transition: opacity .2s, border-color .2s; }
.single-product div.product .flex-control-thumbs img.flex-active,
.single-product div.product .flex-control-thumbs img:hover { opacity: 1; border-color: var(--bb-chili); }

/* Summary column */
.bb-pd-eyebrow {
	display: inline-block; margin: 0 0 .6rem;
	font-family: var(--bb-font-ui); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--bb-chili-dark); background: var(--bb-sand); border-radius: 999px; padding: .35em .9em;
}
.single-product div.product .product_title { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.02; margin-bottom: .3em; }
.single-product div.product .summary .price { font-size: 1.5rem; margin: .2em 0 .6em; }
.single-product div.product .woocommerce-product-details__short-description { font-size: 1.05rem; color: var(--bb-muted); }
.single-product div.product .woocommerce-product-details__short-description strong { color: var(--bb-brown); }

/* Buy box in the brand's voice */
.single-product .bb-buybox { background: #fff; border-radius: var(--bb-radius); padding: 20px; box-shadow: var(--bb-shadow); }
.single-product .bb-buybox__title { font-family: var(--bb-font-ui); }
.single-product .bb-buybox__name, .single-product .bb-buybox__price { font-family: var(--bb-font-head); }

/* Trust badges */
.bb-trust { list-style: none; margin: 18px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bb-trust li {
	display: flex; align-items: center; gap: 10px;
	font-family: var(--bb-font-ui); font-size: .88rem; font-weight: 600; color: var(--bb-brown);
	background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 4px 14px rgba(90, 38, 5, .07);
}
.bb-trust li::before {
	content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
	background: var(--bb-sand) center / 18px no-repeat;
}
.bb-trust__veg::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='2' y='2' width='16' height='16' rx='2' fill='none' stroke='%230da350' stroke-width='2'/%3E%3Ccircle cx='10' cy='10' r='4' fill='%230da350'/%3E%3C/svg%3E") !important; }
.bb-trust__since::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2l2.4 5 5.6.6-4.2 3.8 1.2 5.6L10 14.2 5 17l1.2-5.6L2 7.6 7.6 7z' fill='%23e84f09'/%3E%3C/svg%3E") !important; }
.bb-trust__fssai::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1l7 3v5c0 4.5-3 8-7 10-4-2-7-5.5-7-10V4z' fill='%23e84f09'/%3E%3Cpath d='M6.5 10l2.5 2.5 4.5-5' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E") !important; }
.bb-trust__fresh::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8' fill='none' stroke='%23e84f09' stroke-width='2'/%3E%3Cpath d='M10 5v5l3 2' stroke='%23e84f09' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important; }

/* Details: photo + cards */
.bb-pd {
	margin-top: clamp(24px, 5vw, 64px);
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
	gap: clamp(18px, 3vw, 32px);
	align-items: start;
}
.bb-pd__serve { margin: 0; position: sticky; top: 110px; border-radius: 24px; overflow: hidden; box-shadow: var(--bb-shadow-lg); background: #fff; }
.bb-pd__serve img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bb-pd__serve figcaption {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 40px 20px 18px; color: #fff;
	font-family: var(--bb-font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.2;
	background: linear-gradient(to top, rgba(40, 14, 0, .85), rgba(40, 14, 0, 0));
}
.bb-pd__cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 22px); align-items: start; }
.bb-pd__card {
	background: #fff; border-radius: var(--bb-radius); padding: 24px 24px 20px; box-shadow: var(--bb-shadow);
	border-top: 5px solid var(--bb-turmeric);
}
.bb-pd__card h3 { margin: 0 0 .6em; font-size: 1.35rem; }
.bb-pd__card p, .bb-pd__card li { color: var(--bb-muted); }
.bb-pd__card--how { grid-column: 1 / -1; border-top-color: var(--bb-chili); }
.bb-pd__card--how ol { counter-reset: bbstep; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bb-pd__card--how ol li { counter-increment: bbstep; position: relative; padding-left: 48px; min-height: 36px; }
.bb-pd__card--how ol li::before {
	content: counter(bbstep);
	position: absolute; left: 0; top: -2px;
	width: 34px; height: 34px; border-radius: 50%;
	display: grid; place-items: center;
	font-family: var(--bb-font-head); font-weight: 800; color: #fff;
	background: linear-gradient(145deg, var(--bb-turmeric), var(--bb-chili));
}
.bb-pd__card--nutrition table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 0; }
.bb-pd__card--nutrition td { padding: .45em .2em; border-bottom: 1px dashed #ecdcc8; }
.bb-pd__card--nutrition td:last-child { text-align: right; font-weight: 600; color: var(--bb-brown); }
.bb-pd__card--nutrition tr:first-child td { font-size: 1.1rem; font-weight: 700; color: var(--bb-chili-dark); }
.bb-pd__note { grid-column: 1 / -1; font-size: .85rem; color: var(--bb-muted); }
.bb-pd__note p { margin: 0; }

/* Related products */
.single-product .related { margin-top: clamp(40px, 7vw, 90px); }
.single-product .related > h2 { text-align: center; margin-bottom: 1.2em; }

@media (max-width: 1024px) {
	.bb-pd { grid-template-columns: 1fr; }
	.bb-pd__serve { position: relative; top: 0; }
	.bb-pd__serve img { aspect-ratio: 16 / 10; }
}
@media (max-width: 781px) {
	.single-product div.product { grid-template-columns: 1fr; gap: 18px; }
	.single-product div.product .woocommerce-product-gallery { position: relative; top: 0; }
	.single-product div.product .product_title { font-size: 2rem; }
	.bb-pd__cards { grid-template-columns: 1fr; }
	.bb-trust { grid-template-columns: 1fr 1fr; }
	.bb-trust li { font-size: .8rem; padding: 8px 10px; }
}

/* =========================================================
   8. Craving mosaic
   ========================================================= */
.bb-cravings { background: #fff; }
.bb-mosaic {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: clamp(170px, 18vw, 230px);
	gap: clamp(12px, 1.8vw, 20px);
	margin-top: 2.5rem;
}
.bb-tile {
	position: relative;
	display: block;
	border-radius: var(--bb-radius);
	overflow: hidden;
	background: var(--bb-sand);
	box-shadow: var(--bb-shadow);
	isolation: isolate;
	text-decoration: none;
	color: #fff;
}
.bb-tile--big { grid-column: span 2; grid-row: span 2; }
.bb-tile--tall { grid-row: span 2; }
.bb-tile img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .8s var(--bb-ease);
	z-index: -2;
}
.bb-tile::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(40, 14, 0, .85) 0%, rgba(40, 14, 0, .25) 45%, rgba(40, 14, 0, 0) 70%);
	z-index: -1;
}
.bb-tile:hover img { transform: scale(1.07); }
.bb-tile__text { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(14px, 2vw, 24px); }
.bb-tile__text strong { display: block; font-family: var(--bb-font-head); font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.05; color: #fff; }
.bb-tile--big .bb-tile__text strong { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.bb-tile__text em { display: block; font-style: normal; font-size: .92rem; color: #ffe9c9; margin-top: .3em; max-width: 30em; }
.bb-tile__go {
	display: inline-block;
	margin-top: .7em;
	font-family: var(--bb-font-ui);
	font-weight: 600; font-size: .85rem;
	background: var(--bb-chili);
	color: #fff;
	border-radius: 999px;
	padding: .45em 1em;
	transform: translateY(6px);
	opacity: .95;
	transition: transform .3s var(--bb-ease), background .2s;
}
.bb-tile:hover .bb-tile__go { transform: none; background: var(--bb-saffron); color: var(--bb-brown); }

/* =========================================================
   9. How to make – steps
   ========================================================= */
.bb-how {
	background:
		radial-gradient(circle at 0 0, rgba(245, 157, 0, .18), transparent 40%),
		radial-gradient(circle at 100% 100%, rgba(232, 79, 9, .12), transparent 40%),
		var(--bb-sand);
}
.bb-steps {
	list-style: none; margin: 3.4rem 0 0 !important; padding: 0 !important;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 32px);
	counter-reset: none;
}
.bb-step {
	position: relative;
	background: #fff;
	border-radius: var(--bb-radius);
	padding: 44px 26px 28px;
	box-shadow: var(--bb-shadow);
	text-align: center;
}
.bb-step__num {
	position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
	width: 56px; height: 56px; border-radius: 50%;
	display: grid; place-items: center;
	font-family: var(--bb-font-head); font-weight: 800; font-size: 1.6rem;
	color: #fff;
	background: linear-gradient(145deg, var(--bb-turmeric), var(--bb-chili));
	box-shadow: 0 10px 20px rgba(232, 79, 9, .35);
}
.bb-step h3 { margin: .2em 0 .35em; }
.bb-step p { margin: 0; color: var(--bb-muted); }

/* =========================================================
   10. Promise cards
   ========================================================= */
.bb-values { background: var(--bb-cream); }
.bb-values .wp-block-columns { gap: clamp(16px, 3vw, 32px) !important; margin-top: 2.2rem; }
.bb-values .wp-block-column {
	background: #fff; border-radius: var(--bb-radius); padding: 30px 28px; box-shadow: var(--bb-shadow);
	border-top: 5px solid var(--bb-chili);
	transition: transform .35s var(--bb-ease), box-shadow .35s var(--bb-ease);
}
.bb-values .wp-block-column:hover { transform: translateY(-6px); box-shadow: var(--bb-shadow-lg); }
.bb-values .wp-block-column p { color: var(--bb-muted); }
.bb-values .bb-icon {
	width: 64px; height: 64px; border-radius: 18px;
	display: grid; place-items: center;
	font-size: 2rem; line-height: 1; margin: 0 0 .9rem;
	background: var(--bb-sand);
}

/* =========================================================
   11. Journey timeline
   ========================================================= */
.bb-journey { background: #fff; }
.bb-timeline { position: relative; margin-top: 2.5rem; }
.bb-timeline::before {
	content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 4px;
	background: linear-gradient(var(--bb-turmeric), var(--bb-chili));
	border-radius: 4px;
}
.bb-timeline .bb-milestone { position: relative; padding-left: 64px; margin-bottom: 2.2rem; }
.bb-timeline .bb-milestone::before {
	content: ""; position: absolute; left: 11px; top: 6px; width: 26px; height: 26px;
	border-radius: 50%; background: #fff; border: 5px solid var(--bb-chili);
	box-shadow: 0 0 0 6px rgba(232, 79, 9, .12);
}
.bb-milestone .bb-year { font-family: var(--bb-font-head); font-weight: 800; color: var(--bb-chili); font-size: 1.5rem; margin: 0; line-height: 1; }
.bb-milestone h3 { margin: .3rem 0 .4rem; }
.bb-milestone p { margin: 0; color: var(--bb-muted); }
@media (min-width: 900px) {
	.bb-timeline::before { left: 50%; transform: translateX(-50%); }
	.bb-timeline .bb-milestone { width: 50%; padding-left: 0; padding-right: 52px; text-align: right; }
	.bb-timeline .bb-milestone::before { left: auto; right: -13px; }
	.bb-timeline .bb-milestone:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 52px; text-align: left; }
	.bb-timeline .bb-milestone:nth-child(even)::before { right: auto; left: -13px; }
}

/* =========================================================
   12. Marketplace strip & export CTA
   ========================================================= */
.bb-marketplaces { background: var(--bb-cream); text-align: center; }
.bb-marketplaces .bb-market-logos { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.bb-export {
	background:
		radial-gradient(circle at 90% 10%, rgba(255, 182, 39, .35), transparent 40%),
		linear-gradient(150deg, var(--bb-chili) 0%, var(--bb-ember) 100%);
	color: #fff;
	overflow: hidden;
}
.bb-export h2, .bb-export h3 { color: #fff; }
.bb-export p { color: #ffe9d6; font-size: 1.08rem; }
.bb-export .wp-block-button .wp-block-button__link { background: #fff; color: var(--bb-chili-dark); box-shadow: 0 10px 24px rgba(60, 20, 0, .3); }
.bb-export .wp-block-button .wp-block-button__link:hover { background: #ffe9c2; }

/* =========================================================
   13. Inner pages (Export, Contact) & forms
   ========================================================= */
.page:not(.home) .entry-content > .bb-section:first-child { padding-top: clamp(32px, 6vw, 64px) !important; }
.bb-inquiry { border-top: 5px solid var(--bb-chili); }
.bb-inquiry input, .bb-inquiry textarea { border-radius: 12px !important; border-color: #ead9c3 !important; }
.bb-inquiry__submit {
	background: var(--bb-chili) !important;
	border-radius: 999px !important;
	font-family: var(--bb-font-ui);
	font-weight: 600;
	padding: .9em 2em !important;
	box-shadow: 0 10px 20px rgba(232, 79, 9, .3);
}
.bb-inquiry__submit:hover { background: var(--bb-chili-dark) !important; }

/* =========================================================
   14. Footer
   ========================================================= */
.site-footer .site-footer-wrap,
.site-footer .site-bottom-footer-wrap,
.site-footer .site-footer-row-container-inner {
	background: var(--bb-brown) !important;
	color: #f3dcc3;
}
.site-footer .footer-html { font-size: .92rem; line-height: 1.8; text-align: center; }
.site-footer a { color: #ffc46b; white-space: nowrap; }
.site-footer a:hover { color: #fff; }
.bb-legal { font-size: .85rem; color: var(--bb-muted); }

/* Floating WhatsApp button: sit above the bottom edge on phones */
.bb-wa { box-shadow: 0 12px 28px rgba(0, 0, 0, .25) !important; }

/* =========================================================
   15. Responsive
   ========================================================= */
@media (max-width: 1024px) {
	.bb-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(160px, 30vw, 240px); }
	.bb-tile--tall { grid-row: span 2; }
}
@media (max-width: 781px) {
	/* Hero: photo first, big and centred */
	.bb-hero { text-align: center; padding-top: 28px !important; }
	.bb-hero__cols { flex-direction: column-reverse; }
	.bb-hero__media { width: 100%; }
	.bb-plate { width: min(78vw, 360px); margin-bottom: 8px; }
	.bb-sticker--hot { left: -6%; }
	.bb-sticker--veg { right: -6%; }
	.bb-pill { margin-top: 1rem; }
	.bb-hero__lead { margin-left: auto; margin-right: auto; }
	.bb-hero__cta { justify-content: center; }
	.bb-hero__facts { justify-content: center; }

	.bb-steps { grid-template-columns: 1fr; gap: 44px; }
	.bb-values .wp-block-column { text-align: center; }
	.bb-values .bb-icon { margin-left: auto; margin-right: auto; }

	/* Products: two per row on phones */
	.woocommerce ul.products,
	.woocommerce ul.products.columns-4,
	.woocommerce ul.products.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.woocommerce ul.products li.product .woocommerce-loop-image-link { padding: 12px 12px 0; }
	.woocommerce ul.products li.product .product-details { padding: 12px 10px 14px; }
	.woocommerce ul.products li.product .product-action-wrap .button { font-size: .82rem; padding: .55em .9em; }
	.bb-buy--loop .bb-buy__btn { flex-basis: 100%; }
}
@media (max-width: 520px) {
	.bb-hero__cta .wp-block-button { flex: 1 1 100%; }
	.bb-hero__cta .wp-block-button__link { width: 100%; }
	.bb-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; }
	.bb-tile--big { grid-column: span 2; grid-row: span 1; }
	.bb-tile--big { grid-row: span 2; }
	.bb-tile__text em { display: none; }
	.bb-tile--big .bb-tile__text em { display: block; }
}

/* Respect reduced-motion: stop decorative animation */
@media (prefers-reduced-motion: reduce) {
	.bb-plate, .bb-plate__ring, .bb-sticker, .bb-steam i, .bb-marquee__track { animation: none !important; }
	.bb-steam { display: none; }
}
