/* bilgev front.css — 2026-07-29: inline <style> bloklarından çıkarıldı (Faz 1.4).
   Kaynak blade'ler yorumlarda. Dinamik (setting'li) bloklar blade'lerde İNLİNE kaldı. */

/* ==== resources/views/layouts/app.blade.php (blok 1) ==== */
/* Site sadece açık tema (sistem dark mode'dan etkilenmesin) */
            :root { color-scheme: light; }
            html, body { background-color: #ffffff; color: #111827; }

            /* Drawer/sidebar iOS Safari viewport fix — 100dvh + en yüksek z-index + inset zorla */
            .viewport-height,
            #cart-sidebar,
            #drawer-navigation-category,
            #drawer-right-navigation {
                position: fixed !important;
                top: 0 !important;
                bottom: 0 !important;
                height: 100vh !important;
                height: 100dvh !important;
                max-height: 100vh !important;
                max-height: 100dvh !important;
                z-index: 9999 !important;
                overscroll-behavior: contain;
                -webkit-overflow-scrolling: touch;
            }

            /* Flowbite drawer/modal overlay (backdrop) — siyah ve daha koyu */
            [drawer-backdrop],
            div[modal-backdrop] {
                background-color: rgba(0, 0, 0, 0.65) !important;
                backdrop-filter: none !important;
            }
            /* iOS Safari bounce-scroll (drawer açıkken arka planın üste çekilip gri bant açılmasını engelle) */
            html, body {
                overscroll-behavior-y: none;
            }
            /* Drawer aktifken body scroll'u kilitle — iOS'ta status bar bölgesinde gri bant açılmaz */
            body.drawer-open {
                position: fixed;
                width: 100%;
                overflow: hidden;
            }

            /* iOS Safari mobilde input focus otomatik zoom fix: font-size >=16px olursa zoom yapmaz */
            @media (max-width: 767px) {
                input[type="text"], input[type="email"], input[type="password"], input[type="search"],
                input[type="tel"], input[type="url"], input[type="number"], input[type="date"],
                input[type="datetime-local"], input[type="time"], input[type="month"], input[type="week"],
                textarea, select {
                    font-size: 16px !important;
                }
            }

/* ==== resources/views/components/sidebar-category.blade.php (blok 1) ==== */
/* Modern Sidebar Kategori Stilleri */
.modern-sidebar-categories {
    font-family: system-ui, -apple-system, sans-serif;
}

/* Smooth scrollbar styling */
.scrollbar-thin {
    scrollbar-width: thin;
}

.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Modern hover effects */
.category-main-container:hover .category-icon-wrapper {
    transform: scale(1.05);
}

.category-main-container:hover .category-badge {
    transform: scale(1.1);
}

/* Accordion animation enhancement */
.category-children {
    transform-origin: top;
}

.category-children.hidden {
    animation: slideUp 0.3s ease-in-out forwards;
}

.category-children:not(.hidden) {
    animation: slideDown 0.3s ease-in-out forwards;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        max-height: 500px;
        opacity: 1;
    }
    to {
        max-height: 0;
        opacity: 0;
    }
}

/* Toggle button active states - DOM durumuna göre */
.sidebar-category-toggle[data-expanded="true"],
.sidebar-category-toggle:has(+ * .category-children:not(.hidden)) {
    background: rgba(var(--color-primary-rgb), 0.1) !important;
    color: var(--color-primary) !important;
}

.sidebar-category-toggle[data-expanded="true"] svg,
.sidebar-category-toggle:has(+ * .category-children:not(.hidden)) svg {
    color: var(--color-primary) !important;
    transform: rotate(180deg);
}

/* Focus states for accessibility */
.category-toggle:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.category-item:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
    border-radius: 4px;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .category-main-container {
        padding: 0.5rem;
    }
    
    .category-icon-wrapper {
        width: 2rem;
        height: 2rem;
    }
    
    .category-sub-container {
        padding-left: 2.5rem !important;
        padding-right: 1rem !important;
    }
}

/* Sidebar kategori her zaman açık tema — kullanıcı sistem dark mode olsa bile sidebar renklerini korur */
#drawer-navigation-category {
    color-scheme: light;
}

/* ==== resources/views/components/search-modal-content.blade.php (blok 1) ==== */
#search-loading-bar {
            position: relative;
            height: 2px;
            background: #f1f5f9;
            overflow: hidden;
            opacity: 0;
            pointer-events: none;
            transition: opacity 180ms ease;
        }
        #search-loading-bar.active {
            opacity: 1;
        }
        /* animation-name'i class ile kontrol — active değilken animasyon durur + baştan başlatma kolaylaşır */
        #search-loading-bar span {
            position: absolute;
            top: 0;
            bottom: 0;
            background: linear-gradient(90deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
            box-shadow: 0 0 6px rgba(99, 102, 241, 0.3);
            border-radius: 2px;
            will-change: left, right;
            animation: none;
        }
        #search-loading-bar.active span:nth-child(1) {
            animation: search-indet-1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
        }
        #search-loading-bar.active span:nth-child(2) {
            animation: search-indet-2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
            animation-delay: 1.15s;
        }
        /* "restart" modifikatör — JS ekler, animasyon yeniden başlar */
        #search-loading-bar.restart span {
            animation: none !important;
        }
        @keyframes search-indet-1 {
            0%   { left: -35%; right: 100%; }
            60%  { left: 100%; right: -90%; }
            100% { left: 100%; right: -90%; }
        }
        @keyframes search-indet-2 {
            0%   { left: -200%; right: 100%; }
            60%  { left: 107%; right: -8%; }
            100% { left: 107%; right: -8%; }
        }

        /* Aranan kelime highlight — soft amber, göz yormaz */
        mark.search-hl {
            background: rgba(251, 191, 36, 0.18);
            color: inherit;
            padding: 0 2px;
            border-radius: 2px;
            font-weight: 600;
        }

/* ==== resources/views/components/footer.blade.php (blok 1) ==== */
.category-tree {
                list-style: none;
                padding: 0;
                margin: 0;
            }
            .category-tree ul {
                list-style: none;
                padding: 0;
                margin: 0;
            }
            /* Responsive font boyutları */
            @media (max-width: 640px) {
                .category-level-0 a { font-size: 0.875rem; }
                .category-level-1 a { font-size: 0.8125rem; }
                .category-level-2 a { font-size: 0.75rem; }
            }

/* ==== resources/views/components/footer.blade.php (blok 2) ==== */
#rating-badge{display: inline-block!important;position: relative!important;margin-top: 15px!important;}

/* ==== resources/views/livewire/cart-sidebar.blade.php (blok 1) ==== */
.cart-item-highlight {
      animation: cartHighlight 4s ease-in-out forwards;
    }
    @keyframes cartHighlight {
      0% { background-color: rgb(220 252 231); box-shadow: 0 0 0 2px rgb(34 197 94 / 0.4); }
      60% { background-color: rgb(220 252 231); box-shadow: 0 0 0 2px rgb(34 197 94 / 0.4); }
      100% { background-color: rgb(249 250 251); box-shadow: none; }
    }

/* ==== resources/views/livewire/cart-sidebar-empty.blade.php (blok 1) ==== */
.cart-item-highlight {
      animation: cartHighlight 4s ease-in-out forwards;
    }
    @keyframes cartHighlight {
      0% { background-color: rgb(220 252 231); box-shadow: 0 0 0 2px rgb(34 197 94 / 0.4); }
      60% { background-color: rgb(220 252 231); box-shadow: 0 0 0 2px rgb(34 197 94 / 0.4); }
      100% { background-color: rgb(249 250 251); box-shadow: none; }
    }

/* ==== resources/views/components/popular-tags.blade.php (blok 1) ==== */
.popular-tags-section {
    font-family: system-ui, -apple-system, sans-serif;
}

/* ==== resources/views/components/language-modal.blade.php (blok 1) ==== */
.skiptranslate{position: relative!important;margin-bottom: 0px!important;line-height: 0!important;height: 0!important;box-shadow: 0px!important;visibility: hidden!important;}

/* ==== resources/views/components/variant-selection-modal.blade.php (blok 1) ==== */
/* Modal variant seçici stilleri — SCOPED: sadece #variant-modal içinde etkili */
#variant-modal .variant-option {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

#variant-modal .variant-option:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
    box-shadow: 0 0 0 1px #3b82f6;
}

#variant-modal .variant-option.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
    box-shadow: 0 0 0 1px #3b82f6;
}

#variant-modal .variant-option.unselected {
    border-color: #d1d5db;
}

#variant-modal .variant-option-out-of-stock {
    opacity: 0.6;
    background-color: #f9fafb;
    cursor: not-allowed;
}

#variant-modal .variant-option-out-of-stock:hover {
    border-color: #d1d5db !important;
    background-color: #f9fafb !important;
    box-shadow: none !important;
}

/* Modal fiyat stilleri - Standart CSS class'larını kullan */

/* Modal içindeki fiyat container'ları için - ürün listesi .product-list .product-price gibi */
#variant-modal .variant-price-container {
    /* Modal için kompakt stil */
    padding: 0 0 0.25rem 0 !important; /* pb-1 */
    font-size: 1rem !important; /* text-base */
    font-weight: 600 !important; /* font-semibold */
    color: #b91c1c !important; /* text-red-700 - ürün listesindeki ana container rengi */
}

/* Modal içindeki standart fiyat class'larını override et - global CSS kullan */
#variant-modal .product-price-main,
#variant-modal .dealer-price-main {
    font-size: 1.125rem !important; /* text-lg - modal için */
    font-weight: 700 !important; /* font-bold */
    color: #dc2626 !important; /* text-red-600 */
    text-decoration: none !important;
}

#variant-modal .original-price {
    font-size: 0.875rem !important; /* text-sm */
    color: #9ca3af !important; /* text-gray-400 - ürün listesindeki gibi */
    text-decoration: line-through !important;
    font-weight: 500 !important; /* font-medium */
    opacity: 0.7 !important;
}

#variant-modal .tax-info {
    font-size: 0.75rem !important; /* text-xs */
    color: #9ca3af !important; /* text-gray-400 */
    font-weight: 500 !important; /* font-medium */
}

#variant-modal .discount-badge {
    font-size: 0.75rem !important; /* text-xs */
    padding: 1px 4px !important;
    line-height: 1.2 !important;
}

/* ==== resources/views/front/product-list.blade.php (blok 1) ==== */
/* ============================================================
   PRODUCT LIST FILTER — Modern, performanslı, tutarlı
   Naming: .pf = product filter, BEM-lite
   ============================================================ */

.pf { font-family: inherit; margin-bottom: 18px; }
.pf *, .pf *::before, .pf *::after { box-sizing: border-box; }
.pf button { font-family: inherit; }

/* ==================== BAR (top, count + actions) ==================== */
.pf-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
}
.pf-bar__start { flex: 1; min-width: 0; }
.pf-bar__end { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* CLS önleme: sıralama dropdown buton genişliği label uzunluğuna göre değişiyor
   ("Varsayılan", "Fiyat: Artan", "Popüler" farklı genişlik). Min-width ile sabitle
   böylece font swap / label değişimi flex container'ı kaymaktan korur. */
.pf-dd--sort > .pf-btn { min-width: 130px; }
.pf-dd--sort > .pf-btn .pf-btn__label { min-width: 60px; text-align: left; }
/* Filter butonu sabit genişlik (kompakt) */
#sf-toggle-btn { min-width: 80px; }
/* Sonuç sayısı: rakam değişimi shift yapmasın */
#plist-count { display: inline-block; min-width: 24px; text-align: right; }

/* Mobil — 640px altı: text label gizleniyor (sadece icon). Bu durumda min-width
   uygulanmasın, butonlar kompakt görünsün. (Aksi halde icon ortada büyük boş alan kalır.) */
@media (max-width: 640px) {
    .pf-dd--sort > .pf-btn { min-width: 0; padding: 9px 10px; }
    .pf-dd--sort > .pf-btn .pf-btn__label { min-width: 0; }
    #sf-toggle-btn { min-width: 0; padding: 9px 10px; }
}

/* Sıralama dropdown menü genişliği — bar genişliğini değil sadece kendi içeriğini takip etsin.
   Aksi halde mobile'da menu pf-bar genişliği kadar açılıyor ve content'i kaplıyor. */
.pf-dd--sort .pf-dd__menu {
    min-width: 200px;
    max-width: 260px;
    width: max-content;
}

/* CLS önleme — DERIN: filter active-count badge başlangıçta hidden (display:none) → JS ile
   populate edilince yer kaplar → flex container reflow → CLS 0.14.
   Çözüm: badge initial'da yer tutsun (visibility:hidden), bar min-height ile yüksekliği sabit.
   NOT: .pf-bar { contain: layout } eskiden vardı — dropdown menü pozisyonunu bozdu, kaldırıldı. */
#plist-active-filter-count {
    display: inline-block;
    min-width: 22px;
    text-align: center;
}
#plist-active-filter-count[hidden] {
    display: inline-block !important;
    visibility: hidden;
}
.pf-bar { min-height: 60px; }

.pf-count {
    display: inline-flex; align-items: baseline; gap: 5px;
    font-size: 13.5px; color: #475569;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pf-count strong { color: #0f172a; font-weight: 700; font-size: 15px; }
.pf-context { color: #64748b; }
.pf-count-suffix { color: #94a3b8; font-size: 12.5px; }

/* Buttons — sort dropdown ve filter butonu aynı boyut */
.pf-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 14px;
    height: 38px;
    font-size: 12.5px; font-weight: 600;
    border-radius: 9px;
    border: 1px solid transparent;
    cursor: pointer; user-select: none;
    transition: background .15s, border-color .15s, color .15s, transform .12s;
    line-height: 1; white-space: nowrap;
}
.pf-btn__icon { width: 15px; height: 15px; flex-shrink: 0; }
.pf-btn__caret { width: 12px; height: 12px; color: inherit; opacity: .7; flex-shrink: 0; transition: transform .18s; }
.pf-btn__label { font-weight: 600; }
.pf-btn__badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: rgba(255,255,255,0.22); color: #fff;
    font-size: 10.5px; font-weight: 800;
    border-radius: 9px;
    line-height: 1;
}
.pf-btn__badge[hidden] { display: none !important; }

.pf-btn--ghost {
    background: #fff;
    border-color: #e5e7eb;
    color: #475569;
}
.pf-btn--ghost:hover { border-color: #cbd5e1; color: #0f172a; }

/* Primary = siyah/koyu, mavi değil */
.pf-btn--primary {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}
.pf-btn--primary:hover { background: #1e293b; border-color: #1e293b; }
.pf-btn--primary:active { transform: translateY(1px); }

/* Apply (drawer footer) — aynı siyah */
.pf-btn--apply {
    flex: 1;
    justify-content: center;
    padding: 0 18px;
    height: 44px;
    font-size: 13.5px;
    background: #0f172a; border: 0; color: #fff;
    border-radius: 10px;
}
.pf-btn--apply:hover { background: #1e293b; }
.pf-btn--apply:active { transform: scale(.98); }
.pf-btn--apply strong { font-weight: 800; }

/* ==================== CHIPS ==================== */
.pf-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pf-chips:empty { margin-top: 0; }
.pf-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 9px 4px 11px;
    font-size: 11.5px; font-weight: 500;
    background: rgba(var(--color-primary-rgb, 228,7,19), 0.08);
    color: var(--color-primary, #e40713);
    border: 1px solid rgba(var(--color-primary-rgb, 228,7,19), 0.25);
    border-radius: 999px;
    cursor: pointer; line-height: 1.4;
    transition: background .12s, border-color .12s;
}
.pf-chip:hover {
    background: rgba(var(--color-primary-rgb, 228,7,19), 0.14);
    border-color: rgba(var(--color-primary-rgb, 228,7,19), 0.4);
}
.pf-chip--green { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.pf-chip--green:hover { background: #d1fae5; }
.pf-chip--orange { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.pf-chip--orange:hover { background: #ffedd5; }
.pf-chip--purple { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.pf-chip--purple:hover { background: #ede9fe; }
.pf-chip--indigo { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.pf-chip--indigo:hover { background: #e0e7ff; }
.pf-chip-x { font-size: 13px; line-height: 1; opacity: .55; margin-left: 2px; }
.pf-chip:hover .pf-chip-x { opacity: 1; }

/* ==================== PANEL (expanded filters) ==================== */
/* Snappy expand animation — max-height minimum gerekli kadar (içerik yüksekliğine yakın) */
.pf-panel {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    margin-top: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition:
        max-height .22s cubic-bezier(.25, .8, .25, 1),
        margin-top .22s cubic-bezier(.25, .8, .25, 1),
        opacity .16s ease,
        overflow 0s linear .22s;
}
.pf-panel[data-open="true"] {
    max-height: 420px;
    margin-top: 8px;
    opacity: 1;
    pointer-events: auto;
    overflow: visible; /* dropdown menüler dışarı taşsın */
    transition:
        max-height .22s cubic-bezier(.25, .8, .25, 1),
        margin-top .22s cubic-bezier(.25, .8, .25, 1),
        opacity .16s ease,
        overflow 0s linear 0s;
}

/* Drawer header & footer — top-bar modda gizli, drawer modda açılır */
.pf-panel__head, .pf-panel__foot { display: none; }
.pf-panel__title {
    margin: 0;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 600; color: #0f172a;
}
.pf-panel__title svg { width: 18px; height: 18px; color: var(--color-primary, #e40713); }
.pf-panel__close {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #f1f5f9; border: 0; border-radius: 10px;
    color: #475569; cursor: pointer;
    transition: background .15s, color .15s, transform .12s;
}
.pf-panel__close svg { width: 18px; height: 18px; }
.pf-panel__close:hover { background: #fee2e2; color: #dc2626; }
.pf-panel__close:active { transform: scale(.92); }

/* Panel body — top-bar modunda grid, drawer modunda flex column */
.pf-panel__body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 16px 18px;
}

/* ==================== SECTION ==================== */
.pf-section { margin: 0; }
.pf-section__title {
    display: flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 700; color: #0f172a;
    margin: 0 0 10px 0;
    text-transform: uppercase; letter-spacing: .04em;
}
.pf-section__title svg { width: 13px; height: 13px; color: #64748b; }

/* ==================== PRICE ==================== */
.pf-price { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.pf-price__sep { color: #cbd5e1; font-weight: 300; font-size: 12px; }

.pf-input {
    display: flex; align-items: center; flex: 1;
    height: 38px;
    border: 1px solid #e5e7eb; border-radius: 8px;
    background: #f9fafb; overflow: hidden;
    transition: border-color .15s, background .15s;
}
.pf-input:focus-within { border-color: var(--color-primary, #e40713); background: #fff; }
.pf-input__prefix { padding: 0 8px; color: #94a3b8; font-weight: 500; font-size: 12.5px; }
.pf-input__field {
    width: 100%; border: 0; background: transparent;
    padding: 8px 10px 8px 0; font-size: 12.5px; color: #0f172a;
    outline: none; font-family: inherit;
}
.pf-input__field::placeholder { color: #cbd5e1; }

.pf-presets { display: flex; flex-wrap: wrap; gap: 4px; }
.pf-preset {
    padding: 4px 9px; font-size: 11px; font-weight: 500;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px;
    color: #64748b; cursor: pointer; line-height: 1.5;
    transition: background .12s, border-color .12s, color .12s;
}
.pf-preset:hover { background: #fff; border-color: #cbd5e1; color: #0f172a; }
.pf-preset.is-active { background: var(--color-primary, #e40713); border-color: var(--color-primary, #e40713); color: #fff; }

/* ==================== DROPDOWN ==================== */
.pf-dd { position: relative; width: 100%; }
.pf-dd--sort { width: auto; }

.pf-dd-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 7px;
    padding: 0 11px;
    height: 38px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #0f172a;
    font-size: 12.5px; font-weight: 500;
    cursor: pointer; line-height: 1;
    transition: border-color .15s, background .15s;
}
.pf-dd-btn:hover { border-color: #cbd5e1; background: #fff; }
.pf-dd-label { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-muted { color: #94a3b8; font-weight: 400; }
.pf-dd.open .pf-dd-btn,
.pf-dd.open .pf-btn--ghost { border-color: #0f172a; background: #fff; color: #0f172a; }
.pf-dd.open .pf-btn__caret,
.pf-dd.open .pf-btn-caret { transform: rotate(180deg); color: #0f172a; }

.pf-dd__menu {
    position: absolute;
    top: calc(100% + 6px); right: 0;
    min-width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    max-height: 0; overflow: hidden; opacity: 0;
    z-index: 40;
    padding: 0;
    box-shadow: 0 10px 24px rgba(15,23,42,.06);
    transition: max-height .2s ease, opacity .15s ease, padding .2s ease;
}
.pf-dd.open .pf-dd__menu {
    max-height: 320px; overflow-y: auto; opacity: 1; padding: 5px;
}
/* Sort dropdown: align right */
.pf-dd--sort .pf-dd__menu { left: auto; right: 0; min-width: 180px; }

.pf-dd__item {
    width: 100%;
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px;
    background: transparent;
    border: 0; border-radius: 6px;
    font-size: 12.5px; font-weight: 500;
    color: #475569;
    cursor: pointer; text-align: left;
    transition: background .12s, color .12s;
    white-space: nowrap;
}
.pf-dd__item:hover { background: #f1f5f9; color: #0f172a; }
.pf-dd__item.is-active { color: #0f172a; font-weight: 600; }
.pf-dd__item.is-active:hover { background: #f1f5f9; }
.pf-dd__item-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-dd__item-count {
    font-size: 10px; font-weight: 700;
    color: #94a3b8; background: #f1f5f9;
    padding: 1px 6px; border-radius: 4px; flex-shrink: 0;
}
.pf-dd__item.is-active .pf-dd__item-count { background: #0f172a; color: #fff; }
.pf-dd__empty {
    padding: 14px; text-align: center;
    font-size: 11.5px; color: #94a3b8; font-style: italic;
}

/* Checkbox & radio (in dropdown items) */
.pf-check {
    width: 16px; height: 16px; flex-shrink: 0;
    background: #fff; border: 1.5px solid #cbd5e1; border-radius: 4px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, border-color .15s;
}
.pf-check svg { width: 10px; height: 10px; color: #fff; opacity: 0; transition: opacity .1s; }
.pf-dd__item.is-active .pf-check { background: #0f172a; border-color: #0f172a; }
.pf-dd__item.is-active .pf-check svg { opacity: 1; }

.pf-radio {
    width: 14px; height: 14px; flex-shrink: 0;
    border: 1.5px solid #cbd5e1; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    transition: border-color .15s;
}
.pf-radio span {
    width: 6px; height: 6px; background: #0f172a; border-radius: 50%;
    transform: scale(0); transition: transform .15s;
}
.pf-dd__item--single.is-active .pf-radio { border-color: #0f172a; }
.pf-dd__item--single.is-active .pf-radio span { transform: scale(1); }

/* ==================== TOGGLES ==================== */
.pf-toggles { display: flex; flex-direction: column; gap: 10px; }
.pf-switch {
    display: inline-flex; align-items: center; gap: 10px;
    cursor: pointer; user-select: none;
}
.pf-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.pf-switch__track {
    position: relative; width: 34px; height: 20px;
    background: #e5e7eb; border-radius: 999px;
    transition: background .2s;
    flex-shrink: 0;
}
.pf-switch__thumb {
    position: absolute; top: 2px; left: 2px;
    width: 16px; height: 16px; background: #fff;
    border-radius: 50%; border: 1px solid #d1d5db;
    transition: transform .2s ease, border-color .2s;
}
.pf-switch input:checked + .pf-switch__track--green { background: #10b981; }
.pf-switch input:checked + .pf-switch__track--orange { background: #f97316; }
.pf-switch input:checked + .pf-switch__track .pf-switch__thumb {
    transform: translateX(14px); border-color: transparent;
}
.pf-switch__label { font-size: 12.5px; color: #475569; }

/* ==================== BACKDROP ==================== */
.pf-backdrop {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.45);
    opacity: 0; pointer-events: none;
    z-index: 9999;
    transition: opacity .25s ease;
}
.pf-backdrop.open { opacity: 1; pointer-events: auto; }

body.plist-drawer-locked { overflow: hidden; }

/* ==================== GRID LOADING ==================== */
#plist-grid.plist-loading { opacity: .5; pointer-events: none; transition: opacity .15s; }

/* ==================== SKELETON CARDS (AJAX yüklenirken) ==================== */
.plist-sk-card {
    display: flex; flex-direction: column;
    list-style: none;
    padding: 0;
}
.plist-sk-img {
    aspect-ratio: 3 / 4;
    background: linear-gradient(90deg, #e5e7eb 0%, #f1f5f9 50%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: plist-sk-shimmer 1.5s linear infinite;
    border-radius: 12px;
    margin-bottom: 10px;
}
.plist-sk-line {
    height: 11px;
    background: linear-gradient(90deg, #e5e7eb 0%, #f1f5f9 50%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: plist-sk-shimmer 1.5s linear infinite;
    border-radius: 6px;
    margin: 4px 0;
}
.plist-sk-line--title { width: 80%; height: 13px; }
.plist-sk-line--sub   { width: 55%; }
.plist-sk-line--price { width: 40%; height: 13px; margin-top: 8px; }
@keyframes plist-sk-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty state — min-height for visual balance */
.plist-empty {
    min-height: 340px;
    padding: 32px 16px;
}
@media (max-width: 767px) {
    .plist-empty { min-height: 260px; padding: 24px 12px; }
}

/* Pagination */
.plist-pager ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 4px; justify-content: center; }
.pager-btn { min-width: 36px; padding: 7px 11px; font-size: 13px; font-weight: 500; background: #fff; border: 1px solid #e5e7eb; border-radius: 7px; color: #475569; cursor: pointer; transition: all .15s; }
.pager-btn:hover { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }
.pager-btn.active { background: var(--color-primary, #e40713); border-color: var(--color-primary, #e40713); color: #fff; }
.pager-sep { padding: 0 4px; color: #94a3b8; align-self: center; }

/* Sentinel loader */
#plist-sentinel[data-loading="true"] { text-align: center; }
#plist-sentinel[data-loading="true"]::before { content: "Yükleniyor..."; display: inline-block; padding: 8px 16px; font-size: 12px; color: #64748b; }

/* ==================== RESPONSIVE BAR ==================== */
@media (max-width: 1024px) {
    .pf-panel__body { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 14px 16px; }
}
@media (max-width: 640px) {
    .pf-bar { padding: 8px 10px; gap: 8px; }
    .pf-bar__end { gap: 6px; } /* Ayrı butonlar, aralarında hafif boşluk */
    .pf-count { font-size: 12.5px; }
    .pf-count strong { font-size: 14px; }
    .pf-btn { padding: 0 12px; font-size: 12px; height: 36px; }
    .pf-btn--primary .pf-btn__label,
    .pf-dd--sort .pf-btn__label { display: none; } /* Sadece icon + caret göster */
    .pf-dd--sort .pf-btn__caret { margin-left: 0; }
}

/* ==== resources/views/livewire/products-list.blade.php (blok 1) ==== */
/* ============ ARAMA FİLTRELERİ — kompakt + shadowless ============ */
            .sf-wrap { font-family: inherit; }

            .sf-header {
                background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
                padding: 8px 12px;
                display: flex; align-items: center; justify-content: space-between;
                gap: 10px; flex-wrap: wrap;
            }
            .sf-count { display: flex; align-items: center; gap: 8px; color: #475569; font-size: 13px; }
            .sf-count strong { color: #0f172a; font-weight: 600; }
            .sf-icon {
                width: 24px; height: 24px; background: #eff6ff; color: #3b82f6;
                border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
                flex-shrink: 0;
            }
            .sf-icon svg { width: 13px; height: 13px; }

            .sf-actions { display: flex; align-items: center; gap: 6px; }
            .sf-clear, .sf-toggle {
                display: inline-flex; align-items: center; gap: 5px;
                padding: 5px 10px; font-size: 12px; font-weight: 500;
                border-radius: 6px; border: 1px solid #e5e7eb;
                background: #fff; color: #475569; cursor: pointer;
                transition: border-color .15s, background .15s, color .15s;
            }
            .sf-clear svg, .sf-toggle svg { width: 13px; height: 13px; }
            .sf-clear:hover { border-color: #fecaca; background: #fef2f2; color: #dc2626; }
            .sf-toggle:hover { border-color: #c7d2fe; background: #eef2ff; color: #4338ca; }
            .sf-count-badge {
                background: #3b82f6; color: #fff; font-size: 10px; font-weight: 700;
                padding: 0 5px; border-radius: 5px; min-width: 16px; height: 15px;
                display: inline-flex; align-items: center; justify-content: center; line-height: 1;
            }

            .sf-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
            .sf-chip {
                display: inline-flex; align-items: center; gap: 3px;
                padding: 3px 8px 3px 10px; font-size: 11px; font-weight: 500;
                background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe;
                border-radius: 999px; cursor: pointer; line-height: 1.5;
                transition: background .15s, border-color .15s;
            }
            .sf-chip:hover { background: #dbeafe; border-color: #93c5fd; }
            .sf-chip-green   { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
            .sf-chip-orange  { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
            .sf-chip-purple  { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
            .sf-chip-indigo  { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
            .sf-chip-x { font-size: 12px; line-height: 1; opacity: .55; margin-left: 2px; }
            .sf-chip:hover .sf-chip-x { opacity: 1; }

            .sf-panel {
                margin-top: 6px;
                background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
                overflow: hidden; max-height: 0; opacity: 0;
                /* overflow .22s delay ile switch olur — animasyon bitince hidden'a dön */
                transition:
                    max-height .22s ease,
                    opacity .18s ease,
                    margin-top .22s ease,
                    padding .22s ease,
                    overflow 0s linear .22s;
            }
            .sf-panel[data-open="true"] {
                max-height: 900px;
                opacity: 1;
                padding: 12px;
                overflow: visible; /* dropdown menüler dışarı taşsın */
                /* Açılırken overflow 0s'de değişir — menüler hemen görünebilir */
                transition:
                    max-height .22s ease,
                    opacity .18s ease,
                    margin-top .22s ease,
                    padding .22s ease,
                    overflow 0s linear 0s;
            }

            .sf-grid {
                display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
            }
            .sf-section-full { grid-column: 1 / -1; }

            .sf-section-title {
                display: flex; align-items: center; gap: 5px;
                font-size: 11px; font-weight: 600; color: #64748b;
                text-transform: uppercase; letter-spacing: 0.03em;
                margin-bottom: 7px;
            }
            .sf-section-title svg { width: 12px; height: 12px; color: #94a3b8; }
            .sf-section-count {
                margin-left: auto;
                background: #eef2ff; color: #4338ca; font-size: 10px;
                padding: 0 6px; border-radius: 5px; min-width: 16px; height: 15px;
                display: inline-flex; align-items: center; justify-content: center; line-height: 1;
                font-weight: 700;
            }

            /* Fiyat input'lar */
            .sf-price-inputs { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
            .sf-input-group {
                display: flex; align-items: center; flex: 1;
                border: 1px solid #e5e7eb; border-radius: 6px;
                background: #f9fafb; overflow: hidden;
                transition: border-color .15s, background .15s;
            }
            .sf-input-group:focus-within { border-color: #3b82f6; background: #fff; }
            .sf-input-prefix { padding: 0 6px; color: #94a3b8; font-weight: 500; font-size: 12px; }
            .sf-input {
                width: 100%; border: 0; background: transparent;
                padding: 5px 7px 5px 0; font-size: 12px; color: #0f172a; outline: none;
            }
            .sf-input::placeholder { color: #cbd5e1; }
            .sf-input-dash { color: #cbd5e1; font-weight: 300; font-size: 11px; }

            .sf-presets { display: flex; flex-wrap: wrap; gap: 3px; }
            .sf-preset {
                padding: 3px 7px; font-size: 10.5px; font-weight: 500;
                background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 5px;
                color: #64748b; cursor: pointer; line-height: 1.5;
                transition: background .15s, border-color .15s, color .15s;
            }
            .sf-preset:hover { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
            .sf-preset.active { background: #3b82f6; border-color: #3b82f6; color: #fff; }

            /* ============ CUSTOM DROPDOWN (kategori + sıralama) ============ */
            .sf-dd {
                position: relative;
                width: 100%;
            }
            .sf-dd-btn {
                width: 100%;
                display: flex; align-items: center; justify-content: space-between; gap: 6px;
                padding: 7px 10px;
                background: #f9fafb;
                border: 1px solid #e5e7eb;
                border-radius: 6px;
                color: #0f172a;
                font-size: 12px; font-weight: 500;
                cursor: pointer;
                line-height: 1.4;
                transition: border-color .15s, background .15s;
            }
            .sf-dd-btn:hover { border-color: #c7d2fe; background: #fff; }
            .sf-dd-btn .text-muted { color: #94a3b8; font-weight: 400; }
            .sf-dd-label {
                flex: 1;
                text-align: left;
                overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
            }
            .sf-dd-caret {
                width: 12px; height: 12px;
                color: #94a3b8; flex-shrink: 0;
                transition: transform .18s;
            }
            .sf-dd.open .sf-dd-btn { border-color: #3b82f6; background: #fff; }
            .sf-dd.open .sf-dd-caret { transform: rotate(180deg); color: #3b82f6; }

            .sf-dd-menu {
                position: absolute;
                top: calc(100% + 4px); left: 0; right: 0;
                background: #fff;
                border: 1px solid #e5e7eb;
                border-radius: 6px;
                max-height: 0;
                overflow: hidden;
                opacity: 0;
                z-index: 40;
                transition: max-height .2s ease, opacity .15s ease;
                padding: 0;
            }
            .sf-dd.open .sf-dd-menu {
                max-height: 260px;
                overflow-y: auto;
                opacity: 1;
                padding: 4px;
            }

            .sf-dd-item {
                width: 100%;
                display: flex; align-items: center; gap: 7px;
                padding: 6px 8px;
                background: transparent;
                border: 0;
                border-radius: 5px;
                font-size: 12px; font-weight: 500;
                color: #475569;
                cursor: pointer;
                text-align: left;
                line-height: 1.5;
                transition: background .12s, color .12s;
            }
            .sf-dd-item:hover { background: #f1f5f9; color: #0f172a; }
            .sf-dd-item.checked { color: #1d4ed8; }
            .sf-dd-item.checked:hover { background: #eff6ff; }

            /* Checkbox (multi) */
            .sf-check {
                width: 16px; height: 16px;
                background: #fff;
                border: 1.5px solid #cbd5e1;
                border-radius: 4px;
                display: inline-flex; align-items: center; justify-content: center;
                flex-shrink: 0;
                transition: background .15s, border-color .15s;
            }
            .sf-check svg {
                width: 10px; height: 10px;
                color: #fff;
                opacity: 0;
                transition: opacity .12s;
            }
            .sf-dd-item.checked .sf-check {
                background: #3b82f6;
                border-color: #3b82f6;
            }
            .sf-dd-item.checked .sf-check svg { opacity: 1; }

            /* Radio (single) */
            .sf-dd-radio {
                width: 14px; height: 14px;
                border: 1.5px solid #cbd5e1;
                border-radius: 50%;
                display: inline-flex; align-items: center; justify-content: center;
                flex-shrink: 0;
                transition: border-color .15s;
            }
            .sf-dd-radio span {
                width: 6px; height: 6px;
                background: #3b82f6;
                border-radius: 50%;
                transform: scale(0);
                transition: transform .15s;
            }
            .sf-dd-item-single.checked .sf-dd-radio { border-color: #3b82f6; }
            .sf-dd-item-single.checked .sf-dd-radio span { transform: scale(1); }

            .sf-dd-item-label {
                flex: 1;
                overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
            }
            .sf-dd-item-count {
                font-size: 10px; font-weight: 600;
                color: #94a3b8;
                background: #f1f5f9;
                padding: 1px 6px;
                border-radius: 4px;
                flex-shrink: 0;
            }
            .sf-dd-item.checked .sf-dd-item-count {
                background: #dbeafe; color: #1d4ed8;
            }
            .sf-dd-empty {
                padding: 10px; text-align: center;
                font-size: 11px; color: #94a3b8; font-style: italic;
            }

            .sf-empty-small { display: block; font-size: 10.5px; color: #94a3b8; margin-top: 4px; font-style: italic; }
            .sf-empty { font-size: 11px; color: #94a3b8; font-style: italic; }

            /* Toggle'lar */
            .sf-toggles { display: flex; flex-direction: column; gap: 6px; }
            .sf-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
            .sf-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
            .sf-switch-track {
                position: relative; width: 32px; height: 18px;
                background: #e5e7eb; border-radius: 999px;
                transition: background .2s;
                flex-shrink: 0;
            }
            .sf-switch-thumb {
                position: absolute; top: 2px; left: 2px;
                width: 14px; height: 14px; background: #fff;
                border-radius: 50%; border: 1px solid #d1d5db;
                transition: transform .2s, border-color .2s;
            }
            .sf-switch input:checked + .sf-switch-track { background: #10b981; }
            .sf-switch input:checked + .sf-switch-orange { background: #f97316; }
            .sf-switch input:checked + .sf-switch-track .sf-switch-thumb {
                transform: translateX(14px); border-color: transparent;
            }
            .sf-switch-label { font-size: 12px; color: #475569; }

            /* ============ RESPONSIVE ============ */
            @media (max-width: 1024px) {
                .sf-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
                .sf-section-full { grid-column: 1 / -1; }
            }
            @media (max-width: 640px) {
                .sf-header {
                    padding: 7px 10px;
                    flex-direction: column; align-items: stretch; gap: 8px;
                }
                .sf-count { font-size: 12px; }
                .sf-actions { flex-wrap: wrap; }
                .sf-clear, .sf-toggle { flex: 1; justify-content: center; padding: 6px 10px; font-size: 11.5px; }

                .sf-chips { gap: 3px; margin-top: 5px; }
                .sf-chip { font-size: 10.5px; padding: 2px 7px 2px 9px; }

                .sf-panel[data-open="true"] { padding: 10px; }
                .sf-grid { grid-template-columns: 1fr; gap: 10px; }

                .sf-section-title { font-size: 10.5px; margin-bottom: 5px; }

                .sf-input { padding: 5px 5px 5px 0; font-size: 11.5px; }
                .sf-input-prefix { padding: 0 5px; font-size: 11.5px; }

                .sf-preset { font-size: 10px; padding: 3px 6px; }

                .sf-select { padding: 6px 26px 6px 9px; font-size: 11.5px; }

                .sf-switch-label { font-size: 11.5px; }
            }
            @media (max-width: 380px) {
                .sf-count span { font-size: 11px; }
                .sf-clear span:not(.sf-count-badge),
                .sf-toggle span:not(.sf-count-badge) { display: none; }
                .sf-clear, .sf-toggle { padding: 6px 8px; flex: 0 1 auto; }
            }

/* ==== resources/views/front/product/index.blade.php (blok 2) ==== */
.product-tabs { width: 100%; }
                            .product-tabs-nav {
                                display: flex;
                                gap: 4px;
                                border-bottom: 2px solid #e5e7eb;
                                margin-bottom: 24px;
                                overflow-x: auto;
                                overflow-y: hidden;
                                -webkit-overflow-scrolling: touch;
                                scrollbar-width: none; /* Firefox */
                            }
                            .product-tabs-nav::-webkit-scrollbar { display: none; } /* Chrome/Safari */
                            .product-tab-btn {
                                display: inline-flex;
                                align-items: center;
                                gap: 8px;
                                padding: 12px 20px;
                                font-size: 15px;
                                font-weight: 600;
                                color: #6b7280;
                                background: transparent;
                                border: 0;
                                border-bottom: 3px solid transparent;
                                margin-bottom: -2px;
                                cursor: pointer;
                                white-space: nowrap;
                                touch-action: manipulation; /* mobilde tap gecikmesini/kaydırma belirsizliğini kaldır */
                                transition: color .15s ease, border-color .15s ease, background .15s ease;
                            }
                            /* hover yalnızca gerçek imleçli (masaüstü) cihazlarda — dokunmatikte ilk tap doğrudan click olur */
                            @media (hover: hover) and (pointer: fine) {
                                .product-tab-btn:hover { color: #017bff; background: #f3f6fa; }
                            }
                            .product-tab-btn.is-active {
                                color: #017bff;
                                border-bottom-color: #017bff;
                            }
                            .product-tab-icon { width: 18px; height: 18px; flex-shrink: 0; }
                            .product-tab-pane { display: none; }
                            .product-tab-pane.is-active { display: block; }
                            .product-tabs,
                            .product-tabs-body,
                            .product-tab-pane { max-width: 100%; overflow-x: hidden; box-sizing: border-box; }
                            .product-tab-pane #product-content {
                                max-width: 100%;
                                overflow-x: hidden;
                                word-wrap: break-word;
                                overflow-wrap: anywhere;
                            }
                            .product-tab-pane #product-content table {
                                width: 100% !important;
                                max-width: 100% !important;
                                table-layout: auto;
                                border-collapse: collapse;
                            }
                            .product-tab-pane #product-content table td,
                            .product-tab-pane #product-content table th {
                                white-space: normal;
                                word-break: break-word;
                                overflow-wrap: anywhere;
                                max-width: 0; /* table-layout flex tetiklenir, td'ler taşmaz */
                            }
                            .product-tab-pane #product-content img,
                            .product-tab-pane #product-content video,
                            .product-tab-pane #product-content iframe {
                                max-width: 100%;
                                height: auto;
                            }
                            @media (max-width: 640px) {
                                .product-tab-btn { padding: 10px 14px; font-size: 14px; }
                            }

/* ==== resources/views/front/product/index.blade.php (blok 3) ==== */
.similar-skeleton-card { display: flex; flex-direction: column; }
            .skeleton-img {
                aspect-ratio: 3 / 4;
                background: linear-gradient(90deg, #e5e7eb 0%, #f1f5f9 50%, #e5e7eb 100%);
                background-size: 200% 100%;
                animation: skeleton-shimmer 1.5s linear infinite;
                border-radius: 12px;
                margin-bottom: 10px;
            }
            .skeleton-line {
                height: 12px;
                background: linear-gradient(90deg, #e5e7eb 0%, #f1f5f9 50%, #e5e7eb 100%);
                background-size: 200% 100%;
                animation: skeleton-shimmer 1.5s linear infinite;
                border-radius: 6px;
            }
            @keyframes skeleton-shimmer {
                0% { background-position: 200% 0; }
                100% { background-position: -200% 0; }
            }

/* ==== tooltip oku (2026-07-29 Faz 2 — flowbite plugin'inden devralındı; tooltip.blade .tooltip-arrow kullanıyor) ==== */
.tooltip-arrow, .tooltip-arrow:before {
    position: absolute; width: 8px; height: 8px; background: inherit;
}
.tooltip-arrow { visibility: hidden; bottom: -4px; }
.tooltip-arrow:before { content: ""; visibility: visible; transform: rotate(45deg); }
.tooltip.invisible > .tooltip-arrow:before { visibility: hidden; }
