/* Modern Header Styles */
.modern-header {
    background: #0a2540;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.modern-top-bar {
    background: #051829;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 20px;
}

.top-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.top-link:hover {
    color: #ff6b00;
}

.modern-main-header {
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.header-logo {
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.logo-accent {
    color: #ff6b00;
}

/* Modern Logo Style */
.logo-text-modern {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.logo-r {
    position: relative;
    display: inline-block;
}

.logo-plus {
    position: absolute;
    top: -2px;
    right: -8px;
    font-size: 16px;
    color: #ff6b00;
    font-weight: 900;
    line-height: 1;
}

.logo-rest {
    margin-left: 2px;
    color: #ff6b00;
}

.header-search {
    flex: 1;
    max-width: 600px;
    display: flex;
    background: #fff;
    border-radius: 4px;
    position: relative;
    /* Important pentru dropdown absolut */
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    border-radius: 4px 0 0 4px;
    /* Rotunjim doar stânga */
}

.search-btn {
    background: #0066ff;
    border: none;
    padding: 0 20px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 0 4px 4px 0;
    /* Rotunjim doar dreapta */
}

.search-btn:hover {
    background: #0052cc;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    color: #fff;
    font-size: 24px;
    position: relative;
    text-decoration: none;
    transition: color 0.3s;
}

.header-icon:hover {
    color: #ff6b00;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b00;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.header-cart-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cart-label {
    color: #8ba3b8;
    font-size: 12px;
}

.cart-amount {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.modern-nav {
    background: #0d3a5f;
    padding: 12px 0;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ff6b00;
}

/* Mobile Sidebar */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: left 0.3s;
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    background: #0a2540;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.mobile-app-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-badge img {
    height: 35px;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.mobile-sidebar-content {
    padding: 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #e5e5e5;
    gap: 12px;
    transition: background 0.2s;
}

.mobile-menu-item:hover {
    background: #f5f5f5;
}

.mobile-menu-item i:first-child {
    font-size: 20px;
    color: #0066ff;
    width: 24px;
}

.mobile-menu-item span {
    flex: 1;
    font-size: 15px;
}

.menu-subtitle {
    font-size: 12px;
    color: #999;
}

.mobile-menu-item i:last-child {
    font-size: 16px;
    color: #999;
}

.expandable .menu-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modern-top-bar {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-search {
        order: 4;
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .modern-nav {
        display: none;
    }

    .header-cart-total {
        display: none;
    }

    .top-bar-left,
    .top-bar-right {
        gap: 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .header-logo .logo-img {
        height: 30px;
    }

    .header-icon {
        font-size: 20px;
    }

    .header-actions {
        gap: 12px;
    }
}