/* =========================================================
   MENU PAGE
   ========================================================= */

.menu-top {
    position: sticky;
    top: 0;
    z-index: 100;

    border-bottom: 1px solid #eadfd4;

    background:
        rgba(255, 255, 255, .96);

    backdrop-filter: blur(12px);
}


.menu-top-inner {
    max-width: 1540px;

    margin: 0 auto;

    padding: 14px 20px;
}


/* =========================================================
   SEARCH
   ========================================================= */

.menu-search-wrap {
    position: relative;

    display: flex;
    align-items: center;

    margin-bottom: 12px;
}


.menu-search-wrap > i {
    position: absolute;

    left: 16px;

    z-index: 2;

    color: #85756b;

    font-size: 16px;

    pointer-events: none;
}


.search {
    width: 100%;

    min-height: 48px;

    padding:
        12px
        46px
        12px
        44px;

    border: 1px solid #e4dace;
    border-radius: 16px;

    outline: none;

    background: #faf8f5;

    color: #241915;

    font-size: 15px;
    font-weight: 700;

    transition:
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}


.search:focus {
    border-color: #c8b5a3;

    background: #ffffff;

    box-shadow:
        0 0 0 3px
        rgba(122, 31, 23, .07);
}


.menu-search-clear {
    position: absolute;

    right: 10px;

    width: 32px;
    height: 32px;

    display: none;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: #77675d;

    font-size: 22px;

    cursor: pointer;
}


.menu-search-clear.is-visible {
    display: flex;
}


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

.categories {
    display: flex;
    align-items: center;

    gap: 8px;

    overflow-x: auto;

    scrollbar-width: none;
}


.categories::-webkit-scrollbar {
    display: none;
}


.categories a,
.category-filter-btn {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    gap: 6px;

    min-height: 38px;

    padding:
        8px
        14px;

    border: 1px solid #e4dace;
    border-radius: 999px;

    background: #ffffff;

    color: #30211c;

    text-decoration: none;

    font-size: 13px;
    font-weight: 900;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease;
}


.categories a:hover,
.category-filter-btn:hover {
    border-color: #d4c3b3;

    background: #f8f5ef;
}


.category-filter-btn.active {
    border-color: #7a1f17;

    background: #7a1f17;

    color: #ffffff;
}


.categories-divider {
    flex: 0 0 1px;

    width: 1px;
    height: 24px;

    margin: 0 2px;

    background: #e4dace;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.menu-layout {
    max-width: 1540px;

    margin: 0 auto;

    padding:
        0
        390px
        120px
        24px;
}


.menu-page {
    min-width: 0;

    padding-top: 26px;
}


.section {
    margin-bottom: 46px;

    scroll-margin-top: 130px;
}


.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 18px;
}


.section-kicker {
    margin-bottom: 3px;

    color: #927564;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .05em;
}


.section-title {
    margin: 0;

    color: #241915;

    font-size: 29px;
    font-weight: 900;

    line-height: 1.15;
}


/* =========================================================
   GRID
   ========================================================= */

.grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 22px;
}


/* =========================================================
   CARD
   ========================================================= */

.menu-card {
    position: relative;

    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid #e8ddd2;
    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 8px 24px
        rgba(55, 33, 25, .07);

    transition:
        transform .16s ease,
        box-shadow .16s ease;
}


.menu-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 32px
        rgba(55, 33, 25, .10);
}


.menu-card[hidden] {
    display: none !important;
}


/* =========================================================
   CARD PHOTO
   ========================================================= */

.menu-card-photo {
    position: relative;

    height: 245px;

    flex: 0 0 245px;

    overflow: hidden;

    background: #ffffff;
}


.menu-card-photo img {
    position: absolute;

    left: var(--img-x, 50%);
    top: var(--img-y, 50%);

    width: 100%;
    height: 100%;

    object-fit: contain;

    transform:
        translate(-50%, -50%)
        scale(calc(var(--img-scale, 100%) / 100%));

    transform-origin: center;
}


.menu-card-photo-empty {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #c0b5ac;

    background:
        #faf8f5;

    font-size: 38px;
}


/* =========================================================
   PHOTO BADGES
   ========================================================= */

.menu-card-photo-badges {
    position: absolute;

    top: 12px;
    left: 12px;

    z-index: 4;

    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    max-width: calc(100% - 70px);
}


.menu-chip {
    display: inline-flex;
    align-items: center;

    gap: 4px;

    padding:
        5px
        9px;

    border-radius: 999px;

    box-shadow:
        0 3px 10px
        rgba(0, 0, 0, .08);

    font-size: 11px;
    font-weight: 900;
}


.menu-chip-hit {
    background: #fff0dc;
    color: #a75000;
}


.menu-chip-new {
    background: #e8f7ed;
    color: #1c7342;
}


.menu-chip-spicy {
    background: #fee7e7;
    color: #a72121;
}


.menu-chip-combo {
    background: #eee9ff;
    color: #634ca1;
}


/* =========================================================
   FAVORITE
   ========================================================= */

.favorite-form {
    position: absolute;

    top: 12px;
    right: 12px;

    z-index: 6;
}


.favorite-btn {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(0, 0, 0, .04);
    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            .94
        );

    color: #8b776b;

    box-shadow:
        0 5px 16px
        rgba(0, 0, 0, .10);

    font-size: 18px;

    cursor: pointer;
}


.favorite-btn:hover {
    color: #b42318;
}


.favorite-btn.active {
    color: #c71f2d;
}


/* =========================================================
   CARD BODY
   ========================================================= */

.menu-card-body {
    flex: 1;

    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 18px;
}


.menu-card-main {
    min-width: 0;
}


.menu-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 10px;
}


.menu-card-name {
    margin: 0;

    color: #241915;

    font-size: 20px;
    font-weight: 900;

    line-height: 1.18;
}


.menu-rating {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    gap: 4px;

    color: #e59b16;

    font-size: 12px;
    font-weight: 900;
}


.menu-rating span {
    color: #9b8e84;

    font-size: 11px;
}


/* =========================================================
   ORDER METHODS
   ========================================================= */

.menu-order-methods,
.details-order-methods {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: 10px;
}


.menu-order-chip,
.details-order-chip {
    display: inline-flex;
    align-items: center;

    gap: 4px;

    padding:
        5px
        8px;

    border: 1px solid #e8e0d8;
    border-radius: 999px;

    background: #faf8f5;

    color: #6d5d53;

    font-size: 10px;
    font-weight: 800;
}


.menu-only-local,
.details-only-local {
    display: flex;
    align-items: center;

    gap: 5px;

    margin-top: 7px;

    color: #875721;

    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.menu-card-weight {
    margin-top: 9px;

    color: #8a7c72;

    font-size: 12px;
    font-weight: 800;
}


.menu-card-description {
    margin-top: 10px;

    overflow: hidden;

    color: #776960;

    font-size: 12px;
    line-height: 1.5;

    display: -webkit-box;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


.menu-details-link {
    display: inline-flex;
    align-items: center;

    gap: 4px;

    margin-top: 8px;
    padding: 0;

    border: 0;

    background: transparent;

    color: #7a1f17;

    font-size: 12px;
    font-weight: 900;

    cursor: pointer;
}


.menu-details-link:hover {
    text-decoration: underline;
}


/* =========================================================
   VARIANTS
   ========================================================= */

.menu-item-variants {
    margin-top: 14px;
}


.menu-item-variants-label,
.details-variants-title {
    margin-bottom: 7px;

    color: #85776e;

    font-size: 11px;
    font-weight: 800;
}


.menu-item-variants-list,
.details-variants-list {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;
}


.menu-variant-btn,
.details-variant-btn {
    min-height: 33px;

    padding:
        6px
        11px;

    border: 1px solid #ddd4cb;
    border-radius: 9px;

    background: #ffffff;

    color: #54463e;

    font-size: 11px;
    font-weight: 800;

    cursor: pointer;

    transition:
        border-color .15s ease,
        background .15s ease,
        color .15s ease;
}


.menu-variant-btn:hover,
.details-variant-btn:hover {
    border-color: #7a1f17;

    color: #7a1f17;
}


.menu-variant-btn.active,
.details-variant-btn.active {
    border-color: #7a1f17;

    background: #7a1f17;

    color: #ffffff;
}


/* =========================================================
   CARD FOOTER
   ========================================================= */

.menu-card-footer {
    margin-top: auto;
    padding-top: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}


.menu-card-price {
    color: #17110f;

    font-size: 20px;
    font-weight: 900;

    white-space: nowrap;
}


.menu-add-button {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    padding:
        10px
        15px;

    border: 0;
    border-radius: 13px;

    background: #7a1f17;

    color: #ffffff;

    font-size: 12px;
    font-weight: 900;

    cursor: pointer;
}


.menu-add-button:hover {
    background: #661911;
}


.menu-add-button.preorder {
    border: 1px solid #ebd28d;

    background: #fff1cc;

    color: #805500;
}


.menu-add-button:disabled {
    opacity: .6;

    cursor: wait;
}


/* =========================================================
   EMPTY
   ========================================================= */

.menu-empty,
.menu-search-empty {
    padding: 40px 20px;

    text-align: center;

    color: #8d7f75;
}


.menu-search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 5px;
}


.menu-search-empty[hidden] {
    display: none !important;
}


.menu-search-empty i {
    margin-bottom: 5px;

    font-size: 28px;
}


.menu-search-empty strong {
    color: #45372f;

    font-size: 17px;
}


/* =========================================================
   CART SIDEBAR
   ========================================================= */

.cart-sidebar {
    display: block;
}


.cart-box {
    position: fixed;

    top: 50%;
    right:
        max(
            24px,
            calc(
                (100vw - 1540px) / 2
                + 24px
            )
        );

    transform:
        translateY(-50%);

    width: 340px;

    max-height:
        calc(
            100vh - 120px
        );

    overflow-y: auto;

    z-index: 80;

    padding: 16px;

    border: 1px solid #e4dace;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 12px 34px
        rgba(55, 33, 25, .10);
}


/* =========================================================
   FLOATING CART
   ========================================================= */
.floating-cart-button {
    position: fixed;

    right: 160px;
    bottom: 18px;

    z-index: 1000;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 12px 18px;

    border-radius: 999px;

    background: #17110f;
    color: #ffffff;

    box-shadow:
        0 10px 26px
        rgba(0, 0, 0, .24);

    text-decoration: none;

    font-weight: 900;
}


.floating-cart-button:hover {
    background: #000000;

    color: #ffffff;
}


.floating-cart-icon {
    font-size: 17px;
}


.floating-cart-count {
    min-width: 21px;
    height: 21px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 5px;

    border-radius: 999px;

    background: #c62f2f;

    color: #ffffff;

    font-size: 11px;
}


.floating-cart-label {
    font-size: 12px;
}


.floating-cart-total {
    padding-left: 5px;

    border-left:
        1px solid
        rgba(
            255,
            255,
            255,
            .25
        );

    font-size: 12px;
}


/* =========================================================
   DETAILS MODAL
   ========================================================= */

body.details-modal-open {
    overflow: hidden;
}


.details-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;
}


.details-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}


.details-modal-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(
            0,
            0,
            0,
            .62
        );

    backdrop-filter: blur(3px);
}


.details-modal-box {
    position: relative;

    z-index: 2;

    width:
        min(
            1080px,
            calc(100vw - 30px)
        );

    max-height:
        calc(
            100vh - 32px
        );

    display: grid;

    grid-template-columns:
        48%
        minmax(0, 52%);

    overflow: hidden;

    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 24px 70px
        rgba(0, 0, 0, .28);
}


.details-modal-image-wrap {
    position: relative;

    min-height: 560px;

    overflow: hidden;

    background: #ffffff;
}


.details-modal-image-wrap[hidden] {
    display: none;
}


.details-modal-image-wrap img {
    position: absolute;

    left: var(--img-x, 50%);
    top: var(--img-y, 50%);

    width: 100%;
    height: 100%;

    object-fit: contain;

    transform:
        translate(-50%, -50%)
        scale(calc(var(--img-scale, 100%) / 100%));

    transform-origin: center;
}


.details-modal-content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    max-height:
        calc(
            100vh - 32px
        );
}


.details-modal-scroll {
    flex: 1;

    overflow-y: auto;

    padding:
        28px
        28px
        18px;
}


.details-modal-close {
    position: absolute;

    top: 12px;
    right: 12px;

    z-index: 5;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            .94
        );

    color: #352721;

    box-shadow:
        0 3px 12px
        rgba(0, 0, 0, .10);

    cursor: pointer;
}


.details-modal-content h3 {
    margin:
        0
        42px
        0
        0;

    color: #241915;

    font-size: 28px;
    font-weight: 900;

    line-height: 1.15;
}


.details-modal-price {
    margin-top: 8px;

    color: #17110f;

    font-size: 26px;
    font-weight: 900;
}


.details-variants {
    margin-top: 16px;
}


.details-variants-block {
    padding-top: 14px;

    border-top: 1px solid #eee7e0;
}


.details-modal-description {
    margin-top: 16px;

    padding: 14px;

    border: 1px solid #eee5dc;
    border-radius: 14px;

    background: #faf7f2;

    color: #66584f;

    font-size: 13px;
    line-height: 1.6;

    white-space: pre-line;
}


/* =========================================================
   MODIFIERS
   ========================================================= */

.details-modifiers {
    margin-top: 16px;
}


.modifier-group {
    margin-bottom: 14px;
}


.modifier-title,
.details-block-title {
    margin-bottom: 8px;

    color: #332721;

    font-size: 13px;
    font-weight: 900;
}


.modifier-option {
    display: flex;
    align-items: center;

    gap: 8px;

    margin: 6px 0;

    padding: 8px 10px;

    border: 1px solid #ece5de;
    border-radius: 10px;

    color: #5f5149;

    font-size: 12px;

    cursor: pointer;
}


.modifier-option strong {
    margin-left: auto;

    color: #7a1f17;
}


/* =========================================================
   REVIEWS
   ========================================================= */

.details-reviews,
.details-recommendations {
    margin-top: 20px;

    padding-top: 16px;

    border-top:
        1px solid
        #eee7e0;
}


.details-review-item {
    padding: 10px 0;
}


.details-review-item + .details-review-item {
    border-top:
        1px solid
        #f0eae4;
}


.details-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    color: #e59b16;

    font-size: 12px;
    font-weight: 800;
}


.details-review-head small {
    color: #9a8f87;

    font-weight: 600;
}


.details-review-comment {
    margin-top: 5px;

    color: #5f5149;

    font-size: 12px;
}


/* =========================================================
   RECOMMENDATIONS
   ========================================================= */

.details-recommendations-list {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.details-recommendation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 9px 10px;

    border: 1px solid #ece5de;
    border-radius: 10px;
}


.details-recommendation-item strong {
    display: block;

    color: #332721;

    font-size: 12px;
}


.details-recommendation-item span {
    display: block;

    margin-top: 2px;

    color: #84766d;

    font-size: 11px;
}


.details-recommendation-add {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 9px;

    background: #7a1f17;

    color: #ffffff;

    cursor: pointer;
}


/* =========================================================
   MODAL BUY FORM
   ========================================================= */

.details-modal-form {
    flex: 0 0 auto;

    padding:
        14px
        20px;

    border-top: 1px solid #ece5de;

    background: #ffffff;
}


.details-modal-buy-row {
    display: flex;
    align-items: center;

    gap: 12px;
}


.details-qty {
    display: flex;
    align-items: center;

    gap: 6px;
}


.details-qty-btn {
    width: 38px;
    height: 38px;

    border: 1px solid #dfd7cf;
    border-radius: 11px;

    background: #ffffff;

    color: #3d3029;

    font-size: 20px;
    font-weight: 900;

    cursor: pointer;
}


#details-qty-input {
    width: 54px;
    height: 38px;

    padding: 0;

    border: 1px solid #dfd7cf;
    border-radius: 11px;

    text-align: center;

    font-size: 14px;
    font-weight: 900;
}


.details-add-btn {
    flex: 1;

    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    border: 0;
    border-radius: 13px;

    background: #7a1f17;

    color: #ffffff;

    font-size: 13px;
    font-weight: 900;

    cursor: pointer;
}


.details-add-btn.preorder {
    border: 1px solid #ebd28d;

    background: #fff1cc;

    color: #805500;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 1800px) {

    .menu-layout {
        max-width: 1760px;

        padding-right: 390px;
    }


    .grid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
    }


    .cart-box {
        right:
            max(
                24px,
                calc(
                    (100vw - 1760px) / 2
                    + 24px
                )
            );
    }

}


@media (max-width: 1280px) {

    .menu-layout {
        padding-right: 330px;
    }


    .grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .cart-box {
        width: 290px;

        right: 18px;
    }

}


@media (max-width: 1024px) {

    .menu-layout {
        max-width: 1180px;

        padding:
            0
            14px
            110px;
    }


    .cart-sidebar {
        display: none;
    }


    .grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .menu-card-photo {
        height: 260px;

        flex-basis: 260px;
    }

}


@media (max-width: 900px) {

    .details-modal-box {
        width:
            calc(
                100vw - 14px
            );

        max-height:
            calc(
                100vh - 14px
            );

        grid-template-columns: 1fr;

        overflow-y: auto;
    }


    .details-modal-image-wrap {
        min-height: 300px;
        height: 300px;
    }


    .details-modal-content {
        max-height: none;
    }


    .details-modal-scroll {
        overflow: visible;

        padding:
            20px
            18px
            16px;
    }


    .details-modal-form {
        position: sticky;

        bottom: 0;

        z-index: 3;
    }

}


@media (max-width: 640px) {

    .menu-top-inner {
        padding:
            10px
            12px;
    }


    .menu-layout {
        padding:
            0
            12px
            110px;
    }


    .menu-page {
        padding-top: 18px;
    }


    .section {
        margin-bottom: 34px;
    }


    .section-title {
        font-size: 23px;
    }


    .grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }


    .menu-card {
        border-radius: 20px;
    }


    .menu-card-photo {
        height: 230px;

        flex-basis: 230px;
    }


    .menu-card-body {
        padding: 15px;
    }


    .menu-card-name {
        font-size: 19px;
    }


    .menu-card-footer {
        padding-top: 15px;
    }


    .menu-card-price {
        font-size: 19px;
    }


    .menu-add-button {
        min-height: 40px;

        padding:
            9px
            13px;
    }


     .floating-cart-button {
        right: 120px;
        bottom: 18px;
    }


    .floating-cart-label {
        display: none;
    }


    .floating-cart-total {
        display: none;
    }


    .details-modal-buy-row {
        gap: 8px;
    }


    .details-qty-btn {
        width: 36px;
        height: 36px;
    }


    #details-qty-input {
        width: 46px;
        height: 36px;
    }

}

/* ============================================================
 * MOBILE MENU FINAL
 * categories / floating cart
 * ============================================================ */

@media (max-width: 640px) {

    /* --------------------------------------------------------
     * CATEGORIES
     *
     * Одна строка. Ничего не ужимаем.
     * Всё, что не помещается, прокручивается пальцем.
     * -------------------------------------------------------- */

    .categories {
        width: 100% !important;

        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;

        gap: 8px !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;

        scrollbar-width: none;

        padding-right: 14px !important;

        touch-action: pan-x;
    }

    .categories::-webkit-scrollbar {
        display: none;
    }

    .categories > a,
    .categories > button,
    .category-filter-btn,
    .categories-divider {
        flex-shrink: 0 !important;
    }

    .categories > a,
    .category-filter-btn {
        width: auto !important;
        min-width: max-content !important;

        white-space: nowrap !important;
    }


    /* --------------------------------------------------------
     * FLOATING CART — круглая кнопка слева
     * -------------------------------------------------------- */

    .floating-cart-button,
    #floating-cart-button {
        position: fixed !important;

        left: 14px !important;
        right: auto !important;

        bottom: calc(14px + env(safe-area-inset-bottom)) !important;

        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;

        height: 52px !important;
        min-height: 52px !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 0 !important;

        border-radius: 50% !important;

        z-index: 5900 !important;

        overflow: visible !important;
    }

    .floating-cart-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        margin: 0 !important;

        font-size: 20px !important;
        line-height: 1 !important;
    }

    .floating-cart-label,
    .floating-cart-total {
        display: none !important;
    }


    /* Количество — маленький badge в углу */

    .floating-cart-count {
        position: absolute !important;

        top: -5px !important;
        right: -5px !important;

        min-width: 20px !important;
        width: auto !important;

        height: 20px !important;

        padding: 0 5px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        border: 2px solid #ffffff !important;
        border-radius: 999px !important;

        font-size: 10px !important;
        line-height: 1 !important;

        box-sizing: border-box !important;
    }

}


@media (max-width: 370px) {

    .floating-cart-button,
    #floating-cart-button {
        left: 10px !important;
    }

}


/* =========================================================
   CATEGORY NAVIGATION STATE
   ========================================================= */

.categories a.active {
    border-color: #7a1f17;
    background: #7a1f17;
    color: #ffffff;
}


/* Горизонтальная лента должна свободно листаться пальцем */

.categories {
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    touch-action: pan-x;
}


@media (max-width: 640px) {

    .categories {
        width: 100%;
        max-width: 100%;

        overflow-x: auto;
        overflow-y: hidden;

        flex-wrap: nowrap;

        padding-left: 12px;
        padding-right: 12px;

        scroll-padding-left: 12px;
        scroll-padding-right: 12px;
    }

    .categories a,
    .category-filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

}

/* Public restaurant reviews */
.menu-reviews-section {
    margin-top: 48px;
    padding: 28px;
    border: 1px solid #ece5de;
    border-radius: 24px;
    background: #fffaf5;
}

.menu-reviews-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.menu-reviews-eyebrow {
    margin-bottom: 4px;
    color: #9b4a32;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.menu-reviews-heading h2 {
    margin: 0 0 8px;
    color: #2e211c;
    font-size: clamp(24px, 3vw, 34px);
}

.menu-reviews-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: #76675f;
    font-size: 14px;
}

.menu-reviews-summary strong {
    color: #2e211c;
    font-size: 18px;
}

.menu-reviews-stars,
.menu-review-rating {
    color: #e59b16;
}

.menu-reviews-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    color: #7a1f17;
    font-weight: 800;
    text-decoration: none;
}

.menu-reviews-all:hover {
    color: #a52d22;
}

.menu-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.menu-review-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #eee3da;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(62, 39, 29, .05);
}

.menu-review-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.menu-review-rating {
    font-size: 13px;
    font-weight: 800;
}

.menu-review-card time {
    color: #9a8f87;
    font-size: 12px;
}

.menu-review-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #5f5149;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

@media (max-width: 900px) {
    .menu-reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .menu-reviews-section {
        margin-top: 32px;
        padding: 20px 16px;
        border-radius: 18px;
    }

    .menu-reviews-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .menu-reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* Nutrition per serving */
.menu-nutrition-label,
.details-nutrition-label {
    color: #8a7b72;
    font-size: 10px;
    font-weight: 600;
}

.menu-nutrition-label {
    margin-top: 8px;
}
.menu-card-nutrition,
.details-nutrition {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.menu-card-nutrition {
    margin-top: 9px;
}

.menu-card-nutrition span,
.details-nutrition span {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    border: 1px solid #eadfd6;
    border-radius: 999px;
    background: #fffaf5;
    color: #75665d;
    white-space: nowrap;
}

.menu-card-nutrition span {
    padding: 3px 7px;
    font-size: 10px;
}

.menu-card-nutrition b,
.details-nutrition b {
    color: #7a1f17;
}

.details-nutrition {
    margin-top: 14px;
}

.details-nutrition-label {
    flex-basis: 100%;
    margin-top: 4px;
}

.details-nutrition[hidden] {
    display: none;
}

.details-nutrition span {
    padding: 6px 10px;
    font-size: 12px;
}

/* Compact public reviews */
.menu-reviews-section {
    margin-top: 40px;
    padding: 24px;
    border: 1px solid #e7e9ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: none;
}

.menu-reviews-heading {
    align-items: center;
    margin-bottom: 18px;
}

.menu-reviews-intro p {
    margin: 2px 0 0;
    color: #727783;
    font-size: 13px;
}

.menu-reviews-eyebrow {
    display: none;
}

.menu-reviews-heading h2 {
    margin: 0;
    color: #20242c;
    font-size: 22px;
}

.menu-reviews-score {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border: 1px solid #e7e9ee;
    border-radius: 10px;
    background: #f8f9fb;
}

.menu-reviews-score > strong {
    color: #20242c;
    font-size: 20px;
    line-height: 1;
}

.menu-reviews-score > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.menu-reviews-score small {
    color: #7b808b;
    font-size: 10px;
}

.menu-reviews-stars {
    color: #e39a19;
    font-size: 11px;
    letter-spacing: 1px;
}

.menu-reviews-grid {
    gap: 10px;
}

.menu-review-card {
    min-height: 0;
    padding: 15px;
    border: 1px solid #e7e9ee;
    border-radius: 12px;
    background: #fafbfc;
    box-shadow: none;
}

.menu-review-card-head {
    margin-bottom: 8px;
}

.menu-review-rating {
    color: #d88b0b;
    font-size: 12px;
}

.menu-review-card p {
    color: #454b55;
    font-size: 13px;
    line-height: 1.5;
}

.menu-reviews-all {
    width: fit-content;
    margin-top: 16px;
    color: #2f64c5;
    font-size: 13px;
    font-weight: 700;
}

.menu-reviews-all:hover {
    color: #194da9;
}

.details-reviews-title {
    margin-bottom: 8px;
}

.details-review-item {
    padding: 11px 0;
}

.details-review-stars {
    color: #e39a19;
    letter-spacing: 1px;
}

.details-review-comment {
    margin-top: 6px;
    color: #4e545e;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .menu-reviews-section {
        margin-top: 28px;
        padding: 18px 14px;
        border-radius: 14px;
    }

    .menu-reviews-heading {
        gap: 12px;
    }

    .menu-reviews-score {
        width: 100%;
    }
}
