/* ========================================
   Premium Header Footer - Alto Nível UI/UX
   ASSEST Colors: #169d53, #000, #fff
   ======================================== */

/* ========== RESET & BASE ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Reset Elementor and Theme Conflicts */
.phf-header *,
.phf-header *::before,
.phf-header *::after {
    box-sizing: border-box !important;
}

.phf-header a {
    text-decoration: none !important;
}

.phf-header ul,
.phf-header ol {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.phf-header img {
    max-width: 100% !important;
    height: auto !important;
}

/* Override Elementor Image Styles */
.elementor-widget-container .phf-logo-image,
.elementor-image .phf-logo-image,
.elementor img.phf-logo-image,
img.phf-logo-image,
.phf-header img.phf-logo-image,
.phf-logo img.phf-logo-image {
    height: 82px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain !important;
    object-position: left center !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    opacity: 1 !important;
    filter: drop-shadow(0 2px 8px rgba(22, 157, 83, 0.15)) !important;
    transform: none !important;
    transition: var(--phf-transition) !important;
    float: none !important;
    position: relative !important;
}

/* Elementor Container Overrides */
.elementor-widget-container .phf-header,
.elementor-section .phf-header,
.elementor-column .phf-header {
    margin: 0 !important;
    padding: 0 !important;
}

:root {
    --phf-primary: #169d53;
    --phf-primary-dark: #128a46;
    --phf-black: #000;
    --phf-white: #fff;
    --phf-gray-50: #f9fafb;
    --phf-gray-100: #f3f4f6;
    --phf-gray-200: #e5e7eb;
    --phf-gray-300: #d1d5db;
    --phf-gray-700: #374151;
    --phf-gray-900: #111827;
    --phf-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --phf-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --phf-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --phf-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --phf-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --phf-transition-fast: all 0.15s ease;
    --phf-transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ========== HEADER ========== */
.phf-header {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid rgba(22, 157, 83, 0.1) !important;
    z-index: 1000 !important;
    transition: var(--phf-transition) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.phf-header-transparent {
    background: transparent;
    box-shadow: none;
}

.phf-header-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    height: 95px !important;
    min-height: 95px !important;
    max-height: 95px !important;
    position: relative !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Logo */
.phf-logo {
    position: relative !important;
    z-index: 100 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.phf-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-decoration: none !important;
    line-height: 1 !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.phf-logo-image {
    height: 82px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transition: var(--phf-transition) !important;
    filter: drop-shadow(0 2px 8px rgba(22, 157, 83, 0.15)) !important;
    display: block !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.phf-logo-link:hover .phf-logo-image {
    transform: scale(1.03) !important;
    filter: drop-shadow(0 4px 12px rgba(22, 157, 83, 0.3)) !important;
}

/* Desktop Navigation */
.phf-nav-desktop {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 20px !important;
    overflow: hidden !important;
}

.phf-menu {
    display: flex !important;
    list-style: none !important;
    gap: 4px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    padding: 0 !important;
    height: 100% !important;
    margin: 0 !important;
}

.phf-menu-item {
    position: relative !important;
    flex-shrink: 0 !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.phf-menu-link {
    display: flex !important;
    align-items: center !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--phf-gray-700) !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    transition: var(--phf-transition) !important;
    position: relative !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    line-height: 1.5 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

.phf-menu-link::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    background: linear-gradient(135deg, var(--phf-primary) 0%, var(--phf-primary-dark) 100%) !important;
    border-radius: 12px !important;
    transform: translate(-50%, -50%) !important;
    transition: all 0.5s ease !important;
    opacity: 0.1 !important;
    z-index: -1 !important;
}

.phf-menu-link:hover::before,
.phf-menu-link.active::before {
    width: 100% !important;
    height: 100% !important;
}

.phf-menu-link:hover {
    color: var(--phf-primary) !important;
    transform: translateY(-2px) !important;
}

.phf-menu-link.active {
    color: var(--phf-primary) !important;
    font-weight: 700 !important;
}

/* Header Actions */
.phf-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* My Account */
.phf-account-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(22, 157, 83, 0.08) 0%, rgba(18, 138, 70, 0.05) 100%);
    border: 2px solid transparent;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--phf-transition-bounce);
    position: relative;
    overflow: hidden;
}

.phf-account-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(22, 157, 83, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.phf-account-link:hover::before {
    width: 300px;
    height: 300px;
}

.phf-account-link:hover {
    border-color: var(--phf-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(22, 157, 83, 0.2);
}

.phf-profile-photo {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid var(--phf-primary) !important;
    transition: var(--phf-transition) !important;
    box-shadow: 0 3px 10px rgba(22, 157, 83, 0.25) !important;
}

.phf-account-link:hover .phf-profile-photo {
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(22, 157, 83, 0.35);
}

.phf-account-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--phf-primary) 0%, var(--phf-primary-dark) 100%);
    border-radius: 50%;
    color: white;
    transition: var(--phf-transition);
    box-shadow: 0 3px 10px rgba(22, 157, 83, 0.25);
    flex-shrink: 0;
}

.phf-account-icon svg {
    width: 18px;
    height: 18px;
}

.phf-account-link:hover .phf-account-icon {
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(22, 157, 83, 0.35);
}

.phf-account-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--phf-gray-700);
    transition: var(--phf-transition);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phf-account-link:hover .phf-account-name {
    color: var(--phf-primary);
}

@media (max-width: 1200px) {
    .phf-account-name {
        display: none;
    }
}

/* Mini Cart */
.phf-cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--phf-primary) 0%, var(--phf-primary-dark) 100%);
    border-radius: 14px;
    text-decoration: none;
    transition: var(--phf-transition-bounce);
    box-shadow: 0 5px 18px rgba(22, 157, 83, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

.phf-cart-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.phf-cart-link:hover::before {
    width: 200px;
    height: 200px;
}

.phf-cart-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(22, 157, 83, 0.45);
}

.phf-cart-icon {
    position: relative;
    color: white;
}

.phf-cart-icon svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.phf-cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--phf-white);
    color: var(--phf-primary);
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    padding: 2px 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: cartBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cartBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Mobile Toggle */
.phf-mobile-toggle {
    display: none;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(22, 157, 83, 0.1) 0%, rgba(18, 138, 70, 0.05) 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--phf-transition);
    position: relative;
    z-index: 100;
}

.phf-mobile-toggle:hover {
    background: linear-gradient(135deg, var(--phf-primary) 0%, var(--phf-primary-dark) 100%);
    border-color: var(--phf-primary);
    transform: scale(1.05);
}

.phf-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.phf-hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--phf-primary);
    border-radius: 2px;
    transition: var(--phf-transition);
}

.phf-mobile-toggle:hover .phf-hamburger span {
    background: var(--phf-white);
}

.phf-mobile-toggle.active .phf-hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.phf-mobile-toggle.active .phf-hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.phf-mobile-toggle.active .phf-hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation */
.phf-nav-mobile {
    position: fixed;
    top: 95px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--phf-primary);
    z-index: 999;
}

.phf-nav-mobile.active {
    max-height: calc(100vh - 95px);
    opacity: 1;
    overflow-y: auto;
}

.phf-menu-mobile {
    list-style: none;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phf-menu-item-mobile {
    animation: slideInLeft 0.4s ease-out backwards;
}

.phf-menu-item-mobile:nth-child(1) { animation-delay: 0.1s; }
.phf-menu-item-mobile:nth-child(2) { animation-delay: 0.15s; }
.phf-menu-item-mobile:nth-child(3) { animation-delay: 0.2s; }
.phf-menu-item-mobile:nth-child(4) { animation-delay: 0.25s; }
.phf-menu-item-mobile:nth-child(5) { animation-delay: 0.3s; }
.phf-menu-item-mobile:nth-child(6) { animation-delay: 0.35s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.phf-menu-link-mobile {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 600;
    color: var(--phf-gray-700);
    text-decoration: none;
    border-radius: 16px;
    background: var(--phf-gray-50);
    border: 2px solid transparent;
    transition: var(--phf-transition-bounce);
    position: relative;
    overflow: hidden;
}

.phf-menu-link-mobile::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--phf-primary) 0%, var(--phf-primary-dark) 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.phf-menu-link-mobile:hover::before,
.phf-menu-link-mobile.active::before {
    transform: scaleY(1);
}

.phf-menu-link-mobile:hover {
    background: linear-gradient(135deg, rgba(22, 157, 83, 0.1) 0%, rgba(18, 138, 70, 0.05) 100%);
    color: var(--phf-primary);
    border-color: var(--phf-primary);
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(22, 157, 83, 0.15);
}

/* Mobile Overlay */
.phf-mobile-overlay {
    display: none;
    position: fixed;
    top: 95px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.phf-mobile-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: all;
}

/* ========== FOOTER ========== */
.phf-footer {
    background: linear-gradient(135deg, var(--phf-gray-900) 0%, var(--phf-black) 100%);
    color: var(--phf-white);
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.phf-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--phf-primary) 0%, var(--phf-primary-dark) 100%);
}

.phf-footer::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(22, 157, 83, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.phf-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.phf-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.phf-footer-col {
    position: relative;
}

/* Copyright */
.phf-copyright-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--phf-gray-300);
    animation: fadeInUp 0.6s ease-out;
}

.phf-copyright-text a {
    color: #ff9900;
    text-decoration: none;
    transition: var(--phf-transition);
    font-weight: 600;
}

.phf-copyright-text a:hover {
    color: #ffb84d;
    text-decoration: underline;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Icons */
.phf-footer-social {
    display: flex;
    justify-content: flex-end;
}

.phf-social-icons {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
    justify-content: center;
}

.phf-social-link {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    color: var(--phf-gray-300);
    text-decoration: none;
    transition: var(--phf-transition-bounce);
    position: relative;
    overflow: hidden;
}

.phf-social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, var(--phf-primary) 0%, var(--phf-primary-dark) 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    z-index: 0;
}

.phf-social-link:hover::before {
    width: 200px;
    height: 200px;
}

.phf-social-link:hover {
    transform: translateY(-8px) rotate(-5deg);
    border-color: var(--phf-primary);
    box-shadow: 0 12px 30px rgba(22, 157, 83, 0.4);
}

.phf-social-link svg {
    width: 28px;
    height: 28px;
    transition: var(--phf-transition);
    position: relative;
    z-index: 1;
}

.phf-social-link:hover svg {
    fill: var(--phf-white);
    transform: scale(1.15);
}

/* Instagram Color */
.phf-social-instagram:hover {
    border-color: #8a3ab9;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .phf-nav-desktop {
        margin: 0 15px;
    }
    
    .phf-menu {
        gap: 2px;
    }
    
    .phf-menu-link {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .phf-account-name {
        display: none;
    }
    
    .phf-header-container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .phf-header-container {
        padding: 0 20px !important;
        height: 90px !important;
        min-height: 90px !important;
        max-height: 90px !important;
        gap: 12px !important;
    }
    
    .phf-logo-image {
        height: 72px !important;
        max-width: 180px !important;
    }
    
    .phf-nav-desktop {
        display: none !important;
    }
    
    .phf-mobile-toggle {
        display: flex !important;
    }
    
    .phf-nav-mobile {
        top: 90px !important;
    }
    
    .phf-header-actions {
        gap: 12px;
    }
    
    .phf-account-link {
        padding: 8px 12px;
    }
    
    .phf-profile-photo,
    .phf-account-icon {
        width: 38px;
        height: 38px;
    }
    
    .phf-cart-link {
        width: 48px;
        height: 48px;
    }
    
    .phf-cart-icon svg {
        width: 20px;
        height: 20px;
    }
    
    /* Footer Mobile */
    .phf-footer {
        padding: 40px 0 30px;
    }
    
    .phf-footer-container {
        padding: 0 25px;
    }
    
    .phf-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .phf-footer-social {
        justify-content: center;
    }
    
    .phf-copyright-text {
        font-size: 13px;
    }
}

/* ========== SCROLL BEHAVIOR ========== */
.phf-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.12);
}

.phf-header.scrolled .phf-header-container {
    height: 65px !important;
    min-height: 65px !important;
    max-height: 65px !important;
}

.phf-header.scrolled .phf-logo-image {
    height: 38px !important;
}

/* ========== UTILITIES ========== */
.phf-fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Print Styles */
@media print {
    .phf-header,
    .phf-footer {
        display: none;
    }
}
