/**
 * Responsive Styles v3
 */

/* ========================================
   LARGE DESKTOPS
   ======================================== */
@media (min-width: 1400px) {
    :root { --container-max: 1320px; }
}

/* ========================================
   DESKTOPS (< 1200)
   ======================================== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .footer-col-brand {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 1.5rem;
        align-items: start;
    }
    .footer-col-brand .footer-logo { margin-bottom: 0; }

    .header-search { max-width: 200px; }

    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
    .steps::before { display: none; }
    .hero-title { font-size: var(--font-size-4xl); }
}

/* ========================================
   TABLETS (< 992)
   ======================================== */
@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }

    .header-topbar { display: none !important; }
    .nav { display: none; }
    .header-actions { display: none; }
    .burger { display: flex; }

    .main { padding-top: 70px; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-col-brand {
        grid-column: 1 / -1;
        grid-template-columns: auto 1fr;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding: var(--spacing-4xl) 0;
    }
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    .hero-description { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }
    .hero-scroll { display: none; }

    .section-title { font-size: var(--font-size-3xl); }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }

    .steps { grid-template-columns: repeat(2, 1fr); }

    .form-row { grid-template-columns: 1fr; }

    .about-section,
    .contact-section { grid-template-columns: 1fr !important; }

    .product-detail { grid-template-columns: 1fr !important; }
}

/* ========================================
   MOBILE LARGE (< 768)
   ======================================== */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --font-size-5xl: 2.25rem;
        --font-size-4xl: 1.875rem;
        --font-size-3xl: 1.5rem;
    }

    .logo-img { width: 64px; height: 64px; }
    .logo-name { font-size: 1rem; }
    .logo-tagline { display: none; }

    .hero-title { font-size: 2rem; }
    .hero-description { font-size: 1rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .section { padding: var(--spacing-3xl) 0; }

    .catalog-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-col-brand { grid-template-columns: 1fr; }

    .page-title { font-size: 1.75rem; }
    .page-header { padding: var(--spacing-2xl) 0; }

    .floating-cta { bottom: 70px; }

    .map-container { height: 320px; }
}

/* ========================================
   MOBILE SMALL (< 480)
   ======================================== */
@media (max-width: 480px) {
    :root {
        --font-size-4xl: 1.625rem;
        --font-size-3xl: 1.375rem;
    }

    .hero-title { font-size: 1.625rem; }

    .section { padding: var(--spacing-2xl) 0; }

    .catalog-card-image { height: 160px; }

    .btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; }

    .modal-content { padding: 1.75rem 1.25rem; }
    .modal-title { font-size: 1.25rem; }

    .scroll-top { bottom: 16px; right: 16px; }
    .floating-cta { right: 12px; }
    .floating-btn { width: 46px; height: 46px; font-size: 1.25rem; }
}

/* ========================================
   PRINT
   ======================================== */
@media print {
    .header, .footer, .scroll-top, .modal,
    .floating-cta, .mobile-nav { display: none !important; }
    .main { padding-top: 0; }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1; transform: none;
    }
}

/* ========================================
   DESKTOPS
   ======================================== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
    }
    
    .steps::before {
        display: none;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
}

/* ========================================
   TABLETS
   ======================================== */
@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }
    
    .nav {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-4xl) 0;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

/* ========================================
   MOBILE LARGE
   ======================================== */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
    }
    
    .header {
        border-bottom: 1px solid var(--border-color);
    }
    
    .logo-img {
        width: 60px;
        height: 60px;
    }
    
    .logo-name {
        font-size: var(--font-size-base);
    }
    
    .logo-tagline {
        display: none;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-stats {
        gap: var(--spacing-xl);
    }
    
    .stat-number {
        font-size: var(--font-size-3xl);
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-xl);
    }
    
    .faq-question {
        font-size: var(--font-size-base);
        padding: var(--spacing-lg);
    }
    
    .faq-answer-content {
        padding: 0 var(--spacing-lg) var(--spacing-lg);
    }
    
    .page-title {
        font-size: var(--font-size-3xl);
    }
    
    .modal-content {
        padding: var(--spacing-xl);
    }
    
    .modal-title {
        font-size: var(--font-size-xl);
    }
    
    .scroll-top {
        bottom: var(--spacing-lg);
        right: var(--spacing-lg);
        width: 44px;
        height: 44px;
    }
    
    .map-container {
        height: 350px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .regions-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card-image {
        height: 200px;
    }
    
    .tabs-nav {
        flex-direction: column;
        border-bottom: none;
        gap: var(--spacing-sm);
    }
    
    .tab-btn {
        text-align: left;
        padding: var(--spacing-md);
        background: var(--bg-light);
        border-radius: var(--border-radius-sm);
    }
    
    .tab-btn::after {
        display: none;
    }
    
    .tab-btn.active {
        background: var(--color-secondary);
        color: var(--text-light);
    }
    
    .promo-banner {
        padding: var(--spacing-xl);
    }
    
    .promo-banner-discount {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: var(--spacing-lg);
        width: 80px;
        height: 80px;
    }
    
    .promo-banner-discount-value {
        font-size: var(--font-size-xl);
    }
    
    .search-form {
        flex-direction: column;
    }
}

/* ========================================
   MOBILE SMALL
   ======================================== */
@media (max-width: 480px) {
    :root {
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
    }
    
    .section {
        padding: var(--spacing-3xl) 0;
    }
    
    .hero {
        padding: var(--spacing-3xl) 0;
    }
    
    .hero-badge {
        font-size: var(--font-size-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-stats {
        gap: var(--spacing-lg);
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .stat-number {
        font-size: var(--font-size-2xl);
    }
    
    .stat-label {
        font-size: var(--font-size-xs);
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }
    
    .btn-lg {
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: var(--font-size-base);
    }
    
    .catalog-card-image {
        height: 160px;
    }
    
    .catalog-card-body {
        padding: var(--spacing-lg);
    }
    
    .catalog-card-title {
        font-size: var(--font-size-lg);
    }
    
    .feature-card {
        padding: var(--spacing-xl);
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-xl);
    }
    
    .news-card-image {
        height: 180px;
    }
    
    .news-card-body {
        padding: var(--spacing-lg);
    }
    
    .news-card-title {
        font-size: var(--font-size-lg);
    }
    
    .page-header {
        padding: var(--spacing-3xl) 0;
    }
    
    .page-title {
        font-size: var(--font-size-2xl);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card-image {
        height: 180px;
    }
    
    .product-card-body {
        padding: var(--spacing-lg);
    }
    
    .product-card-title {
        font-size: var(--font-size-base);
    }
    
    .product-price-value {
        font-size: var(--font-size-lg);
    }
    
    .footer {
        padding: var(--spacing-3xl) 0 var(--spacing-xl);
    }
    
    .footer-logo {
        font-size: var(--font-size-lg);
    }
    
    .footer-title {
        font-size: var(--font-size-base);
    }
    
    .pagination-item {
        min-width: 60px;
        height: 60px;
    }
}

/* ========================================
   DISABLE 3D TILT ON TOUCH DEVICES
   ======================================== */
@media (hover: none) {
    .feature-card:hover,
    .catalog-card:hover,
    .product-card:hover {
        transform: translateY(-6px) !important;
    }
    #heroCanvas { display: none; }
    .hero-mesh { display: none; }
}

/* Regions modern responsive */
@media (max-width: 768px) {
    .regions-modern-grid {
        grid-template-columns: 1fr;
    }
    .regions-bottom {
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .region-modern-item {
        padding: 0.875rem 1rem;
    }
    .regions-bottom {
        flex-direction: column;
        gap: 0.875rem;
    }
}

/* Promotions responsive */
@media (max-width: 768px) {
    .promos-grid { grid-template-columns: 1fr; }
    .promo-modern-img { height: 200px; }
    .promo-code-block { flex-direction: column; align-items: flex-start; }
    .promo-code-value { font-size: 1.25rem; }
}

/* About page responsive */
@media (max-width: 992px) {
    .about-stats-grid { grid-template-columns: repeat(3, 1fr); }
    .about-stats-item:nth-child(3) { border-right: none; }
    .about-req-label { width: 160px; }
}
@media (max-width: 768px) {
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-stats-item { border-right: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); }
    .about-stats-item:nth-child(2n) { border-right: none; }
    .about-req-row { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
    .about-req-label { width: auto; }
}
@media (max-width: 480px) {
    .about-stats-grid { grid-template-columns: 1fr; }
    .about-stats-item { border-right: none; }
}

/* News pages responsive */
@media (max-width: 992px) {
    .news-list-grid { grid-template-columns: repeat(2, 1fr); }
    .news-article-layout { grid-template-columns: 1fr; }
    .news-article-sidebar { position: static; }
    .news-list-featured-img { height: 380px; }
}
@media (max-width: 576px) {
    .news-list-grid { grid-template-columns: 1fr; }
    .news-list-featured-img { height: 280px; }
    .news-list-featured-content { padding: 1.5rem; }
    .news-article-content { padding: 1.5rem; }
    .news-article-hero { min-height: 360px; }
}

/* Gallery modern responsive */
@media (max-width: 1100px) {
    .gallery-modern-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .gallery-modern-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-modern-featured { grid-column: span 2; }
    .gallery-cta { flex-direction: column; align-items: flex-start; }
    .gallery-lightbox-img { max-width: 92vw; max-height: 70vh; }
    .gallery-lightbox-prev,
    .gallery-lightbox-next { display: none; }
}
@media (max-width: 480px) {
    .gallery-modern-grid { grid-template-columns: 1fr; }
    .gallery-modern-featured { grid-column: span 1; }
    .gallery-stats { gap: 1rem; padding: 1rem; }
}

/* Contacts page responsive */
@media (max-width: 1100px) {
    .contacts-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .contacts-cards-grid { grid-template-columns: 1fr; }
    .contacts-hero { padding: 3rem 0 2.5rem; }
    .contacts-hero-title { font-size: 2rem; }
}

/* Map modern responsive */
@media (max-width: 768px) {
    .map-modern-wrap { height: auto; }
    .map-modern-iframe { height: 300px; position: relative; }
    .map-modern-card {
        position: relative;
        top: auto; left: auto;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-color);
    }
}

/* Contact modern responsive */
@media (max-width: 992px) {
    .contact-modern-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 576px) {
    .contact-modern-form-wrap { padding: 1.5rem; }
    .contact-modern-messengers { flex-direction: column; align-items: flex-start; }
}

/* News modern responsive */
@media (max-width: 992px) {
    .news-modern-grid { grid-template-columns: 1fr; }
    .news-modern-featured-img { height: 360px; }
}
@media (max-width: 576px) {
    .news-modern-featured-img { height: 260px; }
    .news-modern-featured-title { font-size: 1.125rem; }
    .news-modern-item-img { width: 80px; height: 75px; }
}

/* About modern responsive */
@media (max-width: 992px) {
    .about-modern-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-modern-right { order: -1; }
    .about-img-badge { left: 0; }
    .about-img-years { right: 0; }
}
@media (max-width: 576px) {
    .about-modern-checks { grid-template-columns: 1fr; }
    .about-modern-metrics { gap: 1rem; padding: 1rem; }
    .about-metric-val { font-size: 1.5rem; }
    .about-img-badge { display: none; }
}

/* FAQ modern responsive */
@media (max-width: 992px) {
    .faq-modern-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .faq-modern-left { position: static; }
    .faq-modern-left .section-title { font-size: 2rem; }
}
@media (max-width: 576px) {
    .faq-modern-stats { gap: 1.25rem; }
    .faq-stat-num { font-size: 1.5rem; }
    .faq-modern-answer-content { padding-left: 0; }
}

/* Featured products responsive */
@media (max-width: 1100px) {
    .featured-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .featured-grid { grid-template-columns: 1fr; }
    .featured-card-img { height: 180px; }
}

/* Steps modern responsive */
@media (max-width: 992px) {
    .steps-modern {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    .steps-modern-line { display: none; }
}
@media (max-width: 576px) {
    .steps-modern {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }
    .step-modern-item {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        align-items: flex-start;
    }
    .step-modern-icon { flex-shrink: 0; margin-bottom: 0; width: 56px; height: 56px; font-size: 1.25rem; }
    .steps-modern-cta { flex-direction: column; gap: 1rem; text-align: center; padding: 1.5rem; }
}

/* Features modern responsive */
@media (max-width: 1100px) {
    .features-modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-modern-card:nth-child(4n) { border-right: 1px solid var(--border-color); }
    .feature-modern-card:nth-child(2n) { border-right: none; }
    .feature-modern-card:nth-last-child(-n+4) { border-bottom: 1px solid var(--border-color); }
    .feature-modern-card:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 576px) {
    .features-modern-grid { grid-template-columns: 1fr; }
    .feature-modern-card { border-right: none !important; border-bottom: 1px solid var(--border-color) !important; }
    .feature-modern-card:last-child { border-bottom: none !important; }
    .feature-modern-card { padding: 1.5rem; }
    .feature-modern-num { font-size: 1.75rem; }
}

/* Catalog modern responsive */
@media (max-width: 1100px) {
    .catalog-modern-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .catalog-modern-card:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
    .catalog-modern-card:first-child .catalog-modern-img { height: 200px; }
}

@media (max-width: 768px) {
    .catalog-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .catalog-all-btn { display: none; }
    .catalog-modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .catalog-modern-card:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
    .catalog-modern-card:first-child .catalog-modern-img { height: 200px; }
}

@media (max-width: 480px) {
    .catalog-modern-grid {
        grid-template-columns: 1fr;
    }
    .catalog-modern-card:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }
}


/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .header,
    .footer,
    .scroll-top,
    .modal,
    .hero-scroll,
    .mobile-nav {
        display: none !important;
    }
    
    .main {
        padding-top: 0;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   HIGH CONTRAST
   ======================================== */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --text-secondary: #333;
        --text-muted: #555;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .catalog-card,
    .feature-card,
    .news-card,
    .product-card {
        border: 2px solid var(--border-color);
    }
}

/* ========================================
   LANDSCAPE MOBILE
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-content {
        padding-top: 0;
    }
    
    .mobile-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .mobile-nav-header {
        flex: 1 1 100%;
    }
    
    .mobile-nav-menu {
        flex: 1;
    }
    
    .mobile-nav-footer {
        flex: 0 0 auto;
    }
}

/* ========================================
   МОБИЛЬНАЯ ОПТИМИЗАЦИЯ — НОВЫЕ КОМПОНЕНТЫ
   ======================================== */

/* Скрыть мега-меню на мобильных */
@media (max-width: 991px) {
    .nav-mega, .mega-menu { display: none !important; }
}

/* Бургер-кнопка — увеличить зону касания */
@media (max-width: 991px) {
    .burger {
        width: 44px;
        height: 44px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0;
    }
    .burger span { width: 24px; }
}

/* ========================================
   КОРЗИНА — МОБИЛЬНАЯ
   ======================================== */
@media (max-width: 768px) {
    .cart-layout { grid-template-columns: 1fr; }

    .cart-sidebar {
        position: relative;
        top: auto;
        margin-top: 1.5rem;
    }

    .cart-table th:nth-child(3),
    .cart-table td:nth-child(3) { display: none; } /* скрыть колонку Цена */

    .cart-table th { padding: 8px 6px; font-size: .72rem; }
    .cart-table td { padding: 10px 6px; }

    .cart-qty-btn { width: 36px; height: 36px; }
    .cart-qty-input { width: 44px; }

    .cart-del-btn { padding: 10px 8px; }

    .cart-total-val { font-size: 1.1rem; }
}

/* ========================================
   КАТАЛОГ — ТУЛБАР И ФИЛЬТРЫ
   ======================================== */
@media (max-width: 768px) {
    .cat-toolbar {
        flex-direction: column;
        gap: .75rem;
        align-items: stretch;
    }
    .cat-toolbar-left,
    .cat-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
    .cat-sort { flex: 1; }
    .cat-sort-select { width: 100%; }
    .cat-filter-btn { flex: 1; text-align: center; justify-content: center; }
    .cat-view-btns { flex-shrink: 0; }

    /* Фильтр — полноэкранный снизу */
    .cat-filter-panel.open {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 1050;
        background: var(--bg-primary);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 32px rgba(0,0,0,.15);
        max-height: 80vh;
        overflow-y: auto;
    }
    .cat-filter-inner { padding: 1.5rem; }
    .cat-price-input { width: 80px; font-size: .9rem; padding: 8px; }

    /* Карточки товаров — 1 колонка на маленьких экранах */
    .cat-products-grid { grid-template-columns: 1fr; }

    /* Показываем кнопки действий всегда на мобильных */
    .cat-product-actions { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
    .cat-products-grid { grid-template-columns: 1fr; }
}

/* ========================================
   ПОИСК — МОБИЛЬНАЯ
   ======================================== */
@media (max-width: 768px) {
    .search-overlay-form { flex-wrap: wrap; gap: 8px; }
    .search-overlay-submit { width: 100%; }
    .search-overlay-inner { padding: 12px 12px 12px; }
}

/* ========================================
   ХЛЕБНЫЕ КРОШКИ — МОБИЛЬНАЯ
   ======================================== */
@media (max-width: 768px) {
    .page-breadcrumbs {
        flex-wrap: wrap;
        font-size: .78rem;
        gap: .25rem;
    }
}

/* ========================================
   СТРАНИЦА ТОВАРА — МОБИЛЬНАЯ
   ======================================== */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    .product-actions {
        flex-wrap: wrap;
        gap: .75rem;
    }
    .product-actions .btn { width: 100%; justify-content: center; }
    .cart-qty-wrap { justify-content: flex-start; }
}

/* ========================================
   КОРЗИНА ИКОНКА — МОБИЛЬНАЯ
   ======================================== */
@media (max-width: 480px) {
    .header-cart-btn { padding: 6px 8px; }
    .header-search-btn { padding: 6px 8px; }
}
