/* assets/css/catalog.css */

/* רקע כללי נקי */
body {
    background-color: #f8f9fa; /* אפור בהיר מאוד ועדין */
}

/* כותרת הדף */
.catalog-header {
    text-align: center;
    padding: 60px 20px 40px;
    background: white;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.catalog-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -1px;
    color: #111;
}

.catalog-header p {
    color: #777;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- סרגל הפילטרים --- */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.filter-pill {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    background: #f1f1f1;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.filter-pill:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* הפילטר הפעיל */
.filter-pill.active {
    background: black;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- גריד המוצרים --- */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    padding: 0 20px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- כרטיס מוצר --- */
.prod-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.prod-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.prod-img-wrapper {
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prod-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.prod-card:hover .prod-img-wrapper img {
    transform: scale(1.1);
}

.prod-info {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prod-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #222;
}

.prod-cat {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prod-price {
    font-size: 1.3rem;
    color: #27ae60;
    font-weight: 700;
}

/* כפתור "פרטים" שמופיע בהובר */
.view-btn {
    margin-top: 15px;
    padding: 10px 0;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    transition: 0.3s;
    opacity: 0;
    transform: translateY(10px);
}

.prod-card:hover .view-btn {
    opacity: 1;
    transform: translateY(0);
    background: black;
    color: white;
    border-color: black;
}

/* הודעה כשאין מוצרים */
.no-products {
    text-align: center;
    padding: 50px;
    grid-column: 1 / -1;
    color: #888;
    font-size: 1.2rem;
}