/**
 * Products & Categories Styles
 * Стили для страниц категорий и товаров
 */

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs-category {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}


.breadcrumbs-category a:hover {
    text-decoration: underline;
}

.breadcrumbs-category span {
        color: #000;
    text-shadow: -1px 0 #fff, 0 1px #fff, 1px 0 #fff, 0 -1px #fff;
}



/* ============================================
   SECTION SUBTITLE
   ============================================ */
.section__subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* ============================================
   SUBCATEGORIES GRID
   ============================================ */
.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Subcategory Card */
.subcategory-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    min-height: 200px;
}

.subcategory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.subcategory-card__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    transition: opacity 0.3s;
}

.subcategory-card:hover .subcategory-card__bg {
    opacity: 0.25;
}

.subcategory-card__image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 150px;
    object-fit: contain;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.subcategory-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.subcategory-card__image--placeholder svg {
    width: 50px;
    height: 50px;
    color: #bbb;
}

.subcategory-card__content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.95) 100%);
}

.subcategory-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}



.subcategory-card__count {
    font-size: 13px;
    color: #888;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Product Image */
.product-card__image {
    position: relative;
    height: 200px;
    background: #f8f9fa;
    overflow: hidden;
}

.product-card__image a {
    display: block;
    height: 100%;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.product-card__image--placeholder svg {
    width: 60px;
    height: 60px;
    color: #ccc;
}

/* Product Content */
.product-card__content {
    flex: 1;
    padding: 20px;
}

.product-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.product-card__title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-card__title a:hover {
    color: #b40e17;
}

.product-card__subtitle {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.product-card__excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__price {
    font-size: 18px;
    font-weight: 700;
    color: #e30f1b;
}

.product-card__price-label {
    font-size: 12px;
    font-weight: 400;
    color: #888;
    margin-right: 5px;
}

/* Product Footer */
.product-card__footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
}

.product-card__btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #e30f1b;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-card__btn:hover {
    background: #c00d17;
    color: #fff;
}

/* ============================================
   PRODUCTS PAGINATION
   ============================================ */
.products-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.products-pagination .nav-links {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.products-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}





.products-pagination .prev,
.products-pagination .next {
    padding: 0 15px;
}

.products-pagination .dots {
    border: none;
    background: transparent;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.products-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-top: 30px;
}

.products-empty__icon {
    width: 80px;
    height: 80px;
    color: #ccc;
    margin-bottom: 20px;
}

.products-empty__text {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .category-header__title {
        font-size: 28px;
    }
    
    .subcategories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .category-header__title {
        font-size: 24px;
    }
    
   
    
    .section__subtitle {
        font-size: 20px;
    }
    
    .subcategories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .subcategory-card__image {
        height: 120px;
    }
    
    .product-card__image {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .breadcrumbs-category {
        font-size: 13px;
    }
    
    .category-header__title {
        font-size: 22px;
    }
    
    .subcategories-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .subcategory-card {
        min-height: auto;
    }
    
    .subcategory-card__content {
        padding: 15px;
    }
    
    .product-card__content {
        padding: 15px;
    }
    
    .products-pagination .page-numbers {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

