/* Category Toggle Switch */
.category-toggle-container {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px 0;
}

.category-toggle {
    display: inline-flex;
    background: var(--white);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.toggle-btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.toggle-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

/* Consumables Data Table Styles */
.consumables-table-container {
    width: 100%;
    overflow-x: auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.consumables-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.consumables-table th {
    background: var(--dark);
    color: var(--white);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.consumables-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
    color: var(--gray);
    vertical-align: middle;
}

.consumables-table tbody tr:hover {
    background-color: rgba(230, 57, 70, 0.05);
}

.table-group-header td {
    background-color: #f1f5f9;
    color: var(--dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    padding: 12px 15px;
    border-bottom: 2px solid var(--primary);
}

/* Sidebar Navigation Layout for products.html */
.products-layout {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

.products-sidebar {
    flex: 0 0 250px;
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px 0;
    position: sticky;
    top: 100px;
}

.sidebar-brand {
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid rgba(230, 57, 70, 0.1);
    margin-bottom: 10px;
}

.sidebar-brand img {
    height: 25px;
    object-fit: contain;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.sidebar-menu li {
    padding: 0;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: white;
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.products-content {
    flex: 1;
}

.section-title {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
}

@media (max-width: 900px) {
    .products-layout {
        flex-direction: column;
    }
    .products-sidebar {
        flex: none;
        width: 100%;
        position: relative;
        top: 0;
    }
}

/* Product Details Page Styles */
.product-details-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.product-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 20px;
}

.product-header-info {
    flex: 1;
}

.product-header-info h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.product-brand-tag {
    display: inline-block;
    background: var(--light);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 15px;
}

.commande-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    white-space: nowrap;
}

.commande-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}

.product-main-view {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.product-large-image {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.product-large-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.product-features-grid {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-box {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    border-top: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-box h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

.product-specs-table th, .product-specs-table td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-align: left;
}

.product-specs-table th {
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
    width: 30%;
}

.product-specs-table td {
    background: var(--white);
    color: var(--gray);
}

.product-specs-table tr:last-child td, .product-specs-table tr:last-child th {
    border-bottom: none;
}

@media (max-width: 900px) {
    .product-main-view {
        flex-direction: column;
    }
    .product-features-grid {
        grid-template-columns: 1fr;
    }
    .product-header-row {
        flex-direction: column;
        gap: 20px;
    }
}
