/* Header */
.navbar-theme {
    /* Make navbar translucent so the site's global gradient shows through (matches landing) */
    background-color: transparent;
    backdrop-filter: blur(8px);
    /* subtle bottom border to separate navbar from content on light sections */
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link-theme {
    color: hsl(220, 15%, 10%, 0.7);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link-theme:hover {
    color: var(--color-foreground);
}

/* Navbar layout: logo left, search center, cart+profile right */
.navbar-nav-layout {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

/* Search bar - balanced size, centered in available space */
.navbar-search-wrapper {
    flex: 1;
    min-width: 0;
    max-width: 50%;
    margin-inline: auto;
}

.navbar-search-wrapper .d-flex {
    width: 100%;
}

.navbar-search-wrapper .form-control {
    flex: 1;
    min-width: 0;
}

.navbar-right-actions {
    flex-shrink: 0;
}

.navbar-search {
    height: 44px;
    padding-left: 3rem;
    padding-right: 1rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.navbar-search:focus {
    background-color: #fff;
    border-color: rgba(13, 110, 253, 0.4);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    outline: none;
}

.navbar-search::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.5);
    transition: color 0.2s ease;
    pointer-events: none;
}

.navbar-search-wrapper:focus-within .search-icon {
    color: #0d6efd;
}