/* Quick Card V2 Styles - Horizontal Scrolling Carousel Design */
/* Section Header V2 - Side by Side with Icon */
.quick-card-v2-section .section-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 40px;
	flex-wrap: wrap;
	gap: 20px;
	padding-bottom: 30px;
	border-bottom: 2px solid rgba(var(--primary-brand-color-rgb), 0.1);
}

.quick-card-v2-section .section-header .section-title {
	text-align: left;
	margin-bottom: 0;
	flex: 1;
}

.quick-card-v2-section .section-title {
	position: relative;
}

.quick-card-v2-section .section-title::before {
	content: '';
	position: absolute;
	left: -20px;
	top: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(180deg, var(--primary-brand-color), var(--secondary-brand-color));
	border-radius: 2px;
}

.quick-card-v2-section .section-title h2 {
	font-size: 36px;
	color: var(--primary-title-color);
	margin-bottom: 8px;
	font-weight: 700;
	letter-spacing: -0.5px;
	line-height: 1.2;
}

.quick-card-v2-section .section-title p {
	font-size: 15px;
	color: var(--primary-text-color);
	opacity: 0.7;
	margin-top: 8px;
	font-weight: 400;
}

/* View All Button V2 - Top Right */
.quick-card-v2-section .view-all-desktop {
	display: inline-flex;
	align-self: flex-end;
}

.quick-card-v2-section .view-all-mobile {
	display: none !important;
}

.quick-card-v2-section .view-all-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: transparent;
	color: var(--primary-brand-color);
	text-decoration: none;
	border: 2px solid var(--primary-brand-color);
	border-radius: 6px;
	font-weight: 600;
	font-size: 14px;
	transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
	letter-spacing: 0.3px;
}

.quick-card-v2-section .view-all-btn:hover {
	background: var(--primary-brand-color);
	color: var(--primary-button-text-color);
	transform: translateX(4px);
}

.quick-card-v2-section .view-all-btn i {
	transition: transform 0.3s ease;
	font-size: 12px;
}

.quick-card-v2-section .view-all-btn:hover i {
	transform: translateX(4px);
}

/* Quick Card V2 Section */
.quick-card-v2-section {
	padding: 60px 0;
	background: var(--primary-background-color);
	position: relative;
}

/* Quick Card V2 Grid — horizontal scroll; --qc-visible cards fit in viewport (4 on desktop) */
.quick-card-v2-grid {
	--qc-gap: 20px;
	--qc-visible: 4;
	display: flex;
	gap: var(--qc-gap);
	overflow-x: auto;
	overflow-y: hidden;
	padding: 10px 0 30px 0;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--primary-brand-color) transparent;
}

.quick-card-v2-grid::-webkit-scrollbar {
	height: 6px;
}

.quick-card-v2-grid::-webkit-scrollbar-track {
	background: transparent;
	border-radius: 10px;
}

.quick-card-v2-grid::-webkit-scrollbar-thumb {
	background: var(--primary-brand-color);
	border-radius: 10px;
}

.quick-card-v2-grid::-webkit-scrollbar-thumb:hover {
	background: var(--secondary-brand-color);
}

/* Quick Card V2 - Horizontal Card with Overlay */
.quick-card-v2 {
	position: relative;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border-radius: 0;
	overflow: visible;
	flex: 0 0 calc((100% - (var(--qc-visible) - 1) * var(--qc-gap)) / var(--qc-visible));
	min-width: calc((100% - (var(--qc-visible) - 1) * var(--qc-gap)) / var(--qc-visible));
	max-width: calc((100% - (var(--qc-visible) - 1) * var(--qc-gap)) / var(--qc-visible));
	background: var(--primary-background-color);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (hover: hover) and (pointer: fine) {
	.quick-card-v2:hover {
		transform: translateY(-8px);
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	}
}

.quick-card-v2-link {
	display: block;
	text-decoration: none;
	color: inherit;
	position: relative;
	height: 100%;
}

/* Quick Card V2 Image - Taller Aspect Ratio */
.quick-card-v2-image {
	position: relative;
	width: 100%;
	aspect-ratio: 3/4;
	overflow: hidden;
	background: var(--primary-background-color);
}

.quick-card-v2-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
	.quick-card-v2:hover .quick-card-v2-image img {
		transform: scale(1.1);
	}
}

/* Quick Card V2 Badge - Top Left */
.quick-card-v2-badge {
	position: absolute;
	top: 0;
	left: 0;
	background: var(--tag-badge-background-color);
	background: linear-gradient(135deg, var(--tag-badge-background-color), var(--secondary-brand-color));
	color: var(--tag-badge-text-color);
	padding: 8px 16px;
	border-radius: 0;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	z-index: 5;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	border-bottom-right-radius: 4px;
}

/* Quick Card V2 Info - Overlay on Image */
.quick-card-v2-info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: 
		linear-gradient(to top, 
			rgba(0, 0, 0, 0.95) 0%, 
			rgba(0, 0, 0, 0.88) 25%,
			rgba(0, 0, 0, 0.75) 40%,
			rgba(0, 0, 0, 0.55) 55%,
			rgba(0, 0, 0, 0.35) 70%,
			rgba(0, 0, 0, 0.15) 85%,
			transparent 100%),
		linear-gradient(to right,
			rgba(0, 0, 0, 0.8) 0%,
			rgba(0, 0, 0, 0.65) 25%,
			rgba(0, 0, 0, 0.5) 45%,
			rgba(0, 0, 0, 0.35) 60%,
			rgba(0, 0, 0, 0.2) 75%,
			rgba(0, 0, 0, 0.1) 85%,
			transparent 100%);
	padding: 20px 15px 15px;
	color: white;
	transform: translateY(0);
	transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 4;
}

.quick-card-v2:hover .quick-card-v2-info {
	transform: translateY(0);
	background: 
		linear-gradient(to top, 
			rgba(0, 0, 0, 0.98) 0%, 
			rgba(0, 0, 0, 0.92) 25%,
			rgba(0, 0, 0, 0.8) 40%,
			rgba(0, 0, 0, 0.65) 55%,
			rgba(0, 0, 0, 0.45) 70%,
			rgba(0, 0, 0, 0.25) 85%,
			transparent 100%),
		linear-gradient(to right,
			rgba(0, 0, 0, 0.85) 0%,
			rgba(0, 0, 0, 0.7) 25%,
			rgba(0, 0, 0, 0.55) 45%,
			rgba(0, 0, 0, 0.4) 60%,
			rgba(0, 0, 0, 0.25) 75%,
			rgba(0, 0, 0, 0.15) 85%,
			transparent 100%);
}

.quick-card-v2-name {
	font-size: 18px;
	font-weight: 700;
	color: white;
	margin-bottom: 6px;
	transition: color 0.3s ease;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.quick-card-v2-category {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 8px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.quick-card-v2-short-description {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 10px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Quick Card V2 Price - White Text */
.quick-card-v2-price {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.quick-card-v2-price .price {
	font-size: 22px;
	font-weight: 800;
	color: white;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.quick-card-v2-price .price-original {
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.6);
	text-decoration: line-through;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.quick-card-v2-price .price-discounted {
	font-size: 22px;
	font-weight: 800;
	color: white;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
	.quick-card-v2-section {
		padding: 50px 0;
	}

	.quick-card-v2-section .section-header {
		flex-direction: column;
		align-items: flex-start;
		padding-bottom: 20px;
	}

	.quick-card-v2-section .section-title::before {
		left: -15px;
	}

	.quick-card-v2-section .section-title h2 {
		font-size: 32px;
	}

	.quick-card-v2-section .view-all-desktop {
		align-self: flex-start;
	}

	.quick-card-v2-grid {
		--qc-gap: 20px;
		--qc-visible: 2;
	}

	/* Hide desktop button, show mobile button */
	.quick-card-v2-section .view-all-desktop {
		display: none !important;
	}

	.quick-card-v2-section .view-all-mobile {
		display: flex !important;
		margin-top: 20px;
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 576px) {
	.quick-card-v2-section {
		padding: 40px 0;
	}

	.quick-card-v2-section .section-title h2 {
		font-size: 28px;
	}

	.quick-card-v2-section .section-title p {
		font-size: 14px;
	}

	/* Mobile: 2×2 grid — four cards visible, no horizontal scroll (extra products wrap below) */
	.quick-card-v2-grid {
		--qc-gap: 12px;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--qc-gap);
		overflow-x: visible;
		overflow-y: visible;
		padding: 5px 0 25px 0;
		-webkit-overflow-scrolling: auto;
		scrollbar-width: none;
	}

	.quick-card-v2-grid::-webkit-scrollbar {
		display: none;
	}

	.quick-card-v2 {
		flex: none;
		min-width: 0;
		max-width: none;
		width: 100%;
		transition: transform 0.2s ease, box-shadow 0.2s ease;
	}

	@media (hover: hover) and (pointer: fine) {
		.quick-card-v2:hover {
			transform: translateY(-5px);
		}
	}

	.quick-card-v2-image img {
		transition: transform 0.3s ease;
	}

	.quick-card-v2-name {
		font-size: 16px;
	}

	.quick-card-v2-category {
		font-size: 12px;
	}

	.quick-card-v2-price .price {
		font-size: 20px;
	}

	.quick-card-v2-price .price-original {
		font-size: 13px;
	}

	.quick-card-v2-price .price-discounted {
		font-size: 20px;
	}

	.quick-card-v2-badge {
		padding: 5px 10px;
		font-size: 10px;
		top: 0;
		left: 0;
	}

	.quick-card-v2-info {
		padding: 15px 12px 12px;
	}
}

/* RTL Support */
[dir="rtl"] .quick-card-v2-section .section-header .section-title {
	text-align: right;
}

[dir="rtl"] .quick-card-v2-section .section-title::before {
	left: auto;
	right: -20px;
}

[dir="rtl"] .quick-card-v2-badge {
	left: auto;
	right: 0;
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 4px;
}

[dir="rtl"] .quick-card-v2-info {
	text-align: right;
	background: 
		linear-gradient(to top, 
			rgba(0, 0, 0, 0.95) 0%, 
			rgba(0, 0, 0, 0.88) 25%,
			rgba(0, 0, 0, 0.75) 40%,
			rgba(0, 0, 0, 0.55) 55%,
			rgba(0, 0, 0, 0.35) 70%,
			rgba(0, 0, 0, 0.15) 85%,
			transparent 100%),
		linear-gradient(to left,
			rgba(0, 0, 0, 0.8) 0%,
			rgba(0, 0, 0, 0.65) 25%,
			rgba(0, 0, 0, 0.5) 45%,
			rgba(0, 0, 0, 0.35) 60%,
			rgba(0, 0, 0, 0.2) 75%,
			rgba(0, 0, 0, 0.1) 85%,
			transparent 100%);
}

[dir="rtl"] .quick-card-v2:hover .quick-card-v2-info {
	background: 
		linear-gradient(to top, 
			rgba(0, 0, 0, 0.98) 0%, 
			rgba(0, 0, 0, 0.92) 25%,
			rgba(0, 0, 0, 0.8) 40%,
			rgba(0, 0, 0, 0.65) 55%,
			rgba(0, 0, 0, 0.45) 70%,
			rgba(0, 0, 0, 0.25) 85%,
			transparent 100%),
		linear-gradient(to left,
			rgba(0, 0, 0, 0.85) 0%,
			rgba(0, 0, 0, 0.7) 25%,
			rgba(0, 0, 0, 0.55) 45%,
			rgba(0, 0, 0, 0.4) 60%,
			rgba(0, 0, 0, 0.25) 75%,
			rgba(0, 0, 0, 0.15) 85%,
			transparent 100%);
}

[dir="rtl"] .quick-card-v2-grid {
	direction: rtl;
}

@media (max-width: 992px) {
	[dir="rtl"] .quick-card-v2-section .section-title::before {
		right: -15px;
		left: auto;
	}
}
