:root {
    --primary-red: #B22222;
    --accent-orange: #FF6B35;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --bg-light: #FDFDFD;
    --bg-card: #FFFFFF;
    --border-light: #EEEEEE;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-modal: rgba(0, 0, 0, 0.4);
    --success-green: #28a745;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

a { text-decoration: none; transition: 0.3s; }

/* HEADER */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 100;
}

.logo { width: 100px; display: block; }

.header-actions { display: flex; align-items: center; gap: 15px; }
.phones-col { display: flex; flex-direction: column; align-items: flex-end; }

/* Базовий стиль для телефонів (ПК) */
.header-phone {
    color: white;
    font-weight: 600;
    font-size: 24px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    line-height: 1.4;
    font-weight: 900;
    font-family: 'Montserrat';
}

.cart-btn {
    background: var(--accent-orange);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}
.cart-btn:hover { background: #ff8550; }

/* NAV */
nav { display: flex; gap: 20px; }
.nav-group { display: flex; gap: 15px; }
nav a {
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}
nav a:hover { color: var(--accent-orange); }

.hamburger { display: none; color: white; font-size: 28px; cursor: pointer; padding-right: 10px; }

/* HERO */
.hero-background-wrapper {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("../img/bg.jpg");
    background-size: cover;
    background-position: center;
    padding-bottom: 80px;
    margin-bottom: 20px;
}
.hero-section { text-align: left; margin-top: 60px; color: white; }
.hero-section h1 { font-family: var(--font-heading); font-size: 3em; margin-bottom: 20px; line-height: 1.1; }
.hero-section .description { max-width: 600px; font-size: 1.1em; margin-bottom: 30px; opacity: 0.9; }

/* Кнопка "Перейти до Меню" */
.btn-hero { 
    display: inline-block;
    background-color: #FF6B35; 
    color: white; 
    padding: 12px 30px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: bold; 
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* MENU */
#menu-content { padding: 40px 0; }
h2 { text-align: center; color: var(--primary-red); font-family: var(--font-heading); font-size: 2.2em; margin-bottom: 40px; }

.category h3 {
    font-family: var(--font-heading);
    color: #333;
    font-size: 1.5em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 50px;
}

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; margin-top: 20px; }

.menu-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    transition: transform 0.2s;
}
.menu-item:hover { transform: translateY(-5px); }
.menu-item img { width: 100%; height: 220px; object-fit: cover; }

.item-info { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.item-info h3 { margin: 0 0 10px 0; font-size: 1.2em; font-weight: 700; color: #333; }

.price-action { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 15px; border-top: 1px dashed #eee; }
.price { font-weight: 700; color: var(--primary-red); font-size: 1.1em; }

.add-to-cart {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}
.add-to-cart:hover { background: #ff8550; }
.add-to-cart.added { background: var(--success-green); }

/* FOOTER */
.footer-section { background: #333; color: #ccc; padding: 50px 0 20px; margin-top: 50px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.footer-block h4 { color: var(--accent-orange); margin-bottom: 15px; font-family: var(--font-heading); }
.footer-copy { text-align: center; margin-top: 40px; border-top: 1px solid #444; padding-top: 20px; font-size: 0.9em; }

/* === STICKY CART BAR === */
.sticky-cart-bar {
    position: fixed; top: 0; left: 0; width: 100%; height: 60px;
    background-color: var(--success-green); color: white;
    z-index: 1000; display: none; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.sticky-content { width: 100%; max-width: 1200px; display: flex; justify-content: space-between; padding: 0 20px; align-items: center; }
.sticky-text { font-weight: 700; font-size: 1.1em; }
#sticky-checkout-btn {
    background: white; color: var(--success-green); border: none;
    padding: 8px 20px; border-radius: 4px; font-weight: 800;
    cursor: pointer; text-transform: uppercase;
}
.sticky-close { position: absolute; right: 20px; font-size: 28px; cursor: pointer; }

/* === MODALS === */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 2000; backdrop-filter: blur(3px);
    overflow-y: auto; padding-top: 20px;
}
.modal-content {
    background: white; width: 90%; max-width: 500px; border-radius: 12px;
    padding: 25px; margin: 30px auto; position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-top: 5px solid var(--primary-red);
}
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 32px; cursor: pointer; color: #aaa; z-index: 10; }
.modal-title { font-family: var(--font-heading); color: var(--primary-red); margin-top: 0; margin-bottom: 20px; font-size: 1.6em; border-bottom: 2px solid #eee; padding-bottom: 10px; text-align: center; }

/* Cart Items Styles */
.cart-item-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed #eee; }
.qty-btn
 { width: 28px;
    font-family: 'Montserrat';
     height: 28px; 
     border: 1px solid #49bd82; 
     background: #cefae9; font-weight: 
     bold; cursor: pointer; border-radius: 4px; }
.del-btn { color: red; background: none; border: none; font-size: 20px; cursor: pointer; margin-left: 10px; }
.big-btn { width: 100%; padding: 15px; background: var(--success-green); color: white; border: none; border-radius: 8px; font-size: 1.1em; font-weight: bold; cursor: pointer; margin-top: 15px; text-transform: uppercase; }
.btn-secondary { background: none; border: none; color: #777; width: 100%; margin-top: 10px; cursor: pointer; text-decoration: underline; }

/* Checkout Form Specifics */
.order-type-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.tab-btn { flex: 1; text-align: center; padding: 12px; border: 2px solid #eee; border-radius: 8px; cursor: pointer; background: #fff; transition: 0.2s; }
.tab-btn:hover { background: #f9f9f9; border-color: #ddd; }
.tab-btn.active { border-color: var(--success-green); background: #f0fff4; color: var(--success-green); font-weight: bold; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 0.9em; }
.form-group input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; box-sizing: border-box; }

/* New Styles for Checkout List */
.checkout-list { background: #f9f9f9; border: 1px solid #ddd; border-radius: 8px; padding: 10px; margin-bottom: 15px; max-height: 250px; overflow-y: auto; }
.checkout-item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed #ccc; padding: 8px 0; font-size: 0.9em; }
.checkout-item:last-child { border-bottom: none; }
.checkout-item-info { flex: 1; }
.checkout-item-price { font-weight: bold; margin: 0 10px; }
.checkout-remove-btn { color: red; cursor: pointer; font-weight: bold; font-size: 1.2em; padding: 0 5px; background: none; border: none; }

.current-order-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: bold; font-size: 1.1em; }

/* === МОБІЛЬНА АДАПТАЦІЯ (Тут магія!) === */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2em; }
    
    header { 
        flex-wrap: nowrap; /* Важливо: не переносити */
        padding: 10px 0;
    }
    
    nav { 
        display: none; 
        width: 100%; 
        order: 4; 
        flex-direction: column; 
        background: #fff; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        padding: 20px; 
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    }
    nav a { color: #333; padding: 10px 0; border-bottom: 1px solid #eee; text-shadow: none; }
    
    .hamburger { display: block; order: 1; }
    
    /* Логотип зменшуємо, щоб влізло */
    .logo-container { order: 2; margin-right: auto; margin-left: 10px; }
    .logo { width: 70px; } 

    .header-actions { order: 3; gap: 8px; }
    
    /* === ОСЬ ТУТ МИ ВКЛЮЧАЄМО ТЕЛЕФОНИ === */
    .phones-col { 
        display: flex; /* Було none, стало flex */
        flex-direction: column; 
        align-items: flex-end;
    }
    
    /* Зменшуємо шрифт телефонів для мобільного */
    .header-phone { 
        font-size: 11px; /* Щоб влізли в рядок */
        white-space: nowrap;
    }
    
    .cart-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
}

        /* Велика карта перед футером */
        #map-section {
            width: 100%;
            /* Висота має бути достатньою для перегляду */
            background: #eee;
            margin-top: 60px;
            border-top: 5px solid var(--accent-orange);
            display: flex;
            flex-direction: column;
        }
        
        .address-banner {
            background: var(--primary-red);
            color: white;
            text-align: center;
            padding: 15px;
            font-family: var(--font-heading);
            font-size: 1.2em;
            font-weight: 700;
        }

        #map-section iframe {
            width: 100%;
            height: 450px; /* Трохи збільшив висоту */
            border: 0;
            display: block;
        }
        
        .open-map-link {
            display: block;
            text-align: center;
            background: #eee;
            color: #333;
            padding: 10px;
            font-weight: bold;
            text-decoration: underline;
        }