/* ===================== SHOP PAGE LAYOUT ===================== */
.shop-page-wrapper {
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px;
}

.shop-page-container {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

/* ===================== SIDEBAR ===================== */
.shop-sidebar {
	width: 260px;
	flex-shrink: 0;
}

.filter-title {
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 10px;
	color: #1a1a1a;
}

.filter-clear-all {
	display: inline-block;
	font-size: 13px;
	color: #333;
	text-decoration: underline;
	margin-bottom: 25px;
}

.filter-clear-all:hover {
	color: #000;
}

.filter-block {
	border-top: 1px solid #e5e5e5;
	padding: 20px 0;
}

.shop-sidebar > .filter-block:first-of-type {
	border-top: none;
	padding-top: 0;
}

.filter-block-title {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Collection List */
.filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.filter-list li {
	margin-bottom: 10px;
}

.filter-link {
	font-size: 14px;
	color: #444;
	text-decoration: none;
	transition: color 0.2s ease;
}

.filter-link span {
	color: #999;
}

.filter-link:hover,
.filter-link.active {
	color: #000;
	font-weight: 600;
}

/* Collapsible Header (Availability, Price) */
.filter-block-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	margin-bottom: 12px;
}

.filter-count-badge {
	background-color: #1a1a1a;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.filter-chevron {
	display: flex;
	align-items: center;
	color: #333;
	transition: transform 0.3s ease;
}

.collapsible-block.collapsed .filter-chevron {
	transform: rotate(-90deg);
}

.collapsible-block.collapsed .filter-block-content {
	display: none;
}

/* Checkboxes */
.filter-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #444;
	margin-bottom: 12px;
	cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
	accent-color: #1a1a1a;
}

/* ===================== PRICE SLIDER ===================== */
.price-slider-wrapper {
	position: relative;
	height: 30px;
	margin-bottom: 15px;
}

.price-slider-track {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	height: 3px;
	background-color: #e0e0e0;
	border-radius: 3px;
}

.price-slider-range {
	position: absolute;
	height: 100%;
	background-color: #1a1a1a;
	border-radius: 3px;
}

.price-range-input {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	height: 20px;
}

.price-range-input::-webkit-slider-thumb {
	pointer-events: all;
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: #ffffff;
	border: 2px solid #1a1a1a;
	cursor: pointer;
}

.price-range-input::-moz-range-thumb {
	pointer-events: all;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: #ffffff;
	border: 2px solid #1a1a1a;
	cursor: pointer;
}

.price-inputs {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
}

.price-input-group {
	display: flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 6px 10px;
	flex: 1;
	gap: 5px;
}

.price-input-group span {
	font-size: 13px;
	color: #666;
}

.price-input-group input {
	border: none;
	outline: none;
	width: 100%;
	font-size: 13px;
	color: #333;
}

.apply-price-btn {
	background-color: #1a1a1a;
	color: #fff;
	border: none;
	padding: 8px 20px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.apply-price-btn:hover {
	opacity: 0.85;
}

/* ===================== MAIN CONTENT / TOOLBAR ===================== */
.shop-main-content {
	flex: 1;
}

.shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 40px;
	position: relative;
}

.shop-page-title {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	font-size: 32px;
	font-weight: 600;
	letter-spacing: 2px;
	color: #1a1a1a;
	margin: 0;
	text-transform: uppercase; /* 👈 Ye line add karein */
}

.shop-sort {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

.shop-sort label {
	font-size: 14px;
	color: #666;
}

.shop-sort select {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 8px 14px;
	font-size: 14px;
	color: #333;
	cursor: pointer;
	outline: none;
}

/* ===================== PRODUCT GRID ===================== */
.shop-product-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.shop-product-card {
	position: relative;
}

.shop-product-image {
	position: relative;
	background-color: #f5f5f5;
	border-radius: 4px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.shop-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.4s ease;
	display: block;
}

.shop-product-card:hover .shop-product-image img {
	transform: scale(1.04);
}

.shop-badge {
	position: absolute;
	top: 14px;
	font-size: 11px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 3px;
	z-index: 2;
}

.shop-badge-discount {
	left: 14px;
	background-color: #1a1a1a;
	color: #fff;
}

.shop-badge-sale {
	right: 14px;
	background-color: #fff;
	color: #1a1a1a;
	border: 1px solid #1a1a1a;
}

.shop-cart-icon {
	position: absolute;
	bottom: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	background-color: #1a1a1a;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 14px;
	z-index: 2;
	transition: opacity 0.2s ease;
}

.shop-cart-icon:hover {
	opacity: 0.8;
	color: #fff;
}

.shop-product-info {
	padding-top: 15px;
}

.shop-product-title {
	font-size: 15px;
	font-weight: 500;
	margin: 0 0 8px;
	line-height: 1.4;
}

.shop-product-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.shop-product-title a:hover {
	text-decoration: underline;
}

.shop-product-price {
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 6px;
}

.shop-product-price del {
	color: #999;
	font-weight: 400;
	margin-left: 8px;
	font-size: 13px;
}

.shop-product-price ins {
	text-decoration: none;
}

.shop-product-rating {
	display: flex;
	align-items: center;
	gap: 3px;
	font-size: 12px;
	color: #f5a623;
}

.shop-product-rating span {
	color: #999;
	margin-left: 5px;
}

/* ===================== PAGINATION ===================== */
.shop-pagination {
	display: flex;
	justify-content: center;
	margin-top: 50px;
	gap: 8px;
}

.shop-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
}

.shop-pagination .page-numbers.current {
	background-color: #1a1a1a;
	color: #fff;
	border-color: #1a1a1a;
}

.shop-no-products {
	text-align: center;
	padding: 60px 0;
	color: #666;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
	.shop-page-container {
		flex-direction: column;
	}

	.shop-sidebar {
		width: 100%;
	}

	.shop-product-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.shop-page-title {
		position: static;
		transform: none;
	}

	.shop-toolbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
}

@media (max-width: 576px) {
	.shop-product-grid {
		grid-template-columns: 1fr;
	}
}

/* ===================== MOBILE FILTER TOOLBAR ===================== */
.mobile-filter-toolbar {
	display: none;
	align-items: center;
	justify-content: space-between;
	padding: 15px 0;
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 20px;
}

.mobile-filter-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	background: none;
	border: none;
	font-size: 17px;
	font-weight: 600;
	color: #1a1a1a;
	cursor: pointer;
	padding: 0;
}

.mobile-product-count {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
}

/* ===================== MOBILE SIDEBAR DRAWER HEADER/FOOTER ===================== */
.mobile-filter-header {
	display: none;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 20px;
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 20px;
}

.mobile-filter-header h3 {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
}

.mobile-filter-close {
	background: none;
	border: none;
	cursor: pointer;
	color: #1a1a1a;
	display: flex;
	align-items: center;
}

.mobile-filter-footer {
	display: none;
}

.mobile-apply-btn {
	width: 100%;
	background-color: #1a1a1a;
	color: #fff;
	border: none;
	padding: 14px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 20px;
}

.shop-sidebar-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 998;
}

/* ===================== RESPONSIVE: MOBILE ===================== */
@media (max-width: 768px) {

	.shop-page-wrapper {
		padding: 20px 16px;
	}

	.shop-page-container {
		display: block;
	}

	/* Hide desktop toolbar title/sort, show mobile toolbar instead */
	.shop-toolbar {
		display: none;
	}

	.mobile-filter-toolbar {
		display: flex;
	}

	/* Sidebar becomes a slide-in drawer */
	.shop-sidebar {
		position: fixed;
		top: 0;
		left: -100%;
		width: 85%;
		max-width: 340px;
		height: 100%;
		background: #fff;
		z-index: 999;
		padding: 20px;
		overflow-y: auto;
		transition: left 0.35s ease;
	}

	.shop-sidebar.active {
		left: 0;
	}

	.shop-sidebar-overlay.active {
		display: block;
	}

	.mobile-filter-header {
		display: flex;
	}

	.mobile-filter-footer {
		display: block;
	}

	.filter-header {
		display: none;
	}

	/* Product Grid - 2 columns on mobile */
	.shop-product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.shop-product-image {
		border-radius: 10px;
	}

	.shop-product-title {
		font-size: 14px;
	}

	.shop-product-price {
		font-size: 14px;
	}
}