/* =========================================
   БАЗОВЫЕ НАСТРОЙКИ 
========================================= */
body { margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #080808; overflow-x: hidden; }

/* ФИКС ВЫДЕЛЕНИЯ ТЕКСТА МЫШЬЮ */
::-selection { background-color: #0056b3; color: #ffffff !important; }
::-moz-selection { background-color: #0056b3; color: #ffffff !important; }

/* =========================================
   ШАПКА САЙТА (HEADER) - ТЕПЕРЬ ПЛАВАЮЩАЯ
========================================= */
.header {
    background-color: #000000; 
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    border-bottom: 1px solid #1a1a1a;
    flex-wrap: wrap; 
    position: sticky; 
    top: 0;
    z-index: 1000; 
}

.logo { display: flex; flex-direction: column; cursor: pointer; min-width: 280px; text-decoration: none !important; }
.logo-title { font-size: 26px; font-weight: 900; letter-spacing: 0.5px; text-transform: uppercase; line-height: 1; margin: 0; color: #ffffff !important; }
.logo-title span { color: #ff6b00 !important; } 
.logo-line { width: 100%; height: 2px; background-color: #ff6b00; margin: 4px 0 6px 0; }
.logo-sub { font-size: 14px; color: #ffffff !important; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; text-align: center; line-height: 1; margin: 0; }

.search-wrapper { flex-grow: 1; margin: 0 40px; display: flex; align-items: center; gap: 15px; position: relative; }
.search-label { display: flex; flex-direction: column; text-align: right; }
.search-label-top { font-size: 26px; font-weight: 900; color: #ffffff; text-transform: uppercase; line-height: 1; letter-spacing: 0.5px; margin-bottom: 12px; }
.search-label-sub { font-size: 14px; color: #ff6b00; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1; }
.search-input { flex-grow: 1; padding: 16px 20px; border-radius: 8px; border: 2px solid #222; background-color: #111; color: #fff; font-size: 16px; outline: none; transition: border 0.2s; }
.search-input:focus { border-color: #ff6b00; }
.search-input::placeholder { color: #555; }

/* ВЫПАДАЮЩИЙ СПИСОК (LIVE SEARCH) */
.search-dropdown {
    position: absolute; top: 100%; left: 130px; right: 0; background-color: #161616; border: 1px solid #2a2a2a; border-radius: 8px; margin-top: 15px; overflow: hidden;
    opacity: 0; visibility: hidden; transition: 0.2s; box-shadow: 0 10px 25px rgba(0,0,0,0.9);
}
.search-input:focus ~ .search-dropdown { opacity: 1; visibility: visible; }
.search-result-item { display: flex; align-items: center; gap: 15px; padding: 15px 20px; text-decoration: none; color: #fff; border-bottom: 1px solid #1a1a1a; transition: background 0.2s; }
.search-result-item:hover { background-color: #1e1e1e; }
.search-result-item img { width: 40px; height: 40px; object-fit: contain; }
.search-result-title { font-size: 14px; font-weight: 800; transition: color 0.2s; }
.search-result-item:hover .search-result-title { color: #ff6b00; }
.search-result-price { font-size: 14px; font-weight: 900; color: #ff6b00; margin-top: 4px; }
.search-result-all { display: block; text-align: center; padding: 15px; font-size: 12px; font-weight: 900; color: #888; text-transform: uppercase; text-decoration: none; transition: color 0.2s; }
.search-result-all:hover { color: #fff; }

.chat-container { display: flex; flex-direction: column; align-items: flex-end; margin-right: 30px; }
.chat-top { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 900; color: #ffffff; text-transform: uppercase; line-height: 1; letter-spacing: 0.5px; margin-bottom: 12px; cursor: pointer; }
.chat-top svg { stroke: #ff6b00; } 
.dot { width: 10px; height: 10px; background-color: #00ff00; border-radius: 50%; box-shadow: 0 0 8px rgba(0,255,0,0.6); margin-left: 2px; }
.chat-sub { font-size: 14px; font-weight: 800; color: #aaaaaa; line-height: 1; letter-spacing: 1px; }

.avito-btn { display: flex; align-items: center; gap: 8px; background-color: #1a1a1a; border: 1px solid #333; padding: 12px 20px; border-radius: 25px; color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; transition: all 0.2s; margin-right: 20px; }
.avito-btn:hover { border-color: #fff; background-color: #222; }
.avito-icon { display: flex; gap: 2px; flex-wrap: wrap; width: 14px; height: 14px; }
.a-dot { width: 6px; height: 6px; border-radius: 50%; }
.d1 { background: #00aaff; } .d2 { background: #ff0055; } .d3 { background: #00ff00; } .d4 { background: #aa00ff; }

.cart-btn { background-color: #ffffff; color: #000000; padding: 12px 25px; border-radius: 30px; cursor: pointer; font-weight: 900; display: flex; align-items: center; gap: 10px; border: none; font-size: 18px; transition: background-color 0.2s; }
.cart-btn:hover { background-color: #e0e0e0; }
.cart-badge { background-color: #ff6b00; color: #fff; border-radius: 50%; padding: 3px 9px; font-size: 14px; }

/* =========================================
   ЦЕНТРАЛЬНЫЙ ЗАГОЛОВОК СТРАНИЦЫ
========================================= */
.main-title-wrapper { text-align: center; padding: 50px 20px 10px 20px; }
.main-title { font-size: 46px; font-weight: 900; color: #ff6b00; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 10px 0; line-height: 1; }
.main-subtitle { font-size: 22px; font-weight: 900; color: #ffffff; text-transform: uppercase; letter-spacing: 1.5px; margin: 0; }

/* =========================================
   БЛОК КАТАЛОГА (МОДЕЛИ)
========================================= */
.catalog-section { padding: 20px 40px 60px 40px; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.model-card {
    background-color: #161616; 
    border: 1px solid #2a2a2a;
    border-radius: 24px;
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease; 
    height: 160px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.model-card:hover { border-color: #ff6b00; transform: scale(1.03); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8); }

.card-label { font-size: 10px; font-weight: 900; color: #ff6b00; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;}
.card-title { font-size: 20px; font-weight: 900; color: #ffffff; text-transform: uppercase; line-height: 1.1; margin-bottom: 12px; z-index: 2; max-width: 65%;}
.card-stats { font-size: 10px; font-weight: 800; color: #555; text-transform: uppercase; letter-spacing: 1px; margin-bottom: auto; z-index: 2;}
.card-btn { font-size: 12px; font-weight: 900; color: #ff6b00; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 5px; z-index: 2; margin-top: 15px; }

.card-image {
    position: absolute; right: 0px; top: 50%; transform: translateY(-50%);
    width: 150px; height: 150px; z-index: 1; object-fit: contain; transition: transform 0.3s ease; 
    image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;
}
.model-card:hover .card-image { transform: translateY(-50%) scale(1.1) rotate(-8deg); }

/* =========================================
   СЕКЦИЯ: ВИТРИНА ЗАПЧАСТЕЙ
========================================= */
.showcase-section { padding: 20px 40px 80px 40px; }
.showcase-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; border-bottom: 1px solid #1a1a1a; padding-bottom: 20px; flex-wrap: wrap; gap: 15px; }
.showcase-title-block { display: flex; flex-direction: column; gap: 10px; }
.showcase-title { font-size: 42px; font-weight: 900; color: #ffffff; text-transform: uppercase; line-height: 1; margin: 0; letter-spacing: 1px;}
.showcase-title span { color: #ff6b00; }
.showcase-subtitle { font-size: 11px; font-weight: 800; color: #666; text-transform: uppercase; letter-spacing: 2px; margin: 0; }

.showcase-actions { display: flex; gap: 15px; }
.refresh-btn { background: transparent; border: 1px solid #333; color: #888; padding: 12px 20px; border-radius: 8px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 8px; }
.refresh-btn:hover { color: #fff; border-color: #ff6b00; }
.showcase-btn-all { background-color: #111; border: 1px solid #222; color: #ff6b00; padding: 12px 24px; border-radius: 8px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 8px; }
.showcase-btn-all:hover { border-color: #ff6b00; background-color: #1a1a1a; }

.showcase-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

.product-card { background-color: #0b0b0b; border: 1px solid #1a1a1a; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: all 0.3s; }
.product-card:hover { border-color: #ff6b00; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.8); }

.product-img-wrapper { 
    height: 290px;
    background-color: #161616; 
    overflow: hidden; 
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
}
.product-img-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s ease; 
}
.product-card:hover .product-img-wrapper img { transform: scale(1.05); }

.product-info { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.product-category { font-size: 11px; font-weight: 800; color: #666; text-transform: uppercase; letter-spacing: 1px; }

/* ИСПРАВЛЕНИЕ ЗАЩИТЫ ОТ СПЛЮЩИВАНИЯ ДЛЯ ТЕКСТА "В НАЛИЧИИ" */
.status-pill { background-color: rgba(0, 255, 0, 0.05); border: 1px solid rgba(0, 255, 0, 0.2); padding: 4px 10px; border-radius: 20px; display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 900; color: #00ff00; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; background-color: #00ff00; border-radius: 50%; box-shadow: 0 0 6px #00ff00; flex-shrink: 0; }

.product-name { font-size: 14px; font-weight: 800; color: #ffffff; line-height: 1.4; margin: 0 0 20px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex-grow: 1; transition: color 0.2s ease; }
.product-card:hover .product-name { color: #ff6b00; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 10px; }
.product-price { font-size: 22px; font-weight: 900; color: #ffffff; letter-spacing: 0.5px; white-space: nowrap; }
.product-price span { font-size: 14px; color: #666; font-weight: 700;}

/* ИСПРАВЛЕНИЕ ЗАЩИТЫ ОТ СПЛЮЩИВАНИЯ КНОПКИ КОРЗИНЫ */
.cart-icon-btn { width: 40px; height: 40px; background-color: #ffffff; border-radius: 10px; display: flex; justify-content: center; align-items: center; border: none; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.cart-icon-btn:hover { background-color: #ff6b00; }
.cart-icon-btn:hover svg { stroke: #ffffff; }
.cart-icon-btn svg { stroke: #000000; transition: stroke 0.2s; }

/* =========================================
   SEO БЛОК
========================================= */
.seo-section { padding: 20px 40px 80px 40px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: stretch; }
.seo-left { display: flex; flex-direction: column; justify-content: space-between; }
.seo-title-big { font-size: 48px; font-weight: 900; color: #ffffff; text-transform: uppercase; line-height: 1.1; margin: 0 0 15px 0; letter-spacing: 1px; }
.seo-title-big span { color: #ff6b00; }
.seo-subtitle-text { font-size: 16px; font-weight: 700; color: #888; margin: 0 0 40px 0; }
.seo-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.seo-feature-card { background-color: #111; border: 1px solid #1e1e1e; border-radius: 16px; padding: 25px; display: flex; flex-direction: column; gap: 15px; }
.seo-feature-icon svg { stroke: #ff6b00; }
.seo-feature-title { font-size: 20px; font-weight: 900; color: #fff; text-transform: uppercase; margin: 0; line-height: 1; }
.seo-feature-desc { font-size: 11px; font-weight: 800; color: #666; text-transform: uppercase; letter-spacing: 1px; margin: 0; }
.seo-right { background-color: #0b0b0b; border: 1px solid #1a1a1a; border-radius: 24px; padding: 45px; display: flex; flex-direction: column; }
.seo-text p { font-size: 16px; line-height: 1.7; color: #aaaaaa; margin: 0 0 20px 0; }
.seo-text strong { color: #ffffff; font-weight: 800; }
.seo-text ul { list-style: none; padding: 0; margin: 0 0 30px 0; display: flex; flex-direction: column; gap: 12px; }
.seo-text li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #aaaaaa; font-weight: 600; }
.seo-text li::before { content: "•"; color: #ff6b00; font-weight: 900; font-size: 20px; line-height: 1; }

/* =========================================
   ПОДВАЛ (FOOTER)
========================================= */
.footer { background-color: #000000; padding: 60px 40px 30px 40px; border-top: 1px solid #1a1a1a; color: #666; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-logo { font-size: 20px; font-weight: 900; color: #fff; text-transform: uppercase; margin-bottom: 15px; }
.footer-logo span { color: #ff6b00; }
.footer-info { font-size: 13px; line-height: 1.6; color: #666; margin: 0; }
.footer-h4 { font-size: 14px; font-weight: 900; color: #fff; text-transform: uppercase; margin: 0 0 20px 0; letter-spacing: 1px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links li { font-size: 14px; color: #888; transition: color 0.2s; }
.footer-links a { color: #888; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #ff6b00; }
.footer-email { color: #ff6b00 !important; font-weight: 700; }
.footer-bottom { border-top: 1px solid #1a1a1a; padding-top: 30px; display: flex; justify-content: space-between; font-size: 12px; flex-wrap: wrap; gap: 15px; }
.footer-legal { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-legal a { color: #555; text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* =========================================
   ХЛЕБНЫЕ КРОШКИ И ЗАГОЛОВОК
========================================= */
.breadcrumbs { padding: 30px 40px 10px 40px; font-size: 11px; font-weight: 800; color: #444; text-transform: uppercase; letter-spacing: 1.5px; }
.breadcrumbs a { color: #666; text-decoration: none; transition: 0.2s; }
.breadcrumbs a:hover { color: #ff6600; }
.breadcrumbs span { color: #888; }
.catalog-header-block { padding: 10px 40px 30px 40px; border-bottom: 1px solid #1a1a1a; display: flex; align-items: baseline; gap: 20px; }
.catalog-main-title { font-size: 42px; font-weight: 900; margin: 0; text-transform: uppercase; letter-spacing: 1px; color: #ffffff; }
.catalog-total-count { font-size: 14px; color: #666; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   ОСНОВНАЯ СЕТКА КАТАЛОГА
========================================= */
.catalog-container { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 40px; align-items: start; }

/* =========================================
   ЛЕВОЕ МЕНЮ КАТАЛОГА (SIDEBAR)
========================================= */
.sidebar-block { position: sticky; top: 120px; }
.sidebar-menu-wrapper { margin-bottom: 40px; }
.sidebar-menu-title { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid #ff6600; padding-bottom: 15px; margin-top: 0; margin-bottom: 20px; color: #fff; }
.sidebar-menu-list { list-style: none; padding: 0; margin: 0; }
.sidebar-menu-list li { margin-bottom: 10px; }
.sidebar-menu-list a { display: block; padding: 10px 15px; color: #aaa; text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 4px; transition: 0.2s; background: #111; }
.sidebar-menu-list a:hover { background: #1a1a1a; color: #fff; }
.sidebar-menu-list a.active { background: #ff6600; color: #fff; }

.sidebar-filter-wrapper { margin-bottom: 30px; }
.sidebar-filter-title { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 15px; }
.filter-checkbox { display: block; position: relative; padding-left: 30px; margin-bottom: 12px; cursor: pointer; font-size: 13px; font-weight: 600; color: #ccc; user-select: none; }
.filter-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { position: absolute; top: 0; left: 0; height: 18px; width: 18px; background-color: #111; border: 1px solid #333; border-radius: 3px; }
.filter-checkbox:hover input ~ .checkmark { background-color: #222; }
.filter-checkbox input:checked ~ .checkmark { background-color: #ff6600; border-color: #ff6600; }
.checkmark:after { content: ""; position: absolute; display: none; }
.filter-checkbox input:checked ~ .checkmark:after { display: block; }
.filter-checkbox .checkmark:after { left: 6px; top: 2px; width: 4px; height: 9px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.sidebar-banner { background: linear-gradient(145deg, #1a1a1a, #0a0a0a); border: 1px solid #333; padding: 25px 20px; border-radius: 8px; text-align: center; margin-top: 40px; }
.sidebar-banner h4 { margin: 0 0 10px 0; font-size: 16px; font-weight: 800; text-transform: uppercase; color: #fff; }
.sidebar-banner p { font-size: 13px; color: #888; line-height: 1.5; margin-bottom: 20px; }
.sidebar-banner a { display: inline-block; padding: 10px 20px; background: #fff; color: #000; font-size: 12px; font-weight: 800; text-transform: uppercase; text-decoration: none; border-radius: 4px; letter-spacing: 1px; transition: 0.2s; }
.sidebar-banner a:hover { background: #ff6600; color: #fff; }

/* =========================================
   ПРАВАЯ СЕКЦИЯ: СЕТКА С КАТАЛОГОМ ТОВАРОВ
========================================= */
.catalog-sorting { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; background: #111; padding: 15px 20px; border-radius: 6px; font-size: 13px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.catalog-sorting select { background: #000; color: #fff; border: 1px solid #333; padding: 8px 15px; font-family: inherit; font-size: 13px; font-weight: 700; outline: none; cursor: pointer; border-radius: 4px; margin-left: 10px; }
.catalog-grid-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-bottom: 50px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 40px; border-top: 1px solid #1a1a1a; padding-top: 30px; }
.page-link, .page-next { display: inline-flex; justify-content: center; align-items: center; height: 40px; min-width: 40px; padding: 0 15px; background: #111; color: #888; text-decoration: none; font-size: 14px; font-weight: 700; border-radius: 4px; border: 1px solid #222; transition: 0.2s; }
.page-link:hover, .page-next:hover { background: #222; color: #fff; border-color: #333; }
.page-link.active { background: #ff6b00; color: #fff; border-color: #ff6b00; }
.page-dots { color: #666; font-weight: 700; padding: 0 5px; }

/* =========================================
   БЛОК SEO (ПОСЛЕ КАТАЛОГА)
========================================= */
.seo-text-block { background-color: #0c0c0c; border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a; padding: 60px 40px; margin-top: 20px; }
.seo-text-container { max-width: 1000px; margin: 0 auto; }
.seo-text-container h2 { font-size: 28px; font-weight: 900; color: #ffffff; text-transform: uppercase; margin-top: 0; margin-bottom: 25px; letter-spacing: 1px; }
.seo-text-container p { color: #aaaaaa; line-height: 1.7; font-size: 15px; margin: 0 0 15px 0; }

/* =========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (MEDIA QUERIES)
========================================= */
@media (max-width: 1200px) {
    .showcase-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-grid { grid-template-columns: repeat(3, 1fr); }
    .seo-section { grid-template-columns: 1fr; gap: 40px; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    
    /* Исправление для каталога на планшетах */
    .catalog-container { grid-template-columns: 240px 1fr; gap: 20px; padding: 20px; }
}

@media (max-width: 768px) {
    .header { flex-direction: column; padding: 15px 20px; align-items: stretch; gap: 15px; position: relative; }
    .logo { min-width: auto; align-items: center; }
    .search-wrapper { margin: 0; width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
    .search-dropdown { left: 0; }
    .search-label { display: none; } 
    .chat-container { display: none; } 
    .avito-btn, .cart-btn { justify-content: center; margin: 0; }
    
    .catalog-section, .showcase-section, .seo-section { padding: 20px; }
    .main-title { font-size: 32px; }
    .main-subtitle { font-size: 16px; }
    
    .showcase-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-title { font-size: 32px; }
    .showcase-header { flex-direction: column; align-items: flex-start; }
    
    .seo-title-big { font-size: 32px; }
    .seo-features { grid-template-columns: 1fr; }
    .seo-right { padding: 25px; }
    
    .footer { padding: 40px 20px 20px 20px; }
    .footer-container { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-links { align-items: center; }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
    .footer-legal { justify-content: center; }

    /* ИСПРАВЛЕНИЕ ДЛЯ КАТАЛОГА НА МОБИЛЬНЫХ: Сайдбар уходит наверх, карточкам отдается 100% ширины */
    .catalog-container { grid-template-columns: 1fr; padding: 15px; gap: 20px;}
    .sidebar-block { position: static; margin-bottom: 10px; }
    .catalog-header-block { padding: 10px 15px 20px 15px; flex-direction: column; gap: 10px;}
    .catalog-main-title { font-size: 28px; }
    .breadcrumbs { padding: 15px 15px 5px 15px; }
}

@media (max-width: 480px) {
    .catalog-grid { grid-template-columns: 1fr; }
    .showcase-grid { grid-template-columns: 1fr; }
    .showcase-actions { width: 100%; justify-content: space-between; }
    .refresh-btn span { display: none; }
    .main-title { font-size: 26px; }
    .showcase-title { font-size: 26px; }
    .product-img-wrapper { height: 200px; }

    /* Исправление сетки карточек на совсем узких экранах */
    .catalog-grid-items { grid-template-columns: 1fr; gap: 15px; }
}