/**
 * Tazbi Food Core: single product page.
 * Values follow the reference design (_design/Barir Bazar Product.dc.html).
 * Breadcrumb + share, gallery, summary / buy box, tabs, reviews, buy-now band,
 * section heading, recently viewed row, sticky bar on phones.
 */

:root {
	--bbp-green: var(--bb-green, #3f7a23);
	--bbp-green-hover: #32621c;
	--bbp-gold: var(--bb-gold, #5ea13a);
	--bbp-gold-hover: var(--bb-gold-hover, #4f8e2f);
	--bbp-gold-text: var(--bb-gold-text, #3f7a23);
	--bbp-gold-light: var(--bb-gold-light, #ecf4e7);
	--bbp-sand: var(--bb-sand, #f2f8ef);
	--bbp-cream: var(--bb-cream, #ffffff);
	--bbp-white: var(--bb-white, #fff);
	--bbp-text: #222222;
	--bbp-muted: var(--bb-text-muted, #4d4d4d);
	--bbp-soft: var(--bb-text-soft, #5c5c5c);
	--bbp-strike: var(--bb-text-strike, #6b6b6b);
	--bbp-border: var(--bb-border, #e5f0e0);
	--bbp-border-strong: var(--bb-border-strong, #dcead4);
	--bbp-border-card: var(--bb-border-card, #ecf4e7);
	--bbp-border-button: var(--bb-border-button, #cfe3c4);
	--bbp-red: var(--bb-red, #c8432e);
	--bbp-success: var(--bb-success, #3f7a23);
	--bbp-heading: var(--bb-font-heading, "Andika", sans-serif);
	--bbp-bangla: var(--bb-font-body, "Andika", sans-serif);
}

/* ---------- Animated call-to-action (Buy Now) ---------- */

@keyframes bb-buy-pulse {
	0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(94, 161, 58, 0.55); }
	50% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(94, 161, 58, 0); }
}

@keyframes bb-buy-shine {
	0%, 60% { transform: translateX(-120%) skewX(-20deg); }
	100% { transform: translateX(320%) skewX(-20deg); }
}

@keyframes bb-buy-icon {
	0%, 70%, 100% { transform: translateY(0); }
	78% { transform: translateY(-4px); }
	86% { transform: translateY(0); }
	92% { transform: translateY(-2px); }
}

.bb-pulse {
	position: relative;
	overflow: hidden;
	animation: bb-buy-pulse 2s ease-in-out infinite;
}

.bb-pulse__shine {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 35%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
	pointer-events: none;
	animation: bb-buy-shine 2.8s ease-in-out infinite;
}

.bb-pulse__icon {
	position: relative;
	animation: bb-buy-icon 2.8s ease-in-out infinite;
}

.bb-pulse__text {
	position: relative;
}

/* ---------- Gallery (WooCommerce gallery inside Elementor's Product Images widget) ---------- */

.woocommerce div.product div.images,
.elementor-widget-woocommerce-product-images div.images {
	position: relative;
	float: none;
	width: 100%;
	margin: 0;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .flex-viewport {
	overflow: hidden;
	border: 1px solid var(--bbp-border);
	border-radius: 20px;
	background: var(--bbp-white);
}

.woocommerce div.product div.images .flex-viewport .woocommerce-product-gallery__wrapper {
	border: 0;
	border-radius: 0;
}

.woocommerce div.product div.images img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image a {
	cursor: zoom-in;
}

/* Zoom button look. WooCommerce only adds a real button when hover-zoom is on (the design
   has none); clicking the image opens the lightbox, so this is a visual hint only. */
.woocommerce div.product div.images.woocommerce-product-gallery--with-images::after {
	content: "";
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	width: 44px;
	height: 44px;
	border: 1px solid var(--bbp-border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%23041f1e'%3E%3Cpath d='M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.500-75.500T120-580q0-109 75.500-184.500T380-840q109 0 184.500 75.500T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.500-52.500T560-580q0-75-52.500-127.500T380-760q-75 0-127.500 52.500T200-580q0 75 52.500 127.500T380-400Zm-40-60v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80Z'/%3E%3C/svg%3E") center / 22px no-repeat;
	pointer-events: none;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	display: none;
}

.woocommerce div.product div.images .flex-direction-nav {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The arrows are centred on the main image, which is as tall as the gallery is wide. */
.woocommerce div.product div.images.woocommerce-product-gallery {
	container-type: inline-size;
}

.woocommerce div.product div.images .flex-direction-nav a {
	position: absolute;
	top: 0;
	z-index: 2;
	width: 44px;
	height: 44px;
	margin-top: calc(50cqw - 22px);
	border-radius: 50%;
	background: var(--bbp-white) center / 24px no-repeat;
	box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.3);
	font-size: 0;
	transition: background-color 0.2s ease;
}

.woocommerce div.product div.images .flex-direction-nav .flex-prev {
	left: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%23041f1e'%3E%3Cpath d='M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z'/%3E%3C/svg%3E");
}

.woocommerce div.product div.images .flex-direction-nav .flex-next {
	right: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%23041f1e'%3E%3Cpath d='M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z'/%3E%3C/svg%3E");
}

.woocommerce div.product div.images .flex-direction-nav a:hover {
	background-color: var(--bbp-gold);
}

.woocommerce div.product div.images .flex-direction-nav .flex-disabled {
	opacity: 0.45;
	pointer-events: none;
}

.woocommerce div.product div.images .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 14px 0 0;
	padding: 0;
}

.woocommerce div.product div.images .flex-control-thumbs li {
	position: relative;
	float: none;
	width: clamp(72px, 9vw, 100px);
	margin: 0;
	list-style: none;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
	border: 2px solid var(--bbp-border);
	border-radius: 12px;
	background: var(--bbp-white);
	opacity: 1;
	cursor: pointer;
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
	border-color: var(--bbp-green);
}

/* Tick on the selected thumbnail. */
.woocommerce div.product div.images .flex-control-thumbs li:has(img.flex-active)::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 26px;
	height: 26px;
	margin: auto;
	border-radius: 50%;
	background: var(--bbp-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%23d9be8f'%3E%3Cpath d='M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z'/%3E%3C/svg%3E") center / 18px no-repeat;
	pointer-events: none;
}

/* ---------- Summary ---------- */

.bb-pd {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.bb-pd__stock {
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--bbp-sand);
	color: var(--bbp-gold-text);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-transform: uppercase;
}

.bb-pd__stock--low {
	background: var(--bb-warning-tint, #fff4d6);
	color: var(--bb-warning, #8a6100);
}

.bb-pd__stock--out {
	background: var(--bb-red-tint, #f7e3de);
	color: #a83523; /* Darker than the badge red: 5.6:1 on the pink tint. */
}

/* WooCommerce's form: subtotal + quantity row, then the two buttons. */
.woocommerce div.product .bb-pd form.cart,
.bb-pd .bb-pd__form .woocommerce-variation-add-to-cart {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 12px;
	margin: 0;
}

.woocommerce div.product .bb-pd form.variations_form {
	display: block;
}

.bb-pd__box {
	display: flex;
	flex-wrap: wrap;
	grid-column: 1 / -1;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
	border-top: 1px solid var(--bbp-border);
	border-bottom: 1px solid var(--bbp-border);
}

.bb-pd__box-label {
	display: block;
	margin-bottom: 8px;
	color: var(--bbp-muted);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.bb-pd__subtotal-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}

.bb-pd__subtotal-value {
	color: var(--bbp-green);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
}

.bb-pd__save {
	padding: 3px 9px;
	border: 1px solid var(--bbp-gold);
	border-radius: 6px;
	color: var(--bbp-gold-text);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.woocommerce div.product .bb-pd form.cart div.quantity,
.bb-pd .bb-pd__qty .quantity {
	display: flex;
	float: none;
	align-items: center;
	height: 48px;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--bbp-border-strong);
	border-radius: 12px;
	background: var(--bbp-white);
}

.woocommerce div.product .bb-pd form.cart div.quantity .qty,
.bb-pd .bb-pd__qty .quantity .qty {
	width: 44px;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--bbp-green);
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	box-shadow: none;
	-moz-appearance: textfield;
	appearance: textfield;
}

.bb-pd .quantity .qty::-webkit-outer-spin-button,
.bb-pd .quantity .qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.bb-pd .bb-step {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--bbp-green);
	font-size: 20px;
	cursor: pointer;
}

.bb-pd .bb-step:hover {
	background: var(--bbp-sand);
}

/* Add to Cart: gold. */
.woocommerce div.product .bb-pd form.cart .button {
	display: flex;
	float: none;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	height: 54px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background-color: var(--bbp-gold);
	color: var(--bb-on-gold, #000000);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	opacity: 1;
	transition: background-color 0.2s ease;
}

.woocommerce div.product .bb-pd form.cart .button:hover {
	background-color: var(--bbp-gold-hover);
	color: var(--bb-on-gold, #000000);
}

.woocommerce div.product .bb-pd form.cart .single_add_to_cart_button::before {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%23041f1e'%3E%3Cpath d='M440-600v-120H320v-80h120v-120h80v120h120v80H520v120h-80ZM280-80q-33 0-56.500-23.500T200-160q0-33 23.500-56.500T280-240q33 0 56.500 23.500T360-160q0 33-23.500 56.500T280-80Zm400 0q-33 0-56.500-23.500T600-160q0-33 23.500-56.500T680-240q33 0 56.500 23.500T760-160q0 33-23.500 56.500T680-80ZM40-800v-80h131l170 360h280l156-280h91L692-482q-11 20-29.500 31T622-440H324l-44 80h480v80H280q-45 0-68.500-39t-1.500-79l54-98-144-304H40Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Buy Now: dark green with the pulse, shine and bouncing icon. */
.woocommerce div.product .bb-pd form.cart .button.bb-pd__buy {
	--bbp-buy: var(--bbp-green);
	position: relative;
	overflow: hidden;
	background-color: var(--bbp-buy);
	color: var(--bbp-sand);
}

.woocommerce div.product .bb-pd form.cart .button.bb-pd__buy:hover {
	background-color: var(--bbp-green-hover);
	color: var(--bbp-sand);
}

.bb-pd__buy .bb-icon {
	font-size: 22px;
}

.woocommerce div.product .bb-pd form.cart .button.disabled,
.woocommerce div.product .bb-pd form.cart .button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	animation: none;
}

/* Variable products: the option selectors above the box. */
.woocommerce div.product .bb-pd form.cart .variations {
	width: 100%;
	margin: 0 0 16px;
	border: 0;
}

.bb-pd table.variations th,
.bb-pd table.variations td {
	display: block;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
}

.bb-pd table.variations th label {
	display: block;
	margin-bottom: 8px;
	color: var(--bbp-muted);
	font-size: 14px;
	font-weight: 500;
}

.bb-pd table.variations select {
	width: 100%;
	max-width: 320px;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--bbp-border-strong);
	border-radius: 12px;
	background-color: var(--bbp-white);
	color: var(--bbp-green);
	font-size: 15px;
}

/* Variation buttons (includes/product-page.php): WooCommerce's select stays in
   the form for its script, out of sight; the buttons drive it. */
select[data-bb-swatch-select] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden;
	clip: rect(0 0 0 0);
	opacity: 0;
	pointer-events: none;
}

.bb-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bb-swatch,
.woocommerce .bb-swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 72px;
	height: 44px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid var(--bbp-border-button, #cfe3c4);
	border-radius: 999px;
	background: var(--bbp-white, #fff);
	color: var(--bbp-green, #3f7a23);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bb-swatch:hover,
.bb-swatch:focus-visible {
	border-color: var(--bbp-green, #3f7a23);
	background: var(--bbp-white, #fff);
	color: var(--bbp-green, #3f7a23);
}

.bb-swatch:focus-visible {
	outline: 2px solid var(--bbp-gold, #5ea13a);
	outline-offset: 2px;
}

.bb-swatch.is-selected,
.bb-swatch.is-selected:hover {
	border-color: var(--bbp-green, #3f7a23);
	background: var(--bbp-green, #3f7a23);
	color: var(--bbp-sand, #f2f8ef);
}

/* Out of stock: still choosable (WooCommerce then says so), crossed out. */
.bb-swatch.is-out {
	border-style: dashed;
	color: #8a8a8a;
	text-decoration: line-through;
}

.bb-swatch.is-out.is-selected {
	border-style: solid;
	color: var(--bbp-sand, #f2f8ef);
}

.bb-swatch[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
}

.bb-pd .reset_variations {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
}

.bb-pd .woocommerce-variation-price {
	margin-bottom: 10px;
	color: var(--bbp-green);
	font-size: 20px;
	font-weight: 600;
}

/* The chosen size's price: current price first, the old one struck through after it. */
.bb-pd .woocommerce-variation-price .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	margin: 0;
	color: var(--bbp-green);
}

.bb-pd .woocommerce-variation-price ins {
	order: 1;
	color: var(--bbp-green);
	text-decoration: none;
}

.bb-pd .woocommerce-variation-price del {
	order: 2;
	color: var(--bbp-strike);
	font-size: 15px;
	font-weight: 400;
	opacity: 1;
}

.bb-pd .woocommerce-variation-availability p {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
}

.bb-pd .stock.out-of-stock {
	color: #a83523;
}

/* In stock / backorder: WooCommerce prints them olive (#958e09, 3.4:1); brand dark green. */
.woocommerce div.product .bb-pd .stock:not(.out-of-stock) {
	color: var(--bbp-green);
}

/* Call + WhatsApp: same grid rhythm as the two buttons above (12px apart). */

/* ---------- Tabs ---------- */

/* Tab bar: a white card holding the two tab buttons. */
.woocommerce div.product .woocommerce-tabs ul.tabs,
.elementor-widget-woocommerce-product-data-tabs.elementor-widget .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
	padding: 8px;
	overflow: visible;
	border: 1px solid var(--bbp-border-card);
	border-radius: 14px;
	background: var(--bbp-white);
	box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.3);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	content: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li,
.elementor-widget-woocommerce-product-data-tabs.elementor-widget .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--bbp-sand);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a,
.elementor-widget-woocommerce-product-data-tabs.elementor-widget .woocommerce-tabs ul.tabs li a {
	display: flex;
	align-items: center;
	height: 44px;
	padding: 0 20px;
	border-radius: 10px;
	color: var(--bbp-muted);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active,
.elementor-widget-woocommerce-product-data-tabs.elementor-widget .woocommerce-tabs ul.tabs li.active {
	background: var(--bbp-green);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.elementor-widget-woocommerce-product-data-tabs.elementor-widget .woocommerce-tabs ul.tabs li.active a {
	color: var(--bbp-sand);
}

.woocommerce div.product .woocommerce-tabs .panel,
.elementor-widget-woocommerce-product-data-tabs.elementor-widget .woocommerce-tabs .panel {
	margin: 0;
	padding: clamp(22px, 3vw, 40px);
	border: 1px solid var(--bbp-border-card);
	border-radius: 16px;
	background: var(--bbp-white);
	color: var(--bbp-text);
	font-size: 15px;
	line-height: 1.8;
}

.woocommerce div.product .woocommerce-tabs .panel > p,
.woocommerce div.product .woocommerce-tabs .panel > ul {
	max-width: 880px;
	margin: 0 0 18px;
	text-wrap: pretty;
}

.woocommerce div.product .woocommerce-tabs .panel > :last-child {
	margin-bottom: 0;
}

/* Small underlined heading ("Product details", "Submit your review"). */
.woocommerce div.product .woocommerce-tabs .panel h2 {
	display: table;
	margin: 0 0 18px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--bbp-gold);
	color: var(--bbp-green);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.woocommerce div.product .woocommerce-tabs .panel h3 {
	margin: 6px 0 12px;
	color: var(--bbp-green);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
}

.woocommerce div.product .woocommerce-tabs .panel ul.bb-specs {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-left: 20px;
}

/* ---------- Reviews ---------- */

.bb-reviews {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.bb-reviews__top {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	align-items: start;
	gap: clamp(28px, 4vw, 56px);
}

.bb-revsum {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bb-revsum__score {
	display: flex;
	align-items: center;
	gap: 16px;
}

.bb-revsum__avg {
	color: var(--bbp-green);
	font-size: 56px;
	font-weight: 600;
	line-height: 1;
}

.bb-revsum__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bb-revsum__label {
	color: var(--bbp-muted);
	font-size: 14px;
	line-height: 1.4;
}

.bb-revsum__stars {
	display: flex;
	align-items: center;
	gap: 6px;
}

.bb-revsum__count {
	color: var(--bbp-strike);
	font-size: 13px;
}

.bb-stars {
	position: relative;
	display: inline-block;
	flex: none;
	width: 90px;
	height: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%23e6dcc8'%3E%3Cpath d='m233-120 65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Z'/%3E%3C/svg%3E") 0 0 / 18px 18px repeat-x;
}

.bb-stars__fill {
	position: absolute;
	inset: 0 auto 0 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%23a98554'%3E%3Cpath d='m233-120 65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Z'/%3E%3C/svg%3E") 0 0 / 18px 18px repeat-x;
}

.bb-stars--sm {
	width: 80px;
	height: 16px;
	background-size: 16px 16px;
}

.bb-stars--sm .bb-stars__fill {
	background-size: 16px 16px;
}

.bb-revsum__recommend {
	display: flex;
	align-items: baseline;
	gap: 10px;
	color: var(--bbp-muted);
	font-size: 14px;
}

.bb-revsum__recommend strong {
	color: var(--bbp-green);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
}

.bb-revsum__of {
	color: var(--bbp-strike);
}

.bb-revsum__bars {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-revsum__bars li {
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr) 44px;
	align-items: center;
	gap: 12px;
	color: var(--bbp-muted);
	font-size: 13px;
}

.bb-revsum__star {
	display: flex;
	align-items: center;
	gap: 4px;
}

.bb-revsum__star .bb-icon {
	color: var(--bbp-gold);
	font-size: 16px;
}

.bb-revsum__bar {
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--bbp-sand);
}

.bb-revsum__bar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--bbp-gold);
}

.bb-revsum__pct {
	text-align: right;
}

/* Form. */
.woocommerce #review_form #respond,
.bb-reviews #respond {
	margin: 0;
	padding: 0;
	background: transparent;
}

.woocommerce div.product .woocommerce-tabs .panel .bb-reviews #respond .bb-revform__title {
	display: table;
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--bbp-gold);
	color: var(--bbp-green);
	font-family: inherit;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
}

.bb-reviews #respond .bb-revform__title small {
	display: none;
}

.bb-reviews .bb-revform {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 12px;
}

.bb-reviews .bb-revform > * {
	grid-column: 1 / -1;
	min-width: 0;
	margin: 0;
}

.bb-reviews .bb-revform > .comment-form-author,
.bb-reviews .bb-revform > .comment-form-email {
	grid-column: auto;
}

.bb-reviews .bb-revform .comment-notes {
	color: var(--bbp-soft);
	font-size: 14px;
	line-height: 1.6;
}

.bb-reviews .bb-revform label,
.bb-upload__label {
	display: block;
	margin: 0 0 6px;
	color: var(--bbp-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

.woocommerce .bb-reviews #respond input[type="text"],
.woocommerce .bb-reviews #respond input[type="email"],
.woocommerce .bb-reviews #respond textarea {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--bbp-border-strong);
	border-radius: 10px;
	background: var(--bbp-cream);
	color: var(--bb-text, #000000);
	font-family: inherit;
	font-size: 14px;
	box-shadow: none;
}

.woocommerce .bb-reviews #respond textarea {
	height: auto;
	padding: 12px 14px;
	line-height: 1.6;
	resize: vertical;
}

.woocommerce .bb-reviews #respond input:focus-visible,
.woocommerce .bb-reviews #respond textarea:focus-visible {
	outline: 2px solid var(--bbp-gold);
	outline-offset: 2px;
}

.bb-reviews .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--bbp-soft);
	font-size: 13px;
}

.bb-reviews .bb-revform .comment-form-cookies-consent label {
	margin: 0;
	color: inherit;
	font-size: inherit;
}

/* Photo box. */
.bb-reviews .bb-revform .bb-upload__drop {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 24px;
	border: 2px dashed var(--bbp-border-button);
	border-radius: 12px;
	background: var(--bbp-cream);
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.bb-reviews .bb-revform .bb-upload__drop.is-over,
.bb-reviews .bb-revform .bb-upload__drop:hover,
.bb-reviews .bb-revform .bb-upload__drop:focus-within {
	border-color: var(--bbp-gold);
}

.bb-upload__drop input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.bb-upload__drop .bb-icon {
	color: var(--bbp-gold);
	font-size: 34px;
}

.bb-upload__drop strong {
	color: var(--bbp-green);
	font-size: 14px;
	font-weight: 600;
}

.bb-upload__drop small {
	color: var(--bbp-strike);
	font-size: 13px;
}

.bb-upload__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.bb-upload__list:empty {
	display: none;
}

.bb-upload__item {
	position: relative;
	width: 72px;
	height: 72px;
	border: 1px solid var(--bbp-border);
	border-radius: 10px;
	background: var(--bbp-white) center / cover no-repeat;
}

.bb-upload .bb-upload__remove {
	position: absolute;
	top: -8px;
	right: -8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--bbp-green);
	color: #fff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.bb-upload__error {
	margin: 8px 0 0;
	color: var(--bbp-red);
	font-size: 14px;
}

/* Rating + submit row. */
.bb-revform__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
}

.bb-reviews .bb-revform__foot .comment-form-rating,
.bb-reviews .bb-revform__foot .form-submit {
	margin: 0;
}

.woocommerce .bb-reviews #respond p.stars {
	margin: 0;
	line-height: 1;
}

.woocommerce .bb-reviews #respond p.stars span {
	display: flex;
	gap: 2px;
}

.woocommerce .bb-reviews #respond p.stars a {
	position: relative;
	width: 40px;
	height: 40px;
	overflow: hidden;
	color: transparent;
	font-size: 0;
	text-indent: 0;
}

/* Every star starts gold; the stars after the hovered or chosen one turn pale. */
.woocommerce .bb-reviews #respond p.stars a::before {
	content: "";
	position: absolute;
	inset: 5px;
	width: auto;
	height: auto;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%23a98554'%3E%3Cpath d='m233-120 65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.woocommerce .bb-reviews #respond p.stars:not(.selected):not(:hover) a::before,
.woocommerce .bb-reviews #respond p.stars.selected:not(:hover) a.active ~ a::before,
.woocommerce .bb-reviews #respond p.stars:hover a:hover ~ a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%23e6dcc8'%3E%3Cpath d='m233-120 65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Z'/%3E%3C/svg%3E");
}

.woocommerce .bb-reviews #respond .form-submit input.submit,
.woocommerce .bb-reviews #respond .form-submit .submit {
	height: 48px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--bbp-green);
	color: var(--bbp-sand);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
}

.woocommerce .bb-reviews #respond .form-submit .submit:hover {
	background: var(--bbp-green-hover);
}

/* List. */
.bb-reviews__list {
	padding-top: 24px;
	border-top: 1px solid var(--bbp-border);
}

.woocommerce div.product .woocommerce-tabs .panel ul.bb-reviews__items {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: none;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-reviews__none {
	margin: 0;
	color: var(--bbp-soft);
}

.bb-review__inner {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 16px;
}

.bb-review__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--bbp-sand);
	color: var(--bbp-gold-text);
	font-size: 20px;
	font-weight: 600;
}

.bb-review__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
}

.bb-review__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
}

.bb-review__name {
	color: var(--bbp-gold-text);
	font-size: 16px;
	font-weight: 600;
}

.bb-review__meta time {
	color: var(--bbp-strike);
	font-size: 13px;
}

.bb-review__verified {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--bb-success-tint, #ecf4e7);
	color: var(--bbp-success);
	font-size: 11px;
	font-weight: 600;
}

.bb-review__text {
	color: var(--bbp-text);
	font-size: 15px;
	line-height: 1.65;
}

.bb-review__text p {
	margin: 0;
}

.bb-review__pending {
	margin: 0;
	color: var(--bbp-success);
	font-size: 14px;
}

.bb-review__images {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bb-review .bb-review__img {
	display: block;
	width: 64px;
	height: 64px;
	border: 1px solid var(--bbp-border);
	border-radius: 8px;
	object-fit: cover;
}

/* ---------- Recently viewed row (the section heading is in sections.css) ---------- */

.bb-recentrow[hidden] {
	display: none;
}

.bb-recentrow {
	display: flex;
	flex-direction: column;
	gap: clamp(20px, 3vw, 32px);
}

.bb-recentrow__nav {
	display: flex;
	gap: 8px;
}

.bb-recentrow .bb-recentrow__nav button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--bbp-gold);
	color: #fff;
	font-size: 24px;
	cursor: pointer;
}

.bb-recentrow .bb-recentrow__nav button:hover {
	background: var(--bbp-green);
	color: #fff;
}

.bb-recentrow__list {
	display: flex;
	gap: var(--bb-gap, clamp(12px, 1.6vw, 20px));
	padding: 4px 0 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.bb-recentrow__list::-webkit-scrollbar {
	display: none;
}

.bb-recent__card {
	flex: 0 0 clamp(160px, 22vw, 260px);
	scroll-snap-align: start;
}


/* ---------- Sticky add-to-cart bar (phones) ---------- */

.bb-pdbar {
	position: fixed;
	right: 0;
	bottom: calc(64px + env(safe-area-inset-bottom));
	left: 0;
	z-index: 54;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	border-top: 1px solid var(--bbp-border);
	background: var(--bbp-white);
	box-shadow: 0 -8px 24px -14px rgba(0, 0, 0, 0.4);
}

.bb-pdbar[hidden] {
	display: none;
}

.bb-pdbar__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.bb-pdbar__name {
	overflow: hidden;
	color: var(--bbp-green);
	font-size: 13px;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bb-pdbar__price {
	color: var(--bbp-gold-text);
	font-size: 14px;
	font-weight: 600;
}

.bb-pdbar__price del {
	margin-right: 4px;
	color: var(--bbp-strike);
	font-size: 12px;
	font-weight: 400;
}

.bb-pdbar__price ins {
	text-decoration: none;
}

.bb-pdbar .bb-pdbar__btn {
	display: flex;
	flex: none;
	align-items: center;
	gap: 6px;
	height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: var(--bbp-gold);
	color: var(--bb-on-gold, #000000);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.bb-pdbar__btn .bb-icon {
	font-size: 18px;
}

@media (min-width: 768px) {
	.bb-pdbar {
		display: none;
	}
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.bb-pulse,
	.bb-pulse__shine,
	.bb-pulse__icon {
		animation: none;
	}

	.bb-pulse__shine {
		display: none;
	}
}

/* ---------- Overrides that must out-rank WooCommerce / Elementor Pro defaults ---------- */

/* WooCommerce's clearfix pseudo-elements would become empty grid rows in the buy form. */
.woocommerce div.product .bb-pd form.cart::before,
.woocommerce div.product .bb-pd form.cart::after,
.woocommerce div.product .bb-pd .woocommerce-variation-add-to-cart::before,
.woocommerce div.product .bb-pd .woocommerce-variation-add-to-cart::after {
	content: none;
	display: none;
}

/* Elementor Pro flattens the tab panel (no radius, top border only); the design has a full card. */
.woocommerce div.product.elementor .woocommerce-tabs .woocommerce-Tabs-panel.panel {
	margin: 0;
	padding: clamp(22px, 3vw, 40px);
	border: 1px solid var(--bbp-border-card);
	border-radius: 16px;
	background: var(--bbp-white);
	box-shadow: none;
}

/* Keeps the second (Bangla) name together, so the title breaks before it, as in the design. */
.bb-pd__subtitle {
	white-space: nowrap;
}

/* WooCommerce styles "#respond input#submit" by id; match that weight for the design's dark pill. */
.woocommerce .bb-reviews #respond input#submit,
.woocommerce .bb-reviews #respond #submit {
	width: auto;
	height: 48px;
	margin: 0;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--bbp-green);
	color: var(--bbp-sand);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.woocommerce .bb-reviews #respond input#submit:hover {
	background: var(--bbp-green-hover);
	color: var(--bbp-sand);
}

.woocommerce .bb-reviews #respond textarea#comment {
	height: auto;
	min-height: 136px;
}
