/* МОБИЛЬНЫЕ СТИЛИ ДЛЯ ПОПУЛЯРНЫХ КАТЕГОРИЙ */
@media (max-width: 768px) {
    /* Карточки популярных категорий на мобильных */
    .bg-light .card {
        min-height: 160px !important;
        max-height: 200px !important;
        padding: 1.2rem 0.6rem 1.2rem 0.6rem !important;
    }
    
    .bg-light .card-body {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 !important;
        height: 100% !important;
    }
    
    .bg-light .card-title {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        min-height: 2.6rem !important;
        margin-bottom: 0.5rem !important;
        font-weight: 600 !important;
    }
    
    .bg-light .text-muted {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Увеличиваем кнопки "Посмотреть все товары" */
    a.btn.btn-outline-primary.btn-lg {
        font-size: 1.1rem !important;
        padding: 0.8rem 1.5rem !important;
    }
    
    /* Hero section - только для мобильных */
    .hero-section .col-lg-6:last-child {
        display: none !important;
    }
    
    .hero-section .btn-primary {
        font-size: 1.75rem !important;
        transform: scale(1.55) !important;
        margin: 1rem 0 !important;
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3) !important;
        border-radius: 12px !important;
        font-weight: 700 !important;
    }
    
    .hero-section .row {
        justify-content: center !important;
        text-align: center !important;
    }
    
    .hero-section .col-lg-6:first-child {
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    /* HERO SECTION - КНОПКА КАТАЛОГА - МАКСИМАЛЬНАЯ СПЕЦИФИЧНОСТЬ ЧЕРЕЗ ID */
    #hero-catalog-btn {
        font-size: 1.75rem !important;
        transform: scale(1.55) !important;
        margin: 1rem 0 !important;
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3) !important;
        border-radius: 12px !important;
        font-weight: 700 !important;
        display: block !important;
        width: fit-content !important;
        text-align: center !important;
    }
}

/* ПРИНУДИТЕЛЬНЫЕ МОБИЛЬНЫЕ СТИЛИ ДЛЯ ПОПУЛЯРНЫХ КАТЕГОРИЙ - ВЫСОКАЯ СПЕЦИФИЧНОСТЬ */
@media (max-width: 768px) {
    /* Карточки популярных категорий на мобильных - усиленная специфичность */
    section.bg-light .container .row .col-lg-3 .card {
        min-height: 160px !important;
        max-height: 200px !important;
        padding: 1.2rem 0.6rem !important;
        background: white !important;
    }
    
    section.bg-light .container .row .col-lg-3 .card .card-body {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 !important;
        height: 100% !important;
    }
    
    section.bg-light .container .row .col-lg-3 .card .card-body .card-title {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        min-height: 2.6rem !important;
        margin-bottom: 0.5rem !important;
        font-weight: 600 !important;
        color: #1e293b !important;
    }
    
    section.bg-light .container .row .col-lg-3 .card .card-body .text-muted {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
        color: #6b7280 !important;
    }
    
    /* Увеличиваем кнопки "Посмотреть все товары" - максимальная специфичность */
    section.bg-light .container .row .col-lg-3 a.btn.btn-outline-primary.btn-lg {
        font-size: 1.2rem !important;
        padding: 1rem 2rem !important;
        margin-top: auto !important;
    }
    
    /* HERO SECTION - МОБИЛЬНЫЕ СТИЛИ С МАКСИМАЛЬНОЙ СПЕЦИФИЧНОСТЬЮ */
    section.hero-section .container .row .col-lg-6:last-child {
        display: none !important;
    }
    
    section.hero-section .container .row .col-lg-6 .mb-4 a.btn.btn-primary.btn-lg {
        font-size: 1.75rem !important;
        transform: scale(1.55) !important;
        margin: 1rem 0 !important;
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3) !important;
        border-radius: 12px !important;
        font-weight: 700 !important;
        display: block !important;
        width: fit-content !important;
        text-align: center !important;
    }
    
    section.hero-section .container .row {
        justify-content: center !important;
        text-align: center !important;
    }
    
    section.hero-section .container .row .col-lg-6:first-child {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    section.hero-section .container .row .col-lg-6:first-child .mb-4 {
        align-self: center !important;
        text-align: center !important;
    }
}

/* HERO SECTION - МОБИЛЬНЫЕ СТИЛИ С МАКСИМАЛЬНОЙ СПЕЦИФИЧНОСТЬЮ */ 