:root {
    --primary-color: #8B0000;
    --accent-color: #D4AF37;
    --dark-color: #1A1A1A;
    --light-color: #FDFBF7;
    --text-muted: #777;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* Главный экран (Hero) */
.hero {
    position: relative;
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.75)), 
                url('https://unsplash.com') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 5px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.hero-btn {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
}

.hero-btn:hover {
    background-color: transparent;
    border-color: #fff;
    transform: translateY(-3px);
}

/* Кнопка корзины фиксированная справа */
.cart-badge-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.cart-toggle-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

.cart-toggle-btn:hover {
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: var(--dark-color);
    font-weight: 700;
    font-size: 0.8rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--primary-color);
}

/* Стили основного контейнера меню */
.main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

.menu-category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 45px 0 20px;
    color: var(--primary-color);
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

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

/* Карточки товаров */
.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.add-to-cart-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Боковая корзина */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    z-index: 1001;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    background: var(--dark-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    margin-top: 30px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.cart-item-info p {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    background: #eee;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qty-btn:hover {
    background: #ddd;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.total-price-box {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.order-submit-btn {
    display: block;
    width: 100%;
    background-color: #25D366;
    color: white;
    text-align: center;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.order-submit-btn:hover {
    background-color: #1ebd58;
}

/* Фон затемнения фона */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* Футер (Подвал) */
footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 50px 20px 20px;
    margin-top: 80px;
    border-top: 4px solid var(--accent-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.footer-section p, .footer-section a {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 14px;
    display: block;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-section i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #666;
}

/* Мобильная адаптивность */
@media(max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 0.9rem; letter-spacing: 2px; }
    .cart-sidebar { max-width: 100%; right: -100%; }
    .menu-grid { grid-template-columns: 1fr; }
}


