/* Korai Studio — shop.html only (also /shop/{category}, Best Sellers,
   New Arrivals — all rendered through this one template).
   Shared styles (.wrap, .grid, .card, .page-head, .notice, ...) live in
   base.css, loaded before this file — see base.html's {% block extra_css %}. */

/* /shop, /shop/{category}: filter sidebar + product grid. Stacked
   (filters above grid) until there's room for both side by side — this
   is also what puts the wide side margins from .wrap's max-width to use
   on large screens instead of leaving them empty. */
.shop-layout { display: flex; flex-direction: column; gap: 2rem; padding-bottom: 3rem; }
@media (min-width: 860px) {
  .shop-layout { flex-direction: row; align-items: flex-start; gap: 3rem; }
  .filters { flex: 0 0 220px; position: sticky; top: 6.5rem; }
  .shop-main { flex: 1 1 auto; min-width: 0; }
}

/* Filters panel: a tap-to-open toggle on mobile (collapsed by default),
   plain always-visible sidebar on desktop — the button just disappears
   there and the form is never hidden. */
.filters-toggle {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  font-family: var(--body); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--charcoal); background: var(--cream); border: 1px solid var(--line);
  padding: .8rem 1rem; cursor: pointer;
}
.filters-toggle::after {
  content: "+"; font-size: 1rem; line-height: 1; transition: transform .15s ease;
}
.filters[data-open] .filters-toggle::after { content: "\2212"; }
.filters .filters-form { display: none; padding-top: 1.5rem; }
.filters[data-open] .filters-form { display: flex; }
@media (min-width: 860px) {
  .filters-toggle { display: none; }
  .filters .filters-form { display: flex; padding-top: 0; }
}

.filters form { display: flex; flex-direction: column; gap: 1.5rem; }
.filter-group h3 {
  font-family: var(--body); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: .6rem;
}
.filter-group select {
  width: 100%; font-family: var(--body); font-size: .82rem;
  border: 1px solid var(--line); background: var(--cream); padding: .55rem .6rem;
}
.price-range { display: flex; align-items: center; gap: .5rem; }
.price-range input {
  width: 0; flex: 1 1 auto; font-family: var(--body); font-size: .82rem;
  border: 1px solid var(--line); background: var(--cream); padding: .55rem .6rem;
}
.price-range span { color: var(--ink-soft); }
.filters .btn { width: 100%; }
.clear-filters {
  text-align: center; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft); text-decoration: underline;
}
.clear-filters:hover { color: var(--charcoal); }

/* Closes out a product-list page once the pieces run out — one line,
   different per collection (app/copy.py), so browsing a category feels
   like it ends on a note instead of just stopping. */
.shop-quote {
  margin: 3rem 0 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.shop-quote p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  max-width: 46ch;
  margin: 0 auto .75rem;
  line-height: 1.4;
}
.shop-quote cite {
  display: block;
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
