/* Основные стили для страницы бургеров */
: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;
    --beef-color: #DC143C;
    --chicken-color: #FF8C00;
    --fish-color: #1E90FF;
    --vegan-color: #32CD32;
}

* {
    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;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-dark);
}

.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;
}

.filter-btn.active {
    background-color: rgba(255, 215, 0, 0.15) !important;
    border-left: 3px solid var(--primary-yellow) !important;
    font-weight: 600;
}

.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);
}

/* Заголовок бургеров */
.burgers-header {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
                url('https://images.unsplash.com/photo-1571091718767-18b5b1457add?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-yellow);
}

.burgers-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.burgers-header p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.filters-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.filters-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    background-color: rgba(255, 215, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.filters-info i {
    color: var(--primary-yellow);
}

/* Контейнер бургеров */
.burgers-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;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.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-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.product-badge.hot {
    background-color: var(--beef-color);
    color: white;
}

.product-badge.new {
    background-color: var(--fish-color);
    color: white;
}

.product-badge.vegan {
    background-color: var(--vegan-color);
    color: white;
}

.product-badge.premium {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
}

.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);
}

/* Модальное окно */
.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;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.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;
    flex: 1;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-empty {
    text-align: center;
    color: var(--text-gray);
    width: 100%;
    padding: 3rem 0;
}

.cart-empty i {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-empty p {
    font-size: 1.2rem;
}

.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;
    font-weight: 600;
}

.total-price {
    color: var(--primary-yellow);
    font-weight: bold;
    font-size: 1.5rem;
}

.btn-gold {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    margin-bottom: 1rem;
}

.btn-gold:hover {
    background-color: var(--dark-yellow);
}

.min-order-info {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.min-order-info i {
    color: var(--primary-yellow);
}

/* Стили для элементов корзины */
.cart-items {
    width: 100%;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border: 1px solid var(--gray-dark);
}

.cart-item-info h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--primary-yellow);
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    color: #ff4444;
    background-color: rgba(255, 68, 68, 0.1);
}

/* Уведомления */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background-color: var(--light-black);
    border: 2px solid var(--primary-yellow);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.notification-content i {
    color: var(--primary-yellow);
    font-size: 1.3rem;
}

.notification-content span {
    color: var(--text-light);
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .burgers-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;
    }
    
    .burgers-header {
        padding: 3rem 1rem;
    }
    
    .burgers-header h1 {
        font-size: 2.2rem;
    }
    
    .burgers-header p {
        font-size: 1rem;
    }
    
    .filters-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .main-content.sidebar-open {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .burgers-container {
        padding: 0 1rem 2rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .cart-modal-content {
        width: 95%;
        margin: 5% auto;
    }
}