/* Çarşı — ürün listeleri (kategori, arama, marka, kampanyalar, çok satanlar, tüm kategoriler).
   Temel: shop.css (sx-hero, sx-side, sx-bar, sx-grid, sx-insert, sx-pager). Burada yalnız perakendeye
   özgü parçalar: süzgeç formu, etkin süzgeç çipleri, kategori makalesi, kampanya çipleri, sonsuz kaydırma,
   arama boş durumu ve kategori kartları. Renkler site.css değişkenlerinden. */

/* ── Başlık ── */
.sx-desc { margin: 10px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--slate); max-width: 46em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
.sx-hero h1 { overflow-wrap: anywhere }
.sx-hero h1 q { quotes: '“' '”' }
.sx-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 22px }
.sx-tag { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 8px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums }
.sx-tag i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); font-size: 14px }
.sx-tag.hot { background: var(--tape); border-color: var(--tape) }
.sx-tag.hot i { background: rgba(255, 255, 255, .55) }
a.sx-tag:hover { border-color: var(--ink) }
.sx-tag .deal-cd-text { font-weight: 850 }
.sx-brand-logo { display: inline-flex; align-items: center; height: 56px; padding: 8px 14px; margin-bottom: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line) }
.sx-brand-logo img { max-height: 40px; width: auto; max-width: 180px; object-fit: contain }

/* ── Yan kutu ── */
.sx-side > summary .sx-side-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tape); color: var(--ink); font-size: 12px; font-weight: 800; display: inline-grid; place-items: center }
.sx-tree a > i { font-size: 14px; color: var(--muted); margin-left: auto }
.sx-tree a.on > i { color: var(--cobalt-d) }
.sx-filter { display: grid; gap: 26px }
.sx-filter fieldset { border: 0; margin: 0; padding: 0; min-width: 0 }
.sx-filter legend { float: none; width: auto; margin: 0; padding: 0; font-size: inherit }
.sx-filter legend h2 { margin-bottom: 10px }

/* Marka satırları: sx-brands bağlantısıyla aynı ölçü, solda onay kutusu */
.sx-checks label {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  color: var(--ink); font-size: 15px; font-weight: 600; transition: background .15s, color .15s
}
.sx-checks label:hover { background: var(--tint) }
.sx-checks label.on, .sx-checks label:has(input:checked) { background: var(--tint); color: var(--cobalt-d); box-shadow: inset 3px 0 0 var(--cobalt) }
.sx-checks .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.sx-checks small { margin-left: auto }
.sx-checks input, .sx-opt input, .sx-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none }
.sx-checks .bx { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #a1a1aa; background: #fff; display: grid; place-items: center; transition: background .15s, border-color .15s }
.sx-checks input:checked + .bx { background: var(--ink); border-color: var(--ink) }
.sx-checks input:checked + .bx::after { content: '\F633'; font-family: "bootstrap-icons"; font-size: 13px; color: #fff; line-height: 1 }
.sx-checks input:focus-visible + .bx, .sx-switch input:focus-visible + .tg { outline: 3px solid var(--cobalt); outline-offset: 2px }
.sx-opt:has(input:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 2px }

/* Varyant seçenekleri: çip */
.sx-opts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; max-height: 232px; overflow-y: auto; scrollbar-width: thin }
.sx-opt {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); font-size: 14px; font-weight: 650; color: var(--ink); transition: border-color .15s, background .15s, color .15s
}
.sx-opt small { font-size: 12px; font-weight: 700; color: var(--muted) }
.sx-opt:hover { border-color: var(--ink) }
.sx-opt.on, .sx-opt:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff }
.sx-opt.on small, .sx-opt:has(input:checked) small { color: rgba(255, 255, 255, .65) }

/* Fiyat aralığı ve stok anahtarı */
.sx-price { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 8px; padding: 0 4px }
.sx-price label { display: grid; gap: 4px; min-width: 0 }
.sx-price label span { font-size: 12.5px; font-weight: 650; color: var(--muted) }
.sx-filter .sx-price input {
  width: 100%; height: 42px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); background: #fff;
  -moz-appearance: textfield; appearance: textfield
}
.sx-price input::-webkit-outer-spin-button, .sx-price input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0 }
.sx-price input:hover { border-color: var(--ink) }
.sx-price input:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 1px; border-color: var(--ink) }
.sx-price-sep { height: 42px; display: grid; place-items: center; color: var(--muted); font-weight: 700 }
.sx-switch { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 10px; padding: 0 4px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink) }
.sx-switch .tg { flex: none; position: relative; width: 40px; height: 24px; border-radius: 999px; background: #d4d4d8; transition: background .2s }
.sx-switch .tg::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s }
.sx-switch input:checked + .tg { background: var(--ink) }
.sx-switch input:checked + .tg::after { transform: translateX(16px) }
.sx-filter-act { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 0 4px }
.sx-filter-act .s-btn { flex: 1; height: 44px }
.sx-clear { font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap }
.sx-clear:hover { color: var(--cobalt-d) }
.sx-promo .s-btn i { margin-right: 2px }

/* ── Sonuç çubuğu: etkin süzgeç çipleri ── */
.sx-pills a.sx-pill.sx-pill-x { background: var(--ink); color: #fff }
.sx-pill-x i { font-size: 11px; opacity: .7 }
.sx-pills a.sx-pill.sx-pill-x:hover { background: #3f3f46; color: #fff }
.sx-pill-x:hover i { opacity: 1 }
.sx-lock i { font-size: 13px }
.sx-sort select { width: auto; max-width: 100% }

/* ── Izgara arası kart: kenarlara taşan ızgara hücresi ── */
.sx-grid > .sx-insert { min-height: 100% }
@media (max-width: 767.98px) { .sx-insert { padding: 24px 22px 40px } }

/* ── Kategori makalesi ── */
.sx-article { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); max-width: 820px; color: var(--slate); font-size: 16px; line-height: 1.75 }
.sx-article h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 850; letter-spacing: -.03em; color: var(--ink); margin: 32px 0 12px }
.sx-article h2:first-child { margin-top: 0 }
.sx-article h3 { font-size: 19px; font-weight: 800; color: var(--ink); margin: 24px 0 8px }
.sx-article p { margin: 0 0 14px }
.sx-article ul, .sx-article ol { padding-left: 1.4em; margin: 0 0 14px }
.sx-article li { margin-bottom: 6px }
.sx-article strong { color: var(--ink) }
.sx-article a { color: var(--cobalt-d); text-decoration: underline; text-underline-offset: 3px }
.sx-article img { max-width: 100%; height: auto; border-radius: 14px; margin: 12px 0 }

/* ── Arama: bildirim ve boş durum ── */
.sx-main .ss-notice { border-color: var(--line); border-radius: 16px; color: var(--slate) }
.sx-main .ss-notice > i { background: var(--tint); color: var(--ink) }
.ss-dym-link { color: var(--ink) !important }
.sx-empty .ss-dym { margin: 0 0 6px; background: var(--tint) }
.sx-empty-tips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 6px }
.sx-related { margin-top: 56px }
.sx-related .ss-popular-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 0 0 20px; padding: 0 }
.sx-related .ss-popular-head h2 { margin: 0; font-size: clamp(24px, 2.4vw, 34px); font-weight: 850; letter-spacing: -.04em; color: var(--ink) }
.sx-related .ss-popular-head span { color: var(--muted); font-size: 15px }

/* ── Sayfalama: boşluk işareti ── */
.sx-pager .a-pager span.gap { border: 0; background: transparent; min-width: 20px; padding: 0; color: var(--muted) }
.sx-pager .a-pager a[rel] i { font-size: 14px }

/* ── Sonsuz kaydırma ── */
.inf-on [data-inf-pager] { display: none }
.sx-inf { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 0 4px; min-height: 8px }
.sx-inf[hidden] { display: none }
.sx-inf .s-btn { display: none }
.sx-inf.is-error .s-btn { display: inline-flex }
.sx-inf-spin { display: none; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: sxSpin .7s linear infinite }
.sx-inf.is-loading .sx-inf-spin { display: block }
.sx-inf-end { display: none; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; color: var(--muted) }
.sx-inf-end::before, .sx-inf-end::after { content: ''; width: 28px; height: 1px; background: var(--line) }
.sx-inf.is-done .sx-inf-end { display: flex }
@keyframes sxSpin { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) { .sx-inf-spin { animation-duration: 1.8s } }

/* ── Tüm kategoriler (/kategoriler): lp-cats kartları + alt kategori bağlantıları ── */
.sx-allcats { padding: 40px 0 112px }
.sx-allcats .lp-cats-in { margin-bottom: 0 }
.sx-allcats .lp-cats-in > li { display: grid; grid-template-rows: auto 1fr; gap: 10px }
.sx-subs { list-style: none; margin: 0; padding: 0 4px; display: flex; flex-wrap: wrap; gap: 6px; align-content: start }
.sx-allcats .lp-cats-in .sx-subs a {
  position: static; display: inline-flex; flex-direction: row; align-items: center; gap: 6px; height: 34px; min-height: 0; padding: 0 12px; overflow: visible; isolation: auto;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 650; color: var(--ink); text-decoration: none; transform: none; box-shadow: none; transition: border-color .15s
}
.sx-allcats .lp-cats-in .sx-subs a::before { content: none }
.sx-allcats .lp-cats-in .sx-subs a small { font-size: 12px; font-weight: 700; color: var(--muted) }
.sx-allcats .lp-cats-in .sx-subs a:hover { border-color: var(--ink); transform: none; box-shadow: none }
.sx-allcats .lp-chip i, .sx-hero .lp-chip i { font-size: 13px }
.sx-allcats .lp-cats .pics img, .sx-allcats .pics img { background: #fff }

/* ── Telefon: süzgeçler FAB ile alttan açılan pencerede ──
   .sx-side masaüstünde sol sütun; 992px altında ekranın altına yerleşen, kaydırılabilir bir pencere olur.
   html.sx-sheet-open açıkken gösterilir (theme.js). Başlık (.sx-sheet-h) ve alt düğmeler (.sx-sheet-f) yalnız burada. */
.sx-sheet-h, .sx-sheet-f, .sx-fab, .sx-sheet-bd { display: none }
.sx-side-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tape); color: var(--ink); font-size: 12px; font-weight: 800; display: inline-grid; place-items: center }
@media (max-width: 991.98px) {
  .sx-side {
    position: fixed; inset: auto 0 0; z-index: 1090; display: flex; flex-direction: column; max-height: min(86dvh, 760px);
    border: 0; border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -24px 60px -20px rgba(15, 27, 61, .45);
    transform: translateY(105%); visibility: hidden; transition: transform .32s var(--s-ease), visibility 0s .32s
  }
  html.sx-sheet-open .sx-side { transform: translateY(var(--sx-drag, 0px)); visibility: visible; transition: transform .32s var(--s-ease), visibility 0s }
  html.sx-sheet-dragging .sx-side { transition: none }
  .sx-side > summary { display: none }
  .sx-sheet-h { display: flex; align-items: center; gap: 10px; position: relative; flex: none; padding: 22px 16px 12px 20px; border-bottom: 1px solid var(--line); touch-action: none }
  .sx-sheet-grip { position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px; border-radius: 999px; background: #d4d4d8 }
  .sx-sheet-h b { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -.02em }
  .sx-sheet-x { display: grid; place-items: center; width: 38px; height: 38px; margin-left: auto; border: 0; border-radius: 50%; background: var(--fog); color: var(--ink); font-size: 15px }
  /* <details> içeriği esnek kutu öğesi olmadığından kaydırma alanının yüksekliği elle verilir (başlık ~72px, alt düğmeler ~75px) */
  .sx-side { overflow: hidden }
  .sx-side-in { max-height: calc(min(86dvh, 760px) - 72px); overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 24px; -webkit-overflow-scrolling: touch }
  .sx-side:has(.sx-sheet-f) .sx-side-in { max-height: calc(min(86dvh, 760px) - 148px - env(safe-area-inset-bottom)) }
  .sx-filter-act { display: none }
  .sx-side .sx-promo { display: none }
  .sx-sheet-f {
    display: flex; gap: 10px; flex: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff
  }
  .sx-sheet-f .s-btn { flex: 1; height: 50px; border-radius: 14px; font-size: 15px; justify-content: center }
  .sx-sheet-f .s-btn.outline { flex: 0 0 auto; padding: 0 18px; color: var(--ink); text-decoration: none }
  .sx-sheet-f .s-btn.primary { flex: 1 1 auto }

  .sx-sheet-bd { display: block; position: fixed; inset: 0; z-index: 1085; background: rgba(15, 23, 42, .45); opacity: 0; transition: opacity .3s }
  .sx-sheet-bd[hidden] { display: none }
  html.sx-sheet-open .sx-sheet-bd { opacity: 1 }
  html.sx-sheet-open, html.sx-sheet-open body { overflow: hidden }

  .sx-fab {
    position: fixed; left: 50%; bottom: calc(var(--m-tabbar-h, 0px) + 14px); z-index: 1030; display: inline-flex; align-items: center; gap: 9px;
    height: 48px; padding: 0 20px 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff;
    font-size: 15px; font-weight: 750; letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
    box-shadow: 0 14px 28px -12px rgba(15, 23, 42, .6), 0 0 0 4px rgba(255, 255, 255, .9);
    transform: translateX(-50%); transition: transform .3s var(--s-ease), opacity .2s
  }
  .sx-fab i { font-size: 17px }
  .sx-fab .sx-side-n { margin-left: 2px }
  .sx-fab.is-hidden, html.sx-sheet-open .sx-fab { opacity: 0; transform: translate(-50%, 90px); pointer-events: none }
  .sx-body { padding-bottom: 72px }
}
@media (prefers-reduced-motion: reduce) { .sx-side, .sx-fab, .sx-sheet-bd { transition: none !important } }
