body {
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}

h1 {
    color: #333;
    text-align: center;
}

p {
    color: #666;
    line-height: 1.6;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}



.product {
    border: 1px solid #ccc;
    margin: 20px;
    padding: 10px;
    display: inline-block;
    width: 200px;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.product-details {
    
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.product-images {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}

.main-image {
    flex: 2;
    margin-right: 10px;
}

.main-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.thumbnail-images {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.thumbnail-images img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer; /* يجعل الصور المصغرة قابلة للنقر */
}
 }
        
        .product-name {
            font-size: 15px; /* تعيين حجم الخط إلى 15 بكسل */
        }
		
.product-details h1 {
    color: #333;
}

.product-details p {
    font-size: 18px;
    margin: 10px 0;
}

.product-details form {
    margin-top: 20px;
}

.product-details label {
    margin-right: 10px;
}

.product-details input[type="number"] {
    width: 50px;
    margin-right: 10px;
}

.product-details input[type="submit"] {
    background-color: #28a745;
    color: white;
    border: none;
  
    border-radius: 5px;
    cursor: pointer;
}

.product-details input[type="submit"]:hover {
    background-color: #218838;
}

/* تحسين التوافق مع الهواتف */
@media (max-width: 768px) {
    .product-images {
        flex-direction: column;
    }

    .main-image {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .thumbnail-images {
        flex-direction: row;
        justify-content: center;
    }

    .thumbnail-images img {
        margin-bottom: 0;
        margin-right: 10px;
    }
}
