/**
 * TEATIA HEADER & FOOTER - FULL WIDTH PROFESSIONAL
 * Estilos aplicados em TODAS as páginas
 */

/* === HEADER FULL WIDTH === */
.teatia-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    width: 100%;
}

.header-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.header-logo a {
    display: block;
    line-height: 0;
}

.header-logo img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.header-logo img:hover {
    transform: scale(1.05);
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header-menu li {
    position: relative;
}

.header-menu a {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #2d3748;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.header-menu a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.header-menu a:hover {
    color: #9c27b0;
    background: rgba(156, 39, 176, 0.05);
}

.header-menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.header-menu .current-menu-item a,
.header-menu .current_page_item a,
.header-menu .current-product-ancestor a {
    color: #9c27b0;
    background: #f3e5f5;
    font-weight: 600;
}

.header-menu .current-menu-item a::after,
.header-menu .current_page_item a::after,
.header-menu .current-product-ancestor a::after {
    transform: translateX(-50%) scaleX(1);
}

.header-menu .current_page_item a {
    color: #9c27b0;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-icon,
.account-icon {
    position: relative;
    font-size: 1.5rem;
    padding: 8px;
    transition: transform 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon img,
.account-icon img {
    filter: brightness(0) saturate(100%) invert(15%) sepia(16%) saturate(1005%) hue-rotate(193deg) brightness(95%) contrast(89%);
    transition: all 0.3s ease;
}

.cart-icon:hover img,
.account-icon:hover img {
    filter: brightness(0) saturate(100%) invert(21%) sepia(92%) saturate(3621%) hue-rotate(286deg) brightness(86%) contrast(93%);
}

.cart-icon:hover,
.account-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ff4081 0%, #f50057 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
    color: #2d3748;
}

/* Dropdown Menus */
.header-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 200px;
    list-style: none;
    margin: 5px 0 0 0;
}

.header-menu li:hover > .sub-menu {
    display: block;
}

.header-menu .sub-menu li {
    margin: 0;
}

.header-menu .sub-menu a {
    padding: 10px 20px;
    border-radius: 0;
}

/* === FOOTER === */
.teatia-footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #e2e8f0;
    margin-top: auto;
}

.footer-main {
    padding: 60px 20px 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
}

.footer-col h3 {
    font-family: 'Fredoka', sans-serif;
    color: white;
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col a:hover {
    color: #ffc107;
    transform: translateX(5px);
}

.footer-about {
    max-width: 350px;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
}

.footer-about p {
    line-height: 1.6;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.footer-social a:hover {
    transform: scale(1.2) rotate(5deg);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 5px 0;
    color: #a0aec0;
    font-size: 0.95rem;
}

.footer-bottom strong {
    color: #ffc107;
    font-weight: 700;
}

/* === RESPONSIVE - Melhorado === */
@media (max-width: 1200px) {
    .header-container {
        padding: 0 30px;
    }
    
    .header-menu {
        gap: 20px;
    }
    
    .header-menu a {
        font-size: 0.95rem;
    }
}

@media (max-width: 968px) {
    .header-nav {
        display: none;
        position: fixed;
        top: 110px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        padding: 24px;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        z-index: 999;
    }
    
    .header-nav.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .header-menu {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .header-menu a {
        padding: 14px 18px;
        font-size: 1.05rem;
        border-radius: 10px;
    }
    
    .header-menu .sub-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 8px 0 8px 20px;
        margin: 8px 0 0 0;
        background: #f8f9fa;
    }
    
    .mobile-menu-toggle {
        display: block;
        font-size: 2rem;
        padding: 8px;
    }
    
    .header-logo img {
        height: 64px;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    .footer-about {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .header-container {
        gap: 12px;
        padding: 0 18px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .header-logo img {
        height: 52px;
    }
    
    .cart-icon,
    .account-icon {
        font-size: 1.3rem;
        padding: 6px;
    }
    
    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }
    
    .header-nav {
        top: 96px;
        max-height: calc(100vh - 96px);
    }
    
    .header-menu a {
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-col h3 {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    
    .footer-main {
        padding: 40px 18px 30px;
    }
    
    .footer-bottom {
        padding: 20px 18px;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }
    
    .header-logo img {
        height: 48px;
    }
    
    .header-nav {
        top: 88px;
        padding: 20px;
    }
    
    .cart-icon img,
    .account-icon img {
        width: 22px;
        height: 22px;
    }
    
    .footer-main {
        padding: 35px 15px 25px;
    }
    
    .footer-logo {
        height: 70px;
    }
    
    .footer-social a {
        font-size: 1.6rem;
    }
}
