/* =========================
   PRODUCTS PAGE - 2 COLUMN LAYOUT
========================= */

.products-page-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* =========================
   CATEGORY SIDEBAR
========================= */

.category-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sidebar-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.mobile-category-toggle {
    display: none;
    background: var(--primary-color, #c59d5f);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-category-toggle:hover {
    background: var(--secondary-color, #d4af6a);
    transform: scale(1.05);
}

.mobile-category-toggle.active {
    background: #1a1a1a;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f8f8f8;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.category-item.active {
    background: linear-gradient(135deg, var(--primary-color, #c59d5f), var(--secondary-color, #d4af6a));
    color: #fff;
    border-color: var(--primary-color, #c59d5f);
    box-shadow: 0 4px 12px rgba(197, 157, 95, 0.3);
}

.category-name {
    font-size: 15px;
    font-weight: 500;
}

.category-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.category-item.active .category-count {
    background: rgba(255, 255, 255, 0.25);
}

/* =========================
   PRODUCTS CONTENT
========================= */

.products-content {
    flex: 1;
    min-width: 0;
}

.products-header {
    margin-bottom: 30px;
}

.products-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.product-count {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* No Products State */
.no-products {
    text-align: center;
    padding: 80px 20px;
    background: #f8f8f8;
    border-radius: 14px;
}

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

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

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
    .products-page-container {
        gap: 20px;
    }

    .category-sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .products-page-container {
        flex-direction: column;
        gap: 0;
    }

    .category-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .mobile-category-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .category-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .category-list.show {
        max-height: 500px;
        margin-top: 15px;
    }

    .products-header h1 {
        font-size: 24px;
    }

    .product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .product-list {
        grid-template-columns: 1fr;
    }

    .category-item {
        padding: 12px 14px;
    }

    .category-name {
        font-size: 14px;
    }
}