/* ============================================================
   NAV.CSS — MV Moda Femenina
   Header + Mobile Menu — from MV Maison design
   ============================================================ */

/* ── Header ── */

.mv-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px 20px;
    transition: all 0.35s cubic-bezier(.2,.6,.2,1);
    color: var(--cream);
    max-width: 100%;
}

/* Inner header content limited on ultra-wide screens */
@media (min-width: 1440px) {
    .mv-header {
        padding-left: calc((100vw - 1440px) / 2 + 48px);
        padding-right: calc((100vw - 1440px) / 2 + 48px);
    }
}

/* Mobile: left = burger, right = icons */
.hdr-left {
    display: flex;
    align-items: center;
}

.hdr-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mv-header::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.02) 70%, transparent);
    pointer-events: none;
    transition: opacity 0.35s;
}

.mv-header.solid,
.mv-header.scrolled {
    background: var(--cream);
    color: var(--ink);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px;
}

.mv-header.solid::before,
.mv-header.scrolled::before {
    opacity: 0;
}

/* ── Burger (mobile only) ── */

.hdr-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
    padding: 6px 0;
    color: inherit;
}

.hdr-menu span {
    display: block;
    height: 1px;
    background: currentColor;
    transition: 0.3s;
}

.hdr-menu span:nth-child(1) {
    width: 22px;
}
.hdr-menu span:nth-child(2) {
    width: 14px;
}

/* ── Desktop nav left / right (hidden mobile) ── */

.hdr-nav-left,
.hdr-nav-right {
    display: none;
    gap: 28px;
}

/* ── Cart icon wrapper ── */
.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gold);
    color: var(--ink);
    font-size: 9px;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-feature-settings: 'tnum';
    opacity: 0;
    transition: opacity 0.2s;
}

.cart-badge.visible {
    opacity: 1;
}

.hdr-link {
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0.85;
    transition: opacity 0.2s;
    position: relative;
    padding: 6px 0;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--f-body);
    white-space: nowrap;
}

.hdr-link:hover,
.hdr-link.active {
    opacity: 1;
}

.hdr-link.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: currentColor;
}

/* ── Logo — centered in its grid column ── */

.hdr-logo {
    justify-self: center;
    color: inherit;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
}

.hdr-logo-img {
    height: 26px;
    width: auto;
}

/* ── Icons (search + cart) ── */

.hdr-icons {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: end;
}

.hdr-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
    padding: 4px;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--f-body);
}

.hdr-btn:hover {
    opacity: 0.6;
}

.cart-btn {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Mobile: show icon, hide text */
.cart-label,
.cart-num {
    display: none;
}
.cart-icon {
    display: block;
}

/* Mobile: left search on, right search off */
.hdr-search-mobile {
    display: flex;
    margin-left: 10px;
}
#searchBtn {
    display: none;
}

