/* ═══════════════════════════════════════════════════════
   RESPONSIVE — адаптивная верстка
   Desktop-first: max-width media queries
   Breakpoints: 1024 → 960 → 768 → 480
   ═══════════════════════════════════════════════════════ */

.filter-close-btn { display: none; }
.promo-arrows { display: none; }
.cat-sidebar-overlay { display: none; }

/* ─── Кнопка поиска (скрыта на десктопе, видна на ≤960) ─── */
.search-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: transparent;
    color: #444;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.search-toggle-btn:hover { border-color: #f25e5e; color: #f25e5e; background: rgba(255,107,43,0.06); }

/* ─── SVG-иконка телефона (скрыта на десктопе) ─── */
.phone-ico-svg { display: none; }

/* ─── БУРГЕР (скрыт на десктопе, виден на ≤768) ─── */
.burger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 22px;
    cursor: pointer;
    padding: 11px 14px;
    transition: color 0.15s;
}
.burger-btn:hover { color: white; }

/* Кнопка «Фильтры» — видна только на мобиле */
.filter-toggle-wrap {
    display: none;
    gap: 8px;
}
.filter-reset-btn {
    display: none;
}

.filter-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    cursor: pointer;
    margin-bottom: 12px;
    transition: border-color 0.15s, color 0.15s;
}
.filter-toggle-btn:hover { border-color: #f25e5e; color: #f25e5e; }


/* ═══════════════════════════════════════════════════════
   ≤1175px — Кнопки авторизации: иконки без текста
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1175px) {
    .btn-login { padding: 7px; font-size: 0; }
    .btn-login svg { margin: 0; width: 18px; height: 18px; }
}

/* ═══════════════════════════════════════════════════════
   ≤1024px — ПЛАНШЕТЫ (АЛЬБОМНАЯ), МАЛЕНЬКИЕ НОУТБУКИ
   iPad Air / Pro landscape, Surface, MacBook 12"
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

    /* ── layout.css ── */
    .container { padding: 0 16px; }

    /* Шапка: сжимаем gap */
    .header-top .container { gap: 8px; }
    .header-right { gap: 10px; }
    .phone-block .hint { display: none; }
    .phone-block .num { font-size: 13px; }
    .search-wrap { margin: 0 8px; }
    .cart-btn { padding: 7px 12px; font-size: 12px; }
    .nav-links a { padding: 11px 10px; font-size: 12px; }

    /* Футер: 2 колонки */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-col-wide { grid-column: 1 / -1; }
    .newsletter-wrap { gap: 28px; }
    .newsletter-title { font-size: 22px; }
    .newsletter-inputs input { width: 220px; }

    /* ── home.css ── */
    .features { grid-template-columns: repeat(2, 1fr); }
    .promo-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-grid .promo-banner:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    /* ── product.css ── */
    .product-layout { gap: 24px; }
    .product-bottom-split { grid-template-columns: 1fr; }
    .product-bottom-col + .product-bottom-col {
        border-left: none;
        border-top: 1px solid #f0f0f0;
    }

    /* ── checkout.css ── */
    .co-layout { grid-template-columns: 1fr 380px; gap: 16px; }

    /* ── pages.css ── */
    .about-grid { grid-template-columns: 1fr 280px; gap: 32px; }
    .about-hero-inner { gap: 24px; }
}


/* ═══════════════════════════════════════════════════════
   ≤960px — ШАПКА: поиск → кнопка, телефон → SVG-иконка
   ═══════════════════════════════════════════════════════ */
@media (max-width: 960px) {

    /* Разрешаем wrap для второй строки поиска */
    .header-top .container {
        flex-wrap: wrap;
    }

    /* Поиск: прячем строку, показываем кнопку-лупу */
    .search-outer {
        display: none;
        order: 10;
        flex: none;
        width: 100%;
        margin-top: 6px;
    }
    .search-outer.open {
        display: block;
    }
    .search-outer.open .search-wrap {
        max-width: none;
        margin: 0;
    }
    .search-toggle-btn { display: flex; }

    /* Войти — иконка без текста */

    /* Телефон — SVG-иконка вместо текста */
    .header-right { gap: 8px; }
    .header-right .phone-block .num { display: none; }
    .header-right .phone-ico-svg {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 7px;
        border: 1px solid #ddd;
        border-radius: 6px;
        color: #444;
        transition: border-color 0.15s, color 0.15s, background 0.15s;
    }
    .header-right .phone-block:hover .phone-ico-svg {
        border-color: #f25e5e;
        color: #f25e5e;
        background: rgba(255,107,43,0.06);
    }

    /* Меню телефона: шапка — позиционируем от header-right, не от phone-block */
    .header-right { position: relative; }
    .header-right .phone-block { position: static; }
    .header-right .phone-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        margin-top: 8px;
        max-width: calc(100vw - 24px);
    }

    /* Меню телефона: подвал — читаемый текст на белом фоне */
    .footer-main .phone-menu a { color: #222; }

    .auth-tabs { margin-top: 0; }

    .logo {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    .logo img {
        height: auto;
        max-height: 30px;
        width: auto;
        max-width: 100%;
    }
}



/* ═══════════════════════════════════════════════════════
   ≤768px — ПЛАНШЕТЫ (ПОРТРЕТНАЯ), iPad mini landscape
   Полная перестройка layout-ов
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Карусель карточек: кнопки всегда видны на мобилке */
    .carousel-btn { opacity: 0.7; }

    .new-products-wrap {
        scroll-snap-type: x mandatory;
        padding: 4px 12%;
    }
    .new-product-card {
        flex: 0 0 75%;
        width: 75%;
        scroll-snap-align: center;
    }

    /* iOS Safari: prevent auto-zoom on input focus */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }



    .pg-main-arrow:not(:disabled) { opacity: 0.7; }

    /* ── layout.css ── */

    /* Навигация: бургер */
    .burger-btn {
        display: flex;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2a2a2a;
        flex-direction: column;
        z-index: 100;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 14px 20px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .header-nav { position: relative; }
    .header-nav .container { flex-wrap: nowrap; align-items: center; }

    /* Мегаменю: одна колонка */
    .megamenu { width: 100%; max-width: 100%; }

    /* Перестраиваем в одну колонку */
    .megamenu-body { flex-direction: column; }
    .megamenu-list {
        width: 100%;
        border-right: none;
    }

    /* Скрываем десктопную правую панель */
    .megamenu-subcats { display: none; }

    /* Скрываем десктопный шеврон */
    .mega-cat-chevron { display: none; }

    /* Показываем мобильный плюсик */
    .mega-cat-arrow {
        display: inline;
        margin-left: auto;
        font-size: 18px;
        font-weight: 400;
        color: #aaa;
        transition: transform 0.2s;
    }
    .mega-cat-item.open .mega-cat-arrow {
        transform: rotate(45deg);
        color: #f25e5e;
    }

    /* Мобильные подкатегории — аккордеон */
    .mega-sub-mobile {
        display: none;
        padding: 0;
    }
    .mega-sub-mobile.open {
        display: block;
    }
    .mega-sub-mobile a {
        display: block;
        padding: 10px 16px 10px 44px;
        font-size: 14px;
        color: #555;
        text-decoration: none;
        border-bottom: 1px solid #f4f4f4;
        transition: background 0.12s, color 0.12s;
    }
    .mega-sub-mobile a:hover { background: #fff5f0; color: #f25e5e; }
    .mega-sub-mobile a::before { content: '—'; margin-right: 8px; color: #ddd; font-size: 12px; }
    .mega-sub-mobile .mega-sub-all {
        display: block;
        font-weight: 700;
        color: #f25e5e;
        border-bottom: 1px solid #f0f0f0;
    }
    .mega-sub-mobile .mega-sub-all::before { content: none; }

    /* Футер */
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom-row { grid-template-columns: 1fr; gap: 24px; }
    .newsletter-wrap { flex-direction: column; gap: 20px; text-align: center; }
    .newsletter-ico { display: none; }
    .newsletter-title { font-size: 20px; }
    .newsletter-form { width: 100%; }
    .newsletter-inputs { flex-direction: column; border-radius: 10px; }
    .newsletter-inputs input {
        width: 100%;
        border-radius: 10px 10px 0 0;
    }
    .newsletter-inputs button {
        border-radius: 0 0 10px 10px;
        padding: 14px;
    }
    .footer-bottom .container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    .call-btn { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 20px; }
    .call-menu { right: 20px; bottom: 82px; width: 280px; }

    /* ── home.css ── */
    .main { padding: 14px; }
    .banner { padding: 22px 24px; }
    .banner h2 { font-size: 20px; }
    .banner::after { width: 30%; opacity: 0.5; }
    .promo-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    .promo-grid::-webkit-scrollbar { display: none; }
    .promo-banner {
        flex: 0 0 82%;
        min-height: 160px;
        scroll-snap-align: center;
    }
    .promo-banner:first-child { scroll-snap-align: start; }
    .promo-banner:last-child { scroll-snap-align: end; }
    .promo-grid { padding: 6px 0 8px; }
    .promo-banner:hover { transform: none; box-shadow: none; }
    .promo-arrows { display: flex; gap: 6px; margin-left: auto; }
    .new-products-wrap { padding: 4px 0; }
    .product-card:hover { transform: none; }
    .new-product-card {
        flex: 0 0 240px;
        width: 240px;
    }

    /* ── catalog.css ── */

    /* Фильтры: off-canvas panel */
    .filter-toggle-wrap {
        display: flex;
        margin-bottom: 12px;
        border: 1px solid #eee;
        border-radius: 10px;
        overflow: hidden;
        background: white;
    }
    .filter-toggle-btn {
        display: flex;
        flex: 1;
        margin-bottom: 0;
        border: none;
        border-radius: 0;
    }
    .filter-reset-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 16px;
        background: #fff5f0;
        border: none;
        border-left: 1px solid #eee;
        border-radius: 0;
        font-size: 13px;
        font-weight: 700;
        color: #f25e5e;
        text-decoration: none;
        white-space: nowrap;
    }

    .cat-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .cat-sidebar {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 600;
        border-radius: 0;
        border: none;
        overflow: hidden;
        padding: 0;
        animation: slideInLeft 0.25s ease-out;
        flex-direction: column;
    }
    .cat-sidebar.open { display: flex; }

    .cat-sidebar .filter-close-btn {
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 1;
    }

    .cat-sidebar #filterForm {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }

    .filter-scroll {
        flex: 1;
        overflow-y: auto;
        padding: 60px 20px 10px;
        -webkit-overflow-scrolling: touch;
    }

    .cat-sidebar .filter-actions {
        flex-shrink: 0;
        flex-direction: row;
        gap: 10px;
        padding: 14px 20px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        background: white;
        border-top: 1px solid #f0f0f0;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
    }

    .cat-sidebar .filter-apply-btn {
        flex: 1;
    }

    .cat-sidebar .filter-reset-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        background: #fff5f0;
        border: none;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 700;
        color: #f25e5e;
        text-decoration: none;
        white-space: nowrap;
    }

    @keyframes slideInLeft {
        from { transform: translateX(-100%); }
        to   { transform: translateX(0); }
    }

    .filter-close-btn {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #f4f4f4;
        border: none;
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #888;
        transition: background 0.15s, color 0.15s;
    }
    .filter-close-btn:hover { background: #eee; color: #333; }

    .cat-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 599;
    }
    .cat-sidebar-overlay.open { display: block; }

    /* Тулбар: компактнее */
    .cat-toolbar { padding: 10px 14px; gap: 10px; }
    .cat-toolbar-label { display: none; }
    .cat-sort-btn, .cat-perpage-btn { padding: 5px 10px; font-size: 12px; }

    /* Подкатегории */
    .cat-subcats { flex-direction: column; gap: 8px; padding: 12px 14px; }
    .cat-subcats-label { padding-top: 0; }

    /* ── product.css ── */
    .product-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 0 24px;
    }
    .product-gallery { position: static; }
    .product-title { font-size: 19px; }
    .product-price { font-size: 26px; }

    .product-meta-line {
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px 14px;
    }
    .product-meta-cell {
        flex: none;
    }
    .product-meta-cell--center { justify-content: flex-start; }
    .product-meta-cell--right { justify-content: flex-start; }

    .product-buy-split { grid-template-columns: 1fr; }
    .product-buy-divider { display: none; }
    .product-buy-half + .product-buy-half {
        border-top: 1px solid #f0f0f0;
    }

    .product-attrs-trust-split { grid-template-columns: 1fr; }
    .product-attrs-trust-divider { display: none; }
    .product-trust-panel { border-top: 1px solid #f0f0f0; }

    .product-bottom-col { padding: 20px; }

    /* ── checkout.css ── */
    .co-layout {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    .co-right {
        order: -1;
    }
    .co-summary {
        position: static;
    }
    /* Показываем кнопку сабмита в форме на мобиле */
    .co-submit-btn--form { display: flex; }
    .co-submit-btn--summary { display: none; }
    .co-row { grid-template-columns: 1fr; }

    /* ── components.css ── */
    .cart-drawer {
        width: 100vw;
        min-width: 0;
        max-width: 100vw;
    }
    .auth-modal {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
        padding: 40px 20px 24px;
    }
    .auth-close {
        position: static;
        display: block;
        margin-left: auto;
        margin-bottom: 12px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .auth-row { grid-template-columns: 1fr; }

    /* ── pages.css ── */
    .about-hero { padding: 40px 0 36px; }
    .about-hero h1 { font-size: 28px; }
    .about-hero-inner { grid-template-columns: 1fr; }
    .about-hero-flame { display: none; }
    .about-hero-stats { gap: 24px; }
    .hero-stat-num { font-size: 28px; }
    .about-grid { grid-template-columns: 1fr; }

    /* ── account.css ── */
    /* ── account.css — заказы карточками ── */
    .acc-orders-table { display: block; width: 100%; }
    .acc-orders-table thead { display: none; }
    .acc-orders-table tbody { display: block; }
    .acc-order-row {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
        align-items: center;
        padding: 14px;
        margin-bottom: 20px;
        background: #fafafa;
        border-radius: 10px;
        border: 1px solid #f0f0f0;
    }
    .acc-order-row:has(+ .acc-order-detail-tr:not([style*="display:none"]):not([style*="display: none"])) {
        margin-bottom: 0;
        border-radius: 10px 10px 0 0;
    }
    .acc-order-row td { display: block; padding: 0; border: none; }
    .acc-order-row td:last-child { flex-basis: 100%; }
    .acc-order-expand-btn { width: 100%; margin-top: 4px; }
    .acc-order-detail-tr {
        display: block;
        margin-bottom: 20px;
    }
    .acc-order-detail-td {
        padding: 0 !important;
        border: none !important;
    }
    .acc-items-table { display: block; }
    .acc-items-table thead { display: none; }
    .acc-items-table tbody,
    .acc-items-table tfoot { display: block; }
    .acc-items-table tr { display: block; padding: 10px 14px; border-bottom: 1px solid #f0f0f0; }
    .acc-items-table tr:last-child { border-bottom: none; }
    .acc-items-table td { display: block; padding: 0; border: none; text-align: left; }
    .acc-items-name { font-weight: 600; margin-bottom: 4px; }
    .acc-items-num { display: inline !important; font-size: 13px; color: #888; margin-right: 12px; }
    .acc-items-total { color: #222; font-weight: 700; }
    .acc-items-table tfoot tr {
        border-top: 2px solid #f0f0f0;
        border-bottom: none;
        padding-top: 12px;
    }
    .acc-items-table tfoot td {
        display: inline;
        border: none !important;
    }
    .acc-order-items-meta { flex-direction: column; }
    .acc-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .acc-sidebar {
        position: static;
        flex-direction: row;
        gap: 0;
    }
    .acc-user-card { display: none; }
    .acc-logout-wrap { display: none; }
    .acc-nav {
        border-radius: 10px;
        margin-bottom: 16px;
    }
    .acc-info-grid {
        grid-template-columns: 1fr;
    }
    .acc-form-row--2col {
        grid-template-columns: 1fr;
    }
    .acc-card { padding: 18px; }

    .cat-seo-text {
        padding: 20px;
        margin: 20px 0 0;
        font-size: 14px;
    }
    .cat-seo-text h2 { font-size: 16px; }
    .cat-seo-text h3 { font-size: 14px; }
}


/* ═══════════════════════════════════════════════════════
   ≤480px — ТЕЛЕФОНЫ
   iPhone (все модели), Android-флагманы
   ═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {

    body { -webkit-text-size-adjust: 115%; }

    /* ── layout.css ── */
    .container { padding: 0 12px; }

    .header-top .container { padding-top: 8px; padding-bottom: 8px; gap: 6px; }
    .logo img {
        max-height: 40px;
    }

    /* Корзина — тоже иконка без текста */
    .cart-btn {
        padding: 7px 10px;
        font-size: 0;
        gap: 4px;
    }
    .cart-btn svg { flex-shrink: 0; }
    .cart-count { width: 18px; height: 18px; font-size: 10px; }

    .search-wrap input { padding: 8px 12px;}
    .search-wrap button { padding: 8px 14px; font-size: 13px; }

    .catalog-btn { padding: 10px 14px; font-size: 13px; gap: 6px; }

    /* Футер */
    .footer-newsletter { padding: 40px 0; }
    .newsletter-title { font-size: 18px; }
    .newsletter-sub { font-size: 13px; }

    .footer-main { padding: 32px 0; }
    .hours-row { font-size: 12px; }
    .contact-phone { font-size: 16px; }

    /* Кнопка звонка */
    .call-btn { bottom: 16px; right: 16px; width: 48px; height: 48px; font-size: 18px; }
    .call-menu { right: 16px; bottom: 76px; width: calc(100vw - 32px); }

    /* ── home.css ── */
    .main { padding: 10px; }
    .section-title { font-size: 16px; }
    .banner { padding: 18px 20px; border-radius: 8px; }
    .banner h2 { font-size: 18px; }
    .banner p { font-size: 12px; }
    .banner::after { display: none; }

    .cat-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
    .cat-card { height: 110px; padding: 12px 8px 10px; }
    .cat-card .ico { font-size: 26px; margin-bottom: 6px; }
    .cat-card .name { font-size: 11px; }

    .features { grid-template-columns: 1fr; gap: 8px; }
    .feature-card { gap: 12px; padding: 12px; }
    .f-ico-wrap { width: 38px; height: 38px; }

    .promo-banner { min-height: 140px; padding: 20px; }
    .promo-banner h3 { font-size: 16px; }

    /* ── catalog.css ── */
    .cat-page-title { font-size: 20px; }

    .cat-toolbar {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
    }
    .cat-toolbar-left,
    .cat-toolbar-right {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .cat-toolbar-label {
        display: block !important;
        font-size: 13px;
        white-space: nowrap;
    }
    .cat-sort-links,
    .cat-perpage-links { display: none; }
    .cat-sort-select,
    .cat-perpage-select {
        display: block;
        min-width: 0;
        margin-left: auto;
        padding: 6px 24px 6px 10px;
        border: 1px solid #eee;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
        color: #888;
        background: #fafafa;
        appearance: none;
        transform: scale(0.8);
        transform-origin: right center;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ccc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 8px center;
    }

    .cat-pagination { gap: 10px; }
    .cat-page-btn { padding: 8px 16px; font-size: 13px; }

    /* ── product.css ── */
    .product-title { font-size: 17px; }
    .product-price { font-size: 24px; }
    .product-title-box { padding: 12px 14px; }

    .product-share { flex-wrap: wrap; }
    .product-price-row { flex-wrap: wrap; gap: 8px; }

    .product-thumb { width: 56px; height: 56px; }
    .product-thumbs-arrow { width: 30px; height: 30px; }

    .product-bottom-col { padding: 16px; }
    .product-bottom-col-title { font-size: 12px; }
    .product-description { font-size: 13px; }

    .attrs-stripe-row { padding: 8px 10px; flex-direction: column; gap: 2px; align-items: flex-start; }
    .attrs-stripe-key { flex: none; font-size: 12px; }
    .attrs-stripe-val { font-size: 13px; }

    /* ── checkout.css ── */
    .co-title { font-size: 22px; padding: 14px 0 16px; }
    .co-section { padding: 16px; }
    .co-input { padding: 9px 12px; font-size: 13px; }

    .co-auth-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 14px; }
    .co-auth-btn { width: 100%; text-align: center; }

    .co-summary-item { grid-template-columns: 40px 1fr auto auto; gap: 8px; }
    .co-summary-img { width: 40px; height: 40px; }
    .co-summary-name { font-size: 12px; }

    /* ── components.css ── */
    .product-card-body { padding: 10px 10px 12px; }
    .product-card-name { font-size: 12px; margin-bottom: 6px; }
    .product-card-price { font-size: 15px; }
    .product-card-controls { height: 32px; }
    .qty-btn { width: 24px; font-size: 14px; }
    .qty-val { width: 28px; font-size: 12px; }
    .product-card-btn { font-size: 11px; padding: 0 8px; }

    /* Корзина */
    .cart-item { padding: 12px 14px; gap: 10px; }
    .cart-item-img { width: 52px; height: 52px; }
    .cart-item-name { font-size: 12px; padding-right: 30px; }
    .cart-item-price { font-size: 14px; }
    .cart-item-remove { top: 12px; right: 14px; }

    .cart-drawer-footer { padding: 12px 14px 16px; }
    .cart-quick-form { flex-direction: column; }
    .cart-quick-btn { width: 100%; }

    /* Модалка авторизации */
    .auth-modal { padding: 30px 16px 30px; }
    .auth-tabs { margin-bottom: 20px; }
    .auth-field input { padding: 10px 12px; }

    /* Поиск: подсказки */
    .search-suggest-item { padding: 8px 10px; gap: 8px; }
    .search-suggest-img-wrap { width: 36px; height: 36px; }

    /* Страница спасибо */
    .ty-page { padding: 40px 0 60px; }
    .ty-title { font-size: 22px; }
    .ty-card { padding: 18px; }
    .ty-actions { flex-direction: column; }
    .ty-btn-primary, .ty-btn-secondary { width: 100%; text-align: center; }

    /* ── pages.css ── */
    .about-hero { padding: 28px 0; }
    .about-hero h1 { font-size: 24px; }
    .about-hero-lead { font-size: 14px; }
    .about-hero-stats { flex-wrap: wrap; gap: 16px; }
    .hero-stat-num { font-size: 24px; }
    .about-section { margin-bottom: 36px; }

    /* ── account.css ── */
    .acc-nav-item { padding: 9px 12px; font-size: 12px; gap: 6px; }
    .acc-nav-item svg { display: none; }
    .acc-card { padding: 14px; }
    .acc-card-title { font-size: 14px; margin-bottom: 16px; padding-bottom: 12px; }
    .acc-save-btn { width: 100%; justify-content: center; }
}


/* ═══════════════════════════════════════════════════════
   TOUCH / SAFE AREA / OVERRIDES
   ═══════════════════════════════════════════════════════ */

/* Safe areas для устройств с вырезами (iPhone X+) */
@supports (padding: env(safe-area-inset-bottom)) {
    .cart-drawer-footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
    .call-btn {
        bottom: calc(16px + env(safe-area-inset-bottom));
    }
    .call-menu {
        bottom: calc(76px + env(safe-area-inset-bottom));
    }
    .footer-bottom {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .cat-seo-text {
        padding: 16px;
        margin: 16px 0 0;
        font-size: 13px;
        border-radius: 10px;
    }
    .cat-seo-text h2 { font-size: 15px; }
    .cat-seo-text h3 { font-size: 13px; }
}

/* Убираем залипающие hover на touch, добавляем :active фидбэк */
@media (hover: none) {
    /* Трансформации */
    .product-card:hover { transform: none; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
    .cat-card:hover { transform: none; }
    .feature-card:hover { transform: none; }
    .promo-banner:hover { transform: none; }
    .btn-fire:hover { transform: none; }
    .pg-main-arrow { opacity: 0.7; }

    /* Сброс hover к дефолту */
    .catalog-btn:hover { background: #f25e5e; }
    .burger-btn:hover { color: rgba(255,255,255,0.7); }
    .search-toggle-btn:hover { border-color: #ddd; color: #444; background: transparent; }
    .cart-btn:hover { background: #f25e5e; }
    .btn-login:hover { border-color: #ddd; color: #444; background: transparent; }
    .cat-tab:hover { color: #555; border-bottom-color: transparent; }
    .mega-cat-item:hover { background: transparent; color: #222; }
    .nav-links a:hover { color: rgba(255,255,255,0.65); }

    /* :active — фидбэк пока палец на экране */
    .catalog-btn:active { background: #d11313; }
    .burger-btn:active { color: white; }
    .search-toggle-btn:active { border-color: #f25e5e; color: #f25e5e; }
    .cart-btn:active { background: #d11313; }
    .btn-login:active { border-color: #f25e5e; color: #f25e5e; }
    .cat-tab:active { color: #f25e5e; }
    .mega-cat-item:active { background: #fff5f0; color: #f25e5e; }
    .nav-links a:active { color: white; }

    .header-right .phone-block:hover .phone-ico-svg { border-color: #ddd; color: #444; background: transparent; }
    .header-right .phone-block:active .phone-ico-svg { border-color: #f25e5e; color: #f25e5e; background: rgba(255,107,43,0.06); }

    .catalog-btn.tap { background: #d11313; }
    .burger-btn.tap { color: white; }
    .search-toggle-btn.tap { border-color: #f25e5e; color: #f25e5e; }
    .header-right .phone-block .phone-ico-svg.tap { border-color: #f25e5e; color: #f25e5e; background: rgba(255,107,43,0.06); }
    .cart-btn.tap { background: #d11313; }
    .btn-login.tap { border-color: #f25e5e; color: #f25e5e; }
    .cat-tab.tap { color: #f25e5e; }
    .mega-cat-item.tap { background: #fff5f0; color: #f25e5e; }
    .nav-links a.tap { color: white; }

    /* Сохраняем подсветку активной вкладки категории */
    .cat-tab.active { color: #f25e5e; border-bottom-color: #f25e5e; background: #fff5f0; }
    .cat-tab.active .cat-tab-arrow { color: #f25e5e; }

    .cat-tab:hover .cat-tab-arrow { color: #bbb; }
    .cat-tab.active .cat-tab-arrow { color: #f25e5e; }

    /* CTA кнопки */
    .btn-fire:hover { transform: none; box-shadow: 0 2px 0 #a33a0f, 0 4px 12px rgba(255,107,43,0.3); background: #f25e5e; }
    .btn-fire.tap { background: #d11313; transform: scale(0.97); }

    .newsletter-inputs button:hover { background: #f25e5e; }
    .newsletter-inputs button.tap { background: #d11313; }

    .ty-btn-primary:hover { background: #f25e5e; }
    .ty-btn-primary.tap { background: #d11313; }

    .ty-btn-secondary:hover { border-color: #e0e0e0; color: #333; }
    .ty-btn-secondary.tap { border-color: #f25e5e; color: #f25e5e; }

    .cat-page-btn:hover { background: transparent; }
    .cat-page-btn.tap { background: #fff5f0; border-color: #f25e5e; color: #f25e5e; }

    .filter-apply-btn:hover { background: #f25e5e; }
    .filter-apply-btn.tap { background: #d11313; }

    .filter-reset-btn:hover { border-color: #eee; color: #aaa; background: transparent; }
    .filter-reset-btn.tap { border-color: #f25e5e; color: #f25e5e; background: #fff5f0; }

    .product-add-btn:hover { background: #f25e5e; }
    .product-add-btn.tap { background: #d11313; }

    .product-quick-submit:hover { background: #2a2a2a; }
    .product-quick-submit.tap { background: #444; }

    .auth-submit:hover { background: #f25e5e; }
    .auth-submit.tap { background: #d11313; }

    .product-card-btn:hover { background: #f25e5e; }
    .product-card-btn.tap { background: #d11313; }

    .carousel-btn { opacity: 0.7; }
    .carousel-btn:hover { background: white; color: #f25e5e; transform: translateY(-50%); box-shadow: 0 2px 8px rgba(242,94,94,0.2); }
    .carousel-btn.tap { background: #f25e5e; color: white; }
}
