/* General Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Section */
.custom-category-header {
    padding: 9px 0;
    text-align: left;
}

.custom-category-header .breadcrumbs {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.custom-category-header h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 5px;
}

.custom-category-header .category-description p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1px;
}

.category-description a {
    color: #000;
    text-decoration: underline;
    font-weight: bold;
}

/* Content Section */
.custom-category-content {
    padding: 10px 0;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.filter-bar h2 {
    font-size: 24px;
    font-weight: normal;
    margin: 0;
}


#open-recipe-filters {
    background: none;
    border: 1px solid #ccc;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
}

/* Recipe Grid */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.recipe-item {
    text-align: left;
}

.recipe-item a {
    text-decoration: none;
    color: #333;
}

.recipe-item img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.recipe-item h3 {
    font-size: 18px;
    font-weight: bold;
}






/*------------------------------------------------------------------
  Mobile Responsive - 2 Columns (Updated for better override)
-------------------------------------------------------------------*/
@media (max-width: 768px) {
    /*
     * We use a more specific selector (body.category .recipe-grid)
     * to ensure these styles override your parent theme's mobile styles.
     */
    body.category .recipe-grid {
        display: grid; /* Explicitly set display to grid */
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; /* Slightly reduced gap for smaller screens */
    }

    .custom-category-header h1 {
        font-size: 36px;
    }

    .filter-bar h2 {
        font-size: 20px;
    }
}



.custom-category-header {
}