﻿
body {
    font-family: 'Inter',sans-serif;
    background: #0b0b0b;
    color: #fff;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat',sans-serif;
}

.section-padding {
    padding: 120px 0
}

.text-red {
    color: #c1121f
}

.btn-red {
    background: #c1121f;
    color: #fff;
    padding: 12px 30px;
    border-radius: 0;
    letter-spacing: 1px;
}

    .btn-red:hover {
        background: #9b111e;
        color: #fff
    }

/* NAVBAR */
.navbar {
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(8px);
    padding: 25px 0;
}

.navbar-brand {
    font-weight: 900;
    letter-spacing: 2px
}

.nav-link {
    color: #fff !important;
    margin-left: 20px
}

    .nav-link:hover {
        color: #c1121f !important
    }

/* HERO */
.hero {
    height: 40vh;
    background: url('https://placehold.co/1200x400/fff/c1121f?text=Ürünler+Hero') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.5);
    }

    .hero h1 {
        position: relative;
        z-index: 2;
        font-size: 3rem;
    }

    .hero span.text-red {
        color: #c1121f
    }

/* ÜRÜNLER SAYFASI */
.products-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

/* Sol kategori menüsü */
.category-menu {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 20px;
    background: #0b0b0b;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
    z-index: 999;
}

    .category-menu::-webkit-scrollbar {
        width: 6px;
    }

    .category-menu::-webkit-scrollbar-thumb {
        background-color: #c1121f;
        border-radius: 3px;
    }

    .category-menu h5 {
        color: #c1121f;
        margin-bottom: 15px;
        font-weight: 700;
    }

    .category-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .category-menu li {
        margin-bottom: 10px;
        cursor: pointer;
        padding: 8px 12px;
        border-radius: 6px;
        transition: 0.3s;
    }

        .category-menu li:hover,
        .category-menu li.active {
            background: #c1121f;
            color: #fff;
        }

/* Arama input */
.product-search {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #111;
    color: #fff;
}

    .product-search::placeholder {
        color: #999;
    }

    .product-search:focus {
        outline: none;
        border-color: #c1121f;
        box-shadow: 0 0 10px rgba(193,18,31,0.4);
        background: #0b0b0b;
    }

/* Ürün kartları */
.product-card {
    background: linear-gradient(145deg,#111,#0b0b0b);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

    .product-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 6px;
        margin-bottom: 15px;
    }

    .product-card:hover {
        transform: translateY(-8px);
        border-left: 4px solid #c1121f;
    }

    .product-card h5 {
        margin-bottom: 10px;
        font-weight: 700;
    }

    .product-card p {
        opacity: 0.8;
        font-size: 0.95rem;
    }

/* ---------- FOOTER ---------- */
footer {
    background: #212529;
    color: #fff;
    padding: 50px 0;
}

    footer h5 {
        color: #c1121f;
        margin-bottom: 15px;
    }

    footer a {
        color: #fff;
        text-decoration: none;
    }

        footer a:hover {
            color: #c1121f;
        }
/* MOBILE FILTER TOGGLE */
.mobile-filter-btn {
    display: none;
    background: #c1121f;
    color: #fff;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: 700;
}

    .mobile-filter-btn:hover {
        background: #9b111e;
    }

/* Çarpı butonu */
.close-category {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

/* RESPONSIVE */
@media(max-width:992px) {
    .products-container {
        flex-direction: column;
    }

    .product-card {
        flex: 1 1 100%;
    }

    /* Mobile filter button */
    .mobile-filter-btn {
        display: block;
        position: sticky;
        top: 80px;
        z-index: 2;
    }

    /* Menüyü gizle, açılır olacak */
    .category-menu {
        position: fixed;
        top: 70px; /* nav altı */
        left: -300px;
        width: 250px;
        height: calc(100vh - 70px);
        overflow-y: auto;
        transition: 0.3s;
    }

        .category-menu.show {
            left: 0;
        }
}

