/**
 * Single product page – see inc/product-page.php.
 * Loaded only on product pages.
 *
 * style.css sets global heading/paragraph sizes with !important (h3 up to 48px,
 * h4 up to 37px, p up to 19px), and Flatsome adds list margins/numbering, so the
 * sizes and list resets here need !important too.
 *
 * Backgrounds: the site background is #f5f7f7; layout sections alternate between
 * white and #f5f7f7. Cards always take the opposite color of their section.
 */

.single-product {
	--bb-green: #006344;
	--bb-green-soft: #eef6f0;
	--bb-gray: #f5f7f7;
	--bb-line: #e3e8e6;
	--bb-muted: #5f6b66;
	--bb-text: #444;
	--bb-heading: #2b2f2d;
	--bb-cta: #ff9900;
	--bb-cta-hover: #e68a00;
}

.bb-contents,
.bb-trust,
.bb-contact,
.bb-steps,
.bb-steps__intro,
.bb-description,
.bb-reviews-layout {
	text-align: right;
}

/* Lists: no Flatsome bullets, numbers or indentation. */
.single-product .bb-contents__list,
.single-product .bb-trust,
.single-product .bb-steps,
.single-product .bb-reviews-summary__bars {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.single-product .bb-contents__list > li,
.single-product .bb-trust > li,
.single-product .bb-steps > li,
.single-product .bb-reviews-summary__bars > li {
	margin: 0 !important;
	list-style: none !important;
}

/* Section headings ("תיאור מוצר", "רוצים לדעת עוד?", "מוצרים קשורים", …).
   h2: "מפסיקים לזרוק…" comes from the shared "influencers" block. */
.single-product .product-info h2,
.single-product .product-info h3 {
	font-size: clamp(24px, 2.4vw, 30px) !important;
	line-height: 1.25;
}

/* ---------- Top: title, rating, excerpt ---------- */

.single-product .product-info .product-title {
	margin-bottom: 6px;
	font-size: clamp(28px, 3vw, 38px) !important;
	font-weight: 700;
	line-height: 1.15;
}

.single-product .product-info .woocommerce-product-rating {
	margin-bottom: 12px;
}

.single-product .product-info .product-short-description p {
	color: var(--bb-text);
	font-size: 17px !important;
	line-height: 1.6;
}

/* Product badges ("תגיות בעמוד המוצר") – outlined pills */
.single-product .bb-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.single-product .bb-badges > li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	padding: 7px 14px;
	border: 1.5px solid var(--bb-green);
	border-radius: 99px;
	background: #fff;
	color: var(--bb-green);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	list-style: none !important;
}

.bb-badges svg {
	flex: none;
	width: 18px;
	height: 18px;
	stroke: currentColor;
}

@media (max-width: 549px) {
	.single-product .bb-badges > li {
		padding: 6px 12px;
		font-size: 14px;
	}
}

/* "מה במארז" – on white: gray tiles */
.bb-contents {
	margin: 18px 0 4px;
	padding: 14px;
	border: 1px solid var(--bb-line);
	border-radius: 16px;
	background: #fff;
}

.single-product .bb-contents__title {
	margin: 0 2px 12px;
	color: var(--bb-heading);
	font-size: 16px !important;
	font-weight: 600;
}

.single-product .bb-contents__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
}

.single-product .bb-contents__list > li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 12px;
	border-radius: 12px;
	background: var(--bb-gray);
	line-height: 1.25;
}

.bb-contents__num {
	color: var(--bb-green);
	font-size: 24px;
	font-weight: 700;
}

.bb-contents__label {
	color: var(--bb-heading);
	font-size: 15px;
	font-weight: 600;
}

.bb-contents__sub {
	color: var(--bb-muted);
	font-size: 13px;
}

.single-product .bb-contents__list > li.is-gift {
	background: #fff4e0;
}

.bb-contents__item.is-gift .bb-contents__num,
.bb-contents__item.is-gift .bb-contents__sub {
	color: #8a4b00;
}

/* Add to cart */
.single-product .product-info .single_add_to_cart_button {
	min-height: 52px;
	padding: 0 32px;
	border-radius: 99px;
	background-color: var(--bb-cta);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	text-transform: none;
}

.single-product .product-info .single_add_to_cart_button:hover,
.single-product .product-info .single_add_to_cart_button:focus-visible {
	background-color: var(--bb-cta-hover);
	color: #fff;
}

/* Quantity: one pill (Flatsome rounds −/+ as buttons and boxes the number) */
.single-product .product-info .ux-quantity {
	display: inline-flex;
	align-items: stretch;
	height: 52px;
	overflow: hidden;
	border: 1px solid #c9d2cd;
	border-radius: 99px;
	background: #fff;
}

.single-product .product-info .ux-quantity .button.minus,
.single-product .product-info .ux-quantity .button.plus {
	width: 44px;
	min-width: 44px;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--bb-heading);
	font-size: 20px;
	line-height: 1;
}

.single-product .product-info .ux-quantity .button.minus:hover,
.single-product .product-info .ux-quantity .button.plus:hover {
	background: var(--bb-gray) !important;
}

.single-product .product-info .ux-quantity .qty {
	width: 40px;
	min-width: 40px;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent;
	box-shadow: none !important;
	color: var(--bb-heading);
	font-size: 18px;
	font-weight: 600;
	text-align: center;
}

/* "יש לכם שאלה?" */
.single-product .bb-contact {
	margin: 4px 0 18px;
	color: var(--bb-muted);
	font-size: 15px !important;
}

.bb-contact a {
	color: var(--bb-green);
	font-weight: 600;
	text-decoration: underline;
}

/* Trust boxes – on white: gray boxes */
.single-product .bb-trust {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.single-product .bb-trust > li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px 8px;
	border-radius: 12px;
	background: var(--bb-gray);
	color: var(--bb-heading);
	font-size: 14px;
	line-height: 1.3;
	text-align: center;
}

.bb-trust svg {
	width: 26px;
	height: 26px;
	stroke: var(--bb-green);
}

/* ---------- "כל היתרונות בשקית אחת!" – green box: video | title + 2-column list ---------- */

.bb-benefits > .col-inner {
	border-radius: 20px !important;
	background-color: var(--bb-green) !important;
	box-shadow: none !important;
	color: #fff;
}

.single-product .bb-benefits h3 {
	margin-bottom: 4px;
	color: #fff;
	font-size: 28px !important;
}

.bb-benefits .wp-video,
.bb-benefits .wp-video video,
.bb-benefits .mejs-container {
	width: 100% !important;
	max-width: 100%;
}

.bb-benefits .wp-video {
	overflow: hidden;
	border-radius: 14px;
}

/* Equal space above/below the video and the list: drop Flatsome's column padding-bottom
   and the margin of the <p> that wraps the video. */
.bb-benefits .col-inner .col {
	padding-bottom: 0 !important;
}

.bb-benefits .col-inner p:has(> .wp-video),
.bb-benefits .col-inner .col-inner > :last-child {
	margin-bottom: 0 !important;
}

@media (max-width: 549px) {
	.bb-benefits .col-inner .col + .col {
		margin-top: 8px;
	}
}

/* [bb_benefits]: icon to the right of the text, 2 columns */
.single-product .bb-benefits-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 24px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.single-product .bb-benefits-list > li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
	color: #fff;
	font-size: 16px;
	line-height: 1.35;
	text-align: right;
	list-style: none !important;
}

.bb-benefits-list svg {
	flex: none;
	width: 32px;
	height: 32px;
	stroke: #c8da7b;
}

@media (max-width: 549px) {
	.single-product .bb-benefits h3 {
		margin-top: 16px;
		font-size: 22px !important;
	}

	.single-product .bb-benefits-list {
		gap: 14px 12px;
	}

	.single-product .bb-benefits-list > li {
		gap: 8px;
		font-size: 14px;
	}

	.bb-benefits-list svg {
		width: 26px;
		height: 26px;
	}
}

/* ---------- Description – section is #f5f7f7: white cards ---------- */

.single-product .bb-steps__intro {
	max-width: 820px;
	margin-bottom: 20px;
	color: var(--bb-text);
	font-size: 17px !important;
	line-height: 1.7;
}

.single-product .bb-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 20px !important;
}

.single-product .bb-steps > li {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	border-radius: 16px;
	background: #fff;
}

.bb-steps__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 99px;
	background: var(--bb-green-soft);
	color: var(--bb-green);
	font-size: 18px;
	font-weight: 700;
}

.single-product .bb-steps h4 {
	margin: 0;
	color: var(--bb-heading);
	font-size: 19px !important;
	font-weight: 600;
	line-height: 1.3;
}

.single-product .bb-steps p {
	margin: 0;
	color: var(--bb-text);
	font-size: 17px !important;
	line-height: 1.65;
}

.bb-description {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 32px;
	margin-bottom: 20px;
	padding: 28px;
	border-radius: 20px;
	background: #fff;
}

.bb-description__text {
	flex: 1 1 520px;
	min-width: 0;
}

.single-product .bb-description__text p {
	margin-bottom: 12px;
	color: var(--bb-text);
	font-size: 17px !important;
	line-height: 1.7;
}

.bb-description__text > :last-child {
	margin-bottom: 0;
}

.bb-description__text strong {
	color: var(--bb-green);
	font-size: 18px;
	font-weight: 600;
}

.bb-description__img {
	flex: 0 1 280px;
	min-width: 0;
	max-width: 280px;
	height: auto;
	border-radius: 14px;
	background: var(--bb-gray);
}

@media (max-width: 849px) {
	.single-product .bb-steps {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 549px) {
	.single-product .bb-trust {
		gap: 8px;
	}

	.single-product .bb-trust > li {
		padding: 10px 6px;
		font-size: 12px;
	}

	.bb-description {
		gap: 20px;
		padding: 20px 16px;
	}

	.bb-description__img {
		max-width: 100%;
	}
}

/* ---------- Related products slider (section is white) ---------- */

.bb-related__title {
	margin-bottom: 16px;
}

/* ---------- Reviews – section is white: gray area, white cards ---------- */

.bb-reviews-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 32px;
	padding: 32px;
	border-radius: 20px;
	background: var(--bb-gray);
}

.bb-reviews-summary {
	display: flex;
	flex: 0 0 280px;
	flex-direction: column;
	gap: 14px;
	max-width: 100%;
	padding: 24px;
	border-radius: 16px;
	background: #fff;
}

.single-product .product-info .bb-reviews-summary__title {
	margin: 0;
	color: var(--bb-green);
	font-size: 22px !important;
	line-height: 1.25;
}

.bb-reviews-summary__avg {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bb-reviews-summary__avg .star-rating {
	margin: 0;
}

.bb-reviews-summary__num {
	color: var(--bb-heading);
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
}

.single-product .bb-reviews-summary__count {
	margin: 0;
	color: var(--bb-muted);
	font-size: 15px !important;
}

.single-product .bb-reviews-summary__bars > li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px !important;
	font-size: 14px;
}

.bb-reviews-summary__bar {
	flex: 1;
	height: 8px;
	overflow: hidden;
	border-radius: 99px;
	background: #e3e8e5;
}

.bb-reviews-summary__bar span {
	display: block;
	height: 100%;
	background: var(--bb-green);
}

.bb-reviews-summary__write {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	border: 2px solid var(--bb-green);
	border-radius: 99px;
	color: var(--bb-green);
	font-size: 16px;
	font-weight: 600;
}

.bb-reviews-summary__write:hover {
	background: var(--bb-green);
	color: #fff;
}

.bb-reviews-main {
	flex: 1 1 520px;
	min-width: 0;
}

/* Flatsome puts the list (7/12) and the form (5/12) side by side: stack them. */
.bb-reviews-main #reviews.row {
	display: block;
	margin: 0;
}

.bb-reviews-main #comments,
.bb-reviews-main #review_form_wrapper {
	flex-basis: 100% !important;
	width: 100%;
	max-width: 100% !important;
	padding: 0 !important;
}

.bb-reviews-main .woocommerce-Reviews-title {
	display: none;
}

.single-product .bb-reviews-main .commentlist {
	margin: 0 !important;
	padding: 0 !important;
}

.single-product .bb-reviews-main .commentlist > li {
	margin: 0 0 14px !important;
	padding: 20px 24px;
	border-radius: 16px;
	background: #fff;
	list-style: none;
}

.bb-reviews-main .commentlist,
.bb-reviews-main .commentlist p,
.bb-reviews-main .commentlist em,
.bb-reviews-main .commentlist .description {
	font-style: normal;
	text-align: right;
}

.single-product .bb-reviews-main .commentlist p {
	font-size: 18px !important;
	line-height: 1.6;
}

.single-product .bb-reviews-main .commentlist .meta,
.single-product .bb-reviews-main .commentlist .meta * {
	font-size: 14px !important;
}

.bb-reviews-main .commentlist .woocommerce-review__author {
	color: var(--bb-heading);
	font-size: 16px !important;
}

/* Admin reply under a review */
.single-product .bb-reviews-main .commentlist ul.children {
	margin: 14px 0 0 !important;
	padding: 2px 12px 0 0 !important;
	border-right: 3px solid var(--bb-green);
}

.single-product .bb-reviews-main .commentlist ul.children > li {
	margin: 0 !important;
	padding: 0;
	list-style: none;
}

.single-product .bb-reviews-main .commentlist ul.children p {
	font-size: 14px !important;
}

.bb-reviews-main .woocommerce-review__verified {
	padding: 3px 10px;
	border-radius: 99px;
	background: var(--bb-green-soft);
	color: var(--bb-green);
}

.bb-reviews-main.is-collapsible:not(.is-expanded) .commentlist > li:nth-child(n+4) {
	display: none;
}

.bb-reviews-more {
	margin: 0 0 24px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--bb-green);
	font-size: 16px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.bb-reviews-main #review_form .review-form-inner {
	padding: 24px;
	border: 0;
	border-radius: 16px;
	background: #fff;
}

.single-product .product-info .bb-reviews-main #reply-title {
	margin-bottom: 12px;
	color: var(--bb-green);
	font-size: 20px !important;
}

.single-product .bb-reviews-main #review_form p,
.single-product .bb-reviews-main #review_form label {
	font-size: 15px !important;
}

@media (max-width: 549px) {
	.bb-reviews-layout {
		gap: 16px;
		padding: 16px;
	}

	.single-product .bb-reviews-main .commentlist > li,
	.bb-reviews-main #review_form .review-form-inner {
		padding: 16px;
	}
}
