/* ==========================================================================
   Zivara Collection – shop / category archives + filters
   ========================================================================== */

.zv-shop__hero { position: relative; }
.zv-shop__hero.has-image { color: #fff; }
.zv-shop__banner { position: absolute; inset: 0; }
.zv-shop__banner img { width: 100%; height: 100%; object-fit: cover; }
.zv-shop__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 14, 16, .65), rgba(20, 14, 16, .15)); }
.zv-shop__intro { position: relative; padding-top: 4px; padding-bottom: 20px; }
.zv-shop__hero.has-image .zv-shop__intro { padding-top: 24px; padding-bottom: 56px; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; }
.zv-shop__hero.has-image .zv-breadcrumb { color: rgba(255, 255, 255, .8); position: absolute; top: 0; }
.zv-shop__hero.has-image .zv-breadcrumb a:hover { color: #fff; }
.zv-shop__title { font-size: clamp(32px, 4.4vw, 54px); margin: 0; }
.zv-shop__hero.has-image .zv-shop__title { color: #fff; }
.zv-shop__desc { max-width: 720px; color: var(--zv-muted); margin-top: 8px; font-size: 14.5px; }
.zv-shop__hero.has-image .zv-shop__desc { color: rgba(255, 255, 255, .88); }
.zv-shop__desc p:last-child { margin: 0; }

.zv-subcats { display: flex; gap: 20px; overflow-x: auto; padding: 20px 0 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.zv-subcats::-webkit-scrollbar { display: none; }
.zv-subcat { flex: 0 0 auto; width: 96px; display: grid; justify-items: center; gap: 8px; text-align: center; scroll-snap-align: start; }
.zv-subcat__media { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--zv-border); transition: box-shadow var(--zv-med), transform var(--zv-med) var(--zv-ease); }
.zv-subcat__media img { width: 100%; height: 100%; object-fit: cover; }
.zv-subcat__media .zv-art__mono { font-size: 30px; }
.zv-subcat:hover .zv-subcat__media { box-shadow: 0 0 0 2px var(--zv-accent); transform: translateY(-3px); }
.zv-subcat__name { font-size: 13px; line-height: 1.3; }

.zv-shop__layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; padding-top: 24px; padding-bottom: 72px; align-items: start; }
.zv-shop__main { min-width: 0; }

/* Toolbar --------------------------------------------------------------------- */
.zv-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--zv-border); margin-bottom: 16px; }
.zv-toolbar__count { margin: 0; color: var(--zv-muted); font-size: 14px; }
.zv-toolbar__btn { display: none; }
.zv-sort { display: flex; align-items: center; gap: 8px; }
.zv-sort label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--zv-muted); font-weight: 400; }
.zv .zv-sort select { min-height: 40px; width: auto; padding: 8px 36px 8px 12px; font-size: 14px; border-color: var(--zv-border); appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
.zv-active-filters { margin-bottom: 20px; align-items: center; }
.zv-chip--active .zv-icon { opacity: .6; }

/* Results loading state ------------------------------------------------------- */
.zv-shop__results { position: relative; min-height: 300px; transition: opacity var(--zv-med); }
.zv-shop__results.is-loading { opacity: .45; pointer-events: none; }
.zv-shop__results.is-loading::before { content: ""; position: absolute; top: 120px; left: 50%; z-index: 5; width: 36px; height: 36px; margin-left: -18px; border: 2px solid var(--zv-accent); border-right-color: transparent; border-radius: 50%; animation: zv-spin .7s linear infinite; }
.zv-loadmore { display: grid; justify-items: center; gap: 12px; margin-top: 48px; }
.zv-loadmore__text { margin: 0; font-size: 13px; color: var(--zv-muted); }
.js .zv-shop .woocommerce-pagination { display: none; }

/* Filter panel ----------------------------------------------------------------- */
.zv-filters { position: sticky; inset: auto; top: calc(var(--zv-header-h) + 70px); visibility: visible; pointer-events: auto; z-index: 5; }
.zv-filters__backdrop { display: none; }
.zv-filters__panel { display: flex; flex-direction: column; max-height: calc(100vh - var(--zv-header-h) - 100px); outline: none; }
.zv-filters__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--zv-border); }
.zv-filters__title { font: 600 24px/1 var(--zv-serif); margin: 0; flex: 1; }
.zv-filters__close { display: none; }
.zv-filters__body { overflow-y: auto; scrollbar-width: thin; padding-right: 6px; overscroll-behavior: contain; }
.zv-filters__foot { display: none; }
.zv-fgroup { border-bottom: 1px solid var(--zv-border); }
.zv-fgroup summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.zv-fgroup summary::-webkit-details-marker { display: none; }
.zv-fgroup summary .zv-icon { transition: transform var(--zv-med) var(--zv-ease); }
.zv-fgroup[open] summary .zv-icon { transform: rotate(180deg); }
.zv-fgroup[open] > :not(summary) { animation: zv-fade-down var(--zv-med) var(--zv-ease); }
.zv-fgroup > :not(summary) { margin-bottom: 18px; }
.zv-checks { list-style: none; display: grid; gap: 12px; max-height: 260px; overflow-y: auto; padding-right: 10px; }

/* Colour swatches + size pills ---------------------------------------------------------- */
.zv-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 12px 6px; }
.zv-swatch { position: relative; display: grid; justify-items: center; gap: 6px; cursor: pointer; font-weight: 400; }
.zv-swatch input { position: absolute; opacity: 0; }
.zv-swatch__dot { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); box-shadow: 0 0 0 3px #fff; transition: box-shadow var(--zv-fast), transform var(--zv-fast); }
.zv-swatch:hover .zv-swatch__dot { transform: scale(1.08); }
.zv-swatch input:checked + .zv-swatch__dot { box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--zv-dark); }
.zv-swatch input:focus-visible + .zv-swatch__dot { outline: 2px solid var(--zv-accent); outline-offset: 4px; }
.zv-swatch__name { font-size: 12px; color: var(--zv-muted); text-align: center; line-height: 1.2; }
.zv-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.zv-size { position: relative; cursor: pointer; font-weight: 400; }
.zv-size input { position: absolute; opacity: 0; }
.zv-size span { min-width: 46px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--zv-border); border-radius: var(--zv-radius); font-size: 13px; transition: all var(--zv-fast); }
.zv-size:hover span { border-color: var(--zv-dark); }
.zv-size input:checked + span { background: var(--zv-dark); border-color: var(--zv-dark); color: #fff; }
.zv-size input:focus-visible + span { outline: 2px solid var(--zv-accent); outline-offset: 2px; }

/* Price range ----------------------------------------------------------------- */
.zv-range { position: relative; padding-top: 8px; }
.zv-range__track { position: relative; height: 3px; background: var(--zv-border); border-radius: 3px; margin: 10px 9px 0; }
.zv-range__fill { position: absolute; top: 0; bottom: 0; background: var(--zv-dark); border-radius: 3px; }
.zv-range input[type="range"] { position: absolute; left: 0; right: 0; top: 7px; width: 100%; height: 20px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.zv-range input[type="range"]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--zv-dark); cursor: grab; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.zv-range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--zv-dark); cursor: grab; }
.zv-range input[type="range"]::-moz-range-track { background: none; }
.zv-range__inputs { display: flex; align-items: center; gap: 8px; margin-top: 22px; }
.zv-range__inputs label { position: relative; flex: 1; }
.zv-range__inputs label span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--zv-muted); font-size: 13px; }
.zv .zv-range__inputs input { min-height: 40px; padding: 6px 8px 6px 24px; font-size: 14px; }
.zv-range__sep { color: var(--zv-muted); }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 1023px) {
	.zv-shop__layout { grid-template-columns: 1fr; gap: 0; padding-top: 8px; }
	.zv-toolbar { position: sticky; top: var(--zv-header-h); z-index: 20; background: #fff; margin: 0 calc(var(--zv-gutter) * -1) 16px; padding: 10px var(--zv-gutter); border-top: 1px solid var(--zv-border); }
	.zv-toolbar__count { flex: 1; font-size: 13px; }
	.zv-toolbar__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; background: #fff; border: 1px solid var(--zv-border); border-radius: var(--zv-radius); font-size: 13px; font-weight: 500; }
	.zv-sort__label { display: none; }
	.zv .zv-sort select { max-width: 160px; }

	.zv-filters { position: fixed; inset: 0; top: 0; z-index: 210; visibility: hidden; pointer-events: none; }
	.zv-filters.is-open { visibility: visible; pointer-events: auto; }
	.zv-filters__backdrop { display: block; }
	.zv-filters__panel {
		position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; background: #fff; border-radius: 16px 16px 0 0;
		transform: translateY(100%); transition: transform .45s var(--zv-ease); padding-bottom: env(safe-area-inset-bottom);
	}
	.zv-filters.is-open .zv-filters__panel { transform: none; }
	.zv-filters__head { padding: 16px 12px 14px 20px; }
	.zv-filters__head .zv-linkbtn { display: none; }
	.zv-filters__close { display: inline-flex; }
	.zv-filters__body { padding: 0 20px; flex: 1; }
	.zv-filters__foot { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--zv-border); }
}

@media (max-width: 767px) {
	.zv-shop__hero.has-image .zv-shop__intro { min-height: 220px; padding-bottom: 32px; }
	.zv-subcat { width: 76px; }
	.zv-subcat__media { width: 68px; height: 68px; }
	.zv-subcat__name { font-size: 12px; }
	.zv-toolbar__count { display: none; }
	.zv-toolbar { display: grid; grid-template-columns: 1fr 1fr; }
	.zv-toolbar__btn, .zv-sort { justify-content: center; }
	.zv .zv-sort select { max-width: none; width: 100%; }
	.zv-sort { border: 1px solid var(--zv-border); border-radius: var(--zv-radius); padding-left: 12px; }
	.zv-sort label { flex-shrink: 0; }
	.zv .zv-sort select { border: 0; min-height: 38px; padding-left: 4px; }
	.zv-filters__panel { max-height: 92vh; }
}
