/* ============================================
   FOUBOUFFE HEADER - Modern Responsive Header
   Isolated with .fbf-header prefix
   ============================================ */

/* ============================================
   SECTIONS — No wrapper, each section is independent.
   position:sticky works because each section is a direct
   child of the scroll container (body), not a small wrapper.
   sticky-bars.js adds classes for hide-on-scroll behavior.
   ============================================ */

/* Base section — no z-index so non-sticky sections
   stay in normal flow and never overlap sticky ones */
.fbf-section {
    position: relative;
    width: 100%;
}

/* Sticky sections: z-index hierarchy topbar > header > bottombar
   Only sticky sections get z-index — non-sticky ones stay z-index:auto.
   `top` is calculated dynamically by sticky-bars.js (cumulative stacking
   + WP admin bar offset), so we only set top:0 as a safe CSS fallback. */
.fbf-section.fbf-sticky {
    position: sticky;
    top: 0;
}

.fbf-section.fbf-sticky.fbf-section-topbar    { z-index: 999; }
.fbf-section.fbf-sticky.fbf-section-header    { z-index: 998; }
.fbf-section.fbf-sticky.fbf-section-bottombar { z-index: 997; }

/* sticky_hide: JS tracks scroll pixel-by-pixel and updates
   style.top every frame. No CSS transition needed — the
   frame-by-frame updates feel like natural scrolling. */

/* ============================================
   HEADER BASE
   ============================================ */

.fbf-header,
.fbf-header *,
.fbf-header *::before,
.fbf-header *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.fbf-header {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--fbf-header-bg, #ffffff);
    color: var(--fbf-header-text, #1a1a1a);
    width: 100%;
    position: relative;
    
    box-shadow: 0 4px 30px rgb(0 0 0 / 21%);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Scrolled state: JS adds this class for visual feedback */
.fbf-header.fbf-header-scrolled {
    box-shadow: 0 4px 30px rgb(0 0 0 / 21%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
}

/* Inner Container */
.fbf-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 75px;
    gap: 16px;
    flex-wrap: wrap;
}

/* Logo */
.fbf-header-logo {
    flex-shrink: 0;
    order: 1;
}

.fbf-header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.fbf-header-logo img {
    display: block;
    width: auto;
    transition: transform 0.3s ease;
}

.fbf-header-logo a:hover img {
    transform: scale(1.03);
}

.fbf-site-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--fbf-header-accent, #2bb351);
    letter-spacing: -0.5px;
}

/* Desktop Navigation */
.fbf-header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
    order: 2;
}

.fbf-nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.fbf-menu-item {
    position: relative;
    display: flex;
    align-items: center;
}

.fbf-menu-item > a {
    display: block;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fbf-header-text, #1a1a1a);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.fbf-menu-item > a:hover,
.fbf-menu-item.fbf-current > a {
    color: var(--fbf-header-accent, #2bb351);
    background: rgba(43, 179, 81, 0.06);
}

/* Dropdown Toggle */
.fbf-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: var(--fbf-header-text, #1a1a1a);
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.fbf-dropdown-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
}

.fbf-dropdown-toggle:hover {
    color: var(--fbf-header-accent, #2bb351);
}

/* Sub Menu (Dropdown) */
.fbf-sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 2px 10px rgba(0,0,0,0.06);
    padding: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.06);
}

.fbf-menu-item.fbf-has-children:hover > .fbf-sub-menu,
.fbf-menu-item.fbf-has-children.fbf-dropdown-open > .fbf-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fbf-sub-menu .fbf-menu-item > a {
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: none;
    border-radius: 8px;
    color: #333;
}

.fbf-sub-menu .fbf-menu-item > a:hover {
    background: rgba(43, 179, 81, 0.08);
    color: var(--fbf-header-accent, #2bb351);
}

/* Nested sub-menu */
.fbf-sub-menu .fbf-sub-menu {
    top: 0;
    left: 100%;
    margin-left: 4px;
}

/* Header Actions */
.fbf-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    order: 3;
}

.fbf-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: var(--fbf-header-text, #1a1a1a);
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    font-size: 1rem;
    background: none;
    border: none;
    cursor: pointer;
}

.fbf-header-icon:hover {
    background: rgba(43, 179, 81, 0.08);
    color: var(--fbf-header-accent, #2bb351);
    transform: translateY(-1px);
}

.fbf-cart-count {
        position: absolute;
    top: 0px;
    right: -4px;
    background: #db0136;
    color: #fff;
    font-size: 14px;;
    font-weight: 700;
    min-width: 23px;
    height: 23px;
    /* padding: 0 5px; */
    border-radius: 10px;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    /* line-height: 1; */
    /* white-space: nowrap; */
    /* box-sizing: border-box;*/
}

/* Cart count in mobile menu - inline text, not badge */
.fbf-mobile-action-link .fbf-mobile-cart-count {
    position: static;
    background: none;
    color: var(--fbf-header-accent, #2bb351);
    font-size: inherit;
    font-weight: 700;
    min-width: auto;
    height: auto;
    border-radius: 0;
    display: inline;
    line-height: inherit;
    margin-left: 4px;
}

/* CTA Button */
.fbf-header-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--fbf-cta-bg, #2bb351);
    color: var(--fbf-cta-color, #ffffff) !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(43, 179, 81, 0.3);
    white-space: nowrap;
}

.fbf-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(43, 179, 81, 0.4);
    filter: brightness(1.1);
}

/* Mobile Toggle */
.fbf-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    z-index: 10;
    position: relative;
}

.fbf-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 26px;
}

.fbf-hamburger span {
    display: block;
    height: 3px;
    background: var(--fbf-header-text, #1a1a1a);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Mobile Overlay
   IMPORTANT: Must escape the sticky header's stacking context.
   The overlay and menu container use position:fixed and need
   a z-index higher than the sticky header (999999).
*/
.fbf-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fbf-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fbf-mobile-menu-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 100vw;
    height: 100%;
    background: #ffffff;
    z-index: 999999;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.fbf-mobile-overlay.active .fbf-mobile-menu-container {
    transform: translateX(0);
}

.fbf-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.fbf-mobile-logo img {
    display: block;
    width: auto;
}

.fbf-mobile-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: #666;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.fbf-mobile-close:hover {
    background: rgba(0,0,0,0.05);
    color: #333;
}

/* Mobile Nav */
.fbf-mobile-nav {
    padding: 12px 0;
}

.fbf-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fbf-mobile-menu-item {
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.fbf-mobile-menu-link-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fbf-mobile-menu-item > .fbf-mobile-menu-link-wrap > a {
    display: block;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex: 1;
    transition: all 0.2s ease;
}

.fbf-mobile-menu-item > .fbf-mobile-menu-link-wrap > a:hover,
.fbf-mobile-menu-item.fbf-current > .fbf-mobile-menu-link-wrap > a {
    color: var(--fbf-header-accent, #2bb351);
    background: rgba(43, 179, 81, 0.04);
}

.fbf-mobile-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 20px;
    color: #999;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.fbf-mobile-dropdown-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
    color: var(--fbf-header-accent, #2bb351);
}

.fbf-mobile-sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 16px;
    background: rgba(0,0,0,0.02);
}

.fbf-mobile-sub-menu .fbf-mobile-menu-item > .fbf-mobile-menu-link-wrap > a {
    font-size: 0.88rem;
    font-weight: 500;
    text-transform: none;
    padding: 12px 20px;
}

/* Mobile Actions */
.fbf-mobile-actions {
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fbf-mobile-action-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}

.fbf-mobile-action-link:hover {
    background: rgba(43, 179, 81, 0.06);
    color: var(--fbf-header-accent, #2bb351);
}

.fbf-mobile-action-link i {
    width: 20px;
    text-align: center;
}

.fbf-mobile-cta {
    display: block;
    text-align: center;
    padding: 14px 24px;
    background: var(--fbf-cta-bg, #2bb351);
    color: var(--fbf-cta-color, #ffffff) !important;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(43, 179, 81, 0.3);
    transition: all 0.3s ease;
}

.fbf-mobile-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(43, 179, 81, 0.4);
}

/* ============================================
   LANGUAGE SWITCHER - Desktop
   ============================================ */

.fbf-lang-switcher {
    position: relative;
    z-index: 1000;
}

.fbf-lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    cursor: pointer;
    color: var(--fbf-header-text, #1a1a1a);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.fbf-lang-current:hover {
    border-color: var(--fbf-header-accent, #2bb351);
    background: rgba(43, 179, 81, 0.04);
}

.fbf-lang-current[aria-expanded="true"] {
    border-color: var(--fbf-header-accent, #2bb351);
    background: rgba(43, 179, 81, 0.06);
    box-shadow: 0 0 0 3px rgba(43, 179, 81, 0.1);
}

.fbf-lang-flag {
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.fbf-lang-code {
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
}

.fbf-lang-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    opacity: 0.5;
}

.fbf-lang-current[aria-expanded="true"] .fbf-lang-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown */
.fbf-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.06);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.06);
    z-index: 10001;
}

.fbf-lang-dropdown.fbf-lang-dropdown-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.fbf-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
}

.fbf-lang-option .fbf-lang-flag {
    vertical-align: middle;
    flex-shrink: 0;
}

.fbf-lang-option:hover {
    background: rgba(43, 179, 81, 0.06);
    color: var(--fbf-header-accent, #2bb351);
}

.fbf-lang-option.fbf-lang-active {
    background: rgba(43, 179, 81, 0.08);
    color: var(--fbf-header-accent, #2bb351);
    font-weight: 600;
}

.fbf-lang-name {
    flex: 1;
}

.fbf-lang-code-small {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.5;
    letter-spacing: 0.5px;
}

.fbf-lang-check {
    color: var(--fbf-header-accent, #2bb351);
    flex-shrink: 0;
}

/* ============================================
   LANGUAGE SWITCHER - Mobile
   ============================================ */

.fbf-mobile-lang-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 4px;
}

.fbf-mobile-lang-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.fbf-mobile-lang-label i {
    font-size: 1rem;
    color: var(--fbf-header-accent, #2bb351);
}

.fbf-mobile-lang-options {
    display: flex;
    gap: 6px;
}

.fbf-mobile-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #666;
    background: rgba(0,0,0,0.04);
    border: 1.5px solid transparent;
    transition: all 0.25s ease;
}

.fbf-mobile-lang-btn:hover {
    background: rgba(43, 179, 81, 0.06);
    color: var(--fbf-header-accent, #2bb351);
    border-color: rgba(43, 179, 81, 0.2);
}

.fbf-mobile-lang-btn.fbf-mobile-lang-active {
    background: rgba(43, 179, 81, 0.1);
    color: var(--fbf-header-accent, #2bb351);
    border-color: var(--fbf-header-accent, #2bb351);
}

/* ============================================
   HIDE DEFAULT TRANSLATEPRESS SWITCHER
   ============================================ */

.trp-language-switcher-container,
.trp-language-switcher,
#trp-floater-ls,
.trp-ls-shortcode-language,
.trp-ls-shortcode-current-language,
div[class*="trp-language-switcher"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Topbar CSS → assets/css/topbar.css (loaded conditionally per page) */
/* Bottombar CSS → assets/css/bottombar.css (loaded conditionally per page) */

/* ============================================
   LOGIN MODAL
   ============================================ */

.fbf-login-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999999;
    align-items: center;
    justify-content: center;
}

.fbf-login-modal.fbf-modal-open {
    display: flex;
}

.fbf-login-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fbf-login-modal-container {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.fbf-login-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.fbf-login-modal-close:hover {
    background: rgba(0,0,0,0.05);
    color: #333;
}

.fbf-login-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.fbf-login-modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.fbf-login-modal-subtitle {
    color: #888;
    font-size: 0.875rem;
}

.fbf-login-modal-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 2px solid #eee;
}

.fbf-login-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    color: #888;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.fbf-login-tab.active {
    color: var(--fbf-header-accent, #2bb351);
    border-bottom-color: var(--fbf-header-accent, #2bb351);
}

.fbf-tab-content {
    display: none;
}

.fbf-tab-content.active {
    display: block;
}

.fbf-form-group {
    margin-bottom: 16px;
}

.fbf-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.fbf-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

/* Hide browser native password reveal (Edge/Chrome) */
.fbf-form-group input::-ms-reveal,
.fbf-form-group input::-webkit-credentials-auto-fill-button {
    display: none;
}

.fbf-form-group input:focus {
    outline: none;
    border-color: var(--fbf-header-accent, #2bb351);
    box-shadow: 0 0 0 3px rgba(43, 179, 81, 0.1);
}

/* Password toggle eye */
.fbf-form-group--password {
    position: relative;
}

.fbf-form-group--password input {
    padding-right: 42px;
}

.fbf-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(2px);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #999;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fbf-password-toggle:hover {
    color: #555;
}

.fbf-password-toggle svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.fbf-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.8rem;
}

.fbf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.fbf-forgot-password {
    color: var(--fbf-header-accent, #2bb351);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
}

.fbf-forgot-password:hover {
    text-decoration: underline;
}

.fbf-login-submit {
    width: 100%;
    padding: 12px;
    background: var(--fbf-header-accent, #2bb351);
    color: #fff!important;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.fbf-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(43, 179, 81, 0.3);
}

.fbf-login-social-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.fbf-login-social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
}

.fbf-login-social-divider span {
    position: relative;
    background: #fff;
    padding: 0 16px;
    color: #888;
    font-size: 0.8rem;
}

.fbf-login-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fbf-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: #333!important;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.fbf-social-btn:hover {
    border-color: #bbb;
    background: #f9f9f9;
    transform: translateY(-1px);
}

.fbf-social-btn i,
.fbf-social-btn svg {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.fbf-login-error,
.fbf-login-success,
.fbf-form-message-error,
.fbf-form-message-success {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.fbf-login-error,
.fbf-form-message-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.fbf-login-success,
.fbf-form-message-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ============================================
   MY ACCOUNT — Inline login form (replaces WooCommerce default)
   ============================================ */

.fbf-myaccount-login {
    display: flex;
    justify-content: center;
}

.fbf-myaccount-login .fbf-myaccount-container {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.fbf-form-back-link {
    text-align: center;
    margin-top: 20px;
}

.fbf-form-back-link a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.fbf-form-back-link a:hover {
    color: var(--fbf-header-accent, #2bb351);
}

/* WooCommerce notices inside our custom forms */
.fbf-myaccount-login .woocommerce-message,
.fbf-myaccount-login .woocommerce-error,
.fbf-myaccount-login .woocommerce-info {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 16px;
    list-style: none;
}

.fbf-myaccount-login .woocommerce-message {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.fbf-myaccount-login .woocommerce-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.fbf-myaccount-login .woocommerce-info {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.fbf-myaccount-login .woocommerce-error li,
.fbf-myaccount-login .woocommerce-message li {
    list-style: none;
}

/* ============================================
   PASSKEY ENROLLMENT PROMPT
   ============================================ */

.fbf-passkey-prompt-container {
    text-align: center;
    max-width: 380px;
}

.fbf-passkey-prompt-icon {
    margin-bottom: 16px;
    color: var(--fbf-header-accent, #2bb351);
}

.fbf-passkey-prompt-icon svg {
    display: inline-block;
}

.fbf-passkey-prompt-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.fbf-passkey-prompt-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 24px;
}

.fbf-passkey-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fbf-passkey-prompt-activate {
    width: 100%;
}

.fbf-passkey-prompt-already {
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 6px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.fbf-passkey-prompt-already:hover {
    border-color: #888;
    color: #111;
}

.fbf-passkey-prompt-newkey {
    width: 100%;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

.fbf-passkey-prompt-newkey:hover {
    opacity: 0.85;
}

.fbf-passkey-prompt-dismiss-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.fbf-passkey-prompt-later,
.fbf-passkey-prompt-never {
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    color: #555;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    flex: 1;
    text-align: center;
}

.fbf-passkey-prompt-later:hover,
.fbf-passkey-prompt-never:hover {
    background: #e8e8e8;
    border-color: #aaa;
    color: #333;
}

.fbf-passkey-prompt-later:disabled,
.fbf-passkey-prompt-never:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fbf-passkey-prompt-never {
    border-color: #c0392b;
    color: #c0392b;
    background: #fdf2f2;
}

.fbf-passkey-prompt-never:hover {
    background: #f9e0e0;
    border-color: #a93226;
    color: #a93226;
}

.fbf-passkey-prompt-hint {
    font-size: 0.8rem;
    color: #888;
    margin-top: 16px;
    line-height: 1.4;
}

.fbf-passkey-prompt-message {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.fbf-passkey-prompt-message.fbf-msg-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.fbf-passkey-prompt-message.fbf-msg-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.fbf-passkey-prompt-message.fbf-msg-loading {
    background: #f0f4ff;
    color: #4a5568;
    border: 1px solid #c3dafe;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fbf-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #c3dafe;
    border-top-color: #4a5568;
    border-radius: 50%;
    animation: fbf-spin 0.7s linear infinite;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 6px;
}

/* White spinner variant inside buttons */
.fbf-login-submit .fbf-spinner {
    border-color: rgba(255,255,255,0.3);
    border-top-color: #fff;
}

@keyframes fbf-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .fbf-header-nav {
        display: none;
    }

    .fbf-header-cta {
        display: none;
    }

    .fbf-mobile-toggle {
        display: flex;
        align-items: center;
        align-self: stretch;
    }

    .fbf-header-inner {
        min-height: 65px;
        padding: 8px 16px;
        flex-wrap: nowrap;
    }

    /* Touch targets: full header height for each icon */
    .fbf-header-icon,
    .fbf-mobile-toggle {
        align-self: stretch;
        height: auto;
        min-width: 44px;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .fbf-header-inner {
        min-height: 58px;
        padding: 6px 12px;
        gap: 8px;
    }

    .fbf-header-icon {
        font-size: 0.95rem;
    }

    .fbf-lang-current {
        padding: 5px 8px;
        gap: 4px;
    }

    .fbf-lang-code {
        font-size: 0.75rem;
    }

   
}


@media (max-width: 390px) {
   
   

    .fbf-lang-arrow {
        display: none;
    }
}
@media (max-width: 370px) {
   
   

    /*.fbf-lang-switcher {
        display: none;
    }*/
    
    .fbf-account-icon {
      display: none;  
    }
    
}

@media (max-width: 325px) {
   
   

    .fbf-lang-switcher {
        display: none;
    }
    
    
    
}



/* Prevent body scroll when mobile menu is open */
body.fbf-mobile-menu-open {
    overflow: hidden !important;
}

