/* ==============================================================================
   BICICENTRO 2.0 — Header & Navigation Stylesheet (Demo Matching)
   ============================================================================== */

/* Topbar */
.top-bar {
    background-color: #fbfbfb;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #777;
    padding: 7px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left {
    font-size: 0.82rem;
    color: #666;
}
.top-bar-right {
    display: flex;
    align-items: center;
}
.topbar-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}
.topbar-login-link {
    color: #444;
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
}
.topbar-login-link:hover {
    color: #000;
}

/* Main Header */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 86px;
}
.logo-wrapper {
    display: flex;
    align-items: center;
    margin-right: 40px;
    padding-right: 15px;
}
.header_logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* Main Navigation */
.main-nav-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-title-menu {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: #222222;
    text-transform: none;
    letter-spacing: 0.2px;
    padding: 10px 0;
    position: relative;
    transition: color var(--transition-fast);
}
.nav-title-menu:hover, .menu-item.current-menu-item .nav-title-menu {
    color: #000000;
}
.nav-title-menu::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #000;
    transition: width var(--transition-fast);
}
.nav-title-menu:hover::after, .menu-item.current-menu-item .nav-title-menu::after {
    width: 100%;
}

/* Header Action Icons */
.icons-wrapper {
    display: flex;
    align-items: center;
}
.header-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}
.header-icon-item {
    position: relative;
}
.header-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    transition: transform var(--transition-fast), color var(--transition-fast);
}
.header-icon-link:hover {
    color: #000;
    transform: translateY(-1px);
}
.icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.badge-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--bc-primary);
    color: #111;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}
.badge-count.visible,
.badge-count:not(:empty):not([data-count="0"]) {
    display: flex;
}

/* Search Slide Bar */
.search-slide-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-top: 1px solid #eee;
    padding: 15px 0;
    animation: slideDownSearch 0.25s ease-out;
}
@keyframes slideDownSearch {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.search-form-wrap {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.search-input-field {
    width: 100%;
    padding: 12px 55px 12px 20px;
    border: 2px solid #222;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
}
.search-submit-btn {
    position: absolute;
    right: 48px;
    background: none;
    border: none;
    cursor: pointer;
    color: #222;
    display: flex;
    align-items: center;
}
.search-close-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #888;
}

/* Mobile & Mini Cart Drawer Overlays */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}
.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Drawer (Left) */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    box-shadow: 5px 0 25px rgba(0,0,0,0.2);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    padding: 20px;
    overflow-y: auto;
}
.mobile-drawer.active {
    transform: translateX(0);
}
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}
.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
    padding: 6px 0;
    display: block;
}

/* Mini Cart Drawer (Right) */
.mini-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}
.mini-cart-drawer.active {
    transform: translateX(0);
}
.mini-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}
.mini-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}
.mini-cart-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}
.mini-cart-item img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 4px;
    background: #f9f9f9;
}
.mini-cart-item-info {
    flex: 1;
}
.mini-cart-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.3;
}
.mini-cart-item-meta {
    font-size: 0.82rem;
    color: #777;
}
.mini-cart-footer {
    padding: 20px 24px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

@media (max-width: 992px) {
    .header-container { height: 70px; }
    .header_logo { height: 38px; }
}
