/* ==========================================================================
   ProjecXive Pro — WooCommerce Storefront, Archive, Single Product & Cart
   Betheme Visual Parity + Zero WooCommerce Float/Clearfix Grid Conflicts
   ========================================================================== */

/* CRITICAL: Kill WooCommerce's legacy ::before/::after table clearfixes on CSS Grid */
ul.products::before,
ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none !important;
	content: none !important;
}

/* Category #233e4b Pill Banner (Matches post-129.css) */
.pxt-cat-banner-wrap {
	padding: 28px 0 24px;
}

.pxt-cat-pill-banner {
	background-color: #233e4b;
	border-radius: 32px;
	padding: 36px 5%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	position: relative;
}

.pxt-cat-pill-left {
	padding-left: 40px;
	background-image: url('https://projecxiveindia.in/wp-content/uploads/2022/06/furniturestore-shop-sep.svg');
	background-repeat: no-repeat;
	background-position: center left;
	background-size: auto;
}

.pxt-cat-pill-title {
	font-family: 'Sora', sans-serif;
	font-size: 35px;
	line-height: 1.2;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	margin: 0;
}

.pxt-cat-pill-media {
	flex: 0 0 auto;
	margin-top: -20px;
}

.pxt-cat-pill-media img {
	max-height: 160px;
	width: auto;
	object-fit: contain;
	border-radius: 14px;
}

.pxt-cat-breadcrumbs {
	margin-top: 8px;
	font-size: 13px;
	color: #cbd5e1;
}

.pxt-cat-breadcrumbs a {
	color: #ffb128;
	text-decoration: none;
}

/* Product Grid (4-col desktop / 2-col mobile) */
ul.products.pxt-product-grid,
.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 20px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.woocommerce ul.products li.product,
ul.products li.pxt-product-card {
	background-color: #f5f5f5 !important;
	border-radius: 16px !important;
	padding: 16px !important;
	display: flex !important;
	flex-direction: column;
	justify-content: space-between;
	text-align: center;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
}

.woocommerce ul.products li.product:hover,
ul.products li.pxt-product-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(11, 57, 84, 0.08);
}

.pxt-card-media {
	position: relative;
	background-color: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

.pxt-card-img-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 10px;
}

.pxt-card-img-link img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	margin: 0 !important;
}

/* Heart Wishlist Icon Top-Left (Matches Betheme mfn-wish-button) */
.pxt-card-wish-btn {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.92);
	color: #333333;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.pxt-card-wish-btn svg {
	width: 18px;
	height: 18px;
}

.pxt-card-wish-btn:hover,
.pxt-card-wish-btn.is-wishlisted {
	color: #ffb128;
}

.pxt-card-wish-btn.is-wishlisted svg {
	fill: #ffb128;
}

/* Sale Badge Top-Right */
.onsale.pxt-sale-badge,
.woocommerce span.onsale {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	left: auto !important;
	z-index: 2;
	background-color: #ffb128 !important;
	color: #ffffff !important;
	font-family: 'Sora', sans-serif;
	font-size: 12px !important;
	font-weight: 700 !important;
	padding: 4px 10px !important;
	border-radius: 50px !important;
	min-height: auto !important;
	min-width: auto !important;
	line-height: 1.2 !important;
	margin: 0 !important;
}

/* Quick View Icon (Hover only on desktop) */
.pxt-card-qv-btn {
	position: absolute;
	bottom: 10px;
	right: 10px;
	z-index: 3;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid #e5e7eb;
	background: rgba(255, 255, 255, 0.95);
	color: #0b3954;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.pxt-product-card:hover .pxt-card-qv-btn {
	opacity: 1;
}

.pxt-card-qv-btn:hover {
	background-color: #0b3954;
	color: #ffffff;
}

.pxt-card-qv-btn svg {
	width: 15px;
	height: 15px;
}

.pxt-card-body {
	padding: 4px 4px 6px;
}

.pxt-card-title {
	font-family: 'Sora', sans-serif !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	margin: 0 0 8px !important;
	text-align: center;
}

.pxt-card-title a {
	color: #0b3954 !important;
	text-decoration: none;
}

.pxt-card-title a:hover {
	color: #ffb128 !important;
}

.pxt-card-price {
	font-family: 'Sora', sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #0b3954;
	text-align: center;
}

.pxt-card-price del {
	color: #a8a8a8;
	font-weight: 400;
	margin-right: 6px;
}

.pxt-card-price ins {
	text-decoration: none;
	color: #0b3954;
}

/* Archive Toolbar & Load More */
.pxt-wc-archive-wrap {
	padding-top: 28px;
	padding-bottom: 56px;
}

.pxt-wc-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e9eef2;
}

.pxt-wc-toolbar .woocommerce-result-count {
	margin: 0 !important;
	float: none !important;
	color: #0b3954;
	font-size: 14px;
}

.pxt-wc-toolbar .woocommerce-ordering {
	margin: 0 !important;
	float: none !important;
}

.pxt-wc-toolbar .woocommerce-ordering select {
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px solid #d5dce0;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	color: #0b3954;
	background: #ffffff;
}

.pxt-load-more-wrap {
	text-align: center;
	margin-top: 32px;
}

/* Single Product Floating Prev/Next + 50/50 Split */
.pxt-single-product-main {
	padding: 20px 0 60px;
	position: relative;
}

.pxt-floating-prod-nav a {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	z-index: 80;
	width: 44px;
	height: 54px;
	background: rgba(11, 57, 84, 0.08);
	color: #0b3954;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.pxt-floating-prod-nav a[rel="prev"] {
	left: 0;
	border-radius: 0 8px 8px 0;
}

.pxt-floating-prod-nav a[rel="next"] {
	right: 0;
	border-radius: 8px 0 0 8px;
}

.pxt-floating-prod-nav a:hover {
	background: #ffb128;
	color: #ffffff;
}

.pxt-product-top-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	font-size: 13px;
	color: #5c676d;
}

.pxt-product-breadcrumbs a {
	color: #0b3954;
	text-decoration: none;
}

.pxt-shop-grid-link {
	color: #0b3954;
	font-weight: 600;
	text-decoration: none;
	padding: 6px 14px;
	background: #f5f5f5;
	border-radius: 20px;
}

.pxt-product-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 44px;
	align-items: start;
	margin-bottom: 48px;
}

/* Override WooCommerce core 48% float widths inside our 50/50 Grid */
.woocommerce div.product .pxt-product-split div.images,
.pxt-product-gallery-col .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	opacity: 1 !important;
}

.woocommerce div.product .pxt-product-split div.summary,
.pxt-product-summary-col {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

.pxt-product-summary-col h1.product_title {
	font-family: 'Sora', sans-serif !important;
	font-size: clamp(24px, 2.8vw, 35px) !important;
	line-height: 1.25 !important;
	font-weight: 700 !important;
	color: #0b3954 !important;
	margin: 0 0 14px !important;
}

.pxt-product-summary-col .price {
	font-family: 'Sora', sans-serif !important;
	font-size: 26px !important;
	font-weight: 700 !important;
	color: #0b3954 !important;
	margin: 0 0 16px !important;
}

.pxt-tax-note {
	font-size: 13px;
	font-weight: 500;
	color: #5c676d;
}

.pxt-product-summary-col form.cart {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.pxt-product-summary-col .quantity .qty {
	width: 72px;
	height: 46px;
	text-align: center;
	border: 1px solid #d5dce0;
	border-radius: 80px;
	font-weight: 600;
	color: #0b3954;
}

.pxt-product-summary-col .single_add_to_cart_button {
	background-color: #0b3954 !important;
	color: #ffffff !important;
	font-family: 'Sora', sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	padding: 15px 35px !important;
	border-radius: 80px !important;
	border: none !important;
	cursor: pointer;
}

.pxt-product-summary-col .single_add_to_cart_button:hover {
	background-color: #225471 !important;
}

/* Preserve Tawk.to Enquiry Button (Orange Pill) */
.button.tawk-pill-btn {
	background-color: #ffb128 !important;
	color: #ffffff !important;
	font-family: 'Sora', sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	padding: 15px 35px !important;
	border-radius: 80px !important;
	border: none !important;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 8px;
}

.button.tawk-pill-btn:hover {
	background-color: #225471 !important;
	color: #ffffff !important;
}

.pxt-product-utility-row {
	margin-top: 16px;
}

.pxt-wishlist-btn-inline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 1px solid #d5dce0;
	color: #0b3954;
	padding: 8px 16px;
	border-radius: 80px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.pxt-wishlist-btn-inline svg {
	width: 16px;
	height: 16px;
}

.pxt-wishlist-btn-inline.is-wishlisted {
	background-color: #ffb128;
	border-color: #ffb128;
	color: #ffffff;
}

.product_meta {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #e9eef2;
	font-size: 13px;
	color: #5c676d;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Wide Product Tabs */
.pxt-product-tabs-wide .woocommerce-tabs ul.tabs {
	display: flex !important;
	justify-content: center;
	gap: 8px;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 24px !important;
	border-bottom: 2px solid #e9eef2;
	flex-wrap: wrap;
}

.pxt-product-tabs-wide .woocommerce-tabs ul.tabs::before {
	display: none !important;
}

.pxt-product-tabs-wide .woocommerce-tabs ul.tabs li {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
}

.pxt-product-tabs-wide .woocommerce-tabs ul.tabs li::before,
.pxt-product-tabs-wide .woocommerce-tabs ul.tabs li::after {
	display: none !important;
}

.pxt-product-tabs-wide .woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: 12px 24px !important;
	font-family: 'Sora', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #5c676d !important;
	text-decoration: none;
	border-bottom: 3px solid transparent;
}

.pxt-product-tabs-wide .woocommerce-tabs ul.tabs li.active a {
	color: #0b3954 !important;
	border-bottom-color: #ffb128;
}

.pxt-product-tabs-wide table {
	width: 100%;
	border-collapse: collapse;
}

.pxt-product-tabs-wide table th,
.pxt-product-tabs-wide table td {
	padding: 10px 14px;
	border: 1px solid #e5e7eb;
	text-align: left;
}

/* Quick View Modal */
.pxt-qv-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(11, 57, 84, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.pxt-qv-modal[hidden] {
	display: none;
}

.pxt-qv-dialog {
	background: #ffffff;
	border-radius: 20px;
	max-width: 780px;
	width: 100%;
	padding: 28px;
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 28px;
	max-height: 90vh;
	overflow-y: auto;
}

.pxt-qv-close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: #f5f5f5;
	color: #0b3954;
	font-size: 20px;
	cursor: pointer;
}

@media (max-width: 959px) {
	ul.products.pxt-product-grid,
	.woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 16px !important;
	}
	.pxt-product-split {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.pxt-floating-prod-nav {
		display: none;
	}
}

@media (max-width: 767px) {
	.pxt-cat-pill-banner {
		flex-direction: column;
		text-align: left;
		padding: 28px 20px;
		border-radius: 24px;
	}
	.pxt-cat-pill-title {
		font-size: 26px;
	}
	.pxt-cat-pill-media {
		margin-top: 0;
	}
	ul.products.pxt-product-grid,
	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}
	.woocommerce ul.products li.product,
	ul.products li.pxt-product-card {
		padding: 10px !important;
		border-radius: 12px !important;
	}
	.pxt-card-title {
		font-size: 13px !important;
	}
	.pxt-qv-dialog {
		grid-template-columns: 1fr;
		padding: 20px;
	}
}
