/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    background: #1a1a1a;
    color: white;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* Header */
header {
    background: #4e2bbf;
    padding: 20px;
    width: 100%;
}

h1 {
    color: white;
    font-size: 2.5rem;
    margin: 0;
}

/* Main Content Layout */
.main-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    gap: 20px;
    padding: 20px;
}

/* Deal Section */
.deal-container {
    background: #333;
    padding: 20px;
    width: 800px;
    border-radius: 12px;
    border: 3px solid #4e2bbf; /* Purple outline */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    flex-grow: 1;
}

/* Image Gallery Layout */
.image-gallery {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.main-image img {
    width: 512px;
    height: 512px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #444;
}

/* Thumbnail Images */
.thumbnail-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #666;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.thumbnail:hover {
    transform: scale(1.1);
    border-color: goldenrod;
}

.description-container {
    background: #404040; /* Slightly lighter than the main background */
    padding: 15px 20px;
    border-radius: 12px;
    max-width: 90%;
    margin: 20px auto;
}

#deal-description {
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

#deal-description ul {
    padding-left: 20px;
    margin: 10px 0;
}

#deal-description li {
    margin-bottom: 5px;
}

#deal-description p {
    margin-bottom: 10px;
}

.deal-info {
    text-align: center;
    margin-top: 15px;
}

.deal-info ul,
.deal-info ol {
    text-align: left;
    padding-left: 20px;
    margin: 10px 0;
}

.deal-info li {
    margin-bottom: 5px;
}

.deal-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: goldenrod;
}

.buy-button {
    background: #4e2bbf;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

.buy-button:hover {
    background: #8446f9;
}

/* Sidebar - Related Offers */
.sidebar {
    background: #222;
    padding: 15px;
    width: 350px;
    border-radius: 12px;
    border: 3px solid #4e2bbf; /* Purple outline */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Subtle shadow */
}


.sidebar h3 {
    color: goldenrod;
}

.affiliate-offer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px; /* Adds spacing between store logos */
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.affiliate-offer img {
    width: 100%;
    max-width: 160px;  /* Ensures banners and store logos fit properly */
    height: auto;
    border-radius: 10px;
    border: 2px solid #444;
    transition: transform 0.2s ease-in-out;
}

.affiliate-offer img:hover {
    transform: scale(1.05);
    border-color: goldenrod; /* Brings back the hover effect from old CSS */
}

.affiliate-offer .store-name {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-top: 5px;
}

.affiliate-offer:hover .store-name {
    color: goldenrod; /* Hover color effect for text */
}

.affiliate-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.affiliate-disclosure {
    font-size: 14px;
    color: #bbb;
    text-align: center;
    margin-top: 10px;
}

/* Responsive Layout */
@media (max-width: 850px) {
    .image-gallery {
        flex-direction: column;
    }
    .thumbnail-container {
        flex-direction: row;
        justify-content: center;
    }
    .thumbnail {
        width: 80px;
        height: 80px;
    }
    .main-image img {
        width: 100%;
        height: auto;
    }
}

/* Footer */
footer {
    background: #4e2bbf;
    padding: 15px;
    width: 100%;
    margin-top: auto;
    text-align: center;
}

footer a {
    color: #c2a8ff;
    text-decoration: none;
}

footer a:hover {
    color: #e0c8ff;
    text-decoration: underline;
}

footer p {
    color: white;
}