/*
 * Single product page — matches the live site (Elementor template 36302 + snippets 33, 44).
 * Replaces single-product.css.
 */

.bmp-main {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 15px 30px;
	direction: rtl;
	text-align: right;
	color: #333;
}
.bmp-main .woocommerce-breadcrumb { font-size: 14.72px; color: #767676; margin: 0 0 14.72px; }
.bmp-main .woocommerce-breadcrumb a { color: #767676; text-decoration: none; }

/* ---------- Gallery + buy box ---------- */
.bmp-top {
	display: grid;
	grid-template-columns: minmax(0, 501px) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	margin: 0 0 30px;
}
.bmp-gallery { min-width: 0; }
.bmp-gallery .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.bmp-summary {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 10px;
	box-shadow: 0 0 10px 0 rgba(179, 179, 179, .5);
	background: #fff;
	min-width: 0;
}

/* Title */
.bmp-summary .product_title {
	font-size: 25px;
	font-weight: 600;
	color: #4E4E4E;
	line-height: 1.25;
	margin: 0 0 12px;
}

/* Price + pink pill */
.bmp-summary > .price {
	font-size: 30px;
	font-weight: 800;
	color: #1F1530;
	line-height: 1.25;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0 0 8px;
}
.bmp-summary > .price .amount { color: #1F1530; }
.bmp-summary > .price del,
.bmp-summary > .price del .amount { color: #8A7F99; font-size: 18px; font-weight: 600; }
.bmp-summary > .price ins { text-decoration: none; }
.single-product .persect_disc {
	display: inline-block;
	background: #EC4899;
	color: #fff;
	border-radius: 9px;
	padding: 3px 10px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
	direction: rtl;
	unicode-bidi: isolate;
}
.single-product .woocommerce-variation-price .price { font-size: 24px; font-weight: 800; color: #1F1530; margin: 4px 0 8px; }
.single-product .woocommerce-variation-price .price del { color: #8A7F99; font-size: 16px; }
.single-product .woocommerce-variation-price .price ins { text-decoration: none; }

/* Stock */
.single-product p.stock { font-weight: 700; font-size: 15px; margin: 6px 0; }
.single-product p.stock.in-stock { color: #15803D; }
.single-product p.stock.in-stock::before { content: "✓ "; font-weight: 800; }
.single-product p.stock.out-of-stock { color: #B91C1C; }
.bmp-stock { margin: 0 0 14px !important; }

/* Variations (Woo Variation Swatches) */
.single-product table.variations { border: 0; margin: 0 0 8px; width: 100%; }
.single-product table.variations th,
.single-product table.variations td { border: 0; padding: 0 0 6px; background: none; vertical-align: middle; }
.single-product table.variations th.label,
.single-product table.variations td.label { font-weight: 800; font-size: 16px; color: #1F1530; }
.single-product .variable-items-wrapper { gap: 8px; }
.single-product .variable-items-wrapper .variable-item.button-variable-item {
	min-width: 54px;
	height: 46px;
	padding: 0 12px;
	border-radius: 11px;
	border: 1.5px solid #D9CDEA;
	box-shadow: none;
	background: #fff;
	margin: 0;
}
.single-product .variable-items-wrapper .variable-item.button-variable-item:hover { border-color: #6B21A8; }
.single-product .variable-items-wrapper .variable-item.selected,
.single-product .variable-items-wrapper .variable-item[aria-checked="true"] {
	border-color: #6B21A8;
	box-shadow: 0 0 0 2px #6B21A8;
	background: #F6F0FC;
}
.single-product .variable-items-wrapper .variable-item-span { font-weight: 700; font-size: 15.5px; color: #1F1530; }
.single-product .variable-items-wrapper .variable-item.disabled { opacity: .35; }
.single-product .reset_variations { color: #6B21A8; font-weight: 700; font-size: 14px; }

/* Quantity + add to cart in one row, quick buy under it */
.single-product form.cart:not(.variations_form),
.single-product .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
	margin-top: 8px;
}
.single-product form.cart .quantity,
.single-product form.cart .qib-container {
	display: flex;
	align-items: stretch;
	height: 54px;
	border: 1.5px solid #DDD;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	flex: 0 0 auto;
	margin: 0;
	width: auto;
}
.single-product form.cart .qib-container .quantity { height: 100%; border: 0; border-radius: 0; }
.single-product form.cart .quantity .minus,
.single-product form.cart .quantity .plus,
.single-product form.cart .qib-button {
	width: 44px;
	height: 100%;
	min-height: 0;
	border: 0;
	border-radius: 0;
	background: #F6F0FC;
	color: #6B21A8;
	font-size: 22px;
	font-weight: 800;
	padding: 0;
	box-shadow: none;
	margin: 0;
	line-height: 1;
}
.single-product form.cart .quantity input.qty {
	width: 46px;
	height: 100%;
	border: 0;
	text-align: center;
	font-size: 17px;
	font-weight: 800;
	padding: 0;
	margin: 0;
	background: #fff;
	-moz-appearance: textfield;
	box-shadow: none;
}
.single-product form.cart .quantity input.qty::-webkit-outer-spin-button,
.single-product form.cart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Black add-to-cart (live: snippet 44 "bm-black-buy") */
html body.single-product div.product form.cart button.single_add_to_cart_button.button:not(.wc-buy-now-btn) {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	height: 54px;
	min-height: 54px;
	border-radius: 8px;
	background: #111;
	background-image: none;
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	border: 0;
	box-shadow: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	opacity: 1;
	font-family: inherit;
}
html body.single-product div.product form.cart button.single_add_to_cart_button.button:not(.wc-buy-now-btn):hover { background: #2B2B2B; }
html body.single-product div.product form.cart button.single_add_to_cart_button.disabled:not(.wc-buy-now-btn) { opacity: .6; }
html body.single-product div.product form.cart button.single_add_to_cart_button svg { width: 19px; height: 19px; fill: #fff; }

/* Quick buy (Quick Buy Now plugin): white with purple outline */
html body.single-product form.cart button.wc-buy-now-btn {
	flex: 0 0 100%;
	width: 100%;
	height: 50px;
	min-height: 50px;
	margin: 0;
	border-radius: 8px;
	background: #fff;
	background-image: none;
	color: #6B21A8;
	border: 2px solid #6B21A8;
	font-size: 16.5px;
	font-weight: 800;
	box-shadow: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transform: none;
	font-family: inherit;
}
html body.single-product form.cart button.wc-buy-now-btn::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236B21A8' d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E") center/contain no-repeat;
}
html body.single-product form.cart button.wc-buy-now-btn:hover { background: #6B21A8; color: #fff; }
html body.single-product form.cart button.wc-buy-now-btn:hover::before { filter: brightness(0) invert(1); }

/* Secure payment chips + trust tiles */
.bm-pdp-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 4px; direction: rtl; }
.bm-pdp-pay b { font-size: 14px; color: #1F1530; margin-inline-end: 4px; display: inline-flex; align-items: center; gap: 5px; }
.bm-pdp-pay b svg { width: 14px; height: 14px; fill: #15803D; }
.bm-pdp-pay span { border: 1px solid #E5E1EC; border-radius: 7px; padding: 3px 8px; font-size: 12.5px; font-weight: 700; color: #333; background: #fff; }
.bm-pdp-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; direction: rtl; }
.bm-pdp-trust div { border: 1px solid #E5E1EC; border-radius: 12px; background: #FAF7FD; padding: 10px 6px; text-align: center; font-size: 13.5px; font-weight: 700; color: #1F1530; line-height: 1.3; }
.bm-pdp-trust i { display: block; font-style: normal; font-size: 20px; margin-bottom: 3px; }

/* WhatsApp order */
.bmp-wa-w { margin: 16px 0 6px; }
.bmp-wa {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 46px;
	padding: 0 22px;
	border: 2px solid #1F9D55;
	border-radius: 30px;
	background: #fff;
	color: #1F9D55;
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
}
.bmp-wa svg { width: 22px; height: 22px; fill: #1F9D55; }
.bmp-wa:hover { background: #1F9D55; color: #fff; }
.bmp-wa:hover svg { fill: #fff; }

/* ---------- Tabs ---------- */
.bmp-main .woocommerce-tabs { margin: 10px 0 30px; clear: both; }
.bmp-main .woocommerce-tabs ul.tabs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	border-bottom: 1px solid #ECE6F3;
}
.bmp-main .woocommerce-tabs ul.tabs::before,
.bmp-main .woocommerce-tabs ul.tabs li::before,
.bmp-main .woocommerce-tabs ul.tabs li::after { display: none; }
.bmp-main .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; }
.bmp-main .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 12.8px 19.2px;
	font-size: 16px;
	font-weight: 700;
	color: #000;
	text-decoration: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
}
.bmp-main .woocommerce-tabs ul.tabs li.active a { border-bottom-color: #6B21A8; color: #6B21A8; }
.bmp-main .woocommerce-tabs .panel { font-size: 16px; line-height: 24px; color: #333; padding: 20px; margin: 0; }
.bmp-main .woocommerce-tabs .panel h2:first-child { display: none; } /* tab name repeated as title */
.bmp-main table.shop_attributes { width: 100%; border-collapse: collapse; }
.bmp-main table.shop_attributes th,
.bmp-main table.shop_attributes td { padding: 8px 10px; border-bottom: 1px solid #ECE6F3; text-align: right; }

/* ---------- Up-sells + related ---------- */
.bmp-main .up-sells,
.bmp-main .related { margin: 0 0 30px; clear: both; }
.bmp-main .up-sells > h2,
.bmp-main .related > h2 { font-size: 25px; font-weight: 600; color: #947FF8; margin: 0 0 16px; }

/* ======================================================
   MOBILE
   ====================================================== */
@media (max-width: 767px) {
	.bmp-main { padding: 0 10px 24px; }
	.bmp-top { grid-template-columns: 1fr; gap: 14px; }
	.bmp-summary > .price { font-size: 26px; }
	html body.single-product div.product form.cart button.single_add_to_cart_button.button:not(.wc-buy-now-btn) { font-size: 17px; }

	.bm-pdp-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-items: center; }
	.bm-pdp-pay > b { grid-column: 1 / -1; }
	.bm-pdp-pay > span { text-align: center; justify-content: center; display: flex; font-size: 11.5px; padding: 2px 6px; }
	.bm-pdp-trust { gap: 6px; }
	.bm-pdp-trust > div { font-size: 11.5px; padding: 8px 2px; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }

	.bmp-main .woocommerce-tabs ul.tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
	.bmp-main .woocommerce-tabs ul.tabs li a { white-space: nowrap; padding: 12px 14px; }
	.bmp-main .woocommerce-tabs .panel { padding: 16px 4px; }
}
