/**
 * Woo Horizontal Filter Widget - Frontend Styles (Dark Minimalist Theme)
 */

:root {
	--wcf-primary-color: #ffffff;
	--wcf-primary-hover: #e0e0e0;
	--wcf-bg-color: #000000;
	--wcf-border-color: #222222;
	--wcf-text-color: #ffffff;
	--wcf-text-muted: #888888;
	--wcf-radius: 4px;
	--wcf-drawer-width: 320px;
}

/* Container & Form Base */
.wcf-filter-wrapper {
	box-sizing: border-box;
	margin-bottom: 24px;
	width: 100%;
}

.wcf-filter-wrapper * {
	box-sizing: border-box;
}

/* Horizontal Desktop Container */
.wcf-horizontal-container {
	background: var(--wcf-bg-color);
	border: 1px solid var(--wcf-border-color);
	border-radius: var(--wcf-radius);
	padding: 12px 24px;
	width: 100%;
	min-height: 52px;
	display: flex;
	align-items: center;
}

.wcf-filter-form {
	width: 100%;
}

.wcf-dropdowns-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
}

.wcf-filters-left,
.wcf-filters-right {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.wcf-field-group {
	flex: 0 0 auto;
}

/* Hide desktop labels for sleek trigger look matching the screenshot */
.wcf-horizontal-container .wcf-label {
	display: none;
}

/* Mobile labels in drawer */
.wcf-slide-body .wcf-label {
	display: block;
	font-weight: 500;
	font-size: 13px;
	margin-bottom: 6px;
	color: #aaaaaa;
}

/* Dropdown Select Styling */
.wcf-dropdown {
	width: auto;
	padding: 8px 28px 8px 12px;
	font-size: 14px;
	font-weight: 400;
	color: var(--wcf-text-color);
	background-color: transparent;
	border: 1px solid transparent;
	border-radius: var(--wcf-radius);
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 14px;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wcf-dropdown:hover,
.wcf-dropdown:focus {
	outline: none;
	background-color: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.15);
}

.wcf-dropdown option {
	background-color: #111111;
	color: #ffffff;
	padding: 8px;
}

/* Items count text */
.wcf-count-text {
	font-size: 14px;
	color: #cccccc;
	white-space: nowrap;
	margin-right: 4px;
}

/* Form Action Buttons */
.wcf-form-actions {
	display: flex;
	gap: 8px;
	flex: 0 0 auto;
	align-items: center;
}

.wcf-slide-body .wcf-form-actions {
	margin-top: 20px;
}

.wcf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 500;
	border-radius: var(--wcf-radius);
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	border: 1px solid transparent;
	white-space: nowrap;
}

.wcf-btn-apply {
	background-color: #ffffff;
	color: #000000;
}

.wcf-btn-apply:hover {
	background-color: #e0e0e0;
	color: #000000;
}

.wcf-btn-reset {
	background-color: #1a1a1a;
	color: #cccccc;
	border-color: #333333;
}

.wcf-btn-reset:hover {
	background-color: #262626;
	color: #ffffff;
	border-color: #444444;
}

/* Mobile Hamburger Trigger Button */
.wcf-mobile-toggle-btn {
	display: none;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	background: #000000;
	color: #ffffff;
	border: 1px solid #222222;
	border-radius: var(--wcf-radius);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wcf-mobile-toggle-btn:hover {
	background-color: #111111;
}

.wcf-hamburger-icon {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 18px;
	height: 14px;
}

.wcf-hamburger-icon span {
	display: block;
	height: 2px;
	width: 100%;
	background-color: #ffffff;
	border-radius: 2px;
}

/* Mobile Slide Backdrop Overlay */
.wcf-slide-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.7);
	z-index: 999998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wcf-slide-backdrop.wcf-active {
	opacity: 1;
	visibility: visible;
}

/* Mobile Off-Canvas Slide Panel Drawer */
.wcf-slide-panel {
	position: fixed;
	top: 0;
	left: 0;
	width: var(--wcf-drawer-width);
	max-width: 85vw;
	height: 100vh;
	background: #0a0a0a;
	color: #ffffff;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	box-shadow: 2px 0 12px rgba(0, 0, 0, 0.5);
	transform: translateX(-100%);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wcf-slide-panel.wcf-active {
	transform: translateX(0);
}

.wcf-slide-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #222222;
	background: #000000;
}

.wcf-slide-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
}

.wcf-slide-close-btn {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #888888;
	padding: 0 4px;
}

.wcf-slide-close-btn:hover {
	color: #ffffff;
}

.wcf-slide-body {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

.wcf-slide-body .wcf-dropdowns-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.wcf-slide-body .wcf-filters-left,
.wcf-slide-body .wcf-filters-right {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	width: 100%;
}

.wcf-slide-body .wcf-field-group {
	width: 100%;
}

.wcf-slide-body .wcf-dropdown {
	width: 100%;
	background-color: #141414;
	border-color: #282828;
}

/* Body Scroll Lock */
body.wcf-no-scroll {
	overflow: hidden !important;
}

/* Product Grid Loading Overlay */
.wcf-loading {
	position: relative;
	opacity: 0.5;
	pointer-events: none;
	min-height: 200px;
}
