/* ============================================
AMARANT THEME v2.3 — FULL CSS
============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8f9fa;
    color: #1a1a1a;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

.amarant-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
MOBILE — Лого | Поиск | Корзина | Бургер
============================================ */
@media (max-width: 992px) {
    /* Row 1: Лого | Поиск | Корзина | Бургер */
    .header-icon span {
        display: none;
    }

    /* Hide desktop-only elements */
    .btn-catalog,
    }

@media (max-width: 480px) {
    }

/* ============================================
MOBILE MENU
============================================ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 340px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    background: #fff;
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: #2e7d32;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mobile-menu-close:hover {
    background: #e0e0e0;
}

.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

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

.mobile-cat-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: background 0.2s;
}

.mobile-cat-link:hover,
.mobile-cat-link:active {
    background: #f8f9fa;
}

.cat-arrow {
    color: #999;
    font-size: 20px;
    transition: transform 0.3s;
    font-weight: 300;
}

.mobile-cat-item.open > .mobile-cat-link .cat-arrow {
    transform: rotate(90deg);
}

.mobile-subcategories {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafafa;
}

.mobile-cat-item.open > .mobile-subcategories {
    max-height: 1000px;
}

.mobile-subcategories li a {
    display: block;
    padding: 12px 20px 12px 36px;
    font-size: 14px;
    color: #666;
    transition: background 0.2s, color 0.2s;
}

.mobile-subcategories li a:hover,
.mobile-subcategories li a:active {
    background: #f0f0f0;
    color: #2e7d32;
}

/* ============================================
NOTICE
============================================ */

/* ============================================
HERO SECTION — без фона за текстом
============================================ */
.amarant-hero {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    padding: 80px 0 !important;
    min-height: auto !important;
    height: auto !important;
    display: flex;
    align-items: center;
}

/* Лёгкое затемнение для читаемости текста (без градиента!) */
.amarant-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.amarant-hero .amarant-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 560px;
    /* ✅ БЕЗ ФОНА — текст напрямую на картинке */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff; /* ← белый текст на фоне картинки */
    margin-bottom: 16px;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* ← тень для читаемости */
}

.hero-subtitle {
    font-size: 18px;
    color: #fff; /* ← белый текст */
    margin-bottom: 24px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9); /* ← белые теги */
    color: #1a1a1a;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

.tag .check {
    color: #2e7d32;
    font-weight: 700;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #2e7d32;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: #1b5e20;
}

/* ============================================
HERO — Mobile (без фона за текстом)
============================================ */
@media (max-width: 768px) {
    .amarant-hero {
        background-size: cover !important;
        background-position: center top !important;
        padding: 50px 0 !important;
        min-height: auto !important;
        height: auto !important;
    }
    .hero-text {
        padding: 0;
        max-width: 100%;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }
    .hero-title {
        font-size: 28px;
        color: #fff;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
    .hero-subtitle {
        font-size: 15px;
        color: #fff;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    }
    .hero-tags {
        justify-content: center;
    }
    .tag {
        background: rgba(255, 255, 255, 0.95);
        font-size: 13px;
        padding: 6px 12px;
    }
}

    .hero-title {
        font-size: 28px;
        color: #fff;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }

    .hero-subtitle {
        font-size: 15px;
        color: #fff;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    }

    .hero-tags {
        justify-content: flex-start;
    }

    .tag {
        background: rgba(255, 255, 255, 0.95);
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .amarant-hero {
        padding: 40px 0;
        min-height: 350px;
    }

    .hero-title {
        font-size: 24px;
    }
}

/* ============================================
BENEFITS SECTION
============================================ */
.amarant-benefits {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.amarant-benefits .amarant-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.benefit-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #2e7d32;
}

/* ============================================
POPULAR CATEGORIES
============================================ */
.amarant-popular-cats {
    padding: 60px 0;
    background: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2,
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.section-link {
    color: #2e7d32;
    font-weight: 500;
    font-size: 15px;
    transition: opacity 0.2s;
}

.section-link:hover {
    opacity: 0.7;
}

.cats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.cat-card {
    text-align: center;
    transition: transform 0.2s;
}

.cat-card:hover {
    transform: translateY(-4px);
}

.cat-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.cat-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* ============================================
GOALS SECTION
============================================ */
.amarant-goals {
    padding: 60px 0;
    background: #f8f9fa;
}

.amarant-goals .section-title {
    text-align: center;
    margin-bottom: 40px;
}

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

.goal-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.goal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.goal-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
}

.goal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.goal-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ============================================
BESTSELLERS SECTION
============================================ */
.amarant-bestsellers {
    padding: 60px 0;
    background: #fff;
}

.amarant-bestsellers .section-title {
    text-align: center;
    margin-bottom: 40px;
}

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

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

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

.product-link {
    flex: 1;
    display: block;
    padding: 12px;
}

.product-img {
    position: relative;
    aspect-ratio: 1;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #2e7d32;
}

.product-price del {
    color: #888;
    font-size: 14px;
    margin-right: 6px;
    font-weight: 400;
}

.add-to-cart-btn {
    display: block;
    text-align: center;
    background: #2e7d32;
    color: #fff;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    margin: 0 12px 12px;
    border-radius: 6px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.add-to-cart-btn:hover {
    background: #1b5e20;
}

.add-to-cart-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ============================================
WHY SECTION
============================================ */
.amarant-why {
    padding: 60px 0;
    background: #f8f9fa;
}

.amarant-why .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.why-item {
    text-align: center;
    padding: 24px;
}

.why-icon {
    font-size: 40px;
    margin-bottom: 16px;
    line-height: 1;
}

.why-num {
    font-size: 32px;
    font-weight: 800;
    color: #2e7d32;
    margin-bottom: 4px;
}

.why-text {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* ============================================
REVIEWS SECTION
============================================ */
.amarant-reviews {
    padding: 60px 0;
    background: #fff;
}

.amarant-reviews .section-title {
    text-align: center;
    margin-bottom: 40px;
}

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

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

.review-stars {
    color: #ffc107;
    font-size: 18px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.review-stars .star {
    color: #ddd;
}

.review-stars .star.filled {
    color: #ffc107;
}

.review-text {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 16px;
}

.review-author {
    font-size: 13px;
    color: #666;
}

.review-author strong {
    color: #1a1a1a;
    font-weight: 600;
}

.review-product {
    display: block;
    color: #2e7d32;
    font-size: 12px;
    margin-top: 4px;
}

/* ============================================
SHOPS SECTION
============================================ */
.amarant-shops {
    padding: 60px 0;
    background: #f8f9fa;
}

.amarant-shops .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.shops-map {
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
}

.shops-map iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

/* ============================================
SUBSCRIBE SECTION
============================================ */
.amarant-subscribe {
    padding: 60px 0;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: #fff;
}

.amarant-subscribe .section-title {
    text-align: center;
    margin-bottom: 12px;
    color: #fff;
}

.subscribe-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.subscribe-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.subscribe-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
}

.subscribe-form button {
    padding: 14px 28px;
    background: #fff;
    color: #2e7d32;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.subscribe-form button:hover {
    transform: translateY(-2px);
}

/* ============================================
FOOTER
============================================ */
.amarant-footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 40px 0 24px;
}

.footer-nav {
    margin-bottom: 24px;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 24px;
    list-style: none;
    flex-wrap: wrap;
}

.footer-menu a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-menu a:hover {
    color: #fff;
}

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

/* ============================================
FAB WIDGET
============================================ */
.amarant-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.amarant-fab.amarant-fab--left {
    right: auto;
    left: 24px;
    align-items: flex-start;
}

/* ============================================
RESPONSIVE — Tablet
============================================ */
@media (max-width: 1024px) {
    .cats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .goals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        max-width: 100%;
    }
    .hero-title {
        font-size: 32px;
    }
}

/* ============================================
RESPONSIVE — Mobile
============================================ */
@media (max-width: 768px) {
    .amarant-benefits {
        padding: 16px 0;
    }
    
    .amarant-benefits .amarant-container {
        gap: 20px;
        justify-content: flex-start;
    }
    
    .benefit-item {
        font-size: 14px;
        gap: 8px;
    }
    
    .amarant-popular-cats,
    .amarant-goals,
    .amarant-bestsellers,
    .amarant-why,
    .amarant-reviews,
    .amarant-shops,
    .amarant-subscribe {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 24px !important;
        margin-bottom: 24px !important;
    }
    
    .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .cats-grid,
    .products-grid,
    .goals-grid,
    .why-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .goal-card {
        padding: 20px;
    }
    
    .goal-icon {
        font-size: 36px;
    }
    
    .why-num {
        font-size: 24px;
    }
    
    .review-card {
        padding: 16px;
    }
    
    .subscribe-form {
        flex-direction: column;
        padding: 0 16px;
    }
    
    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
    }
    
    .amarant-fab {
        bottom: 16px;
        right: 16px;
    }
    
    .amarant-fab.amarant-fab--left {
        left: 16px;
    }

    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .hero-tags {
        justify-content: center;
    }
}

/* ============================================
RESPONSIVE — Small Mobile
============================================ */
@media (max-width: 480px) {
    .cats-grid,
    .products-grid,
    .goals-grid,
    .why-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .amarant-benefits .amarant-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .mobile-menu {
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================
ACCESSIBILITY
============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #2e7d32;
    outline-offset: 2px;
}
/* Скрываем на мобильных */

/* ============================================
POPULAR CATEGORIES — OVERRIDE (3 desktop, 2 mobile)
============================================ */
/* Desktop: 3 в ряд */
.amarant-popular-cats .cats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}

/* Mobile: 2 в ряд */
@media (max-width: 768px) {
    .amarant-popular-cats .cats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .amarant-popular-cats .cat-img-wrap {
        border-radius: 10px;
        margin-bottom: 8px;
    }
    
    .amarant-popular-cats .cat-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .amarant-popular-cats .cats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

/* ============================================
BESTSELLERS SECTION — 3 desktop, 2 mobile
============================================ */
.amarant-bestsellers .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .amarant-bestsellers .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .amarant-bestsellers .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ============================================
BESTSELLERS SECTION — 3 desktop, 2 mobile
============================================ */
.amarant-bestsellers .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .amarant-bestsellers .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .amarant-bestsellers .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ============================================
ABOUT COMPANY SECTION
============================================ */
.amarant-about {
    padding: 60px 0;
    background: #f8f9fa;
}

.amarant-about .about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.amarant-about .section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.amarant-about .about-text {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 32px;
}

.amarant-about .about-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #2e7d32;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.amarant-about .about-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: #1b5e20;
}

.amarant-about .about-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.amarant-about .about-btn:hover svg {
    transform: translateX(4px);
}

/* Mobile */
@media (max-width: 768px) {
    .amarant-about {
        padding: 40px 0;
    }
    
    .amarant-about .section-title {
        font-size: 24px;
    }
    
    .amarant-about .about-text {
        font-size: 15px;
    }
    
    .amarant-about .about-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* ============================================
HEADER ADDRESS (desktop + mobile)
============================================ */
/* Поиск — сокращённая ширина на десктопе (было 500px) */
/* ============================================
HEADER DESKTOP — Order
============================================ */
/* ============================================
MOBILE — (Logo | Address | Cart | Burger)
============================================ */

@media (max-width: 480px) {
    }

/* ============================================
HEADER ADDRESS (desktop + mobile)
============================================ */
/* Поиск — сокращённая ширина на десктопе (было 500px) */
/* ============================================
HEADER DESKTOP — Order
============================================ */
/* ============================================
MOBILE — (Logo | Address | Cart | Burger)
============================================ */

@media (max-width: 480px) {
    }

/* ============================================
BESTSELLERS — Same grid as Popular Categories
Desktop: 3 в ряд | Mobile: 2 в ряд
============================================ */

/* Override для products-grid в секции bestsellers */
.amarant-bestsellers .products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}

/* Квадратные изображения товаров (как у категорий) */
.amarant-bestsellers .product-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amarant-bestsellers .product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    box-sizing: border-box;
}

/* Единый стиль карточки */
.amarant-bestsellers .product-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.amarant-bestsellers .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.amarant-bestsellers .product-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.amarant-bestsellers .product-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.amarant-bestsellers .product-price {
    font-size: 16px;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 12px;
}

.amarant-bestsellers .product-price del {
    color: #888;
    font-size: 14px;
    margin-right: 6px;
    font-weight: 400;
}

.amarant-bestsellers .add-to-cart-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    background: #2e7d32;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
    margin: 0;
    border: none;
    cursor: pointer;
}

.amarant-bestsellers .add-to-cart-btn:hover {
    background: #1b5e20;
}

/* ============================================
BESTSELLERS — Mobile: 2 в ряд (как у категорий)
============================================ */
@media (max-width: 768px) {
    .amarant-bestsellers .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .amarant-bestsellers .product-card {
        padding: 12px;
    }
    
    .amarant-bestsellers .product-img {
        border-radius: 10px;
        margin-bottom: 8px;
    }
    
    .amarant-bestsellers .product-img img {
        padding: 12px;
    }
    
    .amarant-bestsellers .product-title {
        font-size: 13px;
        min-height: 36px;
    }
    
    .amarant-bestsellers .product-price {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .amarant-bestsellers .add-to-cart-btn {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .amarant-bestsellers .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .amarant-bestsellers .product-title {
        font-size: 12px;
    }
}

/* ============================================
COMPACT CARDS — одинаковые карточки для
"Популярные категории" и "Хиты продаж"
============================================ */

/* === СЕТКА: 6 на десктопе === */
.amarant-popular-cats .cats-grid,
.amarant-bestsellers .products-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 16px !important;
}

/* === КАРТОЧКА категории === */
.amarant-popular-cats .cat-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    text-decoration: none;
    color: #1a1a1a;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.amarant-popular-cats .cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-color: #c8e6c9;
}

/* === КАРТОЧКА товара === */
.amarant-bestsellers .product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
}

.amarant-bestsellers .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-color: #c8e6c9;
}

.amarant-bestsellers .product-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

/* === КАРТИНКА — одинаковый размер для обоих блоков === */
.amarant-popular-cats .cat-img-wrap,
.amarant-bestsellers .product-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1 !important;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.amarant-popular-cats .cat-img-wrap img,
.amarant-bestsellers .product-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    transition: transform 0.3s;
}

.amarant-popular-cats .cat-card:hover .cat-img-wrap img,
.amarant-bestsellers .product-card:hover .product-img img {
    transform: scale(1.05);
}

/* === НАЗВАНИЕ категории === */
.amarant-popular-cats .cat-name {
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1.3;
    color: #1a1a1a;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 32px;
}

/* === НАЗВАНИЕ товара === */
.amarant-bestsellers .product-title {
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 6px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 32px;
}

/* === ЦЕНА товара === */
.amarant-bestsellers .product-price {
    font-size: 14px !important;
    font-weight: 700;
    color: #2e7d32 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.2;
}

.amarant-bestsellers .product-price del {
    font-size: 11px !important;
    color: #999;
    margin-right: 4px;
    font-weight: 400;
}

/* === КНОПКА "В корзину" (компактная) === */
.amarant-bestsellers .add-to-cart-btn {
    display: block;
    width: 100%;
    padding: 8px 6px !important;
    background: #2e7d32;
    color: #fff;
    text-align: center;
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
    margin: 0 !important;
    border: none;
    cursor: pointer;
}

.amarant-bestsellers .add-to-cart-btn:hover {
    background: #1b5e20;
}

/* === Заголовки секций — компактнее === */
.amarant-popular-cats .section-title,
.amarant-bestsellers .section-title {
    font-size: 24px !important;
    margin-bottom: 24px !important;
}

.amarant-popular-cats .section-header,
.amarant-bestsellers .section-header {
    margin-bottom: 24px !important;
}

/* ============================================
TABLET (≤ 1024px): 4 в ряд
============================================ */
@media (max-width: 1024px) {
    .amarant-popular-cats .cats-grid,
    .amarant-bestsellers .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 14px !important;
    }
}

/* ============================================
MOBILE (≤ 768px): 3 в ряд — компактные карточки
============================================ */
@media (max-width: 768px) {
    .amarant-popular-cats .cats-grid,
    .amarant-bestsellers .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    
    .amarant-popular-cats .cat-card,
    .amarant-bestsellers .product-card {
        padding: 8px;
        border-radius: 8px;
    }
    
    .amarant-popular-cats .cat-img-wrap,
    .amarant-bestsellers .product-img {
        margin-bottom: 6px !important;
        border-radius: 6px;
    }
    
    .amarant-popular-cats .cat-img-wrap img,
    .amarant-bestsellers .product-img img {
        padding: 6px !important;
    }
    
    .amarant-popular-cats .cat-name,
    .amarant-bestsellers .product-title {
        font-size: 11px !important;
        min-height: 28px;
    }
    
    .amarant-bestsellers .product-price {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }
    
    .amarant-bestsellers .add-to-cart-btn {
        padding: 6px 4px !important;
        font-size: 11px !important;
    }
    
    .amarant-popular-cats .section-title,
    .amarant-bestsellers .section-title {
        font-size: 20px !important;
        margin-bottom: 16px !important;
    }
}

/* ============================================
SMALL MOBILE (≤ 480px): 2 в ряд
============================================ */
@media (max-width: 480px) {
    .amarant-popular-cats .cats-grid,
    .amarant-bestsellers .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .amarant-popular-cats .cat-card,
    .amarant-bestsellers .product-card {
        padding: 8px;
    }
}

/* ============================================
SECTION BACKGROUNDS — чередование фонов
(переопределяет старые правила через каскад)
============================================ */

/* Подберите по цели — СЕРЫЙ */
.amarant-goals {
    background: #f8f9fa !important;
}

/* Хиты продаж — БЕЛЫЙ */
.amarant-bestsellers {
    background: #ffffff !important;
}

/* Почему выбирают Amarant — СЕРЫЙ */
.amarant-why {
    background: #f8f9fa !important;
}

/* О компании — БЕЛЫЙ (был серый) */
.amarant-about {
    background: #ffffff !important;
}

/* Отзывы — СЕРЫЙ (был белый) */
.amarant-reviews {
    background: #f8f9fa !important;
}

/* Магазин на карте — БЕЛЫЙ (был серый) */
.amarant-shops {
    background: #ffffff !important;
}

/* ============================================
WHITE SECTIONS — Full Width + подсветка
Блоки на всю ширину экрана, но с тонкими
горизонтальными линиями и мягкой тенью
для визуального отделения от серого фона
============================================ */
.amarant-popular-cats,
.amarant-bestsellers,
.amarant-about,
.amarant-shops {
    background: #ffffff !important;
    border-top: 1px solid #e8e8e8 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    margin: 0 !important;
    max-width: 100% !important;
    padding: 60px 0 !important;
    position: relative;
}

/* ============================================
TABLET (≤ 1024px)
============================================ */
@media (max-width: 1024px) {
    .amarant-popular-cats,
    .amarant-bestsellers,
    .amarant-about,
    .amarant-shops {
        padding: 48px 0 !important;
    }
}

/* ============================================
MOBILE (≤ 768px)
============================================ */
@media (max-width: 768px) {
    .amarant-popular-cats,
    .amarant-bestsellers,
    .amarant-about,
    .amarant-shops {
        padding: 32px 0 !important;
        box-shadow: 
            0 1px 2px rgba(0, 0, 0, 0.02),
            inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    }
}

/* ============================================
SMALL MOBILE (≤ 480px)
============================================ */
@media (max-width: 480px) {
    .amarant-popular-cats,
    .amarant-bestsellers,
    .amarant-about,
    .amarant-shops {
        padding: 24px 0 !important;
    }
}

/* ============================================
GOALS SECTION — Desktop: 3 в ряд, Mobile: 2 в ряд
============================================ */
.amarant-goals .goals-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}

@media (max-width: 1024px) {
    .amarant-goals .goals-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .amarant-goals .goals-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .amarant-goals .goal-card {
        padding: 20px 16px;
    }
    
    .amarant-goals .goal-icon {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .amarant-goals .goal-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .amarant-goals .goal-desc {
        font-size: 13px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .amarant-goals .goals-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .amarant-goals .goal-card {
        padding: 16px 12px;
    }
    
    .amarant-goals .goal-icon {
        font-size: 28px;
    }
    
    .amarant-goals .goal-title {
        font-size: 14px;
    }
    
    .amarant-goals .goal-desc {
        font-size: 12px;
    }
}

/* ============================================
WHY SECTION — Desktop: 4 в ряд, Mobile: 2 в ряд
============================================ */
.amarant-why .why-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
}

@media (max-width: 1024px) {
    .amarant-why .why-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .amarant-why .why-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .amarant-why .why-item {
        padding: 20px 12px;
        text-align: center;
    }
    
    .amarant-why .why-icon {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .amarant-why .why-num {
        font-size: 24px;
        margin-bottom: 4px;
    }
    
    .amarant-why .why-text {
        font-size: 13px;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .amarant-why .why-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .amarant-why .why-item {
        padding: 16px 8px;
    }
    
    .amarant-why .why-icon {
        font-size: 28px;
    }
    
    .amarant-why .why-num {
        font-size: 20px;
    }
    
    .amarant-why .why-text {
        font-size: 12px;
    }
}

/* ============================================
AJAX PAGINATION: Кнопка "Показать ещё"
============================================ */
.amarant-load-more-wrapper {
    text-align: center;
    padding: 40px 0 20px;
    margin: 0 auto;
    max-width: 1280px;
}

.amarant-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 40px;
    background: #2e7d32;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 200px;
}

.amarant-load-more-btn:hover:not(:disabled) {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.amarant-load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.amarant-load-more-btn .btn-spinner svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.amarant-no-more {
    display: block;
    padding: 20px;
    color: #666;
    font-size: 14px;
    text-align: center;
}

/* Скрываем стандартную пагинацию WooCommerce при использовании AJAX */

/* Mobile адаптация */
@media (max-width: 768px) {
    .amarant-load-more-wrapper {
        padding: 30px 0 16px;
    }
    
    .amarant-load-more-btn {
        padding: 12px 32px;
        font-size: 15px;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .amarant-load-more-btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ============================================
IMAGE OPTIMIZATION: WebP + Lazy Load styles
============================================ */

/* Плавное появление изображений при lazy load */
img[loading="lazy"] {
    transition: opacity 0.3s ease-in;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}

img[loading="lazy"][src] {
    opacity: 1;
}

/* Placeholder для изображений до загрузки */
.product-img img,
.cat-img-wrap img,
.hero-bg,
.review-avatar img {
    background: #f5f5f5;
    min-height: 200px;
}

/* Предотвращаем сдвиг макета (CLS) */
img {
    aspect-ratio: attr(width) / attr(height);
}

/* Для карточек товаров — фиксированное соотношение */
.product-img,
.cat-img-wrap {
    aspect-ratio: 1 / 1;
}

/* WebP fallback через picture element (если плагин добавляет) */
picture {
    display: block;
}

picture img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
MOBILE MENU: Улучшенные стили (v2.0)
============================================ */

/* Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: #ffffff;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 10000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

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

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Close Button (✕) */
.mobile-menu-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #fff;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mobile-menu-close:hover {
    background: #f1f1f1;
    color: #333;
    transform: rotate(90deg);
}

.mobile-menu-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Mobile Search */
.mobile-search {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 61px;
    z-index: 9;
}

.mobile-search form {
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-search input[type="search"] {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.mobile-search input[type="search"]:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.mobile-search input[type="search"]::placeholder {
    color: #999;
}

.mobile-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: #2e7d32;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-search button:hover {
    background: #1b5e20;
    transform: translateY(-50%) scale(1.05);
}

.mobile-search button svg {
    width: 18px;
    height: 18px;
}

/* Mobile Categories */
.mobile-menu-content {
    padding: 0;
}

.mobile-section-title {
    padding: 15px 20px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin-top: 10px;
}

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

.mobile-cat-item {
    border-bottom: 1px solid #f1f1f1;
}

.mobile-cat-link {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-cat-link:hover {
    background: #f8f9fa;
    color: #2e7d32;
    padding-left: 25px;
}

.mobile-cat-link::before {
    content: '›';
    position: absolute;
    left: 10px;
    opacity: 0;
    transition: all 0.2s ease;
}

.mobile-cat-link:hover::before {
    opacity: 1;
    left: 15px;
}

/* Burger Button */
/* Scrollbar styling */
.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Mobile responsive */

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: #ffffff;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 10000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

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

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Close Button (✕) */
.mobile-menu-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #fff;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mobile-menu-close:hover {
    background: #f1f1f1;
    color: #333;
    transform: rotate(90deg);
}

.mobile-menu-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Mobile Search */
.mobile-search {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 61px;
    z-index: 9;
}

.mobile-search form {
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-search input[type="search"] {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.mobile-search input[type="search"]:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.mobile-search input[type="search"]::placeholder {
    color: #999;
}

.mobile-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: #2e7d32;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-search button:hover {
    background: #1b5e20;
    transform: translateY(-50%) scale(1.05);
}

.mobile-search button svg {
    width: 18px;
    height: 18px;
}

/* Mobile Categories */
.mobile-menu-content {
    padding: 0;
}

.mobile-section-title {
    padding: 15px 20px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin-top: 10px;
}

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

.mobile-cat-item {
    border-bottom: 1px solid #f1f1f1;
}

.mobile-cat-link {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-cat-link:hover {
    background: #f8f9fa;
    color: #2e7d32;
    padding-left: 25px;
}

.mobile-cat-link::before {
    content: '›';
    position: absolute;
    left: 10px;
    opacity: 0;
    transition: all 0.2s ease;
}

.mobile-cat-link:hover::before {
    opacity: 1;
    left: 15px;
}

/* Burger Button */
/* Scrollbar styling */
.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Mobile responsive */

/* Уменьшаем высоту шапки меню */
.mobile-menu-header {
    padding: 10px 15px !important;
    min-height: auto !important;
}

/* Уменьшаем размер заголовка */
.mobile-menu-title {
    font-size: 16px !important;
}

/* Уменьшаем размер крестика */
.mobile-menu-close {
    width: 32px !important;
    height: 32px !important;
    font-size: 20px !important;
}

/* Делаем поиск sticky — прилипает к шапке */
.mobile-search {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    background: #fff !important;
}

/* ============================================
HEADER: Замена кнопки "Каталог" на бургер (Desktop)
============================================ */

/* Скрываем кнопку "Каталог товаров" на десктопе */
@media (min-width: 769px) {

    /* Показываем бургер на десктопе */
    }

/* На мобильных оставляем как есть */
@media (max-width: 768px) {

    }

/* ============================================
AMARANT NOTICE: Компактное toast-уведомление
============================================ */

/* Мобильная адаптация */

/* ============================================
HEADER CART: Фиксирование позиционирования
============================================ */
/* Когда badge скрыт через inline style */
/* На мобильных */

/* ============================================
FIX: Уведомление о добавлении в корзину
============================================ */

/* Мобильная адаптация */

/* ============================================
УНИВЕРСАЛЬНОЕ УВЕДОМЛЕНИЕ (все страницы)
============================================ */
.amarant-notice {
    position: fixed !important;
    top: 24px !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) translateY(-120px) !important;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%) !important;
    color: #fff !important;
    padding: 14px 28px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    z-index: 2147483647 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s !important;
    pointer-events: none !important;
    max-width: 90vw !important;
    white-space: nowrap !important;
}

.amarant-notice.show {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.amarant-notice svg {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
    background: rgba(255,255,255,0.2) !important;
    border-radius: 50% !important;
    padding: 4px !important;
}

.amarant-notice span {
    flex: 1 !important;
}

/* Кнопка добавления: состояние загрузки */
.add-to-cart-btn.loading,
.single_add_to_cart_button.loading,
.sticky-cart-btn.loading {
    opacity: 0.7 !important;
    cursor: wait !important;
    pointer-events: none !important;
}

/* Кнопка добавления: состояние "В корзине" */
.add-to-cart-btn.added,
.single_add_to_cart_button.added,
.sticky-cart-btn.added {
    background: #1b5e20 !important;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .amarant-notice {
        top: auto !important;
        bottom: 24px !important;
        left: 16px !important;
        right: 16px !important;
        max-width: none !important;
        transform: translateY(120px) !important;
        white-space: normal !important;
        text-align: center !important;
        justify-content: center !important;
        border-radius: 16px !important;
        font-size: 14px !important;
        padding: 14px 20px !important;
    }

    .amarant-notice.show {
        transform: translateY(0) !important;
    }
}

/* ============================================
HERO: Исправление отображения на FullHD+
============================================ */

/* FullHD и больше — сдвигаем фокус вправо */
@media (min-width: 1920px) {
    .amarant-hero {
        background-position: 70% center !important;
        min-height: 600px;
    }
}

/* 2K мониторы */
@media (min-width: 2560px) {
    .amarant-hero {
        background-position: 75% center !important;
        min-height: 700px;
    }
}

/* Стандартные ноутбуки 1366-1440px — центрируем */
@media (min-width: 1366px) and (max-width: 1919px) {
    .amarant-hero {
        background-position: 60% center !important;
    }
}

/* Планшеты и маленькие ноутбуки */
@media (max-width: 1365px) {
    .amarant-hero {
        background-position: center center !important;
    }
}

/* Мобильные — оставляем как есть */
@media (max-width: 768px) {
    .amarant-hero {
        background-size: cover !important;
        background-position: center top !important;
        padding: 50px 0 !important;
        min-height: auto !important;
        height: auto !important;
    }
    .hero-text {
        padding: 0;
        max-width: 100%;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }
    .hero-title {
        font-size: 28px;
        color: #fff;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
    .hero-subtitle {
        font-size: 15px;
        color: #fff;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    }
    .hero-tags {
        justify-content: center;
    }
    .tag {
        background: rgba(255, 255, 255, 0.95);
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* ============================================
HERO: Оптимизация под FullHD (1920x1080)
============================================ */
.amarant-hero {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    padding: 80px 0 !important;
    min-height: auto !important;
    height: auto !important;
    display: flex;
    align-items: center;
}

.amarant-hero .amarant-container {
    padding-top: 20px;
    padding-bottom: 20px;
}

.hero-title {
    font-size: 36px !important;
    margin-bottom: 12px !important;
    line-height: 1.15 !important;
}

.hero-subtitle {
    font-size: 16px !important;
    margin-bottom: 16px !important;
    max-width: 500px;
}

.hero-tags {
    margin-bottom: 20px !important;
    gap: 8px !important;
}

.tag {
    padding: 6px 14px !important;
    font-size: 13px !important;
}

.hero-cta {
    padding: 12px 28px !important;
    font-size: 15px !important;
}

/* Преимущества под Hero — компактнее */
.amarant-benefits {
    padding: 12px 0 !important;
}

.benefit-item {
    font-size: 14px !important;
    gap: 8px !important;
}

/* ============================================
TABLET (1024-1440px)
============================================ */
@media (max-width: 1440px) {

    .hero-title {
        font-size: 32px !important;
    }
    
    .hero-subtitle {
        font-size: 15px !important;
    }
}

/* ============================================
MOBILE — возвращаем нормальные размеры
============================================ */
@media (max-width: 768px) {
    .amarant-hero {
        background-size: cover !important;
        background-position: center top !important;
        padding: 50px 0 !important;
        min-height: auto !important;
        height: auto !important;
    }
    .hero-text {
        padding: 0;
        max-width: 100%;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }
    .hero-title {
        font-size: 28px;
        color: #fff;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
    .hero-subtitle {
        font-size: 15px;
        color: #fff;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    }
    .hero-tags {
        justify-content: center;
    }
    .tag {
        background: rgba(255, 255, 255, 0.95);
        font-size: 13px;
        padding: 6px 12px;
    }
}
    
    .hero-subtitle {
        font-size: 14px !important;
    }
}

/* ============================================
HERO: Desktop Optimization (только десктоп)
============================================ */
@media (min-width: 1025px) {
    .amarant-hero {
        min-height: 650px !important;
        height: 650px !important;
        padding: 0 !important;
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-color: #f5f0eb !important;
    }
    
    .amarant-hero .amarant-container {
        padding: 0 60px;
    }
    
    .hero-content {
        max-width: 600px;
    }
    
    .hero-title {
        font-size: 48px !important;
        margin-bottom: 20px !important;
    }
    
    .hero-subtitle {
        font-size: 20px !important;
        margin-bottom: 30px !important;
    }
    
    .hero-tags {
        margin-bottom: 40px !important;
    }
    
    .tag {
        padding: 10px 20px !important;
        font-size: 15px !important;
    }
    
    .hero-cta {
        padding: 16px 36px !important;
        font-size: 17px !important;
    }
}

/* ============================================
HERO: Large Desktop (1920px+)
============================================ */
@media (min-width: 1920px) {
    .amarant-hero {
        min-height: 750px !important;
        height: 750px !important;
    }
    
    .hero-title {
        font-size: 52px !important;
    }
    
    .hero-subtitle {
        font-size: 22px !important;
    }
}

/* ============================================
HERO: Опускаем изображение на десктопе
чтобы головы не обрезались
============================================ */
@media (min-width: 769px) {
    .amarant-hero {
        background-position: center 25% !important;
    }
}

/* ============================================
HERO: Мобильная оптимизация (Tecno Spark 20 и др.)
============================================ */
@media (max-width: 768px) {
    .amarant-hero {
        min-height: 320px !important;
        max-height: 400px !important;
        padding: 30px 0 !important;
        background-position: center 30% !important;
    }
    
    .hero-title {
        font-size: 22px !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }
    
    .hero-subtitle {
        font-size: 13px !important;
        margin-bottom: 12px !important;
        line-height: 1.4 !important;
    }
    
    .hero-tags {
        margin-bottom: 15px !important;
        gap: 6px !important;
    }
    
    .tag {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }
    
    .hero-cta {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}

/* Маленькие экраны (Tecno Spark 20 ~360px) */
@media (max-width: 400px) {
    .amarant-hero {
        min-height: 280px !important;
        padding: 20px 0 !important;
    }
    
    .hero-title {
        font-size: 18px !important;
    }
    
    .hero-subtitle {
        font-size: 12px !important;
    }
    
    .tag {
        padding: 4px 8px !important;
        font-size: 10px !important;
    }
    
    .hero-cta {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
}

/* ============================================
HERO: Увеличение блока на десктопе
============================================ */
@media (min-width: 1025px) {
    .amarant-hero {
        min-height: 650px !important;
        padding: 120px 0 !important;
        background-position: center center !important;
    }
}

@media (min-width: 1440px) {
    .amarant-hero {
        min-height: 700px !important;
        padding: 140px 0 !important;
    }
}

@media (min-width: 1920px) {
    .amarant-hero {
        min-height: 750px !important;
        padding: 160px 0 !important;
    }
}

/* ============================================
HERO: Опускаем изображение на десктопе
чтобы не обрезалась голова папы
============================================ */
@media (min-width: 1025px) {
    .amarant-hero {
        background-position: center 20% !important;
    }
}

@media (min-width: 1440px) {
    .amarant-hero {
        background-position: center 15% !important;
    }
}

@media (min-width: 1920px) {
    .amarant-hero {
        background-position: center 10% !important;
    }
}

/* ============================================
HEADER: Мобильная адаптация контактов и логотипа
============================================ */

/* Слоган под логотипом */
/* Контейнер для адреса и телефона */
/* Ссылка адреса (кликанье на мобильных) */
/* Телефон под адресом */
/* Скрываем "Заказать звонок" на мобильных, показываем только на десктопе */
/* ============================================
MEDIA QUERIES: Адаптация под маленькие экраны
============================================ */
@media (max-width: 768px) {
    }

@media (max-width: 480px) {
    }

@media (min-width: 769px) {
    /* На десктопе возвращаем "Заказать звонок" рядом с телефоном, если нужно */
    }

/* ============================================
HEADER: Слоган под логотипом
============================================ */
/* ============================================
HEADER: Адрес кликабельный + Телефон под адресом (mobile)
============================================ */
.header-address-link:hover {
    color: #2e7d32;
}

/* ============================================
MOBILE: Адаптация шапки (≤768px)
============================================ */

/* ============================================
MOBILE SMALL: Ещё меньшие экраны (≤480px)
============================================ */
@media (max-width: 480px) {
    }

/* ============================================
DESKTOP: Возвращаем горизонтальный вид (≥769px)
============================================ */
@media (min-width: 769px) {
    }

/* ============================================
HEADER: Слоган под логотипом
============================================ */
/* ============================================
HEADER: Контакты (Адрес + Телефон)
============================================ */
.header-address-link:hover {
    color: #2e7d32;
}

/* ============================================
MOBILE: Адаптация шапки (≤768px)
============================================ */

/* ============================================
MOBILE SMALL: Ещё меньшие экраны (≤480px)
============================================ */
@media (max-width: 480px) {
    }

/* ============================================
DESKTOP: Возвращаем горизонтальный вид (≥769px)
============================================ */
@media (min-width: 769px) {
    }

/* ============================================
HEADER: НОВАЯ СТРУКТУРА (left / center / right)
============================================ */
/* ============================================
СЛОГАН ПОД ЛОГОТИПОМ
============================================ */
/* ============================================
АДРЕС + ТЕЛЕФОН (Mobile)
============================================ */
.header-address-link:hover {
    color: #2e7d32;
}

/* Десктоп версии адреса и телефона */
.header-phone-desktop .header-phone-desktop /* ============================================
TABLET (769px - 1024px)
============================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    .btn-catalog span {
        font-size: 13px;
    }
}

/* ============================================
MOBILE (≤768px)
============================================ */
@media (max-width: 768px) {
    /* Переопределяем grid на 3 колонки */
    /* СЛЕВА: Логотип + слоган (компактно) */
    .header-left {
        justify-content: flex-start;
    }
    
    .logo-wrapper .custom-logo,
    .logo-link img {
        max-width: 90px;
        height: auto;
    }
    
    /* ПО ЦЕНТРУ: Адрес + Телефон */
    /* Скрываем десктопные элементы в центре */
    .catalog-wrapper,
    /* СПРАВА: Корзина + Бургер */
    /* Скрываем десктопные адрес и телефон */
    /* Скрываем иконку "Войти" */
    .header-icon-account {
        display: none;
    }
    
    /* Компактная корзина */
    .header-cart-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .header-cart-icon > span:not(.cart-badge) {
        display: none; /* Скрываем текст "Корзина" */
    }
    
    /* Компактный бургер */
    }

/* ============================================
SMALL MOBILE (≤480px) — Tecno Spark 20 и т.п.
============================================ */

}

/* ============================================
DESKTOP (≥769px): Скрываем мобильные элементы
============================================ */
@media (min-width: 769px) {
    }

/* ============================================
BURGER MENU: Скрытие на десктопе
============================================ */
@media (min-width: 1025px) {
    }

.catalog-cat-item.has-children:hover /* ============================================
MOBILE: Отступы и адаптивные размеры
============================================ */

    /* Компактный бургер */
    }

/* ============================================
VERY SMALL MOBILE (≤480px): Tecno Spark 20 и подобные
============================================ */

    }

/* ============================================
EXTRA SMALL (≤360px): очень узкие экраны
============================================ */

/* Поиск — на всю ширину сверху */
/* Заголовки секций */

/* Меню категорий — левая колонка */

.catalog-cat-item.has-children:hover > /* Подкатегории — всплывающее окно справа */
.catalog-cat-item.has-children:hover > @keyframes catalogSubFade {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Основное меню — правая колонка */
/* ============================================
TABLET / MOBILE: Скрываем dropdown "Каталог"
(на мобильных работает бургер)
============================================ */
@media (max-width: 1024px) {
    }

/* Кастомный scrollbar для dropdown */
/* Firefox scrollbar */
/* ============================================
СКРЫВАЕМ СТАРЫЙ CATALOG DROPDOWN (больше не нужен)
============================================ */
/* ============================================
OVERLAY МЕНЮ: стили для десктопа (адаптивные)
На мобильных остаётся как было (fullscreen)
============================================ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    background: #fff;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s;
    margin: 0 16px;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateY(0);
}

/* Заголовок overlay */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.mobile-menu-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.mobile-menu-close:hover {
    background: #f0f0f0;
    color: #2e7d32;
}

/* Контент overlay */
.mobile-menu-content {
    padding: 16px 24px 32px;
}

/* Поиск внутри overlay */
.mobile-search {
    margin-bottom: 20px;
}

.mobile-search form {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.mobile-search form:focus-within {
    border-color: #2e7d32;
}

.mobile-search input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 15px;
    outline: none;
    font-family: inherit;
}

.mobile-search button {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 0 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.mobile-search button:hover {
    background: #1b5e20;
}

/* Заголовки секций */
.mobile-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.8px;
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

/* Список категорий */
.mobile-categories {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    max-height: 400px;
    overflow-y: auto;
}

.mobile-cat-item {
    border-bottom: 1px solid #f5f5f5;
}

.mobile-cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.mobile-cat-link:hover {
    background: #f5f9f5;
    color: #2e7d32;
    padding-left: 12px;
}

.cat-arrow {
    color: #bbb;
    font-size: 20px;
    transition: transform 0.2s;
}

.mobile-cat-item.has-children:hover .cat-arrow {
    transform: translateX(4px);
    color: #2e7d32;
}

/* Подкатегории */
.mobile-subcategories {
    display: none;
    list-style: none;
    padding: 4px 0 8px 20px;
    margin: 0;
    background: #fafafa;
    border-radius: 6px;
}

.mobile-cat-item.has-children:hover .mobile-subcategories,
.mobile-cat-item.active .mobile-subcategories {
    display: block;
}

.mobile-subcategories li a {
    display: block;
    padding: 8px 12px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s;
}

.mobile-subcategories li a:hover {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Основное меню */
.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-menu li a {
    display: block;
    padding: 12px 8px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-nav-menu li a:hover {
    color: #2e7d32;
    padding-left: 12px;
}

/* ============================================
МОБИЛЬНАЯ ВЕРСИЯ (≤768px): overlay на весь экран
============================================ */
@media (max-width: 768px) {
    .mobile-menu-overlay {
        padding-top: 0;
    }
    
    .mobile-menu {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        height: 100vh;
    }
    
    .mobile-menu-header {
        padding: 16px 20px;
    }
    
    .mobile-menu-title {
        font-size: 18px;
    }
    
    .mobile-menu-content {
        padding: 12px 20px 24px;
    }
    
    .mobile-cat-link {
        font-size: 14px;
        padding: 10px 6px;
    }
    
    .mobile-categories {
        max-height: none;
    }
}

/* ============================================
ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (≤480px)
============================================ */
@media (max-width: 480px) {
    .mobile-menu-title {
        font-size: 16px;
    }
    
    .mobile-cat-link {
        font-size: 13px;
    }
    
    .mobile-search input[type="search"] {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* ============================================
КНОПКА "КАТАЛОГ ТОВАРОВ" (десктоп) — активное состояние
============================================ */
.btn-catalog[aria-expanded="true"] {
    background: #2e7d32 !important;
    color: #fff !important;
}

/* ============================================
СКРЫВАЕМ СТАРЫЙ CATALOG DROPDOWN (больше не нужен)
============================================ */
/* ============================================
OVERLAY МЕНЮ: стили для десктопа (адаптивные)
На мобильных остаётся как было (fullscreen)
============================================ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    background: #fff;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s;
    margin: 0 16px;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateY(0);
}

/* Заголовок overlay */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.mobile-menu-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.mobile-menu-close:hover {
    background: #f0f0f0;
    color: #2e7d32;
}

/* Контент overlay */
.mobile-menu-content {
    padding: 16px 24px 32px;
}

/* Поиск внутри overlay */
.mobile-search {
    margin-bottom: 20px;
}

.mobile-search form {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.mobile-search form:focus-within {
    border-color: #2e7d32;
}

.mobile-search input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 15px;
    outline: none;
    font-family: inherit;
}

.mobile-search button {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 0 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.mobile-search button:hover {
    background: #1b5e20;
}

/* Заголовки секций */
.mobile-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.8px;
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

/* Список категорий */
.mobile-categories {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    max-height: 400px;
    overflow-y: auto;
}

.mobile-cat-item {
    border-bottom: 1px solid #f5f5f5;
}

.mobile-cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.mobile-cat-link:hover {
    background: #f5f9f5;
    color: #2e7d32;
    padding-left: 12px;
}

.cat-arrow {
    color: #bbb;
    font-size: 20px;
    transition: transform 0.2s;
}

.mobile-cat-item.has-children:hover .cat-arrow {
    transform: translateX(4px);
    color: #2e7d32;
}

/* Подкатегории */
.mobile-subcategories {
    display: none;
    list-style: none;
    padding: 4px 0 8px 20px;
    margin: 0;
    background: #fafafa;
    border-radius: 6px;
}

.mobile-cat-item.has-children:hover .mobile-subcategories,
.mobile-cat-item.active .mobile-subcategories {
    display: block;
}

.mobile-subcategories li a {
    display: block;
    padding: 8px 12px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s;
}

.mobile-subcategories li a:hover {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Основное меню */
.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-menu li a {
    display: block;
    padding: 12px 8px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-nav-menu li a:hover {
    color: #2e7d32;
    padding-left: 12px;
}

/* ============================================
МОБИЛЬНАЯ ВЕРСИЯ (≤768px): overlay на весь экран
============================================ */
@media (max-width: 768px) {
    .mobile-menu-overlay {
        padding-top: 0;
    }
    
    .mobile-menu {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        height: 100vh;
    }
    
    .mobile-menu-header {
        padding: 16px 20px;
    }
    
    .mobile-menu-title {
        font-size: 18px;
    }
    
    .mobile-menu-content {
        padding: 12px 20px 24px;
    }
    
    .mobile-cat-link {
        font-size: 14px;
        padding: 10px 6px;
    }
    
    .mobile-categories {
        max-height: none;
    }
}

/* ============================================
ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (≤480px)
============================================ */
@media (max-width: 480px) {
    .mobile-menu-title {
        font-size: 16px;
    }
    
    .mobile-cat-link {
        font-size: 13px;
    }
    
    .mobile-search input[type="search"] {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* ============================================
КНОПКА "КАТАЛОГ ТОВАРОВ" (десктоп) — активное состояние
============================================ */
.btn-catalog[aria-expanded="true"] {
    background: #2e7d32 !important;
    color: #fff !important;
}

@keyframes catalogFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Поиск в catalog dropdown */
/* Заголовки секций */

/* Список категорий - grid layout */

.catalog-cat-item.has-children:hover > /* Подкатегории - всплывающее окно */
.catalog-cat-item.has-children:hover > @keyframes catalogSubFade {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Основное меню в dropdown */
/* Скрытие на мобильных (там работает бургер) */
@media (max-width: 1024px) {
    }

/* Кастомный scrollbar */
/* Поиск внутри dropdown */
/* Заголовок секции */
.catalog-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.8px;
    margin: 16px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* Сетка категорий — 4 колонки */

.catalog-cat-item.has-children:hover /* Подкатегории (всплывающие при hover) */
.catalog-cat-item.has-children:hover to { opacity: 1; transform: translateX(0); }
}

/* ============================================
КНОПКА "КАТАЛОГ ТОВАРОВ" — активное состояние
============================================ */
/* ============================================
АДАПТИВНОСТЬ: Скрытие элементов на разных экранах
============================================ */

/* На десктопе (>=769px): виден Каталог, скрыт Бургер */
@media (min-width: 769px) {
    }

/* На мобильном (<=768px): скрыт Каталог, виден Бургер */
@media (max-width: 768px) {
    .header-icon-account {
        display: none !important;
    }
}

/* ============================================
BURGER BUTTON (Mobile)
============================================ */
/* ============================================
MOBILE MENU OVERLAY
============================================ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.mobile-menu-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mobile-menu-close:hover {
    background: #f0f0f0;
    color: #2e7d32;
}

.mobile-menu-content {
    padding: 16px 24px 32px;
}

.mobile-search {
    margin-bottom: 20px;
}

.mobile-search form {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.mobile-search input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 15px;
    outline: none;
}

.mobile-search button {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 0 18px;
    cursor: pointer;
}

.mobile-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-categories {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.mobile-cat-item {
    border-bottom: 1px solid #f5f5f5;
}

.mobile-cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.mobile-cat-link:hover {
    color: #2e7d32;
}

.mobile-cat-item .cat-arrow {
    font-size: 22px;
    color: #bbb;
}

.mobile-subcategories {
    display: none;
    list-style: none;
    padding: 4px 0 8px 20px;
    margin: 0;
    background: #fafafa;
    border-radius: 6px;
}

.mobile-cat-item.open .mobile-subcategories {
    display: block;
}

.mobile-subcategories li a {
    display: block;
    padding: 8px 12px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
}

.mobile-subcategories li a:hover {
    background: #e8f5e9;
    color: #2e7d32;
}

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

.mobile-nav-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-menu li a {
    display: block;
    padding: 12px 8px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.mobile-nav-menu li a:hover {
    color: #2e7d32;
}

@keyframes catalogFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Кастомный scrollbar */
/* Поиск */
/* Заголовки секций */
.catalog-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.8px;
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

/* Сетка категорий - 4 колонки */

.catalog-cat-item.has-children:hover > /* Подкатегории — всплывающее окно */
.catalog-cat-item.has-children:hover > to   { opacity: 1; transform: translateX(0); }
}

/* Основное меню */
/* Скрытие на мобильных (там работает бургер) */
@media (max-width: 1024px) {
    }

/* ============================================
КНОПКА "КАТАЛОГ ТОВАРОВ" — активное состояние
============================================ */
/* Поиск в dropdown */
/* Заголовки секций */
.catalog-dropdown-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.8px;
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

/* Сетка категорий — 4 колонки */
@media (max-width: 1024px) {
    }

.catalog-cat-item.has-children:hover > /* Подкатегории — popup при hover */
.catalog-cat-item.has-children:hover > to { opacity: 1; transform: translateX(0); }
}

/* Основное меню */
/* Кнопка Каталог — активное состояние */
/* Скрытие на мобильных (там работает бургер) */
@media (max-width: 1024px) {
    }

/* ============================================
HERO: Убираем верхний отступ на десктопе
чтобы баннер заходил под прозрачную шапку
============================================ */
@media (min-width: 1025px) {
    /* Если первая секция на странице — HERO */
    .site-main > .amarant-hero:first-child {
        margin-top: -70px !important; /* Высота шапки */
        padding-top: 140px !important; /* Компенсируем + запас */
    }
    
    /* Если шапка стала scrolled — убираем отрицательный margin */
    body.admin-bar .site-main > .amarant-hero:first-child {
        margin-top: -70px !important;
        padding-top: 140px !important;
    }
}

/* Для админ-бара (когда залогинен) */
@media (min-width: 1025px) {
    body.admin-bar .site-main > .amarant-hero:first-child {
        margin-top: -70px !important;
        padding-top: calc(140px + 32px) !important; /* + высота admin bar */
    }
}

/* На мобильных — обычный отступ */
@media (max-width: 1024px) {
    .site-main > .amarant-hero:first-child {
        margin-top: 0 !important;
    }
}

@media (min-width: 1025px) {
    /* HERO залезает под шапку (высота шапки ~70px) */
    body.home main > .amarant-hero:first-child,
    body.page-template-default main > .amarant-hero:first-child {
        margin-top: -80px !important;
        padding-top: 160px !important; /* компенсируем + запас для текста */
    }
    
    /* Шапка прозрачная поверх HERO */
    /* Белый текст в прозрачной шапке */
    #amarant-header .header-search input[type="search"]::placeholder {
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    /* ============================================
    SCROLLED STATE — шапка становится белой
    ============================================ */
    /* Возвращаем тёмные цвета */
    #amarant-header.scrolled .header-icon svg,
    #amarant-header.scrolled .header-address-link svg {
        color: currentColor !important;
        stroke: currentColor !important;
    }
    #amarant-header.scrolled .header-phone-link,
    #amarant-header.scrolled .phone-number,
    #amarant-header.scrolled .phone-callback {
        color: #2e7d32 !important;
        stroke: none !important;
    }
    #amarant-header.scrolled .header-search input[type="search"] {
        background: #fff !important;
        border-color: #e0e0e0 !important;
        color: #333 !important;
    }
    #amarant-header.scrolled .header-search input[type="search"]::placeholder {
        color: #999 !important;
    }
    
    /* Кнопка Каталог — тень на прозрачном фоне */
    }

/* ============================================
HERO: Заходит под прозрачную шапку (только на главной, desktop)
============================================ */
@media (min-width: 1025px) {
    body.home .site-main > .amarant-hero:first-child {
        margin-top: -80px !important;
        padding-top: 160px !important;
    }
}

/* ============================================
   QUICK PRODUCT EDIT — Pencil + Modal
   ============================================ */

/* Карандаш — левый верхний угол карточки */
.qe-pencil {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 100;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.15s, box-shadow 0.15s;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.qe-pencil:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Модалка — overlay поверх карточки */
.qe-modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: inherit;
}

.qe-modal-box {
    width: 100%;
    max-width: 220px;
    text-align: center;
}

.qe-modal-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 14px 0;
}

.qe-modal-label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-align: left;
}

.qe-modal-price {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s;
}

.qe-modal-price:focus {
    border-color: #2e7d32;
}

.qe-modal-stock {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 14px;
    transition: filter 0.15s;
}

.qe-modal-stock.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}

.qe-modal-stock.out-of-stock {
    background: #ffebee;
    color: #c62828;
}

.qe-modal-stock:hover {
    filter: brightness(0.95);
}

.qe-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.qe-modal-save,
.qe-modal-cancel {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
}

.qe-modal-save {
    background: #2e7d32;
    color: #fff;
}

.qe-modal-save:hover {
    opacity: 0.9;
}

.qe-modal-cancel {
    background: #f0f0f0;
    color: #666;
}

.qe-modal-cancel:hover {
    background: #e0e0e0;
}

.qe-modal-msg {
    margin-top: 10px;
    font-size: 12px;
    min-height: 18px;
}
