/* ═══════════════════════════════════════════════════════
   THE RANK ONE — Header CSS
   Top Bar + Main Navbar + Mobile Offcanvas + Search Overlay
═══════════════════════════════════════════════════════ */

:root {
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --gold-dark: #a07830;
    --black: #0a0a0a;
    --dark: #111111;
    --dark-2: #1a1a1a;
    --dark-3: #222222;
    --white: #ffffff;
    --gray-100: #f8f8f8;
    --gray-200: #eeeeee;
    --gray-400: #aaaaaa;
    --gray-600: #666666;
    --topbar-h: 40px;
    --navbar-h: 72px;
    --font-body: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
}

/* ── TOP BAR ─────────────────────────────────────────── */
.top-bar {
    background: var(--black);
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1050;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

/* Social Icons */
.top-bar__social {
    display: flex;
    align-items: center;
    gap: 2px;
}

.top-bar__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--gray-400);
    font-size: 13px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}

.top-bar__social-link:hover {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
}

/* Tagline */
.top-bar__tagline {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Right Contact */
.top-bar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar__contact {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray-400);
    font-size: 11.5px;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.top-bar__contact i {
    font-size: 11px;
    color: var(--gold);
}

.top-bar__contact:hover {
    color: var(--white);
}

/* ── MAIN NAVBAR ─────────────────────────────────────── */
#main-navbar {
    background: var(--dark);
    height: var(--navbar-h);
    position: sticky;
    top: 0;
    z-index: 1040;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    transition: background 0.3s, box-shadow 0.3s, height 0.3s;
    padding: 0;
}

#main-navbar.navbar-scrolled {
    background: rgba(10, 10, 10, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    height: 64px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 0;
    flex-shrink: 0;
}

.navbar-logo-img {
    height: 65px;
    width: 65px;
    object-fit: contain;
    border-radius: 50%;
    /* border: 2px solid var(--gold); */
    transition: transform 0.3s;
}

.navbar-brand:hover .navbar-logo-img {
    transform: rotate(5deg) scale(1.05);
}

.navbar-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
}

.logo-tag {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Nav Links */
.navbar-nav .nav-item .nav-link {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 14px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.02em;
    position: relative;
}

.navbar-nav .nav-item .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 1.5px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    border-radius: 2px;
}

.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item .nav-link.active {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}

.navbar-nav .nav-item .nav-link:hover::after,
.navbar-nav .nav-item .nav-link.active::after {
    transform: scaleX(1);
}

/* Dropdown */
.dropdown-menu {
    background: var(--dark-2);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 10px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin-top: 8px !important;
}

.dropdown-item {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 14px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 4px 8px;
}

/* Navbar Actions */
.navbar-actions {
    flex-shrink: 0;
}

.nav-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-icon-btn:hover {
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--gold);
    color: var(--black);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-btn-login {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-btn-login:hover {
    background: var(--gold-light);
    color: var(--black);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}

/* Account Dropdown */
.account-btn {
    width: auto;
    padding: 0 12px;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.account-btn::after {
    display: none;
}

.account-dropdown {
    min-width: 220px;
}

.account-dropdown .dropdown-header {
    padding: 12px 14px 8px;
}

.account-dropdown__name {
    font-weight: 600;
    color: var(--white);
    font-size: 14px;
}

.account-dropdown__email {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 2px;
}

/* Mobile Toggler */
.navbar-toggler {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toggler-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── MOBILE OFFCANVAS ────────────────────────────────── */
#mobileNav {
    background: var(--dark);
    border-right: 1px solid rgba(201, 168, 76, 0.2);
    width: 300px !important;
    z-index: 9999;
}

.offcanvas-header {
    background: var(--black);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    padding: 16px 20px;
}

.offcanvas-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.offcanvas-brand img {
    border-radius: 50%;
    height: 90px;
    border: 2px solid var(--gold);
}

.btn-close {
    filter: invert(1);
    opacity: 0.7;
}

.offcanvas-body {
    padding: 20px;
    overflow-y: auto;
}

/* Mobile Search */
.mobile-search {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-search input {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--white);
    font-size: 13px;
    padding: 10px 14px;
    flex: 1;
    outline: none;
}

.mobile-search input::placeholder {
    color: var(--gray-400);
}

.mobile-search button {
    background: var(--gold);
    border: none;
    color: var(--black);
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
}

/* Mobile User Info */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(201, 168, 76, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: var(--white);
}

.text-gold {
    color: var(--gold) !important;
}

/* Mobile Nav */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-nav__link i {
    font-size: 16px;
    color: var(--gold);
    width: 20px;
    text-align: center;
}

.mobile-nav__link:hover {
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold);
}

.mobile-nav__group {
    border-radius: 8px;
    overflow: hidden;
}

.mobile-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 14px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-nav__toggle span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-nav__toggle span i {
    font-size: 16px;
    color: var(--gold);
    width: 20px;
    text-align: center;
}

.mobile-nav__toggle:hover {
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold);
}

.mobile-nav__sub {
    display: block;
    padding: 9px 14px 9px 44px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-nav__sub:hover {
    color: var(--gold);
}

/* Mobile Contact */
.mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-contact a i {
    color: var(--gold);
}

.mobile-contact a:hover {
    color: var(--white);
}

/* Mobile Social */
.mobile-social {
    display: flex;
    gap: 8px;
}

.mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-social a:hover {
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

/* ── SEARCH OVERLAY ──────────────────────────────────── */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    backdrop-filter: blur(8px);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay__close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--white);
    font-size: 18px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.search-overlay__close:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--gold);
    color: var(--gold);
}

.search-overlay__inner {
    width: 100%;
    max-width: 640px;
    padding: 0 24px;
    text-align: center;
}

.search-overlay__label {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--white);
    margin-bottom: 24px;
    font-weight: 500;
}

.search-overlay__form {
    display: flex;
    border: 2px solid rgba(201, 168, 76, 0.4);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s;
}

.search-overlay__form:focus-within {
    border-color: var(--gold);
}

.search-overlay__input {
    flex: 1;
    background: none;
    border: none;
    color: var(--white);
    font-size: 18px;
    padding: 16px 20px;
    outline: none;
    font-family: var(--font-body);
}

.search-overlay__input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-overlay__btn {
    background: var(--gold);
    border: none;
    color: var(--black);
    padding: 16px 24px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-overlay__btn:hover {
    background: var(--gold-light);
}

.search-overlay__hint {
    margin-top: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 991.98px) {
    .top-bar__tagline {
        display: none !important;
    }

    .top-bar__social {
        gap: 0;
    }

    .top-bar__social-link {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .top-bar__contact span {
        display: none !important;
    }

    #main-navbar {
        height: 60px;
    }

    .navbar-logo-img {
        height: 60px;
        width: 60px;
    }

    .logo-main {
        font-size: 15px;
    }

    .logo-tag {
        font-size: 8px;
    }
}

@media (max-width: 575.98px) {
    .top-bar {
        height: 36px;
    }

    .top-bar__social-link {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .top-bar__right {
        gap: 6px;
    }

    .search-overlay__label {
        font-size: 20px;
    }

    .search-overlay__input {
        font-size: 15px;
        padding: 12px 14px;
    }
}
/* -------------------------------------------------------
   OFFCANVAS ALWAYS DARK � Both themes
   (Overrides light theme variables for offcanvas only)
------------------------------------------------------- */
#mobileNav,
#mobileNav .offcanvas-body {
    background: #111111 !important;
}
.offcanvas-header {
    background: #0a0a0a !important;
}
.offcanvas-brand {
    color: #ffffff !important;
}
.mobile-nav__link {
    color: rgba(255,255,255,0.85) !important;
}
.mobile-nav__link i {
    color: #c9a84c !important;
}
.mobile-nav__link:hover {
    background: rgba(201,168,76,0.1) !important;
    color: #c9a84c !important;
}
.mobile-nav__toggle {
    color: rgba(255,255,255,0.85) !important;
}
.mobile-nav__toggle span i {
    color: #c9a84c !important;
}
.mobile-nav__toggle:hover {
    background: rgba(201,168,76,0.1) !important;
    color: #c9a84c !important;
}
.mobile-nav__sub {
    color: rgba(255,255,255,0.65) !important;
}
.mobile-nav__sub:hover {
    color: #c9a84c !important;
}
.mobile-search input {
    background: rgba(255,255,255,0.06) !important;
    color: #ffffff !important;
}
.mobile-search input::placeholder {
    color: rgba(255,255,255,0.35) !important;
}
.mobile-user-info {
    background: rgba(201,168,76,0.08) !important;
    border-color: rgba(201,168,76,0.2) !important;
    color: #ffffff !important;
}
.mobile-contact a {
    color: rgba(255,255,255,0.7) !important;
}
.mobile-contact a i {
    color: #c9a84c !important;
}
.mobile-contact a:hover {
    color: #ffffff !important;
}
.mobile-social a {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.75) !important;
}
.mobile-social a:hover {
    background: rgba(201,168,76,0.15) !important;
    border-color: #c9a84c !important;
    color: #c9a84c !important;
}
#mobileNav hr {
    border-color: rgba(255,255,255,0.1) !important;
}
#themeToggleMobile {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: rgba(255,255,255,0.8) !important;
}
#themeToggleMobile:hover {
    background: rgba(201,168,76,0.12) !important;
    border-color: #c9a84c !important;
    color: #c9a84c !important;
}
/* Login/Register buttons in offcanvas � always visible */
#mobileNav .btn-dark-offcanvas-login {
    background: #c9a84c !important;
    color: #000000 !important;
    border: none !important;
    font-weight: 600;
}
#mobileNav .btn-dark-offcanvas-register {
    background: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    font-weight: 600;
}
#mobileNav .btn-dark-offcanvas-register:hover {
    background: rgba(255,255,255,0.18) !important;
    color: #ffffff !important;
}
