/* Container for the category page */
.category-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* Breadcrumbs styling */
.breadcrumbs {
    font-size: 0.9em;
    margin-bottom: 10px;
}

.breadcrumbs a {
    text-decoration: none;
    color: #007BFF;
    margin-right: 5px;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #555;
}

/* Submenu styling */
.category-submenu {
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 10px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.submenu a {
    text-decoration: none;
    color: #333;
    margin-right: 0px;
    font-weight: bold;
}

.submenu a:hover {
    color: #007BFF;
}

.no-subcategories {
    color: #555;
    font-size: 0.9em;
    font-style: italic;
}

/* Layout for filters and content */
.content {
    display: flex;
    gap: 20px;
}

/* Filters sidebar styling */
.filters {
    width: 250px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    font-size: 0.9em;
}

/* Filters heading */
.filters h2 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

/* Filters labels and inputs */
.filters label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #555;
}

.filters select,
.filters input[type="number"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-size: 0.9em;
    color: #333;
    transition: border-color 0.3s ease;
}

.filters select:focus,
.filters input[type="number"]:focus {
    border-color: #007BFF;
    outline: none;
}

/* Filter apply button */
.filters button {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #007BFF;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filters button:hover {
    background-color: #0056b3;
}

/* Products area */
.products {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start; /* Aligns last row items to top */
}

/* Subcategory title styling */
.subcategory-title {
    font-size: 1.2em;
    font-weight: bold;
    background-color: #ffffff;
    padding: 8px 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    text-align: left;
}

.subcategory-title a {
    text-decoration: none;
    color: inherit;
}

.subcategory-title a:hover {
    color: #007BFF;
}

/* Product grid within a subcategory */
.subcategory-products {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Individual product styling */
.product {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    width: calc(25% - 10px); /* Four products per row */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    min-height: 200px; /* Prevents stretching when fewer items in the last row */
}

.product:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product h3 {
    font-size: 1em;
    margin: 10px 0;
    font-weight: bold;
    color: #333;
}

.product img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.product .price {
    font-size: 1em;
    color: #28a745;
    font-weight: bold;
}

/* Pagination styling */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination a,
.pagination .current {
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 1em;
    text-decoration: none;
}

.pagination a {
    background-color: #007BFF;
    color: #fff;
}

.pagination a:hover {
    background-color: #0056b3;
}

.pagination .current {
    background-color: #555;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .product {
        width: calc(33.33% - 10px); /* Three products per row */
    }
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }

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

    .product {
        width: calc(50% - 10px); /* Two products per row */
    }
}

@media (max-width: 480px) {
    .product {
        width: 100%; /* Single product per row */
    }
}
.disabled-subcategory {
    color: #999; /* Greyed-out text */
    cursor: not-allowed;
    text-decoration: none;
}
