body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    background: #f4f9f4;
    color: #2d4a2d;
}

header {
    background: #1b5e20;
    /* fixed height keeps header consistent while logo fills it */
    height: auto;
    min-height: 80px;
    padding: 10px 20px;
    text-align: center;
    color: white;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
}

header .logo {
    width: auto;
    height: 100px;
    background: white;
    padding: 5px;
    border-radius: 5px;
    object-fit: contain;     /* show entire image so text is visible */
    object-position: center; /* center the logo inside header */
    animation: slideIn 1s ease;
    position: static;
    left: auto;
}

header .menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
    position: absolute;
    right: 20px;
}

nav { /* This is the desktop nav */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

nav a {
    text-decoration: none;
    font-weight: bold;
    color: #1b5e20;
    font-size: 17px;
    transition: 0.3s;
    margin: 0 20px;
}

nav a:hover {
    color: #66bb6a;
    transform: scale(1.1);
}

.category-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    background: #e8f5e9;
    padding: 15px;
    border-bottom: 2px solid #c8e6c9;
    animation: fadeIn 1.5s ease;
}

.cat-btn {
    background: #1b5e20;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    text-decoration: none;
    transition: 0.3s;
}

.cat-btn:hover {
    background: #66bb6a;
    transform: translateY(-3px);
}

.subcategory-bar {
    display: none;
    justify-content: center;
    gap: 15px;
    background: #f1fff1;
    padding: 12px;
    border-bottom: 1px solid #c8e6c9;
    animation: fadeIn 0.6s ease;
}

.sub-btn {
    padding: 10px 18px;
    background: #388e3c;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s;
}

.sub-btn:hover {
    background: #66bb6a;
    transform: translateY(-3px);
}

.category-bar:hover + .subcategory-bar {
    display: flex;
}

.hero {
    height: 70vh;
    background: url("https://images.unsplash.com/photo-1538170989343-ce003278e1a3?w=1600") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 50px;
    color: white;
    animation: fadeIn 1.5s ease;
}

.hero h1 {
    font-size: 3.2rem;
    max-width: 700px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 3px 3px 15px rgba(0,0,0,0.5), 1px 1px 3px rgba(0,0,0,0.3);
    animation: slideIn 1s ease;
    margin: 0;
    word-spacing: 0.05em;
}

.hero p {
    font-size: 20px;
    margin-top: 10px;
    animation: slideIn 1.3s ease;
}

.btn {
    margin-top: 20px;
    display: inline-block;
    padding: 14px 30px;
    background: #1b5e20;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    transition: 0.3s;
    animation: slideIn 1.6s ease;
}

.btn:hover {
    background: #66bb6a;
    transform: translateY(-4px);
}

.products {
    text-align: center;
    padding: 50px 20px;
}

.products h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #1b5e20;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 90%;
    margin: auto;
}

.item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #2d4a2d;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
    text-decoration: none;
}

.item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    background: #e8f5e9;
}

footer {
    background: #1b5e20;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.menu-icon {
    display: none;
    font-size: 30px;
    color: #1b5e20;
    cursor: pointer;
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
    animation: popIn 0.8s ease-in-out;
    z-index: 999;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

@keyframes popIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 {
        font-size: 34px;
    }
    .hero p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px;
        gap: 8px;
        justify-content: space-between;
    }

    header .logo {
        width: auto;
        height: 80px;
    }

    header .menu-icon {
        display: block;
    }

    header h1 {
        font-size: 1.2rem;
        margin: 0;
        letter-spacing: 1px;
        flex: 1;
    }

    nav {
        display: none;
        flex-direction: column;
        position: relative; /* Changed from absolute to flow naturally */
        top: 0;
        right: 0;
        background: white;
        width: 100%;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        z-index: 101;
        padding: 10px 0;
    }

    nav.show {
        display: flex;
    }

    nav a {
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid #eee;
        margin: 0;
    }

    .category-bar {
        gap: 10px;
        padding: 10px;
        flex-wrap: wrap;
    }

    .cat-btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .sub-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    header {
        padding: 8px;
        gap: 6px;
    }

    header .logo {
        width: auto;
        height: 70px;
    }

    header h1 {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    nav {
        padding: 8px 10px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 95%;
    }

    .hero {
        height: 50vh;
        padding-left: 15px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .category-bar {
        gap: 8px;
        padding: 8px;
    }

    .cat-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 6px;
        gap: 4px;
    }

    header .logo {
        width: auto;
        height: 60px;
    }

    header h1 {
        font-size: 0.9rem;
        letter-spacing: 0px;
    }

    .category-bar {
        gap: 5px;
        padding: 6px;
        flex-wrap: wrap;
    }

    .cat-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero h1 {
        font-size: 18px;
    }

    .hero {
        padding-left: 10px;
    }
}


footer .legal-links {
    margin-top: 5px;
    font-size: 0.85rem;
}
footer .legal-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 5px;
}
footer .legal-links a:hover {
    text-decoration: underline;
}