/* ==========================================================
   Ürün listeleme sayfaları (shop.php, category.php, arama)
   theme.css üzerine yüklenir.
   ========================================================== */

/* ---------- Başlık alanı ---------- */
.lst-hero { padding: 30px 0 28px; }
.lst-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 8px; }
.lst-hero-text { min-width: 0; }
.lst-hero .lst-eyebrow {
    display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--brand); margin: 6px 0 0;
}
.lst-hero h1 { margin: 2px 0 8px; word-break: break-word; }
.lst-hero p strong { color: var(--ink); }
.lst-hero-count {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
    padding: 6px 14px; border-radius: 999px; background: var(--rose-soft);
    color: var(--brand); font-size: 13px; font-weight: 500;
}
.lst-hero-img {
    flex-shrink: 0; width: 200px; height: 200px; border-radius: 50%; overflow: hidden;
    background: var(--rose-soft); border: 6px solid #fff; box-shadow: var(--shadow-md);
}
.lst-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lst-hero.has-img { background: linear-gradient(120deg, #fff 0%, var(--cream) 55%, var(--lav-soft) 100%); }

/* Arama kutusu (hero) */
.lst-hero-search {
    position: relative; display: flex; align-items: center; gap: 6px;
    width: 100%; max-width: 440px; flex-shrink: 0;
    background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 5px;
    box-shadow: var(--shadow-sm);
}
.lst-hero-search > i { position: absolute; left: 20px; color: var(--text-muted); font-size: 14px; }
.lst-hero-search input {
    flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
    padding: 9px 10px 9px 42px; font-size: 14.5px; color: var(--text);
}
.lst-hero-search .btn { padding: 9px 24px; }
.lst-hero-search:focus-within { border-color: var(--brand-light); box-shadow: 0 0 0 4px rgba(184,51,106,.08); }

/* ---------- Bölüm ---------- */
.lst-section { padding: 34px 0 20px; }

/* ---------- Yan panel / filtreler ---------- */
.lst-filters .offcanvas-body { display: block; }
.lst-side-block { padding: 22px; margin-bottom: 18px; }
.lst-side-title {
    font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px;
}
.lst-cat-list { list-style: none; margin: 0; padding: 0; }
.lst-cat-list li + li { margin-top: 2px; }
.lst-cat-list a {
    display: flex; align-items: center; gap: 12px;
    padding: 7px 8px; border-radius: 12px; color: var(--text); font-size: 14px;
    transition: background .2s, color .2s;
}
.lst-cat-list a:hover { background: var(--cream); color: var(--brand); }
.lst-cat-list a.active { background: var(--rose-soft); color: var(--brand); font-weight: 500; }
.lst-cat-thumb, .lst-cat-ico {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
    object-fit: cover; background: var(--rose-soft);
}
.lst-cat-ico { display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 14px; }
.lst-cat-name { flex: 1; min-width: 0; line-height: 1.3; }
.lst-count {
    min-width: 28px; padding: 2px 8px; border-radius: 999px; text-align: center;
    background: var(--cream); color: var(--text-muted); font-size: 12px; font-weight: 500;
}
.lst-cat-list a.active .lst-count { background: #fff; color: var(--brand); }

.lst-side-search { position: relative; }
.lst-side-search .form-control { border-radius: 999px; padding-right: 48px; background: var(--cream); }
.lst-side-search .form-control:focus { background: #fff; }
.lst-side-search button {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%; border: 0;
    background: var(--brand); color: #fff; font-size: 13px;
}
.lst-side-search button:hover { background: var(--brand-dark); }

.lst-side-note {
    display: flex; align-items: center; gap: 12px; padding: 16px 18px;
    border-radius: var(--radius); background: var(--lav-soft); color: var(--text); font-size: 13px; line-height: 1.45;
}
.lst-side-note i { font-size: 20px; color: var(--lavender); flex-shrink: 0; }
.lst-side-note strong { color: var(--ink); }

/* ---------- Araç çubuğu ---------- */
.lst-toolbar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 12px 14px 12px 20px; margin-bottom: 18px;
}
.lst-result { flex: 1; min-width: 0; font-size: 14px; color: var(--text-muted); }
.lst-result strong { color: var(--ink); }
.lst-sort { display: flex; align-items: center; gap: 10px; margin: 0; }
.lst-sort label { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.lst-sort .form-select { min-width: 170px; border-radius: 999px; padding: 8px 36px 8px 16px; font-size: 13.5px; background-color: var(--cream); }
.lst-filter-btn {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--ink); background: var(--ink); color: #fff;
    border-radius: 999px; padding: 8px 18px; font-size: 13.5px; font-weight: 500;
}
.lst-filter-btn:hover, .lst-filter-btn:focus { background: #1c1940; color: #fff; border-color: #1c1940; }

/* Etkin filtre etiketleri */
.lst-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }
.lst-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 8px 6px 14px; border-radius: 999px;
    background: var(--rose-soft); color: var(--brand); font-size: 13px; font-weight: 500;
}
.lst-chip a {
    width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--brand); font-size: 11px;
}
.lst-chip a:hover { background: var(--brand); color: #fff; }

/* ---------- Ürün ızgarası ---------- */
.lst-grid .product-card { height: 100%; }

/* ---------- Boş durum ---------- */
.lst-empty { text-align: center; padding: 56px 28px; }
.lst-empty-ico {
    width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(150deg, var(--rose-soft), var(--lav-soft)); color: var(--brand); font-size: 30px;
}
.lst-empty h2 { font-size: 24px; margin-bottom: 8px; word-break: break-word; }
.lst-empty p { color: var(--text-muted); max-width: 460px; margin: 0 auto 20px; }
.lst-empty-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.lst-empty-cats a {
    padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--cream); color: var(--ink); font-size: 13.5px;
}
.lst-empty-cats a:hover { border-color: var(--brand); color: var(--brand); background: #fff; }

/* ---------- Sayfalama ---------- */
.lst-pagination { margin-top: 36px; }
.lst-pagination .pagination { justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0; }
.lst-pagination .page-link {
    min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px !important;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); background: #fff; color: var(--ink); font-size: 14px; font-weight: 500;
    margin: 0;
}
.lst-pagination .page-link:hover { background: var(--rose-soft); border-color: var(--rose-soft); color: var(--brand); }
.lst-pagination .page-link:focus { box-shadow: 0 0 0 4px rgba(184,51,106,.12); }
.lst-pagination .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.lst-pagination .page-item.disabled .page-link { background: transparent; color: var(--text-muted); opacity: .55; }
.lst-pagination .page-link.lst-dots { border-color: transparent; background: transparent; opacity: 1; }
.lst-pagination .page-link i { font-size: 12px; }

/* ---------- Kategori ağacı (yan panel) ---------- */
.lst-cat-list li.lst-d1 a, .lst-cat-list li.lst-d2 a, .lst-cat-list li.lst-d3 a { font-size: 13.5px; padding-top: 5px; padding-bottom: 5px; gap: 8px; }
.lst-cat-list li.lst-d1 a { padding-left: 26px; }
.lst-cat-list li.lst-d2 a { padding-left: 44px; font-size: 13px; }
.lst-cat-list li.lst-d3 a { padding-left: 60px; font-size: 12.5px; }
.lst-cat-branch { width: 8px; height: 8px; flex-shrink: 0; border-left: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border); border-bottom-left-radius: 3px; margin-top: -6px; }
.lst-cat-list a:hover .lst-cat-branch, .lst-cat-list a.active .lst-cat-branch { border-color: var(--brand-light); }
.lst-cat-list a.in-chain { color: var(--brand); font-weight: 500; }
.lst-cat-list li.lst-d1 .lst-count, .lst-cat-list li.lst-d2 .lst-count, .lst-cat-list li.lst-d3 .lst-count { min-width: 24px; padding: 1px 7px; font-size: 11px; }

/* ---------- Alt kategori çipleri (kategori sayfası) ---------- */
.lst-parent-link { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.lst-parent-link i { font-size: 10px; transition: transform .2s; }
.lst-parent-link:hover i { transform: translateX(-3px); }
.lst-subcats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.lst-subcat {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px;
    border-radius: 999px; background: #fff; border: 1px solid var(--border);
    color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1.2;
    transition: border-color .2s, box-shadow .2s, transform .2s, background .2s, color .2s;
}
.lst-subcat:hover { border-color: var(--brand-light); color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.lst-subcat.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.lst-subcat-img { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--cream); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 13px; }
.lst-subcat-img img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.lst-subcat.active .lst-subcat-img { background: rgba(255,255,255,.92); }
.lst-subcat-n { min-width: 24px; padding: 2px 8px; border-radius: 999px; background: var(--cream); color: var(--text-muted); font-size: 11.5px; font-weight: 600; text-align: center; }
.lst-subcat.active .lst-subcat-n { background: rgba(255,255,255,.22); color: #fff; }
html[data-theme="dark"] .lst-subcat { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
html[data-theme="dark"] .lst-subcat:hover { color: var(--brand); }
html[data-theme="dark"] .lst-subcat.active { background: var(--brand-fill); border-color: var(--brand-fill); color: #fff; }
html[data-theme="dark"] .lst-subcat-img { background: var(--studio); }
html[data-theme="dark"] .lst-subcat-n { background: var(--surface-2); }
html[data-theme="dark"] .lst-cat-branch { border-color: var(--line-2); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 991.98px) {
    .lst-subcats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 14px; padding: 2px 12px 4px; }
    .lst-subcats::-webkit-scrollbar { display: none; }
    .lst-subcat { flex-shrink: 0; }
    .lst-hero { padding: 22px 0 22px; }
    .lst-hero-row { flex-direction: column; align-items: flex-start; gap: 18px; }
    .lst-hero.has-img .lst-hero-row { flex-direction: row-reverse; align-items: center; justify-content: flex-end; }
    .lst-hero-img { width: 96px; height: 96px; border-width: 4px; }
    .lst-hero-search { max-width: none; }
    .lst-section { padding: 20px 0 10px; }

    /* Mobil filtre paneli (offcanvas) */
    .lst-filters.offcanvas-lg { width: 320px; max-width: 88vw; background: #fff; }
    .lst-filters .offcanvas-header { border-bottom: 1px solid var(--border); }
    .lst-filters .offcanvas-title { font-family: 'Playfair Display', serif; color: var(--ink); }
    .lst-filters .lst-side-block { border: 0; border-radius: 0; padding: 4px 0 18px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }

    .lst-toolbar { padding: 10px 12px; gap: 10px; }
    .lst-result { order: 3; flex-basis: 100%; font-size: 13px; padding-left: 4px; }
    .lst-sort { margin-left: auto; }
    .lst-sort .form-select { min-width: 0; width: auto; max-width: 180px; }
}
@media (max-width: 575.98px) {
    .lst-hero.has-img .lst-hero-row { flex-direction: column-reverse; align-items: flex-start; }
    .lst-hero-img { display: none; }
    .lst-hero-search .btn { padding: 9px 18px; }
    .lst-empty { padding: 40px 18px; }
    .lst-empty h2 { font-size: 20px; }
    .lst-pagination .page-link { min-width: 38px; height: 38px; font-size: 13px; }
}
