/* Глобальные переменные */
:root {
    --green: #76ab21;
    --green-dark: #5a8218;
    --green-light: #a8d44d;
    --orange: #f5a623;
    --orange-dark: #e69500;
    --white: #ffffff;
    --gray-light: #f9f9f9;
    --gray: #666666;
    --gray-dark: #333333;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.12);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: var(--white);
    color: var(--gray-dark);
}

/* ===== ОСНОВНОЙ КОНТЕЙНЕР - 80% ширины ===== */
.container,
.main-container,
.site-content,
#primary,
.content-area,
.wrap,
.site-main,
.entry-content,
.woocommerce .woocommerce-container,
.woocommerce .woocommerce-main {
    max-width: 80% !important;
    width: 80% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===== ХЕДЕР ===== */
.sticky-header,
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--white);
    box-shadow: var(--shadow);
    width: 100%;
}

/* Header Top */
.header-top {
    background: var(--green);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: white;
    text-decoration: none;
}

.header-top a:hover {
    text-decoration: underline;
}

/* Contact info */
.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Cart icon */
.cart-icon a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-count {
    background: var(--orange);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Header Main */
.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--green);
    text-decoration: none;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
}

/* ===== МЕНЮ ===== */
.main-menu {
    flex: 1;
    margin: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    justify-content: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--green);
}

/* Активный пункт меню */
.nav-menu .current-menu-item a,
.nav-menu .current-page-ancestor a {
    color: var(--green);
    font-weight: 600;
}

.nav-menu .current-menu-item a:after,
.nav-menu .current-page-ancestor a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--green);
}

/* Иконки в меню */
.menu-icon {
    margin-right: 8px;
    font-size: 1.1em;
    display: inline-block;
}

.nav-menu .menu-item a:hover .menu-icon {
    transform: scale(1.1);
    transition: transform 0.2s;
}

/* Выпадающее меню */
.nav-menu .menu-item-has-children > a:after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s;
}

.nav-menu .menu-item-has-children:hover > a:after {
    transform: rotate(180deg);
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
    list-style: none;
}

.nav-menu .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    margin: 0;
}

.nav-menu .sub-menu a {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.nav-menu .sub-menu a:hover {
    background: var(--gray-light);
    padding-left: 25px;
}

/* ===== ПОИСК ===== */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.search-form button {
    background: var(--green);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

/* ===== ТОВАРЫ ===== */
.products,
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 100%;
    margin: 40px 0;
}

.product-card,
.woocommerce .product {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
}

.product-card:hover,
.woocommerce .product:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-card img,
.woocommerce .product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover img,
.woocommerce .product:hover img {
    transform: scale(1.05);
}

.product-title,
.woocommerce .product h2 {
    font-weight: 700;
    font-size: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.2rem;
    padding: 12px 12px 0;
    margin: 0;
}

.price,
.woocommerce .price {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--green);
    margin: 10px 0;
    padding: 0 12px;
}

/* Кнопки */
.btn-gradient,
.woocommerce .button,
.add-to-cart {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-gradient:hover,
.woocommerce .button:hover {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    transform: scale(1.02);
}

.product-card .btn-gradient,
.woocommerce .product .button {
    width: calc(100% - 24px);
    margin: 0 12px 15px;
    display: block;
}

/* Быстрый просмотр */
.quick-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(118, 171, 33, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.product-card:hover .quick-view {
    opacity: 1;
}

/* ===== СТАТЬИ ===== */
.article-wrapper,
.page-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 0;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    color: var(--gray);
    font-size: 0.9rem;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-featured-image {
    margin: 30px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Контент статей */
.article-content,
.page-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

.article-content h1,
.page-content h1 {
    font-size: 2rem;
    color: var(--green);
    margin: 40px 0 20px;
}

.article-content h2,
.page-content h2 {
    font-size: 1.8rem;
    color: var(--green);
    margin: 35px 0 15px;
    border-left: 4px solid var(--green);
    padding-left: 15px;
}

.article-content h3,
.page-content h3 {
    font-size: 1.4rem;
    color: var(--green-dark);
    margin: 30px 0 15px;
}

.article-content p,
.page-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-content ul,
.article-content ol,
.page-content ul,
.page-content ol {
    margin: 20px 0 20px 30px;
}

.article-content li,
.page-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-content strong,
.page-content strong {
    color: var(--green-dark);
    font-weight: 600;
}

.article-content blockquote,
.page-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: var(--gray-light);
    border-left: 4px solid var(--green);
    font-style: italic;
    color: #555;
}

.article-content img,
.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Хлебные крошки */
.breadcrumbs {
    padding: 15px 0;
    margin-bottom: 20px;
    color: var(--gray);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--green);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Теги */
.article-tags {
    margin: 40px 0 30px;
    padding: 15px;
    background: var(--gray-light);
    border-radius: 8px;
}

.tags-label {
    font-weight: bold;
    margin-right: 10px;
}

.article-tags a {
    display: inline-block;
    background: white;
    padding: 5px 12px;
    margin: 0 5px 5px 0;
    border-radius: 20px;
    color: var(--green);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.article-tags a:hover {
    background: var(--green);
    color: white;
}

/* Навигация */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-previous a,
.nav-next a {
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
}

/* Похожие статьи */
.related-posts {
    margin: 50px 0;
}

.related-posts h3 {
    font-size: 1.5rem;
    color: var(--green);
    margin-bottom: 25px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-img {
    display: block;
    overflow: hidden;
}

.related-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-item:hover .related-img img {
    transform: scale(1.05);
}

.related-item h4 {
    padding: 15px 15px 5px;
    font-size: 1rem;
}

.related-item h4 a {
    color: var(--gray-dark);
    text-decoration: none;
}

.related-item h4 a:hover {
    color: var(--green);
}

.related-date {
    display: block;
    padding: 0 15px 15px;
    color: #999;
    font-size: 0.85rem;
}

/* ===== ФУТЕР ===== */
.site-footer {
    background: var(--gray-dark);
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid h4 {
    margin-bottom: 20px;
    color: var(--green-light);
}

.footer-grid a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-grid a:hover {
    color: var(--green-light);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: var(--green-light);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===== ФОРМЫ ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green);
    outline: none;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-header {
    display: none;
    background: var(--green);
    padding: 12px 20px;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

.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(7px, -6px);
}

.mobile-logo a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}

.mobile-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mobile-phone {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

.mobile-cta {
    background: var(--orange);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: white;
    z-index: 1001;
    transition: left 0.3s;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu-overlay.active {
    left: 0;
}

.mobile-menu-container {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--green);
}

.menu-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--green);
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin-bottom: 5px;
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--gray-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 1rem;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu .current-menu-item a {
    background: var(--green);
    color: white;
}

.mobile-nav-menu .menu-icon {
    font-size: 1.2em;
    margin-right: 12px;
}

.mobile-contacts {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.mobile-contacts a,
.mobile-contacts div {
    display: block;
    padding: 10px 0;
    color: var(--gray);
    text-decoration: none;
}

.mobile-contacts a:hover {
    color: var(--green);
}

.menu-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.menu-overlay-backdrop.active {
    display: block;
}

body.menu-open {
    overflow: hidden;
}

/* ===== HERO СЕКЦИЯ ===== */
.hero-section {
    background: linear-gradient(135deg, var(--green-light), var(--green));
    padding: 80px 0;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* ===== МЕНЮ КАТАЛОГА ===== */
.catalog-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    background: var(--gray-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.catalog-menu li {
    border-bottom: 1px solid #e0e0e0;
}

.catalog-menu li:last-child {
    border-bottom: none;
}

.catalog-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--gray-dark);
    text-decoration: none;
    transition: all 0.3s;
}

.catalog-menu a:hover,
.catalog-menu .current-menu-item a {
    background: var(--green);
    color: white;
    padding-left: 30px;
}

/* ===== ТАБЛИЦЫ ===== */
.article-content table,
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-content th,
.article-content td,
.page-content th,
.page-content td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.article-content th,
.page-content th {
    background: var(--green);
    color: white;
}

/* ===== КОД ===== */
pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.9rem;
}

code {
    background: #f4f4f4;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
}

/* ===== ГАЛЕРЕИ ===== */
.gallery {
    display: grid;
    gap: 15px;
    margin: 30px 0;
}

.gallery-item {
    margin: 0;
}

.gallery-icon img {
    width: 100%;
    height: auto;
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
    .container,
    .main-container,
    .site-content {
        max-width: 90% !important;
        width: 90% !important;
    }
    
    .products,
    .products-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        gap: 20px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .main-menu ul {
        gap: 15px;
    }
    
    .main-menu a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .container,
    .main-container,
    .site-content {
        max-width: 95% !important;
        width: 95% !important;
        padding: 0 10px !important;
    }
    
    /* Скрываем десктопный хедер ТОЛЬКО на мобильных */
    .header-top,
    .header-main {
        display: none;
    }
    
    /* Показываем мобильный хедер */
    .mobile-header {
        display: flex !important;
    }
    
    /* НЕ скрываем меню полностью, а показываем мобильную версию */
    .main-menu {
        display: none;
    }
    
    /* Сетки */
    .products,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-columns-2,
    .gallery-columns-3,
    .gallery-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Статьи */
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.4rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Hero */
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .site-main {
        padding-top: 0;
    }
}
@media (min-width: 769px) {
    .mobile-header,
    .mobile-menu-overlay {
        display: none !important;
    }
}
/* ===== ГЛАВНАЯ СТРАНИЦА ===== */

/* Категории */
.categories-section {
    margin: 60px 0;
    text-align: center;
}

.categories-section h2 {
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 30px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-item {
    background: var(--gray-light);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-5px);
    background: var(--green);
}

.category-item a {
    text-decoration: none;
    color: var(--gray-dark);
}

.category-item:hover a {
    color: white;
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Хиты продаж */
.featured-products {
    margin: 60px 0;
}

.featured-products h2 {
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 30px;
    text-align: center;
}

/* Блог на главной */
.blog-preview {
    margin: 60px 0;
}

.blog-preview h2 {
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 30px;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.blog-item:hover {
    transform: translateY(-5px);
}

.blog-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.blog-item h3 {
    padding: 15px 15px 5px;
    font-size: 1.1rem;
}

.blog-item h3 a {
    color: var(--gray-dark);
    text-decoration: none;
}

.blog-item h3 a:hover {
    color: var(--green);
}

.blog-date {
    display: block;
    padding: 0 15px 15px;
    color: #999;
    font-size: 0.85rem;
}

/* Адаптив */
@media (max-width: 1024px) {
    .categories-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
}

/* ===== ОТЛАДКА - ВРЕМЕННО ===== */
/* Убедимся, что меню видно на десктопе */
@media (min-width: 769px) {
    .main-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-menu {
        display: flex !important;
    }
}

/* Убедимся, что футер виден */
.site-footer {
    display: block !important;
    background: #333 !important;
    color: white !important;
    padding: 40px 0 !important;
}
/* ===== СООБЩЕНИЯ ОБ ОТСУТСТВИИ ТОВАРОВ ===== */

.empty-products-message,
.no-posts-message {
    text-align: center;
    padding: 60px 20px;
    background: var(--gray-light);
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.empty-products-message p,
.no-posts-message p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 20px;
}

.empty-products-message .btn-gradient {
    display: inline-block;
    width: auto;
    padding: 12px 30px;
    margin-top: 10px;
}
/* ===== HERO СЕКЦИЯ С ИЗОБРАЖЕНИЕМ ===== */

.hero-section {
    background: linear-gradient(135deg, var(--green-light), var(--green));
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 280px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.95);
    max-width: 500px;
}

.hero-image {
    flex: 1;
    text-align: center;
    min-width: 280px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: float 3s ease-in-out infinite;
}

/* Анимация плавающего изображения */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Адаптив для hero */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-image img {
        max-width: 80%;
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-8px); }
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-image img {
        max-width: 100%;
    }
}