/* Sidebar Tasarımı - Açılabilir Alt Başlıklar */

:root {
    --primary-orange: #FF6B35;
    --dark-orange: #E55A2B;
    --primary-green: #4CAF50;
    --dark-green: #388E3C;
    --white: #FFFFFF;
    --bg-gray: #F4F4F4;
    --light-gray: #E8E8E8;
    --border-gray: #CCCCCC;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
}

/* Sidebar Genel */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #FFFFFF;
    padding: 15px;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    border: 1px solid #EAEAEA;
}

/* Sidebar Section */
.sidebar-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #E0E0E0;
}

.sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    padding: 10px 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--primary-orange);
    border-radius: 0;
    display: block;
    width: 100%;
}

/* Sidebar Menu - Özel Linkler */
.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    border-bottom: 1px solid #E8E8E8;
    transition: all 0.2s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: rgba(255, 107, 53, 0.05);
    border-radius: 6px;
    transform: translateX(3px);
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 10px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.menu-link:hover {
    color: var(--primary-orange);
}

.menu-link i {
    color: var(--primary-green);
    font-size: 16px;
    width: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.menu-link:hover i {
    color: var(--primary-orange);
    transform: scale(1.1);
}

/* Kategori Grupları - Açılabilir Yapı */
.category-group {
    border-bottom: 1px solid #E8E8E8;
    transition: all 0.2s ease;
}

.category-group:last-child {
    border-bottom: none;
}

.category-group:hover {
    background: rgba(76, 175, 80, 0.03);
    border-radius: 6px;
}

/* Ana Kategori Başlığı */
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 10px;
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 6px;
}

.category-header:hover {
    background: rgba(76, 175, 80, 0.05);
}

.category-title-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.category-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: color 0.2s ease;
}

.category-title-link:hover .category-title {
    color: var(--primary-green);
}

.category-title-link i {
    color: var(--primary-green);
    font-size: 16px;
    width: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.category-title-link:hover i {
    color: var(--primary-green);
    transform: scale(1.1);
}

.category-count {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    margin-left: 4px;
}

.category-title-link:hover .category-count {
    color: var(--primary-green);
}

.category-toggle {
    color: #999;
    font-size: 11px;
    padding: 6px;
    transition: all 0.3s ease;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0F0F0;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.category-toggle:hover {
    background: var(--primary-green);
    color: white;
}

.category-group.active .category-toggle {
    transform: rotate(90deg);
    background: var(--primary-green);
    color: white;
}

.category-toggle i {
    transition: transform 0.3s ease;
}

/* Alt Kategoriler (Alt Başlıklar) - Açılabilir */
.subcategory-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.category-group.active .subcategory-list {
    max-height: 2000px;
    padding: 8px 0 8px 15px;
}

/* Kategoriler varsayılan olarak kapalı */
.category-group.has-children .subcategory-list {
    max-height: 0;
    padding: 0;
    display: block;
}

.subcategory-item {
    border-bottom: none;
    margin-bottom: 2px;
}

.subcategory-item:last-child {
    border-bottom: none;
}

.subcategory-link {
    display: block;
    padding: 10px 12px 10px 25px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 4px;
}

.subcategory-link::before {
    content: '•';
    position: absolute;
    left: 12px;
    color: var(--primary-green);
    font-size: 16px;
    transition: all 0.2s ease;
}

.subcategory-link:hover {
    color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.08);
    padding-left: 28px;
    transform: translateX(2px);
}

.subcategory-link:hover::before {
    color: var(--primary-orange);
    transform: scale(1.2);
}

.subcategory-name {
    display: block;
}

.subcategory-item-main {
    border-bottom: 1px solid #E0E0E0;
    margin-bottom: 8px;
    padding-bottom: 6px;
}

.subcategory-link-main {
    font-weight: 600;
    color: #444;
    padding-left: 25px;
    font-size: 13px;
}

.subcategory-link-main::before {
    content: '▸';
    font-size: 14px;
}

.subcategory-link-main:hover {
    color: var(--primary-green);
    background: rgba(76, 175, 80, 0.08);
    padding-left: 28px;
}

/* Filter Section */
.filter-section {
    margin-top: 0;
    padding-top: 0;
}

.filter-form {
    margin: 0;
}

.filter-group {
    margin-bottom: 18px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E0E0E0;
    border-radius: 0;
    font-size: 14px;
    color: #333;
    background: #FFFFFF;
    transition: all 0.2s ease;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: block;
    box-sizing: border-box;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.filter-select:hover,
.filter-input:hover {
    border-color: #CCC;
}

.price-inputs {
    display: flex;
    gap: 10px;
}

.price-inputs .filter-input {
    flex: 1;
}

.filter-button {
    width: 100%;
    padding: 12px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-button:hover {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(76, 175, 80, 0.4);
}

.filter-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.filter-button i {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
        width: 100%;
        margin-bottom: 20px;
        padding: 15px;
        position: static;
    }

    .sidebar.mobile-show {
        display: block;
    }

    .sidebar-title {
        font-size: 11px;
        padding: 6px 10px;
    }

    .menu-link,
    .category-title {
        font-size: 13px;
    }

    .subcategory-link {
        font-size: 12px;
    }
}