/* Restaurangmenyer – frontend */

.restmeny { box-sizing: border-box; }
.restmeny *, .restmeny *::before, .restmeny *::after { box-sizing: inherit; }

.restmeny__item {
    display: flex;
    align-items: flex-start;
    padding-bottom: 25px;
}
.restmeny__item:last-child { padding-bottom: 0; }

.restmeny__image {
    max-width: 50%;
    flex-shrink: 0;
    margin-right: 25px;
    line-height: 0;
}
.restmeny__image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #333;
}

.restmeny__item--compact .restmeny__image { display: none; }

.restmeny__body {
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
    align-items: flex-start;
}

.restmeny__header {
    display: flex;
    align-items: center;
    flex-basis: 100%;
    margin-bottom: 10px;
    justify-content: space-between;
}

.restmeny__title {
    font-size: 26px;
    line-height: 1.1em;
    color: #333;
}

.restmeny__separator {
    flex-grow: 1;
    margin: 0 10px;
    border-bottom: 2px dotted currentColor;
    height: 0;
    opacity: 0.4;
}
.restmeny__item:not([data-has-price]) .restmeny__separator {
    border-bottom-color: transparent;
}

.restmeny__price {
    font-size: 18px;
    white-space: nowrap;
}

.restmeny__description {
    flex-basis: 100%;
    flex-flow: row wrap;
}
.restmeny__description p:last-child { margin-bottom: 0; }

/* Tags */
.restmeny__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.restmeny__tag {
    display: inline-block;
    padding: 2px 10px;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 999px;
    background: var(--tag-color, #635741);
    color: #fff;
}

/* Protein accordion */
.restmeny__protein-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-decoration: underline;
}
.restmeny__protein-icon {
    font-weight: bold;
    display: inline-block;
    transition: transform 0.2s ease;
}
.restmeny__protein-toggle[aria-expanded="true"] .restmeny__protein-icon {
    transform: rotate(45deg);
}

.restmeny__protein-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.restmeny__protein-panel.is-open {
    max-height: 320px;
}

.restmeny__protein-panel ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}
.restmeny__protein-panel li {
    padding: 2px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.restmeny__protein-panel li strong {
    white-space: nowrap;
}

/* Staggerad in-animation rad för rad */
.restmeny__protein-panel.is-open li {
    opacity: 1;
    transform: translateY(0);
}
.restmeny__protein-panel.is-open li:nth-child(1) { transition-delay: 0.05s; }
.restmeny__protein-panel.is-open li:nth-child(2) { transition-delay: 0.10s; }
.restmeny__protein-panel.is-open li:nth-child(3) { transition-delay: 0.15s; }
.restmeny__protein-panel.is-open li:nth-child(4) { transition-delay: 0.20s; }
.restmeny__protein-panel.is-open li:nth-child(5) { transition-delay: 0.25s; }
.restmeny__protein-panel.is-open li:nth-child(6) { transition-delay: 0.30s; }
.restmeny__protein-panel.is-open li:nth-child(7) { transition-delay: 0.35s; }
.restmeny__protein-panel.is-open li:nth-child(8) { transition-delay: 0.40s; }

@media (max-width: 767px) {
    .restmeny__item--with-image {
        flex-direction: column;
    }
    .restmeny__image {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }
    .restmeny__title { font-size: 22px; }
}
