/* --- Global Styles & Variables --- */
:root {
    --primary-color: #E91E63; /* A vibrant pink like the ad text */
    --secondary-color: #0d47a1; /* A deep blue from the ad ribbon */
    --accent-color: #ff9800; /* The orange from the '+' logo */
    --dark-color: #212121;
    --light-color: #ffffff;
    --grey-color: #f4f4f4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: var(--light-color);
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

section {
    padding: 4rem 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background: #c2185b; /* Darker pink */
}

.btn-secondary {
    background: var(--grey-color);
    color: var(--dark-color);
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e0e0e0;
}


/* --- Header & Navigation --- */
header {
    background: var(--light-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo-plus {
    color: var(--accent-color);
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 2rem;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 600;
    padding-bottom: 5px;
    position: relative;
}

.main-nav a.active, .main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
}


/* --- Hero Section --- */
.hero {
    background-color: var(--secondary-color); /* Fallback color */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 80vh;
    color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto 2rem;
}


/* --- Featured Products Section --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.view-all-link {
    text-align: center;
    margin-top: 3rem;
}

.view-all-link a {
    font-weight: 600;
    font-size: 1.1rem;
}


/* --- Why Us Section --- */
.why-us {
    background: var(--grey-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.feature i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}


/* --- Footer --- */
footer {
    background: var(--dark-color);
    color: #a0a0a0;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-about h3 {
    color: var(--light-color);
    margin-bottom: 0.5rem;
}

.footer-links h4, .footer-social h4 {
    color: var(--light-color);
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a, .footer-social a {
    color: #a0a0a0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--light-color);
    padding-left: 5px;
}

.footer-social a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 1rem;
    font-size: 0.9rem;
}


/* --- Responsive (Mobile) Styles --- */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--light-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none; /* Hidden by default */
        flex-direction: column;
    }

    .main-nav.active {
        display: flex; /* Shown when active */
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul li {
        margin: 0;
        text-align: center;
    }

    .main-nav ul li a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--grey-color);
    }
     .main-nav a::after {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-social {
        margin-top: 1rem;
    }
}

/* --- Styles for Products Page --- */

.page-header {
    background: var(--grey-color);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
}

.product-listing {
    padding: 4rem 0;
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--light-color);
    color: var(--dark-color);
    border: 1px solid #ddd;
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--grey-color);
    border-color: #ccc;
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

/* Add a transition to the product cards for the filter */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
}

/* Animation for hiding/showing */
.product-card.hide {
    transform: scale(0.8);
    opacity: 0;
    display: none; /* We will toggle display with JS */
}