/*
Theme Name: Panda7 Exact Replica
Description: 100% identical to https://panda7.ca/en (header + mega menu fixed)
Version: 2.2
*/

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800&display=swap');

* { box-sizing: border-box; }
body { 
    margin: 0; 
    font-family: 'Nunito Sans', sans-serif; 
    color: #4a4a4a; 
    line-height: 1.6;
}

.navstyle {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px; /* Exact header height */
    background: #fff;
    z-index: 1500;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px; /* Matches screenshot container */
    margin: 0 auto;
    padding: 0 3%; /* Corrected: Exact 3% side padding */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo - Fixed with Direct URL */
.navbar-brand a {
    display: block;
}

.navbar-brand img {
    height: 50px; /* Exact logo height */
    width: auto;
    display: block;
}

/* Main Menu - Corrected Fonts + Spacing */
.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar-nav > li {
    margin: 0 28px; /* Exact margin between items */
    position: relative;
}

.navbar-nav > li > a {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 15px; /* Exact font size */
    font-weight: 700; /* Bold */
    text-transform: uppercase;
    color: #333;
    text-decoration: none;
    letter-spacing: 0.5px; /* Exact letter spacing */
    padding: 25px 0 20px 0; /* Vertical centering for 72px */
    display: block;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #763b9a; /* Panda7 purple */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav > li:hover > a {
    color: #763b9a;
}

.navbar-nav > li:hover > a::after {
    width: 100%;
}

/* Right Side - Corrected Fonts + Padding */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.lang-switcher a {
    color: #666;
    text-decoration: none;
    padding: 0 5px;
    transition: color 0.3s;
}

.lang-switcher span {
    color: #ccc;
    padding: 0 5px;
}

.lang-switcher a.active,
.lang-switcher a:hover {
    color: #763b9a;
}

.btn-panda-outline {
    
    background-color: #7b2cbf;
    color:white;
    border: 2px solid #7b2cbf;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(123, 44, 191, 0.2);
}


.btn-panda-outline:hover {
    background-color: #6a1fb8;
    border-color: #6a1fb8;
    color: white;
}
.btn-panda-outline:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(123, 44, 191, 0.3);
}

/* Mega Menu - Corrected Padding + Layout */
#panda7-mega-menu {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    overflow: hidden;
}

#panda7-mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 3%; /* Corrected: Matches header padding */
    display: flex;
    gap: 50px; /* Exact column gap */
    justify-content: space-between;
}

.menu-column {
    min-width: 200px;
    flex: 1;
}

.menu-column h4 {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
}

.menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-column ul li {
    margin-bottom: 10px;
}

.menu-column ul li a {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-column ul li a:hover {
    color: #763b9a;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #763b9a;
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile */
@media (max-width: 991px) {
    .hamburger { display: flex; }
    .navbar-nav-desktop { 
        display: none; 
        position: absolute; 
        top: 72px; 
        left: 0; 
        width: 100%; 
        background: #fff; 
        flex-direction: column; 
        box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
        padding: 20px 3%; 
    }
    .navbar-nav-desktop.active { display: flex; }
    .navbar-nav > li { margin: 0 0 15px 0; }
    .nav-right { display: none; }
    #panda7-mega-menu { display: none !important; }
    .nav-container { padding: 0 3%; } /* Keep 3% on mobile */
}

@media (max-width: 768px) {
    .mega-menu-inner { flex-direction: column; gap: 30px; }
}