/* Best Sellers Block Styles */

.best-sellers {
	position: relative;
	background-color: #f5f1eb; /* Light beige background */
	padding: 53px 0 52px;
	min-height: 300px;
	width: 100%;
	border-bottom: 1px solid #33391D;
}
.best-sellers:after {
	content:"";
	display:block;
	width:100%;
	height:1px;
	background:#33391D;
	position:absolute;
	bottom:7px;
	left:0;
}

.best-sellers-wrapper {
	position: relative;
	width: 100%;
	max-width: 100%;
	padding: 0;
	display: flex;
	align-items: flex-start;
	gap: 52px;
	flex-wrap: wrap;
}

/* Header: Title and Link (Left Side) */
.best-sellers-header {
	display: flex;
	flex-direction: column;
	gap: 0;
	flex-shrink: 0;
	min-width: 200px;
	padding: 98px 0 0 68px;
}

.best-sellers-title {
	margin: 0 0 5px;
	font-family: 'Inria Serif', serif;
	font-size: 32px;
	font-weight: 300;
	color: #33391D; /* Dark green */
	text-align: left;
	line-height: 1.2;
	letter-spacing: -0.09rem;
}

.best-sellers-shop-more {
	margin-top: 0;
}

.best-sellers-shop-more-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 600;
	color: #33391D;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: color 0.2s ease, transform 0.2s ease;
	font-family: 'Figtree', sans-serif;
}

.best-sellers-shop-more-link:hover,
.best-sellers-shop-more-link:focus {
	color: #1a3009;
	transform: translateX(3px);
}

.best-sellers-shop-more-link:focus-visible {
	outline: 2px solid #2d5016;
	outline-offset: 4px;
	border-radius: 4px;
}

.best-sellers-shop-more-arrow {
	font-size: 1rem;
	line-height: 1;
}

/* Slider Wrapper (Right Side) */
.best-sellers-slider-wrapper {
	position: relative;
	width: 100%;
	flex: 1;
	min-width: 0;
	padding-bottom: 60px; /* Space for scrollbar */
	overflow: hidden;
}

/* Swiper Container */
.best-sellers-swiper {
	width: 100%;
	overflow: visible;
	padding: 38px 0 0 0;
}

.best-sellers-swiper .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

/* Product Slide */
.best-sellers-swiper .swiper-slide {
	width: auto;
	height: auto;
	display: flex;
	align-items: stretch;
}

/* Product Card */
.best-sellers-product {
	display: flex;
	flex-direction: column;
	width: 100%;
	/* height: 190px; */
	aspect-ratio: 8/11;
	max-width: 250px;
	position: relative;
	border-radius: 18px;
	padding: 4px 5px;
	display: block;
	background: white;
	width: 100%;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.best-sellers-product:hover{
	background:#ECCCC5;
	transform: translateY(-5px);
}

.best-sellers-product-link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	width: 100%;
	height: 100%;
	transition: transform 0.2s ease, opacity 0.2s ease;
	position: relative;
	display: block;
	position: relative
}

.best-sellers-product-link:hover,
.best-sellers-product-link:focus {
	outline: none;
}

.best-sellers-product-link:focus-visible {
	outline: 2px solid #2d5016;
	outline-offset: 4px;
	border-radius: 8px;
}

/* Badge */
.best-sellers-badge {
	position: absolute;
	top: -36px;
	left: 15px;
	z-index: 10;
	border-radius: 50%;
	width: 54px;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2px 5px 0;
	box-sizing: border-box;
	transform: rotate(-9deg);
	box-shadow: 1px 5px 7px rgba(0, 0, 0, 0.2);
}

.best-sellers-badge-text {
	font-size: 8px;
	font-weight: 600;
	text-align: center;
	line-height: 10px;
	text-transform: uppercase;
	letter-spacing: 0.03rem;
	font-family: 'Figtree', sans-serif;
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
}

/* Product Image Container */
.best-sellers-product-image {
	position: relative;
	width: 100%;
	overflow: hidden;
	 /* Dashed dark green border */
	margin-bottom: 0;
	border: 1px dashed rgb(162 166 139 / 70%);
	border-radius: 16px;
	width: 100%;
	height: 100%;
	padding: 15px;
}

.best-sellers-product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	padding: 0;
	border-radius: 6px;
}

/* Scrollbar Container */
.best-sellers-scrollbar-container {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	padding: 0 1rem;
}

.best-sellers-scrollbar {
	position: relative;
	width: 100%;
	max-width: 194px;
	height: 1px!important;
	background: #33391D;
	border-radius: 0;
	left: 0!important;
	bottom: 20px!important;
}

.best-sellers-scrollbar .swiper-scrollbar-drag {
	background: #33391D;
	border-radius: 50%;
	height: 12px!important;
	cursor: grab;
	width: 12px!important;
	top: -6px;
}

.best-sellers-scrollbar .swiper-scrollbar-drag:active {
	cursor: grabbing;
}

/* Responsive Styles */
@media (max-width: 1024px) {
	.best-sellers-wrapper {
		flex-direction: column;
		gap:20px;
	}
	
	.best-sellers-header {
		width: 100%;
		padding: 0 0 0 60px;
	}
	
	.best-sellers-title {
	}
	
	.best-sellers-slider-wrapper {
		width: 100%;
		padding: 0 0 60px 60px;
	}
	.best-sellers-scrollbar-container {
left:60px;}
}

@media (max-width: 768px) {
	.best-sellers {
		padding: 40px 0 30px;
	}
	
	.best-sellers-wrapper {
		padding: 0;
		gap: 10px;
	}
	
    .best-sellers-header {
        width: 100%;
        padding: 0 0 0 30px;
    }
	
	.best-sellers-product {
		max-width: 200px;
	}
	
	.best-sellers-slider-wrapper {
		padding-bottom: 60px;
		padding-left: 30px;
	}
	
	.best-sellers-scrollbar-container {
		bottom: 10px;
		left: 33px;
	}
}

@media (max-width: 480px) {
	.best-sellers-title {
	}
	
	.best-sellers-product {
		max-width: 180px;
	}
	
	.best-sellers-badge {
		width: 70px;
		height: 70px;
	}
	
	.best-sellers-badge-text {
		font-size: 0.5625rem;
	}
	
	.best-sellers-shop-more-link {
		margin-top: 5px;
	}
	.best-sellers-scrollbar {
		max-width:150px
	}
}

/* Accessibility: Focus States */
.best-sellers-product-link:focus-visible {
	outline: 3px solid #005fcc;
	outline-offset: 3px;
}

.best-sellers-shop-more-link:focus-visible {
	outline: 3px solid #005fcc;
	outline-offset: 3px;
}

/* Print Styles */
@media print {
	.best-sellers-scrollbar-container {
		display: none;
	}
	
	.best-sellers-slider-wrapper {
		padding-bottom: 0;
	}
	
	.best-sellers-swiper .swiper-wrapper {
		flex-wrap: wrap;
		justify-content: flex-start;
	}
	
	.best-sellers-swiper .swiper-slide {
		width: calc(25% - 1rem);
		margin-bottom: 1rem;
		margin-right: 1rem;
	}
	
	.best-sellers-product {
		max-width: 100%;
	}
}

