/* =====================================================================
   AESTH — listing.css
   Category / shop / sale / search / wishlist / content pages.
   ===================================================================== */

/* ---------- Page header ---------- */
.listing-hero {
  position: relative;
  z-index: 5;                 /* keeps the search dropdown above the products below */
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.listing-hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }  /* clips the watercolour */
.listing-hero__wash {
  position: absolute;
  right: -6%;
  top: -40%;
  width: min(720px, 90%);
  max-width: none;
  opacity: .75;
  pointer-events: none;
}
.listing-hero__inner { position: relative; padding-block: var(--space-6) var(--space-6); }
.listing-hero__title {
  margin-top: var(--space-4);
  font-size: var(--fs-2xl);
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 16ch;
}
.listing-hero__intro { margin-top: var(--space-3); max-width: 52ch; color: var(--ink-soft); font-size: var(--fs-md); }
.listing-hero__chips { margin-top: var(--space-5); }
.listing-hero--slim .listing-hero__title { font-size: var(--fs-xl); }

/* ---------- Layout ---------- */
.listing { display: grid; gap: var(--space-6); padding-block: var(--space-6) var(--space-8); }
@media (min-width: 1080px) {
  .listing { grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-7); }
  .listing--single { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.toolbar__filter { min-height: 42px; padding-inline: 1rem; }
.toolbar__filter .icon { width: 18px; height: 18px; }
.toolbar__filter .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose-700); }
.toolbar__count { color: var(--ink-soft); font-size: var(--fs-sm); }
.toolbar__count strong { color: var(--ink); }
.toolbar__sort { display: flex; align-items: center; gap: .5rem; margin-left: auto; font-size: var(--fs-sm); font-weight: 700; }
.toolbar__sort select {
  height: 42px;
  padding: 0 2.2rem 0 1rem;
  border: 1px solid var(--blush-300);
  border-radius: var(--r-pill);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2023' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right .8rem center / 16px;
  appearance: none;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 520px) {
  .toolbar { flex-wrap: wrap; }
  .toolbar__count { order: 3; width: 100%; }
  .toolbar__sort label { display: none; }
}
@media (min-width: 1080px) { .toolbar__filter { display: none; } }

/* ---------- Filters (sidebar on desktop, drawer on mobile) ---------- */
.filters__head { display: flex; align-items: center; justify-content: space-between; }
.filters__head h2 { font-size: var(--fs-lg); }
.filters__group { border: 0; padding: 0; margin: var(--space-5) 0 0; }
.filters__group legend { font-weight: 800; font-size: var(--fs-sm); margin-bottom: var(--space-3); }
.filters__price { display: flex; align-items: flex-end; gap: var(--space-2); }
.filters__price label { flex: 1; display: grid; gap: .25rem; font-size: var(--fs-xs); color: var(--ink-soft); }
.filters__price input {
  width: 100%;
  height: 42px;
  padding: 0 .8rem;
  border: 1px solid var(--blush-300);
  border-radius: var(--r-sm);
  background: var(--white);
}
.filters__price > span { padding-bottom: .6rem; color: var(--ink-soft); }
.filters__quick { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--space-3); }
.filters__actions { display: grid; gap: var(--space-2); margin-top: var(--space-6); }
.filters__scrim { display: none; }

@media (min-width: 1080px) {
  .filters { position: sticky; top: calc(var(--header-h) + 64px); align-self: start; }
  .filters__close { display: none; }
}
@media (max-width: 1079px) {
  .filters {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 210;
    width: min(360px, 88vw);
    padding: calc(var(--space-4) + env(safe-area-inset-top, 0px)) var(--space-5) var(--space-5);
    overflow-y: auto;
    background: var(--white);
    box-shadow: var(--shadow-panel);
    transform: translateX(-105%);
    transition: transform .35s var(--ease);
  }
  .filters.is-open { transform: none; }
  .filters.is-open + .filters__scrim { display: block; position: fixed; inset: 0; z-index: 205; background: rgba(42, 32, 35, .38); }
}

/* ---------- Load more ---------- */
.listing__more { display: grid; justify-items: center; gap: var(--space-2); margin-top: var(--space-7); }
.listing__progress { font-size: var(--fs-xs); color: var(--ink-soft); }
.listing__more.is-loading .btn { opacity: .6; pointer-events: none; }

/* ---------- Content pages, contact, 404 ---------- */
.page-body { max-width: 760px; padding-block: var(--space-7) var(--space-8); font-size: var(--fs-md); }
.page-body__updated { margin-top: var(--space-6); font-size: var(--fs-xs); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); padding-block: var(--space-7) var(--space-4); }
.contact-card {
  display: grid;
  gap: .3rem;
  padding: var(--space-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color .2s, background-color .2s;
}
.contact-card:hover { border-color: var(--blush-400); background: var(--paper); }
.contact-card .icon { width: 30px; height: 30px; color: var(--rose-700); margin-bottom: var(--space-2); }
.contact-card--wa .icon { color: #1F8F55; }
.contact-card strong { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-lg); }
.contact-card span { color: var(--ink-soft); font-size: var(--fs-sm); word-break: break-word; }
.contact-address { padding-bottom: var(--space-8); color: var(--ink-soft); }

.empty--page { min-height: 60vh; align-content: center; }
.empty__search { display: flex; gap: var(--space-2); width: min(480px, 100%); margin-top: var(--space-3); }
.empty__search input { flex: 1; height: 50px; padding: 0 1.2rem; border: 1px solid var(--blush-300); border-radius: var(--r-pill); }
.empty__chips { justify-content: center; margin-top: var(--space-3); }
