.category-page {
    padding: 30px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #4a6cf7;
    text-decoration: none;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

.breadcrumb i {
    font-size: 12px;
    color: #999;
}

/* Layout */
.category-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.subcategories-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.category-products.full-width {
    grid-column: 1 / -1;
}

/* Header */
.category-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.category-header h1 {
    margin-bottom: 10px;
    color: #333;
    font-size: 28px;
    font-weight: 700;
}

.category-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.back-to-parent {
    margin-top: 15px;
}

/* Sidebar Cards */
.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.sidebar-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-card h3 i {
    width: 20px;
    text-align: center;
    color: #3b82f6;
}

/* Subcategories */
.subcategories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategories-list li {
    margin-bottom: 8px;
}

.subcategory-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s;
    color: #666;
    border: 1px solid transparent;
    text-decoration: none;
    background: #f8fafc;
}

.subcategory-link:hover,
.subcategory-link.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.subcategory-name {
    font-weight: 500;
    font-size: 14px;
}

.product-count {
    font-size: 12px;
    opacity: 0.8;
}

/* Fiyat Filtresi */
.price-filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
}

.price-inputs input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8fafc;
    box-sizing: border-box;
}

.price-inputs input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.price-inputs input::placeholder {
    color: #94a3b8;
}

.price-inputs span {
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    min-width: 20px;
}

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

/* Butonlar */
.btn {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 8px;
    flex: 1;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-small {
    padding: 10px 16px;
    font-size: 13px;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.btn-outline:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f8fafc;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Özellik Filtreleri */
.feature-filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid #f1f5f9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.checkbox-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #3b82f6;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkbox-label:hover {
    border-color: #3b82f6;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.checkbox-label:hover::before {
    opacity: 1;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #cbd5e0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-label input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-label span {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-label span i {
    width: 16px;
    text-align: center;
}

/* Aktif Filtreler */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid #e2e8f0;
    position: relative;
}

.active-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 12px 12px 0 0;
}

.active-filters strong {
    font-size: 14px;
    color: #475569;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.filter-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.remove-filter {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    padding: 2px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.2);
}

.remove-filter:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.clear-all-filters {
    margin-left: auto;
    font-size: 13px;
    color: #ef4444;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clear-all-filters:hover {
    background: #fef2f2;
    border-color: #fecaca;
    transform: translateY(-1px);
}

/* Toolbar */
.category-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.view-options {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s;
}

.view-btn:hover,
.view-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
    font-size: 14px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.product-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image-link:hover .product-image img {
    transform: scale(1.05);
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.stock {
    background: #10b981;
    color: white;
}

.badge.out-of-stock {
    background: #ef4444;
    color: white;
}

.badge.featured {
    background: #f59e0b;
    color: white;
}

.badge.trending {
    background: #db2745;
    color: white;
}

.badge.discount {
    background: #8b5cf6;
    color: white;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.action-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: scale(1.1);
}

.product-info {
    padding: 0 5px;
}

.product-title {
    margin-bottom: 8px;
}

.product-title a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a:hover {
    color: #3b82f6;
}

.product-category {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.product-price {
    margin-bottom: 8px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #3b82f6;
}

.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.product-stock {
    font-size: 12px;
}

.in-stock {
    color: #10b981;
}

.out-of-stock {
    color: #ef4444;
}

.products-container {
    width: 100%;
}

/* List View */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.product-list-item {
    display: grid;
    grid-template-columns: 150px 1fr 250px;
    gap: 25px;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    align-items: start;
}

.list-item-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.list-item-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.list-item-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.list-item-info {
    padding-right: 20px;
}

.list-item-info .product-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.list-item-info .product-category {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.product-description-short {
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

.list-item-actions {
    text-align: center;
}

.list-item-actions .product-price {
    margin-bottom: 15px;
}

.list-item-actions .current-price {
    font-size: 20px;
    font-weight: bold;
    color: #3b82f6;
}

.list-item-actions .old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    display: block;
    margin-top: 5px;
}

.list-item-actions .product-stock {
    margin-bottom: 15px;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-buttons .action-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.action-buttons .action-btn:hover {
    background: #f8f9fa;
    border-color: #3b82f6;
    color: #3b82f6;
}

.action-buttons .btn-primary {
    padding: 10px 15px;
    background: #3b82f6;
    color: white;
    border: none;
}

.action-buttons .btn-primary:hover {
    background: #2563eb;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-products i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-products h3 {
    color: #666;
    margin-bottom: 15px;
    font-size: 24px;
}

.no-products p {
    color: #999;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-link:hover,
.page-link.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Sepet form stilleri */
.add-to-cart-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.add-to-cart-form .cart-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
}

.add-to-cart-form .cart-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Responsive */
@media (max-width: 1024px) {
    .category-layout {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .category-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .subcategories-sidebar {
        position: static;
        order: 2;
    }
    
    .category-products {
        order: 1;
    }
    
    .category-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .price-inputs {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .price-inputs span {
        display: none;
    }
    
    .price-buttons {
        flex-direction: column;
    }
    
    .active-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px;
    }
    
    .clear-all-filters {
        margin-left: 0;
        align-self: stretch;
        text-align: center;
        justify-content: center;
    }
    
    .product-list-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .list-item-info {
        padding-right: 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-card {
        padding: 16px;
    }
    
    .category-toolbar {
        padding: 15px;
    }
}