

.kategoriler {
    display: none;
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}
.kategoriler img { width: 24px; height: 24px; }
.kategoriler:hover { background: #f5f5f5; border-radius: 8px; }
.kategoriler:active { transform: scale(0.95); }

@media screen and (max-width: 768px) {
    .kategoriler { display: flex !important; }   
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.overlay.active { 
    opacity: 1;
    visibility: visible;
}

/* Category Drawer */
.category-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    z-index: 99999;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.category-drawer.open { 
    left: 0;
}

/* Drawer Header */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    background: linear-gradient(135deg, #e67817 0%, #f5921c 100%);
    position: relative;
}

.drawer-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg, rgba(230, 120, 23, 0.1) 0%, transparent 100%);
}

.drawer-header h2 { 
    font-size: 20px; 
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: -0.3px;
}

.close-btn { 
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none; 
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Scrollable Content */
.category-drawer .ustkisim {
    display: none !important;
}

.category-list {
    list-style: none;
    padding: 15px 12px;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

/* Category Items */
.category-item {
  margin-bottom: 4px;
  overflow: hidden;
  background: transparent;
  transition: all 0.2s ease;
  border-bottom: 1px solid #e3e3e363;
}

.category-item:last-child {
    margin-bottom: 0;
}

/* Category Link */
.category-link {
    display: block;
    padding: 14px 16px;
    padding-right: 50px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.category-link:hover {
    background: #fff5eb;
    color: #e67817;
    text-decoration: none;
}

.category-item.active > .category-link {
    background: linear-gradient(135deg, #e67817 0%, #f5921c 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(230, 120, 23, 0.3);
}

/* Toggle Button - ANA KATEGORİ */
.category-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    font-size: 0;
    z-index: 2;
    transition: all 0.25s ease;
}

.category-toggle::after {
    content: '›';
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.25s ease;
    display: block;
}

.category-toggle.open::after {
    transform: rotate(90deg);
}

.category-item.active > .category-toggle {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Subcategory List */
.subcategory-list {
    display: none;
    list-style: none;
    padding: 8px 0 8px 12px;
    margin: 0;
    background: transparent;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-item.active > .subcategory-list {
    display: block;
}

/* Subcategory Item */
.subcategory-item {
    margin-bottom: 2px;
    border: none !important;
    position: relative;
}

/* Subcategory Link */
.subcategory-link {
    display: block;
    padding: 12px 14px;
    padding-right: 50px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: #f8f8f8;
    position: relative;
}

.subcategory-link::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ddd;
    border-radius: 50%;
    margin-right: 12px;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.subcategory-link:hover {
    background: #fff5eb;
    color: #e67817;
    text-decoration: none;
    padding-left: 18px;
}

.subcategory-link:hover::before {
    background: #e67817;
}

.subcategory-item.active > .subcategory-link {
    background: #fff5eb;
    color: #e67817;
}

.subcategory-item.active > .subcategory-link::before {
    background: #e67817;
}

/* Toggle Button - ALT KATEGORİ */
.subcategory-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    color: #999;
    cursor: pointer;
    font-size: 0;
    z-index: 2;
    transition: all 0.25s ease;
}

.subcategory-toggle::after {
    content: '›';
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.25s ease;
    display: block;
}

.subcategory-toggle.open::after {
    transform: rotate(90deg);
}

.subcategory-item.active > .subcategory-toggle {
    background: rgba(230, 120, 23, 0.15);
    color: #e67817;
}

/* Sub-subcategory List */
.subsubcategory-list {
    display: none;
    list-style: none;
    padding: 6px 0 6px 20px;
    margin: 0;
    background: transparent;
    animation: slideDown 0.3s ease;
}

.subcategory-item.active > .subsubcategory-list {
    display: block;
}

/* Sub-subcategory Item */
.subsubcategory-item {
    border: none !important;
}

.subsubcategory-link {
    display: block;
    padding: 10px 14px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 2px solid #e0e0e0;
    margin-left: 3px;
}

.subsubcategory-link:hover {
    background: #f5f5f5;
    color: #e67817;
    border-left-color: #e67817;
    text-decoration: none;
    padding-left: 18px;
}

/* Drawer Footer */
.drawer-footer {
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}

.drawer-close-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: #f5f5f5;
    border: none;
    border-radius: 12px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-close-footer:hover {
    background: #eee;
    color: #333;
}

/* Scrollbar Styling */
.category-list::-webkit-scrollbar {
    width: 4px;
}

.category-list::-webkit-scrollbar-track {
    background: transparent;
}

.category-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.category-list::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}
