@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Jost', sans-serif;
    color: #222;
}

/* --- KAYAN KATEGORİ ŞERİDİ (MARQUEE) --- */
.marquee-wrapper {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 20px 0;
}
.marquee-wrapper::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100px; height: 100%;
    background: linear-gradient(to right, #fff 20%, transparent 100%);
    z-index: 2; pointer-events: none;
}
.marquee-wrapper::after {
    content: ""; position: absolute; top: 0; right: 0; width: 100px; height: 100%;
    background: linear-gradient(to left, #fff 20%, transparent 100%);
    z-index: 2; pointer-events: none;
}
.marquee-track {
    display: flex; width: max-content; gap: 15px;
    animation: scroll 40s linear infinite;
}
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Kategori Butonları - Tasarımın Aynen Korundu */
.category-btn {
    background: #f3f3f3; 
    border: none; 
    padding: 6px 15px 6px 6px;
    border-radius: 50px; 
    display: flex; 
    align-items: center; 
    gap: 10px;
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 500;
    transition: all 0.3s; 
    text-decoration: none; 
    color: #333; 
    white-space: nowrap; /* Metin alt satıra düşmesin */
    user-select: none; /* Sürüklerken metin seçilmesin */
}
.category-btn svg, .category-btn img {
    width: 32px; height: 32px; object-fit: cover; border-radius: 50%;
}
.category-btn:hover {
    background: #fdc402; 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 196, 2, 0.3);
}

/* --- HEADER ÖZEL STILLER --- */
.search-input {
    border: 1px solid #e5e7eb; border-radius: 50px; padding: 10px 20px;
    padding-right: 40px; width: 100%; outline: none; transition: all 0.3s;
    font-size: 14px;
}
.search-input:focus { border-color: #fdc402; }

/* Butonlar için Responsive Genişlik Ayarları */
.search-trigger-btn, .cat-trigger-btn {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 50px;
    padding: 10px 15px; font-weight: 600; font-size: 13px; letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 8px; cursor: pointer; transition: all 0.3s;
    white-space: nowrap;
}

.search-trigger-btn:hover, .cat-trigger-btn.active, .cat-trigger-btn:hover {
    background: #fdc402; border-color: #fdc402; color: #000;
}

/* Dropdown Menu */
.mega-menu {
    position: absolute; top: 100%; left: 0; width: 300px;
    background: white; border: 1px solid #f3f4f6; border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); z-index: 100;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.2s ease-in-out; margin-top: 15px;
}
.mega-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-menu li a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; font-size: 14px; color: #444; border-bottom: 1px solid #f9fafb;
    transition: all 0.2s;
}
.mega-menu li a:hover { background: #fffbe6; color: #000; padding-left: 25px; }
.mega-menu li:last-child a { border-bottom: none; }


.header-hidden-sticky{display:flex}
 @media (max-width: 1024px) {
        .header-hidden-sticky{display:none !important;}
    }
    
    .cat-header {
        position: relative;
        height: 300px;
        background-color: #f5f5f5;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .cat-header-bg {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background-image: url('<?php echo $kategori->banner_url ? BASE_URL.'public/uploads/categories/'.$kategori->banner_url : 'https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?w=1600&h=400&fit=crop'; ?>');
        background-size: cover; background-position: center;
        z-index: 1;
    }
    .cat-header-overlay {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        /* background: rgba(255,255,255,0.85);*/ /* Beyaz Opaklık */
        z-index: 2;
    }
    .cat-content { position: relative; z-index: 3; }
    
    
    /* Navigation Arrows */
    .nav-arrow {
        position: absolute; top: 50%; transform: translateY(-50%);
        width: 40px; height: 40px; background: white; border: 1px solid #eee;
        border-radius: 50%; display: flex; align-items: center; justify-content: center;
        cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.05); z-index: 10;
        transition: all 0.3s;
    }
    .nav-arrow:hover { background: #222; color: #fff; border-color: #222; }
    .nav-arrow.prev { left: -20px; }
    .nav-arrow.next { right: -20px; }
    
    .swiper-button-lock {
    display: none !important;
    }
    
    .view-options {
        display: flex;
        gap: 10px;
    }
    .view-btn {
        width: 36px;
        height: 36px;
        border: 1px solid #ddd;
        background: white;
        border-radius: 5px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
        fill: #000;
    }
    .view-btn.active, .view-btn:hover {
        background: #1a1a1a;
        color: white;
        border-color: #1a1a1a;
        fill: #fff;
    }


    /* Slider Alanı Ayarları */
    .swiper-slide {
        height: auto !important; /* Kartların boyunu eşitle */
        display: flex; /* İçindeki a etiketini tam boy yapmak için */
    }
    
    /* Kart Tasarımı */
    .cat-card {
        width: 100%;
        background: #fff;
        border: 1px solid #f3f4f6;
        border-radius: 12px;
        padding: 20px;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .cat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        /*  border-color: #fdc402;*/  /* Brand Gold */
    }

    /* Okların Tasarımı */
    .slider-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 20;
        color: #374151;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        transition: all 0.2s;
    }
    .slider-arrow:hover {
        background: #222;
        color: #fff;
        border-color: #222;
    }
    .slider-prev { left: -22px; }
    .slider-next { right: -22px; }

    /* Mobilde okları gizle veya içeri al */
    @media (max-width: 768px) {
        .slider-prev { left: 0; }
        .slider-next { right: 0; }
    }
    
    /* Pagination (Noktalar) Rengi */
    .swiper-pagination-bullet-active { background-color: #fdc402 !important; }

        /* Hide default range styling */
        input[type="range"] {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            position: absolute;
            background: transparent;
            pointer-events: none;
            z-index: 2;
        }

        /* Custom track (hidden default) */
        input[type="range"]::-webkit-slider-runnable-track {
            height: 2px;
        }

        /* Custom thumb styling (Centered) */
        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            background: white;
            border: 3px solid #fdc402;
            border-radius: 50%;
            cursor: pointer;
            pointer-events: auto;
            position: relative;
            z-index: 3;
            transform: translateY(-30%);
        }

        input[type="range"]::-moz-range-thumb {
            width: 18px;
            height: 18px;
            background: white;
            border: 3px solid #fdc402;
            border-radius: 50%;
            cursor: pointer;
            pointer-events: auto;
            z-index: 3;
            transform: translateY(-30%);
        }

        /* Centering the range input itself */
        .slider-container {
            position: relative;
            height: 18px; /* Adjust height to fit thumb */
        }
   /* --- MOBİL FİLTRE MODAL GEÇİŞLERİ --- */
    #filterMenu {
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }
    /* Filtre Kapalıyken (Mobil) */
    .filter-hidden-mobile {
        transform: translateY(100%); /* Aşağıda gizli */
        opacity: 0;
        pointer-events: none;
    }
    /* Filtre Açıkken (Mobil) */
    .filter-visible-mobile {
        transform: translateY(0); /* Yerine gelir */
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Masaüstünde her zaman görünür olması için Tailwind 'lg:static' kullanacağız ama 
       CSS ile garantiye almak istersen: */
    @media (min-width: 1024px) {
        #filterMenu {
            transform: none !important;
            opacity: 1 !important;
            pointer-events: auto !important;
        }
    }