/* ============================================
   HEADER PREMIUM ESTILIZADO
   Inspirado em Errejota Outlet
   ============================================ */

/* Header Principal */
.header-premium {
    background: var(--cor-primaria, #4a6adb);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid rgba(0, 0, 0, 0.1);
}

.header-premium-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   COLUNA ESQUERDA - BUSCA
   ============================================ */

.header-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.header-search-form {
    display: flex;
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.header-search-form:focus-within {
    box-shadow: 0 4px 20px rgba(74, 106, 219, 0.25);
    border-color: var(--cor-primaria, #4a6adb);
    transform: translateY(-2px);
}

.header-search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #ffffff;
}

.header-search-input::placeholder {
    color: #666;
    font-weight: 400;
}

.header-search-btn {
    padding: 14px 22px;
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search-btn:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.header-search-btn i {
    font-size: 16px;
}

/* ============================================
   COLUNA CENTRAL - LOGO
   ============================================ */

.header-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo-link {
    display: block;
    transition: transform 0.3s ease;
}

.header-logo-link:hover {
    transform: scale(1.05);
}

.header-logo-img {
    max-height: 80px;
    max-width: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.header-logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--cor-primaria, #4a6adb);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   COLUNA DIREITA - AÇÕES
   ============================================ */

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
}

/* Redes Sociais */
.header-social-links {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-right: 25px;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
}

.header-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.3);
}

.header-social-link.whatsapp:hover {
    background: #25D366;
}

.header-social-link.instagram:hover {
    background: linear-gradient(135deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.header-social-link.facebook:hover {
    background: #1877F2;
}

/* Login/Conta */
.header-account {
    position: relative;
}

.header-account-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-account-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-account-link i:first-child {
    font-size: 20px;
}

.header-account-link .fa-chevron-down {
    font-size: 11px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.header-dropdown:hover .header-account-link .fa-chevron-down {
    transform: rotate(180deg);
}

.header-account-text {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Dropdown Menu */
.header-dropdown {
    position: relative;
}

.header-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1001;
    border: 1px solid #e0e0e0;
}

.header-dropdown:hover .header-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile dropdown toggle */
.header-dropdown-menu.show-mobile {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.header-dropdown-item:last-child {
    border-bottom: none;
}

.header-dropdown-item:hover {
    background: linear-gradient(to right, rgba(74, 106, 219, 0.08), transparent);
    color: var(--cor-primaria, #4a6adb);
    padding-left: 26px;
}

.header-dropdown-item i {
    font-size: 16px;
}

/* Carrinho */
.header-cart-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    color: var(--cor-primaria, #4a6adb);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.header-cart-link:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    color: var(--cor-primaria, #4a6adb);
}

.header-cart-icon {
    position: relative;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff4757;
    color: #ffffff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.header-cart-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Tablets */
@media (max-width: 992px) {
    .header-premium {
        padding: 20px 0;
    }
    
    .header-premium-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .header-left {
        order: 2;
        justify-content: center;
    }
    
    .header-center {
        order: 1;
    }
    
    .header-right {
        order: 3;
        justify-content: center;
    }
    
    .header-search-form {
        max-width: 100%;
    }
    
    .header-social-links {
        padding-right: 15px;
        margin-right: 15px;
        border-right: 2px solid #e0e0e0;
    }
    
    .header-account-text,
    .header-cart-text {
        display: none;
    }
    
    .header-account-link,
    .header-cart-link {
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
    }
    
    .header-dropdown-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .header-dropdown:hover .header-dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .header-premium {
        padding: 15px 0;
    }
    
    .header-premium-container {
        padding: 0 15px;
        gap: 12px;
    }
    
    .header-logo-img {
        max-height: 60px;
        max-width: 200px;
    }
    
    .header-logo-text {
        font-size: 20px;
    }
    
    .header-search-input {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .header-search-btn {
        padding: 12px 18px;
    }
    
    .header-right {
        gap: 12px;
    }
    
    .header-social-links {
        gap: 8px;
        padding-right: 12px;
        margin-right: 12px;
        border-right-color: rgba(255, 255, 255, 0.2);
    }
    
    .header-social-link {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .header-account-link,
    .header-cart-link {
        width: 44px;
        height: 44px;
    }
    
    .header-account-link i:first-child {
        font-size: 18px;
    }
    
    .header-cart-icon {
        font-size: 18px;
    }
    
    .header-cart-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: -6px;
        right: -8px;
    }
}

/* Mobile Pequeno */
@media (max-width: 375px) {
    .header-right {
        gap: 8px;
    }
    
    .header-social-links {
        gap: 6px;
        padding-right: 8px;
        margin-right: 8px;
    }
    
    .header-social-link {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* ============================================
   ANIMAÇÕES E EFEITOS
   ============================================ */

/* Animação de entrada */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-premium {
    animation: slideDown 0.5s ease-out;
}

/* Efeito de brilho no hover */
.header-search-btn::before,
.header-cart-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.header-search-btn:hover::before,
.header-cart-link:hover::before {
    left: 100%;
}

/* Smooth Scroll para sticky header */
html {
    scroll-behavior: smooth;
}

/* Ajuste do conteúdo quando header é sticky */
body {
    padding-top: 0;
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */

/* Focus states */
.header-search-input:focus,
.header-account-link:focus,
.header-cart-link:focus,
.header-social-link:focus {
    outline: 3px solid var(--cor-primaria, #4a6adb);
    outline-offset: 2px;
}

/* Modo Alto Contraste */
@media (prefers-contrast: high) {
    .header-premium {
        border-bottom-width: 4px;
    }
    
    .header-search-form {
        border: 2px solid #333;
    }
    
    .header-account-link,
    .header-cart-link {
        border: 2px solid currentColor;
    }
}

/* Modo de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .header-premium,
    .header-logo-link,
    .header-social-link,
    .header-account-link,
    .header-cart-link,
    .header-dropdown-menu {
        animation: none;
        transition: none;
    }
}

