/* Nasr Jewelers — Category. Shared styles: css/site.css */

/* ── Collection ─────────────────────────────────────────────── */
.collection { padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); display: flex; flex-direction: column; gap: 40px; scroll-margin-top: 0; }
.gutter-inset { margin: 0 var(--gutter); }
.collection-intro { font-size: 16px; line-height: 1.6; max-width: 60ch; color: var(--muted); text-wrap: pretty; }

.toolbar-wrap { position: sticky; top: 86px; z-index: 20; padding: 0 clamp(12px, 4vw, 64px); display: flex; flex-direction: column; gap: 10px; }
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border-radius: 32px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid #fff; box-shadow: 0 0 0 .5px rgba(196,154,86,.35), 0 10px 30px rgba(5,59,39,.1);
}
.filter-btn {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 16px; border-radius: 999px; border: 0;
  background: var(--sand); color: var(--green); cursor: pointer; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
}
.filter-btn.is-on { background: var(--green); color: #fff; }
.filter-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #fff;
  font-size: 11px; letter-spacing: 0; display: flex; align-items: center; justify-content: center;
}
.collection-search { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--sand); }
.collection-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; color: var(--ink); }
.collection-search:focus-within { box-shadow: 0 0 0 2px var(--gold); }
.toolbar-end { display: flex; align-items: center; gap: 12px; margin-left: auto; padding: 0 6px 0 8px; }
.count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.toolbar select { height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(5,59,39,.2); background: #fff; color: var(--green); font-size: 13px; cursor: pointer; }

.filter-panel {
  max-height: calc(100vh - 200px); overflow: auto; padding: 28px; border-radius: 32px; background: #fff;
  border: 1px solid rgba(5,59,39,.08); box-shadow: 0 20px 50px rgba(5,59,39,.16); display: flex; flex-direction: column; gap: 24px;
}
.facet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.facet { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.facet legend { padding: 0; margin-bottom: 12px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #6b6b6b; font-weight: 500; }
.facet-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(5,59,39,.18); background: #fff; color: var(--ink); cursor: pointer; font-size: 13px;
}
.opt small { font-size: 11px; color: #8a8a8a; }
.opt.is-zero { color: #9a9a9a; }
.opt[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.opt[aria-pressed="true"] small { color: var(--champagne); }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid rgba(5,59,39,.08); }
.panel-foot .pill { height: 48px; padding: 0 26px; letter-spacing: .12em; }
.clear-link {
  height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--green); cursor: pointer;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px;
}

.active-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px; }
.active-chip {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 14px; border-radius: 999px;
  border: 1px solid rgba(5,59,39,.15); background: #fff; color: var(--green); cursor: pointer; font-size: 13px; box-shadow: 0 4px 12px rgba(5,59,39,.06);
}

.results { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 96px); }
.results .products { padding: 0 var(--gutter); }

/* ── Explore other collections ───────────────────────────────── */
.explore { padding: var(--section-y) var(--gutter); display: flex; flex-direction: column; gap: 40px; }
.ads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.ad { position: relative; display: block; aspect-ratio: 4/5; width: 100%; border-radius: 32px; overflow: hidden; background: var(--forest); color: #fff; }
.ad:hover { color: #fff; }
.ad .slot { transition: transform 1.2s ease; }
.ad:hover .slot { transform: scale(1.03); }
.ad .shade { background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(3,30,20,.8) 100%); }
.ad-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; pointer-events: none; }
.ad-title { font-size: clamp(28px, 3vw, 42px); line-height: 1.05; color: #fff; text-wrap: balance; max-width: 16ch; }
.ad-cta {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px;
  background: #fff; color: var(--green); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; transition: background .2s, color .2s;
}
.ad:hover .ad-cta { background: var(--gold); color: #fff; }

@media (max-width: 640px) {
  .toolbar-wrap { top: 80px; }
  .toolbar-end { margin-left: 0; width: 100%; justify-content: space-between; padding: 0 4px; }
  .filter-panel { padding: 20px; max-height: calc(100vh - 230px); }
}
