/* Catalog Page Specific Styles */

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: var(--gray-dark);
    border: 2px solid #E9ECEF;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
}

.catalog {
    padding: 2.5rem 0;
    background: var(--white);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.catalog-item {
    background: var(--gray-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.catalog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Изображения товаров */
.catalog-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: #f8f9fa;
}

.catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.catalog-item:hover .catalog-image img {
    transform: scale(1.1);
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    padding: 0;
    z-index: 3;
}

/* Скрыть текст для доступности, но оставить для скринридеров */
.favorite-btn .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Сердечко через псевдоэлемент */
.favorite-btn::before {
    content: "♥";
    font-size: 18px;
    color: #ff4b1a;
    line-height: 1;
}

/* Состояние "в избранном" */
.favorite-btn.active,
.favorite-btn.liked {
    background: #ff4b1a;
}

.favorite-btn.active::before,
.favorite-btn.liked::before {
    color: #ffffff;
}

.favorite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .catalog-image {
        height: 280px;
    }
    
    .favorite-btn {
        width: 36px;
        height: 36px;
        top: 12px;
        right: 12px;
    }
    
    .favorite-btn::before {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-image {
        height: 200px;
    }
    
    .favorite-btn {
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
    }
    
    .favorite-btn::before {
        font-size: 14px;
    }
}


