* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.navbar {
    background-color: #2c3e50;
    padding: 1rem 0;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}
.product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.product-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}
.product-price {
    font-size: 1.3rem;
    color: #27ae60;
    margin: 0;
    z-index: 2;
    position: relative;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.product-card {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.product-card:hover {
    transform: translateY(-5px);
}

.product-card img X{
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 4px;
    background: #f8f9fa;
}
.product-card h3 {
    padding: 1rem;
    font-size: 1.2rem;
}

.product-card p {
    padding: 0 1rem;
    color: #666;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #27ae60;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 0.5rem;
}

.sale-price {
    color: #e74c3c;
}
.btn-view {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
}

.btn, .add-to-cart {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin: 1rem;
    transition: background 0.3s;
}
.btn-add-cart {
    padding: 8px 16px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
.btn:hover, .add-to-cart:hover {
    background: #2980b9;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* התאמות למסכים גדולים (מחשבים) */
@media (min-width: 1400px) {
    .navbar .container {
        max-width: 1400px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .product-card {
        padding: 20px;
    }
    
    .product-card img {
        height: 250px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .product-card img {
        height: 220px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
