/* ========================================
   LTS - Header Styles
   ======================================== */

/* Top Bar */
.header-top-bar {
    background: var(--color-negro);
    color: var(--white);
    text-align: center;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-top-bar .top-message-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
}

.header-top-bar .top-message {
    color: var(--white);
    white-space: nowrap;
}

/* Navbar */
.header-navbar {
    position: fixed;
    top: 44px;
    left: 0;
    width: 100%;
    z-index: 1001;
    background: var(--color-negro);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.header-navbar.scrolled {
    top: 0;
    box-shadow: var(--shadow-lg);
    background: var(--color-negro);
}

.header-navbar.scrolled .header-top-bar {
    display: none;
}

.header-navbar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 30px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Menu */
.header-nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.header-nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: color var(--transition-fast);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.header-nav-link:hover {
    color: var(--color-crema);
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--color-negro);
    min-width: 200px;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: left;
}

.dropdown-menu a:hover {
    background: var(--color-crema);
    color: var(--color-negro);
}

.header-nav-link i.chevron {
    font-size: 9px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .header-nav-link i.chevron {
    transform: rotate(180deg);
}

/* Icons */
.header-nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all var(--transition-fast);
    position: relative;
}

.header-icon-btn:hover {
    background: rgba(232, 161, 178, 0.2);
}

.header-icon-btn i {
    font-size: 18px;
    color: var(--white);
}

.cart-count-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-crema);
    color: var(--color-negro);
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Body Padding */
body {
    padding-top: 114px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-negro);
    z-index: 1003;
    transition: left var(--transition-normal);
    padding: 20px;
    overflow-y: auto;
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-menu {
    list-style: none;
    padding: 30px 0;
}

.mobile-nav-menu li {
    margin-bottom: 15px;
}

.mobile-nav-menu .header-nav-link {
    font-size: 18px;
    display: block;
    padding: 10px 0;
    color: var(--white);
}

.close-menu {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--white);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--off-white);
    z-index: 1003;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-normal);
}

.cart-sidebar.active {
    right: 0;
}

.cart-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--color-negro);
    border-bottom: 3px solid var(--color-crema);
}

.cart-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--white);
}

.close-cart {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--white);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    color: var(--text-light);
    padding: 40px 0;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .header-nav-menu {
        display: none;
    }

    .logo-image {
        height: 40px;
    }

    body {
        padding-top: 104px;
    }
    
    /* Mobile Dropdown */
    .has-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(43, 43, 43, 0.5);
        box-shadow: none;
        min-width: 100%;
        display: none;
        margin-top: 10px;
    }
    
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 10px 15px 10px 30px;
        font-size: 12px;
    }
    
    .header-nav-link i.chevron {
        transition: transform 0.3s ease;
    }
    
    .has-dropdown.active .header-nav-link i.chevron {
        transform: rotate(180deg);
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        font-size: 10px;
        height: 40px;
    }

    .header-navbar {
        top: 40px;
    }

    .header-navbar.scrolled {
        top: 0;
    }

    body {
        padding-top: 94px;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}
