/**
 * Woo Smart Widgets for Elementor
 * https://wpexpertlab.com
 */

/* Grid Layout */
.wsw-product-grid {
	display: grid;
	gap: 20px;
	width: 100%;
}

.wsw-columns-2 { grid-template-columns: repeat(2, 1fr); }
.wsw-columns-3 { grid-template-columns: repeat(3, 1fr); }
.wsw-columns-4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.wsw-product-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wsw-product-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Image */
.wsw-product-image {
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

.wsw-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.wsw-product-card:hover .wsw-product-image img {
	transform: scale(1.04);
}

/* Info */
.wsw-product-info {
	padding: 14px;
}

/* Title */
.wsw-product-title {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 6px;
	line-height: 1.4;
}

.wsw-product-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.wsw-product-title a:hover {
	color: #2563eb;
}

/* Rating */
.wsw-product-rating {
	margin-bottom: 6px;
}

.wsw-product-rating .star-rating {
	font-size: 13px;
}

/* Price */
.wsw-product-price {
	margin-bottom: 10px;
}

.wsw-product-price .price {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
}

.wsw-product-price .price del {
	color: #999;
	font-weight: 400;
	margin-right: 4px;
}

.wsw-product-price .price ins {
	text-decoration: none;
	color: #e11d48;
}

/* Button */
.wsw-add-to-cart {
	display: inline-block;
	width: 100%;
	text-align: center;
	padding: 9px 16px;
	background-color: #096349;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.2s ease;
	box-sizing: border-box;
}

.wsw-add-to-cart:hover {
	background-color: #075038;
	color: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
	.wsw-columns-3,
	.wsw-columns-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.wsw-columns-2,
	.wsw-columns-3,
	.wsw-columns-4 {
		grid-template-columns: 1fr;
	}
}

/* ===================================== */
/* Product Categories Widget */
/* ===================================== */
.wsw-cat-grid {
	display: grid;
	gap: 20px;
	width: 100%;
}

.wsw-cat-columns-2 { grid-template-columns: repeat(2, 1fr); }
.wsw-cat-columns-3 { grid-template-columns: repeat(3, 1fr); }
.wsw-cat-columns-4 { grid-template-columns: repeat(4, 1fr); }

.wsw-cat-card {
	display: block;
	text-decoration: none !important;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.2s ease;
}

.wsw-cat-card:hover {
	transform: translateY(-3px);
}

.wsw-cat-image {
	aspect-ratio: 1/1;
	overflow: hidden;
}

.wsw-cat-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wsw-cat-info {
	padding: 12px;
	text-align: center;
}

.wsw-cat-title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
}

.wsw-cat-count {
	font-size: 12px;
	color: #777;
}

@media (max-width: 768px) {
	.wsw-cat-columns-3,
	.wsw-cat-columns-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.wsw-cat-columns-2,
	.wsw-cat-columns-3,
	.wsw-cat-columns-4 {
		grid-template-columns: 1fr;
	}
}

/* ===================================== */
/* Product Search Widget */
/* ===================================== */
.wsw-search-form {
	display: flex;
	width: 100%;
	gap: 0;
}

.wsw-search-input {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 6px 0 0 6px;
	font-size: 14px;
	outline: none;
	box-sizing: border-box;
}

.wsw-search-button {
	padding: 10px 20px;
	background-color: #096349;
	color: #fff;
	border: none;
	border-radius: 0 6px 6px 0;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.2s ease;
}

.wsw-search-button:hover {
	background-color: #075038;
}

/* ===================================== */
/* Pro Locked Widget Teaser */
/* ===================================== */
.wsw-pro-locked {
	text-align: center;
	padding: 30px 20px;
	background: #f8f9fa;
	border: 2px dashed #096349;
	border-radius: 8px;
}

.wsw-pro-icon {
	font-size: 32px;
	color: #096349;
	margin-bottom: 10px;
}

.wsw-pro-title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
}

.wsw-pro-desc {
	margin: 0 0 14px;
	font-size: 13px;
	color: #666;
	line-height: 1.5;
}

.wsw-pro-btn {
	display: inline-block;
	padding: 8px 18px;
	background-color: #096349;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 600;
}

.wsw-pro-btn:hover {
	background-color: #075038;
	color: #fff !important;
}
