/* Product Filter Modal Styles */

/* Overlay */
.cs-product-filter-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	overflow-y: auto;
}

/* Modal */
.cs-product-filter-modal {
	background-color: #fff;
	border-radius: 16px;
	max-width: 600px;
	width: 100%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	position: relative;
}

/* Header */
.cs-product-filter-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 24px 20px;
	border-bottom: 1px solid #e5e5e5;
}

.cs-product-filter-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0;
	color: #000;
}

.cs-product-filter-close {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: #333;
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background-color 0.2s;
}

.cs-product-filter-close:hover {
	background-color: #555;
}

.cs-product-filter-close-icon {
	font-size: 24px;
	line-height: 1;
}

/* Content */
.cs-product-filter-content {
	flex: 1;
	overflow-y: auto;
	padding: 24px;
}

.cs-product-filter-section {
	margin-bottom: 32px;
}

.cs-product-filter-section:last-child {
	margin-bottom: 0;
}

.cs-product-filter-section-label {
	display: block;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 16px;
	color: #000;
}

/* Price Filter */
.cs-product-filter-price-wrapper {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cs-product-filter-price-slider {
	position: relative;
	height: 6px;
	background-color: #e5e5e5;
	border-radius: 3px;
	margin: 20px 0;
}

.cs-product-filter-price-slider-input {
	position: absolute;
	width: 100%;
	height: 6px;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
	top: 0;
	left: 0;
}

.cs-product-filter-price-slider-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-color: #2d5016;
	cursor: pointer;
	pointer-events: all;
	border: 2px solid #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cs-product-filter-price-slider-input::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-color: #2d5016;
	cursor: pointer;
	pointer-events: all;
	border: 2px solid #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cs-product-filter-price-inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.cs-product-filter-price-input-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cs-product-filter-price-input-group label {
	font-size: 14px;
	color: #666;
}

.cs-product-filter-price-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
}

.cs-product-filter-price-input:focus {
	outline: none;
	border-color: #2d5016;
}

/* Filter Options */
.cs-product-filter-options {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Label Type Options */
.cs-product-filter-options-label .cs-product-filter-option {
	padding: 8px 16px;
	border: 1px solid #ddd;
	border-radius: 20px;
	background-color: #fff;
	color: #000;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
}

.cs-product-filter-options-label .cs-product-filter-option:hover {
	border-color: #999;
}

.cs-product-filter-options-label .cs-product-filter-option.is-selected {
	background-color: #333;
	color: #fff;
	border-color: #333;
}

.cs-product-filter-options-label .cs-product-filter-option.is-selected .cs-product-filter-option-checkmark {
	display: inline-block;
	margin-left: 6px;
}

/* Color Type Options */
.cs-product-filter-options-color .cs-product-filter-option {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid #ddd;
	background-color: #fff;
	cursor: pointer;
	position: relative;
	padding: 0;
	overflow: hidden;
	transition: all 0.2s;
}

.cs-product-filter-options-color .cs-product-filter-option:hover {
	border-color: #999;
}

.cs-product-filter-options-color .cs-product-filter-option.is-selected {
	border-color: #333;
}

.cs-product-filter-option-color {
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

/* Image Type Options */
.cs-product-filter-options-image .cs-product-filter-option {
	width: 80px;
	height: 80px;
	border: 2px solid #ddd;
	border-radius: 12px;
	background-color: #fff;
	cursor: pointer;
	position: relative;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	overflow: hidden;
}

.cs-product-filter-options-image .cs-product-filter-option:hover {
	border-color: #999;
}

.cs-product-filter-options-image .cs-product-filter-option.is-selected {
	border-color: #333;
}

.cs-product-filter-option-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cs-product-filter-option-label {
	display: block;
}

/* Checkmark */
.cs-product-filter-option-checkmark {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 20px;
	height: 20px;
	background-color: #333;
	color: #fff;
	border-radius: 50%;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
}

.cs-product-filter-option.is-selected .cs-product-filter-option-checkmark {
	display: flex;
}

/* Footer */
.cs-product-filter-footer {
	display: flex;
	gap: 12px;
	padding: 20px 24px;
	border-top: 1px solid #e5e5e5;
}

.cs-product-filter-reset,
.cs-product-filter-apply {
	flex: 1;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	border: none;
}

.cs-product-filter-reset {
	background-color: #fff;
	color: #e91e63;
	border: 1px solid #e91e63;
}

.cs-product-filter-reset:hover {
	background-color: #f5f5f5;
}

.cs-product-filter-apply {
	background-color: #333;
	color: #fff;
}

.cs-product-filter-apply:hover {
	background-color: #555;
}

/* Filter Button */
.cs-product-filter-button {
	position: relative;
	padding: 10px 20px;
	background-color: #333;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
}

.cs-product-filter-button:hover {
	background-color: #555;
}

.cs-product-filter-button-count {
	position: absolute;
	top: -8px;
	right: -8px;
	background-color: #e91e63;
	color: #fff;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
}

/* Scrollbar */
.cs-product-filter-content::-webkit-scrollbar {
	width: 6px;
}

.cs-product-filter-content::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 3px;
}

.cs-product-filter-content::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 3px;
}

.cs-product-filter-content::-webkit-scrollbar-thumb:hover {
	background: #555;
}
