/* 
 * Restaurant CSS - Refactored
 * Contents:
 * 1. Variables and Root
 * 2. Typography
 * 3. Core Layout & Components
 * 4. Auth Styles
 * 5. Header & Navigation
 * 6. Product Cards
 * 7. Modals & Dialogs
 * 8. Responsive Layouts
 * 9. Checkout Styles
 */

/* ---------- 1. Variables and Root ---------- */

/* Disable text selection across the entire website */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

/* Allow text selection in specific input fields */
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="number"],
input[type="tel"],
input[type="search"],  
textarea {
    -webkit-touch-callout: default;
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ---------- 2. Typography ---------- */
@font-face {
    font-family: 'Stem';
    src: local('Stem Regular'), local('Stem-Regular'),
    url('/assets/fonts/Stem-Regular.woff2') format('woff2'),
    url('/assets/fonts/Stem-Regular.woff') format('woff'),
    url('/assets/fonts/Stem-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Stem';
    src: local('Stem Extra Light'), local('Stem-Extra-Light'),
    url('/assets/fonts/Stem-ExtraLight.woff2') format('woff2'),
    url('/assets/fonts/Stem-ExtraLight.woff') format('woff'),
    url('/assets/fonts/Stem-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Bodoni';
    src: local('Bodoni Bold Italic'), local('Bodoni-Bold-Italic'),
    url('/assets/fonts/bodoni.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

.font-bodoni {
    font-family: 'Bodoni', serif;
    font-weight: 300 !important;
}

.font-stem-r {
    font-family: 'Stem', serif;
    font-weight: 400 !important;
}

.font-stem-el {
    font-family: 'Stem', serif;
    font-weight: 200;
}

.text-cream {
    color: var(--cream);
}

.text-lavr {
    --phoenix-text-opacity: 1;
    color: var(--green) !important;
}

/* ---------- 3. Core Layout & Components ---------- */
.card {
    background-color: var(--cream);
}

/* Button Styles */
.btn-darkgreen {
    --phoenix-btn-color: var(--cream);
    --phoenix-btn-bg: var(--dark-green);
    --phoenix-btn-border-color: transparent;
    --phoenix-btn-hover-color: var(--cream);
    --phoenix-btn-hover-bg: var(--dark-green);
    --phoenix-btn-hover-border-color: rgba(0, 0, 0, 0.2);
    --phoenix-btn-focus-shadow-rgb: 255, 255, 255;
    --phoenix-btn-active-color: var(--cream);
    --phoenix-btn-active-bg: var(--dark-green);
    --phoenix-btn-active-border-color: rgba(0, 0, 0, 0.25);
    --phoenix-btn-active-shadow: initial;
    --phoenix-btn-disabled-color: var(--cream);
    --phoenix-btn-disabled-bg: var(--dark-green);
    --phoenix-btn-disabled-border-color: transparent;
}

.btn-lavr {
    background-color: var(--green);
}

.btn-outline-success {
    --phoenix-btn-color: var(--green);
    --phoenix-btn-border-color: var(--green);
    --phoenix-btn-hover-color: #fff;
    --phoenix-btn-hover-bg: var(--green);
    --phoenix-btn-hover-border-color: var(--green);
    --phoenix-btn-focus-shadow-rgb: 37, 176, 3;
    --phoenix-btn-active-color: #fff;
    --phoenix-btn-active-bg: var(--green);
    --phoenix-btn-active-border-color: var(--green);
    --phoenix-btn-active-shadow: initial;
    --phoenix-btn-disabled-color: var(--green);
    --phoenix-btn-disabled-bg: transparent;
    --phoenix-btn-disabled-border-color: var(--green);
    --phoenix-gradient: none;
}

.btn-primary-lavr, 
.tox .tox-dialog__footer .tox-button:last-child, 
.tox .tox-button {
    --phoenix-btn-color: #fff;
    --phoenix-btn-bg: var(--green);
    --phoenix-btn-border-color: transparent;
    --phoenix-btn-hover-color: #fff;
    --phoenix-btn-hover-bg: var(--green-active);
    --phoenix-btn-hover-border-color: var(--green-active);
    --phoenix-btn-focus-shadow-rgb: 255, 255, 255;
    --phoenix-btn-active-color: #fff;
    --phoenix-btn-active-bg: var(--green);
    --phoenix-btn-active-border-color: var(--green-active);
    --phoenix-btn-active-shadow: initial;
    --phoenix-btn-disabled-color: #fff;
    --phoenix-btn-disabled-bg: var(--green);
    --phoenix-btn-disabled-border-color: transparent;
}

/* Delivery Zone */
.delivery-zone-card {
    border: none;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #F5F4F2;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 8px;
    cursor: pointer;
}

.delivery-zone-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.delivery-zone-card.selected {
    border: 2px solid var(--green) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Горизонтальный слайдер для зон доставки */
.delivery-zones-list {
    position: relative;
    margin-bottom: 16px;
}

.delivery-zones-list::before,
.delivery-zones-list::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 1;
    pointer-events: none;
}

.delivery-zones-list::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.delivery-zones-list::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

.delivery-zones-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px 0;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    position: relative;
}

.delivery-zones-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.delivery-zones-slider .delivery-zone-card {
    min-width: 160px;
    flex: 0 0 auto;
}

.delivery-zones-slider .card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.delivery-zones-slider .zone-info {
    margin-bottom: 8px;
}

.delivery-zones-slider .zone-info h6 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
}

.delivery-zones-slider .delivery-price {
    font-weight: 600;
    font-size: 20px;
    color: var(--green);
}

.delivery-zones-slider .text-success {
    font-size: 12px;
}

.delivery-zones-scroll-hint {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: -10px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .delivery-zones-slider .delivery-zone-card {
        min-width: 140px;
    }
}

/* Компактные зоны доставки с горизонтальным скроллом */
.delivery-zones-scroll {
    position: relative;
    margin-bottom: 8px;
    overflow: hidden;
}

.delivery-zones-scroll::before,
.delivery-zones-scroll::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 1;
    pointer-events: none;
}

.delivery-zones-scroll::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.delivery-zones-scroll::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

.delivery-zones-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px 0;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.delivery-zones-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.delivery-zones-slider .delivery-zone-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 10px 14px;
    min-width: 130px;
    flex: 0 0 auto;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f9f9f9;
}

.delivery-zones-slider .delivery-zone-card:hover {
    border-color: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.delivery-zones-slider .delivery-zone-card.selected {
    border: 2px solid var(--green);
    background-color: #f9fff6;
}

.delivery-zones-slider .zone-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    color: #333;
}

.delivery-zones-slider .zone-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--green);
}

.delivery-zones-slider .zone-free {
    font-size: 11px;
    color: #777;
    margin-top: 2px;
}

.scroll-hint {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* ---------- 4. Auth Styles ---------- */
.auth-bg {
    background-color: var(--green);
}

.auth-form {
    font-family: 'Stem', serif;
    font-weight: bold;
    font-size: 25px;
    color: var(--cream);
}

.auth-form-title {
    text-align: center;
    padding: 10px;
    font-size: 1.2rem;
}

.custom-input {
    color: var(--cream) !important;
    outline: none;
    max-width: 300px;
    background-color: transparent !important;
    border-radius: 15px;
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

.custom-input:focus {
    border-color: var(--cream);
    box-shadow: 0 0 5px var(--dark-green);
}

.custom-input::placeholder {
    color: var(--cream);
    text-align: center;
}

.code-input {
    width: 40px;
    height: 40px;
    text-align: center;
    margin-right: 5px;
    font-size: 24px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.code-input:last-child {
    margin-right: 0;
}

#get-code-button {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

#get-code-button.show {
    opacity: 1;
    pointer-events: auto;
}

/* Auth Video */
#video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#auth-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Auth GIF */
.gif-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#auth-gif {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* ---------- 5. Header & Navigation ---------- */
.header-logo {
    width: 80px;
}

.icon-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
}

.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.icon-nav-item .icon-container {
    background: var(--blue);
}

.icon-nav-item .icon-container:hover,
.icon-nav-item:hover .icon-container {
    background: var(--blue-active);
    color: var(--phoenix-emphasis-bg);
}

.icon-nav-item:hover .nav-label {
    color: var(--phoenix-secondary-color);
}

.sticky-categories {
    position: sticky;
    top: 0;
}

.top-categories {
    background: var(--cream);
}

.banner-img {
    max-height: 700px;
    width: 100%;
    object-fit: cover;
}

/* ---------- 6. Product Cards ---------- */
/* Card Container */
.dish-card {
    transition: transform 0.2s;
    overflow: hidden;
    height: 100%;
}

.dish-card:hover {
    /*transform: translateY(-5px);*/
}

/* Card Image */
.card-img-top {
    height: var(--card-img-height-desktop);
    object-fit: cover;
}

/* Card Title */
.title-container {
    height: 60px;
    overflow: hidden;
    margin-bottom: 8px !important;
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-title {
    margin: 0;
    font-size: var(--font-size-normal);
    line-height: var(--line-height-normal);
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* Quantity Controls in Cards */
.quantity-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 84px;
}

.quantity-btn {
    width: 26px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: bold;
}

.quantity {
    margin: 0 4px;
    font-weight: bold;
}

.add-button {
    width: 40px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: bold;
}

/* 5-column grid */
.col-xl-5-cols, 
.col-xl-2-4 {
    flex: 0 0 auto;
    width: 20%;
    max-width: 20%;
}

/* Product Cards - Burger King Style */
.dish-card {
    border: none;
    overflow: hidden;
    transition: box-shadow 0.2s;
    background-color: #F5F4F2;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-image-container {
    background-color: #F5F4F2;
    border-radius: 24px 24px 0 0;
    position: relative;
    padding: 4px;
    text-align: center;
    overflow: hidden;
}

.card-img-product {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    background-color: #ffffff;
    padding: 8px;
}

.new-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #e31837;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 16px;
    z-index: 2;
    text-transform: uppercase;
}

.card-body {
    padding: 12px;
    background-color: #F5F4F2;
}

.price-block {
    font-size: 24px;
    line-height: 1;
    font-weight: 600;
    margin-bottom: 8px;
}

.dish-card .product-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 8px;
    color: #333;
}

.product-details {
    color: #999;
    font-size: 16px;
    margin-bottom: 16px;
}

.add-button-container {
    width: 100%;
    /*margin-top: 8px;*/
}

.add-button {
    width: 100%;
    height: 28px;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    color: #333;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.disabled-add-button {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 8px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    height: 28px;
}

.quantity-controls .btn {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    font-size: 24px;
    font-weight: 600;
    box-shadow: none;
    border: none;
    background-color: #ffffff;
    color: #000000;
}

.quantity-controls .btn-decrease {
    /*border-right: 1px solid #e8e8e8;*/
}

.quantity-controls .btn-increase {
    /*border-left: 1px solid #e8e8e8;*/
}

.quantity-value {
    flex: 1;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
}

/* ---------- 7. Modals & Dialogs ---------- */
/* Product Detail Modal */
.modal-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-image-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    position: relative;
    overflow: hidden;
}

.product-detail-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Swipe Indicator */
.swipe-indicator-container {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.swipe-indicator {
    height: 5px;
    width: 40px;
    background-color: #c0c0c0;
    border-radius: 3px;
}

/* Modal Quantity Controls */
.quantity-control-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70%;
    gap: 10px;
}

.quantity-btn-modal {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.2rem;
}

.quantity-modal {
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 30px;
    text-align: center;
}

/* Add to Cart Button */
#modalAddToCartBtn {
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
    font-size: 0.95rem;
}

#modalAddBtnContainer {
    display: flex;
    justify-content: center;
}

/* Product Detail Modal - Burger King Style */
.modal-content {
    border: none;
}

.product-image-modal {
    background-color: #ffffff;
}

.product-info-modal {
    background-color: #F5F4F2;
}

.nutrition-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nutrition-header {
    font-size: 16px;
    color: #333;
}

.nutrition-value {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.nutrition-label {
    font-size: 14px;
    color: #777;
}

#modalAddToCartBtn {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    color: #333;
    height: 48px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#productComment {
    border: 1px solid #e8e8e8;
    background-color: #fff;
}

/* Product Detail Modal - Burger King Style */
#productDetailModal .modal-content {
    border: none;
    border-radius: 0;
}

.product-image-full {
    width: 100%;
    overflow: hidden;
}

.product-image-full img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Desktop version - limit image height */
@media (min-width: 768px) {
    .product-image-full img {
        max-height: 400px;
        margin: 0 auto;
    }
}

.product-details-container {
    background-color: #F5F4F2;
}

#productDetailModal .product-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.product-description {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.nutrition-values {
    margin-bottom: 20px;
}

.nutrition-item {
    text-align: center;
}

.nutrition-item .fw-bold {
    font-size: 16px;
    color: #333;
}

.bottom-action-panel {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Восстановление стилей кнопки Далее */
.btn-checkout {
    background-color: var(--green);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 16px;
    border-radius: 12px;
    width: 100%;
    margin-top: 0;
}

.btn-checkout:hover {
    background-color: var(--green-active);
    color: #fff;
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 576px) {
    .cart-item {
        padding: 12px;
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
        min-width: 50px;
        margin-right: 10px;
    }
    
    .cart-item .product-name {
        font-size: 14px;
    }
    
    .cart-item .product-price {
        font-size: 14px;
    }
    
    .cart-item .product-weight {
        font-size: 12px;
    }
    
    .cart-item-controls {
        min-width: 90px;
    }
}

/* Very small phones */
@media (max-width: 320px) {
    .dish-card .product-title {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 14px;
    }
}

/* Large Mobile Screens */
@media (min-width: 376px) and (max-width: 576px) {
    .modal-dialog.modal-fullscreen-md-down {
        height: 80vh !important;
    }
}

/* Large Mobile to Small Tablet */
@media (min-width: 577px) and (max-width: 767.98px) {
    .modal-dialog.modal-fullscreen-md-down {
        height: 75vh !important;
    }
}

/* Mobile Modal Styles */
@media (max-width: 767.98px) {
    .modal-fullscreen-md-down {
        padding-bottom: 0;
    }
    
    .modal-dialog.modal-fullscreen-md-down {
        position: fixed !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: 80vh !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
        transform: none !important;
    }
    
    .modal-fullscreen-md-down .modal-content {
        height: 100% !important;
        border: none !important;
        border-radius: 0 !important;
        border-top-left-radius: 20px !important;
        border-top-right-radius: 20px !important;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.1) !important;
        overflow-y: auto;
    }
    
    .modal.fade .modal-fullscreen-md-down {
        bottom: -100vh !important;
        transition: bottom 0.3s ease-out !important;
    }
    
    .modal.show .modal-fullscreen-md-down {
        bottom: 0 !important;
    }
    
    .modal-backdrop {
        opacity: 0.5 !important;
    }
    
    .modal-image-wrapper {
        padding-bottom: 66.67%;
    }
}

/* Large Screen Sizing */
@media (min-width: 1200px) {
    .container {
        max-width: 1320px;
    }
}

/* Стили для кнопки корзины */
#mobile-cart-button {
    position: fixed;
    border-top: 1px solid #eee;
    bottom: 0px;
    left: 0;
    right: 0;
    padding: 25px;
    background-color: #fff;
    z-index: 1000;
    transition: all 0.3s ease;

}

#mobile-cart-button button {
    background-color: var(--green);
    color: #fff;
    font-weight: 700;
    border-radius: var(--border-radius-button);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 18px;
    font-size: 16px;
    border: none;
    transition: background-color 0.3s ease;
}

#mobile-cart-button button:hover,
#mobile-cart-button button:active {
    background-color: var(--green-active);
    color: #fff;
}

/* Обновленные стили для кнопок в корзине и детальной карточке */
.btn-add-to-cart-modal,
.btn-checkout,
.empty-cart-message button {
    background-color: var(--green) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--border-radius-button) !important;
    border: none !important;
    transition: background-color 0.3s ease !important;
}

.btn-add-to-cart-modal:hover,
.btn-checkout:hover,
.empty-cart-message button:hover {
    background-color: var(--green-active) !important;
    color: #fff !important;
}

/* Мобильные стили для элементов корзины */
@media (max-width: 768px) {
    .cart-item {
        padding: 12px;
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
        min-width: 50px;
        margin-right: 10px;
    }
    
    .cart-item .product-name {
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .cart-item .product-comment {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .cart-item .price-info {
        min-width: 70px;
    }
    
    .cart-item .price-info .fw-bold {
        font-size: 14px;
    }
    
    .cart-item .small.text-muted {
        font-size: 11px;
    }
    
    .cart-item .quantity-controls {
        margin-right: 8px;
    }
    
    .cart-item .btn-decrease,
    .cart-item .btn-increase {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }
}

/* Стили для модальной корзины */
.cart-modal .modal-body {
    padding: 0;
}

.cart-items-scroll-container {
    padding: 16px;
    max-height: 50vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .cart-items-scroll-container {
        padding: 12px;
        max-height: 60vh;
    }
}

/* Стили для модальной корзины со свайпом */
.swipeable-modal .modal-dialog.bottom-sheet {
    margin: 0;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    max-width: 100%;
    transform: translate3d(0, 100%, 0);
    transition: transform 0.3s ease-out;
    height: 90vh; /* Отступ сверху: 10vh */
}

.swipeable-modal.show .modal-dialog.bottom-sheet {
    transform: translate3d(0, 0, 0);
}

.swipeable-modal .modal-content {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border: none;
    height: 100%; /* Теперь высота 100% относительно родителя, а не 100vh */
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.swipeable-modal .modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #fff;
    padding: 0;
}

.cart-items-scroll-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    overflow-y: auto;
}

#cartItemsContainer {
    padding: 0;
    background-color: #fff;
}

.cart-spacer {
    flex-grow: 1;
    background-color: #fff;
    min-height: 20px;
}

.checkout-button-container {
    padding: 16px;
    background-color: white;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
    margin-top: auto;
}

/* Анимация для обозначения свайпа */
@keyframes swipe-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.swipeable-modal .swipe-indicator {
    animation: swipe-pulse 2s infinite;
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 576px) {
    .swipeable-modal .modal-content {
        height: 85vh;
    }
    
    .cart-items-scroll-container {
        max-height: calc(85vh - 150px);
    }
}

/* Стили для пустой корзины */
.empty-cart-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-cart-message i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart-message h4 {
    font-weight: 600;
    margin-bottom: 12px;
}

.empty-cart-message button {
    background-color: var(--green);
    color: #fff;
    border: none;
    margin-top: 20px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
}

.empty-cart-message button:hover {
    background-color: var(--green-active);
}

/* Cart Modal Styling */
.cart-item {
    background-color: #fff;
    border-radius: 0;
    margin-bottom: 0;
    padding: 16px;
    box-shadow: none;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
}

.cart-item-content {
    flex: 1;
    width: 0; /* Важно для правильного переноса текста */
    min-width: 0; /* Обеспечивает корректное поведение flexbox */
}

.cart-item .product-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.cart-item .product-price-weight {
    display: flex;
    align-items: center;
    margin-top: 2px;
    width: 100%;
}

.cart-item .product-price {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-right: 6px;
}

.cart-item .product-weight {
    font-size: 13px;
    color: #999;
}

.cart-item .product-total {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-left: auto;
}

.cart-item-controls {
    margin-left: 12px;
    min-width: 90px; /* Фиксированная ширина для контролей */
}

.cart-item .quantity-controls {
    display: flex;
    align-items: center;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 4px;
}

.cart-item .btn-decrease,
.cart-item .btn-increase {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background-color: transparent;
    border: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.2s ease;
    padding: 0;
}

.cart-item .quantity-value {
    width: 24px;
    text-align: center;
    font-weight: 500;
    font-size: 15px;
}

/* ---------- 8. Responsive Layouts ---------- */
/* Auth Responsiveness */
@media (max-width: 768px) {
    .auth-form-title {
        font-size: 1rem;
        padding: 5px;
    }
    
    #video-container {
        background-color: white;
    }
    
    #auth-video {
        object-fit: contain;
    }
    
    #auth-gif {
        max-width: 90%;
        max-height: 90%;
    }
}

/* Card Responsiveness */
@media (max-width: 767px) {
    .col-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    
    .card-img-top {
        height: var(--card-img-height-mobile);
    }
    
    .title-container {
        height: 54px;
    }
    
    .card-title {
        font-size: var(--font-size-small);
        line-height: var(--line-height-small);
        max-height: 54px;
    }
    
    .card-body {
        padding: 0.75rem !important;
    }
}

/* Mobile responsiveness fixes */
@media (max-width: 767px) {
    /* Стили для мобильных устройств */
    .dish-card {
        height: 100%; 
        margin-bottom: 0;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    /* Фиксированная высота для изображений */
    .product-image-container {
        height: 120px;
        position: relative;
        overflow: hidden;
        border-radius: 16px 16px 0 0;
    }
    
    .card-img-product {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    /* Улучшенное отображение текста */
    .dish-card .product-title {
        font-size: 13px;
        line-height: 1.2;
        max-height: 44px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        margin-bottom: 4px;
    }

    .price-block {
        font-size: 16px;
    }
    
    .product-details {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .product-price {
        font-size: 16px;
        font-weight: 600;
    }
    
    /* Уменьшаем внутренние отступы */
    .dish-card .card-body {
        padding: 10px 12px;
    }
    
    /* Улучшаем стили кнопок */
    .quantity-controls {
        margin-top: 6px;
    }
}

/* Восстановление стилей для ручки свайпа вверху модального окна */
.swipe-handle {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.swipe-indicator {
    width: 40px;
    height: 5px;
    border-radius: 3px;
    background-color: #ddd;
}

.swipeable-modal .modal-header {
    border-bottom: none;
    padding-top: 0;
}

/* Стили для элементов содержимого корзины */
.cart-item-content {
    flex: 1;
    width: 0; /* Важно для правильного переноса текста */
    min-width: 0; /* Обеспечивает корректное поведение flexbox */
    margin-right: 0; /* Убираем правый отступ для лучшего выравнивания */
}

.cart-item-controls {
    margin-left: 12px;
    min-width: 90px; /* Фиксированная ширина для контролей */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* iPhone-специфичные стили для корзины */
@supports (-webkit-touch-callout: none) {
    /* CSS только для iOS */
    .swipeable-modal .modal-dialog.bottom-sheet {
        position: fixed;
        height: 80vh;
        top: auto;
        bottom: 0;
    }
    
    .swipeable-modal .modal-content {
        min-height: unset;
        height: 100%;
    }
    
    .cart-items-scroll-container {
        flex: 1 0 auto;
        min-height: 0;
        max-height: none;
        padding-top: 10px;
    }
    
    #cartItemsContainer {
        padding-bottom: 10px;
    }
    
    .cart-spacer {
        display: none; /* Убираем spacer на iOS */
    }
    
    .checkout-button-container {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        padding-bottom: max(16px, env(safe-area-inset-bottom)); /* Учитываем безопасную зону */
    }
}

/* Общие корректировки для более стабильной верстки на всех устройствах */
.cart-item {
    padding: 12px 16px;
}

.cart-items-scroll-container {
    padding-top: 8px;
}

.checkout-button-container {
    padding: 16px;
    background-color: white;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
    margin-top: auto;
    position: relative;
    z-index: 5;
}

/* Дополнительные исправления для iOS Safari */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) and (stroke-color:transparent) {
        /* Safari-специфичные стили */
        .swipeable-modal .modal-dialog.bottom-sheet {
            max-height: 90vh;
            height: auto;
            -webkit-transform: translate3d(0, 100%, 0);
            transform: translate3d(0, 100%, 0);
        }
        
        .swipeable-modal.show .modal-dialog.bottom-sheet {
            -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
        }
        
        .swipeable-modal .modal-content {
            max-height: 90vh;
            overflow: hidden;
        }
        
        .modal-body {
            display: flex;
            flex-direction: column;
            overflow-y: hidden;
        }
        
        .cart-items-scroll-container {
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding-top: 16px;
        }
        
        .checkout-button-container {
            position: sticky;
            bottom: 0;
            padding-bottom: max(16px, env(safe-area-inset-bottom));
        }
    }
}

/* Стили для детальной карточки в свайп-стиле */
#productDetailModal.swipeable-modal .modal-content {
    background-color: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
}

#productDetailModal .modal-body {
    padding: 0;
    background-color: #fff;
    overflow-y: auto; /* Важно для скроллинга */
    -webkit-overflow-scrolling: touch;
}

#productDetailModal .product-image-full {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f9f9f9;
    position: relative;
    display: flex;
    justify-content: center;
}

#productDetailModal .product-image-full img {
    width: 80%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#productDetailModal .product-details-container {
    background-color: #fff;
    padding: 20px 16px;
}

#productDetailModal .checkout-button-container {
    position: sticky;
    bottom: 0;
    background-color: #fff;
    padding: 16px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    z-index: 5;
}

/* Для iOS Safari */
@supports (-webkit-touch-callout: none) {
    #productDetailModal .modal-dialog.bottom-sheet {
        height: 85vh;
    }
    
    #productDetailModal .modal-body {
        height: calc(85vh - 70px); /* Высота модального окна минус высота хедера */
        max-height: none;
    }
}

/* Стили для контейнера скроллинга в детальной карточке */
.product-details-scroll-container {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

#productDetailModal .modal-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: calc(90vh - 50px);
}

/* Стили для модальных окон в свайп-стиле (общие для корзины и деталей продукта) */
.swipeable-modal .modal-content {
    border-radius: 20px 20px 0 0;
    border: none;
    overflow: hidden;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

.swipeable-modal .modal-dialog {
    margin: 0;
    max-width: 100%;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.swipeable-modal .modal-dialog.bottom-sheet {
    max-height: 90vh;
    overflow: hidden;
}

.swipeable-modal .swipe-handle {
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}

.swipeable-modal .swipe-indicator {
    width: 40px;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 4px;
}

.swipeable-modal .modal-header {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.swipeable-modal .modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: calc(90vh - 130px);
}

/* Общие стили для контейнеров скроллинга */
.cart-items-scroll-container,
.product-scroll-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: #fff;
}

/* Стили для нижней панели с кнопкой оформления заказа */
.checkout-button-container {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 16px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

/* Стили для детальной карточки продукта */
.product-image-full {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f9f9f9;
    position: relative;
}

.product-image-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-details-container {
    padding: 16px;
    background-color: #fff;
}

.product-spacer {
    min-height: 60px;
}

/* iOS специфичные стили */
@supports (-webkit-touch-callout: none) {
    .swipeable-modal .modal-dialog.bottom-sheet {
        height: 78vh;
    }
    
    .swipeable-modal .modal-body {
        height: calc(78vh - 70px);
        max-height: none;
    }
    
    .product-spacer {
        min-height: 100px;
    }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .swipeable-modal .checkout-button-container {
        padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    }
}

/* Стили для внутренних элементов детальной карточки */
.product-title {
    font-size: 20px;
    font-weight: 600;
}

.product-description {
    color: #555;
    line-height: 1.5;
}

.nutrition-values {
    flex-wrap: wrap;
    gap: 12px;
}

.nutrition-item {
    text-align: center;
    min-width: 60px;
}

/* Удаляем старые стили для деталей продукта */
#productDetailModal .modal-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Удаляем старые стили детальной карточки, они теперь объединены с общими свайп-стилями */
.product-details-scroll-container {
    display: none;
}

/* Предотвращаем случайные свайпы на модальном контенте */
.swipeable-modal .modal-body {
    touch-action: pan-y;
}

.product-scroll-container,
.cart-items-scroll-container {
    touch-action: auto;
    -webkit-overflow-scrolling: touch;
}

/* Специально делаем header и swipe-handle чувствительными к свайпам */
.swipeable-modal .modal-header,
.swipeable-modal .swipe-handle {
    touch-action: none;
    cursor: grab;
}

/* Стили для контроля количества в детальной карточке */
.quantity-control-modal {
    display: flex;
    align-items: center;
}

.quantity-control-modal .quantity-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border-radius: 24px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    height: 48px;
    width: 120px;
}

.quantity-control-modal .btn-decrease,
.quantity-control-modal .btn-increase {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background-color: #F5F4F2;
    color: #333;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 4px;
}

.quantity-control-modal .quantity-value {
    flex: 1;
    font-size: 18px;
    text-align: center;
    font-weight: 500;
}

/* Кнопки корзины в зеленом цвете */
.btn-green {
    background-color: #8DAD6E;
    color: white;
    border: none;
    border-radius: 16px;
    padding: 12px 24px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-green:hover {
    background-color: #7A9456;
}

.btn-add-to-cart-modal {
    background-color: #8DAD6E;
    color: white;
    border: none;
    border-radius: 16px;
    padding: 12px 24px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-add-to-cart-modal:hover {
    background-color: #7A9456;
}

/* Стили для комментария в корзине */
.product-comment {
    color: #777;
    font-size: 13px;
    line-height: 1.3;
    margin-top: 4px;
    display: flex;
    align-items: flex-start;
    padding-right: 16px;
}

.product-comment i {
    margin-right: 4px;
    font-size: 12px;
    color: #8DAD6E;
}

/* Add responsive styling for desktop */
@media (min-width: 768px) {
    #productDetailModal .product-image-full {
        height: 350px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #productDetailModal .product-image-full img {
        width: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
}

/* Checkout modal styles */
#checkoutModal .modal-body {
    padding: 0;
}

#checkoutModal .checkout-scroll-container {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#checkoutModal .checkout-button-container {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Make sure buttons have proper spacing */
#checkoutModal .checkout-button-container .btn {
    padding: 12px 20px;
}

/* Adjust the padding for the form on mobile */
@media (max-width: 768px) {
    #checkoutModal form.p-4 {
        padding-bottom: 100px !important; /* Extra space for fixed button at bottom */
    }
}

/* ---------- 9. Checkout Styles ---------- */
.checkout-form {
    padding: 20px 16px;
    background: #ffffff;
}

.checkout-section {
    /*margin-bottom: 24px;*/
    padding-bottom: 24px;
    /*border-bottom: 1px solid #eee;*/
}

.checkout-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333; /* Меняем на черный цвет */
    position: relative;
    padding-left: 15px;
    display: inline-block;
}

.checkout-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 20px;
    background-color: var(--green);
    border-radius: 10px;
}

.checkout-section-title::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #e74c3c; /* красный цвет для точки */
    border-radius: 50%;
    margin-left: 6px;
    position: relative;
    top: -2px;
}

.checkout-section-title:not([data-required="true"])::after {
    display: none;
}

.checkout-section-subtitle {
    font-size: 16px;
    margin-bottom: 8px;
    color: #555;
}

.checkout-input {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 16px;
    height: auto;
    background-color: #f9f9f9;
}

.checkout-input::placeholder {
    color: #aaa;
}

.checkout-input:focus {
    border-color: var(--green);
    box-shadow: none;
}

.selected-address {
    font-size: 15px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 16px;
    padding-left: 8px;
}

.checkout-checkbox {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
}

.checkout-checkbox input {
    margin-right: 8px;
}

.checkout-radio {
    display: block;
    margin-bottom: 16px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    padding-left: 28px;
    position: relative;
}

.checkout-radio input {
    position: absolute;
    left: 0;
    top: 2px;
}

.checkout-currency {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.checkout-collapsible {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.checkout-collapsible i {
    font-size: 14px;
    color: #999;
}

.checkout-collapsible-content {
    padding-top: 12px;
}

.checkout-total {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.checkout-total-title {
    font-size: 20px;
    font-weight: 600;
}

.checkout-total-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--green);
}

.checkout-details {
    margin-top: 10px;
    font-size: 15px;
}

.checkout-details .d-flex {
    margin-bottom: 5px; /* Добавляем отступ между строками */
}

.checkout-details span {
    display: inline-block; /* Улучшаем выравнивание */
}

.checkout-terms {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    line-height: 1.4;
}

.checkout-terms a {
    color: var(--green);
    text-decoration: none;
}

.checkout-button-container {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 16px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.btn-order {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    background-color: var(--green);
    color: white;
    border: none;
    text-align: center;
}

.btn-order:hover,
.btn-order:focus {
    background-color: var(--green-active);
    color: white;
}

@media (max-width: 768px) {
    .checkout-form {
        padding: 16px 12px;
    }
}

/* Зоны доставки в новом стиле */
.delivery-zones-new {
    margin-bottom: 16px;
}

.delivery-zones-new .delivery-zone-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f9f9f9;
}

.delivery-zones-new .delivery-zone-card:hover {
    border-color: var(--green);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.delivery-zones-new .delivery-zone-card.selected {
    border: 2px solid var(--green);
    background-color: #f9fff6;
}

.delivery-zones-new .zone-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
}

.delivery-zones-new .zone-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--green);
}

.delivery-zones-new .zone-free {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

.disabled-fields {
    opacity: 0.6;
}

.disabled-fields input {
    background-color: #f2f2f2;
}

/* Адрес и автозаполнение */
.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover,
.suggestion-item.active {
    background-color: #f5f5f5;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Стили для подсветки зон доставки */
.delivery-zones-error {
    border: 2px solid #dc3545 !important;
    animation: pulse-error 1.5s;
    border-radius: 8px;
}

.zones-highlight {
    border: 2px solid var(--green) !important;
    animation: pulse-highlight 1.5s;
    border-radius: 8px;
}

@keyframes pulse-error {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

@keyframes pulse-highlight {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* Стили для чекаута */
.checkout-button-container {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 16px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    z-index: 5;
    width: 100%;
    border-top: 1px solid #eee;
    /*margin-top: 20px;*/
}

.checkout-total {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.checkout-total-title {
    font-size: 20px;
    font-weight: 600;
}

.checkout-total-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--green);
}

.checkout-details {
    margin-top: 10px;
    font-size: 15px;
    color: #333; /* Делаем текст темнее для лучшей читаемости */
}

.checkout-details span {
    display: inline-block; /* Улучшаем выравнивание */
}

.checkout-terms {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    line-height: 1.4;
}

.checkout-terms a {
    color: var(--green);
    text-decoration: none;
}

.checkout-button-container {
    position: sticky;
    bottom: 0;
    background-color: #fff;
    padding: 16px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    z-index: 5;
    width: 100%;
    border-top: 1px solid #eee;
    /*margin-top: 20px;*/
}

.checkout-button-container .btn {
    white-space: nowrap;
    font-weight: 500;
    font-size: 16px;
}

.checkout-total {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.checkout-total-title {
    font-size: 20px;
    font-weight: 600;
}

.checkout-total-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--green);
}

.checkout-details {
    margin-top: 10px;
    font-size: 15px;
    color: #333; /* Делаем текст темнее для лучшей читаемости */
}

.checkout-details span {
    display: inline-block; /* Улучшаем выравнивание */
    margin-bottom: 5px;
}

.checkout-terms {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

/* Стили для селектора типа заказа */
.order-type-selector {
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.order-type-selector .order-type-option {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
}

.order-type-selector .order-type-option:last-child {
    border-right: none;
}

.order-type-selector .order-type-option.active {
    background: var(--green);
    color: white;
}

/* Скрытие секций для самовывоза */
.pickup-hidden {
    display: none !important;
}

@media (min-width: 992px) {
    .swipeable-modal .modal-dialog.bottom-sheet {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .swipeable-modal .modal-content {
        border-radius: 16px 16px 16px 16px !important;
    }
}

.body-fade {
    transition: opacity 0.5s;
    opacity: 0.2;
    pointer-events: none;
}

.pwa-scroll-overlay {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s;
    opacity: 0;
}

.pwa-scroll-overlay.pwa-scroll-overlay-visible {
    opacity: 1;
}

.pwa-scroll-spinner {
    border: 4px solid #eee;
    border-top: 4px solid var(--green);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 0.8s linear infinite;
}

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

/* Стили для кнопок навигации в оформлении заказа */
.checkout-navigation {
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    margin-top: 20px;
}

.checkout-navigation-btn {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: none;
    border-right: 1px solid #e9ecef;
    color: #333;
    font-size: 16px;
    outline: none;
    box-shadow: none;
}

.checkout-navigation-btn:last-child {
    border-right: none;
}

.checkout-navigation-btn.primary {
    background: var(--green);
    color: white;
}

.checkout-navigation-btn:hover {
    opacity: 0.9;
}

.checkout-navigation-btn:active {
    transform: scale(0.98);
}
