:root {
    --primary-color: #2563eb;
    --dark-text: #1f2937;
    --light-bg: #f9fafb;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--dark-text); line-height: 1.6; background: var(--light-bg); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* Header & Nav */
.main-header { background: var(--white); padding: 1rem 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; letter-spacing: -1px; }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links li a:hover { color: var(--primary-color); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-content { 
    position: absolute; top: 100%; left: 0; background: var(--white); 
    min-width: 160px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); 
    display: none; list-style: none; padding: 10px 0;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content li a { padding: 10px 20px; display: block; }

/* Hero & Search */
.hero-section { padding: 80px 0; text-align: center; background: #fff; }
.search-form { display: flex; max-width: 600px; margin: 0 auto 30px; border: 2px solid #ddd; border-radius: 50px; overflow: hidden; }
.search-form input { flex: 1; padding: 15px 25px; border: none; outline: none; font-size: 1rem; }
.search-form button { padding: 0 30px; background: var(--primary-color); color: white; border: none; cursor: pointer; font-weight: 600; }
h1 { font-size: 2.5rem; margin-bottom: 15px; }
.hero-section p { max-width: 700px; margin: 0 auto; color: #666; }

/* Product Grid */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px; padding: 60px 0; 
}
.product-card { background: white; border-radius: 12px; overflow: hidden; transition: transform 0.3s ease; border: 1px solid #eee; }
.product-card:hover { transform: translateY(-5px); }
.product-card img { width: 100%; height: auto; display: block; }
.product-card h3 { padding: 15px 20px 5px; font-size: 1.2rem; }
.product-card p { padding: 0 20px 20px; font-size: 0.9rem; color: #555; }

/* Footer */
.main-footer { background: #111; color: #ccc; padding: 60px 0 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: white; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--primary-color); }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; font-size: 0.85rem; }
.bottom-flex { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Mobile Menu */
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.menu-toggle span { width: 25px; height: 3px; background: var(--dark-text); border-radius: 2px; }

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .navbar { 
        display: none; position: absolute; top: 100%; left: 0; width: 100%; 
        background: white; border-top: 1px solid #eee; 
    }
    .navbar.active { display: block; }
    .nav-links { flex-direction: column; padding: 20px; gap: 15px; }
    .dropdown-content { position: static; box-shadow: none; padding-left: 20px; }
    h1 { font-size: 1.8rem; }
}


/* Smooth Search Transitions */
.product-card {
    transition: opacity 0.4s ease, transform 0.3s ease;
}

/* No Results Message (Add this div in HTML main section if needed) */
.no-results {
    display: none;
    text-align: center;
    padding: 50px;
    grid-column: 1 / -1;
    font-size: 1.2rem;
    color: #888;
}

/* Responsive Search Bar tweak */
@media (max-width: 480px) {
    .search-form {
        flex-direction: column;
        border-radius: 15px;
    }
    .search-form button {
        padding: 12px;
        width: 100%;
    }
}

.nnn-logo-wrapper {
    display: inline-block;
    padding: 10px;
    vertical-align: middle;
}

.nnn-logo-link {
    display: block;
    text-decoration: none;
}

.nnn-logo-img {
    /* Adjust height to fit your navbar (e.g., 50px to 80px) */
    height: 60px; 
    width: auto; /* Maintains aspect ratio */
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Optional: Slight lift effect when hovering */
.nnn-logo-link:hover .nnn-logo-img {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .nnn-logo-img {
        height: 45px;
    }
}