@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f5f0;
    color: #333;
}

header {
    background-color: #2e5d34;
    color: #fff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

header .logo span {
    margin-left: 8px;
}

nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a.active,
nav a:hover {
    color: rgb(184, 155, 116);
}

.products {
    padding: 40px 5%;
    text-align: center;
}

.products h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}
.products h2 {
    font-size: 1.5rem;
    margin: 30px 0 20px;
    border-bottom: 2px solid #a3c47d;
    display: inline-block;
    padding-bottom: 5px;
    color: #2e5d34;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    margin: 10px 0 5px;
     color: #2e5d34;
}

.product-card p {
    font-size: 0.9rem;
    padding: 0 10px;
    color: #666;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    animation: pulse 1.5s infinite;
}

.badge.wishlist {
    background-color: #a3c47d;
}

.badge.outofstock {
    background-color: #e74c3c;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}




@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
     .products h1 {
        font-size: 1.5rem;
    }
    .products h2 {
        font-size: 1.2rem;
    }
}


@media (min-width: 1024px) {
  .hero {
    padding: 7rem 2rem;
  }
}



footer {
  background-color: #2e5d34;
  text-align: center;
  padding: 1rem;
  color:#fff;
  margin-top: 2rem;
}


@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 7rem 2rem;
  }
}

footer {
    background-color: #2e5d34;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 1rem;
    margin-top: 40px;
}

footer p {
    margin: 0;
}

