/**
 * Filter Layout — Slide Panel
 *
 * Only the panel layout requires special CSS (fixed off-screen positioning).
 *
 * - Sidebar: Uses WordPress widget system — theme handles positioning.
 * - Above Products: Default rendering via WooCommerce hook — no CSS needed.
 * - Shortcode: User-placed — no CSS needed.
 * - Panel: Fixed off-screen, toggled via JS in assets/js/filter-panel.js.
 *
 * @package Advanced_Woo_Filters
 * @since   1.0.0
 */

/* ===================================================================
   LAYOUT: SLIDE PANEL  (.awf-layout-panel)
   =================================================================== */
.awf-layout-panel {
	position: fixed;
	top: 0;
	left: -340px;
	width: 300px;
	height: 100vh;
	height: 100dvh;
	background: #fff;
	z-index: 99999;
	box-shadow: 2px 0 16px rgba( 0, 0, 0, 0.12 );
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	transition: left 0.3s cubic-bezier( 0.4, 0, 0.2, 1 );
	padding: 24px 20px;
	box-sizing: border-box;
}

.awf-layout-panel.awf-panel-open {
	left: 0;
}

/* Toggle button (rendered by PHP) */
.awf-panel-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	background: #1d2327;
	color: #fff;
	border: none;
	border-radius: 24px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.2 );
	transition: background 0.2s ease, box-shadow 0.2s ease;
	margin-bottom: 16px;
	font-family: inherit;
	line-height: 1.4;
}

.awf-panel-toggle .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 1;
}

.awf-panel-toggle:hover {
	background: #2c3338;
	box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.25 );
}

/* Overlay */
.awf-panel-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba( 0, 0, 0, 0.4 );
	z-index: 99998;
	cursor: pointer;
}

.awf-panel-overlay.awf-panel-overlay-visible {
	display: block;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media screen and ( max-width: 768px ) {
	.awf-layout-panel {
		width: 85vw;
		max-width: 320px;
		left: -85vw;
	}
}
