body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 4px;
}

.product-card h3 {
    font-size: 1.2rem;
    margin: 10px 0;
}

.product-card p {
    font-size: 1.1rem;
    color: #007bff;
    font-weight: bold;
}

.product-card a {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

.product-card a:hover {
    background-color: #0056b3;
}

footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #333;
    color: #fff;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Product Detail Page Specifics */
.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-detail img {
    max-width: 100%;
    flex: 1 1 300px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-info {
    flex: 2 1 400px;
}

.product-info h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

.product-info .price {
    font-size: 1.8rem;
    color: #007bff;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-info .description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.payment-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.payment-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.payment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.payment-form input[type="text"],
.payment-form input[type="number"],
.payment-form input[type="email"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.payment-form button {
    background-color: #28a745;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
}

.payment-form button:hover {
    background-color: #218838;
}

/* Utility classes */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}
