/* ==========================================================================
   DESIWED 95% FIX — final polish
   ==========================================================================
   1. Vendor profile: gallery shows 5-image grid (1 large + 4 small)
   2. Vendor cards: review count visible (or "No reviews" greyed)
   3. Shop archive: smaller hero + 3-column products
   4. Single product (PDP): match artifact layout
   ========================================================================== */

/* ==========================================================================
   1. VENDOR GALLERY — 5-image grid, 1 large + 4 small
   ========================================================================== */
.desiwed-rebrand .dw-vendor__gallery {
	display: grid !important;
	grid-template-columns: 2fr 1fr 1fr !important;
	grid-template-rows: 240px 240px !important;
	gap: 4px !important;
	max-width: 1400px !important;
	margin: 24px auto 0 !important;
	padding: 0 60px !important;
}
.desiwed-rebrand .dw-vendor__gallery-img {
	background-size: cover !important;
	background-position: center !important;
	display: block !important;
	position: relative !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease;
	min-height: 240px;
}
.desiwed-rebrand .dw-vendor__gallery-img:hover {
	opacity: 0.92;
}
.desiwed-rebrand .dw-vendor__gallery-img.is-main {
	grid-row: span 2 !important;
	grid-column: 1 !important;
	min-height: 484px !important;
}
.desiwed-rebrand .dw-vendor__gallery-img.is-show-more {
	position: relative;
}
.desiwed-rebrand .dw-vendor__gallery-img.is-show-more::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}
.desiwed-rebrand .dw-vendor__gallery-more {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	z-index: 2;
}

@media (max-width: 1100px) {
	.desiwed-rebrand .dw-vendor__gallery {
		grid-template-columns: 1fr !important;
		grid-template-rows: auto !important;
		padding: 0 24px !important;
	}
	.desiwed-rebrand .dw-vendor__gallery-img {
		min-height: 240px !important;
		grid-column: 1 !important;
		grid-row: auto !important;
	}
	.desiwed-rebrand .dw-vendor__gallery-img.is-main {
		grid-row: 1 !important;
		min-height: 320px !important;
	}
}

/* ==========================================================================
   2. VENDOR CARDS — stars/reviews always visible
   ========================================================================== */
.desiwed-rebrand .dw-vendor-card__stars,
.desiwed-rebrand .dw-vendor-card__stars--empty {
	font-size: 11px;
	color: #5b5550;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.desiwed-rebrand .dw-vendor-card__stars--empty {
	color: #94897e !important;
	font-style: italic;
	font-size: 10px;
}
.desiwed-rebrand .dw-vendor-card__stars .dw-star {
	color: #b8956a;
	letter-spacing: 0.05em;
}

/* Same for Listeo's existing vendor cards */
.desiwed-rebrand .listing-item .star-rating-wrapper,
.desiwed-rebrand .listing-item .rating-counter {
	display: inline-block !important;
	color: #5b5550 !important;
	font-size: 11px !important;
}
.desiwed-rebrand .listing-item .star-rating {
	color: #b8956a !important;
}

/* ==========================================================================
   3. SHOP ARCHIVE — smaller hero + 3-col grid
   ========================================================================== */

/* Reduce hero size */
.desiwed-rebrand .dw-shop__hero {
	padding: 60px 60px 40px !important;
	gap: 40px !important;
}
.desiwed-rebrand .dw-shop__h1 {
	font-size: 48px !important;
	line-height: 1.05 !important;
	letter-spacing: -0.5px !important;
}
.desiwed-rebrand .dw-shop__lede {
	font-size: 14px !important;
	max-width: 340px !important;
	line-height: 1.5 !important;
}

/* Same for the WC archive titlebar fallback */
.desiwed-rebrand body.woocommerce-shop #titlebar h1,
.desiwed-rebrand body.post-type-archive-product #titlebar h1,
.desiwed-rebrand body.tax-product_cat #titlebar h1 {
	font-size: 48px !important;
	line-height: 1.05 !important;
}
.desiwed-rebrand body.woocommerce-shop #titlebar,
.desiwed-rebrand body.post-type-archive-product #titlebar,
.desiwed-rebrand body.tax-product_cat #titlebar {
	padding: 50px 60px 40px !important;
}
.desiwed-rebrand .woocommerce-products-header {
	padding: 50px 60px 40px !important;
}
.desiwed-rebrand .woocommerce-products-header__title {
	font-size: 48px !important;
}

/* FORCE 3-column products grid (was 4) */
.desiwed-rebrand .woocommerce ul.products,
.desiwed-rebrand .woocommerce-page ul.products,
.desiwed-rebrand .woocommerce ul.products.columns-2,
.desiwed-rebrand .woocommerce ul.products.columns-3,
.desiwed-rebrand .woocommerce ul.products.columns-4,
.desiwed-rebrand .woocommerce ul.products.columns-5,
.desiwed-rebrand .woocommerce ul.products.columns-6 {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 4px 28px !important;
	max-width: 1400px !important;
	margin: 0 auto !important;
	padding: 32px 60px 60px !important;
	list-style: none !important;
}
@media (max-width: 1100px) {
	.desiwed-rebrand .woocommerce ul.products,
	.desiwed-rebrand .woocommerce-page ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
@media (max-width: 700px) {
	.desiwed-rebrand .woocommerce ul.products,
	.desiwed-rebrand .woocommerce-page ul.products {
		grid-template-columns: 1fr !important;
		padding-left: 24px !important;
		padding-right: 24px !important;
	}
}

/* Force consistent product card aspect ratio (was getting blown out) */
.desiwed-rebrand .woocommerce ul.products li.product img,
.desiwed-rebrand .woocommerce ul.products li.product a img,
.desiwed-rebrand .woocommerce-loop-product img {
	aspect-ratio: 3/4 !important;
	object-fit: cover !important;
	width: 100% !important;
	height: auto !important;
	max-height: 480px !important;
	min-height: 0 !important;
	margin: 0 0 12px !important;
	display: block !important;
}

/* Constrain individual product cards from going huge */
.desiwed-rebrand .woocommerce ul.products li.product {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 0 32px !important;
	float: none !important;
	background: transparent !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

/* Hide the loop add-to-cart button */
.desiwed-rebrand .woocommerce ul.products li.product .button.add_to_cart_button,
.desiwed-rebrand .woocommerce ul.products li.product a.button {
	display: none !important;
}

/* ==========================================================================
   4. SINGLE PRODUCT (PDP) — match artifact
   ========================================================================== */

/* Force WC product to 2-col layout */
.desiwed-rebrand .single-product div.product {
	display: grid !important;
	grid-template-columns: 1.4fr 1fr !important;
	gap: 60px !important;
	max-width: 1400px !important;
	margin: 32px auto 60px !important;
	padding: 0 60px !important;
}

/* Gallery on the left */
.desiwed-rebrand .single-product div.product .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	max-width: 100% !important;
}

/* Force gallery thumbnails to a 4-col grid below the main image */
.desiwed-rebrand .single-product .flex-control-thumbs,
.desiwed-rebrand .single-product .woocommerce-product-gallery .flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 6px !important;
	margin: 6px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.desiwed-rebrand .single-product .flex-control-thumbs li {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
	list-style: none !important;
}
.desiwed-rebrand .single-product .flex-control-thumbs img {
	width: 100% !important;
	aspect-ratio: 1/1 !important;
	object-fit: cover !important;
	cursor: pointer;
	border: 0 !important;
	opacity: 0.7 !important;
	transition: opacity 0.2s !important;
}
.desiwed-rebrand .single-product .flex-control-thumbs img.flex-active,
.desiwed-rebrand .single-product .flex-control-thumbs img:hover {
	opacity: 1 !important;
}

/* Main product image */
.desiwed-rebrand .single-product .woocommerce-product-gallery__image img,
.desiwed-rebrand .single-product .wp-post-image {
	width: 100% !important;
	aspect-ratio: 4/5 !important;
	object-fit: cover !important;
	max-height: 700px !important;
}

/* Summary on the right */
.desiwed-rebrand .single-product div.product .summary {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding-top: 16px !important;
	max-width: 100% !important;
}

.desiwed-rebrand .single-product .product_title {
	font-family: 'Cardo', Georgia, serif !important;
	font-size: 40px !important;
	font-weight: 400 !important;
	color: #1a1814 !important;
	margin: 8px 0 12px !important;
	letter-spacing: -0.01em !important;
	line-height: 1.1 !important;
}
.desiwed-rebrand .single-product .price {
	font-family: 'Cardo', Georgia, serif !important;
	font-size: 28px !important;
	color: #1a1814 !important;
	margin-bottom: 16px !important;
}
.desiwed-rebrand .single-product .price del {
	color: #94897e !important;
	font-size: 18px !important;
	margin-right: 12px !important;
}
.desiwed-rebrand .single-product .price ins {
	background: transparent !important;
	color: #6b2c2c !important;
	text-decoration: none !important;
}

/* Description / short description */
.desiwed-rebrand .single-product .woocommerce-product-details__short-description {
	color: #5b5550 !important;
	line-height: 1.7 !important;
	margin-bottom: 28px !important;
	padding-bottom: 28px !important;
	border-bottom: 1px solid #dcd6cb !important;
	font-size: 15px !important;
}

/* Variations form */
.desiwed-rebrand .single-product .variations {
	margin: 0 0 16px !important;
	border: 0 !important;
}
.desiwed-rebrand .single-product .variations tr {
	display: block !important;
	margin-bottom: 16px !important;
}
.desiwed-rebrand .single-product .variations th,
.desiwed-rebrand .single-product .variations td {
	display: block !important;
	width: 100% !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	font-weight: 400 !important;
}
.desiwed-rebrand .single-product .variations th {
	font-family: 'Inter', sans-serif !important;
	font-size: 11px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.14em !important;
	color: #5b5550 !important;
	margin-bottom: 8px !important;
	font-weight: 500 !important;
}
.desiwed-rebrand .single-product .variations select {
	width: 100% !important;
	padding: 12px 16px !important;
	border: 1px solid #dcd6cb !important;
	background: #fff !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 14px !important;
	color: #1a1814 !important;
	border-radius: 0 !important;
}

/* Quantity + add to cart row */
.desiwed-rebrand .single-product form.cart {
	display: flex !important;
	gap: 12px !important;
	align-items: stretch !important;
	margin-bottom: 8px !important;
}
.desiwed-rebrand .single-product .quantity {
	display: flex !important;
	align-items: stretch !important;
}
.desiwed-rebrand .single-product .quantity input.qty {
	width: 70px !important;
	padding: 14px 8px !important;
	text-align: center !important;
	border: 1px solid #dcd6cb !important;
	border-radius: 0 !important;
	background: #fff !important;
	font-size: 14px !important;
	height: auto !important;
}
.desiwed-rebrand .single-product .single_add_to_cart_button {
	flex: 1 !important;
	padding: 14px 32px !important;
	background: #1a1814 !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-size: 12px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.14em !important;
	font-weight: 500 !important;
	font-family: 'Inter', sans-serif !important;
	cursor: pointer !important;
	transition: background-color 0.2s !important;
}
.desiwed-rebrand .single-product .single_add_to_cart_button:hover {
	background: #6b2c2c !important;
}

/* Apple Pay / Google Pay buttons styled */
.desiwed-rebrand .single-product .wc-stripe-payment-request-button-container,
.desiwed-rebrand .single-product .wc-payment-request-button {
	margin-top: 12px !important;
}

/* Product meta below add-to-cart */
.desiwed-rebrand .single-product .product_meta {
	margin: 24px 0 0 !important;
	padding-top: 20px !important;
	border-top: 1px solid #dcd6cb !important;
	font-size: 12px !important;
	color: #94897e !important;
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 16px !important;
}
.desiwed-rebrand .single-product .product_meta > span {
	display: inline-block !important;
}
.desiwed-rebrand .single-product .product_meta strong,
.desiwed-rebrand .single-product .product_meta .sku_wrapper,
.desiwed-rebrand .single-product .product_meta .posted_in {
	font-weight: 500 !important;
	color: #5b5550 !important;
}

/* Vendor (Pramila etc) brand link / store link */
.desiwed-rebrand .single-product .product_meta .brand_wrapper a,
.desiwed-rebrand .single-product .vendor-link {
	color: #6b2c2c !important;
	font-weight: 500;
}

/* Tabs (Description, Shipping, Additional Info, Reviews, More Products) */
.desiwed-rebrand .woocommerce-tabs ul.tabs.wc-tabs {
	display: flex !important;
	gap: 28px !important;
	border: 0 !important;
	border-bottom: 1px solid #dcd6cb !important;
	margin: 32px 60px !important;
	padding: 0 !important;
	max-width: 1400px;
	margin-left: auto !important;
	margin-right: auto !important;
}
.desiwed-rebrand .woocommerce-tabs ul.tabs.wc-tabs li {
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 0 !important;
}
.desiwed-rebrand .woocommerce-tabs ul.tabs.wc-tabs li::before,
.desiwed-rebrand .woocommerce-tabs ul.tabs.wc-tabs li::after {
	display: none !important;
}
.desiwed-rebrand .woocommerce-tabs ul.tabs.wc-tabs li a {
	padding: 16px 0 !important;
	font-size: 12px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.14em !important;
	color: #94897e !important;
	border-bottom: 2px solid transparent !important;
	margin-bottom: -1px !important;
	font-weight: 500 !important;
	background: transparent !important;
}
.desiwed-rebrand .woocommerce-tabs ul.tabs.wc-tabs li.active a {
	color: #1a1814 !important;
	border-bottom-color: #6b2c2c !important;
}

.desiwed-rebrand .woocommerce-Tabs-panel {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 60px 80px !important;
}

/* Vendor mini-card on PDP (the small Pramila box under add-to-cart) */
.desiwed-rebrand .single-product .vendor-card-mini,
.desiwed-rebrand .single-product .dokan-vendor-card,
.desiwed-rebrand .single-product .seller-info {
	display: flex !important;
	gap: 16px !important;
	align-items: center !important;
	padding: 18px !important;
	border: 1px solid #dcd6cb !important;
	margin: 24px 0 !important;
	background: #fff !important;
}
.desiwed-rebrand .single-product .vendor-card-mini img {
	width: 56px !important;
	height: 56px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	flex-shrink: 0 !important;
}

/* Mobile responsive */
@media (max-width: 1100px) {
	.desiwed-rebrand .single-product div.product {
		grid-template-columns: 1fr !important;
		padding: 0 24px !important;
	}
	.desiwed-rebrand .single-product .product_title {
		font-size: 32px !important;
	}
	.desiwed-rebrand .single-product .price {
		font-size: 24px !important;
	}
	.desiwed-rebrand .woocommerce-tabs ul.tabs.wc-tabs {
		margin: 24px 24px !important;
	}
	.desiwed-rebrand .woocommerce-Tabs-panel {
		padding: 0 24px 40px !important;
	}
	.desiwed-rebrand .dw-shop__h1 {
		font-size: 36px !important;
	}
}

/* End */
