/* Стили для блока: categories (Витрина категорий) */

.categories-block-section {
    padding: 3rem 0;
    transition: background-color 0.3s ease;
}

.categories-block-section.bg-white {
    background-color: #FFFFFF;
}

.categories-block-section.bg-light_grey {
    background-color: #F8FAFC;
}

.categories-block-section.bg-gradient {
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
}

.categories-showcase-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.categories-showcase-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.categories-showcase-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.categories-showcase-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ========================================== */
/* ТЕМА 1: PREMIUM OZON (СВЕТЛАЯ) */
/* ========================================== */
.theme-premium .category-showcase-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.theme-premium .category-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border-color: #CBD5E1;
}

.theme-premium .category-card-image-box {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.theme-premium .category-card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.theme-premium .category-showcase-card:hover .category-card-image-box img {
    transform: scale(1.05);
}

.theme-premium .category-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.theme-premium .category-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.theme-premium .category-card-title a {
    color: #0F172A;
    text-decoration: none;
    transition: color 0.2s;
}

.theme-premium .category-card-title a:hover {
    color: #2563EB;
}

.theme-premium .category-sub-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.theme-premium .category-sub-item-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #475569;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s, transform 0.15s;
}

.theme-premium .category-sub-item-link i {
    font-size: 0.75rem;
    color: #94A3B8;
}

.theme-premium .category-sub-item-link:hover {
    color: #2563EB;
    transform: translateX(3px);
}

.theme-premium .category-card-btn {
    margin-top: auto;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    background-color: #F1F5F9;
    color: #334155;
    border: 1px solid #E2E8F0;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.theme-premium .category-showcase-card:hover .category-card-btn {
    background-color: #2563EB;
    color: #FFFFFF;
    border-color: #2563EB;
}

/* ========================================== */
/* ТЕМА 2: МИНИ-ПЛИТКА (КОМПАКТНАЯ) */
/* ========================================== */
.theme-mini_tile .category-showcase-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.theme-mini_tile .category-showcase-card:hover {
    transform: translateY(-2px);
    border-color: #2563EB;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.08);
}

.theme-mini_tile .category-card-image-box {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 8px;
    overflow: hidden;
    background: #F1F5F9;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E2E8F0;
}

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

.theme-mini_tile .category-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.theme-mini_tile .category-card-title {
    font-size: 0.9rem;
    font-weight: 750;
    margin: 0;
    color: #0F172A;
}

.theme-mini_tile .category-sub-list,
.theme-mini_tile .category-card-btn {
    display: none !important;
}

/* ========================================== */
/* ТЕМА 3: GLASSMORPHIC (ТЕМНАЯ) */
/* ========================================== */
.categories-block-section.theme-glassmorphic {
    background-color: #0F172A !important;
}

.theme-glassmorphic .categories-block-title {
    color: #FFFFFF !important;
}

.theme-glassmorphic .category-showcase-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.theme-glassmorphic .category-showcase-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
    transform: translateY(-4px);
}

.theme-glassmorphic .category-card-image-box {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.theme-glassmorphic .category-card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.4s ease, opacity 0.3s;
}

.theme-glassmorphic .category-showcase-card:hover .category-card-image-box img {
    transform: scale(1.05);
    opacity: 1;
}

.theme-glassmorphic .category-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.theme-glassmorphic .category-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.theme-glassmorphic .category-card-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s;
}

.theme-glassmorphic .category-card-title a:hover {
    color: #60A5FA;
}

.theme-glassmorphic .category-sub-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.theme-glassmorphic .category-sub-item-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #94A3B8;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s, transform 0.15s;
}

.theme-glassmorphic .category-sub-item-link i {
    font-size: 0.75rem;
    color: #475569;
}

.theme-glassmorphic .category-sub-item-link:hover {
    color: #60A5FA;
    transform: translateX(3px);
}

.theme-glassmorphic .category-card-btn {
    margin-top: auto;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #E2E8F0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.theme-glassmorphic .category-showcase-card:hover .category-card-btn {
    background-color: #2563EB;
    color: #FFFFFF;
    border-color: #2563EB;
}

/* ========================================== */
/* АДАПТИВНОСТЬ */
/* ========================================== */
@media (max-width: 1024px) {
    .categories-showcase-grid.cols-3,
    .categories-showcase-grid.cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-showcase-grid.cols-2,
    .categories-showcase-grid.cols-3,
    .categories-showcase-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .categories-showcase-grid.cols-2,
    .categories-showcase-grid.cols-3,
    .categories-showcase-grid.cols-4 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .categories-block-section {
        padding: 1.5rem 0;
    }
}
