/* ============================================
   ТЕМА: DEFAULT-MAIN
   Единые стили для всех страниц
   ============================================ */

/* ===== ГЛОБАЛЬНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #1e293b;
    line-height: 1.5;
}

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
.catalog-page {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
}
.breadcrumbs a {
    color: #3b82f6;
    text-decoration: none;
}

/* ===== ГЕРОЙ-СЕКЦИЯ ===== */
.catalog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    margin-bottom: 40px;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    width: 100%;
}

.catalog-hero .container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px 30px;
    width: 100%;
}

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

.hero-image {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-info {
    flex: 1;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-stats span {
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ===== БАННЕРЫ ===== */
.banner-container {
    margin: 20px 0;
    border-radius: 16px;
    overflow: hidden;
}
.banner-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== КОНТЕЙНЕР КАТАЛОГА С САЙДБАРОМ ===== */
.catalog-container {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 320px;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.catalog-main {
    min-width: 0;
    width: 100%;
}

.catalog-sidebar {
    width: 320px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* ===== КОНТЕЙНЕР БЛОГА С САЙДБАРОМ ===== */
.blog-container {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 320px;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-main {
    min-width: 0;
    width: 100%;
}

.blog-sidebar {
    width: 320px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* ===== УПРАВЛЕНИЕ ВИДОМ ===== */
.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 15px;
}

.view-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.results-count {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.posts-per-page-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.per-page-select {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

.view-buttons {
    display: flex;
    gap: 10px;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    text-decoration: none;
    color: #6b7280;
}

.view-btn:hover {
    background: #f3f4f6;
}

.view-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* ===== СЕТКА ТОВАРОВ ===== */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin-bottom: 50px !important;
    width: 100%;
}

/* Режим списка */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
    width: 100%;
}

.products-list .product-card {
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 180px;
}

.products-list .product-image {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    padding: 15px;
}

.products-list .product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-list .product-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.products-list .product-price {
    font-size: 1.2rem;
}

.products-list .product-btn {
    width: auto;
    align-self: flex-start;
    margin-top: 10px;
}

/* ===== КАРТОЧКА ТОВАРА ===== */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #f1f5f9;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.product-image {
    height: 200px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover {
    color: #667eea;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 4px;
}

.product-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    text-align: center;
    margin-top: auto;
    transition: all 0.2s;
}

.product-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* ===== СЕТКА КАТЕГОРИЙ ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.category-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.category-image {
    height: 160px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    overflow: hidden;
}

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

.category-content {
    padding: 20px;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.category-description {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9ca3af;
    font-size: 0.8rem;
}

/* ===== СЕТКА СТАТЕЙ (БЛОГ) ===== */
.posts-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin-bottom: 50px !important;
    width: 100%;
}

/* Режим списка для блога */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
    width: 100%;
}

.posts-list .post-card {
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 180px;
}

.posts-list .post-image-container {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.posts-list .post-content {
    flex: 1;
}

/* ===== КАРТОЧКА СТАТЬИ ===== */
.post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #f1f5f9;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.post-card a,
.post-card .post-title a,
.post-card .post-link,
.post-link,
.post-title a {
    text-decoration: none !important;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(245, 158, 11, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.post-image-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    overflow: hidden;
}

.post-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image-container img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-title {
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    color: #667eea;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    color: #6b7280;
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.post-excerpt {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #667eea;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.edit-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

/* ===== БЛОК С ТОВАРОМ В СТАТЬЕ ===== */
.product-promo-box {
    margin-top: 40px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.product-promo-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.product-promo-icon {
    width: 50px;
    height: 50px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.product-promo-title {
    font-size: 0.9rem;
    color: #6b7280;
}

.product-promo-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
}

.product-promo-btn {
    margin-left: auto;
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.product-promo-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* ===== СТРАНИЦА ОТДЕЛЬНОЙ СТАТЬИ ===== */
.single-post {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
}

.single-post h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #111827;
}

.single-post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
    color: #6b7280;
    flex-wrap: wrap;
}

.single-post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}

.single-post-content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.product-link-in-article {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.edit-post-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
}

.similar-posts {
    margin-top: 60px;
}

.similar-posts h3 {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

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

/* ===== ПЕРЕКРЕСТНЫЕ ССЫЛКИ ===== */
.cross-links {
    margin-top: 30px;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 12px;
    border: 1px solid #b8daff;
}

.cross-links h3 {
    font-size: 1.1rem;
    color: #0369a1;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cross-links-list {
    list-style: none;
}

.cross-links-list li {
    margin-bottom: 8px;
}

.cross-links-list a {
    color: #0369a1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* ===== САЙДБАР (ОБЩИЙ) ===== */
.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.search-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.category-list {
    list-style: none;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    flex-wrap: wrap;
    gap: 8px;
}

.category-link {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
    flex: 1;
    overflow-x: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-link:hover {
    color: #667eea;
}

.category-link.active {
    color: #667eea;
    font-weight: 600;
}

.category-indent {
    color: #9ca3af;
    font-size: 12px;
    margin-right: 4px;
}

.category-count {
    background: #f3f4f6;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

.popular-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
}

.popular-item:hover {
    background: #f8fafc;
}

.popular-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

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

.popular-title {
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-views {
    font-size: 11px;
    color: #9ca3af;
}

/* ===== ПАГИНАЦИЯ ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    background: white;
    transition: all 0.2s;
}

.page-link:hover {
    background: #f3f4f6;
    border-color: #667eea;
}

.page-link.current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.search-results-info {
    background: #e0f2fe;
    border-left: 4px solid #0ea5e9;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* ===== ПУСТОЕ СОСТОЯНИЕ ===== */
.no-results {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
}

.no-results i {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 20px;
    display: block;
}

.no-results h3 {
    font-size: 1.3rem;
    color: #475569;
    margin-bottom: 10px;
}

.no-results p {
    color: #94a3b8;
    margin-bottom: 20px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .catalog-page {
        padding: 20px;
    }
}

@media (max-width: 992px) {
    .catalog-container,
    .blog-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .products-grid,
    .posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .catalog-sidebar,
    .blog-sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 768px) {
    .catalog-page {
        padding: 15px;
    }
    
    .catalog-hero .container {
        padding: 30px 20px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-info {
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .products-grid,
    .posts-grid {
        grid-template-columns: 1fr !important;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .similar-grid {
        grid-template-columns: 1fr;
    }
    
    .products-list .product-card,
    .posts-list .post-card {
        flex-direction: column;
    }
    
    .products-list .product-image,
    .posts-list .post-image-container {
        width: 100%;
        height: 180px;
    }
    
    .products-list .product-btn {
        width: 100%;
        text-align: center;
    }
    
    .view-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .view-left {
        flex-direction: column;
        align-items: stretch;
    }
    
    .single-post {
        padding: 20px;
    }
    
    .single-post h1 {
        font-size: 1.5rem;
    }
    
    .product-promo-content {
        flex-direction: column;
        text-align: center;
    }
    
    .product-promo-btn {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .no-results,
    .empty-state {
        padding: 40px 20px;
    }
    
    .no-results i,
    .empty-state i {
        font-size: 48px;
    }
    
    .no-results h3,
    .empty-state h3 {
        font-size: 1.1rem;
    }
}

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --grid-columns: 3;
    --card-height-list: 260px;
    --excerpt-lines-list: 4;
    --excerpt-max-height: 6em;
}

.products-grid,
.posts-grid {
    grid-template-columns: repeat(var(--grid-columns), 1fr) !important;
}

.post-card.list-view {
    height: var(--card-height-list) !important;
    min-height: var(--card-height-list) !important;
    max-height: var(--card-height-list) !important;
}

.post-card.list-view .post-image-container {
    height: var(--card-height-list) !important;
}

.post-card.list-view .post-excerpt {
    -webkit-line-clamp: var(--excerpt-lines-list) !important;
    max-height: var(--excerpt-max-height) !important;
}

@media (max-width: 768px) {
    .post-card.list-view,
    .post-card.list-view .post-image-container,
    .post-card.list-view .post-content {
        height: auto !important;
        max-height: none !important;
    }
    .post-card.list-view .post-excerpt {
        -webkit-line-clamp: unset !important;
        max-height: none !important;
    }
}

/* ===== ЕДИНЫЕ СТИЛИ ДЛЯ КАТАЛОГА И ГЛАВНОЙ СТРАНИЦЫ ===== */

/* Блок с товарами на главной странице */
.main-products-section {
    margin: 40px 0;
}

/* Сетка товаров (используем те же правила, что и в каталоге) */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin-bottom: 50px !important;
    width: 100%;
}

/* Карточка товара (единый стиль для каталога и главной) */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #f1f5f9;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.product-image {
    height: 200px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 12px;
    color: #667eea;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover {
    color: #667eea;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 15px;
}

.product-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    text-align: center;
    margin-top: auto;
    transition: all 0.2s;
}

.product-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* Секция преимуществ (benefits) */
.benefits-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.benefit-card {
    text-align: center;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
}

.benefit-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
}

.benefit-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.benefit-description {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Заголовки секций */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 10px;
}

.section-header p {
    color: #6b7280;
}

/* Кнопка "Смотреть весь каталог" */
.section-cta {
    text-align: center;
    margin-bottom: 40px;
}

.btn-catalog {
    background: #4b5563;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s;
}

.btn-catalog:hover {
    background: #374151;
    transform: translateY(-2px);
}

/* Герой-секция (если нужно подправить) */
.catalog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    margin-bottom: 40px;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    width: 100%;
}

.catalog-hero .container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px 30px;
    width: 100%;
}

/* Адаптивность для главной страницы */
@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-section {
        padding: 30px 20px;
    }
}

/* Кнопка в хиро-секции */
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 28px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.6);
}