:root {
    --primary-color: #2c3e50; /* כחול Navy */
    --accent-color: #B8977E;  /* זהב מוקה */
    --bg-color: #faf8f5;      /* שמנת בהיר */
    --card-bg: #ffffff;       /* לבן */
    --text-color: #333333;
    --border-color: #eae5df;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Assistant', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

/* כותרת */
.main-header {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 50px 20px;
    border-bottom: 4px solid var(--accent-color);
}

.main-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.main-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* מיכל ראשי */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* גריד מוצרים */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* כרטיס מוצר */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.product-image {
    width: 100%;
    height: 220px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-title {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    min-height: 3.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* כפתור רכישה */
.buy-btn {
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s ease;
    margin-top: auto;
}

.buy-btn:hover {
    background-color: var(--accent-color);
}

/* כפתור חזרה (Pill shape) */
.back-btn-wrapper {
    text-align: center;
    margin: 40px 0;
}

.back-btn-pill {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 14px 45px;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: 0.3s ease all;
}

.back-btn-pill:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* פוטר */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--border-color);
    color: #888;
    font-size: 0.95rem;
}

footer p {
    margin-bottom: 5px;
}

footer a {
    color: var(--accent-color) !important;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* רספונסיביות לנייד */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .product-image { height: 160px; }
    .product-title { font-size: 0.85rem; }
    .main-header h1 { font-size: 1.8rem; }
    .back-btn-pill { padding: 12px 35px; font-size: 1rem; }
}
.product-image:not(:has(img))::before{content:"🛍️";font-size:3rem;opacity:.5}
