/* ==========================================================
   1. RESET & БАЗОВЫЕ СТИЛИ
   ========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', Arial, sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================
   2. ЦВЕТОВАЯ СХЕМА (переменные)
   ========================================================== */
:root {
    --primary: #1a4d3e;
    --primary-dark: #143c30;
    --primary-light: #2a6a55;
    --accent: #d4a843;
    --accent-hover: #c49a3a;
    --gray-light: #f5f5f5;
    --gray-border: #e0e0e0;
    --white: #ffffff;
    --black: #222;
}

/* ==========================================================
   3. TOP BAR (служебная полоса)
   ========================================================== */
.top-bar {
    background: var(--gray-light);
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--gray-border);
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-links {
    display: flex;
    gap: 20px;
}
.top-bar-links a {
    color: #333;
    transition: color 0.2s;
}
.top-bar-links a:hover {
    color: var(--primary);
}
/* --- мобильная адаптация top-bar --- */
@media (max-width: 768px) {
    .top-bar-links {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 12px;
    }
    .top-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================
   4. MAIN HEADER (основная шапка)
   ========================================================== */
.main-header {
    background: var(--white);
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.logo img {
    max-height: 45px;
}
.search-box {
    flex: 1;
    max-width: 500px;
    min-width: 200px;
}
.search-box form {
    display: flex;
}
.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--primary);
    border-radius: 30px 0 0 30px;
    outline: none;
    font-size: 14px;
}
.search-box button {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}
.search-box button:hover {
    background: var(--primary-dark);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.btn-order {
    background: var(--accent);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: bold;
    transition: background 0.2s;
    display: inline-block;
}
.btn-order:hover {
    background: var(--accent-hover);
}
.cart-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
}
/* --- мобильная адаптация header --- */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .logo {
        text-align: center;
    }
    .logo img {
        max-height: 35px;
    }
    .search-box {
        max-width: 100%;
        min-width: unset;
    }
    .search-box input {
        font-size: 13px;
        padding: 8px 12px;
    }
    .search-box button {
        padding: 8px 16px;
        font-size: 13px;
    }
    .header-actions {
        justify-content: center;
        gap: 15px;
    }
    .btn-order {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    .cart-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* ==========================================================
   5. NAVIGATION (основное меню)
   ========================================================== */
.main-nav {
    background: var(--primary);
}
.nav-inner {
    display: flex;
}
.nav-menu {
    display: flex;
    flex-wrap: wrap;
}
.nav-menu > li {
    position: relative;
}
.nav-menu > li > a {
    display: block;
    padding: 14px 20px;
    color: var(--white);
    font-weight: 500;
    transition: background 0.2s;
}
.nav-menu > li > a:hover {
    background: var(--primary-dark);
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    color: var(--black);
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 100;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: var(--black);
    transition: background 0.2s;
}
.dropdown-menu li a:hover {
    background: var(--gray-light);
}
.arrow {
    font-size: 10px;
    margin-left: 4px;
}
/* --- мобильная адаптация навигации --- */
@media (max-width: 768px) {
    .nav-inner {
        flex-direction: column;
    }
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    .nav-menu > li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-menu > li > a {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        background: var(--primary-dark);
    }
    .dropdown-menu li a {
        color: #ddd;
        padding: 8px 16px;
    }
    .dropdown-menu li a:hover {
        background: transparent;
        color: white;
    }
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }
}

/* ==========================================================
   6. FOOTER
   ========================================================== */
.main-footer {
    background: var(--primary);
    color: #ccc;
    padding-top: 40px;
    margin-top: 40px;
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--primary-light);
}
.footer-col h4 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 16px;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: #ccc;
    transition: color 0.2s;
}
.footer-col ul li a:hover {
    color: var(--white);
}
.payment-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.payment-icons img {
    height: 30px;
    background: var(--white);
    padding: 4px 6px;
    border-radius: 4px;
}
.shipping-info {
    margin-top: 16px;
    font-size: 14px;
}
.footer-bottom {
    background: var(--primary-dark);
    padding: 16px 0;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}
/* --- мобильная адаптация футера --- */
@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-col h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    .payment-icons {
        justify-content: center;
    }
    .footer-bottom {
        font-size: 12px;
        padding: 12px 0;
    }
}

/* ==========================================================
   7. ГЛАВНАЯ СТРАНИЦА – ОБЩИЕ БЛОКИ
   ========================================================== */

/* 7.1 HERO */
.hero {
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--gray-border);
}
.hero h1 {
    font-size: 2.8rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}
.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 20px auto;
    color: #555;
}
/* --- мобильная адаптация hero --- */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0 30px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
        margin: 15px auto;
    }
}

/* 7.2 CATEGORIES */
.section-title {
    text-align: center;
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: -0.3px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    padding: 40px 0;
}
.category-card {
    display: block;
    text-align: center;
    padding: 28px 20px;
    background: var(--gray-light);
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}
.category-card:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}
.category-card h3 {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 6px;
}
.category-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}
/* --- мобильная адаптация категорий --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
        padding: 20px 0;
    }
    .category-card {
        padding: 20px 12px;
    }
    .category-card h3 {
        font-size: 1rem;
    }
    .category-card p {
        font-size: 0.8rem;
    }
}

/* 7.3 PRODUCT GRID (каталог, популярные, похожие) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    padding: 40px 0;
}
.product-card {
    display: block;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--gray-border);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
}
.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.product-image {
    position: relative;
    padding-top: 100%;
    background: #f9f9f9;
}
.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.product-info {
    padding: 16px;
}
.product-info h3 {
    font-size: 1rem;
    margin: 0 0 8px 0;
    color: var(--primary);
    font-weight: 500;
}
.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.product-price .old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
}
.product-price .new {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}
/* --- мобильная адаптация product grid --- */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
        padding: 20px 0;
    }
    .product-info {
        padding: 12px;
    }
    .product-info h3 {
        font-size: 0.9rem;
    }
    .product-price .new {
        font-size: 1rem;
    }
    .product-price .old {
        font-size: 0.75rem;
    }
    .product-badge {
        font-size: 0.65rem;
        padding: 2px 8px;
        top: 6px;
        left: 6px;
    }
}

/* 7.4 SEO-БЛОК */
.seo-block {
    padding: 40px 0;
    border-top: 1px solid var(--gray-border);
    margin-top: 20px;
}
.seo-block h2 {
    color: var(--primary);
    text-align: center;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -0.3px;
}
.seo-block .content {
    max-width: 800px;
    margin: 20px auto 0;
    color: #444;
    line-height: 1.8;
    font-size: 0.95rem;
}
.seo-block .content p {
    margin-bottom: 16px;
}
/* --- мобильная адаптация seo-блока --- */
@media (max-width: 768px) {
    .seo-block {
        padding: 30px 0;
    }
    .seo-block h2 {
        font-size: 1.3rem;
    }
    .seo-block .content {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* ==========================================================
   8. СТРАНИЦА ТОВАРА (дополнительные стили)
   ========================================================== */
/* основные стили для страницы товара уже используются из общих,
   но добавим специфические для формы и картинки */
.product-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 20px 0 40px;
}
.product-image-wrapper {
    position: relative;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}
.product-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}
.product-image-wrapper .discount-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}
.product-info-block .product-category-label {
    color: #777;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.product-info-block h1 {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 500;
    margin: 0 0 12px 0;
}
.product-info-block .price-block {
    margin: 20px 0;
}
.product-info-block .price-block .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
}
.product-info-block .price-block .new-price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-left: 12px;
}
.order-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
}
.order-form input,
.order-form select {
    padding: 12px;
    border: 1px solid var(--gray-border);
    border-radius: 4px;
    font-size: 1rem;
}
.order-form button {
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 14px;
}
.benefits-block {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-border);
}
/* --- мобильная адаптация страницы товара --- */
@media (max-width: 768px) {
    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-image-wrapper {
        padding: 10px;
    }
    .product-image-wrapper img {
        max-height: 250px;
    }
    .product-info-block h1 {
        font-size: 1.5rem;
    }
    .product-info-block .price-block .new-price {
        font-size: 1.5rem;
    }
    .order-form {
        max-width: 100%;
    }
    .order-form input,
    .order-form select {
        font-size: 0.95rem;
        padding: 10px;
    }
}

/* ==========================================================
   9. ХЛЕБНЫЕ КРОШКИ (breadcrumbs)
   ========================================================== */
.breadcrumbs {
    padding: 20px 0;
    font-size: 0.9rem;
    color: #777;
}
.breadcrumbs a {
    color: var(--primary);
}
.breadcrumbs span {
    color: #777;
}
@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 0.8rem;
        padding: 12px 0;
    }
}

/* ==========================================================
   10. ПАГИНАЦИЯ
   ========================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
    border-top: 1px solid var(--gray-border);
}
.pagination a,
.pagination span {
    padding: 8px 16px;
    border: 1px solid var(--gray-border);
    border-radius: 4px;
    color: var(--primary);
    transition: background 0.2s;
}
.pagination a:hover {
    background: var(--gray-light);
}
.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
@media (max-width: 768px) {
    .pagination a,
    .pagination span {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* ==========================================================
   11. ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ ТОВАРА (бенефиты, контент)
   ========================================================== */

/* Блок преимуществ (benefits) */
.product-benefits {
    background: var(--gray-light);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 20px 0;
}
.product-benefits h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 12px 0;
}
.product-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.product-benefits ul li {
    padding: 6px 0 6px 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%231a4d3e" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') left center no-repeat;
    background-size: 18px;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Основной контент (main_content_html) */
.product-content {
    padding: 20px 0 40px;
    border-top: 1px solid var(--gray-border);
    margin-top: 20px;
}
.product-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    margin: 30px 0 16px 0;
}
.product-content h3:first-of-type {
    margin-top: 0;
}
.product-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin: 0 0 16px 0;
}
.product-content ul {
    margin: 0 0 20px 0;
    padding-left: 24px;
}
.product-content ul li {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 8px;
    list-style-type: disc;
}
.product-content ul li ul {
    margin-top: 4px;
    padding-left: 20px;
}
.product-content hr {
    border: none;
    border-top: 1px solid var(--gray-border);
    margin: 30px 0;
}
.product-content .faq-item {
    margin-bottom: 20px;
}
.product-content .faq-question {
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 4px 0;
}
.product-content .faq-answer {
    margin: 0 0 0 20px;
    color: #444;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .product-benefits {
        padding: 16px;
    }
    .product-benefits ul li {
        padding: 5px 0 5px 28px;
        font-size: 0.9rem;
    }
    .product-content h3 {
        font-size: 1.2rem;
    }
    .product-content p,
    .product-content ul li {
        font-size: 0.95rem;
    }
}


/* ==========================================================
   12. ОЖИВЛЕНИЕ ДИЗАЙНА: ЦЕНЫ, ЗВЁЗДЫ, БЕЙДЖИ, КНОПКИ
   ========================================================== */

/* --- ЗВЁЗДЫ --- */
.stars-inner {
    display: inline-block;
    font-size: 1.2rem;
    letter-spacing: 2px;
}
.star.full {
    color: #f5b342;
}
.star.empty {
    color: #ddd;
}
.star.half {
    color: #ddd;
    position: relative;
}
.star.half::before {
    content: '★';
    color: #f5b342;
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
}

/* ===== ЦЕНЫ ===== */
/* Карточки товаров (каталог, категории) */
.product-price .old {
    color: #999 !important;
    text-decoration: line-through !important;
    font-size: 0.85rem !important;
}
.product-price .new {
    color: #e67e22 !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
}

/* Страница товара (крупные цены) */
.price-block .old-price {
    color: #999 !important;
    text-decoration: line-through !important;
    font-size: 1.2rem !important;
}
.price-block .new-price {
    color: #e67e22 !important;
    font-weight: 700 !important;
    font-size: 2.2rem !important;
}

/* Бейдж скидки */
.discount-percent {
    display: inline-block;
    background: #e53e3e !important;
    color: white !important;
    padding: 2px 12px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    margin-left: 10px !important;
}

/* --- БЕЙДЖИ --- */
.product-badge {
    background: #e53e3e !important;
    color: white !important;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}
.top-badge {
    background: #2b6cb0;
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}
.discount-percent {
    display: inline-block;
    background: #e53e3e;
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

/* --- КНОПКИ --- */
.btn-order {
    background: var(--accent);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}
.btn-order:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    text-decoration: none;
}
.btn-order:active {
    transform: translateY(0);
}

/* --- ССЫЛКА "Show all reviews" --- */
.show-all-reviews {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border-radius: 30px;
    font-weight: 500;
    transition: background 0.2s;
    text-decoration: none;
}
.show-all-reviews:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

/* --- ЗАГОЛОВКИ НА СТРАНИЦЕ ТОВАРА --- */
.product-info-block h1 {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 600;
}
.product-content h3 {
    color: var(--primary);
    font-weight: 600;
}
.product-reviews-section h2 {
    color: var(--primary);
    font-weight: 600;
}

/* --- РАЗДЕЛИТЕЛИ --- */
hr {
    border: none;
    border-top: 1px solid var(--gray-border);
    margin: 30px 0;
}

/* ==========================================================
   ЛОГОТИП (текстовый)
   ========================================================== */
.logo {
    display: flex;
    align-items: center;
}
.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    transition: color 0.2s;
}
.logo-text:hover {
    color: var(--primary-dark);
}
.logo-tagline {
    font-size: 0.65rem;
    font-weight: 400;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}
/* Адаптив для мобильных */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.6rem;
    }
    .logo-tagline {
        font-size: 0.55rem;
    }
}

/* ==========================================================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ (до 768px)
   ========================================================== */
@media (max-width: 768px) {
    /* --- ГАМБУРГЕР --- */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        margin-left: auto;
    }
    .hamburger span {
        display: block;
        width: 28px;
        height: 3px;
        background: var(--primary);
        transition: 0.3s;
        border-radius: 2px;
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* --- НАВИГАЦИЯ (скрыта, открывается по клику) --- */
    .main-nav {
        display: none;
        width: 100%;
        background: var(--primary);
    }
    .main-nav.open {
        display: block;
    }
    .nav-inner {
        flex-direction: column;
    }
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    .nav-menu > li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-menu > li > a {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        background: var(--primary-dark);
    }
    .dropdown-menu li a {
        color: #ddd;
        padding: 8px 16px;
    }
    .dropdown-menu li a:hover {
        background: transparent;
        color: white;
    }
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }

    /* --- КАРТОЧКИ ТОВАРОВ (по 1 в ряд) --- */
    .product-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 20px 0 !important;
    }
    .category-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        padding: 20px 0 !important;
    }
    /* Категории на главной можно в 2 колонки, но если хотите тоже в 1 — измените на 1fr */
    /* Если хотите категории в 1 колонку, замените на grid-template-columns: 1fr !important; */

    /* --- ОТСТУПЫ И РАЗМЕРЫ --- */
    .hero h1 {
        font-size: 1.8rem !important;
    }
    .hero p {
        font-size: 1rem !important;
    }
    .section-title {
        font-size: 1.3rem !important;
    }
    .product-info h3 {
        font-size: 0.95rem !important;
    }
    .product-price .new {
        font-size: 1.1rem !important;
    }

    /* --- ХЕДЕР --- */
    .header-inner {
        flex-wrap: nowrap !important;
    }
    .search-box {
        min-width: 120px !important;
        flex: 1 !important;
    }
    .search-box input {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
    .search-box button {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
    .logo-text {
        font-size: 1.2rem !important;
    }
    .logo-tagline {
        font-size: 0.5rem !important;
    }
    .top-bar-links {
        font-size: 11px !important;
        gap: 10px !important;
    }
}


/* ==========================================================
   ФИНАЛЬНЫЕ ПРАВКИ ДЛЯ МОБИЛЬНОГО МЕНЮ
   ========================================================== */
@media (max-width: 768px) {
    /* Гамбургер – всегда виден и кликабелен */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        margin-left: auto;
        z-index: 30;
        position: relative;
    }
    .hamburger span {
        display: block !important;
        width: 28px;
        height: 3px;
        background: var(--primary, #1a4d3e);
        transition: 0.3s;
        border-radius: 2px;
        transform-origin: center;
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Навигация – скрыта, открывается классом open */
    .main-nav {
        display: none !important;
        width: 100%;
        background: var(--primary, #1a4d3e);
    }
    .main-nav.open {
        display: block !important;
    }

    /* Категории на мобильных – раскрываются по клику */
    .dropdown-menu {
        display: none !important;
        position: static !important;
        box-shadow: none !important;
        background: var(--primary-dark, #143c30) !important;
        padding-left: 20px;
    }
    .dropdown.active .dropdown-menu {
        display: block !important;
    }
    .dropdown-toggle {
        cursor: pointer;
    }
    .dropdown-toggle .arrow {
        transition: transform 0.2s;
        display: inline-block;
    }
    .dropdown.active .dropdown-toggle .arrow {
        transform: rotate(180deg);
    }
}