/*
 * Pyali Chai - WooCommerce single product page
 * Reference proportions: compact breadcrumb bar, 2-column product detail,
 * thumbnail rail, centered tabs and a four-card related-products row.
 */

.single-product .site-main,
body.single-product div.product,
body.single-product div.product * {
	box-sizing: border-box;
}

body.single-product .site-main {
	font-family: var(--pyalichai-font-body);
	color: #353331;
}

body.single-product .site-main a {
	text-decoration: none;
}

/* Hide a theme-generated page title if one is present above WooCommerce. */
.single-product .entry-header > .entry-title,
.single-product .page-header > .entry-title,
.single-product .page-header .entry-title {
	display: none !important;
}

/* Breadcrumb strip ------------------------------------------------------- */
body.single-product .woocommerce-breadcrumb {
	width: 100vw;
	max-width: none;
	margin: 0 0 38px calc(50% - 50vw);
	padding: 17px max(28px, calc((100vw - 1190px) / 2));
	background: #f8f8f8;
	border-top: 1px solid #f1f1f1;
	border-bottom: 1px solid #f1f1f1;
	color: #77736f;
	font-family: var(--pyalichai-font-body);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
}

body.single-product .woocommerce-breadcrumb a,
body.single-product .woocommerce-breadcrumb a:visited {
	color: #5d5955;
}

body.single-product .woocommerce-breadcrumb a:hover,
body.single-product .woocommerce-breadcrumb a:focus {
	color: #df6545;
}

/* Main two-column detail ------------------------------------------------- */
body.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: 34px;
	row-gap: 0;
	width: calc(100% - 56px);
	max-width: 1190px;
	margin: 0 auto;
	padding: 0;
	background: #fff;
}

body.single-product div.product div.images,
body.single-product div.product div.summary {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
}

body.single-product div.product div.images {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
	padding: 0;
}

body.single-product div.product div.summary {
	position: relative;
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	padding: 1px 0 0 0;
}

/* Gallery --------------------------------------------------------------- */
body.single-product div.product div.images .woocommerce-product-gallery__wrapper {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	background: #f7f7f7;
}

body.single-product div.product div.images .woocommerce-product-gallery__image,
body.single-product div.product div.images .woocommerce-product-gallery__image.flex-active-slide {
	margin: 0;
	padding: 0;
	background: #f7f7f7;
}

body.single-product div.product div.images .woocommerce-product-gallery__image > a {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f7f7f7;
}

body.single-product div.product div.images .woocommerce-product-gallery__image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover;
	object-position: center;
	box-shadow: none !important;
}

body.single-product div.product div.images .woocommerce-product-gallery__trigger {
	top: 18px !important;
	right: 18px !important;
	left: auto !important;
	z-index: 8;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 43px !important;
	height: 43px !important;
	min-width: 43px;
	min-height: 43px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05) !important;
	color: #31302e !important;
	font-size: 0 !important;
	line-height: 1 !important;
}

body.single-product div.product div.images .woocommerce-product-gallery__trigger::before {
	position: absolute !important;
	top: 12px !important;
	left: 12px !important;
	width: 13px !important;
	height: 13px !important;
	border: 2px solid #31302e !important;
	border-radius: 50% !important;
	background: transparent !important;
	content: "" !important;
}

body.single-product div.product div.images .woocommerce-product-gallery__trigger::after {
	position: absolute !important;
	top: 25px !important;
	left: 26px !important;
	width: 8px !important;
	height: 2px !important;
	border: 0 !important;
	background: #31302e !important;
	content: "" !important;
	transform: rotate(45deg) !important;
}

/* Woo/FlexSlider thumbnail list, upgraded by single-product.js. */
.single-product .pyalichai-gallery-thumbs {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr) 28px;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin-top: 18px;
}

body.single-product div.product div.images .pyalichai-gallery-thumbs ol.flex-control-thumbs {
	display: flex !important;
	gap: 9px;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	overflow-x: auto;
	overflow-y: hidden;
	list-style: none;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
}

body.single-product div.product div.images .pyalichai-gallery-thumbs ol.flex-control-thumbs::-webkit-scrollbar {
	display: none;
}

body.single-product div.product div.images .pyalichai-gallery-thumbs ol.flex-control-thumbs li {
	flex: 0 0 calc((100% - 27px) / 4) !important;
	width: calc((100% - 27px) / 4) !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	scroll-snap-align: start;
}

body.single-product div.product div.images .pyalichai-gallery-thumbs ol.flex-control-thumbs img {
	display: block;
	width: 100% !important;
	aspect-ratio: 1 / 0.73;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid transparent;
	background: #f8f8f8;
	object-fit: cover;
	opacity: 1 !important;
	transition: border-color 160ms ease, opacity 160ms ease;
}

body.single-product div.product div.images .pyalichai-gallery-thumbs ol.flex-control-thumbs img.flex-active,
body.single-product div.product div.images .pyalichai-gallery-thumbs ol.flex-control-thumbs img:hover {
	border-color: #ded9d4;
	opacity: 1 !important;
}

.single-product .pyalichai-gallery-thumbs__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #3d3a37;
	font-family: Arial, sans-serif;
	font-size: 35px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.single-product .pyalichai-gallery-thumbs__nav:hover,
.single-product .pyalichai-gallery-thumbs__nav:focus-visible {
	color: #df6545;
	background: transparent;
	outline: none;
}

/* Product navigation ---------------------------------------------------- */
.single-product .pyalichai-product-nav {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	gap: 7px;
	z-index: 3;
}

.single-product .pyalichai-product-nav__button,
.single-product .pyalichai-product-nav__button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 1px solid #e8e5e2;
	background: #fff;
	color: #a09b96;
}

.single-product .pyalichai-product-nav__button svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.single-product .pyalichai-product-nav__button:hover,
.single-product .pyalichai-product-nav__button:focus-visible {
	border-color: #cfcbc7;
	color: #413e3b;
}

.single-product .pyalichai-product-nav__button.is-disabled {
	opacity: 0.45;
}

/* Summary --------------------------------------------------------------- */
body.single-product div.product .summary .product_title {
	max-width: calc(100% - 82px);
	margin: 0 0 11px !important;
	padding: 0;
	color: #2d2c2a;
	font-family: var(--pyalichai-font-body);
	font-size: 27px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

body.single-product div.product .woocommerce-product-rating {
	display: flex;
	align-items: center;
	min-height: 23px;
	margin: 0 0 9px !important;
	font-size: 12px;
}

body.single-product .star-rating {
	width: 5.35em;
	margin: 0 10px 0 0 !important;
	color: #e7bd59;
	font-size: 13px;
	letter-spacing: 1px;
}

body.single-product div.product .woocommerce-review-link,
body.single-product div.product .woocommerce-review-link:visited {
	color: #aaa5a0;
	font-size: 12px;
	font-weight: 400;
}

body.single-product div.product p.price,
body.single-product div.product span.price {
	margin: 0 0 19px !important;
	color: #df6545;
	font-family: var(--pyalichai-font-body);
	font-size: 18px !important;
	font-weight: 600;
	line-height: 1.3;
}

body.single-product div.product p.price del,
body.single-product div.product span.price del {
	margin-right: 7px;
	color: #aaa5a0;
	font-size: 0.86em;
	opacity: 1;
}

body.single-product div.product p.price ins,
body.single-product div.product span.price ins {
	text-decoration: none;
}

body.single-product div.product .summary .woocommerce-product-details__short-description {
	margin: 0;
	padding: 20px 0 18px;
	border-top: 1px solid #eeecea;
	border-bottom: 1px solid #eeecea;
	color: #6d6965;
	font-family: var(--pyalichai-font-body);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.85;
}

body.single-product div.product .summary .woocommerce-product-details__short-description p {
	margin: 0 0 9px;
}

body.single-product div.product .summary .woocommerce-product-details__short-description p:last-child {
	margin-bottom: 0;
}

body.single-product div.product form.cart {
	display: flex;
	align-items: stretch;
	gap: 13px;
	margin: 0 !important;
	padding: 27px 0 27px;
	border-bottom: 1px solid #eeecea;
}

body.single-product div.product form.cart::before,
body.single-product div.product form.cart::after {
	display: none !important;
}

body.single-product div.product form.cart .quantity {
	float: none !important;
	margin: 0 !important;
}

body.single-product div.product form.cart .quantity .qty {
	width: 66px !important;
	height: 48px !important;
	min-height: 48px;
	margin: 0 !important;
	padding: 0 10px !important;
	border: 2px solid #383633 !important;
	border-radius: 2px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: #3c3936;
	font-family: var(--pyalichai-font-body);
	font-size: 15px;
	font-weight: 500;
	line-height: 46px;
	text-align: center;
}

body.single-product div.product form.cart .button,
body.single-product div.product form.cart .single_add_to_cart_button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 184px;
	height: 48px !important;
	min-height: 48px;
	margin: 0 !important;
	padding: 0 25px !important;
	border: 0 !important;
	border-radius: 2px !important;
	background: #343230 !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: var(--pyalichai-font-body);
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 48px !important;
	letter-spacing: 0;
	text-transform: uppercase;
	transition: background-color 160ms ease;
}

body.single-product div.product form.cart .button:hover,
body.single-product div.product form.cart .button:focus-visible,
body.single-product div.product form.cart .single_add_to_cart_button:hover,
body.single-product div.product form.cart .single_add_to_cart_button:focus-visible {
	background: #df6545 !important;
}

/* Variations keep the same layout language but remain usable. */
body.single-product div.product form.variations_form.cart {
	display: block;
}

body.single-product div.product form.cart .variations {
	width: 100%;
	margin: 0 0 18px;
	border: 0;
}

body.single-product div.product form.cart .variations th,
body.single-product div.product form.cart .variations td {
	padding: 7px 0;
	border: 0;
	background: transparent;
}

body.single-product div.product form.cart .variations label {
	font-size: 13px;
	font-weight: 600;
}

body.single-product div.product form.cart .variations select {
	min-height: 43px;
	padding: 0 34px 0 12px;
	border: 1px solid #dad6d2;
	border-radius: 2px;
	background: #fff;
	font-family: var(--pyalichai-font-body);
	font-size: 13px;
}

body.single-product div.product form.cart .single_variation_wrap .woocommerce-variation-add-to-cart {
	display: flex;
	gap: 13px;
	align-items: stretch;
}

body.single-product div.product .product_meta {
	margin: 0 !important;
	padding: 21px 0 0;
	border: 0;
	color: #6e6964;
	font-family: var(--pyalichai-font-body);
	font-size: 12px;
	line-height: 1.9;
}

body.single-product div.product .product_meta > span {
	display: block;
}

body.single-product div.product .product_meta a,
body.single-product div.product .product_meta a:visited {
	color: #6e6964;
}

body.single-product div.product .product_meta a:hover,
body.single-product div.product .product_meta a:focus {
	color: #df6545;
}

.single-product .pyalichai-product-share {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 9px;
	padding-top: 0;
	color: #6e6964;
	font-size: 12px;
}

.single-product .pyalichai-product-share__links {
	display: flex;
	align-items: center;
	gap: 14px;
}

.single-product .pyalichai-product-share__links a,
.single-product .pyalichai-product-share__links a:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 12px;
	height: 20px;
	color: #5d5955;
	font-family: Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-transform: lowercase;
}

.single-product .pyalichai-product-share__links a:hover,
.single-product .pyalichai-product-share__links a:focus {
	color: #df6545;
}

/* Tabs ------------------------------------------------------------------ */
body.single-product div.product .woocommerce-tabs {
	grid-column: 1 / -1;
	width: 100%;
	margin: 62px 0 0 !important;
	padding: 0 !important;
	clear: both;
}

body.single-product div.product .woocommerce-tabs ul.tabs {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 34px;
	width: 100%;
	margin: 0 !important;
	padding: 0 0 15px !important;
	border: 0 !important;
	border-bottom: 1px solid #eeecea !important;
	background: transparent !important;
	list-style: none;
}

body.single-product div.product .woocommerce-tabs ul.tabs::before,
body.single-product div.product .woocommerce-tabs ul.tabs::after {
	display: none !important;
	content: none !important;
}

body.single-product div.product .woocommerce-tabs ul.tabs li,
body.single-product div.product .woocommerce-tabs ul.tabs li.active {
	position: relative;
	z-index: 1;
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.single-product div.product .woocommerce-tabs ul.tabs li::before,
body.single-product div.product .woocommerce-tabs ul.tabs li::after {
	display: none !important;
	content: none !important;
}

body.single-product div.product .woocommerce-tabs ul.tabs li a,
body.single-product div.product .woocommerce-tabs ul.tabs li a:visited {
	display: block;
	padding: 0 !important;
	color: #b4afaa !important;
	font-family: var(--pyalichai-font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	text-shadow: none;
}

body.single-product div.product .woocommerce-tabs ul.tabs li.active a,
body.single-product div.product .woocommerce-tabs ul.tabs li a:hover,
body.single-product div.product .woocommerce-tabs ul.tabs li a:focus {
	color: #df6545 !important;
}

body.single-product div.product .woocommerce-tabs .panel {
	margin: 0 !important;
	padding: 31px 0 5px !important;
	border: 0 !important;
	background: transparent !important;
	color: #74706c;
	font-family: var(--pyalichai-font-body);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.85;
}

body.single-product div.product .woocommerce-tabs .panel > h2:first-child {
	display: none;
}

body.single-product div.product .woocommerce-tabs .panel p {
	margin: 0 0 17px;
}

body.single-product div.product .woocommerce-tabs .panel table {
	font-size: 12px;
}

/* Related / upsell products -------------------------------------------- */
body.single-product div.product .related,
body.single-product div.product .upsells {
	grid-column: 1 / -1;
	width: 100%;
	margin: 61px 0 74px !important;
	padding: 58px 0 0 !important;
	border-top: 1px solid #eeecea;
	clear: both;
}

body.single-product div.product .upsells + .related {
	margin-top: 0 !important;
}

body.single-product div.product .related > h2,
body.single-product div.product .upsells > h2 {
	position: relative;
	margin: 0 0 48px !important;
	padding: 0 0 19px;
	color: #3b3936;
	font-family: var(--pyalichai-font-body);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.025em;
	text-align: center;
}

body.single-product div.product .related > h2::after,
body.single-product div.product .upsells > h2::after {
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 45px;
	height: 8px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='45' height='8' viewBox='0 0 45 8'%3E%3Cpath d='M1 4c4.2-4.2 8.3 4.2 12.5 0s8.3 4.2 12.5 0 8.3 4.2 12.5 0 4.2 0 5.5 0' fill='none' stroke='%23df6545' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	content: "";
	transform: translateX(-50%);
}

body.single-product div.product .related ul.products,
body.single-product div.product .upsells ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 27px;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

body.single-product div.product .related ul.products::before,
body.single-product div.product .related ul.products::after,
body.single-product div.product .upsells ul.products::before,
body.single-product div.product .upsells ul.products::after {
	display: none !important;
	content: none !important;
}

body.single-product div.product .related ul.products li.product,
body.single-product div.product .upsells ul.products li.product {
	float: none !important;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent;
	text-align: left;
}

body.single-product div.product .related ul.products li.product a.woocommerce-LoopProduct-link,
body.single-product div.product .upsells ul.products li.product a.woocommerce-LoopProduct-link {
	display: block;
	color: inherit;
}

body.single-product div.product .related ul.products li.product img,
body.single-product div.product .upsells ul.products li.product img {
	display: block;
	width: 100% !important;
	aspect-ratio: 1 / 1;
	margin: 0 0 10px !important;
	background: #f7f7f7;
	object-fit: cover;
	box-shadow: none;
}

body.single-product div.product .related ul.products li.product .onsale,
body.single-product div.product .upsells ul.products li.product .onsale {
	top: 12px !important;
	right: auto !important;
	left: 12px !important;
	min-width: 42px;
	min-height: 22px;
	margin: 0 !important;
	padding: 0 8px !important;
	border-radius: 1px !important;
	background: #df6545 !important;
	color: #fff !important;
	font-size: 9px !important;
	font-weight: 700 !important;
	line-height: 22px !important;
	text-transform: uppercase;
}

.single-product .pyalichai-loop-category {
	min-height: 16px;
	margin: 0 0 3px;
	color: #9b9691;
	font-family: var(--pyalichai-font-body);
	font-size: 9px;
	font-weight: 400;
	line-height: 1.45;
}

body.single-product div.product .related ul.products li.product .woocommerce-loop-product__title,
body.single-product div.product .upsells ul.products li.product .woocommerce-loop-product__title {
	min-height: 34px;
	margin: 0 !important;
	padding: 0 !important;
	color: #55514d;
	font-family: var(--pyalichai-font-body);
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1.45;
}

body.single-product div.product .related ul.products li.product .star-rating,
body.single-product div.product .upsells ul.products li.product .star-rating {
	margin: 4px 0 6px !important;
	font-size: 10px;
}

body.single-product div.product .related ul.products li.product .price,
body.single-product div.product .upsells ul.products li.product .price {
	display: block;
	margin: 5px 0 0 !important;
	color: #df6545 !important;
	font-family: var(--pyalichai-font-body);
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.4;
}

body.single-product div.product .related ul.products li.product .price del,
body.single-product div.product .upsells ul.products li.product .price del {
	color: #aaa5a0;
	font-size: 11px;
	opacity: 1;
}

body.single-product div.product .related ul.products li.product .price ins,
body.single-product div.product .upsells ul.products li.product .price ins {
	text-decoration: none;
}

body.single-product div.product .related ul.products li.product > .button,
body.single-product div.product .upsells ul.products li.product > .button,
body.single-product div.product .related ul.products li.product .added_to_cart,
body.single-product div.product .upsells ul.products li.product .added_to_cart {
	display: none !important;
}

/* Keep Woo notices aligned to the product container. */
body.single-product .woocommerce-notices-wrapper,
body.single-product .woocommerce-message,
body.single-product .woocommerce-error,
body.single-product .woocommerce-info {
	width: calc(100% - 56px);
	max-width: 1190px;
	margin-right: auto !important;
	margin-left: auto !important;
	font-family: var(--pyalichai-font-body);
}

/* Tablet ---------------------------------------------------------------- */
@media (max-width: 980px) {
	body.single-product .woocommerce-breadcrumb {
		margin-bottom: 30px;
		padding-right: 28px;
		padding-left: 28px;
	}

	body.single-product div.product {
		column-gap: 26px;
	}

	body.single-product div.product .summary .product_title {
		font-size: 24px;
	}

	body.single-product div.product .related ul.products,
	body.single-product div.product .upsells ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 24px;
	}
}

/* Mobile ---------------------------------------------------------------- */
@media (max-width: 767px) {
	body.single-product .woocommerce-breadcrumb {
		margin-bottom: 24px;
		padding: 14px 20px;
		font-size: 11px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	body.single-product div.product {
		display: block;
		width: calc(100% - 40px);
		margin: 0 auto;
	}

	body.single-product div.product div.images,
	body.single-product div.product div.summary {
		width: 100% !important;
	}

	body.single-product div.product div.summary {
		padding-top: 34px;
	}

	body.single-product div.product .summary .product_title {
		max-width: calc(100% - 75px);
		font-size: 24px;
	}

	.single-product .pyalichai-product-nav {
		top: 34px;
	}

	body.single-product div.product div.images .woocommerce-product-gallery__image > a {
		aspect-ratio: 1 / 1;
	}

	body.single-product div.product form.cart {
		gap: 10px;
	}

	body.single-product div.product form.cart .button,
	body.single-product div.product form.cart .single_add_to_cart_button {
		flex: 1 1 auto;
		min-width: 0;
	}

	body.single-product div.product .woocommerce-tabs {
		margin-top: 48px !important;
	}

	body.single-product div.product .woocommerce-tabs ul.tabs {
		justify-content: flex-start;
		gap: 24px;
		overflow-x: auto;
	}

	body.single-product div.product .woocommerce-tabs ul.tabs li a {
		white-space: nowrap;
		font-size: 14px;
	}

	body.single-product div.product .related,
	body.single-product div.product .upsells {
		margin-bottom: 54px !important;
		padding-top: 44px !important;
	}

	body.single-product div.product .related > h2,
	body.single-product div.product .upsells > h2 {
		margin-bottom: 34px !important;
		font-size: 25px;
	}

	body.single-product div.product .related ul.products,
	body.single-product div.product .upsells ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 34px 16px;
	}
}

@media (max-width: 420px) {
	body.single-product div.product .related ul.products,
	body.single-product div.product .upsells ul.products {
		grid-template-columns: 1fr;
	}
}


/* -------------------------------------------------------------------------
 * v1.1.73 theme/Elementor compatibility
 * The active theme renders WooCommerce single-product markup without a
 * .woocommerce wrapper. These rules deliberately target WooCommerce's native
 * classes directly and load at the end of wp_enqueue_scripts so the reference
 * layout wins over theme defaults.
 * ---------------------------------------------------------------------- */

/* Keep the existing Pyali Chai header, but remove the oversized Elementor
 * spacer/min-height on product pages. 59px announcement + 112px navigation. */
body.single-product .elementor-widget-pyalichai-header .pyalichai-header {
	height: 171px !important;
}

body.single-product .elementor-widget-pyalichai-header,
body.single-product .elementor-widget-pyalichai-header > .elementor-widget-container {
	min-height: 0 !important;
	height: auto !important;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

@supports selector(:has(*)) {
	body.single-product .e-con:has(> .elementor-widget-pyalichai-header),
	body.single-product .elementor-section:has(.elementor-widget-pyalichai-header) {
		min-height: 0 !important;
		height: auto !important;
		padding-bottom: 0 !important;
		margin-bottom: 0 !important;
	}
}

/* Some themes put breadcrumb/tabs/related outside the div.product node. */
body.single-product .woocommerce-breadcrumb {
	display: block !important;
	width: 100vw !important;
	max-width: none !important;
	margin: 0 0 38px calc(50% - 50vw) !important;
	padding: 17px max(28px, calc((100vw - 1190px) / 2)) !important;
	background: #f8f8f8 !important;
	border-top: 1px solid #f1f1f1 !important;
	border-bottom: 1px solid #f1f1f1 !important;
}

body.single-product main div.product,
body.single-product .site-main div.product,
body.single-product article.product {
	max-width: 1190px !important;
}

/* Force reference tabs even against high-specificity Woo/theme defaults. */
body.single-product .woocommerce-tabs {
	float: none !important;
	clear: both !important;
	width: 100% !important;
	max-width: 1190px !important;
	margin: 62px auto 0 !important;
	padding: 0 !important;
}

body.single-product .woocommerce-tabs ul.tabs {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 34px !important;
	margin: 0 !important;
	padding: 0 0 15px !important;
	border: 0 !important;
	border-bottom: 1px solid #eeecea !important;
	background: transparent !important;
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs::after,
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
	display: none !important;
	content: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li,
body.single-product .woocommerce-tabs ul.tabs li.active {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
	padding: 0 !important;
	color: #b4afaa !important;
	font-size: 16px !important;
	font-weight: 600 !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
	color: #df6545 !important;
}

body.single-product .woocommerce-tabs .panel {
	max-width: 1190px !important;
	margin: 0 auto !important;
	padding: 31px 0 5px !important;
	border: 0 !important;
	background: transparent !important;
}

/* Related products: match the reference and suppress Woo's default Read more
 * buttons. Price/rating still appear automatically when those product fields
 * exist in WooCommerce. */
body.single-product section.related.products,
body.single-product section.upsells.products,
body.single-product .related.products,
body.single-product .upsells.products {
	float: none !important;
	clear: both !important;
	width: calc(100% - 56px) !important;
	max-width: 1190px !important;
	margin: 61px auto 74px !important;
	padding: 58px 0 0 !important;
	border-top: 1px solid #eeecea !important;
}

body.single-product .related.products > h2,
body.single-product .upsells.products > h2 {
	position: relative !important;
	margin: 0 0 48px !important;
	padding: 0 0 19px !important;
	font-size: 28px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-align: center !important;
}

body.single-product .related.products > h2::after,
body.single-product .upsells.products > h2::after {
	position: absolute !important;
	bottom: 0 !important;
	left: 50% !important;
	width: 45px !important;
	height: 8px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='45' height='8' viewBox='0 0 45 8'%3E%3Cpath d='M1 4c4.2-4.2 8.3 4.2 12.5 0s8.3 4.2 12.5 0 8.3 4.2 12.5 0 4.2 0 5.5 0' fill='none' stroke='%23df6545' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	content: "" !important;
	transform: translateX(-50%) !important;
}

body.single-product .related.products ul.products,
body.single-product .upsells.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 27px !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.single-product .related.products ul.products li.product,
body.single-product .upsells.products ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.single-product .related.products ul.products li.product .button,
body.single-product .upsells.products ul.products li.product .button {
	display: none !important;
}

@media (max-width: 767px) {
	body.single-product .elementor-widget-pyalichai-header .pyalichai-header {
		height: auto !important;
	}

	body.single-product .related.products,
	body.single-product .upsells.products {
		width: calc(100% - 34px) !important;
	}

	body.single-product .related.products ul.products,
	body.single-product .upsells.products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 26px 14px !important;
	}
}

/* -------------------------------------------------------------------------
 * v1.1.74 product-page corrections
 * 1) Product pages use a white Pyali Chai navigation area.
 * 2) The main gallery is locked to a reference-style square/compact frame so
 *    portrait source images cannot make the entire product page excessively tall.
 * ---------------------------------------------------------------------- */

/* White product-page header/navigation while keeping the existing dark
 * announcement strip and the site's own Pyali Chai header markup. */
body.single-product .pyalichai-header,
body.single-product .elementor-widget-pyalichai-header,
body.single-product .elementor-widget-pyalichai-header > .elementor-widget-container {
	background: #fff !important;
}

body.single-product .pyalichai-header__announcement {
	background: #333 !important;
	color: #fff !important;
}

body.single-product .pyalichai-header__navigation,
body.single-product .pyalichai-header__desktop,
body.single-product .pyalichai-header__mobile {
	background: #fff !important;
	color: #2f2925 !important;
}

body.single-product .pyalichai-header__nav-link,
body.single-product .pyalichai-header__icon-link,
body.single-product .pyalichai-header__mobile-icon,
body.single-product .pyalichai-header__wholesale {
	color: #2f2925 !important;
}

body.single-product .pyalichai-header__logo--desktop,
body.single-product .pyalichai-header__logo--mobile,
body.single-product .pyalichai-header__mobile-icon img,
body.single-product .pyalichai-header__icon-link img {
	filter: brightness(0) !important;
}

/* Prevent an Elementor header container/min-height from creating a tall empty
 * band between the navigation and WooCommerce breadcrumb on product pages. */
body.single-product .elementor-widget-pyalichai-header,
body.single-product .elementor-widget-pyalichai-header > .elementor-widget-container {
	min-height: 0 !important;
	height: auto !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

@supports selector(:has(*)) {
	body.single-product .e-con:has(.pyalichai-header),
	body.single-product .elementor-section:has(.pyalichai-header) {
		--min-height: 0px !important;
		min-height: 0 !important;
		height: auto !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		margin-bottom: 0 !important;
	}
}

@media (min-width: 768px) {
	body.single-product .pyalichai-header--dark-nav {
		height: 171px !important;
	}

	body.single-product .pyalichai-header__navigation {
		top: 59px !important;
		height: 112px !important;
	}

	/* Hard size the WooCommerce/FlexSlider stage. aspect-ratio alone is only a
	 * preferred size and can expand to the intrinsic height of a portrait image. */
	/* Keep the visible gallery stage compact, but do NOT force a width on the
	 * FlexSlider track or individual slides. FlexSlider writes those widths
	 * inline and needs them to move from thumbnail 1 to thumbnail 2 correctly. */
	body.single-product div.product div.images .woocommerce-product-gallery,
	body.single-product div.product div.images .flex-viewport {
		width: 100% !important;
		height: 520px !important;
		max-height: 520px !important;
		min-height: 520px !important;
		overflow: hidden !important;
		background: #f7f7f7 !important;
	}

	body.single-product div.product div.images .woocommerce-product-gallery__wrapper {
		height: 520px !important;
		max-height: 520px !important;
		min-height: 520px !important;
		background: #f7f7f7 !important;
	}

	body.single-product div.product div.images .woocommerce-product-gallery__image,
	body.single-product div.product div.images .woocommerce-product-gallery__image.flex-active-slide,
	body.single-product div.product div.images .woocommerce-product-gallery__image > a {
		height: 520px !important;
		max-height: 520px !important;
		min-height: 520px !important;
		aspect-ratio: auto !important;
		overflow: hidden !important;
		background: #f7f7f7 !important;
	}

	body.single-product div.product div.images .woocommerce-product-gallery__image img {
		display: block !important;
		width: 100% !important;
		height: 520px !important;
		max-height: 520px !important;
		min-height: 520px !important;
		object-fit: cover !important;
		object-position: center center !important;
	}
}

@media (min-width: 768px) and (max-width: 1100px) {
	body.single-product div.product div.images .woocommerce-product-gallery,
	body.single-product div.product div.images .flex-viewport,
	body.single-product div.product div.images .woocommerce-product-gallery__wrapper,
	body.single-product div.product div.images .woocommerce-product-gallery__image,
	body.single-product div.product div.images .woocommerce-product-gallery__image.flex-active-slide,
	body.single-product div.product div.images .woocommerce-product-gallery__image > a,
	body.single-product div.product div.images .woocommerce-product-gallery__image img {
		height: 430px !important;
		max-height: 430px !important;
		min-height: 430px !important;
	}
}

@media (max-width: 767px) {
	body.single-product .pyalichai-header,
	body.single-product .pyalichai-header__navigation,
	body.single-product .pyalichai-header__mobile {
		background: #fff !important;
	}

	body.single-product div.product div.images .woocommerce-product-gallery__image > a {
		height: auto !important;
		aspect-ratio: 1 / 1 !important;
	}

	body.single-product div.product div.images .woocommerce-product-gallery__image img {
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
	}
}

/* v1.1.75: product pages now reserve the header height inside the header itself, so the global blog-layout navigation spacer is redundant and created the navy band seen below the white navigation. */
body.single-product .pyalichai-blog-global-header {
	background: #fff !important;
}

body.single-product .pyalichai-blog-global-header__nav-space {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}


/* v1.1.76: preserve WooCommerce FlexSlider geometry when switching gallery
 * thumbnails. The slider must control track/slide widths via inline styles. */
body.single-product div.product div.images .flex-viewport > .woocommerce-product-gallery__wrapper {
	max-width: none !important;
}

body.single-product div.product div.images .flex-viewport .woocommerce-product-gallery__image {
	max-width: none !important;
}
