/**
 * Product Card Widget Styles
 * Modern product card design matching the design reference
 */

.elementor-widget-product-card .product-card-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0;
	width: 100%;
}

/* 1 column */
.elementor-widget-product-card .product-card-grid-1-cols .product-card-wrapper {
	flex: 0 0 100%;
	max-width: 100%;
}

/* 2 columns */
.elementor-widget-product-card .product-card-grid-2-cols .product-card-wrapper {
	flex: 0 0 calc(50% - 10px);
	max-width: calc(50% - 10px);
}

/* 3 columns */
.elementor-widget-product-card .product-card-grid-3-cols .product-card-wrapper {
	flex: 0 0 calc(33.333% - 14px);
	max-width: calc(33.333% - 14px);
}

/* 4 columns */
.elementor-widget-product-card .product-card-grid-4-cols .product-card-wrapper {
	flex: 0 0 calc(25% - 15px);
	max-width: calc(25% - 15px);
}

/* 5 columns */
.elementor-widget-product-card .product-card-grid-5-cols .product-card-wrapper {
	flex: 0 0 calc(20% - 16px);
	max-width: calc(20% - 16px);
}

/* 6 columns */
.elementor-widget-product-card .product-card-grid-6-cols .product-card-wrapper {
	flex: 0 0 calc(16.666% - 17px);
	max-width: calc(16.666% - 17px);
}

.elementor-widget-product-card .product-card-wrapper {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.elementor-widget-product-card .product-card-wrapper:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Image Section */
.elementor-widget-product-card .product-card-image-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f8f8f8;
}

.elementor-widget-product-card .product-card-image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.elementor-widget-product-card .product-card-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.elementor-widget-product-card .product-card-wrapper:hover .product-card-image-wrapper img {
	transform: scale(1.05);
}

/* Sale Badge */
.elementor-widget-product-card .product-card-sale-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #FF6B35;
	color: #fff;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	z-index: 2;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Favorite Button */
.elementor-widget-product-card .product-card-favorite-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 2;
	padding: 0;
}

.elementor-widget-product-card .product-card-favorite-btn svg {
	width: 18px;
	height: 18px;
	color: #333;
	transition: all 0.3s ease;
}

.elementor-widget-product-card .product-card-favorite-btn:hover {
	background: #fff;
	border-color: #FFD700;
	transform: scale(1.1);
}

.elementor-widget-product-card .product-card-favorite-btn:hover svg {
	color: #FFD700;
	fill: #FFD700;
}

/* Product Information Section */
.elementor-widget-product-card .product-card-info {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.elementor-widget-product-card .product-card-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #000;
}

.elementor-widget-product-card .product-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.elementor-widget-product-card .product-card-title a:hover {
	color: #FF6B35;
}

.elementor-widget-product-card .product-card-description {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #666;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Attributes/Tags */
.elementor-widget-product-card .product-card-attributes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0;
}

.elementor-widget-product-card .attribute-tag {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	border: 1px solid #ddd;
	background: #fff;
	color: #333;
}

.elementor-widget-product-card .attribute-tag.attribute-weight {
	border: 1px solid #333;
	background: #fff;
	color: #333;
}

.elementor-widget-product-card .attribute-tag.attribute-natural {
	background: #4CAF50;
	color: #fff;
	border: none;
}

.elementor-widget-product-card .attribute-tag.attribute-no-sugar {
	background: #2196F3;
	color: #fff;
	border: none;
}

/* Pricing */
.elementor-widget-product-card .product-card-pricing {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: auto;
}

.elementor-widget-product-card .product-card-price-wrapper {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.elementor-widget-product-card .product-card-regular-price {
	font-size: 14px;
	color: #999;
	text-decoration: line-through;
	display: block;
}

.elementor-widget-product-card .product-card-sale-price {
	font-size: 24px;
	font-weight: 700;
	color: #FF6B35;
	line-height: 1.2;
	display: block;
}

.elementor-widget-product-card .product-card-sale-price .amount {
	font-size: 24px;
	font-weight: 700;
	color: #FF6B35;
}

/* Add to Cart Button */
.elementor-widget-product-card .product-card-actions {
	margin-top: 16px;
}

.elementor-widget-product-card .product-card-actions .button,
.elementor-widget-product-card .product-card-actions .added_to_cart,
.elementor-widget-product-card .product-card-actions a.button {
	width: 100%;
	background: #FFD700;
	color: #000;
	border: none;
	border-radius: 8px;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	text-transform: capitalize;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
	box-sizing: border-box;
}

.elementor-widget-product-card .product-card-actions .button:not(.added):not(.loading)::after {
	content: "→";
	font-size: 18px;
	margin-left: 4px;
	display: inline-block;
}

.elementor-widget-product-card .product-card-actions .button:hover,
.elementor-widget-product-card .product-card-actions .added_to_cart:hover {
	background: #FFC700;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
	color: #000;
}

.elementor-widget-product-card .product-card-actions .button.added {
	background: #4CAF50;
	color: #fff;
}

.elementor-widget-product-card .product-card-actions .button.added::after {
	content: "✓";
}

.elementor-widget-product-card .product-card-actions .button.loading {
	opacity: 0.7;
	pointer-events: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.elementor-widget-product-card .product-card-grid-4-cols .product-card-wrapper,
	.elementor-widget-product-card .product-card-grid-5-cols .product-card-wrapper,
	.elementor-widget-product-card .product-card-grid-6-cols .product-card-wrapper {
		flex: 0 0 calc(33.333% - 14px) !important;
		max-width: calc(33.333% - 14px) !important;
	}
}

@media (max-width: 768px) {
	.elementor-widget-product-card .product-card-grid-3-cols .product-card-wrapper,
	.elementor-widget-product-card .product-card-grid-4-cols .product-card-wrapper,
	.elementor-widget-product-card .product-card-grid-5-cols .product-card-wrapper,
	.elementor-widget-product-card .product-card-grid-6-cols .product-card-wrapper {
		flex: 0 0 calc(50% - 10px) !important;
		max-width: calc(50% - 10px) !important;
	}

	.elementor-widget-product-card .product-card-info {
		padding: 16px;
	}

	.elementor-widget-product-card .product-card-title {
		font-size: 18px;
	}

	.elementor-widget-product-card .product-card-sale-price {
		font-size: 20px;
	}

	.elementor-widget-product-card .product-card-sale-badge {
		font-size: 11px;
		padding: 5px 10px;
	}

	.elementor-widget-product-card .product-card-favorite-btn {
		width: 32px;
		height: 32px;
	}

	.elementor-widget-product-card .product-card-favorite-btn svg {
		width: 16px;
		height: 16px;
	}
}

@media (max-width: 480px) {
	.elementor-widget-product-card .product-card-grid .product-card-wrapper {
		flex: 0 0 100% !important;
		max-width: 100% !important;
	}
	
	.elementor-widget-product-card .product-card-grid {
		gap: 15px;
	}
}
