/* ============================================
   HEADER STYLES
   ============================================ */

/* Skip Link */
.bt-skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--bt-primary);
    color: var(--bt-white);
    border-radius: var(--bt-radius-md);
    clip: auto;
    width: auto;
    height: auto;
}

/* Top Bar */
.bt-topbar {
    background: rgba(var(--bt-dark-rgb), 0.8);
    border-bottom: none;
    padding: 6px 0;
    font-size: var(--bt-fs-xs);
    line-height: 1.8;
}

[data-theme="light"] .bt-topbar {
    background: #eef1f7;
}

.bt-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--bt-space-md);
}

.bt-topbar-left {
    display: flex;
    align-items: center;
    gap: var(--bt-space-lg);
}

.bt-topbar-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--bt-text-secondary);
}

.bt-topbar-social {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
    padding-left: 12px;
    border-left: 1px solid var(--bt-border-color);
}

.bt-topbar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: var(--bt-radius-sm);
    color: #e16b1b;
    transition: all var(--bt-transition-fast);
}

.bt-topbar-social a:hover {
    color: #ff8c42;
    transform: translateY(-1px);
}

.bt-topbar-promo {
    color: var(--bt-accent);
    font-weight: var(--bt-fw-semibold);
}

/* Main Header */
.bt-header {
    position: sticky;
    top: 0;
    z-index: var(--bt-z-header);
    width: 100%;
}

.bt-header-main {
    position: relative;
    padding: 0;
    background: rgba(var(--bt-dark-rgb), 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bt-border-color);
    border-radius: 0;
    transition: all var(--bt-transition-base);
}

[data-theme="light"] .bt-header-main {
    background: rgba(var(--bt-white-rgb), 0.9);
}

.bt-header.bt-scrolled .bt-header-main {
    padding: 0;
    box-shadow: var(--bt-shadow-lg);
}

.bt-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--bt-header-height);
    gap: var(--bt-space-xl);
}

/* Logo */
.bt-logo a {
    display: flex;
    align-items: center;
}

.bt-logo img {
    max-height: var(--bt-logo-height, 45px);
    width: auto;
}

/* Brand Block (Logo + Name + Tagline) */
.bt-brand-block {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.bt-brand-logo {
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: contain;
}

.bt-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.bt-brand-name {
    font-family: var(--bt-font-heading);
    font-weight: var(--bt-fw-extrabold);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.bt-brand-tagline {
    font-weight: var(--bt-fw-normal);
    letter-spacing: 0.02em;
    opacity: 0.85;
    white-space: nowrap;
    margin-top: 1px;
}

/* Footer brand block - slightly larger */
.bt-brand-footer .bt-brand-name {
    font-size: 20px;
}

.bt-brand-footer {
    margin-bottom: var(--bt-space-md);
}

.bt-logo-text {
    font-family: var(--bt-font-heading);
    font-size: var(--bt-fs-xl);
    font-weight: var(--bt-fw-extrabold);
    letter-spacing: -0.02em;
    text-decoration: none;
}

/* Navigation */
.bt-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.bt-nav-list {
    display: flex;
    align-items: center;
    gap: var(--bt-space-xs);
    list-style: none;
    margin: 0;
    padding: 0;
}

.bt-nav-item {
    position: relative;
}

.bt-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    color: var(--bt-text-secondary);
    font-size: var(--bt-fs-sm);
    font-weight: var(--bt-fw-medium);
    text-decoration: none;
    border-radius: var(--bt-radius-md);
    transition: all var(--bt-transition-fast);
    white-space: nowrap;
}

.bt-nav-link:hover,
.bt-nav-item.current-menu-item > .bt-nav-link {
    color: var(--bt-text-primary);
    background: rgba(var(--bt-primary-rgb), 0.08);
}

.bt-nav-item.current-menu-item > .bt-nav-link {
    color: var(--bt-primary);
}

.bt-nav-arrow {
    transition: transform var(--bt-transition-fast);
}

.bt-nav-item:hover .bt-nav-arrow {
    transform: rotate(180deg);
}

/* Submenu */
.bt-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: var(--bt-space-sm);
    background: var(--bt-bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-md);
    box-shadow: var(--bt-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--bt-transition-fast);
    list-style: none;
    z-index: var(--bt-z-dropdown);
}

.bt-nav-item:hover > .bt-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bt-submenu .bt-nav-link {
    padding: 8px 14px;
    border-radius: var(--bt-radius-sm);
}

/* Header Actions */
.bt-header-actions {
    display: flex;
    align-items: center;
    gap: var(--bt-space-xs);
}

.bt-header-action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--bt-text-secondary);
    border-radius: var(--bt-radius-md);
    cursor: pointer;
    transition: all var(--bt-transition-fast);
    text-decoration: none;
}

.bt-header-action:hover {
    color: var(--bt-text-primary);
    background: rgba(var(--bt-primary-rgb), 0.1);
}

/* Cart Count */
.bt-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bt-primary);
    color: var(--bt-white);
    font-size: 10px;
    font-weight: var(--bt-fw-bold);
    border-radius: var(--bt-radius-full);
    line-height: 1;
    padding: 0 4px;
}

/* Wishlist Count */
.bt-wishlist-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bt-danger);
    color: var(--bt-white);
    font-size: 10px;
    font-weight: var(--bt-fw-bold);
    border-radius: var(--bt-radius-full);
    line-height: 1;
    padding: 0 4px;
}

/* Theme Toggle */
.bt-theme-toggle .bt-icon-sun {
    display: none;
}

[data-theme="light"] .bt-theme-toggle .bt-icon-sun {
    display: block;
}

[data-theme="light"] .bt-theme-toggle .bt-icon-moon {
    display: none;
}

/* Search Overlay */
/* Search Overlay — DEPRECATED: now using .bt-search-modal in header.php inline styles */
.bt-search-overlay {
    display: none !important;
}

/* .bt-search-overlay.bt-active — removed, using .bt-search-modal now */

.bt-search-form {
    display: flex;
    align-items: center;
    gap: var(--bt-space-md);
}

.bt-search-input {
    flex: 1;
    padding: 16px 24px;
    background: rgba(var(--bt-white-rgb), 0.08);
    border: 2px solid rgba(var(--bt-white-rgb), 0.1);
    border-radius: var(--bt-radius-xl);
    color: var(--bt-white);
    font-size: var(--bt-fs-lg);
    outline: none;
    transition: border-color var(--bt-transition-fast);
}

.bt-search-input:focus {
    border-color: var(--bt-primary);
}

.bt-search-input::placeholder {
    color: var(--bt-secondary-text);
}

.bt-search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid rgba(var(--bt-white-rgb), 0.2);
    border-radius: var(--bt-radius-full);
    color: var(--bt-white);
    cursor: pointer;
    transition: all var(--bt-transition-fast);
}

.bt-search-close:hover {
    background: rgba(var(--bt-white-rgb), 0.1);
}

.bt-search-results {
    margin-top: var(--bt-space-xl);
}

/* Hamburger */
.bt-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.bt-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.bt-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--bt-text-primary);
    border-radius: 2px;
    transition: all var(--bt-transition-fast);
}

/* Mobile Menu */
.bt-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: var(--bt-z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all var(--bt-transition-base);
}

.bt-mobile-overlay.bt-active {
    opacity: 1;
    visibility: visible;
}

.bt-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: var(--bt-bg-secondary);
    z-index: var(--bt-z-modal);
    transform: translateX(-100%);
    transition: transform var(--bt-transition-base);
    overflow-y: auto;
    padding: var(--bt-space-xl);
}

.bt-mobile-menu.bt-active {
    transform: translateX(0);
}

.bt-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--bt-space-xl);
    padding-bottom: var(--bt-space-md);
    border-bottom: 1px solid var(--bt-border-color);
}

.bt-mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-md);
    color: var(--bt-text-primary);
    cursor: pointer;
}

.bt-mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bt-mobile-nav-list li {
    border-bottom: 1px solid var(--bt-border-color);
}

.bt-mobile-nav-list a {
    display: block;
    padding: 12px 0;
    color: var(--bt-text-secondary);
    font-weight: var(--bt-fw-medium);
    transition: color var(--bt-transition-fast);
}

.bt-mobile-nav-list a:hover {
    color: var(--bt-primary);
}

.bt-mobile-actions {
    margin-top: var(--bt-space-xl);
    padding-top: var(--bt-space-md);
    border-top: 1px solid var(--bt-border-color);
}

/* Responsive */
@media (max-width: 992px) {
    .bt-nav {
        display: none;
    }

    .bt-mobile-toggle {
        display: flex;
    }

    .bt-topbar-left {
        display: none;
    }

    .bt-brand-tagline {
        display: none;
    }
}

@media (max-width: 576px) {
    .bt-topbar {
        display: none;
    }

    .bt-header-actions .bt-wishlist-link,
    .bt-header-actions .bt-account-link {
        display: none;
    }

    .bt-brand-name {
        font-size: 16px !important;
    }

    .bt-brand-logo {
        height: 32px !important;
    }
}


/* ============================================
   LIGHT MODE - Header
   ============================================ */
html[data-theme="light"] .bt-topbar {
    background: #eef0f5;
    border-bottom-color: rgba(0,0,0,0.06);
}

html[data-theme="light"] .bt-topbar-text {
    color: #555b6e;
}

html[data-theme="light"] .bt-topbar-text svg {
    stroke: #753beb;
}

html[data-theme="light"] .bt-topbar-promo {
    color: #753beb;
}

html[data-theme="light"] .bt-topbar-social a {
    color: #e16b1b;
}

html[data-theme="light"] .bt-topbar-social a:hover {
    color: #ff8c42;
}

html[data-theme="light"] .bt-header-main {
    background: rgba(255,255,255, 0.92);
    border-bottom-color: rgba(0,0,0,0.06);
}

html[data-theme="light"] .bt-header.bt-scrolled .bt-header-main {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

html[data-theme="light"] .bt-nav-link {
    color: #555b6e;
}

html[data-theme="light"] .bt-nav-link:hover,
html[data-theme="light"] .bt-nav-item.current-menu-item > .bt-nav-link {
    color: #753beb;
    background: rgba(117,59,235, 0.06);
}

html[data-theme="light"] .bt-header-action {
    color: #555b6e;
}

html[data-theme="light"] .bt-header-action:hover {
    color: #753beb;
    background: rgba(117,59,235, 0.06);
}

html[data-theme="light"] .bt-submenu {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

html[data-theme="light"] .bt-mobile-menu {
    background: #ffffff;
}

html[data-theme="light"] .bt-search-overlay {
    background: rgba(255,255,255, 0.96);
}

html[data-theme="light"] .bt-search-input {
    background: #f1f3f9;
    border-color: rgba(0,0,0,0.1);
    color: #1a1d2e;
}

html[data-theme="light"] .bt-search-close {
    color: #555b6e;
    border-color: rgba(0,0,0,0.1);
}

html[data-theme="light"] .bt-hamburger span {
    background: #1a1d2e;
}


/* ═══════════════ HEADER STYLE VARIANTS — see end of file ═══════════════ */


/* ============================================
   HEADER STYLE VARIANTS (Customizer: bt_header_style)
   "default" = the main header above. The two below add real layout reflow.
   ============================================ */

/* ---------- Centered Header ----------
   Logo centered, nav split below. Best for boutique / fashion stores. */
.bt-header.bt-header-centered .bt-header-inner {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "actions-left logo actions-right"
        "nav nav nav";
    gap: var(--bt-space-sm) var(--bt-space-md);
    padding: var(--bt-space-md) 0;
    height: auto !important;
}

.bt-header.bt-header-centered .bt-mobile-toggle {
    grid-area: actions-left;
    justify-self: start;
}

.bt-header.bt-header-centered .bt-logo {
    grid-area: logo;
    justify-self: center;
    text-align: center;
}

.bt-header.bt-header-centered .bt-header-actions {
    grid-area: actions-right;
    justify-self: end;
}

.bt-header.bt-header-centered .bt-nav {
    grid-area: nav;
    justify-self: center;
    flex: none !important;
    width: 100%;
    display: flex !important;
    justify-content: center;
}

.bt-header.bt-header-centered .bt-nav-list {
    justify-content: center;
}

@media (max-width: 1024px) {
    .bt-header.bt-header-centered .bt-header-inner {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto;
        grid-template-areas: "actions-left logo actions-right";
    }
    .bt-header.bt-header-centered .bt-nav {
        display: none;
    }
}

/* ---------- Minimal Header ----------
   Single-row, no top bar, transparent until scrolled. Modern editorial look. */
.bt-header.bt-header-minimal .bt-topbar {
    display: none;
}

.bt-header.bt-header-minimal .bt-nav {
    display: none !important;
}

.bt-header.bt-header-minimal .bt-mobile-toggle {
    display: flex !important;
}

.bt-header.bt-header-minimal .bt-header-main {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.bt-header.bt-header-minimal.bt-scrolled .bt-header-main,
.bt-header.bt-header-minimal:hover .bt-header-main,
body:not(.home) .bt-header.bt-header-minimal .bt-header-main {
    background: rgba(var(--bt-dark-rgb), 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--bt-border-color);
}

[data-theme="light"] .bt-header.bt-header-minimal.bt-scrolled .bt-header-main,
[data-theme="light"] .bt-header.bt-header-minimal:hover .bt-header-main,
[data-theme="light"] body:not(.home) .bt-header.bt-header-minimal .bt-header-main {
    background: rgba(255, 255, 255, 0.92);
}

.bt-header.bt-header-minimal .bt-header-inner {
    height: 56px;
    padding: var(--bt-space-sm) 0;
}

/* ---------- Split Header ----------
   Nav on the left, logo center, actions right. Magazine layout. */
.bt-header.bt-header-split .bt-header-inner {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: var(--bt-header-height);
}

.bt-header.bt-header-split .bt-mobile-toggle {
    display: none;
    order: 0;
}

.bt-header.bt-header-split .bt-nav {
    order: 1;
    justify-self: start;
    flex: none !important;
    display: flex !important;
}

.bt-header.bt-header-split .bt-nav-list {
    justify-content: flex-start;
}

.bt-header.bt-header-split .bt-logo {
    order: 2;
    justify-self: center;
}

.bt-header.bt-header-split .bt-header-actions {
    order: 3;
    justify-self: end;
}

@media (max-width: 1024px) {
    .bt-header.bt-header-split .bt-header-inner {
        grid-template-columns: auto 1fr auto !important;
    }
    .bt-header.bt-header-split .bt-nav {
        display: none !important;
    }
    .bt-header.bt-header-split .bt-mobile-toggle {
        display: flex !important;
        order: 0;
    }
    .bt-header.bt-header-split .bt-logo {
        order: 1;
        justify-self: center;
    }
    .bt-header.bt-header-split .bt-header-actions {
        order: 2;
        justify-self: end;
    }
}

/* ---------- Transparent (Hero overlay) ---------- */
.bt-header.bt-header-transparent .bt-header-main {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
}
.bt-header.bt-header-transparent .bt-topbar {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.bt-header.bt-header-transparent.bt-scrolled .bt-header-main {
    background: rgba(var(--bt-dark-rgb), 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--bt-border-color);
}


/* ============================================
   CUSTOM HEADER IMAGE (Customizer → Header Image)
   Shows only on front page as a subtle banner strip.
   ============================================ */
.bt-header-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    line-height: 0;
}

.bt-header-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.bt-header-image__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(var(--bt-dark-rgb, 19, 28, 49), 0.3) 0%,
        rgba(var(--bt-dark-rgb, 19, 28, 49), 0.7) 100%
    );
    pointer-events: none;
}

/* Light mode overlay */
html[data-theme="light"] .bt-header-image__overlay {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.4) 100%
    );
}

/* Responsive */
@media (max-width: 768px) {
    .bt-header-image,
    .bt-header-image img {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .bt-header-image,
    .bt-header-image img {
        height: 80px;
    }
}
