/* Базовые переменные цветов из старого дизайна */
:root {
    --bg-dark-red: #4a0c0c;
    --text-gold: #f2c75c;
    --btn-orange-top: #ffab23;
    --btn-orange-bottom: #d97700;
    --card-bg: #ffeaa7;
    --card-brown: #3e1f0b;
    --black: #111;
}

/* Сброс стилей */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Фон сайта имитирует текстуру обоев со скриншота */
body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-dark-red);
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 6px);
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Шапка */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 15px;
}

.logo-mirt {
    color: var(--text-gold);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.logo h1 {
    font-family: 'Georgia', serif;
    color: var(--text-gold);
    font-style: italic;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px #000;
}

.slogan {
    font-family: 'Georgia', serif;
    color: var(--text-gold);
    font-style: italic;
    font-size: 2rem;
    text-align: right;
    text-shadow: 2px 2px 4px #000;
}

/* Меню навигации */
.main-nav {
    background: linear-gradient(to bottom, #333, #000);
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
    z-index: 100;
}

.menu {
    list-style: none;
    display: flex;
}

.menu > li {
    position: relative;
}

.menu > li > a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    background: linear-gradient(to bottom, var(--btn-orange-top), var(--btn-orange-bottom));
    border-right: 1px solid rgba(255,255,255,0.2);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-right: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.menu > li > a.active, .menu > li > a:hover {
    background: linear-gradient(to bottom, #555, #111);
    color: var(--text-gold);
}

/* Выпадающее меню */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    list-style: none;
    min-width: 280px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.8);
}

.dropdown:hover .submenu { display: block; }

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: #ddd;
    text-decoration: none;
    border-bottom: 1px solid #333;
}

.submenu li a:hover {
    background: #333;
    color: var(--text-gold);
}

/* Сетка карточек продукции */
.products-section { padding: 50px 0; }
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

/* Карточка товара в стиле скриншота */
.card {
    background-color: var(--card-bg);
    border: 2px solid #000;
    color: var(--card-brown);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.3rem;
    padding: 15px 10px;
    min-height: 70px;
}

/* Имитация полукруглого коричневого фона для картинок */
.card-img {
    background: radial-gradient(ellipse at bottom, #603011, #2b1204);
    height: 160px;
    width: 120%;
    margin-left: -10%;
    border-radius: 50% 50% 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px; /* Размер эмодзи-картинки */
    box-shadow: inset 0 10px 20px rgba(0,0,0,0.5);
}

.card-desc {
    padding: 15px;
    font-size: 0.9rem;
    flex-grow: 1;
}

.btn {
    display: inline-block;
    background: linear-gradient(to bottom, var(--btn-orange-top), var(--btn-orange-bottom));
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    font-weight: bold;
    border-radius: 15px;
    margin: 0 15px 15px auto;
    font-size: 0.8rem;
    text-shadow: 1px 1px 1px #000;
}

.btn:hover { filter: brightness(1.1); }

/* Подвал */
.footer {
    background: #000;
    color: #888;
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid var(--text-gold);
    margin-top: 40px;
}

.page-content { min-height: 60vh; padding-top: 40px; }

/* Бургер-меню для мобилок */
.burger {
    display: none;
    cursor: pointer;
    padding: 15px;
}
.burger span {
    display: block; width: 30px; height: 3px; background: var(--text-gold); margin-bottom: 6px; transition: 0.3s;
}

/* АДАПТИВНОСТЬ (Телефоны и планшеты) */
@media (max-width: 900px) {
    .top-bar { flex-direction: column; text-align: center; gap: 15px; }
    .slogan { text-align: center; }
    
    .burger { display: block; }
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    .menu.show { display: flex; }
    .menu > li > a { border-radius: 0; border-right: none; border-bottom: 1px solid #000; }
    .submenu { position: static; display: none; }
    .dropdown.active .submenu { display: block; }
}