body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

input[type="text"] {
    padding: 8px;
    width: 300px;
}

button {
    padding: 8px 16px;
}

.results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
}

.product-card img {
    max-width: 100%;
    height: auto;
}

/* Styles de base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.hero-section {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }

}
.clamp-2-lines {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: clip !important; /* force l’annulation des ... */
  white-space: normal;
  line-height: 1.2rem;
  max-height: 2.4rem;
}
.price-highlight {
            font-size: 1.25rem;
            font-weight: 700;
            color: #2c3e50;
            background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            display: inline-block;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .original-price {
            text-decoration: line-through;
            font-size: 0.9rem;
            color: #95a5a6 !important;
        }
        
        .hover-effect {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .hover-effect:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
        }
        
        .category-card {
            transition: all 0.3s ease;
        }
        
        .category-card:hover {
            background-color: #f8f9fa;
            transform: scale(1.03);
        }
        
        .discount-badge {
            font-size: 0.8rem;
            font-weight: 600;
            padding: 0.25rem 0.5rem;
        }
        
        .clamp-2-lines {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .store-badge {
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.25rem 0.5rem;
        }
        
        .tunisianet-badge {
            background-color: #3498db;
            color: white;
        }
        
        .mytek-badge {
            background-color: #e74c3c;
            color: white;
        }
        
        .spacenet-badge {
            background-color: #f39c12;
            color: white;
        }

