/* ========================================
   VAPESMALL - Product Card Styles
   Reusable product card component
======================================== */

/* Product Card */
.vs-product-card {
	position: relative;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	border: 1px solid #f0f0f0;
}

.vs-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Discount Badge */
.vs-card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	background: #FF6B6B;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 4px;
	z-index: 1;
	text-transform: uppercase;
}

/* Card Link */
.vs-card-link {
	display: block;
	text-decoration: none;
}

/* Card Image */
.vs-card-image {
	position: relative;
	padding-top: 100%;
	background: #F8F8F8;
	overflow: hidden;
}

.vs-card-image img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 85%;
	max-height: 85%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.vs-product-card:hover .vs-card-image img {
	transform: translate(-50%, -50%) scale(1.05);
}

/* Card Content */
.vs-card-content {
	padding: 16px;
}

/* Brand */
.vs-card-brand {
	font-size: 11px;
	margin-bottom: 6px;
}

.vs-card-brand-from {
	color: #999;
}

.vs-card-brand-name {
	color: #FF6B6B;
	font-weight: 700;
}

/* Title */
.vs-card-title {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin: 0 0 8px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 40px;
}

.vs-card-subtitle {
	color: #666;
	font-weight: 400;
}

/* Tags */
.vs-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 8px;
}

.vs-card-tag {
	padding: 2px 8px;
	background: #F5F5F5;
	color: #666;
	font-size: 10px;
	border-radius: 3px;
}

/* Rating */
.vs-card-rating {
	margin-bottom: 10px;
}

.vs-card-stars {
	display: flex;
	gap: 1px;
}

.vs-card-stars svg {
	width: 14px;
	height: 14px;
}

/* Price */
.vs-card-price {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.vs-card-price-original {
	font-size: 13px;
	color: #999;
	text-decoration: line-through;
}

.vs-card-price-original .woocommerce-Price-amount {
	color: inherit;
}

.vs-card-price-current {
	font-size: 17px;
	font-weight: 700;
	color: #333;
}

.vs-card-price-current .woocommerce-Price-amount {
	color: inherit;
}

/* ========================================
   Grid Layout
======================================== */

.vs-products-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}

.vs-products-grid .vs-product-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.vs-products-grid .vs-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.vs-products-grid .vs-card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.vs-products-grid .vs-card-price {
	margin-top: auto;
}

/* ========================================
   Responsive
======================================== */

@media (max-width: 1200px) {
	.vs-products-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 992px) {
	.vs-products-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.vs-products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	
	.vs-card-content {
		padding: 12px;
	}
	
	.vs-card-title {
		font-size: 13px;
		min-height: 36px;
	}
	
	.vs-card-price-current {
		font-size: 15px;
	}
}

@media (max-width: 480px) {
	.vs-products-grid {
		gap: 10px;
	}
	
	.vs-card-content {
		padding: 10px;
	}
	
	.vs-card-badge {
		top: 8px;
		left: 8px;
		padding: 3px 8px;
		font-size: 10px;
	}
}
