/**
 * Teevora Product Card & Card Components
 */

.tv-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
	margin: 32px 0;
}

.tv-card {
	background: var(--tv-bg-surface);
	border: 1px solid var(--tv-border-subtle);
	border-radius: var(--tv-radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all var(--tv-transition-base);
	position: relative;
}

.tv-card:hover {
	transform: translateY(-4px);
	border-color: var(--tv-border-medium);
	box-shadow: var(--tv-shadow-lg);
}

.tv-card-media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background-color: var(--tv-bg-surface-alt);
}

.tv-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--tv-transition-slow);
}

.tv-card:hover .tv-card-img {
	transform: scale(1.05);
}

/* Floating Wishlist Button */
.tv-card-wishlist-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border-radius: var(--tv-radius-full);
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(4px);
	color: var(--tv-text-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--tv-shadow-sm);
	transition: all var(--tv-transition-fast);
	z-index: 2;
}

.tv-card-wishlist-btn:hover,
.tv-card-wishlist-btn.active {
	background: #ffffff;
	color: #ef4444;
	transform: scale(1.1);
}

.tv-card-wishlist-btn.active svg {
	fill: #ef4444;
	stroke: #ef4444;
}

/* Format Tags & Badge Overlay */
.tv-card-badges {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	z-index: 2;
}

/* Badges */
.tv-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	border-radius: var(--tv-radius-sm);
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}

.tv-badge-sale {
	background-color: var(--tv-brand-danger);
	color: #ffffff;
}

.tv-badge-featured {
	background-color: var(--tv-brand-highlight);
	color: #ffffff;
}

.tv-badge-digital {
	background-color: var(--tv-brand-primary);
	color: #ffffff;
}

/* Card Body */
.tv-card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.tv-card-category {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--tv-brand-primary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 6px;
}

.tv-card-title {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--tv-text-primary);
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tv-card-title a:hover {
	color: var(--tv-brand-primary);
}

/* Card Rating Row */
.tv-card-rating-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
}

.tv-card-stars {
	display: inline-flex;
	gap: 2px;
}

.tv-card-star {
	display: inline-flex;
	width: 14px;
	height: 14px;
}

.tv-card-star.filled {
	color: var(--tv-brand-highlight);
}

.tv-card-star.empty {
	color: #cbd5e1;
}

.tv-card-review-count {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--tv-text-muted);
}

.tv-review-new {
	font-size: 0.6875rem;
	font-weight: 700;
	color: var(--tv-brand-accent);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Formats list */
.tv-card-formats {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.tv-format-pill {
	font-size: 0.6875rem;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: var(--tv-radius-sm);
	background-color: var(--tv-bg-surface-alt);
	color: var(--tv-text-secondary);
	border: 1px solid var(--tv-border-subtle);
}

/* Card Footer */
.tv-card-footer {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--tv-border-subtle);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tv-card-price {
	font-family: var(--tv-font-heading);
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--tv-text-primary);
}

.tv-card-price del {
	font-size: 0.875rem;
	color: var(--tv-text-muted);
	font-weight: 500;
	margin-right: 4px;
}

.tv-card-price ins {
	text-decoration: none;
	color: var(--tv-brand-primary);
}

.tv-card-action-btn {
	padding: 8px 16px;
	font-size: 0.8125rem;
}

/* -------------------------------------------------------------------------- */
/* CATEGORY CARDS                                                             */
/* -------------------------------------------------------------------------- */
.tv-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
	margin: 32px 0;
}

.tv-category-card {
	background-color: var(--tv-bg-surface);
	border: 1px solid var(--tv-border-subtle);
	border-radius: var(--tv-radius-xl);
	padding: 32px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: all var(--tv-transition-base);
	text-decoration: none;
}

.tv-category-card:hover {
	transform: translateY(-4px);
	border-color: var(--tv-brand-primary);
	box-shadow: var(--tv-shadow-lg);
}

.tv-category-icon-wrap {
	width: 64px;
	height: 64px;
	border-radius: var(--tv-radius-lg);
	background-color: var(--tv-brand-primary-light);
	color: var(--tv-brand-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	transition: transform var(--tv-transition-fast);
}

.tv-category-card:hover .tv-category-icon-wrap {
	transform: scale(1.08);
}

.tv-category-title {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--tv-text-primary);
	margin-bottom: 6px;
}

.tv-category-count {
	font-size: 0.8125rem;
	color: var(--tv-text-muted);
	font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/* REVIEW CARDS                                                               */
/* -------------------------------------------------------------------------- */
.tv-review-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
	margin: 32px 0;
}

.tv-review-card {
	background-color: var(--tv-bg-surface);
	border: 1px solid var(--tv-border-subtle);
	border-radius: var(--tv-radius-xl);
	padding: 28px;
	display: flex;
	flex-direction: column;
	box-shadow: var(--tv-shadow-sm);
}

.tv-review-stars {
	display: flex;
	gap: 4px;
	color: var(--tv-brand-highlight);
	margin-bottom: 16px;
}

.tv-review-quote {
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--tv-text-secondary);
	margin-bottom: 20px;
	flex: 1;
}

.tv-review-author {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--tv-border-subtle);
}

.tv-review-avatar {
	width: 40px;
	height: 40px;
	border-radius: var(--tv-radius-full);
	background-color: var(--tv-brand-primary-light);
	color: var(--tv-brand-primary);
	font-weight: 700;
	font-size: 0.875rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tv-review-name {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--tv-text-primary);
}

.tv-review-verified {
	font-size: 0.75rem;
	color: var(--tv-brand-success);
	display: flex;
	align-items: center;
	gap: 4px;
}

/* -------------------------------------------------------------------------- */
/* PROMOTIONAL BANNER CARD                                                    */
/* -------------------------------------------------------------------------- */
.tv-promo-banner {
	background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
	border: 1px solid #334155;
	border-radius: var(--tv-radius-xl);
	padding: 48px;
	color: #ffffff;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 32px;
	align-items: center;
	margin: 64px 0;
	position: relative;
	overflow: hidden;
}

.tv-promo-banner::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0) 70%);
	pointer-events: none;
}

.tv-promo-title {
	color: #ffffff;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 800;
	margin-bottom: 12px;
}

.tv-promo-desc {
	color: #94a3b8;
	font-size: 1.0625rem;
	line-height: 1.6;
	margin-bottom: 24px;
}

.tv-promo-code-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background-color: rgba(255, 255, 255, 0.1);
	border: 1px dashed rgba(255, 255, 255, 0.3);
	border-radius: var(--tv-radius-md);
	font-family: monospace;
	font-size: 1rem;
	font-weight: 700;
	color: #38bdf8;
	margin-right: 16px;
}

@media (max-width: 860px) {
	.tv-promo-banner {
		grid-template-columns: 1fr;
		padding: 32px 24px;
	}
}
