/* ============================================================
   WHITE AUDITION — Vendor (gallery) page filters, vf- prefix
   Layout chosen per vendor in admin (Vendor.FilterLayout):
   bar     · horizontal filter bar with drop-down panels
   sidebar · left filter column
   tabs    · category tabs + price chips
   Filters are plain links (query: kategori, sanatci, fiyat, fmin, fmax).
   ============================================================ */

.vf-wrap { max-width: var(--cx-max); margin: 0 auto; padding: 0 40px; }
.vf-title { margin: 0; font-family: var(--ah-font-serif); font-weight: 400; font-size: 30px; color: var(--cx-ink); }
.vf-title small { font-family: var(--ah-font-body); font-size: 15px; color: var(--cx-muted); margin-left: 6px; }
.vf-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.vf-grow { flex-grow: 1; }
.vf-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.vf-count { font-size: 14px; color: var(--cx-muted); }
.vf-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--cx-muted); }
.vf-select { height: 44px; border: 1px solid #CFCFCF; background: #FFFFFF; font: inherit; font-size: 14px; padding: 0 10px; color: var(--cx-ink); }
.vf-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cx-muted); }

/* option pill (link) */
.vf-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid #CFCFCF; background: #FFFFFF; color: var(--cx-ink); font-size: 14px; text-decoration: none; white-space: nowrap; }
.vf-pill:hover { border-color: var(--cx-navy); color: var(--cx-navy); }
.vf-pill.is-on { background: var(--cx-navy); border-color: var(--cx-navy); color: #FFFFFF; }
.vf-pill .vf-n { font-size: 12px; color: var(--cx-muted); }
.vf-pill.is-on .vf-n { color: #D8DCE6; }

/* active filter chips */
.vf-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 14px; }
.vf-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; background: var(--cx-well); color: var(--cx-ink); font-size: 13px; text-decoration: none; }
.vf-chip:hover { background: #E9E6DE; color: var(--cx-ink); }
.vf-chip svg { flex: 0 0 auto; }
.vf-clear { font-size: 13px; color: var(--cx-navy); text-decoration: underline; display: inline-flex; align-items: center; min-height: 36px; }

/* custom price form */
.vf-range { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.vf-range label { font-size: 12px; color: var(--cx-muted); display: flex; flex-direction: column; gap: 4px; }
.vf-range input { width: 110px; height: 44px; box-sizing: border-box; border: 1px solid #CFCFCF; font: inherit; font-size: 14px; padding: 0 10px; }
.vf-range button { height: 44px; padding: 0 18px; background: var(--cx-navy); color: #FFFFFF; border: 0; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }

/* product area */
.vf-products { padding: 28px 0 64px; }
.vf-empty { text-align: center; padding: 56px 0; color: var(--cx-muted); }
.vf-empty .cx-btn-outline { margin-top: 16px; }

/* ── A · bar ───────────────────────────────────────── */
.vf--bar { padding-top: 40px; }
.vf-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; border-top: 1px solid var(--cx-ink); border-bottom: 1px solid var(--cx-line); padding: 12px 0; }
.vf-pop { position: relative; }
.vf-pop > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #CFCFCF; background: #FFFFFF; font-size: 14px; font-weight: 500; }
.vf-pop > summary::-webkit-details-marker { display: none; }
.vf-pop > summary.is-on, .vf-pop[open] > summary { border-color: var(--cx-navy); background: var(--cx-well); }
.vf-pop > summary svg { transition: transform .15s ease; }
.vf-pop[open] > summary svg { transform: rotate(180deg); }
.vf-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; min-width: 320px; max-width: min(640px, calc(100vw - 32px)); background: #FFFFFF; border: 1px solid var(--cx-line); box-shadow: 0 12px 32px rgba(26,26,26,.12); padding: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.vf-panel .vf-range { width: 100%; border-top: 1px solid var(--cx-line); padding-top: 14px; margin-top: 4px; }

/* ── B · sidebar ───────────────────────────────────── */
.vf--side { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 40px; }
.vf-side { flex: 1 1 240px; max-width: 280px; display: flex; flex-direction: column; gap: 26px; }
.vf-side-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--cx-ink); padding-bottom: 10px; }
.vf-side-head h2 { margin: 0; font-family: var(--ah-font-serif); font-weight: 400; font-size: 24px; }
.vf-group { display: flex; flex-direction: column; }
.vf-group .vf-label { margin-bottom: 6px; }
.vf-opt { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; color: var(--cx-ink); text-decoration: none; }
.vf-opt:hover { color: var(--cx-navy); }
.vf-box { flex: 0 0 auto; width: 18px; height: 18px; border: 1.5px solid #8A8F96; display: inline-flex; align-items: center; justify-content: center; }
.vf-box--round { border-radius: 50%; }
.vf-opt.is-on .vf-box { background: var(--cx-navy); border-color: var(--cx-navy); }
.vf-opt.is-on .vf-box::after { content: ''; width: 8px; height: 8px; background: #FFFFFF; }
.vf-opt.is-on .vf-box--round::after { border-radius: 50%; }
.vf-opt .vf-name { flex-grow: 1; }
.vf-opt .vf-n { font-size: 13px; color: var(--cx-muted); }
.vf-side .vf-range input { width: 100%; }
.vf-side .vf-range label { flex: 1 1 100px; }
.vf-side .vf-range button { width: 100%; }
.vf-main { flex: 999 1 640px; min-width: 0; }
.vf-main .vf-products { padding-top: 20px; }

/* ── C · tabs ──────────────────────────────────────── */
.vf--tabs { padding-top: 40px; }
.vf-tabs { display: flex; gap: 4px 28px; overflow-x: auto; border-bottom: 1px solid var(--cx-line); margin-top: 16px; scrollbar-width: thin; }
.vf-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 2px; border-bottom: 2px solid transparent; font-size: 15px; color: var(--cx-ink); text-decoration: none; white-space: nowrap; }
.vf-tab:hover { color: var(--cx-navy); }
.vf-tab.is-on { border-bottom-color: var(--cx-navy); color: var(--cx-navy); font-weight: 600; }
.vf-tab .vf-n { font-size: 12px; color: var(--cx-muted); font-weight: 400; }
.vf-tabs-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 0 0; }
.vf--tabs .vf-pill { border-radius: 20px; }

@media (max-width: 720px) {
    .vf-wrap { padding: 0 16px; }
    .vf-side { max-width: none; }
    .vf-panel { position: static; box-shadow: none; margin-top: 8px; min-width: 0; }
    .vf-pop { width: 100%; }
    .vf-pop > summary { width: 100%; justify-content: space-between; box-sizing: border-box; }
}

/* B: the filter column folds on a phone (details closed by the page script below 720px) */
.vf-side-fold > summary { list-style: none; cursor: default; }
.vf-side-fold > summary::-webkit-details-marker { display: none; }
.vf-side-body { display: flex; flex-direction: column; gap: 26px; padding-top: 20px; }
@media (max-width: 720px) {
    .vf-side-fold > summary { cursor: pointer; min-height: 44px; align-items: center; }
    .vf-side-fold > summary h2::after { content: ' +'; color: var(--cx-muted); }
    .vf-side-fold[open] > summary h2::after { content: ' −'; }
}
