.food-menu-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}


/* =========================================
   TOP CATEGORIES
========================================= */

.top-categories {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: hidden;
    padding-bottom: 15px;
}

.top-categories::-webkit-scrollbar {
    display: none;
}
.top-category {
    border: none;
    background: transparent;
    padding: 2px 15px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #233f73;
    cursor: pointer;
    transition: 0.2s ease;
    position: relative;
    flex-shrink: 0;
    white-space: nowrap;
}

.top-category:hover {
    background: #f2f2f2 !important;
}

.top-category.active {
    background: #ffc400 !important;
}

.top-category.active::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 18px solid #f3f4f6;
}


/* =========================================
   FILTER PANEL
========================================= */

.filter-panel {
    background: #f3f4f6;
    border-radius: 22px;
    min-height: 220px;
    padding: 32px 36px;
    margin-bottom: 50px;
}


/* =========================================
   SUB CATEGORIES
========================================= */

.sub-categories {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 42px;
}

.sub-category {
    display: inline-flex;
    align-items: center;
    border: none;
    background: transparent !important;
    padding: 5px 10px;
    margin: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 400;
    color: #233f73 !important;
    cursor: pointer;
    line-height: 1.2;
    box-shadow: none !important;
    transition: 0.2s ease;
    text-decoration: none;
}

.sub-category:hover {
    background: #e8ebef !important;
}

.sub-category.active {
    background: #e1e5eb !important;
    font-weight: 700;
}

.sub-category::after,
.sub-category.active::after {
    display: none !important;
    content: none !important;
}


/* =========================================
   INGREDIENT FILTERS
========================================= */


.ingredient-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
    margin-top: 40px;
}

.ingredient-card {
    width: 100px;
    border: none;
    background: transparent !important;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    cursor: pointer;
    transition: 0.2s ease;
    color: #233f73 !important;
    box-shadow: none !important;
    padding: 0;
    text-align: center;
}

.ingredient-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ingredient-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.ingredient-title {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
    color: #233f73;
    text-align: center;
}

/* =========================================
   REMOVE ASTRA DEFAULT BUTTON STYLES
========================================= */

.top-category:focus,
.top-category:active,
.sub-category:focus,
.sub-category:active,
.ingredient-card:focus,
.ingredient-card:active {
    outline: none !important;
    box-shadow: none !important;
}



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

.food-products {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 50px;
}

.food-product-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    transition: 0.2s ease;
}

.food-product-card:hover {
    transform: translateY(-3px);
}


.food-product-image {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.food-product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.food-product-title {
    margin-top: 14px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 500;
    color: #233f73;
    text-align: center;
}

.food-product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    transition: 0.2s ease;
}

.food-product-card:hover {
    transform: translateY(-3px);
}



/* =========================================
   Header
========================================= */


.food-category-header {
    position: relative;
    height: 420px;
    border-radius: 36px;
    overflow: hidden;
    margin-bottom: 40px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.food-category-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.55) 100%
        );
    z-index: 1;
}

.food-category-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 50px;
}

.food-category-title {
    margin: 0 0 16px 0;
    font-size: 56px;
    line-height: 1;
    font-weight: 700;
    color: #ffffff;
}

.food-category-description {
    max-width: 500px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 400;
    color: rgba(255,255,255,0.92);
}



/* =========================================
   MOBILE DROPDOWN FILTERS
========================================= */

.mobile-filter-panel {
    display: none;
}

@media (max-width: 768px) {

    .top-categories,
    .filter-panel .sub-categories,
    .filter-panel .ingredient-filters {
        display: none !important;
    }

    .mobile-filter-panel {
        display: block;
        background: #f3f4f6;
        border-radius: 18px;
        padding: 18px 14px;
        margin-bottom: 24px;
    }

    .mobile-filter-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-filter-form label {
        font-size: 16px;
        font-weight: 500;
        color: #233f73;
        margin-top: 8px;
    }

    .mobile-filter-form select {
        width: 100%;
        height: 44px;
        border: 1px solid #d6dbe3;
        border-radius: 6px;
        background: #ffffff;
        padding: 0 12px;
        font-size: 15px;
        color: #233f73;
    }

    .mobile-filter-submit {
        margin-top: 10px;
        width: fit-content;
        border: none;
        border-radius: 999px;
        background: #233f73;
        color: #ffffff;
        padding: 12px 28px;
        font-size: 15px;
        font-weight: 500;
        cursor: pointer;
    }

    .food-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-top: 24px;
    }

    .food-product-card {
        border-radius: 18px;
        padding: 14px;
    }

    .food-product-image {
        height: 145px;
        margin-bottom: 12px;
    }

    .food-product-title {
        font-size: 14px !important;
        line-height: 1.2 !important;
        margin-top: 8px !important;
    }
}

.mobile-filter-panel {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-filter-panel {
        display: block !important;
    }

    .top-categories,
    .filter-panel .sub-categories,
    .filter-panel .ingredient-filters {
        display: none !important;
    }
}

/* Mobile filtri pēc noklusējuma paslēpti */
.mobile-filter-panel {
    display: none;
}

@media (max-width: 768px) {

    .food-menu-page {
        padding-left: 8px;
        padding-right: 8px;
    }

    .filter-panel {
        padding: 16px 8px;
        border-radius: 16px;
    }

    .food-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 20px;
    }

    .food-product-card {
        padding: 10px;
        border-radius: 16px;
    }

    .food-product-image {
        height: 130px;
        margin-bottom: 8px;
    }

    .food-product-title {
        font-size: 13px !important;
        line-height: 1.15 !important;
        margin-top: 6px !important;
    }
}


/* Tikai mobilajā versijā */
@media (max-width: 768px) {

    .mobile-filter-panel {
        display: block;
        margin: 20px 0;
    }

    /* Desktop filtri mobilajā nav redzami */
    .top-categories,
    .sub-categories,
    .ingredient-filters {
        display: none;
    }

}