/* Custom Products Grid Layout */
.custom-products-grid,
.custom-products-grid * {
	font-family: 'Montserrat', system-ui, -apple-system, sans-serif !important;
}
.custom-products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin: 30px 0;
}


/* Custom Product Card Horizontal Split */
.custom-product-card {
	background: #fff;
	border: 1px solid #f0f2f5;
	border-radius: 12px;
	padding: 20px;
	display: flex;
	gap: 20px;
	position: relative;
	box-shadow: 0 2px 8px rgba(16, 24, 40, 0.01);
	transition: transform 0.25s, box-shadow 0.25s;
	box-sizing: border-box;
}
.custom-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

/* Category Badge (Top-left absolute) */
.custom-product-card .category-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	font-size: 10px;
	font-weight: 700;
	color: #fff !important;
	padding: 3px 10px;
	border-radius: 20px;
	text-decoration: none !important;
	z-index: 2;
	line-height: 1.3em;
}

/* Wishlist Heart Button (Top-right absolute) */
.custom-product-card .wishlist-btn {
	position: absolute;
	top: 14px;
	right: 14px;
	background: none !important;
	border: none !important;
	padding: 0 !important;
	cursor: pointer;
	color: #98a2b3;
	transition: color 0.2s, transform 0.2s;
	z-index: 2;
	outline: none !important;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: none !important;
}
.custom-product-card .wishlist-btn:hover {
	color: #e31b5f;
	transform: scale(1.1);
}
.custom-product-card .wishlist-btn svg {
	display: block;
}

/* Card Left Section: Image centering */
.custom-product-card .card-left {
	width: 160px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.custom-product-card .image-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.custom-product-card .product-image {
	max-width: 100%;
	object-fit: contain;
	display: block;
}
.custom-product-card .placeholder-image {
	width: 100%;
	height: 120px;
	background-color: #f2f4f7;
	border-radius: 6px;
}

/* Card Right Section: Content details */
.custom-product-card .card-right {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	min-width: 0; /* Prevents overflow of flex items */
}

/* Title styling */
.custom-product-card .product-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #08162d;
	margin: 0 0 6px 0;
}
.custom-product-card .product-title a {
	color: #08162d !important;
	text-decoration: none !important;
	transition: color 0.2s;
}
.custom-product-card .product-title a:hover {
	color: #004bca !important;
}

.custom-product-card .short-description {
	font-size: 12px;
	color: #475467;
	line-height: 1.5;
	margin-bottom: 12px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 4.5em;
}

/* Price row styling */
.custom-product-card .price-row {
	font-size: 18px;
	font-weight: 700;
	color: #08162d;
	margin-bottom: 8px;
	line-height: 1.2;
}

/* Split row styling (Installments check) */
.custom-product-card .split-row {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: #475467;
	margin-bottom: 6px;
}
.custom-product-card .split-icon {
	display: block;
	flex-shrink: 0;
}
.custom-product-card .split-text {
	font-weight: 500;
}
.custom-product-card .split-info-btn {
	color: #98a2b3;
	cursor: pointer;
	display: flex;
	align-items: center;
	transition: color 0.2s;
}
.custom-product-card .split-info-btn:hover {
	color: #004bca;
}

/* Points / LP Points styling */
.custom-product-card .lp-points {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #475467;
	margin-bottom: 14px;
}
.custom-product-card .lp-points-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	border: 1.5px solid #0066FF;
	color: #0066FF;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: -0.3px;
	line-height: 1;
	flex-shrink: 0;
}
.custom-product-card .lp-points strong {
	color: #08162d;
	font-weight: 700;
}

/* Quantity Row styling */
.custom-product-card .qty-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	margin-top: auto; /* Pushes action elements to the bottom */
}
.custom-product-card .qty-selector {
	display: flex;
	align-items: center;
	border: 1px solid #d2d6db;
	border-radius: 6px;
	padding: 2px;
	background-color: #fff;
	height: 30px;
}
.custom-product-card .qty-btn {
	width: 26px;
	height: 26px;
	border: none !important;
	background: none !important;
	color: #344054;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	padding: 0 !important;
	margin: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background-color 0.15s;
	box-shadow: none !important;
}
.custom-product-card .qty-btn:hover {
	background-color: #f2f4f7 !important;
}
.custom-product-card .qty-val {
	width: 28px;
	border: none !important;
	background: none !important;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: #344054;
	margin: 0 !important;
	padding: 0 !important;
	pointer-events: none;
	-moz-appearance: textfield;
	box-shadow: none;
}
.custom-product-card .qty-val::-webkit-outer-spin-button,
.custom-product-card .qty-val::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.custom-product-card .qty-limit {
	font-size: 11px;
	color: #667085;
}

/* Add to Cart AJAX Button styling */
.custom-product-card .add-to-cart-btn {
	background-color: #11519b !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 10px 16px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-transform: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	cursor: pointer !important;
	transition: background-color 0.2s !important;
	width: 100% !important;
	text-decoration: none !important;
	box-shadow: none !important;
	outline: none !important;
}
.custom-product-card .add-to-cart-btn:hover {
	background-color: #003692 !important;
}
.custom-product-card .add-to-cart-btn svg {
	color: #fff !important;
	display: block;
}

/* Responsive Columns */
@media (max-width: 1024px) {
	.custom-products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 767px) {
	.custom-products-grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 520px) {
	.custom-product-card {
		flex-direction: column;
		padding: 20px;
		gap: 20px;
	}
	.custom-product-card .card-left {
		width: 100%;
		margin-bottom: 4px;
	}
	.custom-product-card .product-image {
		max-height: 100%;
		width: auto;
		margin: 0 auto;
	}
}
