/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0077b6; /* Professional Blue */
    --secondary-color: #03045e; /* Deep Navy */
    --accent-color: #ffc300; /* Bright Yellow for CTAs */
    --bg-color: #f8f9fa;
    --text-color: #343a40;
    --card-bg: #ffffff;
    --font-main: 'Roboto', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: white;
    text-align: center;
    padding: 4rem 1rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
}

.hero-content .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* --- Main Content & Product Cards --- */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    margin-bottom: 3rem;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem 2rem;
}

.product-info h3 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* --- Price Comparison Section --- */
.price-comparison-section {
    background-color: #f8f9fa;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
}

.price-comparison-section h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.retailer-name {
    font-weight: 500;
    flex-basis: 30%;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-basis: 30%;
    text-align: center;
}

.deal-button {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    text-align: center;
    flex-basis: 30%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.deal-button:hover {
    background-color: #ffd60a;
    transform: scale(1.05);
}

/* --- Footer --- */
footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.affiliate-disclosure {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* --- Responsive Design for Mobile --- */
@media (max-width: 600px) {
    .product-card img { height: 250px; }
    .product-info { padding: 1.5rem; }
    .price-comparison-section { padding: 1.5rem; }

    .price-entry {
        flex-wrap: wrap; /* Allow items to wrap on small screens */
    }
    .retailer-name, .price {
        flex-basis: 45%; /* Take up half the width */
        text-align: left;
    }
    .price { text-align: right; }
    .deal-button {
        flex-basis: 100%; /* Take up the full width on a new line */
        margin-top: 0.5rem;
    }
}