/*
 * N8 KATALOG — V3 kit katalog katmanı (Fashion kiti ve onu kullanan tüm temalar): renk/beden seçicisi, filtre paneli
 * ve çipleri, mobil filtre çekmecesi, alt kategori kutuları, iç içe mega menü, "stoğa gelince haber ver", kart renk
 * örnekleri, duyarlı görseller. Kit/skin değişkenlerini (--v3f-*, --v3s-*) kullanır; harici font/CDN yok.
 * Kural: her seçici .v3f-* sınıfı veya [data-v3-theme] ile başlar; global eleman seçici yok.
 */
[data-v3-theme] { --v3c-radius: var(--v3s-panel-radius, var(--v3f-radius, 2px)); --v3c-ok: #1f7a43; --v3c-warn: #9a3412; }

/* ---------- renk / beden seçicisi (ürün sayfası) ---------- */
.v3f-vpick { display: grid; gap: 1rem; margin: 1.1rem 0 1.25rem; }
.v3f-vpick__axis { display: grid; gap: .5rem; }
.v3f-vpick__label { margin: 0; font-size: .82rem; color: var(--v3f-muted); letter-spacing: .02em; }
.v3f-vpick__label strong { color: var(--v3f-ink); font-weight: 600; }
.v3f-swatches, .v3f-sizes { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
[data-v3-theme] .v3f-swatch { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--v3f-line); background: #fff; color: var(--v3f-ink); transition: border-color .15s, box-shadow .15s; }
.v3f-swatch:hover { border-color: var(--v3f-muted); }
.v3f-swatch.is-current { border-color: var(--v3f-ink); box-shadow: 0 0 0 2px #fff inset, 0 0 0 1px var(--v3f-ink); }
.v3f-swatch:focus-visible, .v3f-size:focus-visible { outline: 2px solid var(--v3f-accent); outline-offset: 2px; }
.v3f-swatch__dot { width: 32px; height: 32px; border-radius: 50%; background: var(--v3f-sw, var(--v3f-soft)); }
.v3f-swatch.is-light .v3f-swatch__dot { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.v3f-swatch__dot--text { display: grid; place-items: center; font-size: .8rem; font-weight: 600; background: var(--v3f-soft); }
.v3f-swatch__img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.v3f-swatch.is-oos::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: var(--v3f-muted); transform: rotate(-45deg); }
[data-v3-theme] .v3f-size { display: inline-grid; place-items: center; min-width: 48px; min-height: 44px; padding: 0 .85rem;
  border: 1px solid var(--v3f-line); border-radius: var(--v3c-radius); background: #fff; color: var(--v3f-ink); font-size: .88rem; font-weight: 500; }
.v3f-size:hover { border-color: var(--v3f-ink); }
.v3f-size.is-current { border-color: var(--v3f-ink); background: var(--v3f-ink); color: #fff; }
[data-v3-theme] .v3f-size.is-oos { color: var(--v3f-muted); text-decoration: line-through; background: var(--v3f-soft); border-style: dashed; }
[data-v3-theme] .v3f-size.is-oos.is-current { color: #fff; background: var(--v3f-muted); border-style: solid; }
.v3f-sizes--wide .v3f-size { min-width: 0; }

/* sepet satırı varyant etiketi */
.v3f-line__variant { font-weight: 500; color: var(--v3f-ink); }

/* ---------- filtre grupları ---------- */
.v3f-facet { border: 0; border-top: 1px solid var(--v3f-line); margin: 0; padding: .85rem 0 0; min-width: 0; }
.v3f-facet .v3f-field__label { float: left; width: 100%; padding: 0; margin: 0 0 .5rem; font-weight: 600; }
.v3f-facet__list { clear: both; }
.v3f-facet__n { color: var(--v3f-muted); font-weight: 400; }
.v3f-facet__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.v3f-facet__list.is-long { max-height: 15.5rem; overflow-y: auto; padding-right: .25rem; }
[data-v3-theme] .v3f-facet__opt { display: flex; align-items: center; gap: .55rem; min-height: 36px; color: var(--v3f-ink); font-size: .9rem; border-radius: var(--v3c-radius); }
.v3f-facet__opt:hover .v3f-facet__label { text-decoration: underline; }
.v3f-facet__opt.is-empty { opacity: .45; }
.v3f-facet__opt:focus-visible { outline: 2px solid var(--v3f-accent); outline-offset: 2px; }
.v3f-facet__box { flex: 0 0 18px; width: 18px; height: 18px; border: 1.5px solid var(--v3f-muted); border-radius: 3px; background: #fff; }
.v3f-facet__opt.is-on .v3f-facet__box { border-color: var(--v3f-ink); background: var(--v3f-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E") center/12px no-repeat; }
.v3f-facet__label { flex: 1 1 auto; min-width: 0; }
.v3f-facet__count { color: var(--v3f-muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
/* renk filtresi: örnek + ad */
.v3f-facet--swatch .v3f-facet__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .5rem; }
.v3f-facet__sw { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--v3f-sw, conic-gradient(#e53935, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935)); box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; }
.v3f-facet__sw.is-light { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.v3f-facet__opt.is-on .v3f-facet__sw { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--v3f-ink); }
/* beden filtresi: kutucuk çipler */
.v3f-facet--chips .v3f-facet__list { display: flex; flex-wrap: wrap; gap: .4rem; }
[data-v3-theme] .v3f-facet--chips .v3f-facet__opt { min-width: 46px; justify-content: center; padding: 0 .6rem; border: 1px solid var(--v3f-line); background: #fff; gap: .3rem; }
.v3f-facet--chips .v3f-facet__count { display: none; }
[data-v3-theme] .v3f-facet--chips .v3f-facet__opt.is-on { background: var(--v3f-ink); border-color: var(--v3f-ink); color: #fff; }

/* ---------- aktif filtre çipleri ---------- */
.v3f-activechips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 1rem; }
.v3f-activechips__list { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
[data-v3-theme] .v3f-activechip { display: inline-flex; align-items: center; gap: .25rem; min-height: 34px; padding: 0 .75rem; border-radius: 999px;
  background: var(--v3f-soft); border: 1px solid var(--v3f-line); color: var(--v3f-ink); font-size: .82rem; }
.v3f-activechip:hover { border-color: var(--v3f-ink); }
[data-v3-theme] .v3f-activechips__clear { font-size: .82rem; color: var(--v3f-muted); text-decoration: underline; }

/* ---------- mobil filtre çekmecesi ---------- */
.v3f-filters__drawer-head { display: none; }
@media (max-width: 1023px) {
  .v3f-filters[open] { position: static; }
  .v3f-filters[open]::before { content: ""; position: fixed; inset: 0; background: rgba(17, 17, 17, .45); z-index: 80; }
  .v3f-filters[open] > .v3f-filters__form { position: fixed; top: 0; bottom: 0; left: 0; width: min(88vw, 400px); z-index: 81; background: #fff;
    overflow-y: auto; padding: 0 1rem 5.5rem; box-shadow: 0 0 40px rgba(0, 0, 0, .18); overscroll-behavior: contain; }
  .v3f-filters[open] .v3f-filters__drawer-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1;
    background: #fff; padding: 1rem 0 .75rem; border-bottom: 1px solid var(--v3f-line); }
  .v3f-filters__close { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--v3f-ink); }
  .v3f-filters[open] .v3f-filters__actions { position: fixed; left: 0; bottom: 0; width: min(88vw, 400px); padding: .75rem 1rem; background: #fff;
    border-top: 1px solid var(--v3f-line); z-index: 82; }
  .v3f-filters[open] .v3f-filters__actions > * { flex: 1 1 0; text-align: center; }
  html.v3f-lock, html.v3f-lock body { overflow: hidden; }
}

/* ---------- alt kategoriler ---------- */
.v3f-subcats { margin: 0 0 1.5rem; }
.v3f-subcats__list { list-style: none; display: flex; gap: .9rem; overflow-x: auto; margin: 0; padding: .25rem 0 .5rem; scrollbar-width: thin; }
[data-v3-theme] .v3f-subcats__item { display: grid; justify-items: center; gap: .45rem; width: 108px; color: var(--v3f-ink); text-align: center; font-size: .85rem; }
.v3f-subcats__media { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: var(--v3f-soft);
  border: 1px solid var(--v3f-line); font-size: 1.6rem; color: var(--v3f-muted); transition: border-color .15s; }
.v3f-subcats__media img { width: 100%; height: 100%; object-fit: cover; }
.v3f-subcats__item:hover .v3f-subcats__media { border-color: var(--v3f-ink); }
.v3f-subcats__name { line-height: 1.25; }

/* ---------- ürün kartı renk örnekleri ---------- */
.v3f-card__swatches { display: flex; align-items: center; gap: .3rem; margin: .1rem 0 .3rem; }
.v3f-card__sw { width: 14px; height: 14px; border-radius: 50%; background: var(--v3f-sw, var(--v3f-soft)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.v3f-card__swmore { font-size: .72rem; color: var(--v3f-muted); }

/* ---------- iç içe mega menü (kategori ağacı) ---------- */
.v3f-mega__tree { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.25rem 1.75rem; }
.v3f-mega__col { min-width: 0; }
[data-v3-theme] .v3f-mega__head { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--v3f-ink); padding-bottom: .45rem; border-bottom: 1px solid var(--v3f-line); margin-bottom: .45rem; }
.v3f-mega__head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.v3f-mega__sub, .v3f-mega__subsub { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.v3f-mega__subsub { padding-left: .75rem; margin-bottom: .25rem; }
[data-v3-theme] .v3f-mega__sub a { display: block; padding: .3rem 0; color: var(--v3f-ink); font-size: .9rem; }
[data-v3-theme] .v3f-mega__subsub a { color: var(--v3f-muted); font-size: .84rem; padding: .2rem 0; }
.v3f-mega__sub a:hover { text-decoration: underline; }
.v3f-drawer__group { border-top: 1px solid var(--v3f-line); }
.v3f-drawer__group > summary { cursor: pointer; padding: .8rem 0; font-weight: 600; list-style: none; }
.v3f-drawer__group > summary::after { content: " +"; color: var(--v3f-muted); }
.v3f-drawer__group[open] > summary::after { content: " –"; }
.v3f-drawer__group > a { padding-left: .9rem; }

/* ---------- stoğa gelince haber ver ---------- */
.v3f-stockalert { margin: .75rem 0 1.25rem; padding: 1rem 1.1rem; border: 1px solid var(--v3f-line); border-radius: var(--v3c-radius); background: var(--v3f-soft); }
.v3f-stockalert__title { margin: 0 0 .35rem; font-size: 1rem; }
.v3f-stockalert__lead { margin: 0 0 .7rem; font-size: .9rem; color: var(--v3f-muted); }
.v3f-stockalert__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.v3f-stockalert__row .v3f-input { flex: 1 1 200px; min-width: 0; min-height: 46px; }
.v3f-stockalert__consent { margin: .6rem 0 0; font-size: .74rem; line-height: 1.45; color: var(--v3f-muted); }
.v3f-stockalert__trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- son baktıklarınız (yalnız tarayıcıda) ---------- */
.v3f-recent { margin: 2.5rem 0 1rem; }
.v3f-recent__list { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 180px); gap: 1rem; overflow-x: auto; margin: 0; padding: 0 0 .5rem; }
[data-v3-theme] .v3f-recent__item { display: grid; gap: .35rem; color: var(--v3f-ink); font-size: .85rem; }
.v3f-recent__item img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--v3f-soft); border-radius: var(--v3c-radius); }
.v3f-recent__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v3f-recent__price { font-weight: 700; }

/* ---------- ürün karşılaştırma (Electro) ---------- */
[data-v3-theme] .v3f-card__compare-btn { justify-self: start; min-height: 32px; padding: 0 .65rem; margin: 0 0 .4rem; border: 1px solid var(--v3f-line);
  border-radius: var(--v3c-radius); background: #fff; color: var(--v3f-ink); font-size: .78rem; cursor: pointer; }
.v3f-card__compare-btn[aria-pressed="true"] { border-color: var(--v3f-accent); color: var(--v3f-accent); font-weight: 600; }
.v3f-card__compare-btn[aria-pressed="true"]::before { content: "✓ "; }
.v3f-comparebar { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: .75rem;
  padding: .6rem .75rem .6rem 1rem; background: var(--v3f-ink); color: #fff; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.v3f-comparebar[hidden] { display: none; }
.v3f-comparebar__text { font-size: .85rem; white-space: nowrap; }
.v3f-comparebar__clear { border: 0; background: transparent; color: rgba(255, 255, 255, .75); cursor: pointer; font-size: .8rem; }
@media (min-width: 1024px) { .v3f-comparebar { bottom: 1.5rem; } }
.v3f-compare { padding-top: 1rem; padding-bottom: 3rem; }
.v3f-compare__scroll { overflow-x: auto; border: 1px solid var(--v3f-line); border-radius: var(--v3c-radius); background: #fff; }
.v3f-compare__table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .9rem; }
.v3f-compare__table th, .v3f-compare__table td { padding: .75rem .9rem; border-bottom: 1px solid var(--v3f-line); text-align: left; vertical-align: top; }
.v3f-compare__table tbody th { width: 180px; color: var(--v3f-muted); font-weight: 500; background: var(--v3f-soft); }
.v3f-compare__table tr.is-diff td { background: #fffbea; }
.v3f-compare__prod { display: table-cell; min-width: 200px; }
.v3f-compare__prod > * { display: block; margin-bottom: .45rem; }
.v3f-compare__media img { width: 100%; max-width: 220px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--v3f-soft); }
[data-v3-theme] .v3f-compare__name { color: var(--v3f-ink); font-weight: 600; }
.v3f-compare__price { font-weight: 700; font-size: 1.05rem; }
[data-v3-theme] .v3f-compare__remove { color: var(--v3f-muted); font-size: .8rem; text-decoration: underline; }
