/*
Theme Name: Behinweb Child
Theme URI: https://behinweb.ir/
Description: Child theme for Behinweb (Publisher) with WooCommerce product page builder support.
Author: Behinweb
Author URI: https://behinweb.ir/
Template: Behinweb
Version: 1.2.0
Text Domain: behinweb-child
*/

.behinweb-product-builder {
	clear: both;
	margin: 40px 0;
}

.behinweb-product-builder > .vc_row:first-child {
	margin-top: 0;
}

@media (max-width: 767px) {
	.behinweb-product-builder {
		margin: 25px 0;
	}
}

/* Full product template */
.behinweb-product-builder--full {
	margin: 0 0 40px;
}

.behinweb-product-builder-full #product {
	display: block;
}

.behinweb-product-builder-full #product > .summary {
	display: none !important;
}

.behinweb-product-builder-full .content-column {
	width: 100%;
	max-width: 100%;
	flex: 0 0 100%;
}

/* Hero */
.bw-pt-hero.vc_row {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 8px 0 10px;
	margin-bottom: 8px;
}

.bw-pt-hero .vc_column-inner {
	padding-top: 0;
}

.bw-pt-title {
	margin: 0 0 12px;
	color: #2d2f3a;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.5;
}

.bw-pt-rating {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 14px;
	color: #5e6475;
	font-size: 13px;
}

.bw-pt-rating .star-rating {
	float: none;
	margin: 0;
	color: #f0ac00;
}

.bw-pt-rating-link {
	color: #5e6475;
	text-decoration: none;
	border-bottom: 1px dotted #9aa0ae;
}

.bw-pt-rating-link:hover {
	color: #339966;
	border-color: #339966;
}

.bw-pt-excerpt {
	margin: 0 0 16px;
	color: #5e6475;
	font-size: 15px;
	line-height: 2;
}

.bw-pt-excerpt p:last-child {
	margin-bottom: 0;
}

.bw-pt-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 18px;
	color: #339966;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.4;
}

.bw-pt-price-label {
	color: #5e6475;
	font-size: 14px;
	font-weight: 500;
}

.bw-pt-price del {
	color: #9aa0ae;
	font-size: 16px;
	font-weight: 400;
}

.bw-pt-price ins {
	text-decoration: none;
}

.bw-pt-price .woocommerce-Price-currencySymbol {
	font-size: .7em;
	font-weight: 700;
}

/* Gallery */
.bw-pt-gallery {
	position: relative;
	padding: 12px;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 15px;
}

.bw-pt-gallery .woocommerce-product-gallery {
	margin: 0;
	opacity: 1 !important;
}

.bw-pt-gallery .woocommerce-product-gallery__wrapper {
	margin: 0;
	overflow: hidden;
	border-radius: 10px;
}

.bw-pt-gallery .woocommerce-product-gallery__image img {
	border-radius: 10px;
}

.bw-pt-gallery .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.bw-pt-gallery .flex-control-thumbs li {
	flex: 0 0 64px;
	width: 64px;
	margin: 0;
}

.bw-pt-gallery .flex-control-thumbs img {
	border-radius: 6px;
}

.bw-pt-sale-badge {
	position: absolute;
	top: 18px;
	inset-inline-start: 18px;
	z-index: 5;
	padding: 4px 10px;
	background: #8224e3;
	border-radius: 20px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.bw-pt-hero .bw-pt-cart {
	margin-bottom: 12px;
}

.bw-pt-trust--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 4px 0 0;
	padding: 0;
	border-top: 0;
	list-style: none;
}

.bw-pt-trust--inline li {
	padding: 0;
}

.bw-pt-facts {
	margin-bottom: 12px;
}

.bw-pt-side-label {
	display: block;
	margin-bottom: 2px;
	color: #8a8f9c;
	font-size: 13px;
}

.bw-pt-benefits {
	display: flex;
	flex-wrap: wrap;
	margin-top: 4px;
}

.bw-pt-benefits > .vc_column_container {
	display: flex;
}

.bw-pt-benefits .vc_column-inner,
.bw-pt-benefits .wpb_wrapper,
.bw-pt-benefits .aio-icon-component {
	height: 100%;
}

.bw-pt-benefits .aio-icon-component {
	padding: 18px;
	background: #f7f8fb;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
}

.bw-pt-benefits .aio-icon-box {
	margin: 0;
}

.bw-pt-benefits + * {
	margin-top: 0;
}

/* Add to cart */
.bw-pt-cart .cart {
	display: flex !important;
	direction: rtl;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.bw-pt-cart .quantity {
	float: none !important;
	margin: 0 !important;
}

.bw-pt-cart .quantity .qty {
	width: 74px !important;
	height: 46px !important;
	padding: 0 10px !important;
	background: #fff !important;
	border: 1px solid #e6e6e6 !important;
	border-radius: 8px !important;
	color: #2d2f3a !important;
}

.woocommerce div.product .bw-pt-cart .single_add_to_cart_button,
.woocommerce div.product .bw-pt-cart .single_add_to_cart_button.alt {
	float: none !important;
	height: 46px !important;
	min-height: 46px !important;
	padding: 0 30px !important;
	background: #5ec445 !important;
	border: 0 !important;
	border-radius: 8px !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 46px !important;
	transition: background .2s ease;
}

.woocommerce div.product .bw-pt-cart .single_add_to_cart_button:hover,
.woocommerce div.product .bw-pt-cart .single_add_to_cart_button.alt:hover {
	background: #4cae36 !important;
	color: #fff !important;
}

.bw-pt-cart .stock {
	margin: 0;
	color: #5e6475;
	font-size: 13px;
}

.bw-pt-cart .woocommerce-variation-price {
	margin-bottom: 10px;
}

/* Facts */
.bw-fact {
	display: flex;
	direction: rtl;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	height: 100%;
	min-height: 64px;
	padding: 12px 18px;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
}

.bw-fact-label {
	color: #8a8f9c;
	font-size: 13px;
	white-space: nowrap;
}

.bw-fact-value {
	color: #2d2f3a;
	font-size: 14px;
	font-weight: 700;
	text-align: end;
}

.bw-fact-value a {
	color: #339966;
	text-decoration: none;
}

.bw-fact--in-stock .bw-fact-value {
	color: #339966;
}

.bw-fact--out-of-stock .bw-fact-value {
	color: #e74c3c;
}

/* Section headings */
.bw-pt-h3 {
	margin: 34px 0 16px;
	padding: 0;
	color: #24262f;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.6;
}

/* Description */
.bw-pt-description {
	color: #4a4f5c;
	font-size: 15px;
	line-height: 2.1;
}

.bw-pt-description p:last-child {
	margin-bottom: 0;
}

.bw-pt-description img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.bw-pt-description h2,
.bw-pt-description h3,
.bw-pt-description h4 {
	margin-top: 28px;
	color: #2d2f3a;
	font-weight: 800;
}

.bw-pt-description a {
	color: #339966;
}

.bw-pt-empty {
	color: #8a8f9c;
	font-size: 14px;
}

/* Attributes */
.bw-pt-attributes {
	overflow-x: auto;
}

.bw-pt-attributes table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
}

.bw-pt-attributes th,
.bw-pt-attributes td {
	padding: 10px 14px;
	border: 1px solid #e6e6e6;
	font-size: 14px;
	line-height: 1.8;
	text-align: start;
	vertical-align: top;
}

.bw-pt-attributes th {
	width: 35%;
	background: #f7f8fb;
	color: #2d2f3a;
	font-weight: 700;
}

/* Tabs */
.bw-pt-tabs .woocommerce-tabs {
	margin-top: 10px;
}

.bw-pt-tabs .wc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 20px;
	padding: 0;
	border-bottom: 1px solid #e6e6e6;
	list-style: none;
}

.bw-pt-tabs .wc-tabs li {
	margin: 0;
}

.bw-pt-tabs .wc-tabs li a {
	display: block;
	padding: 10px 18px;
	background: #f7f8fb;
	border: 1px solid #e6e6e6;
	border-bottom: 0;
	border-radius: 8px 8px 0 0;
	color: #5e6475;
	font-size: 14px;
	font-weight: 700;
}

.bw-pt-tabs .wc-tabs li.active a {
	background: #fff;
	color: #339966;
}

.bw-pt-tabs .woocommerce-Tabs-panel {
	padding: 0 4px;
}

/* Sticky sidebar */
.bw-pt-side-col {
	position: relative;
}

.bw-pt-sticky {
	padding: 18px !important;
	background: #fff;
	border: 1px solid #e6e6e6 !important;
	border-radius: 15px;
	box-shadow: 0 8px 24px rgba(45, 47, 58, .06);
}

.bw-pt-sticky .bw-pt-price {
	margin-top: 0;
	font-size: 23px;
}

.bw-pt-sticky .bw-pt-cart .cart {
	flex-direction: column;
	align-items: stretch;
}

.woocommerce div.product .bw-pt-sticky .bw-pt-cart .quantity,
.woocommerce div.product .bw-pt-sticky .bw-pt-cart .quantity .qty {
	width: 100% !important;
}

.woocommerce div.product .bw-pt-sticky .bw-pt-cart .single_add_to_cart_button {
	width: 100% !important;
	padding: 0 18px !important;
}

.bw-pt-trust {
	margin: 16px 0 0;
	padding: 14px 0 0;
	border-top: 1px dashed #e6e6e6;
	list-style: none;
}

.bw-pt-trust li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	color: #5e6475;
	font-size: 13px;
	line-height: 1.9;
}

.bw-pt-trust li::before {
	content: "✓";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	background: rgba(94, 196, 69, .12);
	border-radius: 50%;
	color: #5ec445;
	font-size: 11px;
	font-weight: 700;
}

/* Related */
.bw-pt-related .related.products > h2 {
	margin: 10px 0 20px;
	color: #2d2f3a;
	font-size: 22px;
	font-weight: 800;
}

/* Responsive */
@media (max-width: 991px) {
	.bw-pt-hero.vc_row {
		padding: 22px 22px 12px;
	}

	.bw-pt-title {
		font-size: 25px;
	}

	.bw-pt-price {
		font-size: 22px;
	}

	.bw-pt-main-col,
	.bw-pt-side-col {
		float: none;
		width: 100%;
	}

	.bw-pt-side-col {
		margin-top: 24px;
	}
}

@media (max-width: 767px) {
	.bw-pt-hero.vc_row {
		display: flex;
		flex-direction: column;
		padding: 16px 16px 8px;
		border-radius: 12px;
	}

	.bw-pt-hero > .vc_column_container:nth-child(1) {
		order: 2;
	}

	.bw-pt-hero > .vc_column_container:nth-child(2) {
		order: 1;
	}

	.bw-pt-gallery {
		margin-bottom: 22px;
	}

	.bw-pt-title {
		font-size: 21px;
	}

	.bw-fact {
		min-height: 52px;
		margin-bottom: 10px;
		padding: 10px 14px;
	}

	.bw-pt-cart .cart {
		flex-direction: column;
		align-items: stretch;
	}

	.woocommerce div.product .bw-pt-cart .quantity,
	.woocommerce div.product .bw-pt-cart .quantity .qty {
		width: 100% !important;
	}

	.woocommerce div.product .bw-pt-cart .single_add_to_cart_button {
		width: 100% !important;
		padding: 0 18px !important;
	}

	.bw-pt-benefits > .vc_column_container {
		width: 100%;
		margin-bottom: 10px;
	}

	.bw-pt-tabs .wc-tabs li a {
		border-bottom: 1px solid #e6e6e6;
		border-radius: 8px;
	}
}

.bw-pt-hero-main .vc_column-inner {
	padding-inline-end: 12px;
}

.bw-pt-hero-media .vc_column-inner {
	padding-inline-start: 8px;
}

.bw-pt-hero .bw-pt-title {
	margin-bottom: 14px;
	color: #24262f;
	font-size: 32px;
	line-height: 1.45;
}

.bw-pt-hero .bw-pt-rating {
	margin-bottom: 8px;
}

.bw-pt-hero .bw-pt-excerpt {
	max-width: 680px;
	color: #4d5260;
	font-size: 15px;
	line-height: 2.05;
}

.bw-pt-hero .bw-pt-price {
	margin: 6px 0 16px;
	font-size: 28px;
}

.bw-pt-hero .bw-pt-price-label {
	color: #5e6475;
	font-size: 15px;
	font-weight: 700;
}

.bw-pt-hero .bw-pt-cart {
	margin-bottom: 0;
}

.woocommerce div.product .bw-pt-hero .bw-pt-cart .single_add_to_cart_button {
	width: 100% !important;
}

.bw-pt-hero-actions.vc_row {
	margin: 14px 0 10px !important;
}

.bw-pt-hero-actions .vc_column_container {
	display: flex;
}

.bw-pt-hero-actions .vc_column-inner {
	width: 100%;
	padding: 0 5px;
}

.bw-pt-hero-actions .wpb_wrapper,
.bw-pt-hero-actions .ult-btn-wrapper {
	height: 100%;
	width: 100%;
}

.bw-pt-hero-actions .ult-btn {
	display: flex !important;
	float: none !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	margin: 0 !important;
	box-sizing: border-box;
	text-align: center;
}

.bw-pt-hero-meta p:last-child {
	margin-bottom: 0;
}

.bw-pt-hero .bw-pt-trust--inline {
	margin-top: 12px;
	color: #5e6475;
}

.bw-pt-hero .bw-pt-share {
	margin-top: 14px;
}

.bw-pt-media {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 10;
	background: #eef0f5;
	border-radius: 16px;
}

.bw-pt-media__image,
.bw-pt-media__video,
.bw-pt-media__iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
}

.bw-pt-media__iframe {
	background: #000;
}

.bw-pt-media__play {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: auto;
	padding: 0;
	background: rgba(24, 26, 34, .5);
	border: 2px solid rgba(255, 255, 255, .82);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.bw-pt-media__play:hover {
	background: rgba(94, 196, 69, .85);
	transform: scale(1.05);
}

.bw-pt-media.is-playing > .bw-pt-media__image,
.bw-pt-media.is-playing > .bw-pt-media__play {
	display: none;
}

.bw-pt-media__caption {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 3;
	padding: 48px 20px 16px;
	background: linear-gradient(180deg, transparent, rgba(10, 12, 18, .78));
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.7;
	text-align: center;
	pointer-events: none;
}

.bw-pt-instructor {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding: 10px 14px;
	background: #f7f8fb;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
}

.bw-pt-instructor__avatar {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	object-fit: cover;
	border-radius: 50%;
}

.bw-pt-instructor__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.bw-pt-instructor__name {
	color: #2d2f3a;
	font-size: 14px;
	font-weight: 800;
}

.bw-pt-instructor__link {
	color: inherit;
	text-decoration: none;
}

.bw-pt-instructor__link:hover {
	color: #339966;
}

.bw-pt-instructor__bio {
	color: #8a8f9c;
	font-size: 12px;
	line-height: 1.8;
}

.bw-pt-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.bw-pt-share__label {
	margin-inline-end: 4px;
	color: #8a8f9c;
	font-size: 12px;
}

.bw-pt-share__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	background: #f7f8fb;
	border: 1px solid #e6e6e6;
	border-radius: 50%;
	color: #5e6475;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.bw-pt-share__link:hover {
	background: #5ec445;
	border-color: #5ec445;
	color: #fff;
}

.bw-pt-share__link.is-copied {
	background: #5ec445;
	border-color: #5ec445;
	color: #fff;
}

.bw-pt-facts-row.vc_row {
	margin: 18px 0 30px !important;
}

.bw-pt-facts-row .vc_column-inner {
	padding: 0;
}

.bw-pt-facts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
}

.bw-fact-card {
	display: flex;
	direction: rtl;
	align-items: center;
	gap: 14px;
	min-width: 0;
	padding: 16px 20px;
	background: #f7f8fb;
	border: 1px solid #e6e6e6;
	border-radius: 14px;
}

.bw-fact-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	background: rgba(130, 36, 227, .08);
	border-radius: 50%;
	color: #8224e3;
}

.bw-fact-card__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.bw-fact-card__label {
	color: #8a8f9c;
	font-size: 12px;
	line-height: 1.7;
}

.bw-fact-card__value {
	overflow: hidden;
	color: #2d2f3a;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.7;
	text-overflow: ellipsis;
}

.bw-fact-card__value a {
	color: #339966;
	text-decoration: none;
}

.bw-pt-content-section.vc_row,
.bw-pt-benefits-heading.vc_row {
	clear: both;
	margin-top: 10px !important;
}

.bw-pt-content-col .vc_column-inner {
	max-width: 1080px;
	margin-inline: auto;
}

.bw-pt-content-col .bw-pt-description {
	color: #3f4450;
	font-size: 15px;
	line-height: 2.2;
}

.bw-pt-reviews-row.vc_row {
	clear: both;
	margin-top: 30px !important;
}

.bw-pt-reviews-row .bw-pt-share {
	margin-bottom: 18px;
}

.bw-pt-reviews {
	margin-top: 18px;
	padding-top: 24px;
	border-top: 1px solid #e6e6e6;
}

.bw-pt-reviews .woocommerce-tabs {
	margin: 0;
}

.bw-pt-reviews .wc-tabs {
	display: none !important;
}

.bw-pt-reviews .woocommerce-Tabs-panel {
	display: block !important;
	padding: 0 !important;
}

.bw-pt-reviews #reviews {
	margin: 0;
}

.bw-pt-reviews .woocommerce-Reviews-title {
	display: none;
}

.bw-pt-reviews #review_form_wrapper h3 {
	color: #2d2f3a;
	font-size: 19px;
	font-weight: 800;
}

.bw-pt-reviews .comment-form {
	margin-top: 16px;
}

.bw-pt-body-row.vc_row {
	align-items: flex-start;
	margin-top: 30px !important;
}

.bw-pt-side-col {
	position: sticky;
	top: 110px;
	align-self: flex-start !important;
	height: auto !important;
}

@media (min-width: 992px) {
	.behinweb-has-product-builder .main-wrap.content-main-wrap {
		overflow: visible !important;
	}

	.behinweb-product-builder .vc_row {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

.bw-pt-price-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	color: #ffffff;
	background: #e5484d;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
}

@media (max-width: 991px) {
	.bw-pt-hero .bw-pt-title {
		font-size: 27px;
	}

	.bw-pt-hero .bw-pt-price {
		font-size: 24px;
	}

	.bw-pt-facts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bw-pt-side-col {
		position: static;
	}
}

@media (max-width: 767px) {
	.bw-pt-hero.vc_row {
		padding: 4px 0 0;
		border-radius: 0;
	}

	.bw-pt-hero-main .vc_column-inner,
	.bw-pt-hero-media .vc_column-inner {
		padding-inline: 0;
	}

	.bw-pt-hero-media {
		margin-bottom: 22px;
	}

	.bw-pt-hero .bw-pt-title {
		font-size: 23px;
	}

	.bw-pt-hero .bw-pt-excerpt {
		font-size: 14px;
	}

	.bw-pt-hero .bw-pt-price {
		font-size: 22px;
	}

	.bw-pt-hero-actions.vc_row {
		display: block;
		margin-top: 12px !important;
	}

	.bw-pt-hero-actions .vc_column_container {
		float: none;
		width: 100%;
		margin-bottom: 10px;
	}

	.bw-pt-hero-actions .vc_column_container:last-child {
		margin-bottom: 0;
	}

	.bw-pt-hero-actions .vc_column-inner {
		padding: 0;
	}

	.bw-pt-media {
		aspect-ratio: 16 / 11;
		border-radius: 12px;
	}

	.bw-pt-media__play {
		width: 58px;
		height: 58px;
	}

	.bw-pt-media__caption {
		padding: 36px 14px 12px;
		font-size: 15px;
	}

	.bw-pt-facts-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.bw-fact-card {
		padding: 13px 16px;
	}

	.bw-pt-content-col .vc_column-inner {
		max-width: 100%;
	}

	.bw-pt-reviews {
		padding-top: 18px;
	}
}
