
/* Обновленная цветовая схема с приятным красным */

:root {
    --primary-color: #d13639; /* Приятный красный вместо оранжевого */
    --primary-dark: #b82e31;
    --primary-light: #e05458;
    --accent-color: #552c1c; /* Теплый коричневый для акцентов */
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #ffffff; /* Легкий кремовый фон */
}

body {
    padding-top: 50px; /* Добавлено, чтобы контент не уходил под header */
    background-color: var(--background-light); /* ← добавьте эту строку */
}

.header {
    /* Основные параметры позиционирования */
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    right: 0;
    z-index: 100;
    min-height: 50px;
    
    /* Frosted Glass эффект */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Границы для усиления эффекта стекла */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    border-left: none;
    border-right: none;
    
    /* Тени */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    
    /* Шум через псевдоэлемент */
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    /* SVG шум в виде data URI */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
    
    /* Альтернативный CSS шум (если SVG не подходит) */
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    
    pointer-events: none;
    mix-blend-mode: overlay;
    
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    height: 50px; /* Уменьшено с 70px до 50px */
}

.header-logo {
    margin-right: 40px;
    margin-left: 0; /* Убираем отступ слева полностью */
    display: flex;
    align-items: center;
    position: relative;
    left: -50px; /* Сдвигаем влево на 10px */
}

/* Важные правила для переопределения HTML-структуры логотипа */
.napoli-logo {
    height: 36px; /* Уменьшено с 48px до 36px */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    order: -1;
}

.napoli-logo:hover {
    transform: scale(1.05);
}

/* Решение для логотипа, если он внутри особого контейнера */
header, .header {
    position: fixed;
}

/* Принудительное позиционирование логотипа если требуется */
/*
[class*="logo"], #logo, .logo, .napoli-logo {
    float: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    position: relative !important;
    left: 0 !important;
    right: auto !important;
}
*/

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center; /* Центрируем навигацию */
    margin-left: -50px; /* Сдвигаем навигацию влево на 50px */
}

.header-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Добавлен display: flex */
    gap: 15px; /* Увеличен отступ между пунктами меню */
}

.header-list li {
    display: inline-block;
}

.nav-a {
    color: #222222 !important;
    font-weight: 600;
    font-size: 1rem; /* Уменьшено с 1.1rem до 1rem */
    text-decoration: none;
    padding: 8px 16px; /* Уменьшены вертикальные паддинги с 10px до 8px */
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.nav-a:hover,
.nav-a:focus {
    color: var(--text-light) !important;
    background: var(--primary-dark);
    text-decoration: none;
    outline: none;
    transform: translateY(-2px); /* Легкая анимация при наведении */
}

.nav-a:active {
    transform: translateY(0); /* Возврат при нажатии */
}

.header-profile {
    display: flex;
    align-items: center;
}

.header-profile a {
    color: #222222 !important;
    font-weight: 600;
    font-size: 1rem; /* Уменьшено с 1.1rem до 1rem */
    text-decoration: none;
    padding: 6px 20px; /* Уменьшены паддинги с 8px 18px до 6px 15px */
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
    white-space: nowrap; /* Запрещаем перенос текста */
}

.header-profile a:hover,
.header-profile a:focus {
    color: var(--primary-color) !important;
    background: var(--text-light);
    text-decoration: none;
    outline: none;
    border-color: var(--text-light);
}

.header-order {
    display: flex;
    align-items: center;
    
}

.header-order a {
    color: #1bbf3a !important;
    font-weight: 600;
    font-size: 1rem; /* Уменьшено с 1.1rem до 1rem */
    text-decoration: none;
    padding: 6px 15px; /* Уменьшены паддинги с 8px 18px до 6px 15px */
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
    margin-left: 10px;
    
}

.pizza-builder-special-card {
    border: none;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 18rem;
    max-width: 18rem;
    display: flex;
    flex-direction: column;
    margin: 16px;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.header-order a:hover,
.header-order a:focus {
    color: var(--primary-color) !important;
    background: var(--text-light);
    text-decoration: none;
    outline: none;
    border-color: var(--text-light);
}


/* Добавляем эффект активной страницы */
.nav-a.active {
    background: rgba(255,255,255,0.15);
    font-weight: 700;
}

.btn-success {
    background-color: #1bbf3a !important;
    border-color: #1bbf3a !important;
    color: #fff !important;
    transition: background 0.2s, border 0.2s;
}
.btn-success:hover, .btn-success:focus {
    background-color: #16992e !important;
    border-color: #16992e !important;
    color: #fff !important;
}

.pizza-qty-counter {
    display: flex;
    align-items: center;
    background: transparent; /* убираем фон */
    border-radius: 8px;
    box-shadow: none;
    border: none;
    width: 80px;           /* уменьшили ширину */
    margin-left: 4px;
    padding: 0;
    height: 32px;          /* компактная высота */
}

.pizza-qty-counter .btn-qty-minus,
.pizza-qty-counter .btn-qty-plus {
    border: none;
    font-size: 1.1rem;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.pizza-qty-counter .btn-qty-minus {
    color: #e74c3c; /* красный */
}

.pizza-qty-counter .btn-qty-plus {
    color: #1bbf3a; /* зелёный */
}

.pizza-qty-counter .btn-qty-minus:hover {
    background: #ffeaea;
    color: #c0392b;
}

.pizza-qty-counter .btn-qty-plus:hover {
    background: #eaffea;
    color: #16992e;
}

.pizza-qty-counter .qty-input {
    border: none;
    background: transparent;
    width: 24px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    outline: none;
    box-shadow: none;
    padding: 0;
    margin: 0 2px;
    height: 26px;
    line-height: 26px;
}

/* Убираем стрелки у input[type=number] */
.pizza-qty-counter .qty-input::-webkit-inner-spin-button,
.pizza-qty-counter .qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-main-row {
    display: flex;
    align-items: flex-start;
    gap: 32px; /* расстояние между колонками */
}

.cart-items {
    flex: 0 0 60%;      /* ширина левой колонки (можно 55-65%) */
    max-width: 700px;   /* ограничение максимальной ширины */
}

.cart-summary {
    flex: 1 1 0;
    min-width: 320px;
    max-width: 400px;
}

@media (max-width: 600px) {
    .cart-item .row.g-0 {
        flex-wrap: nowrap !important;
        display: flex !important;
        align-items: stretch;
    }
    .cart-item .col-md-2,
    .cart-item .col-md-7,
    .cart-item .col-md-3 {
        flex: unset;
        width: unset;
        max-width: unset;
        padding: 0 !important;
    }
    .cart-item .col-md-2 {
        flex: 0 0 70px;
        max-width: 70px;
        min-width: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .cart-item img.img-fluid {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 10px;
    }
    .cart-item .col-md-7 {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 10px !important;
        padding-right: 5px !important;
    }
    .cart-item .col-md-3 {
        flex: 0 0 90px;
        max-width: 90px;
        min-width: 70px;
        padding-left: 5px !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-end;
    }
    .cart-item .card-body {
        padding: 8px !important;
    }
    .cart-item h5,
    .cart-item p,
    .cart-item ul,
    .cart-item .quantity-control {
        font-size: 0.92rem;
        margin-bottom: 4px;
    }
    .cart-item .quantity-control {
        margin-bottom: 6px;
    }
}

@media (max-width: 900px) {
    .cart-main-row {
        flex-direction: column;
        gap: 0;
    }
    .cart-items,
    .cart-summary {
        max-width: 100%;
        width: 100%;
    }
    .cart-summary {
        margin-left: 0 !important;
        margin-top: 24px;
    }
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start; /* Выравнивание по левому краю */
        padding: 10px;
        height: auto;
    }
    
    .header-logo {
        margin: 0;
        order: 1;
        flex: 0 0 auto;
        position: relative;
        left: 15px; /* Сдвигаем ВПРАВО на мобильных */
    }
    
    .header-nav {
        width: 100%;
        justify-content: flex-start;
        margin: 10px 0;
    }
    
    .header-list {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    
    .header-profile {
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 10px;
    }
    
    .nav-a, 
    .header-profile a {
        font-size: 1rem;
        padding: 8px 15px;
    }

    .header-order {
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 10px;
    }
    
    .nav-a, 
    .header-order a {
        font-size: 1rem;
        padding: 8px 15px;
    }
}

/* Исправление для мобильных устройств - добавьте в конец base1.css */

@media (max-width: 768px) {
    /* Убираем ограничения контейнера на мобильных */
    .profile-page .container {
        max-width: 100% !important;
        padding: 20px 15px !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Убираем ограничения колонок */
    .profile-page .col-md-10,
    .profile-page .col-lg-10 {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Убираем внутренние отступы у row */
    .profile-page .row {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    /* Исправляем карточки */
    .profile-page .card {
        border-radius: 10px !important;
        margin-bottom: 20px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    /* Увеличиваем отступы внутри карточек для лучшей читаемости */
    .profile-page .card-body {
        padding: 20px !important;
    }
    
    /* Исправляем список профиля */
    .profile-page .list-group-item {
        padding: 15px !important;
        font-size: 16px !important;
        line-height: 1.4 !important;
        display: block !important; /* Убираем flex на мобильных */
    }
    
    .profile-page .list-group-item strong {
        display: block !important;
        margin-bottom: 5px !important;
        color: #666 !important;
        font-size: 14px !important;
        min-width: auto !important;
    }
    
    /* Исправляем карточки заказов */
    .profile-page .order-card {
        margin-bottom: 15px !important;
        border-radius: 10px !important;
    }
    
    .profile-page .order-header {
        padding: 15px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }
    
    .profile-page .order-body {
        padding: 15px !important;
    }
    
    /* Исправляем статус бейджи */
    .profile-page .status-badge {
        font-size: 14px !important;
        padding: 10px 15px !important;
        margin-bottom: 15px !important;
        border-radius: 8px !important;
        display: block !important;
        text-align: center !important;
    }
    
    /* Исправляем список заказов в истории */
    .profile-page .order-items {
        margin: 15px 0 !important;
        padding-left: 0 !important;
    }
    
    .profile-page .order-items li {
        padding: 10px 0 !important;
        font-size: 15px !important;
        line-height: 1.4 !important;
        border-bottom: 1px solid #eee !important;
    }
    
    .profile-page .order-items ul {
        padding-left: 20px !important;
        margin-top: 8px !important;
    }
    
    .profile-page .order-items ul li {
        font-size: 14px !important;
        padding: 5px 0 !important;
        color: #666 !important;
    }
    
    /* Исправляем кнопки */
    .profile-page .btn {
        width: 100% !important;
        padding: 15px !important;
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    
    /* Исправляем заголовки */
    .profile-page h3,
    .profile-page h4 {
        font-size: 20px !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }
    
    /* Исправляем модальное окно */
    .profile-page .modal-dialog {
        margin: 10px !important;
        max-width: calc(100% - 20px) !important;
    }
    
    .profile-page .modal-body {
        padding: 20px !important;
    }
    
    .profile-page .form-control {
        font-size: 16px !important;
        padding: 15px !important;
    }
    
    /* Исправляем прогресс бар */
    .profile-page .custom-progress {
        margin: 10px 0 !important;
        height: 25px !important;
    }
    
    .profile-page .custom-progress .progress-bar {
        line-height: 25px !important;
        font-size: 14px !important;
    }
    
    /* Исправляем рейтинг */
    .profile-page .rating {
        margin: 10px 0 !important;
        text-align: center !important;
    }
    
    .profile-page .rating:not(:checked) > label {
        font-size: 25px !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .profile-page .container {
        padding: 15px 10px !important;
    }
    
    .profile-page .card-body {
        padding: 15px !important;
        padding-top: 10px !important; /* Добавляем отступ сверху */
    }
    
    .profile-page .list-group-item {
        padding: 12px !important;
        font-size: 15px !important;
    }
    
    .profile-page .list-group-item strong {
        font-size: 13px !important;
    }
    
    .profile-page .order-header,
    .profile-page .order-body {
        padding: 12px !important;
    }
    
    .profile-page h3,
    .profile-page h4 {
        font-size: 18px !important;
    }
}

/* Убираем паддинг сверху для основного контейнера на мобильных */
@media (max-width: 768px) {
    body {
        padding-top: 70px !important; /* Увеличиваем отступ под header */
    }
    
    .container {
        padding-top: 0 !important; /* Убираем двойной отступ */
    }
}

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 350px;
    background-color: #4CAF50;
    color: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    transform: translateX(400px);
    transition: transform 0.3s ease-out;
    display: flex;
    align-items: center;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.error {
    background-color: #f44336;
}

.toast-icon {
    font-size: 1.2rem;
    margin-right: 12px;
}

.toast-message {
    flex-grow: 1;
}

.toast-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
}

.radio-inputs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  border-radius: 0.4rem;
  background-color: #EEE;
  box-sizing: border-box;
  box-shadow: 0 0 0px 1px rgba(0, 0, 0, 0.06);
  padding: 0.15rem;
  width: 100%;           /* Теперь занимает всю ширину карточки */
  max-width: 100%;       /* Не выходит за пределы карточки */
  font-size: 13px;       /* Сделано чуть меньше */
  margin-bottom: 0.5rem; /* Отступ снизу для компактности */
  gap: 0.2rem;           /* Небольшой отступ между кнопками */
}

.radio-inputs .radio {
  flex: 1 1 0;
  text-align: center;
  min-width: 0;          /* Позволяет сжиматься */
}

.radio-inputs .radio input {
  display: none;
}

.radio-inputs .radio .name {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
  border: none;
  padding: .35rem 0;
  color: rgba(51, 65, 85, 1);
  transition: all .15s ease-in-out;
  font-size: 13px;
  min-width: 0;
  word-break: break-word;
}

.radio-inputs .radio input:checked + .name {
  background-color: #fff;
  font-weight: 600;
}

.mobile-menu-toggle,
.mobile-cart-icon,
.mobile-menu {
    display: none;
}
/* Для мобильных устройств */
@media (max-width: 768px) {
    
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;         /* Меню с самого верха */
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;   /* На всю ширину экрана */
        height: 100vh;  /* На всю высоту экрана */
        background: var(--primary-color);
        z-index: 1100;  /* Выше, чем у header */
        padding: 20px;
        overflow-y: auto;
    }
    .mobile-menu.active {
        display: block;
    }

    .header {
        min-height: 60px;
    }
    
    .header-container {
        flex-direction: row; /* Горизонтальное расположение */
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
        height: 60px;
    }
    
    /* Логотип слева */
    .header-logo {
        margin: 0;
        order: 1;
        flex: 0 0 auto;
    }
    
    .napoli-logo {
        height: 32px;
    }
    
    /* Скрываем обычную навигацию на мобильных */
    .header-nav,
    .header-profile,
    .header-order {
        display: none;
    }
    
    /* Контейнер для мобильных иконок справа */
    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 15px;
        order: 3;
    }
    
    /* Иконка корзины */
    .mobile-cart-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--text-light);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 8px;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .mobile-cart-icon:hover {
        background: #e8f0fa;
    }
    
    /* Счетчик товаров в корзине */
    .cart-count {
        position: absolute;
        top: -5px;
        right: -5px;
        background: var(--text-light);
        color: var(--primary-color);
        border-radius: 50%;
        width: 20px;
        height: 20px;
        font-size: 12px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
    }
    
    /* Кнопка гамбургер-меню */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--text-light);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 8px;
        border-radius: 8px;
        transition: all 0.3s ease;
        width: 40px;
        height: 40px;
    }
    
    
    /* Анимированные линии гамбургера */
    .hamburger {
        display: flex;
        flex-direction: column;
        width: 20px;
        height: 15px;
        justify-content: space-between;
    }
    
    .hamburger span {
        display: block;
        height: 2px;
        width: 100%;
        background: #222 !important; /* Чёрный цвет полосок */
        border-radius: 1px;
        transition: all 0.3s ease;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Мобильное меню */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        z-index: 1000;
        padding: 20px;
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    /* Навигационные ссылки в мобильном меню */
    .mobile-menu-list {
        list-style: none;
        margin: 0 0 30px 0;
        padding: 0;
    }
    
    .mobile-menu-list li {
        margin-bottom: 10px;
    }
    
    .mobile-nav-a {
        color: #222 !important;
        font-weight: 600;
        font-size: 1.1rem;
        text-decoration: none;
        padding: 15px 20px;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: block;
        text-align: center;
        border: 1px solid rgba(0, 0, 0, 0.2);
    }
    
    .mobile-nav-a:hover,
    .mobile-nav-a.active {
        background: var(--primary-dark);
        border-color: var(--text-light);
    }
    
    /* Разделитель */
    .mobile-menu-divider {
        height: 1px;
        background: rgba(255,255,255,0.2);
        margin: 20px 0;
    }
    
    /* Кнопки профиля и заказа в мобильном меню */
    .mobile-menu-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-profile-btn,
    .mobile-order-btn {
        color: #222 !important;
        font-weight: 600;
        font-size: 1.1rem;
        text-decoration: none;
        padding: 15px 20px;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: block;
        text-align: center;
        border: 2px solid var(--text-light);
        background: rgba(0, 0, 0, 0.1);
    }
    
    .mobile-profile-btn:hover,
    .mobile-order-btn:hover {
        color: var(--primary-color) !important;
        background: #222;
    }
}

/* Очень маленькие телефоны */
@media (max-width: 480px) {
    .header-container {
        padding: 8px 10px;
    }
    
    .napoli-logo {
        height: 28px;
    }
    
    .mobile-actions {
        gap: 10px;
    }
    
    .mobile-cart-icon,
    .mobile-menu-toggle {
        padding: 6px;
        font-size: 1.3rem;
    }
    
    .mobile-menu {
        padding: 15px;
    }
    
    .mobile-nav-a,
    .mobile-profile-btn,
    .mobile-order-btn {
        font-size: 1rem;
        padding: 12px 15px;
    }
}


.main-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* расстояние между карточками */
    justify-content: center; /* или center, если хотите по центру */
}

/* Добавьте для основного контейнера или body: */
body {
    background: linear-gradient(120deg, #f8e8e8 0%, #e8f0fa 100%);
    padding-top: 50px; /* Добавлено, чтобы контент не уходил под header */
}

.ingredient-card {
    border: none;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 140px;
    height: 470px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 16px 12px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    cursor: default; /* Убираем pointer */
    backdrop-filter: blur(10px);
}

.ingredient-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    filter: brightness(1) saturate(1.1);
}

.main-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Было 16px, стало 8px */
    justify-content: center;
}

#ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}
.ingredient-card {
    margin: 0; /* убираем лишние внешние отступы */
}

.ingredient-card.selected {
    border-color: #007bff !important;
    box-shadow: 0 0 10px #007bff33;
}

/* Для мобильных устройств можно уменьшить размер ещё сильнее */
@media (max-width: 600px) {
    .ingredient-card {
        width: 100px;
        height: 430px;
        padding: 4px;
    }
    .ingredient-card img {
        width: 170px;
        height: 170px;
        object-fit: cover; /* Тоже cover для мобильных */
    }
}






.chef-container {
    max-width: none;
    width: 100%;           /* исправлено с 100vw */
    margin: 0;
    padding: 0;
    height: calc(100vh - 50px); /* если header 50px */
    box-sizing: border-box;
}
.chef-header {
    text-align: center;
    margin-bottom: 2rem;
}

.chef-title {
    font-size: 2.2rem;
    font-weight: 300;
    color: #2c3e50;
    letter-spacing: -0.5px;
    margin: 0;
}

.chef-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;           /* исправлено с 100vw */
    height: 100%;
    min-height: 100%;
    box-sizing: border-box;
}

/* Колонки */
.chef-column {
    height: 100%;
    border-radius: 0; /* если не нужны скругления по краям */
    padding: 0;       /* убираем паддинг, если нужен контент во всю ширину */
    box-sizing: border-box;
}


body.staff-page {
    background: #ffffff; /* твой нужный цвет или градиент */
}

/* Заголовки колонок */
.column-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid;
    position: relative;
}

.column-header h4 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
}

.column-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: currentColor;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Цвета колонок */
.new-orders .column-header {
    border-color: #e74c3c;
}

.new-orders .column-header h4 {
    color: #e74c3c;
}

.in-progress .column-header {
    border-color: #f39c12;
}

.in-progress .column-header h4 {
    color: #f39c12;
}

.ready-orders .column-header {
    border-color: #27ae60;
}

.ready-orders .column-header h4 {
    color: #27ae60;
}

/* Список заказов */
.orders-list {
    max-height: calc(70vh - 100px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.orders-list::-webkit-scrollbar {
    width: 4px;
}

.orders-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

.orders-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

/* Карточки заказов */
.order-card {
    background: white;
    border-radius: 0.8rem;
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.order-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.order-card.processing {
    border-left: 4px solid #f39c12;
}

.order-card.completed {
    border-left: 4px solid #27ae60;
}

/* Заголовок заказа */
.order-header {
    margin-bottom: 1rem;
}

.order-number {
    font-size: 1.1rem;
    color: #2c3e50;
    display: block;
    margin-bottom: 0.3rem;
}

.order-address {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.order-note {
    color: #95a5a6;
    font-size: 0.8rem;
}

.order-staff {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.finish-time {
    color: #27ae60;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Элементы заказа */
.order-items {
    margin-bottom: 1rem;
}

.item-row {
    margin-bottom: 0.8rem;
    padding: 0.6rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 3px solid #e9ecef;
}

.item-name {
    font-weight: 500;
    color: #2c3e50;
    display: block;
    margin-bottom: 0.2rem;
}

.item-details {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.item-addons, .item-ingredients {
    margin-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.addon-tag, .ingredient-tag {
    background: #e3f2fd;
    color: #1976d2;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    border: 1px solid #bbdefb;
}

.ingredient-tag {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #e1bee7;
}

/* Прогресс заказа */
.order-progress {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: #fff8e1;
    border-radius: 0.5rem;
    border: 1px solid #ffecb3;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #f57c00;
}

.start-time {
    color: #ef6c00;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.timer {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    animation: timer-pulse 2s infinite;
}

@keyframes timer-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Формы */
.order-form {
    border-top: 1px solid #ecf0f1;
    padding-top: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.time-input, .speed-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: white;
}

.time-input:focus, .speed-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.time-input {
    text-align: center;
}

/* Кнопки */
.form-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-success, .btn-secondary {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #219a52;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ecf0f1;
    color: #7f8c8d;
}

.btn-secondary:hover {
    background: #d5dbdb;
    color: #2c3e50;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    color: #bdc3c7;
    font-style: italic;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 0.8rem;
    border: 2px dashed #e9ecef;
}

/* Исправление карточек заказов для staff dashboard */
.staff-page .order-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid #f0f0f0;
    margin-bottom: 16px;
    padding: 0;
}

.staff-page .order-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.staff-page .scheduled-badge {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 12px 16px;
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.staff-page .scheduled-badge strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.staff-page .scheduled-time {
    font-size: 0.85rem;
    font-weight: normal;
    opacity: 0.9;
}

.staff-page .order-header {
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.staff-page .order-number {
    font-size: 16px;
    font-weight: 600;
    color: #1c1c1e;
    margin: 0;
    line-height: 1.2;
}

.staff-page .order-staff {
    font-size: 14px;
    color: #007bff;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.staff-page .order-address {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.3;
    word-wrap: break-word;
}

.staff-page .order-note {
    margin: 0;
    padding: 8px 12px;
    background: #e3f2fd;
    border-radius: 6px;
    border-left: 3px solid #2196f3;
}

.staff-page .order-note small {
    font-size: 13px;
    color: #1565c0;
    display: block;
    line-height: 1.3;
    word-wrap: break-word;
}

.staff-page .finish-time {
    font-size: 14px;
    color: #28a745;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.staff-page .order-items {
    padding: 16px;
    margin: 0;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.staff-page .item-row {
    margin-bottom: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #e9ecef;
}

.staff-page .item-row:last-child {
    margin-bottom: 0;
}

.staff-page .item-name {
    font-weight: 600;
    color: #1c1c1e;
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.3;
}

.staff-page .item-details {
    color: #6c757d;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
    line-height: 1.2;
}

.staff-page .item-addons,
.staff-page .item-ingredients {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.staff-page .addon-tag {
    background: #e3f2fd;
    color: #1976d2;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #bbdefb;
    white-space: nowrap;
}

.staff-page .ingredient-tag {
    background: #f3e5f5;
    color: #7b1fa2;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #e1bee7;
    white-space: nowrap;
}

.staff-page .order-progress {
    padding: 16px;
    background: #fff8e1;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
}

.staff-page .progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #f57c00;
    gap: 16px;
}

.staff-page .start-time {
    color: #ef6c00;
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
}

.staff-page .timer-badge {
    text-align: center;
    margin: 0;
}

.staff-page .timer {
    background: #ff9800;
    color: white;
    padding: 8px 16px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}

.staff-page .prep-time-form {
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin: 0;
}

.staff-page .form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.staff-page .form-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.staff-page .form-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
    margin: 0;
}

.staff-page .time-input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 70px;
    text-align: center;
    background: white;
}

.staff-page .btn-update {
    padding: 6px 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.staff-page .btn-update:hover {
    background: #0056b3;
}

.staff-page .order-form {
    padding: 16px;
    background: #ffffff;
    margin: 0;
}

.staff-page .form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.staff-page .btn-primary,
.staff-page .btn-success,
.staff-page .btn-secondary {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-block;
    white-space: nowrap;
}

.staff-page .btn-primary {
    background: #007bff;
    color: white;
}

.staff-page .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.staff-page .btn-success {
    background: #28a745;
    color: white;
}

.staff-page .btn-success:hover {
    background: #1e7e34;
    transform: translateY(-1px);
}

.staff-page .btn-secondary {
    background: #6c757d;
    color: white;
}

.staff-page .btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

/* Исправление анимации кастрюли на мобильных устройствах */
@media (max-width: 768px) {
    .cooking-loader-scene {
        width: 120px !important;
        height: 120px !important;
        transform: scale(0.3) !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
        overflow: visible !important;
    }
    
    /* Принудительное центрирование для всех элементов кастрюли */
    .cooking-loader-stove,
    .cooking-loader-pot,
    .cooking-loader-lid {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .cooking-loader-ring {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .cooking-loader-steam {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    /* Убираем возможные конфликты с другими стилями */
    .status-badge .cooking-loader-scene {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Исправление для очень маленьких экранов */
    @media (max-width: 480px) {
        .cooking-loader-scene {
            width: 100px !important;
            height: 100px !important;
            transform: scale(0.25) !important;
        }
    }
    
    /* Дополнительное исправление для контейнера статуса */
    .status-badge {
        text-align: center !important;
        position: relative !important;
    }
    
    .status-badge .cooking-loader-scene {
        position: relative !important;
        margin: 0 auto !important;
        left: 0 !important;
        right: 0 !important;
    }
}

/* Дополнительное исправление для всех размеров экрана */
.cooking-loader-scene {
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.rating:not(:checked) > input {
  position: absolute;
  appearance: none;
}

.rating:not(:checked) > label {
  float: right;
  cursor: pointer;
  font-size: 30px;
  color: #666;
}

.rating:not(:checked) > label:before {
  content: '★';
}

.rating > input:checked + label:hover,
.rating > input:checked + label:hover ~ label,

.rating > input:checked ~ label {
  color: #ffa723;
}

.custom-progress {
    width: 100%;
    max-width: 600px; /* Увеличьте значение, если нужно */
    height: 20px;
    background-color: #e9ecef;
    margin: 0 auto; /* Центрирование */
    border-radius: 5px; /* Закругленные углы */
}

.custom-progress .progress-bar {
    background-color: #28a745;
    height: 100%;
    text-align: center;
    color: white;
    line-height: 20px;
}

/* Исправление футера для профиля */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: auto;
    border-top: 1px solid #404040;
    
    /* ДОБАВЛЯЕМ ЭТИ СТРОКИ ДЛЯ УСТРАНЕНИЯ ЗАЗОРОВ */
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    position: relative;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

/* Убираем все возможные отступы у body */
body {
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 50px; /* Только верхний отступ под header */
    overflow-x: hidden; /* Убираем горизонтальную прокрутку */
}

/* Убираем отступы у html */
html {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* Убираем отступы у основного контейнера */
.container {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 50px;
}

/* Специально для профиля - убираем возможные отступы */
.profile-page {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

.profile-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    width: auto;
    box-sizing: border-box;
}

/* Убираем отступы у всех элементов Bootstrap */
.row {
    margin-left: 0;
    margin-right: 0;
}

/* Альтернативное решение - если проблема остается */
.footer .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.footer .row {
    margin: 0 !important;
    padding: 0 40px; /* Добавляем внутренние отступы только контенту */
}

/* Медиа-запросы для мобильных */
@media (max-width: 768px) {
    .footer .row {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .footer .row {
        padding: 0 15px;
    }
}

.banner-slider {
    border-radius: 20px; /* Увеличьте значение для более закруглённых углов */
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    margin-top: 1.5rem;
}

/* Для адаптивности на разных экранах */
@media (max-width: 768px) {
    .banner-slider {
        border-radius: 15px; /* Средний радиус для планшетов */
        margin-bottom: 1.5rem;
        margin-top: 5rem;
    }
}

@media (max-width: 480px) {
    .banner-slider {
        border-radius: 12px; /* Меньший радиус для мобильных */
        margin-bottom: 1rem;
        margin-top: 5rem;
    }
}

@media (max-width: 360px) {
    .banner-slider {
        border-radius: 10px; /* Ещё меньший радиус для очень маленьких экранов */
        margin-top: 5rem;
    }
}

.green-rounded-box {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    width: 100%;
    text-align: center;
}

.green-rounded-box p {
    margin-bottom: 0;
    font-size: 1rem;
}

.green-rounded-box strong {
    color: #155724;
}

.newtons-cradle {
 --uib-size: 50px;
 --uib-speed: 1.2s;
 --uib-color: #474554;
 position: relative;
 display: flex;
 align-items: center;
 justify-content: center;
 width: var(--uib-size);
 height: var(--uib-size);
}

.newtons-cradle__dot {
 position: relative;
 display: flex;
 align-items: center;
 height: 100%;
 width: 25%;
 transform-origin: center top;
}

.newtons-cradle__dot::after {
 content: '';
 display: block;
 width: 100%;
 height: 25%;
 border-radius: 50%;
 background-color: var(--uib-color);
}

.newtons-cradle__dot:first-child {
 animation: swing var(--uib-speed) linear infinite;
}

.newtons-cradle__dot:last-child {
 animation: swing2 var(--uib-speed) linear infinite;
}

@keyframes swing {
 0% {
  transform: rotate(0deg);
  animation-timing-function: ease-out;
 }

 25% {
  transform: rotate(70deg);
  animation-timing-function: ease-in;
 }

 50% {
  transform: rotate(0deg);
  animation-timing-function: linear;
 }
}

@keyframes swing2 {
 0% {
  transform: rotate(0deg);
  animation-timing-function: linear;
 }

 50% {
  transform: rotate(0deg);
  animation-timing-function: ease-out;
 }

 75% {
  transform: rotate(-70deg);
  animation-timing-function: ease-in;
 }
}

.loader {
  width: fit-content;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
}

.truckWrapper {
  width: 200px;
  height: 100px;
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
  justify-content: flex-end;
  overflow-x: hidden;
}
/* truck upper body */
.truckBody {
  width: 130px;
  height: fit-content;
  margin-bottom: 6px;
  animation: motion 1s linear infinite;
}
/* truck suspension animation*/
@keyframes motion {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(3px);
  }
  100% {
    transform: translateY(0px);
  }
}
/* truck's tires */
.truckTires {
  width: 130px;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 10px 0px 15px;
  position: absolute;
  bottom: 0;
}
.truckTires svg {
  width: 24px;
}

.road {
  width: 100%;
  height: 1.5px;
  background-color: #282828;
  position: relative;
  bottom: 0;
  align-self: flex-end;
  border-radius: 3px;
}
.road::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 100%;
  background-color: #282828;
  right: -50%;
  border-radius: 3px;
  animation: roadAnimation 1.4s linear infinite;
  border-left: 10px solid white;
}
.road::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 100%;
  background-color: #282828;
  right: -65%;
  border-radius: 3px;
  animation: roadAnimation 1.4s linear infinite;
  border-left: 4px solid white;
}

.lampPost {
  position: absolute;
  bottom: 0;
  right: -90%;
  height: 90px;
  animation: roadAnimation 1.4s linear infinite;
}

@keyframes roadAnimation {
  0% {
    transform: translateX(0px);
  }
  100% {
    transform: translateX(-350px);
  }
}

.cooking-loader-container {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            background: #f0f0f0;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: Arial, sans-serif;
        }

        .cooking-loader-scene {
            width: 320px;
            height: 320px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Плита */
        .cooking-loader-stove {
            position: absolute;
            width: 220px;
            height: 140px;
            background: linear-gradient(135deg, #333333 0%, #252525 100%);
            border-radius: 8px;
            bottom: 80px;
            z-index: 1;
            box-shadow: 
                0 6px 16px rgba(0, 0, 0, 0.25),
                inset 0 2px 0 rgba(255, 255, 255, 0.1);
        }

        /* Нагревательный элемент */
        .cooking-loader-ring {
            position: absolute;
            width: 120px;
            height: 120px;
            border: 6px solid #FF6B6B;
            border-radius: 50%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 2;
            animation: cooking-loader-ringGlow 3s ease-in-out infinite;
        }

        /* Кастрюля */
        .cooking-loader-pot {
            position: absolute;
            width: 100px;
            height: 120px;
            background: linear-gradient(135deg, #E8E8E8 0%, #D8D8D8 100%);
            border-radius: 6px;
            bottom: 120px;
            z-index: 3;
            animation: cooking-loader-potShadow 4s ease-in-out alternate infinite;
            box-shadow: 
                0 4px 12px rgba(0, 0, 0, 0.15),
                inset 0 2px 0 rgba(255, 255, 255, 0.4);
        }

        .cooking-loader-pot::before {
            content: '';
            position: absolute;
            top: 12px;
            left: 12px;
            right: 12px;
            height: 6px;
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
            border-radius: 2px;
        }

        /* Ручки кастрюли */
        .cooking-loader-handle {
            position: absolute;
            width: 8px;
            height: 28px;
            background: linear-gradient(145deg, #B8B8B8 0%, #989898 100%);
            border-radius: 4px;
            top: 50%;
            transform: translateY(-50%);
            box-shadow: 
                0 2px 4px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        .cooking-loader-handle::before {
            content: '';
            position: absolute;
            width: 4px;
            height: 12px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
            top: 6px;
            left: 2px;
        }

        .cooking-loader-handle.cooking-loader-left {
            left: -16px;
        }

        .cooking-loader-handle.cooking-loader-right {
            right: -16px;
        }

        /* Крышка */
        .cooking-loader-lid {
            position: absolute;
            width: 110px;
            height: 24px;
            background: linear-gradient(135deg, #DADADA 0%, #C8C8C8 100%);
            border-radius: 50%;
            bottom: 230px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 4;
            animation: cooking-loader-lidWobble 2.5s ease-in-out infinite;
            box-shadow: 
                0 2px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        .cooking-loader-lid::before {
            content: '';
            position: absolute;
            width: 80px;
            height: 3px;
            background: rgba(255, 255, 255, 0.4);
            border-radius: 50%;
            top: 6px;
            left: 50%;
            transform: translateX(-50%);
        }

        .cooking-loader-lid::after {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            background: linear-gradient(145deg, #B0B0B0 0%, #909090 100%);
            border-radius: 50%;
            top: -8px;
            left: 50%;
            transform: translateX(-50%);
            box-shadow: 
                0 2px 4px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        /* Пузырьки */
        .cooking-loader-bubbles {
            position: absolute;
            width: 100%;
            height: 100%;
        }

        .cooking-loader-bubble {
            position: absolute;
            background: #FFFFFF;
            border-radius: 50%;
            opacity: 0.8;
        }

        .cooking-loader-bubble.cooking-loader-b1 {
            width: 6px;
            height: 6px;
            left: 35%;
            bottom: 30px;
            animation: cooking-loader-bubblePop 1s ease-out infinite;
            animation-delay: 0s;
        }

        .cooking-loader-bubble.cooking-loader-b2 {
            width: 8px;
            height: 8px;
            left: 60%;
            bottom: 40px;
            animation: cooking-loader-bubblePop 1s ease-out infinite;
            animation-delay: 0.3s;
        }

        .cooking-loader-bubble.cooking-loader-b3 {
            width: 10px;
            height: 10px;
            left: 45%;
            bottom: 25px;
            animation: cooking-loader-bubblePop 1s ease-out infinite;
            animation-delay: 0.6s;
        }

        /* Пар */
        .cooking-loader-steam {
            position: absolute;
            z-index: 5;
            bottom: 250px;
            left: 50%;
            transform: translateX(-50%);
            filter: blur(0.5px);
        }

        .cooking-loader-steam::before,
        .cooking-loader-steam::after {
            content: '';
            position: absolute;
            background: #FFFFFF;
            border-radius: 50%;
            opacity: 0.9;
        }

        .cooking-loader-steam.cooking-loader-s1 {
            animation: cooking-loader-steamRise 4s linear infinite;
            animation-delay: 0s;
        }

        .cooking-loader-steam.cooking-loader-s1::before {
            width: 18px;
            height: 18px;
            left: -20px;
        }

        .cooking-loader-steam.cooking-loader-s1::after {
            width: 22px;
            height: 22px;
            left: -5px;
            top: -8px;
        }

        .cooking-loader-steam.cooking-loader-s2 {
            animation: cooking-loader-steamRise 4s linear infinite;
            animation-delay: 1.3s;
        }

        .cooking-loader-steam.cooking-loader-s2::before {
            width: 16px;
            height: 16px;
            left: 5px;
        }

        .cooking-loader-steam.cooking-loader-s2::after {
            width: 20px;
            height: 20px;
            left: 15px;
            top: -6px;
        }

        .cooking-loader-steam.cooking-loader-s3 {
            animation: cooking-loader-steamRise 4s linear infinite;
            animation-delay: 2.1s;
        }

        .cooking-loader-steam.cooking-loader-s3::before {
            width: 14px;
            height: 14px;
            left: -10px;
        }

        .cooking-loader-steam.cooking-loader-s3::after {
            width: 18px;
            height: 18px;
            left: 0px;
            top: -5px;
        }

        /* Анимации */
        @keyframes cooking-loader-steamRise {
            0% {
                transform: translateX(-50%) translateY(0) scale(0.8);
                opacity: 1;
            }
            100% {
                transform: translateX(-50%) translateY(-80px) scale(1.2);
                opacity: 0;
            }
        }

        @keyframes cooking-loader-lidWobble {
            0%, 100% {
                transform: translateX(-50%) rotate(-2deg);
            }
            50% {
                transform: translateX(-50%) rotate(2deg);
            }
        }

        @keyframes cooking-loader-ringGlow {
            0%, 100% {
                opacity: 0.6;
                box-shadow: 0 0 0 rgba(255, 107, 107, 0);
            }
            50% {
                opacity: 1;
                box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
            }
        }

        @keyframes cooking-loader-bubblePop {
            0% {
                transform: translateY(0) scale(0.6);
                opacity: 1;
            }
            100% {
                transform: translateY(-40px) scale(1);
                opacity: 0;
            }
        }

        @keyframes cooking-loader-potShadow {
            0% {
                box-shadow: 
                    0 4px 12px rgba(0, 0, 0, 0.15),
                    inset 0 2px 0 rgba(255, 255, 255, 0.4);
            }
            100% {
                box-shadow: 
                    0 8px 20px rgba(0, 0, 0, 0.25),
                    inset 0 2px 0 rgba(255, 255, 255, 0.4);
            }
        }

        /* Опциональный текст загрузки */
        .cooking-loader-loading-text {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: #2D2D2D;
            font-size: 16px;
            font-weight: 500;
        }

.status-badge {
    position: relative;
    padding: 12px 15px; /* Уменьшено с 20px до 12px */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Уменьшено с 15px до 8px */
    overflow: visible !important;
    margin-bottom: 8px; /* Добавлен небольшой отступ снизу */
}

/* Уменьшение отступов у иконок */
.status-badge .fas {
    margin-bottom: 3px; /* Уменьшено с 5px до 3px */
}

/* Убираем лишние отступы у анимаций */
.status-badge > div:last-child {
    margin-top: 5px; /* Уменьшено с 10px до 5px */
}

/* Компактная структура order-body */
.order-body {
    padding: 15px; /* Уменьшено если было больше */
    display: flex;
    flex-direction: column;
    gap: 10px; /* Единый отступ между всеми элементами */
}

/* Убираем лишние отступы у блока времени приготовления */
.order-body > div {
    margin-bottom: 0 !important; /* Убираем все bottom margins */
}

/* Компактный стиль для времени приготовления */
.timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    margin-top: 5px; /* Небольшой отступ сверху */
}

/* Компактный стиль для общей суммы */
.order-total {
    margin-top: 5px !important;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

/* Компактный стиль для состава заказа */
.order-items-block {
    margin: 8px 0 !important;
}

.order-items {
    margin: 5px 0 !important;
    padding-left: 20px !important;
}

.order-items li {
    margin-bottom: 5px !important;
    padding: 5px 0 !important;
}

.order-items ul {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

.order-items ul li {
    margin-bottom: 3px !important;
    padding: 2px 0 !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .status-badge {
        padding: 10px 12px; /* Ещё более компактно на мобильных */
        gap: 6px;
    }
    
    .order-body {
        padding: 12px;
        gap: 8px;
    }
    
    .timer-badge {
        margin-left: 5px;
        margin-top: 3px;
    }
}


@media (max-width: 768px) {
    .profile-page .card:first-child {
        margin-top: 40px !important; /* Больший отступ на мобильных */
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .profile-page .card:first-child {
        margin-top: 50px !important; /* Ещё больший отступ для маленьких экранов */
    }
}

.delivery-time-buttons {
    display: flex;
    gap: 4px;
}

.delivery-time-buttons .btn {
    flex: 1;
    min-width: 70px;
    text-align: center;
}

.delivery-time-buttons .btn.active {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

@media (max-width: 900px) {
  .cooking-loader-scene {
    zoom: 0.7;
    transform: scale(0.7);
    margin: 0 auto 10px auto;
    max-width: 180px;
    max-height: 120px;
    display: block;
    position: relative;
    left: 0;
    right: 0;
  }
  .loader {
    zoom: 0.7;
    transform: scale(0.7);
    margin: 0 auto 10px auto;
    max-width: 220px;
    max-height: 120px;
    display: block;
    position: relative;
    left: 0;
    right: 0;
  }
  .truckWrapper {
    max-width: 220px;
    margin: 0 auto;
    left: 0;
    right: 0;
  }
}

/* Для совсем маленьких экранов */
@media (max-width: 600px) {
  .cooking-loader-scene {
    zoom: 0.5;
    transform: scale(0.5);
    max-width: 120px;
    max-height: 80px;
    margin-bottom: 6px;
  }
  .loader {
    zoom: 0.5;
    transform: scale(0.5);
    max-width: 140px;
    max-height: 70px;
    margin-bottom: 6px;
  }
  .truckWrapper {
    max-width: 140px;
  }
}