/* Best Sellers Module Styles */

.sn-bestsellers {
	margin: 1rem 0;
}

.sn-bestsellers--grid ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1.5rem;
}

.sn-bestsellers--grid .product {
	list-style: none;
}

/* Widget Sidebar */
.sn-bestsellers-widget-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sn-bestsellers-widget-item {
	margin-bottom: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #e5e7eb;
}

.sn-bestsellers-widget-item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.sn-bestsellers-widget-link {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease;
}

.sn-bestsellers-widget-link:hover {
	color: #f97316;
}

.sn-bestsellers-widget-link img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

.sn-bestsellers-widget-name {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.25rem;
}

.sn-bestsellers-widget-price {
	display: block;
	font-size: 0.85rem;
	color: #6b7280;
}

.sn-bestsellers-widget-price .woocommerce-Price-amount {
	color: #f97316;
	font-weight: 600;
}

/* Swiper Slider Customization */
.sn-bestsellers--slider .swiper {
	padding-bottom: 2rem;
}

.sn-bestsellers--slider .swiper-pagination {
	bottom: 0;
}

.sn-bestsellers--slider .swiper-button-prev,
.sn-bestsellers--slider .swiper-button-next {
	color: #f97316;
	width: 36px;
	height: 36px;
}

.sn-bestsellers--slider .swiper-button-prev::after,
.sn-bestsellers--slider .swiper-button-next::after {
	font-size: 18px;
}

.sn-bestsellers--slider .swiper-pagination-bullet {
	background-color: #e5e7eb;
}

.sn-bestsellers--slider .swiper-pagination-bullet-active {
	background-color: #f97316;
}

/* Responsive */
@media (max-width: 768px) {
	.sn-bestsellers--grid ul.products {
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
		gap: 1rem;
	}

	.sn-bestsellers--slider .swiper-button-prev,
	.sn-bestsellers--slider .swiper-button-next {
		display: none;
	}
}
