.affiliate-products-section {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0 auto 2.5rem auto; /* Centered with bottom margin */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(22, 33, 62, 0.5);
    max-width: 1200px;
}

.affiliate-products-section h2 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-gold);
    text-align: center;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.product-item {
    background-color: var(--bg-dark-secondary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4), 0 0 15px rgba(var(--accent-purple-rgb), 0.2);
}

.product-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid var(--accent-purple);
}

.product-details {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-details h3 {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: var(--text-heading);
    margin: 0 0 0.5rem 0;
}

.product-details p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    flex-grow: 1;
    color: var(--text-light);
    opacity: 0.9;
}

.product-button {
    width: 100%;
    padding: 8px 16px; /* Slightly smaller padding */
    font-size: 0.9rem; /* Smaller font size */
}

.amazon-disclosure {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-light);
    opacity: 0.7;
    text-align: center;
    margin-top: 1rem;
}

/* New styles for the static banners that replaced the QR codes */
.static-banners-container {
    display: flex;
    justify-content: center;
    gap: 2rem; /* Space between the banners */
    flex-wrap: wrap; /* Allows banners to stack on small screens */
    max-width: 900px;
    margin: 2rem auto 3rem auto; /* Top, horizontal, bottom margin */
    padding: 0 1rem; /* Padding on the sides */
}

.static-banner-item {
    flex: 1; /* Allows items to grow */
    min-width: 280px; /* Minimum width before stacking */
    max-width: 400px; /* Maximum width of each banner */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden; /* Ensures image respects the border radius */
    transition: transform 0.2s ease;
}

.static-banner-item:hover {
    transform: scale(1.03);
}

.static-banner-item img {
    width: 100%;
    height: auto;
    display: block; /* Removes any unwanted space below the image */
}

@media (max-width: 640px) {
    .static-banners-container {
        flex-direction: column; /* Stack banners vertically */
        align-items: center; /* Center them when stacked */
        gap: 1.5rem;
    }
}