/* ==========================================================================
   Velora — shop & category archives
   ========================================================================== */
.v-wc--archive { padding-bottom: var(--v-space-section); }
.v-wc--archive .v-breadcrumb { padding-top: 1.25rem; margin-bottom: 0; }
.woocommerce-products-header { padding-block: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem); max-width: 760px; }
.woocommerce-products-header__title { font-size: var(--v-fs-2xl); margin: 0; }
.term-description, .page-description { color: var(--v-muted); margin-top: .75rem; max-width: 62ch; }
.term-description p:last-child { margin-bottom: 0; }

/* Subcategory tiles (when WooCommerce shows categories) */
ul.products li.product-category a { text-decoration: none; display: block; }
ul.products li.product-category img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--v-surface); }
ul.products li.product-category h2 { font-size: 1.25rem; margin-top: .75rem; }
ul.products li.product-category .count { background: none; color: var(--v-muted); font-size: .8em; }

/* Layout */
.v-shop { display: block; }
@media (min-width: 1024px) {
	.v-shop.has-filters { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 3rem; align-items: start; }
}
.v-shop__results { min-width: 0; transition: opacity .2s; }
.v-shop__results.is-loading { opacity: .45; pointer-events: none; }

/* Toolbar */
.v-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1rem; padding: .75rem 0; margin-bottom: 1.25rem; border-top: 1px solid var(--v-border); border-bottom: 1px solid var(--v-border); }
.v-toolbar .woocommerce-result-count { margin: 0 auto 0 0; font-size: var(--v-fs-sm); color: var(--v-muted); order: 1; }
.v-toolbar__filter { order: 0; }
.v-toolbar .woocommerce-ordering { margin: 0; order: 2; }
.v-toolbar .woocommerce-ordering select { min-height: 40px; padding-block: .4rem; border-color: var(--v-border); background-color: transparent; font-size: var(--v-fs-sm); width: auto; }
.v-toolbar__badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--v-text); color: var(--v-on-text); font-size: 11px; letter-spacing: 0; }
.v-toolbar__badge[hidden] { display: none; }
@media (min-width: 1024px) {
	.v-toolbar__filter { display: none; }
	.v-toolbar { border-top: 0; padding-top: 0; }
}

/* Active filters */
.v-active-filters { margin-bottom: 1.25rem; }
.v-active-filters:empty { display: none; }
.v-chip--remove .v-icon { opacity: .7; }

/* Filter panel: sidebar on desktop, drawer on phones */
.v-filters__title { font-size: 1.5rem; margin: 0; }
.v-filters__close { display: none; }
.v-filters__empty { color: var(--v-muted); font-size: var(--v-fs-sm); }
.v-fgroup { border-bottom: 1px solid var(--v-border); }
.v-fgroup__title {
	display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 52px; cursor: pointer; list-style: none;
	font-size: var(--v-fs-xs); text-transform: uppercase; letter-spacing: .14em; font-weight: 500;
}
.v-fgroup__title::-webkit-details-marker { display: none; }
.v-fgroup__title .v-icon { margin-left: auto; transition: transform .2s; }
.v-fgroup[open] > .v-fgroup__title .v-icon { transform: rotate(180deg); }
.v-fgroup__n { color: var(--v-muted); letter-spacing: 0; }
.v-fgroup__body { border: 0; margin: 0; padding: 0 0 1rem; min-width: 0; }
.v-fgroup--plain { padding: .5rem 0; }
.v-fopts { list-style: none; margin: 0; padding: 0; }
.v-price-range { display: flex; align-items: flex-end; gap: .5rem; }
.v-price-range .v-field { margin: 0; flex: 1; }
.v-price-range .v-input { min-height: 42px; padding: .5rem .6rem; }
.v-price-range__dash { padding-bottom: .65rem; color: var(--v-muted); }
.v-filters__foot { display: flex; gap: .75rem; align-items: center; padding-top: 1.25rem; }
.v-filters__foot .v-btn--primary { flex: 1; }

@media (min-width: 1024px) {
	.v-filters { position: sticky; top: calc(var(--v-header-h) + 1.5rem); max-height: calc(100vh - var(--v-header-h) - 3rem); overflow-y: auto; scrollbar-width: thin; }
	.v-filters__backdrop { display: none; }
	.v-filters__head { padding-bottom: .5rem; border-bottom: 1px solid var(--v-text); }
	.v-filters__title { font-family: var(--v-font-body); font-size: var(--v-fs-xs); text-transform: uppercase; letter-spacing: .16em; font-weight: 500; line-height: 2.5; }
	.v-filters__foot [data-v-apply] { display: none; }
	.v-filters__foot { justify-content: flex-start; }
	.v-filters__foot .v-btn--ghost { padding-left: 0; }
}
@media (max-width: 1023px) {
	.v-filters { position: fixed; inset: 0; z-index: 1000; }
	.v-filters[hidden] { display: none; }
	.v-filters__panel {
		position: absolute; top: 0; bottom: 0; left: 0; width: min(400px, 92%); background: var(--v-bg); display: flex; flex-direction: column;
		transform: translateX(-100%); transition: transform var(--v-dur) var(--v-ease); outline: none; box-shadow: var(--v-shadow);
	}
	.v-filters.is-open .v-filters__panel { transform: none; }
	.v-filters__head { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem .75rem 1.5rem; border-bottom: 1px solid var(--v-border); min-height: var(--v-header-h); }
	.v-filters__close { display: inline-grid; }
	.v-filters__form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
	.v-filters__body { flex: 1; overflow-y: auto; padding: 0 1.5rem; }
	.v-filters__foot { padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--v-border); }
	.v-filters__empty { padding: 1.5rem; }
}

/* No products */
.woocommerce-no-products-found .woocommerce-info { margin-top: 1rem; }
