/* style.css - Responsive Design for Mobile-Friendliness */

body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f4f4f9;
    color: #333;
}

.main-header {
    background-color: #3f51b5; /* Primary Color */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* For horizontal menu */
}

.main-nav li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

.content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto; /* Center the content */
}

/* --- Product List Layout (Crucial for 3-per-line and Mobile) --- */

.product-list {
    display: grid;
    gap: 20px;
    /* Default: 1 column for small screens */
    grid-template-columns: repeat(1, 1fr); 
}

@media (min-width: 600px) {
    /* Tablet/Medium Screens: 2 columns */
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    /* Desktop/Large Screens: 3 columns */
    .product-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    text-align: center;
    border: 1px solid #ddd;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* --- Single Product Page Styling --- */

.single-product {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.product-image-large {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

.affiliate-link-btn {
    display: inline-block;
    background-color: #ff9800; /* Action Color */
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.2s;
}

.affiliate-link-btn:hover {
    background-color: #e68900;
}

/* --- Landing Page Styling --- */

.landing-hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #e8eaf6; /* Light background for contrast */
    border-radius: 10px;
    margin-bottom: 30px;
}

.landing-hero h1 {
    font-size: 2.5em;
    color: #3f51b5;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: #ff9800;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: #e68900;
}

.category-overview {
    text-align: center;
    margin-bottom: 40px;
}

.category-links-container {
    display: flex;
    flex-direction: column; /* Stack vertically on small screens */
    gap: 20px;
    margin-top: 20px;
}

.category-link {
    flex: 1;
    text-decoration: none;
    color: white;
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.category-link:hover {
    transform: scale(1.03);
}

/* Backgrounds for visual separation */
.kitchen-bg {
    background-color: #4caf50; /* Green */
}

.baby-bg {
    background-color: #2196f3; /* Blue */
}

.value-proposition {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
}

.value-proposition ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr; /* Default 1 column */
    gap: 15px;
    text-align: left;
}

@media (min-width: 768px) {
    /* Side-by-side categories on wider screens */
    .category-links-container {
        flex-direction: row; 
    }
    
    .value-proposition ul {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    }
}

/* --- Footer Styling --- */

.main-footer {
    background-color: #333;
    color: #bbb;
    text-align: center;
    padding: 20px 20px;
    margin-top: 40px;
    font-size: 0.9em;
}

.main-footer p {
    margin: 5px 0;
}