/*
Theme Name: MQ
Theme URI: https://www.meiqmb.com
Author: Your Name
Description: New MB
Version: 1.1
*/

:root {
    --primary: #0066FF;
    --secondary: #00D4FF;
    --dark: #0A0E27;
    --bg-white: #FFFFFF;
    --bg-light: #F7F8FA;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-white);
    color: #1A1A1A;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ==================== HEADER ==================== */
header {
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1A1A1A;
}

.logo-icon { width: 32px; height: 32px; }
.logo-text { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #1A1A1A;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

/* PRODUCTS DROPDOWN - RIGHT ALIGNED */
.products-item {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;                    /* Right aligned */
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 12px 0;
    min-width: 260px;
    z-index: 1000;
    text-align: left;
    margin-top: 8px;
}

.products-item:hover .dropdown {
    display: block;
}

.dropdown li {
    padding: 10px 24px;
    list-style: none;
    white-space: nowrap;
}

.dropdown li:hover {
    background: #f8f9ff;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: #000 !important;
    color: white !important;
    padding: 18px 40px;
    border-radius: 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

/* ==================== MOBILE MENU ==================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #000;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #0A0E27;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        z-index: 999;
        padding-top: 80px;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        color: white !important;
        font-size: 18px;
    }

    /* Mobile Products Dropdown */
    .dropdown {
        position: static;
        background: rgba(255,255,255,0.1);
        box-shadow: none;
        padding: 10px 0;
        margin-top: 10px;
        width: 90%;
        border-radius: 8px;
        display: none !important;
    }

    .products-item.active .dropdown {
        display: block !important;
    }

    .dropdown li {
        color: #ddd;
        text-align: center;
        padding: 12px 0;
    }
}