* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #f4fdf4;
    color: #1a3d1a;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background: #2e8b57;
    border-radius: 5px;
}

header {
    background: linear-gradient(135deg, #2e8b57, #1d5c39);
    padding: 15px 25px;
    color: white;
    font-size: 28px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

header .logo {
    width: auto;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
}

header h1 {
    font-size: 1.8rem;
    margin: 0;
    flex: 1;
    text-align: center;
}

header .menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
    padding: 0;
}

nav {
    display: flex;
    justify-content: center;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav a {
    padding: 15px 20px;
    text-decoration: none;
    color: #1a3d1a;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: #2e8b57;
    transform: translateY(-3px);
}

nav.show {
    display: block;
    flex-direction: column;
    text-align: center;
}

.category-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    background: #e8f8e8;
    padding: 10px 0;
    flex-wrap: wrap;
}

.cat-btn {
    padding: 10px 18px;
    background: #2e8b57;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.cat-btn:hover {
    background: #246b48;
    transform: scale(1.08);
}

.subcategory-bar {
    display: none;
    justify-content: center;
    gap: 15px;
    background: #dff4df;
    padding: 10px;
    animation: fadeIn 0.4s ease;
}

body:has(a[href*="equipment"]:hover) .subcategory-bar {
    display: flex;
}

.sub-btn {
    padding: 8px 15px;
    background: #1d5c39;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: 0.3s;
}

.sub-btn:hover {
    background: #164a2e;
    transform: scale(1.1);
}

.search-container {
    width: 95%;
    margin: 25px auto 15px;
    text-align: center;
}

#search-bar {
    width: 100%;
    max-width: 600px;
    padding: 14px 22px;
    font-size: 16px;
    border-radius: 30px;
    border: 2px solid #2e8b57;
    outline: none;
    transition: all 0.3s ease;
}

#search-bar:focus {
    box-shadow: 0 0 12px rgba(46, 139, 87, 0.3);
}

.product-grid {
    width: 95%;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.product-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 14px rgba(0,0,0,0.1);
    transition: 0.4s;
    animation: fadeUp 0.7s ease forwards;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.15);
}

.product-image img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 10px;
}

.product-details h2 {
    font-size: 18px;
    color: #2e8b57;
    margin-top: 10px;
}

.price {
    display: inline-block;
    margin-top: 8px;
    font-size: 20px;
    font-weight: bold;
    color: #1a3d1a;
}

.add-to-cart {
    margin-top: 12px;
    padding: 10px;
    width: 100%;
    background: #2e8b57;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.add-to-cart:hover {
    background: #246b48;
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 20px;
    background: #2e8b57;
    color: white;
    margin-top: 40px;
    font-size: 16px;
}

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

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

@media (max-width: 900px) {
    header {
        position: relative;
    }
    header .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        order: 3;
    }

    nav {
        display: none;
        position: relative;
        top: 0;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        width: 100%;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        padding: 10px 0;
        z-index: 999;
    }

    nav a {
        padding: 12px 20px;
        text-align: center;
        border-bottom: 1px solid #e0e0e0;
    }

    nav.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
        border: none;
        border-radius: 6px;
    }


    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;
    }
}

@media (max-width: 500px) {
    header {
        font-size: 20px;
        padding: 10px 15px;
        flex-wrap: wrap;
    }

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

    header h1 {
        font-size: 1.1rem;
    }

    .product-image img {
        height: 180px;
    }
}

.notification {
    position: fixed;
    bottom: 80px;
    right: 25px;
    background: #2e8b57;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
    font-weight: 600;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.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); }
}