/**
 * EcomPlus Single Product Swatches, Attribute Selectors, Key Specs & Trust Strip.
 *
 * @package Ecom_Plus
 */

/* ==========================================================================
   1. Inline Key Specifications Highlight (Priority 19)
   ========================================================================== */
.ecom-key-specs-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px 16px;
	margin: 14px 0 16px 0;
}

.ecom-key-specs-title {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #475569;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.ecom-key-specs-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 480px) {
	.ecom-key-specs-grid {
		grid-template-columns: 1fr;
		gap: 6px;
	}
}

.ecom-key-spec-item {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-size: 12.5px;
	line-height: 1.4;
	color: #334155;
}

.ecom-key-spec-icon {
	color: #0F172A;
	flex-shrink: 0;
	font-size: 11px;
}

.ecom-key-spec-label {
	font-weight: 700;
	color: #1e293b;
}

.ecom-key-spec-value {
	color: #475569;
	font-weight: 500;
}

/* ==========================================================================
   2. Attribute Quick Selectors & Swatches (Priority 22)
   ========================================================================== */
.ecom-product-attributes-selector {
	margin: 16px 0 20px 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ecom-attr-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ecom-attr-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12.5px;
}

.ecom-attr-label {
	font-weight: 700;
	color: #0f172a;
}

.ecom-attr-selected-value {
	font-weight: 700;
	color: #0F172A;
	margin-left: 4px;
}

.ecom-swatches-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

/* Color Swatch Dot */
.ecom-swatch-color-btn {
	position: relative;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 1.5px #cbd5e1;
	cursor: pointer;
	padding: 0;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	outline: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ecom-swatch-color-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 0 0 2px #0F172A;
}

.ecom-swatch-color-btn.is-active,
.ecom-swatch-color-btn[aria-checked="true"] {
	box-shadow: 0 0 0 2.5px #0F172A;
	transform: scale(1.08);
}

.ecom-swatch-color-btn.is-active::after {
	content: "✓";
	color: #ffffff;
	font-size: 13px;
	font-weight: 900;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.ecom-swatch-color-btn.color-white.is-active::after,
.ecom-swatch-color-btn.color-yellow.is-active::after,
.ecom-swatch-color-btn.color-beige.is-active::after {
	color: #0F172A;
	text-shadow: none;
}

/* Text Pill Swatches (Size, Model, Material, Type) */
.ecom-swatch-pill-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 8px;
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	color: #334155;
	cursor: pointer;
	transition: all 0.18s ease;
	text-decoration: none;
	user-select: none;
}

.ecom-swatch-pill-btn:hover {
	border-color: #0F172A;
	color: #0F172A;
	background: #F8FAFC;
}

.ecom-swatch-pill-btn.is-active,
.ecom-swatch-pill-btn[aria-checked="true"] {
	border-color: #0F172A;
	background: #0F172A;
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

/* ==========================================================================
   3. Redesigned Compact Buyer Assurance Trust Strip (Priority 35)
   ========================================================================== */
.ecom-trust-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	padding: 12px 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	margin: 16px 0;
}

@media (max-width: 640px) {
	.ecom-trust-strip {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
		padding: 10px 8px;
	}
}

.ecom-trust-chip {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 700;
	color: #1e293b;
}

.ecom-trust-chip-icon {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ecom-trust-chip-icon svg {
	width: 13px;
	height: 13px;
}

.ecom-trust-chip-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.ecom-trust-chip-title {
	font-size: 11px;
	font-weight: 800;
	color: #0f172a;
}

.ecom-trust-chip-sub {
	font-size: 9.5px;
	font-weight: 500;
	color: #64748b;
}
/* ==========================================================================
   3.5. Top Meta & Social Proof Strip (Reviews + Stock + Live Viewers)
   ========================================================================== */
.ecom-product-top-meta-row {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 8px 10px !important;
	margin: 6px 0 10px 0 !important;
}

.woocommerce div.product p.price {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 10px 14px !important;
	margin: 6px 0 12px 0 !important;
}

.woocommerce div.product p.price del {
	opacity: 0.55 !important;
	font-size: 15px !important;
}

.woocommerce div.product p.price ins,
.woocommerce div.product p.price > .woocommerce-Price-amount {
	font-size: 22px !important;
	font-weight: 900 !important;
	color: #0F172A !important;
	text-decoration: none !important;
}

/* ==========================================================================
   4. Compact Product Meta Row (Priority 33)
   ========================================================================== */
.ecom-single-product-meta-compact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	font-size: 11.5px;
	color: #64748b;
	padding: 10px 0;
	border-top: 1px solid #f1f5f9;
	margin-top: 14px;
}

.ecom-single-product-meta-compact a {
	color: #0F172A;
	font-weight: 600;
	text-decoration: none;
}

.ecom-single-product-meta-compact a:hover {
	text-decoration: underline;
}

.ecom-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.ecom-meta-label {
	font-weight: 700;
	color: #475569;
}

/* ==========================================================================
   5. Action Buttons Row (Quantity + Add to Cart + Buy Now + Wishlist)
   ========================================================================== */
.woocommerce div.product form.cart {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 10px !important;
	margin: 18px 0 14px 0 !important;
	width: 100% !important;
}

.woocommerce div.product .quantity {
	display: inline-flex !important;
	align-items: center !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	background: #ffffff !important;
	height: 48px !important;
	width: 120px !important;
	min-width: 120px !important;
	max-width: 120px !important;
	margin: 0 !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
	flex-shrink: 0 !important;
	float: none !important;
}

.ecom-qty-btn {
	width: 38px !important;
	height: 100% !important;
	background-color: #f8fafc !important;
	border: none !important;
	color: #1e293b !important;
	font-size: 19px !important;
	font-weight: 800 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease !important;
	padding: 0 !important;
	user-select: none !important;
	outline: none !important;
	flex-shrink: 0 !important;
}

.ecom-qty-btn:hover {
	background-color: #f1f5f9 !important;
	color: #0F172A !important;
}

.ecom-qty-btn:active {
	background-color: #e2e8f0 !important;
	transform: scale(0.92) !important;
}

.woocommerce div.product .quantity input.qty {
	width: 44px !important;
	height: 100% !important;
	border: none !important;
	text-align: center !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	background: transparent !important;
	outline: none !important;
	padding: 0 !important;
	margin: 0 !important;
	-moz-appearance: textfield !important;
	flex: 1 !important;
}

.woocommerce div.product .quantity input.qty::-webkit-outer-spin-button,
.woocommerce div.product .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button {
	height: 48px !important;
	padding: 0 24px !important;
	background-color: #E69A09 !important;
	background: #E69A09 !important;
	color: #ffffff !important;
	font-size: 14.5px !important;
	font-weight: 800 !important;
	border-radius: 12px !important;
	border: none !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
	box-shadow: 0 4px 14px rgba(230, 154, 9, 0.3) !important;
	margin: 0 !important;
	flex-shrink: 0 !important;
	white-space: nowrap !important;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button:hover {
	background-color: #C57E03 !important;
	background: #C57E03 !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 18px rgba(230, 154, 9, 0.38) !important;
}

.ecom-buy-now-btn {
	height: 48px !important;
	padding: 0 24px !important;
	background: #0f172a !important;
	color: #ffffff !important;
	font-size: 14.5px !important;
	font-weight: 800 !important;
	border-radius: 12px !important;
	border: none !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2) !important;
	margin: 0 !important;
	flex-shrink: 0 !important;
	white-space: nowrap !important;
}

.ecom-buy-now-btn:hover {
	background: #1e293b !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3) !important;
}

.ecom-single-wishlist-btn {
	height: 48px !important;
	padding: 0 18px !important;
	background: #ffffff !important;
	border: 1.5px solid #e2e8f0 !important;
	border-radius: 12px !important;
	color: #1e293b !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
	margin: 0 !important;
	flex-shrink: 0 !important;
	white-space: nowrap !important;
}

.ecom-single-wishlist-btn:hover {
	border-color: #cbd5e1 !important;
	background: #f8fafc !important;
	transform: translateY(-1px) !important;
}

.ecom-single-wishlist-btn.is-active {
	border-color: #a7f3d0 !important;
	background: #ecfdf5 !important;
	color: #065f46 !important;
}

.ecom-single-wishlist-btn.is-active svg {
	color: #ef4444 !important;
	fill: #ef4444 !important;
}

.ecom-single-wishlist-wrap {
	display: none !important;
}

/* Mobile Responsive Action Buttons Grid (2x2 Balanced Cluster) */
@media (max-width: 640px) {
	.woocommerce div.product form.cart {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 8px !important;
		width: 100% !important;
		margin: 16px 0 14px 0 !important;
	}

	/* Compact Quantity Stepper */
	.woocommerce div.product .quantity {
		flex: 0 0 100px !important;
		width: 100px !important;
		min-width: 100px !important;
		max-width: 100px !important;
		height: 48px !important;
		border-radius: 12px !important;
		margin: 0 !important;
	}

	.ecom-qty-btn {
		width: 32px !important;
		font-size: 17px !important;
	}

	.woocommerce div.product .quantity input.qty {
		width: 36px !important;
		font-size: 14.5px !important;
	}

	/* Primary Add to Cart: Fills remaining space with #E69A09 */
	.woocommerce div.product form.cart .button.single_add_to_cart_button {
		flex: 1 1 auto !important;
		width: auto !important;
		min-width: 0 !important;
		height: 48px !important;
		padding: 0 14px !important;
		font-size: 14px !important;
		font-weight: 800 !important;
		border-radius: 12px !important;
		background-color: #E69A09 !important;
		background: #E69A09 !important;
		box-shadow: 0 4px 14px rgba(230, 154, 9, 0.3) !important;
		margin: 0 !important;
	}

	/* Wishlist: Compact Touch Icon Button */
	.ecom-single-wishlist-btn {
		flex: 0 0 48px !important;
		width: 48px !important;
		min-width: 48px !important;
		max-width: 48px !important;
		height: 48px !important;
		padding: 0 !important;
		justify-content: center !important;
		border-radius: 12px !important;
		margin: 0 !important;
	}

	.ecom-single-wishlist-btn .ecom-wishlist-text-default,
	.ecom-single-wishlist-btn .ecom-wishlist-text-active {
		display: none !important;
	}
}

/* ==========================================================================
   6. Dual-Selling & Affiliate Marketplace Strip (Amazon / Flipkart)
   ========================================================================== */
.ecom-dual-selling-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	padding: 12px 16px;
	background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	margin: 14px 0 18px 0;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.ecom-dual-selling-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 800;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.ecom-dual-selling-links {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.ecom-affiliate-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 15px;
	border-radius: 9px;
	font-size: 12.5px;
	font-weight: 800;
	text-decoration: none !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
}

.ecom-affiliate-chip:hover {
	transform: translateY(-1.5px);
}

.ecom-affiliate-arrow {
	font-size: 11px;
	transition: transform 0.18s ease;
}

.ecom-affiliate-chip:hover .ecom-affiliate-arrow {
	transform: translate(2px, -2px);
}

/* Official Amazon Branded Chip — Lighted Warm Gold */
.ecom-affiliate-chip.ecom-affiliate-amazon {
	background: linear-gradient(180deg, #FFD814 0%, #F7CA00 100%);
	color: #0F1111 !important;
	border: 1px solid #D5A600;
	box-shadow: 0 2px 6px rgba(213, 166, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.ecom-affiliate-chip.ecom-affiliate-amazon:hover {
	background: linear-gradient(180deg, #F7CA00 0%, #E2B300 100%);
	color: #000000 !important;
	border-color: #B88E00;
	box-shadow: 0 4px 12px rgba(213, 166, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ecom-affiliate-chip.ecom-affiliate-amazon .ecom-affiliate-arrow {
	color: #0F1111;
	opacity: 0.85;
}

/* Official Flipkart Branded Chip — Lighted Brand Blue */
.ecom-affiliate-chip.ecom-affiliate-flipkart {
	background: linear-gradient(180deg, #2874F0 0%, #1A62DB 100%);
	color: #FFFFFF !important;
	border: 1px solid #1450BC;
	box-shadow: 0 2px 6px rgba(40, 116, 240, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ecom-affiliate-chip.ecom-affiliate-flipkart:hover {
	background: linear-gradient(180deg, #1A62DB 0%, #104AB3 100%);
	color: #FFFFFF !important;
	border-color: #0D3E9A;
	box-shadow: 0 4px 12px rgba(40, 116, 240, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.ecom-affiliate-chip.ecom-affiliate-flipkart .ecom-affiliate-arrow {
	color: #FFE11B;
	opacity: 1;
}

/* Generic Partner Chip */
.ecom-affiliate-chip.ecom-affiliate-partner {
	background: #ffffff;
	color: #0F172A !important;
	border: 1.5px solid #CBD5E1;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.ecom-affiliate-chip.ecom-affiliate-partner:hover {
	background: #f8fafc;
	border-color: #0F172A;
	color: #0F172A !important;
	box-shadow: 0 3px 8px rgba(15, 23, 42, 0.1);
}

/* ==========================================================================
   Smart UI Streamlining & Clean-Up (Non-Destructive Smart Hiding)
   ========================================================================== */

/* 1. Smartly hide 1-Click Buy Now button on PDP */
.ecom-buy-now-btn,
.ecom-sticky-buy-now {
	display: none !important;
}

/* 2. Smartly hide SKU, Category, and Tag metadata row on PDP to eliminate clutter */
.woocommerce div.product .product_meta,
.ecom-single-product-meta-compact {
	display: none !important;
}

/* 3. Smartly hide single-option or static attribute groups */
.ecom-attr-group.is-smart-hidden {
	display: none !important;
}

/* 4. Collapse attribute selector wrapper when all groups are smartly hidden */
.ecom-product-attributes-selector.is-all-hidden {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* 5. Smartly hide Pincode Estimator delivery check */
.ecom-pincode-estimator {
	display: none !important;
}

/* 6. Smartly hide Trust Assurance Commitment Strip */
.ecom-trust-strip {
	display: none !important;
}




