/* Menu Grid Style */

/* Menu Header Section */
.menu-header-section {
    position: relative;
    padding: 200px 0 120px;
    background-color: var(--color-one);
    overflow: hidden;
}

.menu-header-section .image-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.menu-header-section .image-layer:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(17, 34, 32, 0.35) 0%,
        rgba(17, 34, 32, 0.7) 100%
    );
    z-index: 1;
}

.menu-header-section .auto-container {
    position: relative;
    z-index: 10;
}

.menu-header-section .content-box {
    position: relative;
    text-align: center;
}

.menu-header-section .title-box {
    position: relative;
}

.menu-header-section h1 {
    position: relative;
    font-family: var(--font-family-Fraunces);
    font-size: 48px;
    font-weight: 600;
    color: var(--main-color);
    line-height: 1.2em;
    margin-bottom: 15px;
    letter-spacing: 5px;
    font-style: normal;
    text-shadow: 2px 1px 2px black;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.menu-header-section .subtitle {
    position: relative;
    display: inline-block;
    font-family: var(--font-family-Fraunces);
    font-size: 24px;
    font-weight: 400;
    color: cornsilk;
    line-height: 1.4em;
    margin-bottom: 10px;
    letter-spacing: 3px;
    font-style: normal;
    text-shadow: none;
    animation: fadeInUp 0.8s ease 0.4s both;
    font-style: italic;
    text-shadow: 2px 1px 2px black;
}

.menu-header-section .subtitle::before,
.menu-header-section .subtitle::after {
    display: none !important;
}

.menu-header-section .text {
    position: relative;
    font-size: 18px;
    color: cornsilk;
    line-height: 1.6em;
    margin-top: 20px;
    animation: fadeInUp 0.8s ease 0.6s both;
    text-shadow: 2px 1px 2px black;
}

/* Breadcrumbs Section */
.breadcrumbs-section {
    padding: 20px 0;
    background-color: var(--color-two);
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 8px;
    color: var(--color-three);
}

.breadcrumb-item a {
    color: var(--main-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--white-color);
}

.breadcrumb-item.active {
    color: var(--color-three);
}

/* Menu Grid Section */
.menu-grid-section {
    padding: 80px 0;
    background-color: var(--color-one);
}

.menu-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Category Card */
.category-card {
    position: relative;
    background: var(--color-two);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-four);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    height: 300px;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(230, 177, 95, 0.3);
    border-color: var(--main-color);
}

.category-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.category-card:hover .category-card-image {
    transform: scale(1.1);
}

/* Overlay */
.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    transition: all 0.3s ease;
}

.category-card-title {
    font-size: 28px;
    font-weight: 500;
    color: var(--white-color);
    margin-bottom: 0;
    font-family: var(--font-family-Fraunces);
    text-align: center;
    text-transform: uppercase;
    text-shadow: 2px 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    width: 100%;
    padding: 20px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 25%, rgba(0, 0, 0, 0.8) 100%);
}

.category-card:hover .category-card-title {
    color: var(--main-color);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 25%, rgba(0, 0, 0, 0.9) 100%);
}

.category-card-count {
    display: none;
}

/* Responsive */
@media (max-width: 991px) {
    .menu-header-section {
        padding: 150px 0 80px;
    }

    .menu-header-section h1 {
        font-size: 36px;
    }

    .menu-header-section .subtitle {
        font-size: 20px;
    }

    .menu-header-section .text {
        font-size: 16px;
        padding: 0 20px;
    }

    .menu-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .category-card {
        height: 250px;
    }

    /* Премахване на hover ефект за повдигане */
    .category-card:hover {
        transform: none;
    }

    .category-card-title {
        font-size: 24px;
        padding: 15px 18px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 25%, rgba(0, 0, 0, 0.8) 100%);
    }

    .category-card:hover .category-card-title {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 25%, rgba(0, 0, 0, 0.9) 100%);
    }

    .category-card-count {
        padding: 8px 18px;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.5) 100%
        );
    }

    .category-card:hover .category-card-count {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.65) 100%
        );
    }
}

@media (max-width: 767px) {
    .menu-grid-section {
        padding: 50px 0;
    }

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

    .category-card {
        height: 200px;
    }

    /* Премахване на hover ефект за повдигане */
    .category-card:hover {
        transform: none;
    }

    .category-card-title {
        font-size: 20px;
        padding: 15px 15px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 25%, rgba(0, 0, 0, 0.8) 100%);
    }

    .category-card:hover .category-card-title {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 25%, rgba(0, 0, 0, 0.9) 100%);
    }

    .category-card-count {
        font-size: 14px;
        padding: 6px 15px;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.5) 100%
        );
    }

    .category-card:hover .category-card-count {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.65) 100%
        );
    }
}

@media only screen and (max-width: 599px) {
    .menu-header-section {
        padding: 80px 0 30px;
        min-height: auto;
        max-height: 20vh;
        display: flex;
        align-items: center;
    }

    .menu-header-section .content-box {
        padding: 0;
    }

    .menu-header-section h1 {
        font-size: 1.3rem;
        margin: 8px 0;
        letter-spacing: 2.5px;
        text-transform: uppercase;
        font-weight: 500;
       
    }

    .menu-header-section .subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
        margin-bottom: 8px;
    }

    .menu-header-section .text {
        display: none;
    }

    /* Mobile Grid - 3 columns like allergens */
    .menu-grid-section {
        padding: 30px 0;
    }

    .menu-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .category-card {
        height: 140px;
        border-radius: 8px;
    }

    /* Премахване на hover ефект за повдигане */
    .category-card:hover {
        transform: none;
    }

    .category-card-title {
        font-size: 0.8rem;
        margin-bottom: 0;
        letter-spacing: 1px;
        padding: 10px 10px;
        width: 100%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 25%, rgba(0, 0, 0, 0.8) 100%);
    }

    .category-card:hover .category-card-title {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 25%, rgba(0, 0, 0, 0.9) 100%);
    }

    .category-card-count {
        display: none;
    }
}

/* Very small mobile */
@media (max-width: 375px) {
    .category-card {
        height: 120px;
    }

    .category-card-title {
        font-size: 0.7rem;
        padding: 8px 8px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 25%, rgba(0, 0, 0, 0.8) 100%);
    }

    .category-card:hover .category-card-title {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 25%, rgba(0, 0, 0, 0.9) 100%);
    }
}

