/**
 * Shop sidebar (template-parts/shop/shop-sidebar.php, rendered via
 * sidebar-left.php) — the four approved filter groups (Κατηγορίες,
 * Φίλτρο τιμής, Προσφορές, Μάρκα) plus the "Καθαρισμός φίλτρων" reset
 * link. Only enqueued on shop-archive pages (Shop page, product
 * category/tag archives) — see inc/enqueue/styles.php. The two-column
 * sidebar+grid layout itself lives in assets/css/pages/shop-content.css.
 *
 * Flat, uncarded sections (heading + hairline rule, no boxed widget
 * cards, no background) — the sidebar sits directly on the page surface,
 * per the reference design.
 */

.myshop-shop-sidebar {
	display: flex;
	flex-direction: column;
	gap: clamp(30px, 3vw, 36px);
}

@media (min-width: 1100px) {
	.myshop-shop-sidebar {
		position: sticky;
		top: 24px;
	}
}

.myshop-shop-sidebar__widget-title {
	margin: 0 0 var(--myshop-space-sm);
	padding-bottom: 10px;
	border-bottom: 1px solid var(--color-border);
	font-size: 15px;
	font-weight: 600;
	color: var(--color-heading);
}

/* ======================================================================
   Κατηγορίες
   ====================================================================== */

.myshop-shop-sidebar__categories {
	margin: 0;
	padding: 0;
	list-style: none;
}

.myshop-shop-sidebar__categories-item a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--myshop-space-sm);
	min-height: 29px;
	padding: 6px 0;
	color: var(--color-text);
	text-decoration: none;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 400;
}

.myshop-shop-sidebar__categories-item a:hover .myshop-shop-sidebar__category-label {
	color: var(--color-primary);
}

.myshop-shop-sidebar__category-count {
	flex-shrink: 0;
	min-width: 1.75em;
	padding: 0.1em 0.5em;
	border-radius: 999px;
	background-color: var(--color-surface-alt);
	color: var(--color-text-muted);
	font-size: var(--font-size-xs);
	text-align: center;
}

.myshop-shop-sidebar__categories-item--active a {
	color: var(--color-primary);
}

.myshop-shop-sidebar__categories-item--active .myshop-shop-sidebar__category-label {
	font-weight: 600;
	color: var(--color-primary);
}

.myshop-shop-sidebar__categories-item--active .myshop-shop-sidebar__category-count {
	background-color: var(--color-primary);
	color: var(--color-background);
}

/* ======================================================================
   Φίλτρο τιμής — WooCommerce's own "Filter Products by Price" widget,
   recolored to the brand's dark olive instead of WooCommerce's default
   purple. Visual order (slider -> price readout -> button) is enforced
   here via flex + order, independent of the widget's own fixed markup
   order — see woocommerce/content-widget-price-filter.php.
   !important on the three color rules: WooCommerce's own compiled
   stylesheet (assets/css/woocommerce.css) scopes the same properties to
   ".woocommerce .widget_price_filter .ui-slider .ui-slider-handle" etc —
   4 classes deep, which beats a same-length selector here purely on
   specificity regardless of load order, so it has to be matched this way
   rather than by trying to out-specify it. */

.widget_price_filter .price_slider_wrapper .ui-widget-content {
	background-color: var(--color-border) !important;
}

.widget_price_filter .ui-slider .ui-slider-range {
	background-color: var(--color-primary) !important;
}

.widget_price_filter .ui-slider .ui-slider-handle {
	background-color: var(--color-primary) !important;
	border: none !important;
}

.price_slider_amount {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	text-align: left;
}

.price_slider_amount input[type="text"] {
	display: none;
}

.price_slider_amount .clear {
	display: none;
}

.price_label {
	order: 1;
	margin: 0;
	color: var(--color-secondary);
	font-size: 14px;
}

.price_label .from,
.price_label .to {
	color: var(--color-heading);
	font-weight: 600;
}

.price_slider_amount .button {
	order: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	float: none;
	height: 40px;
	padding-inline: 16px;
	border: 0;
	border-radius: 5px;
	background-color: var(--color-primary);
	color: var(--color-background);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.price_slider_amount .button:hover {
	background-color: var(--color-primary-hover);
}

/* ======================================================================
   Προσφορές / Μάρκα — native checkboxes, brand-colored when checked.
   ====================================================================== */

.myshop-shop-sidebar__checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.myshop-shop-sidebar__checkbox input[type="checkbox"] {
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--color-primary);
}

.myshop-shop-sidebar__checkbox-label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--color-secondary);
	font-size: 14px;
}

.myshop-shop-sidebar__checkbox-count {
	color: var(--color-text-muted);
	font-size: var(--font-size-xs);
}

.myshop-shop-sidebar__brands {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.myshop-shop-sidebar__checkbox-row--extra {
	display: none;
}

.myshop-shop-sidebar__brands--expanded .myshop-shop-sidebar__checkbox-row--extra {
	display: block;
}

.myshop-shop-sidebar__brand-more {
	display: inline-block;
	margin-top: 12px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-accent);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}

.myshop-shop-sidebar__brand-more:hover {
	color: var(--color-primary);
}

.myshop-shop-sidebar__apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 16px;
	height: 42px;
	padding-inline: 20px;
	border: 0;
	border-radius: 6px;
	background-color: var(--color-primary);
	color: var(--color-background);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.myshop-shop-sidebar__apply:hover {
	background-color: var(--color-primary-hover);
}

/* ======================================================================
   Καθαρισμός φίλτρων
   ====================================================================== */

.myshop-shop-sidebar__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding-inline: 18px;
	border: 1px solid var(--color-primary);
	border-radius: 5px;
	background: transparent;
	color: var(--color-text);
	font-size: 13px;
	text-decoration: none;
	text-align: center;
}

.myshop-shop-sidebar__clear:hover {
	background-color: var(--color-surface-alt);
	color: var(--color-primary);
}

@media (max-width: 1099px) {
	.myshop-shop-sidebar {
		margin-bottom: var(--myshop-space-lg);
	}
}
