body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header, main, footer {
    padding: 20px;
    margin: 0 auto;
    max-width: 1000px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 20px;
}

header h1 {
    text-align: center;
    color: #333;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.image-placeholder, .image-gallery img {
    width: calc(50% - 10px); /* Two images per row with gap */
    max-width: 200px; /* Max width for larger screens */
    height: auto;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    aspect-ratio: 1 / 1; /* Maintain square aspect ratio for placeholders */
}

.cta-button {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #f0c14b; /* Amazon-like yellow */
    color: #111;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    text-align: center;
    border: 1px solid #a88734;
}

.cta-button:hover {
    background-color: #e4b343;
}

.accordion-item {
    margin-bottom: 10px;
}

.accordion-header {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
    border-radius: 4px;
}

.active, .accordion-header:hover {
    background-color: #ccc;
}

.accordion-content {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border: 1px solid #ddd; /* Add border to content for better separation */
    border-top: none;
}

.accordion-content p {
    margin: 15px 0;
}

footer {
    text-align: center;
    font-size: 0.9em;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .image-placeholder, .image-gallery img {
        width: 100%; /* Full width for smaller screens */
    }
    header, main, footer {
        padding: 10px;
    }
    .card {
        padding: 15px;
    }
}


/* Product Gallery Styles */
.product-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Increased gap for better spacing between items */
    justify-content: center;
    margin-bottom: 20px;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: calc(50% - 20px); /* Two items per row for medium screens, accounts for gap. (20px gap / 2 items = 10px per item from gap for width calculation) */
    max-width: 220px; /* Max width for each product item */
    background-color: #f9f9f9; /* Light background for each item card */
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 10px; /* Add some bottom margin for wrapped items */
}

.product-item img {
    width: 100%; /* Make image responsive within the item */
    max-width: 180px; /* Consistent max image width, allowing for padding */
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px; /* Space between image and button */
}

.product-item .cta-button {
    margin-top: auto; /* Pushes button to bottom if items have varying text height above */
    padding: 8px 15px; /* Slightly smaller button for product items */
    width: 90%; /* Make button take more width of the item card */
}

/* Responsive adjustments for product gallery */
@media (max-width: 768px) { /* For tablets */
    .product-item {
        width: calc(50% - 15px); /* Maintain two columns, adjust gap if needed */
    }
}

@media (max-width: 600px) { /* For mobile phones */
    .product-item {
        width: 100%; /* Single column on small screens */
        max-width: 300px; /* Max width for single column items */
    }
}

