/* Unified Header Styles: merged from header-styles.css + header-css.php */

body #pl-pro-header,
body #pl-pro-header * {
    box-sizing: border-box;
}

body #pl-pro-header-placeholder {
    height: 140px;
    width: 100%;
}

@media (max-width: 1024px) {
    body #pl-pro-header-placeholder {
        height: 95px;
    }
}

body #pl-pro-header {
    overflow: visible;
    z-index: 99990;
    border: none;
    padding: 0;
    margin: 0;
    --pl-white: #ffffff;
    --pl-black: #0a192f;
    --pl-gray: #f8f9fa;
    --pl-text: #4a5568;
    --pl-accent: #ff6600;
    --pl-accent-hover: #e65c00;
    font-family: 'Montserrat', 'Inter', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateZ(0);
    overflow-anchor: none;
}

body.admin-bar #pl-pro-header {
    top: 32px !important;
}

@media (max-width: 782px) {
    body.admin-bar #pl-pro-header {
        top: 46px !important;
    }
}

/* Top bar */
body #pl-pro-header .top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
    transition: transform 0.3s ease, opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    position: relative;
    z-index: 100;
    display: block;
    pointer-events: auto;
    max-height: 60px;
    overflow: visible;
}

body #pl-pro-header .top-bar.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    max-height: 0;
}

body #pl-pro-header .top-bar-inner {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.5px;
    gap: 10px;
    min-height: 45px;
}

body #pl-pro-header .top-bar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

body #pl-pro-header .top-bar-item {
    position: relative;
}

body #pl-pro-header .top-bar-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 12px 0;
}

body #pl-pro-header .top-bar-link:hover,
body #pl-pro-header .top-bar-link.is-active {
    color: #1a56a8;
}

body #pl-pro-header .top-bar-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 220px;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

body #pl-pro-header .top-bar-item:hover .top-bar-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body #pl-pro-header .top-bar-dropdown li {
    margin: 0;
}

body #pl-pro-header .top-bar-dropdown a {
    display: block;
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.2s ease;
}

body #pl-pro-header .top-bar-dropdown a:hover {
    background-color: #f7fafc;
    color: #1a56a8;
    padding-left: 24px;
}

body #pl-pro-header .btn-top-bar-catalog {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a56a8;
    background: transparent;
    border: 1px solid #1a56a8;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

body #pl-pro-header .btn-top-bar-catalog:hover {
    background-color: #1a56a8;
    color: #ffffff;
}

body #pl-pro-header.is-shrink-active .top-bar {
    max-height: 0;
    min-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    border: none;
    transform: translateY(-100%);
    overflow: hidden;
}

/* Navbar */
body #pl-pro-header .navbar {
    pointer-events: auto;
    background: var(--pl-white);
    height: 95px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: height 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

body #pl-pro-header.is-shrink-active .navbar {
    height: 70px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

body #pl-pro-header .nav-inner {
    width: 100%;
    max-width: 1500px;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: static;
}

body #pl-pro-header .brand-logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 16px;
}

body #pl-pro-header .logo-img {
    height: auto;
    max-height: 50px;
    width: auto;
    transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

body #pl-pro-header.is-shrink-active .logo-img {
    max-height: 40px;
}

body #pl-pro-header .nav-menu {
    list-style: none;
    padding: 0;
    margin: 0 20px 0 0;
    display: flex;
    height: 100%;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
}

body #pl-pro-header .nav-item {
    list-style: none;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 14px;
}

body #pl-pro-header .has-megamenu {
    position: relative;
}

body #pl-pro-header .nav-item:not(.has-megamenu) {
    position: relative;
}

body #pl-pro-header .nav-link {
    text-decoration: none;
    color: var(--pl-black);
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s, background-color 0.3s;
    position: relative;
    z-index: 1001;
    padding: 8px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

body #pl-pro-header .nav-link:hover {
    color: var(--pl-accent);
    background: rgba(255, 102, 0, 0.05);
}

body #pl-pro-header .nav-link.is-active {
    background: rgba(255, 102, 0, 0.08);
    color: var(--pl-accent);
}

/* Dropdown simple */
body #pl-pro-header .dropdown-simple {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--pl-white);
    width: 240px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    list-style: none;
    padding: 15px 0;
    border-top: 3px solid var(--pl-accent);
    margin-top: -1px;
    border-radius: 0 0 8px 8px;
}

body #pl-pro-header .nav-item:not(.has-megamenu):hover .dropdown-simple {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body #pl-pro-header .dropdown-simple a {
    display: block;
    padding: 12px 25px;
    color: var(--pl-text);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 400;
    transition: color 0.2s, background-color 0.2s, padding-left 0.2s;
}

body #pl-pro-header .dropdown-simple a:hover,
body #pl-pro-header .dropdown-simple a.is-active {
    background: rgba(255, 102, 0, 0.08);
    color: var(--pl-accent);
    padding-left: 30px;
}

/* Megamenu */
body #pl-pro-header .megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(20px);
    width: auto;
    min-width: 260px;
    max-width: 360px;
    background: var(--pl-white);
    padding: 0;
    border-top: 3px solid var(--pl-accent);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 99999;
    margin-top: -1px;
    pointer-events: auto;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

body #pl-pro-header .has-megamenu:hover .megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body #pl-pro-header .megamenu::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
}

body #pl-pro-header .mega-inner {
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px 16px;
    gap: 8px;
}

body #pl-pro-header .mega-item {
    display: block;
    color: var(--pl-text);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.2s, background-color 0.2s, transform 0.2s;
    font-weight: 400;
    padding: 8px 12px;
    margin-left: -12px;
    border-radius: 4px;
}

body #pl-pro-header .mega-item:hover,
body #pl-pro-header .mega-item.is-active {
    color: var(--pl-accent);
    background: rgba(255, 102, 0, 0.08);
}

body #pl-pro-header .mega-item:hover {
    transform: translateX(5px);
}

body #pl-pro-header .nav-actions {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 15px;
    flex-shrink: 0;
}

body #pl-pro-header .btn-header-cta {
    background: var(--pl-accent);
    color: var(--pl-white);
    padding: 14px 28px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.2);
    border: none;
    cursor: pointer;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

body #pl-pro-header .btn-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.3);
    background: var(--pl-accent-hover);
}

/* Mobile */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 10001;
    margin-left: 15px;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background: var(--pl-black);
    transition: 0.3s;
    border-radius: 2px;
    transform-origin: center;
}

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

.mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

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

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--pl-white);
    z-index: 10000;
    transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto;
    padding: 80px 30px 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

.mobile-drawer.is-open {
    right: 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 25, 47, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

.mobile-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-link {
    display: block;
    padding: 16px 0;
    color: var(--pl-black);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
}

.mobile-chevron-wrap {
    padding: 16px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--pl-black);
    border-bottom: 2px solid var(--pl-black);
    transform: rotate(45deg);
    transition: 0.3s;
}

.mobile-nav-item.is-active .mobile-chevron {
    transform: rotate(-135deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-nav-item.is-active .mobile-submenu {
    max-height: 800px;
}

.mobile-sub-link {
    display: block;
    padding: 12px 15px;
    color: var(--pl-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
}

.mobile-sub-title {
    display: block;
    padding: 10px 0 5px;
    color: var(--pl-accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

@media (max-width: 1024px) {
    body #pl-pro-header .top-bar {
        display: none;
    }

    body #pl-pro-header .nav-menu {
        display: none;
    }

    body #pl-pro-header .btn-header-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    body #pl-pro-header .nav-inner {
        padding: 0 20px;
    }

    body #pl-pro-header .top-bar-inner {
        padding: 0 20px;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

@media (max-width: 1366px) and (min-width: 1025px) {
    body #pl-pro-header .nav-inner {
        padding: 0 24px;
    }

    body #pl-pro-header .nav-item {
        padding: 0 10px;
    }

    body #pl-pro-header .nav-link {
        font-size: 14px;
        padding: 8px 8px;
    }

    body #pl-pro-header .btn-header-cta {
        padding: 12px 18px;
        font-size: 13px;
    }
}
