@import url('fonts.css');

* {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

button,
a {
    outline: none;
}

body {
    margin: 0;
    font-family: 'Constantine-Bold', sans-serif;
    background-color: #f5f5f5;
}

.body-no-scroll {
    overflow: hidden;
}

ul {
    list-style-type: none;
}

/* ================================ */
/* === Стили для поиска === */
/* ================================ */

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
    margin: 140px 10px 20px 10px;
    cursor: pointer;
    font-size: 18px;
    color: black;
}

.search-button i {
    margin-right: 5px;
}

.search-button span {
    font-family: 'Gilroy-Regular', sans-serif;
    font-weight: 600;
}

.search-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85%;
    background-color: #f5f5f5;
    z-index: 4;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    display: none;
    overflow-y: auto;
}

.search-modal.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}


.search-modal__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
}

.search-modal__header--back-button {
    height: 45px;
    background-color: #e0e0e09f;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-input-container {
    display: flex;
    align-items: center;
    background-color: #e0e0e09f;
    border-radius: 10px;
    padding: 0 20px 0 10px;
    height: 45px;
    width: 100%;
}

.search-input {
    font-family: 'Gilroy-Regular', sans-serif;
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    padding: 0 10px;
}

.search-input::placeholder {
    color: #888;
    font-size: 14px;
}

.search-input-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    opacity: 0.5;
}

.search-icon {
    height: 24px;
    width: 24px;
    color: #888;
}

.search-input-suffix {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 5px;
    color: #888;
}

.search-input-suffix i {
    font-size: 20px;
}

.search-modal__results--wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
    padding: 0 15px;
}

.search-modal__results--no-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 50px;
}

.search-modal__results--no-data p {
    font-family: 'Gilroy-Regular', sans-serif;
    font-size: 15px;
    margin: 30px 0 0 0;
}

/* ================================ */
/* === Конец стилей для поиска === */
/* ================================ */



/* ================================ */
/* === Стили для меню === */
/* ================================ */

#menuWrapper {
    margin-bottom: 100px;
}

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

.menu-section__scrollable {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px;
    scrollbar-width: none;
}

.new-menu-item {
    display: flex;
    align-items: center;
    padding: 5px;
    border: 1px solid #008080;
    border-radius: 12px;
    background-color: #fff;
    min-width: 240px;
    max-height: 110px;
}

.new-menu-item__image-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.new-menu-item__image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 16px;
    border-radius: 8px;
}

.new-menu-item__badge {
    position: absolute;
    top: 6px;
    right: -5px;
    background-color: #4CAF50;
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 50px;
    font-family: 'Constantine-light', sans-serif;
}

.new-menu-item__details {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.new-menu-item__name {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 8px;
    text-align: center;
    width: 80%;
}

.new-menu-item__description {
    font-size: 14px;
    margin: 0 0 8px;
    color: #666;
}

.new-menu-item__price {
    font-size: 14px;
    font-weight: bold;
    color: #000;
    margin: 0;
    text-align: center;
    color: #008080;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-radius: 25px;
    background-color: #fff;
    min-width: 130px;
    position: relative;
}

.menu-item__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #4CAF50;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 50px;
    font-family: 'Constantine-light', sans-serif;
}

.menu-item__badge--top {
    background-color: red;
}

.menu-item__badge--limited {
    background-color: rgba(233, 30, 99, 1);
}

.menu-item__image {
    width: 100%;
    height: 210px;
    display: block;
    object-fit: contain;
}

.menu-item__text {
    display: flex;
    flex-grow: 1;
    width: 100%;
    flex-direction: column;
    justify-content: end;
}

.menu-item__name {
    font-family: 'Gilroy-Regular', sans-serif;
    margin: 15px 20px 15px 15px;
    text-align: left;
    font-weight: 400;
    font-size: 17px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-item__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Gilroy-light', sans-serif;
    font-weight: 400;
    font-size: 15px;
    margin: 5px 0px 5px 10px;
    display: block;
}

.menu-item__price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Gilroy-light', sans-serif;
    font-weight: 400;
    font-size: 16px;
    margin: 0 5px 5px 5px;
}

.menu-item__icon {
    opacity: 0.5;
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.menu-item .arrow-icon {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 18px;
    color: #008080;
    cursor: pointer;
}

.menu-section__title-wrapper {
    display: flex;
    justify-content: center;
}

.menu-section__title-wrapper--left {
    justify-content: flex-start;
}

.menu-section__title {
    font-size: 18px;
    padding: 0 0 0 15px;
    font-family: 'Constantine-Bold', sans-serif;
    text-align: left;
}

.menu-section__title--category {
    color: #fff;
    font-size: 19px;
    letter-spacing: 0.5px;
    font-family: 'Gilroy-Regular', sans-serif;
    text-align: center;
    background: #008080;
    border-radius: 30px;
    padding: 12px 20px;
    margin: 25px auto;
    width: fit-content;
}

/* ================================ */
/* === Конец стили для меню === */
/* ================================ */

/* ================================ */
/* === Стили для нижний панели === */
/* ================================ */

.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    overflow-x: auto !important;
    scroll-behavior: smooth;
    white-space: nowrap !important;
    max-width: 100%;
}


.bottom-nav button {
    background: rgba(222, 222, 222, 0.75);
    color: rgba(0, 0, 0, 0.9);
    font-size: 17px;
    border: none;
    padding: 18px;
    border-radius: 40px;
    cursor: pointer;
    margin: 0 4px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    font-family: 'Gilroy-Regular', sans-serif;
}

.bottom-nav button.active {
    background-color: #00796b;
    color: #ffffff;
}

.bottom-nav::-webkit-scrollbar {
    height: 8px;
}

.bottom-nav::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.bottom-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.bottom-nav::-webkit-scrollbar {
    display: none;
}

/* ================================ */
/* === Конец стилей для нижний панели === */
/* ================================ */

/* ================================ */
/* === Старт стилей выбор филиал по карточке товара === */
/* ================================ */

/* App Bar */
.app-bar {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: end;
    padding: 10px 0 0 0;
    background-color: #008080;
    color: white;
    font-size: 16px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.current-branch-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
}

/* Контейнер dropdown */
.dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding-left: 10px;
}

/* Метка языка */
.language-label {
    font-size: 16px;
}

/* Выпадающее меню */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: -130%;
    z-index: 1000;
    background: white;
    border-radius: 8px;
    min-width: 100px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    padding: 5px 0;
}

/* Активное состояние */
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Пункты меню */
.dropdown-item {
    padding: 12px 15px;
    font-size: 17px;
    text-align: center;
    display: block;
    text-decoration: none;
    color: black;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f0f0f0;
}

.dropdown-item--grey {
    opacity: 0.2;
}

.dropdown-item--border {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.branch-icon-container {
    background: white;
    border-radius: 50%;
    padding: 5px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.branch-icon {
    font-size: 18px;
    color: #008080;
}

/* Branch Selector Modal */
.branch-selector {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    margin: 0;
    padding: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.branch-selector.active {
    display: block;
    transform: translateY(0);
    margin: 0;
}

.branch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.branch-header h2 {
    font-family: 'Stem-SemiLight', sans-serif;
    font-weight: 500;
    font-size: 17px;
    text-align: center;
}

.close-branch-btn {
    background: #DEE6EB;
    border: none;
    border-radius: 30px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-right: 8px;
}

.close-branch-btn svg,
.trash-btn svg {
    display: block;
}

.close-branch-btn:hover,
.trash-btn:hover {
    opacity: 0.8;
}

.close-selector {
    background: #dee6eb;
    border: none;
    border-radius: 50%;
    padding: 5px 10px;
    font-size: 18px;
    cursor: pointer;
}

.branch-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 20px 15px;
    box-sizing: border-box;
}

.branch-item {
    font-family: 'Constantine-light', sans-serif;
    background: #dee6eb;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
    color: black;
}

.branch-item:hover {
    background: #c6d3db;
}

/* Banner Content */
.app-info {
    display: flex;
    align-items: center;
    color: white;
    font-size: 14px;
    padding: 10px;
    background-color: cadetblue;
    box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.2);
}

.app-info img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-right: 10px;
}

.app-details {
    display: flex;
    flex-direction: column;
}

.app-details .app-name {
    font-weight: bold;
}

.cashback-message {
    font-size: 12px;
    color: #fff;
}

.story-content {
    margin-top: 95px;
}

.story-content img {
    width: 100%;
}

.app-view-button {
    background-color: #ffffff;
    color: #008080;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    margin-left: 10px;
}

/* ================================ */
/* === Конец стилей выбор филиала для нижний панели === */
/* ================================ */

/* ================================ */
/* === Старт стилей по карточке товара === */
/* ================================ */

/* Анимация открытия */
@keyframes popupOpen {
    from {
        opacity: 0;
        transform: translateY(-20%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация закрытия */
@keyframes popupClose {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20%);
    }
}

/* Попап изначально скрыт */
.popup {
    display: none;
    position: fixed;
    top: 0;
    /* Начало экрана */
    left: 0;
    /* Левый край экрана */
    width: 100%;
    /* Полная ширина экрана */
    height: 100%;
    /* Полная высота экрана */
    background: #f5f5f5;
    z-index: 100;
    opacity: 0;
    overflow-y: auto;
    /* Прокрутка содержимого */
    border-radius: 0;
    /* Убираем скругленные углы */
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* Анимация */
}


/* Анимация для открытия */
.popup.open {
    display: block;
    animation: popupOpen 0.4s forwards;
    opacity: 1;
}

/* Анимация для закрытия */
.popup.closing {
    animation: popupClose 0.4s forwards;
}

.popup__back-button {
    position: fixed;
    top: 15px;
    left: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 2px 4px;
    border-radius: 50px;
}

.popup__back-button::before {
    content: '';
    position: absolute;
    top: -1.5px;
    left: 0;
    width: 100%;
    height: 100%;
    background: #DEE6EB;
    border-radius: 50px;
    z-index: -1;
}

.popup__back-button i {
    font-size: 25px;
    color: #4B4E55;
}

/* Заголовок попапа */
.popup__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 20px 0 20px;
    gap: 5px;
}

/* Изображение */
.popup__image {
    width: 90%;
    object-fit: contain;
    border-radius: 8px;
}

/* Название */
.popup__title {
    font-family: 'Gilroy-Regular', sans-serif;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
}

/* Описание */
.popup__description {
    font-family: 'Gilroy-Regular', sans-serif;
    font-size: 16px;
    margin: 0;
    text-align: center;
}

.popup__sections {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 30px;
    background: #DEE6EB;
    margin: 18px 20px 15px 20px;
}

/* Общий стиль для кнопок */
.popup__tab {
    flex: 1;
    text-align: center;
    background: none;
    border: none;
    color: black;
    padding: 12px 0 14px 0;
    font-size: 14px;
    font-family: 'Gilroy-Semibold', sans-serif;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Активная кнопка */
.popup__tab--active {
    background: #808080;
    color: white;
}

.popup__bottom-option {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
}

.popup__add-to-cart-button--wrapper {
    margin: 10px 20px 20px 20px;
}

/* Кнопка добавления в корзину */
.popup__add-to-cart-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #008080;
    color: white;
    border: none;
    padding: 15px 20px;
    width: 100%;
    text-align: center;
    font-size: 15px;
    font-family: 'Constantine-light', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.popup__add-to-cart-text {
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 1.3px;
}

.popup__add-to-cart-icon {
    width: 16px;
    height: 16px;
    margin: 0 5px;
}

.popup__add-to-cart-price {
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 1.3px;
    font-family: 'Constantine-light', sans-serif;
}

/* Большие модификаторы */
.popup__modificators-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px;
}

.popup__big-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 15px 10px;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    min-height: 115px;
}

.popup__big-card-delete {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.popup__delete-button {
    width: 24px;
    height: 24px;
    background-color: #d8d8d8;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup__delete-button svg {
    width: 16px;
    height: 16px;
    stroke: red;
}

.popup__big-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup__big-card-image {
    max-height: 120px;
    height: 100%;
    object-fit: cover;
}

.popup__big-card-title {
    font-size: 15px;
    font-family: 'Gilroy-Regular', sans-serif;
    font-weight: 300;
    color: #333;
    margin: 0;
}

.popup__bottom-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px;
    justify-content: flex-start;
}

.popup__small-card {
    text-align: center;
    width: 80px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup__small-card-plus {
    background: #fff;
    width: 80px;
    height: 65px;
    border-radius: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 64px;
    font-family: 'RondoAncientTwo', sans-serif;
    color: #063f3f;
}

.popup__small-card-title {
    margin-top: 10px;
    color: #555;
    text-align: center;
    font-size: 15px;
    font-family: 'Gilroy-Regular', sans-serif;
    font-weight: 300;
}

/* Затемненный фон */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.bottom-sheet-overlay.visible {
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
    pointer-events: auto;
}

/* Bottom sheet */
.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    background: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    transition: bottom 0.3s ease-in-out;
    z-index: 101;
}

.bottom-sheet__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.bottom-sheet__item-details {
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.bottom-sheet__title {
    font-family: 'Stem-SemiLight', sans-serif;
    font-weight: 500;
    font-size: 17px;
    text-align: center;
}

.bottom-sheet__close-button {
    background: #DEE6EB;
    border: none;
    border-radius: 30px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-right: 8px;
}

.bottom-sheet__close-button svg {
    width: 18px;
    height: 18px;
    stroke: #4B4E55;
}

.bottom-sheet__content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 5px;
    margin-top: 16px;
    justify-items: center;
}

.bottom-sheet__content--two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.bottom-sheet__content--three-columns {
    grid-template-columns: repeat(3, 1fr);
}

.bottom-sheet__item {
    display: grid;
    grid-template-rows: min-content;
    justify-items: center;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
}

.bottom-sheet__item-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 8px;
}

.bottom-sheet__item-image--selected {
    border: 3px solid orange;
    border-radius: 50%;
    box-sizing: border-box;
}

.bottom-sheet__item-title {
    font-family: 'Stem-SemiLight', sans-serif;
    font-size: 14px;
    margin: 3px 0 0 0;
    font-weight: 500;
}

.bottom-sheet__item-desc {
    font-family: 'Stem-SemiLight', sans-serif;
    font-size: 12px;
    margin: 8px 0 0 0;
    color: #666;
}

.bottom-sheet__item-price {
    font-family: 'Stem-SemiLight', sans-serif;
    font-size: 12px;
    color: #666;
    margin: 8px 0 5px 0;
}


.bottom-sheet__no-content {
    text-align: center;
    font-size: 14px;
    color: #999;
}

.comment-input-container {
    flex: 1;
    margin: 15px;
    font-size: 16px;
}

.comment-input-container .comment-input {
    font-size: 16px;
}

.comment-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 101;
    transition: transform 0.3s ease;
    max-height: 80%;
}

.comment-button-wrapper {
    margin: 15px;
}

.comment-input {
    width: 100%;
    height: 100px;
    font-size: 14px;
    padding: 0;
    margin: 0;
    border-radius: 0;
    border: none;
    font-family: sans-serif;
}

.comment-input:focus {
    border: none;
    outline: none;
}

.comment-submit-button {
    display: flex;
    justify-content: center;
    background: #008080;
    color: white;
    border: none;
    padding: 15px 20px;
    width: 100%;
    text-align: center;
    font-size: 15px;
    font-family: 'Stem-SemiLight', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.comment-submit-button:hover {
    background: #046847;
}

/* ================================ */
/* === Конец стилей для карточки товара === */
/* ================================ */

/* ================================ */
/* === LOADING стили === */
/* ================================ */


/* Общий стиль для загрузочного оверлея */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loading-overlay.hidden {
    display: none;
}

.loading-overlay__content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loading-overlay__content p {
    font-family: 'Gilroy-Regular', sans-serif;
    margin-left: 10px;
    display: block;
}

.loader {
    border: 3.5px solid #f3f3f3;
    border-top: 3.5px solid #008080;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-overlay__message {
    margin-top: 15px;
    font-size: 16px;
    color: #333;
}

/* ================================ */
/* === Конец LOADING для карточки товара === */
/* ================================ */

/* ================================ */
/* === error-overlay стили === */
/* ================================ */

.error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.error-overlay.hidden {
    display: none;
}

.error-overlay__content {
    text-align: center;
    background: white;
    padding: 20px;
}

.error-overlay__message {
    margin-bottom: 20px;
    font-size: 16px;
    font-family: 'Gilroy-Regular', sans-serif;
    color: black;
}

.error-overlay__button {
    background-color: #008080;
    font-family: 'Gilroy-Regular', sans-serif;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.error-overlay__button:hover {
    background-color: #006666;
}

/* ================================ */
/* === error-overlay для карточки товара === */
/* ================================ */

/* ================================ */
/* === SCANNER стили === */
/* ================================ */

.scanner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.scanner__video-container {
    width: 80%;
    max-width: 400px;
    min-width: 200px;
    min-height: 200px;
    border: none;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scanner__button {
    position: absolute;
    bottom: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.scanner__button--cancel {
    right: 20px;
}

.scanner__button--toggle {
    left: 20px;
}

/* ================================ */
/* === Конец стилей для SCANNER === */
/* ================================ */

/* ================================ */
/* === Стили для Flash Message === */
/* ================================ */

#flash-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    pointer-events: none;
}

.flash-message {
    position: absolute;
    /* Абсолютное позиционирование */
    top: 0;
    /* Всегда сверху */
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border-radius: 18px;
    padding: 15px 20px;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    pointer-events: all;
    animation: fade-in-out 3s ease forwards;
    font-family: 'Gilroy-Regular', sans-serif;
}

.flash-message.Info {
    background-color: rgba(33, 33, 33, 0.75);
}

.flash-message.error {
    background-color: #dc3545;
}

@keyframes fade-in-out {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ================================ */
/* === Конец стилей для Flash Message === */
/* ================================ */

.no-scroll {
    overflow: hidden;
}

.overlay-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.overlay-main.active {
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
    pointer-events: auto;
}

#cart-button {
    display: none;
    background: rgba(182, 182, 182, 0.75);
    padding: 0;
    font-size: 16px;
}

.cart-button__items-container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
}

.cart-button__items-container img {
    width: 65px;
    margin: 0 0 0 3px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.cart-button__total-price {
    margin: 0 5px 0 15px;
    font-family: 'Gilroy-Regular', sans-serif;
    font-weight: 600;
}

.section-btn {
    flex: 1;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 20px;
    background: white;
}

.section-btn.active {
    background-color: #a0a0a0;
    color: white;
}

.close-option {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.option-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.option-content .choice-card {
    flex: 1 1 30%;
    max-width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.choice-card img {
    width: 80%;
}

.option-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1010;
}

.option-modal.active {
    display: block;
    transform: translateY(0);
}

.choice-card.comment-added {
    border-color: #4CAF50;
}

.choice-card.comment-added h3 {
    color: #4CAF50;
}

.option-modal-content {
    padding: 20px;
}

.choice-card.selected {
    border: 2px solid orange;
}

.choice-card {
    border: 2px solid transparent;
    background: #fff;
    padding: 10px;
    margin: 5px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.choice-card img {
    max-width: 200px;
    height: auto;
    margin-bottom: 8px;
}

.choice-card span {
    display: block;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

textarea {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    margin-top: 10px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 15px;
    background: #008080;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 100px;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 1001;
}

.back-btn i {
    font-size: 32px;
}



.add-to-cart-btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}





.selected-items-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 10px;
}


.selected-item {
    border: 1px solid #ccc;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    margin: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.selected-item img {
    max-width: 200px;
    height: auto;
    margin-bottom: 8px;
}

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.bottom-options-container {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

.bottom-choice-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
    height: 100px;
    padding: 10px;
    margin-left: 15px;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
}



.choice-card .description {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.choice-card .price {
    font-size: 14px;
    font-weight: bold;
    color: #007f00;
    margin-top: 2px;
}

.cart-modal {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    width: 100%;
    min-height: 80%;
    max-height: 90%;
    background: #ffffff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    transition: bottom 0.3s ease-in-out;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-modal.active {
    bottom: 0;
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.cart-modal-header h2 {
    font-family: 'Stem-SemiLight', sans-serif;
    font-weight: 500;
    font-size: 17px;
    text-align: center;
}

.trash-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: red;
    width: 30px;
}

.trash-btn i {
    margin: 5px 0 0 0;
}

.close-cart-btn {
    background: #DEE6EB;
    border: none;
    border-radius: 30px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-right: 8px;
}

.cart-items-container--title {
    padding: 0 20px;
}

.cart-item--title {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;

}

.cart-item--title p {
    font-size: 16px;
    font-family: 'Constantine-light', sans-serif;
    font-weight: 600;
    margin: 15px 0 0 0;
}

.cart-items-container {
    margin-top: 5px;
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    z-index: 1;
}

.cart-item ul {
    padding: 0;
    margin: 0;
}

.cart-item ul li {
    font-family: 'Gilroy-light', sans-serif;
    font-size: 14px;
    color: #4B4B4B;
    margin: 5px 0;
}

.cart-item .item-info {
    flex: 1;
    margin-right: 10px;
}

.cart-item .item-info h4 {
    font-size: 16px;
    font-family: 'Constantine-light', sans-serif;
    font-weight: 600;
    margin: 0;
}

.cart-item .item-info p {
    font-family: 'Gilroy-light', sans-serif;
    font-size: 13px;
    margin: 5px 0 0;
    color: #424242;
}

.cart-item .item-price {
    display: inline-block;
    padding: 4px 20px;
    border-radius: 30px;
    background-color: #DEE6EB;
    font-family: 'Constantine-light', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #000;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-footer {
    position: sticky;
    bottom: 0;
    border-top: 1px solid #eaeaea;
    padding: 16px;
    z-index: 2;
}

.people-counter,
.branch-selector,
.cart-comment {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}


.create-order-btn {
    width: 100%;
    font-family: 'Constantine-Bold', sans-serif;
    padding: 12px;
    background: #008080;
    color: white;
    border: none;
    border-radius: 35px;
    cursor: pointer;
    font-size: 16px;
}

.cart-item-container {
    position: relative;
    overflow: hidden;
    border-bottom: 0.5px solid #eaeaea;
}

.cart-item.swiped {
    transform: translateX(-80px);
}

.delete-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background-color: #ff4d4f;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    outline: none;
    cursor: pointer;
    z-index: 0;
    transform: translateX(100%);
    font-family: 'Stem-Light', sans-serif;
    font-weight: 300;
}

.delete-btn.hidden {
    display: none;
}

.cart-item.swiped .delete-btn {
    opacity: 1;
}

.cart-item-container.swiped .delete-btn {
    transform: translateX(0);
}

.cart-item-container.swiped .cart-item {
    transform: translateX(-80px);
}

@media (min-width: 460px) {
    body {
        display: none;
    }

    body::before {
        content: 'Этот сайт доступен только на мобильных устройствах.';
        display: block;
        text-align: center;
        padding: 20px;
        font-size: 24px;
        color: #333;
    }
}

@media (max-width: 420px) {

    .menu-item__image {
        height: 200px;
    }
}

@media (max-width: 410px) {

    .menu-item__image {
        height: 180px;
    }
}

@media (max-width: 379px) {

    .menu-item__image {
        height: 170px;
    }
}

@media (max-width: 359px) {

    .menu-item__image {
        height: 165px;
    }
}

@media (max-width: 320px) {

    .menu-item__image {
        height: 160px;
    }
}