/* Основний стиль для сторінки */
body {
    font-family: Arial, sans-serif;
    color: white; /* Колір тексту за замовчуванням */
    margin: 0;
    padding: 0;
    background-color: #000;
}

/* Заголовок */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    background-color: #000;
}

.header-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 250px;
}

/* Контейнер для слайдів */
.marquee-container {
    width: 280px; /* Фіксована ширина контейнера */
    height: 500px; /* Висота контейнера */
    overflow: hidden; /* Приховує вміст, що виходить за межі */
    margin: 20px auto; /* Центрування контейнера */
    border: 3px solid #000; /* Чорна рамка для стилю */
    border-radius: 10px; /* Заокруглені кути */
    position: relative; /* Для анімації всередині */
}

/* Контейнер з слайдами */
.marquee-infinite {
    display: flex; /* Вирівнюємо слайди горизонтально */
    position: absolute;
    animation: scrollInfinite 13s linear infinite alternate-reverse; /* Анімація руху */
}

/* Слайди */
.marquee-infinite img {
    width: 280px; /* Кожен слайд займає всю ширину контейнера */
    height: 500px; /* Висота відповідає контейнеру */
    object-fit: cover; /* Адаптація зображення до контейнера */
    flex-shrink: 0; /* Не дозволяє слайдам стискатись */
}

/* Анімація */
@keyframes scrollInfinite {
    0% {
        transform: translateX(0); /* Початкова позиція — перший слайд у контейнері */
    }
    100% {
        transform: translateX(-50%); /* Кінцева позиція — повністю вийти за межи контейнера */
    }
}


h1 {
    margin: 0;
    font-size: 36px;
}
h1, h2, h3 {
    color: white;
    text-shadow: 2px 2px 5px red;
    text-align: center;
}
/* Секція меню */

/* Елементи меню (карточки товарів у стилі макета) */
.pizza-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: radial-gradient(circle at top, #262626 0%, #111 55%, #070707 100%);
    border-radius: 26px;
    padding: 28px 24px 26px;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    box-sizing: border-box;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
    transform: translateY(0) scale(1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.pizza-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.06), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.pizza-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
}

.pizza-item .pizza-image {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.pizza-item h2 {
    font-size: 24px;
    color: white;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Текст усередині картки піци */
.pizza-details {
    text-align: center;
    position: relative;
    z-index: 1;
}

.pizza-item p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 6px 0 10px;
}

.pizza-item .actions {
    margin-top: 10px;
}

.pizza-item button {
    background-color: black;
    color: white;
    border: none;
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}


.pizza-item button:hover {
    background-color: #e5533e;
}

/* Салати, снеки, напої – такі ж "картки" */
.salad-item,
.snack-item,
.drink-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: radial-gradient(circle at top, #262626 0%, #111 55%, #070707 100%);
    border-radius: 26px;
    padding: 28px 24px 26px;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    box-sizing: border-box;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.85);
    border: none;
    position: relative;
    overflow: hidden;
    transform: translateY(0) scale(1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.salad-item::before,
.snack-item::before,
.drink-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.06), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.salad-item:hover,
.snack-item:hover,
.drink-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.95);
    border-color: transparent;
}

.salad-item img,
.snack-item img,
.drink-item img {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.salad-item h2,
.snack-item h2,
.drink-item h2 {
    font-size: 24px;
    color: white;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.salad-item p,
.snack-item p,
.drink-item p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 6px 0 10px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.salad-item .actions {
    margin-top: 10px;
}

.salad-item button {
    background-color: #ff6347;
    color: white;
    border: none;
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}


.salad-item button:hover {
    background-color: #e5533e;
}
button {
    background-color: #e60000; /* Червоний колір кнопок */
    color: #ffffff; /* Білий текст */
    border: none; /* Видаляємо обводку */
    padding: 10px 20px; /* Відступи всередині кнопки */
    margin: 5px; /* Зовнішній відступ */
    border-radius: 5px; /* Закруглені кути */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer; /* Вказівник миші */
    transition: background-color 0.3s ease, color 0.3s ease;
}
button:hover {
    background-color: #b30000; /* Темно-червоний колір при наведенні */
    color: #ffffff; /* Білий текст */
}

/* Специфічні кнопки за ID */
#add-to-cart-with-extras,
#back-to-sauces,
#close-extras-modal {
    background-color: #e60000; /* Насичений червоний */
    color: #ffffff; /* Білий текст */
}
#close-extras-modal{
    background-color: black;
}

#add-to-cart-with-extras:hover,
#back-to-sauces:hover:hover {
    background-color: #b30000; /* Темно-червоний при наведенні */
    color: #ffffff; /* Білий текст */
}
#close-extras-modal:hover{
    background-color: black;
}

.snack-item button {
    background-color: #ff6347;
    color: white;
    border: none;
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}


.snack-item button:hover {
    background-color: #e5533e;
}




#cart h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

#cart-items {
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
}

#cart-total {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}


/* Стилі для форми доставки */
#delivery-fields {
    margin-top: 20px;
    text-align: left;
}

#delivery-fields input[type="text"],
#delivery-fields input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    border: 1px solid #ddd;
}

#delivery-fields label {
    font-size: 16px;
    color: #333;
}

/* Стилі для опцій доставки */
input[type="radio"] {
    margin-right: 10px;
}

input[type="radio"]:checked + label {
    font-weight: bold;
    color: #333;
}


/* Стилі для контейнера добавок */
.extras-container {
    display: none; /* Спочатку приховане */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.extras-modal-content {
    background-color: #000; /* Чорний фон */
    color: #ff4d4d; /* Червоний текст */
    border: 3px solid #ff4d4d; /* Червона рамка */
    padding: 30px 20px 20px 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.7), inset 0 0 20px rgba(255, 77, 77, 0.1); /* Красивий червоний світ */
    position: relative; /* Для позиціонування кнопки закриття */
    max-width: 90%;
    max-height: 90vh;
}
.extras-modal-content h3 {
    color: #ff4d4d; /* Червоний заголовок */
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 2px #000; /* Тінь для тексту */
}
h4 {
    color: #ff4d4d;
    margin-bottom: 10px;
    border-bottom: 2px solid #e5533e;
    padding-bottom: 5px;
    text-align: left;
}

/* Заголовок для добавок */
.extras-container h3 {
    text-align: center;
    margin-bottom: 10px;
    color: #ff6347; /* Червоний колір */
    font-size: 20px;
}

/* Список добавок */
.extras-list {
    max-height: 200px;
    overflow-y: auto; /* Скролбар для соусів та добавок */
    text-align: left;
}

.extras-list label {
    display: block;
    color: #fff; /* Білий текст */
    margin: 5px 0;
    font-size: 16px;
}
.extras-buttons button {
    background-color: #ff4d4d; /* Червоний фон */
    color: #000; /* Чорний текст */
    border: 2px solid #ff4d4d;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}
.extras-buttons button#back-to-sauces {
    background-color: #000; /* Чорний фон */
    color: #ff4d4d; /* Червоний текст */
    border: 2px solid #ff4d4d;
}

.extras-buttons button:hover {
    background-color: #000; /* Чорний фон при наведенні */
    color: red; /* Червоний текст */
    border-color: red;
}
.extra-option:checked + label {
    font-weight: bold;
    color: red; /* Червоний при виборі */
}
/* Стилізація скролбара */
.extras-list::-webkit-scrollbar {
    width: 8px; /* Ширина скролбара */
}

.extras-list::-webkit-scrollbar-track {
    background: #000; /* Чорний фон скролбара */
}

.extras-list::-webkit-scrollbar-thumb {
    background: #ff4d4d; /* Червона полоса */
    border-radius: 5px;
}
.extras-list::-webkit-scrollbar-thumb:hover {
    background: #e60000; /* Темно-червоний при наведенні */
}

/* Кожен елемент добавки */
.extras-list label {
    display: block;
    margin: 5px 0;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
}

.extras-list input[type="checkbox"] {
    margin-right: 10px;
}

.extras-list label:hover {
    color: #ff6347; /* Колір тексту при наведенні */
}
.extras-modal-content::-webkit-scrollbar {
    width: 8px;
}

.extras-modal-content::-webkit-scrollbar-track {
    background: #333;
}

.extras-modal-content::-webkit-scrollbar-thumb {
    background-color: #ff0000;
    border-radius: 10px;
}
.extras-step {
    text-align: center;
}

.extras-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.next-step, .add-to-cart-with-extras, .close-modal {
    background-color: #e5533e;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.next-step:hover, .add-to-cart-with-extras:hover, .close-modal:hover {
    background-color: #cc0000;
}

/* Кнопка закриття з хрестиком у верхньому правому куті */
.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 77, 77, 0.1);
    border: 2px solid #ff4d4d;
    font-size: 28px;
    color: #ff4d4d;
    cursor: pointer;
    padding: 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    line-height: 1;
}

.close-modal-btn:hover {
    color: #ffffff;
    background-color: #ff4d4d;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.8);
}

/* Вирівнювання заголовків по центру */
#centerc {
    text-align: center;
    font-size: 28px;
    margin-top: 20px;
    color: #333;
}
.center-text {
    text-align: center;
    margin-top: 20px;
    font-size: 28px;
    color: white;
}
/* Контейнер кнопки */
.cart-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px;
    cursor: pointer;
}

/* Кругла кнопка з фото */
.open-cart-btn {
    position: fixed; /* Закріплює кнопку на екрані */
    top: 10px; /* Відступ від верхнього краю */
    right: 10px; /* Відступ від правого краю */
    background: none;
    border: 3px solid red; /* Червоний контур */
    width: 80px; /* Діаметр круга */
    height: 80px;
    border-radius: 50%; /* Кругла форма */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
    background-color: black; /* Чорний фон */
    z-index: 1000; /* Відображати поверх інших елементів */
    color: white; /* Колір цифри */
    font-size: 18px; /* Розмір цифри */
    font-weight: bold; /* Товщина тексту */
}

/* Позиція для лічильника */
.item-count {
    position: absolute;
    top: 5px; /* Позиція трохи вище */
    right: 5px;
    background-color: red;
    color: white;
    font-size: 11px;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.open-cart-btn img {
    width: 65px;
    height: 45px;
    margin-left: -7px;
    margin-top: 10px;
}

/* Ефект при наведенні */
.open-cart-btn:hover {
    transform: scale(1.1); /* Плавне збільшення */
    border-color: #ff6347; /* Світліший червоний при наведенні */
}

/* Текст під кнопкою */
.cart-text {
    font-size: 14px;
    color: white;
    margin-top: 8px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
}

.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.cart-modal-content {
    background: radial-gradient(circle at top, #262626 0%, #111 55%, #070707 100%);
    padding: 40px 30px;
    border-radius: 26px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 85vh;
    overflow-y: auto;
}

.cart-modal-content::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.06), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.cart-modal-content h2 {
    font-size: 32px;
    color: #ffffff !important;
    margin: 0 0 15px 0;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 1;
    font-weight: bold;
    letter-spacing: 1px;
}
.delivery-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    position: relative;
    z-index: 1;
    background: transparent;
    padding: 14px 0;
    border-radius: 12px;
    border: none;
}

.delivery-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    cursor: pointer;
    padding: 8px 14px;
    border: 2px solid rgba(255, 77, 77, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    user-select: none;
    flex: 1;
    justify-content: center;
}

.delivery-options label:hover {
    color: #ff6347;
    border-color: rgba(255, 77, 77, 0.6);
    background: rgba(255, 77, 77, 0.1);
}

.delivery-options input[type="radio"] {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #ff6347;
}

.delivery-options input[type="radio"]:checked + label {
    color: white;
    border-color: #ff6347;
    background: rgba(255, 77, 77, 0.2);
}

.cart-modal-content #cart-items {
    font-family: 'Arial', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    line-height: 1.8;
    background: transparent;
    padding: 0;
    border-radius: 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: none;
}

.cart-item:hover {
    background: transparent;
    border-bottom-color: transparent;
}

.cart-item span {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item span strong {
    color: #fff;
    font-size: 15px;
}

.cart-item span em {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-style: normal;
}

.cart-item .item-price {
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    min-width: 80px;
    text-align: right;
    margin-right: 12px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 77, 77, 0.2);
}

.qty-btn {
    background: rgba(255, 77, 77, 0.3);
    color: #ff9999;
    border: 1px solid rgba(255, 77, 77, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: rgba(255, 77, 77, 0.6);
    color: white;
    border-color: #ff6347;
}

.qty-display {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
}

.delete-item-btn {
    background: rgba(255, 77, 77, 0.3);
    color: #ff6347;
    border: 1px solid rgba(255, 77, 77, 0.5);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.delete-item-btn:hover {
    background: rgba(255, 77, 77, 0.6);
    color: white;
    border-color: #ff6347;
}

.cart-modal-content #cart-total {
    font-weight: bold;
    font-size: 18px;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
    padding: 16px 0;
    background: transparent !important;
    border: none !important;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.cart-modal-content #cart-total strong {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.cart-modal-content #cart-total span {
    font-size: 24px;
    color: #ffffff;
}

#close-cart-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
    line-height: 1;
}

#close-cart-modal:hover {
    color: #ff6347;
}

#send-to-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff4d4d, #cc0000);
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 14px 28px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 77, 77, 0.4);
    position: relative;
    z-index: 1;
    width: 100%;
}

#send-to-telegram:hover {
    background: linear-gradient(135deg, #ff3333, #b30000);
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(255, 77, 77, 0.6);
}

#send-to-telegram:active {
    transform: scale(0.98);
}

/* Скролбар для кошика */
.cart-modal-content::-webkit-scrollbar {
    width: 10px;
}

.cart-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.cart-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 77, 77, 0.6);
    border-radius: 10px;
}

.cart-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 77, 77, 0.9);
}

/* Поля вводу в кошику */
#pickup-fields,
#delivery-fields,
#comment-field {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 77, 77, 0.2);
}

#pickup-fields label,
#delivery-fields label,
#comment-field label {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin: 12px 0 6px 0;
    text-align: left;
    font-weight: 600;
}

#pickup-fields label:first-child,
#delivery-fields label:first-child,
#comment-field label:first-child {
    margin-top: 0;
}

#pickup-fields input[type="text"],
#pickup-fields input[type="tel"],
#delivery-fields input[type="text"],
#delivery-fields input[type="tel"],
#comment-field textarea {
    width: 100%;
    padding: 10px 14px;
    margin-top: 6px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 2px solid rgba(255, 77, 77, 0.3);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#pickup-fields input[type="text"]:focus,
#pickup-fields input[type="tel"]:focus,
#delivery-fields input[type="text"]:focus,
#delivery-fields input[type="tel"]:focus,
#comment-field textarea:focus {
    border-color: #ff6347;
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 10px rgba(255, 99, 71, 0.4);
    outline: none;
}

#comment-field textarea {
    height: 80px;
    resize: none;
    margin-bottom: 0;
}

#comment-field textarea::placeholder,
#pickup-fields input::placeholder,
#delivery-fields input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#clear-cart-btn {
    background: rgba(255, 77, 77, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 77, 77, 0.4);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

#clear-cart-btn:hover {
    background: rgba(255, 77, 77, 0.4);
    color: white;
    border-color: rgba(255, 77, 77, 0.7);
}

.cart-button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.btn-secondary {
    flex: 1;
    background: rgba(255, 77, 77, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 77, 77, 0.4);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 77, 77, 0.4);
    color: white;
    border-color: rgba(255, 77, 77, 0.7);
}

.btn-primary {
    flex: 2;
    background: linear-gradient(135deg, #ff4d4d, #cc0000);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 14px 26px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 77, 77, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff3333, #b30000);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 77, 77, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-back {
    background: rgba(255, 77, 77, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 77, 77, 0.4);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 77, 77, 0.4);
    color: white;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 77, 77, 0.3);
}

.checkout-header h3 {
    color: white;
    font-size: 18px;
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}
.close-cart {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}
.close-cart {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

.close-cart:hover {
    color: red;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-links a {
    color: red;
    font-size: 40px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    color: white;
    transform: scale(1.2);
}
/* Стилі для контейнера елементів */
.menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    padding: 15px 12px 25px;
}

.pizza-item img, .salad-item img, .snack-item img, .drink-item img{
    width: 160px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.pizza-item h3, .salad-item h3, .snack-item h3, .drink-item h3 {
    color: white !important;
    font-size: 20px;
    margin: 0px 10px;
}

.pizza-details h3, .pizza-details h3, .drink-details h3 {
    color: white !important;
    font-size: 20px;
    margin: 0px 10px;
}

.pizza-item button, .salad-item button, .snack-item button, .drink-item button {
    background-color: red;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pizza-item button:hover, .salad-item button:hover, .snack-item button:hover, .drink-item button:hover {
    background-color: #ff3333; /* Світліший червоний */
}

/* Анімація логотипу – легке "дихання" */
@keyframes logoPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.header-logo {
    animation: logoPulse 6s ease-in-out infinite;
}

/* Плавна поява заголовків секцій меню */
.menu-header {
    margin: 35px 0 15px;
    font-size: 30px;
    letter-spacing: 1px;
    position: relative;
}

.menu-header::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    margin: 8px auto 0;
    background: linear-gradient(90deg, transparent, red, transparent);
    border-radius: 999px;
}

/* Контейнер для соусів */
.sauces-container {
    max-width: 500px;
    margin: 20px auto;
    background-color: black;
    border-radius: 10px;
    padding: 15px;
    overflow-y: auto; /* Вертикальний скролбар */
    max-height: 400px; /* Максимальна висота */
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.7);
}

/* Оформлення соусів */
.sauce-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
    color: #f0d090; /* Золотистий колір для тексту */
    font-family: 'Georgia', serif;
}

.sauce-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Круглі фото */
    margin-right: 15px;
    box-shadow: 0 2px 5px rgba(255, 0, 0, 0.5);
}

.sauce-item p {
    font-size: 20px;
    margin: 0;
}

.sauce-item span {
    font-style: italic;
    color: #e1b12c; /* Яскраво-золотистий колір */
}

/* Скролбар стилізований */
.sauces-container::-webkit-scrollbar {
    width: 8px;
}

.sauces-container::-webkit-scrollbar-track {
    background: #333; /* Темний фон */
}

.sauces-container::-webkit-scrollbar-thumb {
    background-color: #ff0000; /* Червоний колір */
    border-radius: 10px;
}
#back-to-sauces {
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-right: 10px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black; /* Чорний фон */
    opacity: 0.7; /* Прозорість 30% */
    z-index: 1;
    pointer-events: none;
}


.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Фон відео за контентом */
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.header-navigation {
    display: flex;
    gap: 20px; 
    margin-top: 10px;
    font-size: 18px;
}

.nav-link {
    text-decoration: none; 
    color: #fff; 
    font-weight: bold;
    transition: color 0.3s; 
}

.nav-link:hover {
    color: red; 
}
.contact-info {
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
    color: #fff;
}

#tel{
    color: inherit; /* Скидаємо колір */
    text-decoration: none; /* Скидаємо підкреслення */
    cursor: default; /* Змінюємо курсор на звичайний, не посилання */
    color: wheat;
}


.how-to-find-us {
    text-align: center;
    padding: 40px;
    background-color: #f4f4f4;
    margin-top: 40px;
    background-color: #000;
}

.how-to-find-us h2 {
    color: white;
    text-shadow: 2px 2px 5px red;
    text-align: center;
}

.how-to-find-us p {
    font-size: 18px;
    color: rgb(226, 221, 221);
}

.how-to-find-us iframe {
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
    height: 450px;
}
/* Приховуємо ціни для невідповідного розміру */
/* Початкові стилі */
.price {
    display: none; /* Приховуємо всі ціни за замовчуванням */
}

/* Показуємо ціни для 30 см */
.size-30 .price-30 {
    display: inline;
}

/* Показуємо ціни для 40 см */
.size-40 .price-40 {
    display: inline;
}

/* Загальний стиль для інпутів */
#delivery-fields input[type="text"],
#delivery-fields input[type="tel"],
#pickup-fields input[type="text"],
#pickup-fields input[type="tel"],
#comment-field textarea {
    width: 90%; /* Зменшена ширина */
    padding: 8px; /* Менший внутрішній відступ */
    margin: 8px 0; /* Зменшений зовнішній відступ */
    border-radius: 5px;
    border: 2px solid #ff4d4d; /* Червона рамка */
    background-color: #fff; /* Світлий фон */
    color: #000; /* Чорний текст */
    font-size: 14px; /* Менший шрифт */
    font-family: 'Arial', sans-serif;
    box-shadow: 0 4px 6px rgba(255, 77, 77, 0.2); /* Тінь */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Фокус на інпутах */
#delivery-fields input[type="text"]:focus,
#delivery-fields input[type="tel"]:focus,
#pickup-fields input[type="text"]:focus,
#pickup-fields input[type="tel"]:focus,
#comment-field textarea:focus {
    border-color: #ff0000; /* Яскраво-червона рамка при фокусі */
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.8); /* Червоний відтінок при фокусі */
    outline: none;
}

/* Поле коментаря */
#comment-field textarea {
    height: 70px; /* Менша висота для коментаря */
    resize: none; /* Заборонити зміну розміру */
}

/* Лейбли для форми */
#delivery-fields label,
#pickup-fields label,
#comment-field label {
    font-size: 14px; /* Зменшений розмір шрифту */
    color: #ff4d4d; /* Червоний текст */
    margin-bottom: 4px;
    display: block;
    font-weight: bold;
}

/* Для повідомлень про помилки */
.input-error {
    border-color: red !important; /* Червона рамка */
    background-color: #ffe6e6; /* Світло-червоний фон */
}

.input-error + .error-message {
    color: red;
    font-size: 12px; /* Менший розмір тексту для помилок */
    margin-top: 5px;
    display: block;
}

/* Стилі для підказок/placeholder */
::placeholder {
    color: #999; /* Світло-сірий колір */
    font-style: italic;
    opacity: 0.8;
}



/* Вирівнювання списку */
.extras-list {
    margin: 0 auto;
    text-align: left;
    max-width: 300px;
}
.remove-item-btn {
    background-color: red; /* Червона кнопка */
    color: white; /* Білий текст */
    border: none; /* Без обводки */
    padding: 5px 10px; /* Відступи */
    margin-left: 10px; /* Відступ зліва */
    border-radius: 5px; /* Закруглені кути */
    cursor: pointer; /* Вказівник миші */
    font-size: 14px; /* Розмір тексту */
    transition: background-color 0.3s ease; /* Плавний ефект */
}

.remove-item-btn:hover {
    background-color: #b30000; /* Темніший червоний при наведенні */
}

.extras-container2 {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.extras-container2.show {
    display: flex;
}

#sauces-step2 {
    background-color: #000;
    color: #ff4d4d;
    border: 3px solid #ff4d4d;
    padding: 30px 20px 20px 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.7), inset 0 0 20px rgba(255, 77, 77, 0.1);
    position: relative;
    max-width: 500px;
    max-height: 90vh;
    width: 90%;
}

.extras-step {
    background-color: #000; /* Чорний фон */
    color: #ff4d4d; /* Червоний текст */
    border: 2px solid #ff4d4d; /* Одна рамка */
    border-radius: 10px; /* Округлені краї */
    padding: 20px; /* Відступи */
    text-align: center; /* Текст по центру */
    width: 90%;
    max-width: 400px; /* Максимальна ширина */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6); /* Тінь для модального вікна */
}

.extras-step h3 {
    color: #ff4d4d; /* Червоний заголовок */
    font-size: 20px;
    margin-bottom: 15px;
}

.sauces-list2 label {
    display: block;
    color: #fff; /* Білий текст */
    font-size: 16px;
    margin: 10px 0;
}

.sauces-list2 input {
    margin-right: 10px; /* Відступ між чекбоксом і текстом */
}

#add-to-cart-with-extras2 {
    background-color: #e5533e;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

#add-to-cart-with-extras2:hover {
    background-color: #cc0000;
}

/* New styles for size selector */
.size-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.size-selector input[type="radio"] {
    display: none;
}

.size-selector label {
    padding: 8px 15px;
    background-color: #333;
    color: white;
    border: 2px solid #e60000;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.size-selector input[type="radio"]:checked + label {
    background-color: #e60000;
    color: white;
    font-weight: bold;
    transform: scale(1.05);
}

.size-selector label:hover {
    background-color: #555;
}

.price-display {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin: 10px 0;
    text-shadow: 1px 1px 2px black;
}

.add-to-cart-dynamic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff0000, #e00000);
    color: #fff;
    border: none;
    padding: 14px 26px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
    width: 100%;
    max-width: 260px;
    box-shadow: 0 10px 28px rgba(255, 0, 0, 0.55);
}

.add-to-cart-dynamic::before {
    content: "\f07a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
}

.add-to-cart-dynamic:hover {
    background: linear-gradient(135deg, #ff1a1a, #ff0000);
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(255, 0, 0, 0.7);
}

.add-to-cart-dynamic:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.5);
}

/* Секція Топ піц */
.top-pizzas-section {
    padding: 40px 15px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(20, 0, 0, 0.98));
    margin: 30px 0;
}

.top-pizzas-title {
    font-size: 36px;
    margin-bottom: 10px;
    color: #ff4d4d;
    text-shadow: 2px 2px 8px rgba(255, 0, 0, 0.6);
}

.top-pizzas-title i {
    color: #ff6b35;
    animation: firePulse 2s ease-in-out infinite;
}

@keyframes firePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.top-pizzas-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin-bottom: 35px;
    font-style: italic;
}

.top-pizzas-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

.top-pizza-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: radial-gradient(circle at top, #262626 0%, #111 55%, #070707 100%);
    border-radius: 26px;
    padding: 28px 24px 26px;
    box-sizing: border-box;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.top-pizza-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.06), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.top-pizza-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
}

.top-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b35, #ff4d4d);
    color: white;
    font-weight: bold;
    font-size: 18px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.6);
    z-index: 10;
    animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.top-pizza-image {
    width: 100%;
    max-width: 200px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.4s;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 1;
}

.top-pizza-item:hover .top-pizza-image {
    transform: scale(1.08) rotate(2deg);
}

.top-pizza-details {
    position: relative;
    z-index: 1;
}

.top-pizza-details h3 {
    color: #fff;
    font-size: 22px;
    margin: 10px 0 8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.top-pizza-details p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.top-price {
    color: #ffd700;
    font-size: 20px;
    font-weight: bold;
    margin: 12px 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.top-order-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff4d4d, #cc0000);
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.top-order-btn:hover {
    background: linear-gradient(135deg, #ff3333, #b30000);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.6);
}

/* Плавна поява топ-піц при скролі */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-pizza-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

.top-pizza-item:nth-child(1) { animation-delay: 0.1s; }
.top-pizza-item:nth-child(2) { animation-delay: 0.2s; }
.top-pizza-item:nth-child(3) { animation-delay: 0.3s; }
.top-pizza-item:nth-child(4) { animation-delay: 0.4s; }
.top-pizza-item:nth-child(5) { animation-delay: 0.5s; }

/* Плавна прокрутка для всього сайту */
html {
    scroll-behavior: smooth;
}

/* Головний заголовок H1 */
.main-title {
    text-align: center;
    font-size: 42px;
    color: #fff;
    margin: 40px 20px 15px;
    text-shadow: 2px 2px 8px rgba(255, 0, 0, 0.6);
    line-height: 1.3;
}

.main-subtitle {
    text-align: center;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 20px 35px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 28px;
        margin: 30px 15px 12px;
    }
    
    .main-subtitle {
        font-size: 16px;
        margin: 0 15px 25px;
    }
}

/* Адаптивність для топ-піц */
@media (max-width: 768px) {
    .top-pizzas-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 18px;
    }
    
    .top-pizzas-title {
        font-size: 28px;
    }
    
    .top-pizza-details h3 {
        font-size: 18px;
    }
}
