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

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 50px;
    padding: 20px 25px;
    border-radius: 20px;
    background: rgba(241, 233, 223, 0.55);
    backdrop-filter: blur(14px);
    box-shadow: 0 2px 8px rgba(7, 7, 7, 0.4);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.category-header .icon {
    margin-right: 10px;
}

.arrow {
    transition: transform 0.3s ease;
}

.nav-links.active .arrow {
    transform: rotate(180deg);
    /* Flip arrow when open */
}

.category-items {
    display: none;
    flex-direction: column;
    gap: 8px;
}

.nav-links.active .category-items {
    display: flex;
}

.category-items a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-items a:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 5px 8px;
}

.nav-links a:hover {
    color: #e9a11b;
}

#mainContainer {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 60px 0 25px;
    color: #111827;
    letter-spacing: 0.5px;
    position: relative;
}

h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #e9a11b, #46eb0a);
    margin: 10px auto 0;
    border-radius: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
    justify-content: center;
}

.product-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    transition: all 0.35s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease;
}

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

.details {
    padding: 18px 20px 25px;
    text-align: center;
}

.details h3 {
    margin-bottom: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

.details h4 {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 500;
}

.details h2 {
    color: #e9a11b;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(90deg, #e9a11b, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* subtle floating animation on hover */
.product-card:hover .details h3 {
    color: #e9a11b;
    transition: color 0.3s ease;
}
.details {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.buy-now {
    background: #25D366;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.buy-now:hover {
    background: #1da851;
}

.buy-now i {
    font-size: 18px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    h1 {
        font-size: 1.6rem;
    }

    .product-card img {
        height: 220px;
    }

    nav {
        flex-direction: column;
        padding: 20px 25px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    #mainContainer {
        width: 95%;
    }

    .details h2 {
        font-size: 1.1rem;
    }
}