/* delivery.css — стили для страницы доставки */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #1a1714 url('../img/hed.webp') no-repeat center/cover fixed;
    font-family: 'Open Sans', sans-serif;
    color: #fff;
    min-height: 100vh;
}

/* ===== ШАПКА ===== */
.header-line {
    display: grid;
    grid-template-columns: 1fr auto 1.34fr;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 20px;
}

.header-left {
    display: flex;
    justify-content: flex-end;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
    justify-content: flex-start;
}

.header-logo img {
    height: 50px;
}

.nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: 0.3s;
}

.nav a:hover {
    color: #FF7400;
}

.nav a.active {
    color: #FF7400;
}

.phone {
    text-align: center;
}

.phone-holder {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.phone-holder a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.phone-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.button {
    background: #FF7400;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.button:hover {
    background: #c1671d;
}

.btn-cart {
    background: #b49a6a;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.btn-cart:hover {
    background: #9a8050;
}

.cart-count {
    background: #FF7400;
    color: #fff;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.page-title {
    font-family: 'Tinos', serif;
    font-size: 42px;
    color: #D67E35;
    text-align: center;
    margin-bottom: 10px;
}

.page-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin-bottom: 40px;
}

/* ===== БЛОКИ МЕНЮ (ТАКИЕ ЖЕ, КАК КОРЗИНА) ===== */
.menu-section {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.menu-section h2 {
    font-family: 'Tinos', serif;
    font-size: 28px;
    color: #D67E35;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 15px;
}

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

.menu-item-info {
    flex: 1;
}

.menu-item-info h3 {
    font-size: 16px;
    color: #fff;
}

.menu-item-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.menu-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #FF7400;
    white-space: nowrap;
}

.menu-item-btn {
    background: #FF7400;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    font-size: 13px;
    white-space: nowrap;
}

.menu-item-btn:hover {
    background: #c1671d;
}

.menu-item-btn.in-cart {
    background: #4a6a4a;
}

/* ===== КОРЗИНА ===== */
.cart-section {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    max-width: 700px;
    margin: 40px auto 0 auto;
}

.cart-section h2 {
    font-family: 'Tinos', serif;
    font-size: 28px;
    color: #D67E35;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.cart-empty {
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 40px 0;
    font-size: 16px;
}

.cart-item {
    display: flex;
    flex-direction: column;  /* ← меняем на столбик */
    align-items: stretch;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 6px;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-name {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

.cart-item-price {
    font-size: 16px;
    color: #FF7400;
    font-weight: 700;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.cart-item-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.cart-item-controls button:hover {
    background: #FF7400;
}

.cart-item-qty {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    min-width: 24px;
    text-align: center;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 2px solid #FF7400;
    margin-top: 15px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.cart-total span:last-child {
    color: #FF7400;
}

.cart-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.cart-actions button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-checkout {
    background: #FF7400;
    color: #fff;
}

.btn-checkout:hover {
    background: #c1671d;
}

.btn-clear {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-clear:hover {
    background: rgba(255, 0, 0, 0.3);
}

.delivery-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 116, 0, 0.1);
    border-radius: 8px;
    border-left: 3px solid #FF7400;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.delivery-info strong {
    color: #FF7400;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.checkout-modal.open {
    display: flex;
}

.checkout-modal-content {
    background: #1a1714;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.checkout-modal-content h2 {
    font-family: 'Tinos', serif;
    font-size: 28px;
    color: #D67E35;
    text-align: center;
    margin-bottom: 20px;
}

.checkout-modal-content .close-modal {
    float: right;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
}

.checkout-modal-content .close-modal:hover {
    color: #FF7400;
}

.checkout-modal-content .field {
    margin-bottom: 15px;
}

.checkout-modal-content .field label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #b49a6a;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.checkout-modal-content .field input,
.checkout-modal-content .field textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
}

.checkout-modal-content .field input:focus,
.checkout-modal-content .field textarea:focus {
    outline: none;
    border-color: #FF7400;
}

.checkout-modal-content .field textarea {
    resize: vertical;
    min-height: 60px;
}

.checkout-modal-content .btn-submit {
    width: 100%;
    padding: 16px;
    background: #FF7400;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.checkout-modal-content .btn-submit:hover {
    background: #c1671d;
}

/* ===== УВЕДОМЛЕНИЯ ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 99999;
    max-width: 360px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: #1a3a1a;
    border-left: 4px solid #4a8a4a;
    color: #8aca8a;
}

.notification.error {
    background: #3a1a1a;
    border-left: 4px solid #ff6b6b;
    color: #ff8a8a;
}

@keyframes slideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .header-line {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
        gap: 15px;
    }
    .header-left, .header-right {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .nav {
        justify-content: center;
    }
    .menu-section {
        padding: 20px;
        margin: 0 10px 20px 10px;
    }
    .cart-section {
        padding: 20px;
        margin: 30px 10px 0 10px;
    }
    .page-title {
        font-size: 32px;
    }
    .menu-item {
        flex-wrap: wrap;
    }
    .menu-item-info {
        flex: 1 1 100%;
    }
    .menu-item-price {
        order: 2;
    }
    .menu-item-btn {
        order: 3;
    }
    .checkout-modal-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    .menu-section h2,
    .cart-section h2 {
        font-size: 22px;
    }
    .menu-item-info h3 {
        font-size: 14px;
    }
    .menu-item-price {
        font-size: 14px;
    }
    .menu-item-btn {
        font-size: 12px;
        padding: 4px 12px;
    }
}

/* ===== МИНИ-ИЗОБРАЖЕНИЯ В МЕНЮ ===== */
.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 15px;
}

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

.menu-item-img {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-info {
    flex: 1;
}

.menu-item-info h3 {
    font-size: 16px;
    color: #fff;
}

.menu-item-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== ПОДПИСЬ АВТОРА В НОВИНКАХ ===== */
.chef-author {
    display: block;
    font-size: 11px;
    color: #b49a6a;
    margin-top: 3px;
    font-style: italic;
}

/* ponytail: responsive background — serve smaller images on smaller screens */
@media (max-width: 600px) {
    body { background-image: url(../img/hed_400w.webp); }
}
@media (min-width: 601px) and (max-width: 1200px) {
    body { background-image: url(../img/hed_800w.webp); }
}
