:root {
    --primary: #2d5a27;
    --accent: #f4aeba;
    --text: #333;
    --light: #fefefe;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: var(--text);
    background-color: #faf9f6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    margin-left: 20px;
}

/* Hero Section */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('https://images.unsplash.com/photo-1519336367661-eba9c1dfa5a9?auto=format&fit=crop&w=1200');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h1 { font-family: 'Playfair Display', serif; font-size: 3rem; margin-bottom: 10px; }

/* Product Grid */
.container { padding: 50px 5%; }
.section-title { text-align: center; font-family: 'Playfair Display', serif; margin-bottom: 40px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.card:hover { transform: translateY(-10px); }

.badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--accent);
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 5px;
}

.card img { width: 100%; height: 300px; object-fit: cover; }
.card-info { padding: 20px; text-align: center; }
.price { color: var(--primary); font-weight: 600; font-size: 1.2rem; }

.add-to-cart {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

/* --- Base Styles (Mobile First) --- */
.hero h1 {
    font-size: 2rem; /* Smaller text for mobile */
}

.hero {
    height: 50vh; /* Shorter hero on mobile */
}

/* --- Tablet & Desktop View (Screens wider than 768px) --- */
@media screen and (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero {
        height: 70vh;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 20px;
    }
}

/* --- Large Desktop View (Screens wider than 1024px) --- */
@media screen and (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on desktops */
        max-width: 1200px;
        margin: 0 auto;
    }

    .navbar {
        padding: 1rem 10%; /* More breathing room on big screens */
    }
}

/* --- Small Mobile Tweak (Screens smaller than 480px) --- */
@media screen and (max-width: 480px) {
    .nav-links a {
        display: none; /* Hide links like "Occasions" to save space */
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .card img {
        height: 250px; /* Slimmer images for small screens */
    }
}
