/* Dark theme styling for the store page */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1e1e1e;
    color: #f5f5f5;
}

h1 {
    text-align: center;
    color: #f5f5f5;
    margin: 20px 0;
}

#products {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.product {
    background-color: #2e2e2e;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 20px;
    margin: 10px 0;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start; /* Added to align items at the top */
}

.product-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
}

.product-image img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    cursor: pointer;
}

.product-image p {
    margin-top: 10px;
    font-size: 1.2em;
    color: #f5f5f5;
}

.product-details {
    flex: 2;
    margin-right: 20px;
}

.product-details h2 {
    color: #f5f5f5;
    font-size: 1.5em;
    margin: 0 0 10px;
}

.product-details p {
    color: #d3d3d3;
    font-size: 1.2em;
    margin: 0;
    word-wrap: break-word;
}

.product-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: flex-start; /* Added to align items at the start */
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.product-form label {
    color: #f5f5f5;
}

.product-form input[type="text"],
.product-form input[type="email"],
.product-form input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #3e3e3e;
    color: #f5f5f5;
}

.product-form input[type="submit"] {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-start; /* Added to align the button at the start */
}

.product-form input[type="submit"]:hover {
    background-color: #0056b3;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}
