.menu-html {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 90px;
}

.menu-wrapper {
    max-width: 800px;
    height: 100%;
    margin: 0 auto;
    padding: 6.5rem 1rem;
    font-family: Helvetica;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.menu-title {
    color: #000;
    text-align: center;
    font-family: Helvetica;
    font-size: 80px;
    font-style: normal;
    font-weight: 700;
    line-height: 125%;
    /* 100px */
    text-transform: uppercase;
    margin-bottom: 64px;
}

.accordion-item {
    border: 1px solid #eee;
    border-radius: 25px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #fff;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px;
    font-family: Helvetica;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 125%;
    border-radius: 25px;
    border: none;
    background: #fff;
    cursor: pointer;
    position: relative;
    color: #000 !important;
}

.chevron {
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translateY(-50%) rotate(315deg);
    /* початково “›” */
    transition: transform .3s ease;
    border-right: 2px solid #111;
    border-bottom: 2px solid #111;
}

/* коли секція відкрита – повертаємо */
.accordion-item.open .chevron {
    transform: translateY(-50%) rotate(45deg);
    /* « */
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1rem;
}

.accordion-body.open {
    padding: 1rem;
    max-height: 1000px;
    /* достатньо для контенту */
}

.menu-item {
    display: flex;
    padding: 10px 0;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px dashed #ccc;
}

.menu-text {
    flex: 1 1 60%;
    min-width: 250px;
}

.menu-category {
    font-size: 0.9rem;
    font-weight: bold;

    color: #444;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.menu-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.2rem 0;
}

.menu-price {
    color: #9b2bc1;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.menu-description {
    position: relative;
    max-height: 4.5em;
    /* ≈3 рядки */
    overflow: hidden;
    transition: all 0.3s ease;
    line-height: 1.5em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Коли розгортається */
.menu-description.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: auto;
}

/* Внутрішній скрол при довгому тексті */
.menu-description.expanded::-webkit-scrollbar {
    width: 6px;
}

.menu-description.expanded::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Кнопка */
.toggle-btn {
    background: none;
    border: none;
    color: #9b2bc1;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    margin-top: 0.2rem;
}

.menu-meta {
    font-size: 0.8rem;
    color: #777;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.menu-image img {
    max-width: 120px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .menu-wrapper {
        padding-top: 0;
    }

    .menu-text {
        min-width: 150px;
    }

    .menu-text {
        /* flex: none; */
    }

    .menu-title {
        font-size: 32px;
        margin-bottom: 32px;
        text-transform: none;
    }

    .accordion-item {
        margin-bottom: 12px;
    }

    .accordion-header {
        font-size: 18px;
        scroll-margin-top: 140px; 
    }

}

@media (max-width: 768px) {
    .cat-carousel {
        position: sticky;
        top: 70px;
        z-index: 50;
        background: #fff;
        border-bottom: 1px solid #eee;
        padding: 8px 0;
    }

    .cat-pagination {
        height: 4px;
        background: #eee;
        border-radius: 2px;
        /* margin-top: 28px; */
        top: 35px !important;
    }

    .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
        background: #c41f7b !important;
    }

    .cat-swiper {
        padding-bottom: 10px !important;
    }

    .cat-pagination .swiper-pagination-progressbar-fill {
        background: #cc1684;
        border-radius: 2px;
    }

    .cat-swiper {
        position: relative;
        overflow: hidden;
    }

    .cat-tab {
        font: 600 14px/1 Helvetica, sans-serif;
        color: #000;
        padding: 8px 16px;
        background: #fff;
        border-radius: 20px;
        border: none;
        white-space: nowrap;
        transition: color 0.3s, background 0.3s;
    }

    .cat-tab.active {
        color: #9b2bc1;
        background: #e8d4f0;
    }

    .cat-indicator {
        height: 2px;
        width: 30px;
        background: #9b2bc1;
        position: absolute;
        bottom: 0;
        left: 0;
        transition: transform 0.3s ease, width 0.3s ease;
    }

    .menu-wrapper {
        padding-top: 4rem;
    }

    .menu-html {
        padding-top: 32px;
    }
}

@media (min-width: 769px) {
    .cat-carousel {
        display: none;
    }
}

/* Адаптивність */
@media (max-width: 600px) {
    .menu-item {
        align-items: flex-start;
        gap: 0;
    }

    .menu-image {
        align-self: center;
        margin-top: 1rem;
    }
}