/**
 * Mundo das Moedas Header PRO V5 - Frontend Styles
 * Version: 5.0
 */

/* ========================================
   HEADER WRAPPER
   ======================================== */
.mmhp-header-wrapper {
    position: relative;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    z-index: 1000;
}

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

.mmhp-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

/* ========================================
   MOBILE MENU TOGGLE
   ======================================== */
.mmhp-mobile-toggle {
    display: none;
}

.mmhp-hamburger {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}

.mmhp-hamburger span {
    width: 24px;
    height: 2px;
    background: #1f2937;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

.mmhp-logo-wrapper img {
    display: block;
    height: auto;
    max-height: 50px;
    width: auto;
}

.mmhp-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mmhp-logo-text:hover {
    color: #059669;
}

/* ========================================
   SEARCH FIELD (INLINE)
   ======================================== */
.mmhp-search-trigger-wrapper {
    flex: 1;
    max-width: 500px;
    min-width: 250px;
}

.mmhp-search-inline-form {
    position: relative;
    width: 100%;
    display: flex;
    align-items: stretch;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 48px;
}

.mmhp-search-inline-form:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mmhp-search-inline-form:focus-within {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    background: #ffffff;
}

.mmhp-search-input {
    flex: 1;
    padding: 0 20px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #1f2937;
    outline: none;
}

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

.mmhp-search-submit-inline {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #059669, #047857);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.mmhp-search-submit-inline:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: scale(1.05);
}

.mmhp-search-submit-inline:active {
    transform: scale(0.95);
}

.mmhp-search-submit-inline svg {
    width: 22px;
    height: 22px;
}

/* ========================================
   REGIONS NAVIGATION
   ======================================== */
.mmhp-regions-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mmhp-region-item {
    position: relative;
}

.mmhp-region-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    height: 48px;
}

.mmhp-region-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.mmhp-region-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.mmhp-region-btn:hover .mmhp-region-glow {
    opacity: 1;
}

.mmhp-region-icon {
    font-size: 20px;
    line-height: 1;
}

.mmhp-region-label {
    position: relative;
    z-index: 1;
}

/* ========================================
   GRADIENTES DAS CATEGORIAS
   ======================================== */
/* Moda Masculina - Azul */
.mmhp-gradient-masculina {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.mmhp-gradient-masculina:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.mmhp-gradient-masculina .mmhp-region-glow {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

/* Moda Feminina - Rosa */
.mmhp-gradient-feminina {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}

.mmhp-gradient-feminina:hover {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.mmhp-gradient-feminina .mmhp-region-glow {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

/* Eletrônicos - Roxo */
.mmhp-gradient-eletronicos {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.mmhp-gradient-eletronicos:hover {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.mmhp-gradient-eletronicos .mmhp-region-glow {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Brasil - Verde */
.mmhp-gradient-brasil {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.mmhp-gradient-brasil:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.mmhp-gradient-brasil .mmhp-region-glow {
    background: linear-gradient(135deg, #059669, #047857);
}

/* América - Azul Escuro */
.mmhp-gradient-america {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.mmhp-gradient-america:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

.mmhp-gradient-america .mmhp-region-glow {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

/* Ásia - Laranja */
.mmhp-gradient-asia {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
}

.mmhp-gradient-asia:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

.mmhp-gradient-asia .mmhp-region-glow {
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

/* ========================================
   MEGA MENU
   ======================================== */
.mmhp-mega-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    min-width: 300px;
}

.mmhp-region-item:hover .mmhp-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mmhp-mega-inner {
    padding: 24px;
}

.mmhp-mega-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.mmhp-mega-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.mmhp-title-icon {
    font-size: 24px;
}

.mmhp-mega-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.mmhp-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.mmhp-mega-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mmhp-mega-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #f9fafb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mmhp-mega-link:hover {
    background: #f0fdf4;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.mmhp-link-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.mmhp-link-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mmhp-link-text {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.mmhp-link-arrow {
    font-size: 16px;
    color: #9ca3af;
    opacity: 0;
    transition: all 0.3s ease;
}

.mmhp-mega-link:hover .mmhp-link-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.mmhp-mega-link:hover .mmhp-link-text {
    color: #059669;
}

/* ========================================
   CART
   ======================================== */
.mmhp-cart-wrapper {
    flex-shrink: 0;
}

.mmhp-cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f9fafb;
    color: #1f2937;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mmhp-cart-link:hover {
    background: #f0fdf4;
    color: #059669;
    transform: scale(1.1);
}

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

.mmhp-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    border: 2px solid #ffffff;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .mmhp-search-trigger-wrapper,
    .mmhp-regions-nav {
        display: none;
    }
    
    .mmhp-mobile-toggle {
        display: block;
    }
    
    .mmhp-header-content {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .mmhp-header-container {
        padding: 0 16px;
    }
    
    .mmhp-logo-wrapper img {
        max-height: 40px;
    }
    
    .mmhp-cart-link {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mmhp-region-item:hover .mmhp-mega-menu {
    animation: fadeInUp 0.3s ease;
}

/* ========================================
   UTILITIES
   ======================================== */
.mmhp-hidden {
    display: none !important;
}

.mmhp-loading {
    opacity: 0.6;
    pointer-events: none;
}