/* Основные стили для страницы закусок */
:root {
    --primary-yellow: #FFD700;
    --primary-black: #1A1A1A;
    --dark-yellow: #E6C200;
    --light-black: #2D2D2D;
    --gray-dark: #333333;
    --gray-light: #555555;
    --text-light: #F5F5F5;
    --text-gray: #AAAAAA;
    --cheese-yellow: #FFD700;
    --wine-red: #722F37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Roboto', sans-serif;
}

body {
    background-color: var(--primary-black);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
}

/* Боковая панель навигации */
.sidebar {
    width: 280px;
    background-color: var(--light-black);
    border-right: 2px solid var(--primary-yellow);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-dark);
}

.min-order {
    background-color: rgba(255, 215, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.min-order i {
    color: var(--primary-yellow);
}

.min-order strong {
    color: var(--primary-yellow);
    font-weight: 700;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.sidebar-close:hover {
    color: var(--primary-yellow);
}

.sidebar-nav {
    padding: 1rem;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section h3 {
    color: var(--primary-yellow);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-section ul {
    list-style: none;
}

.nav-section li {
    margin-bottom: 0.5rem;
}

.nav-section a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.6rem 0.8rem;
    display: block;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-section a:hover,
.nav-section a.active {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--primary-yellow);
    border-left: 3px solid var(--primary-yellow);
}

.nav-section a i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-dark);
    margin-top: auto;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.contact-info i {
    color: var(--primary-yellow);
    width: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-yellow);
}

/* Основной контент */
.main-content {
    flex: 1;
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

.main-content.sidebar-open {
    margin-left: 280px;
}

/* Шапка */
.main-header {
    background-color: var(--light-black);
    padding: 1rem 2rem;
    border-bottom: 2px solid var(--primary-yellow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.sidebar-toggle {
    background: none;
    border: 1px solid var(--primary-yellow);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.sidebar-toggle:hover {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
}

.logo {
    text-align: center;
}

.logo h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
}

.black-text {
    color: var(--text-light);
}

.gold-text {
    color: var(--primary-yellow);
}

.tagline {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-top: 0.2rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: rgba(255, 215, 0, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cart:hover {
    background-color: rgba(255, 215, 0, 0.2);
}

.cart i {
    color: var(--primary-yellow);
    font-size: 1.2rem;
}

.cart-count {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.cart-total {
    font-weight: 600;
    color: var(--primary-yellow);
}

.reserve-btn {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.reserve-btn:hover {
    background-color: var(--dark-yellow);
}

/* Контент закусок */
.appetizers-header {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
                url('/images/appetizers-bg.jpg') center/cover;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.appetizers-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

.appetizers-header p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.appetizers-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background-color: var(--light-black);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--gray-dark);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-yellow);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--dark-yellow));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 1.2rem 1.2rem 0.5rem;
    color: var(--text-light);
    font-size: 1.4rem;
    min-height: 60px;
}

.product-card p {
    padding: 0 1.2rem;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.4;
    min-height: 70px;
}

.price {
    padding: 1.2rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-yellow);
    text-align: right;
}

.buy-btn {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--primary-yellow);
    border: none;
    border-top: 1px solid var(--gray-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.buy-btn:hover {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
}

/* Специальные стили для закусок */
.appetizer-type {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.appetizer-type.cold {
    background-color: #4169E1;
    color: white;
}

.appetizer-type.hot {
    background-color: #DC143C;
    color: white;
}

.appetizer-type.premium {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--light-black);
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    border: 2px solid var(--primary-yellow);
    position: relative;
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--primary-yellow);
}

.modal-header h2 {
    color: var(--primary-yellow);
    font-size: 2rem;
}

.close {
    color: var(--primary-yellow);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.close:hover {
    color: var(--text-light);
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 2rem;
}

.modal-price {
    font-size: 2rem;
    color: var(--primary-yellow);
    text-align: right;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.modal-order-btn {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.modal-order-btn:hover {
    background-color: var(--dark-yellow);
}

/* Модальное окно корзины */
.cart-modal {
    display: none;
    position: fixed;
    z-index: 2001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.cart-modal-content {
    background-color: var(--light-black);
    margin: 2% auto;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    border: 2px solid var(--primary-yellow);
    animation: modalAppear 0.3s ease;
}

.cart-modal-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-dark);
}

.cart-modal-header h3 {
    color: var(--primary-yellow);
    font-size: 1.5rem;
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-close:hover {
    color: var(--primary-yellow);
}

.cart-modal-body {
    padding: 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-empty {
    text-align: center;
    color: var(--text-gray);
}

.cart-empty i {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.cart-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-dark);
}

.cart-total-sum {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.total-price {
    color: var(--primary-yellow);
    font-weight: bold;
    font-size: 1.5rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .appetizers-header h1 {
        font-size: 2.8rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
    
    .cart span:not(.cart-count) {
        display: none;
    }
    
    .reserve-btn span {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .appetizers-header {
        padding: 3rem 1rem;
    }
    
    .appetizers-header h1 {
        font-size: 2.2rem;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .main-content.sidebar-open {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .appetizers-container {
        padding: 0 1rem 2rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
}