/* General Reset */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Container */
.product-container {
    width: 80%;
    margin: 20px auto;
    max-width: 1200px;
    margin-top: 115px;
}

/* Title */
.product-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Product Content Layout */
.product-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
}

/* Product Image */
.product-image {
    width: 100%;
    max-width: 500px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

/* Product Details */
.product-details {
    flex: 1;
    min-width: 300px;
}

/* Price */
.price {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Order Button */
.order-request {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    display: block;
}

.order-request:hover {
    background-color: #0056b3;
}

/* Details Table */
.details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.details-table td {
    padding: 8px 10px;
    border: 1px solid #ddd;
}

/* Product Description */
.product-description {
    margin-top: 30px;
    text-align: center;
}

.product-description h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.product-description p {
    margin: 10px 0;
}

.product-description a {
    color: #007bff;
    text-decoration: none;
}

.product-description a:hover {
    text-decoration: underline;
}

/* Add media query for mobile responsiveness */
@media (max-width: 1200px) {
    .product-content {
        flex-direction: column;
        align-items: center;
    }

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

    .product-details {
        min-width: 100%;
        text-align: center;
    }
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-top: 10px;
}

form input, form textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    margin-top: 15px;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #0056b3;
}
