/* ========================================
   HEADER - Top Bar & Navbar
   ======================================== */

/* Top Bar - Mensaje de Envío Gratis */
.header-top-bar {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-top-bar p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-top-bar a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.header-top-bar a:hover {
    text-decoration: underline;
}

/* Navbar - Menú Principal */
.header-navbar {
    position: fixed;
    top: 39px;
    left: 0;
    width: 100%;
    z-index: 1001;
    background: var(--white);
    padding: 0;
    transition: all 0.3s ease;
}

.header-navbar.scrolled {
    top: 39px;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

@media (max-width: 992px) {
    .logo-image {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 55px;
    }
}

/* Menú de Navegación */
.header-nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.header-nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-rosa);
    transition: width 0.3s ease;
}

.header-nav-link:hover::after,
.header-nav-link.active::after {
    width: 100%;
}

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

/* Iconos de Navegación */
.header-nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
}

.header-icon-btn:hover {
    background: var(--off-white);
}

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

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

/* Body Padding para Header Fijo */
body {
    padding-top: 140px;
}

@media (max-width: 992px) {
    body {
        padding-top: 120px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 110px;
    }
}

/* ========================================
   Responsive Header
   ======================================== */

@media (max-width: 992px) {
    .header-nav-menu {
        display: none;
    }
    
    .header-mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        font-size: 9px;
        padding: 8px 15px;
        height: 35px;
    }
    
    .header-navbar {
        top: 35px;
    }
    
    .header-navbar.scrolled {
        top: 0;
    }
    
    body {
        padding-top: 95px;
    }
    
    .header-logo {
        font-size: 24px;
    }
}
