/* ==========================================
   ШАПКА КАТЕГОРИИ
========================================== */

.category-hero {
    padding: 45px 40px 35px;
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
    text-align: center;
}

.category-hero-content {
    max-width: 900px;
    margin: auto;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 15px;
}

.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--accent-hover);
}

.category-hero h1 {
    font-size: 52px;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.category-hero h1::after {
    content: "";
    display: block;
    width: 90px;
    height: 3px;
    margin: 22px auto 0;
    background: var(--accent);
    border-radius: 20px;
}

.category-hero p {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.7;
}

/* ==========================================
   СЕТКА ТОВАРОВ
========================================== */

.products {
    width: min(1800px, 95%);
    margin: 35px auto 70px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
}

/* ==========================================
   КАРТОЧКА ТОВАРА
========================================== */

.product {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: 0.35s;
    box-shadow: 0 18px 40px var(--shadow-color);
}

.product:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 30px 60px var(--shadow-hover);
}

.product-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: 22px;
}

.product img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.product h3 {
    margin: 0;
    min-height: 58px;
    font-size: 20px;
    line-height: 1.45;
    color: var(--text-primary);
}

.product-bottom {
    margin-top: 28px;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 18px;
}

/* ==========================================
   КАРТОЧКА КАК ССЫЛКА
========================================== */

.product-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.product-link img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-link:hover img {
    transform: scale(1.02);
}

.product-link .product-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: 22px;
}

.product-link h3 {
    margin: 0;
    min-height: 58px;
    font-size: 20px;
    line-height: 1.45;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.product-link:hover h3 {
    color: var(--accent);
}

.product-link .product-bottom {
    margin-top: 28px;
}

.product-link .product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 18px;
}

.product-link .button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-gradient);
    color: var(--accent-text);
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.product-link:hover .button {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Если используешь отдельную кнопку "Заказать" в Telegram */
.order-btn {
    margin: 0 22px 22px 22px;
    width: calc(100% - 44px);
    background: var(--accent-gradient);
    color: var(--accent-text);
    border: none;
    border-radius: 14px;
    padding: 14px 0;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.order-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ==========================================
   АДАПТИВ
========================================== */

@media (max-width: 768px) {
    .category-hero {
        padding: 60px 25px;
    }
    
    .category-hero h1 {
        font-size: 40px;
    }
    
    .category-hero p {
        font-size: 17px;
    }
    
    .product img {
        height: 260px;
    }
}

@media (max-width: 1600px) {
    .products {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .products {
        grid-template-columns: 1fr 1fr;
        width: 92%;
    }
}