/* Современный дизайн карты сайта */
.sitemap-modern {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 30px 0;
}

.sitemap-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Блок с меню и страницами - сетка 2 колонки */
.sitemap-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Блок с товарами - на всю ширину */
.sitemap-products-section {
    width: 100%;
}

.sitemap-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.sitemap-card .card-header {
    background: #F0EEF6;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.3s ease;
}

.sitemap-card .card-header:hover {
    background: #e8e6f0;
}

.sitemap-card .header-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.sitemap-card .card-title {
    margin: 0;
    color: #53505B;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.sitemap-card .card-content {
    padding: 24px;
}

/* Кнопки-ссылки */
.button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sitemap-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sitemap-btn-outline {
    background: #F0EEF6;
    color: #53505B;
    border: 2px solid #e2e8f0;
}

.sitemap-btn-outline:hover {
    background: #e8e6f0;
    color: #53505B;
    border-color: #d0ced8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sitemap-btn-primary {
    background: #F0EEF6;
    color: #53505B;
    border: none;
}

.sitemap-btn-primary:hover {
    background: #e8e6f0;
    color: #53505B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Товары - 4 в ряд, на всю ширину, без картинок и цен */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.product-card {
    background: #F0EEF6;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: #e8e6f0;
}

.product-info {
    padding: 16px;
    text-align: center;
}

.product-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 500;
}

.product-title a {
    color: #53505B;
    text-decoration: none;
    transition: color 0.2s;
}

.product-card:hover .product-title a {
    color: #53505B;
}

.product-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 12px;
    background: white;
    color: #53505B;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.product-card:hover .product-btn {
    background: #53505B;
    color: white;
}

.product-btn:hover {
    transform: translateX(4px);
}

/* Убираем картинки и цены */
.product-image {
    display: none;
}

.product-price {
    display: none;
}

/* Пустое состояние */
.sitemap-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 16px;
}

.empty-state {
    font-size: 48px;
    color: #94a3b8;
}

.empty-state p {
    margin-top: 16px;
    font-size: 16px;
    color: #64748b;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sitemap-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .button-grid {
        gap: 8px;
    }
    
    .sitemap-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .sitemap-card .card-header {
        padding: 16px 20px;
    }
    
    .sitemap-card .card-content {
        padding: 16px;
    }
}

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

/* Анимация загрузки */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sitemap-card {
    animation: fadeInUp 0.5s ease-out;
}
