/* ── Shop Layout ── */
.breezan-shop-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	min-height: calc(100dvh - 12rem);
}
@media (min-width: 768px) {
	.breezan-shop-layout { grid-template-columns: 260px 1fr; }
}

/* ── Mobile filter bar ── */
.breezan-shop-mobile-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}
@media (min-width: 768px) { .breezan-shop-mobile-bar { display: none; } }

/* ── Sort dropdown ── */
.breezan-sort-dropdown { display: flex; align-items: center; gap: 0.5rem; }
.breezan-sort-dropdown--desktop { display: none; }
@media (min-width: 768px) { .breezan-sort-dropdown--desktop { display: flex; } }
.breezan-sort-select {
	border: 1px solid var(--breezan-border);
	border-radius: var(--breezan-radius-sm);
	padding: 0.375rem 0.75rem;
	font-size: 0.8125rem;
	color: var(--breezan-text);
	background: #fff;
	outline: none;
	cursor: pointer;
	font-family: inherit;
	min-width: 0;
}
.breezan-sort-select:focus { border-color: var(--breezan-primary); }

/* ── Sidebar shell ── */
.breezan-shop-sidebar {
	display: none;
}
@media (min-width: 768px) {
	.breezan-shop-sidebar {
		display: block;
		position: static !important;
		align-self: start;
		max-height: calc(100vh - 6rem);
	}
}

/* Mobile sidebar drawer */
.breezan-shop-sidebar.is-open {
	display: flex;
	flex-direction: column;
	position: fixed;
	top: var(--breezan-header-height, 4rem);
	inset-inline-end: 0;
	bottom: 0;
	width: min(300px, 88vw);
	max-height: calc(100dvh - var(--breezan-header-height, 4rem));
	background: #fff;
	z-index: 60;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
	animation: breezan-shop-drawer-in 0.28s ease;
	overflow: hidden;
}
@keyframes breezan-shop-drawer-in {
	from { transform: translateX(100%); opacity: 0.96; }
	to { transform: translateX(0); opacity: 1; }
}
[dir="rtl"] .breezan-shop-sidebar.is-open {
	animation-name: breezan-shop-drawer-in-rtl;
}
@keyframes breezan-shop-drawer-in-rtl {
	from { transform: translateX(-100%); opacity: 0.96; }
	to { transform: translateX(0); opacity: 1; }
}

.breezan-sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 55;
}
.breezan-sidebar-overlay.is-open { display: block; }

/* Close button in sidebar (only visible on mobile) */
.breezan-sidebar-close {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--breezan-text-muted);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.25rem;
	border-radius: var(--breezan-radius-sm);
}
.breezan-sidebar-close:hover { color: var(--breezan-text); background: var(--breezan-primary-light, #f5f3ff); }
@media (min-width: 768px) { .breezan-sidebar-close { display: none; } }

/* Sidebar card + scroll */
.breezan-shop-sidebar__card.breezan-card {
	display: flex;
	flex-direction: column;
	max-height: 100%;
	min-height: 0;
}
.breezan-shop-sidebar__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--breezan-border);
	flex-shrink: 0;
}
.breezan-shop-sidebar__title {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--breezan-text);
}
.breezan-shop-sidebar__scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	padding: 0.75rem 1.25rem 1.25rem;
	scrollbar-gutter: stable;
}

/* Filter sections */
.breezan-filter-section {
	margin-bottom: 1.25rem;
}
.breezan-filter-section + .breezan-filter-section {
	padding-top: 1rem;
	margin-top: 0.25rem;
	border-top: 1px solid var(--breezan-border);
}
.breezan-filter-section:last-of-type {
	margin-bottom: 0;
}
.breezan-filter-section__title {
	margin: 0 0 0.625rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	color: var(--breezan-text-muted);
}
.breezan-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Checkbox-style filter rows (links) */
.breezan-filter-check {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.5rem 0.25rem;
	margin: 0 -0.25rem;
	border-radius: var(--breezan-radius-sm);
	font-size: 0.875rem;
	color: var(--breezan-text-light);
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
	border: none;
	border-bottom: 1px solid var(--breezan-border);
	box-sizing: border-box;
}
.breezan-filter-list li:last-child .breezan-filter-check {
	border-bottom: none;
}
.breezan-filter-check:hover {
	color: var(--breezan-primary);
	background: var(--breezan-primary-light, rgba(124, 58, 237, 0.06));
}
.breezan-filter-check.is-active {
	color: var(--breezan-primary);
	font-weight: 600;
}
.breezan-filter-check__box {
	flex-shrink: 0;
	width: 1.0625rem;
	height: 1.0625rem;
	border: 2px solid #d1d5db;
	border-radius: 4px;
	background: #fff;
	position: relative;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.breezan-filter-check.is-active .breezan-filter-check__box {
	border-color: var(--breezan-primary);
	background: var(--breezan-primary);
}
.breezan-filter-check.is-active .breezan-filter-check__box::after {
	content: "";
	position: absolute;
	inset: 2px 3px 3px 2px;
	border: solid #fff;
	border-width: 0 0 2px 2px;
	transform: rotate(-45deg);
	box-sizing: border-box;
}
.breezan-filter-check__label {
	flex: 1;
	min-width: 0;
	text-align: start;
}
.breezan-filter-check .breezan-filter-count {
	flex-shrink: 0;
	font-size: 0.75rem;
	color: var(--breezan-text-muted);
	font-weight: 400;
}

.breezan-filter-reset-wrap {
	margin: 1rem 0 0;
	padding-top: 0.75rem;
	border-top: 1px dashed var(--breezan-border);
}
.breezan-filter-reset {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--breezan-primary);
	text-decoration: none;
}
.breezan-filter-reset:hover { text-decoration: underline; }

/* Legacy filter links (if reused elsewhere) */
.breezan-filter-link {
	display: flex; align-items: center; justify-content: space-between;
	padding: 0.5rem 0; font-size: 0.875rem;
	color: var(--breezan-text-light);
	border-bottom: 1px solid var(--breezan-border);
	transition: color var(--breezan-transition);
}
.breezan-filter-link:hover, .breezan-filter-link.is-active { color: var(--breezan-primary); }
.breezan-filter-count { font-size: 0.75rem; color: var(--breezan-text-muted); }

/* ── Shop header ── */
.breezan-shop-header {
	display: flex; align-items: center; justify-content: space-between;
	margin-bottom: 1.5rem;
}
.breezan-shop-count { font-size: 0.875rem; color: var(--breezan-text-light); }
