/**
 * Mundo das Moedas Header PRO V5 - Frontend Styles (Versão Botões)
 * Version: 5.1
 */

/* ========================================
   RESET E BASE
======================================== */
.mmhp-header-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   HEADER PRINCIPAL
======================================== */
.mmhp-header-wrapper {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

.mmhp-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* ========================================
   LOGO
======================================== */
.mmhp-logo-wrapper {
    flex-shrink: 0;
}

.mmhp-logo-wrapper .custom-logo-link {
    display: flex;
    align-items: center;
}

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

.mmhp-logo-link {
    text-decoration: none;
}

.mmhp-site-name {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

/* ========================================
   BUSCA INLINE
======================================== */
.mmhp-search-trigger-wrapper {
    flex: 1;
    max-width: 500px;
}

.mmhp-search-inline-form {
    position: relative;
    display: flex;
    align-items: center;
    height: 48px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.2s;
}

.mmhp-search-inline-form:focus-within {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
    background: white;
}

.mmhp-search-input {
    flex: 1;
    height: 100%;
    padding: 0 20px;
    border: none;
    background: transparent;
    font-size: 15px;
    outline: none;
}

.mmhp-search-input::placeholder {
    color: #9ca3af;
}

.mmhp-search-submit-inline {
    width: 48px;
    height: 48px;
    background: #0073aa;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mmhp-search-submit-inline:hover {
    background: #005a87;
}

/* ========================================
   BOTÕES DE USUÁRIO
======================================== */
.mmhp-user-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mmhp-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.mmhp-user-btn:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.2);
}

.mmhp-user-btn-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mmhp-user-btn-label {
    font-weight: 600;
}

/* ========================================
   CARRINHO
======================================== */
.mmhp-cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mmhp-cart-link:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.2);
}

.mmhp-cart-icon {
    width: 24px;
    height: 24px;
}

.mmhp-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* ========================================
   RESPONSIVO
======================================== */
@media (max-width: 1024px) {
    .mmhp-header-inner {
        gap: 12px;
    }
    
    .mmhp-search-trigger-wrapper {
        max-width: 400px;
    }
    
    .mmhp-user-btn-label {
        display: none;
    }
    
    .mmhp-user-btn {
        padding: 10px;
        width: 48px;
        height: 48px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mmhp-container {
        padding: 0 12px;
    }
    
    .mmhp-header-inner {
        gap: 8px;
    }
    
    .mmhp-search-trigger-wrapper {
        max-width: 100%;
    }
    
    .mmhp-logo-wrapper img {
        max-height: 32px;
    }
    
    .mmhp-user-buttons {
        gap: 4px;
    }
    
    .mmhp-user-btn {
        width: 40px;
        height: 40px;
        padding: 8px;
    }
    
    .mmhp-cart-link {
        width: 40px;
        height: 40px;
    }
    
    .mmhp-search-inline-form,
    .mmhp-search-input {
        height: 40px;
    }
    
    .mmhp-search-submit-inline {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .mmhp-user-btn-icon {
        font-size: 16px;
    }
    
    .mmhp-cart-icon {
        width: 20px;
        height: 20px;
    }
    
    .mmhp-search-input {
        font-size: 14px;
    }
}
