/* Product archive styles — shop page + product category/tag/attribute archives. */

/* Header row: title+desc left, sorting right */
.category-header-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
}

/* Title */

/* Description */
.category-description,
.category-description p {
	font-size: 15px;
	color: inherit;
	margin: 0 0 10px;
	line-height: 1.5;
}

.category-description p:last-child {
	margin-bottom: 0;
}

/* Sorting dropdown */
.category-header-right {
	flex-shrink: 0;
	padding-top: 4px;
}

.category-header-right .woocommerce-ordering select.orderby {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 999px;
	padding: 8px 26px 8px 18px;
	font-size: 14px;
	cursor: pointer;
	min-width: 160px;
	height: auto;
	color: #091120;
    font-weight: 500;
    font-size: 14px;
}

.category-header-right .woocommerce-ordering select.orderby:focus {
	outline: none;
	border-color: #E5E7EB;
}

.category-header-right .category-filtering {
	outline: none;
	border: 1px solid #E5E7EB;
	border-radius: 999px;
    padding: 8px 16px;
	color: #091120;
    font-weight: 500;
    font-size: 14px;
}

.mobile-filter-col {
	display: flex;
	gap: 0.5rem;
}

/* Hide the default submit button */
.category-header-right .woocommerce-ordering {
	margin: 0;
}

/* Page title section spacing */
.shop-page-title .page-title-inner {
}



/* Filters */

.cpaf-widget-title {
	margin-bottom: 8px;
	color: var(--accent-color-text);
	font-size: 0.75rem;
}

.cpaf-checkbox {
	display: none;
}

.cpaf-count {
	display: none;
}
 
.cpaf-list__item {
	border-top: none!important;
	margin-bottom: 6px!important;
	padding: 2px 12px;
}

/* For category items, padding lives on the row wrapper (not the <li>)
   so children/grand-children sit flush and the active pill hugs the row. */
.cpaf-list__item.cpaf-category-item {
	padding: 0;
}

.cpaf-list__item.cpaf-category-item > .cpaf-category-row {
	padding: 2px 12px;
}

/* Active pill.
   Default: sits on the <li> so the existing 2px/12px padding gives it
   horizontal breathing room (attribute filter, show-all link, etc.).
   Category filter: <li> padding is 0 and the row wrapper handles padding,
   so we move the pill onto the row so children <ul> stays outside it. */
.cpaf-list__item--active {
	background: var(--fs-color-primary);
	border-radius: 8px;
}

.cpaf-list__item.cpaf-category-item--active {
	background: transparent;
}

.cpaf-list__item.cpaf-category-item--active > .cpaf-category-row {
	background: var(--fs-color-primary);
	border-radius: 8px;
}

.cpaf-list__item--active > a,
.cpaf-list__item.cpaf-category-item--active > .cpaf-category-row > a {
	color: #FFF;
}

.cpaf-list__item--active > a:hover,
.cpaf-list__item.cpaf-category-item--active > .cpaf-category-row > a:hover {
    color: #FFF!important;
}

.custom-product-reset-filters {
	margin-bottom: 1rem!important;
}
/* END Filters */


/* Mobile */
@media (max-width: 767px) {
	.category-header-row {
		flex-direction: column;
		gap: 16px;
	}

	.category-title {
		font-size: 26px;
	}

	.category-header-right {
		align-self: flex-start;
		width: 100%;
	}
}

/* "Preberi več" link appended to .category-description when the term has an
   ACF content_after_loop value. Anchors to #av-archive-after-loop below the
   product grid. */
.category-description__more {
	display: block;
	margin-top: 0.5rem;
	color: #92c096;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.category-description__more:hover,
.category-description__more:focus-visible {
	color: #5f8e64;
	text-decoration: underline;
}

.av-archive-after-loop {
	scroll-margin-top: 120px;
	margin-top: 2rem;
	padding-top: 24px;
	border-top: 1px solid #eaecf0;
}

.av-archive-after-loop:focus {
	outline: none;
}



#cpaf-cat-175, #cpaf-cat-15 {
	display: none!important;
}