/* ==========================================================================
   SHOP / CATEGORY ARCHIVE
   ========================================================================== */

.shop-page { padding: var(--s8) 0 var(--s16); }
.shop-page__inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s10);
  align-items: start;
}

/* ---- Category header ---- */
.archive-header { margin-bottom: var(--s8); }
.archive-header__title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--s2); }
.archive-header__desc { color: var(--text-light); max-width: 60ch; font-size: var(--text-sm); }

/* ---- Sorting bar ---- */
.shop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s6);
  flex-wrap: wrap;
}
.shop-bar__count { font-size: var(--text-sm); color: var(--text-muted); }
.shop-bar__sort {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text);
  background: var(--white);
  cursor: pointer;
}

/* ---- Sidebar ---- */
.shop-sidebar { position: sticky; top: calc(var(--bar-height) + var(--header-height) + var(--s4)); }
.filter-group { margin-bottom: var(--s6); padding-bottom: var(--s6); border-bottom: 1px solid var(--border-light); }
.filter-group:last-child { border-bottom: none; }
.filter-group__title {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--s4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.filter-group__toggle { color: var(--text-muted); font-size: var(--text-lg); }
.filter-group__body { display: flex; flex-direction: column; gap: var(--s2); }
.filter-check {
  display: flex;
  align-items: center;
  gap: var(--s2);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-light);
}
.filter-check input[type="checkbox"] { accent-color: var(--text); width: 15px; height: 15px; }
.filter-check__count { margin-left: auto; font-size: var(--text-xs); color: var(--text-muted); }
.filter-check:hover { color: var(--text); }

.price-slider { display: flex; flex-direction: column; gap: var(--s3); }
.price-slider__inputs { display: flex; gap: var(--s2); align-items: center; }
.price-slider__input {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-sm);
}
.price-slider__sep { color: var(--text-muted); }
.filter-apply { margin-top: var(--s4); }
.filter-clear { font-size: var(--text-xs); color: var(--text-muted); cursor: pointer; margin-top: var(--s2); display: inline-block; }
.filter-clear:hover { color: var(--text); }

/* Mobile filter toggle */
.mobile-filter-toggle {
  display: none;
  align-items: center;
  gap: var(--s2);
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  background: var(--white);
  cursor: pointer;
}
.shop-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  display: none;
}
.shop-sidebar-overlay.is-open { display: block; }

/* ---- No results ---- */
.no-results {
  text-align: center;
  padding: var(--s16) 0;
  color: var(--text-muted);
}
.no-results svg { width: 56px; height: 56px; margin: 0 auto var(--s4); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .shop-page__inner { grid-template-columns: 1fr; }
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 280px;
    background: var(--white);
    z-index: 220;
    padding: var(--s6);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 250ms ease;
  }
  .shop-sidebar.is-open { transform: translateX(0); }
  .mobile-filter-toggle { display: flex; }
}

/* Mobile bar (filter toggle + count on small screens) */
.shop-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s4);
}
.shop-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s5);
}
@media (max-width: 900px) {
  .shop-mobile-bar { display: flex; }
}