/* =============================================
   HEADER — login button, account dropdown, mobile menu
============================================= */
.header-login-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--clr-primary, #FF6B9D);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .15s;
}
.header-login-btn:hover { opacity: .88; }
.header-login-btn .login-icon { font-size: 1rem; }

/* Under 480px: hide text, show icon only to prevent header overflow */
@media (max-width: 479px) {
    .header-login-btn { padding: 7px 10px; }
    .header-login-btn .login-text { display: none; }
}
@media (min-width: 480px) {
    .header-login-btn .login-icon { display: none; }
}

/* Account dropdown (fixed, JS-positioned) */
.header-account-wrap { position: relative; }
.account-dropdown {
    position: fixed;
    min-width: 180px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0,0,0,.14);
    padding: 6px;
    z-index: 9999;
    display: none;
    flex-direction: column;
    gap: 2px;
}
.account-dropdown:not([hidden]) { display: flex; }
.account-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--clr-text, #333);
    text-decoration: none;
    transition: background .15s;
    white-space: nowrap;
}
.account-dropdown a:hover { background: var(--clr-bg, #fef9f0); }
.acc-dd-icon { font-size: 1rem; }

/* =============================================
   TOP BAR — sticky
   Using sticky (not fixed) so it works correctly
   inside iframes, Local by Flywheel previews, and
   any CSS-transformed container where position:fixed
   would attach to the wrong containing block.
============================================= */
:root { --topbar-h: 36px; }
@media (max-width: 479px) { :root { --topbar-h: 32px; } }

.top-bar {
    position: sticky;
    top: 0;
    inset-inline: 0;
    z-index: 201;
    height: var(--topbar-h);
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
    color: #d0d8e8;
    font-size: .76rem;
    line-height: 1;
    border-bottom: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.top-bar .container { padding-block: 0; }
.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--topbar-h);
    gap: 12px;
}

/* Push sticky header below the sticky top bar */
.site-header { top: var(--topbar-h) !important; }

/* WordPress admin bar:
   WP sets html { margin-top: 32px/46px } which naturally
   pushes sticky elements below the fixed WP bar — no
   manual top offsets needed when using position: sticky. */
body.admin-bar .site-header { top: var(--topbar-h) !important; }

/* WhatsApp number */
.top-bar-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: .8rem;
    white-space: nowrap;
    color: #4ade80;
    direction: ltr;
    letter-spacing: .02em;
    background: rgba(74,222,128,.08);
    border: 1px solid rgba(74,222,128,.2);
    padding: 4px 10px;
    border-radius: 999px;
    transition: background .15s, opacity .15s;
}
.top-bar-whatsapp:hover { background: rgba(74,222,128,.16); opacity: .9; }
.top-bar-whatsapp svg   { flex-shrink: 0; }

/* Social icons */
.top-bar-social {
    display: flex;
    align-items: center;
    gap: 14px;
}
.top-bar-social-link {
    display: flex;
    align-items: center;
    color: #94a3b8;
    text-decoration: none;
    transition: color .15s, transform .15s;
}
.top-bar-social-link:hover { color: #fff; transform: translateY(-1px); }

/* Mobile: number always visible, social stays */
@media (max-width: 479px) {
    .top-bar-whatsapp { padding: 3px 8px; font-size: .75rem; }
    .top-bar-social   { gap: 10px; }
}

/* Mobile menu overlay */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 998;
}
.menu-overlay.is-open { display: block; }

/* Mobile nav close button */
.mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--clr-border, #eee);
    font-weight: 700;
    font-size: .9rem;
}
.mobile-nav-close button {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--clr-border, #eee);
    background: transparent;
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
