/**
 * Abhirang Store - Navigation Bar
 */

/* =============================================================================
   Navbar
   ============================================================================= */

.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

/* Logo */
.logo {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.2s ease;
}

.logo:hover {
    color: #4b5563;
}

.logo-image {
    height: 40px;
    width: auto;
    transition: opacity 0.2s ease;
}

.logo:hover .logo-image {
    opacity: 0.8;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
    position: relative;
    padding: 4px 0;
}

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

.nav-links a.active {
    color: #1a1a1a;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1a1a1a;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    gap: 24px;
    align-items: center;
}

/* Navbar Search */
.search-box {
    position: relative;
}

.search-box form {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 40px 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    width: 280px;
    font-size: 14px;
    background: #f9fafb;
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.search-box input::placeholder {
    color: #9ca3af;
}

.search-box input:focus {
    outline: none;
    border-color: #d1d5db;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.search-box button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #9ca3af;
    font-size: 14px;
    transition: color 0.2s ease;
}

.search-box button:hover {
    color: #6b7280;
}

.search-box input:focus ~ button {
    color: #6b7280;
}

/* Nav Icons */
.nav-icon {
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon:hover {
    color: #1a1a1a;
}

/* Cart Badge */
.nav-cart {
    position: relative;
}

.nav-cart .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ff3366 0%, #ff66b3 100%);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

/* =============================================================================
   Mobile Navigation
   ============================================================================= */

@media (max-width: 1024px) {
    .search-box input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .search-box {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-actions {
        gap: 16px;
    }
}

/* Mobile Menu Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 999;
    overflow-y: auto;
    padding: 24px;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav .mobile-nav-links {
    list-style: none;
    margin-bottom: 24px;
}

.mobile-nav .mobile-nav-links li {
    border-bottom: 1px solid #e5e7eb;
}

.mobile-nav .mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.mobile-nav .mobile-nav-links a i {
    width: 20px;
    color: #6b7280;
}

.mobile-nav .mobile-search {
    margin-bottom: 24px;
}

.mobile-nav .mobile-search form {
    display: flex;
    gap: 8px;
}

.mobile-nav .mobile-search input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
}

.mobile-nav .mobile-search button {
    padding: 14px 16px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}
