:root {
    --primary: #0A2463;
    --primary-light: #3E92CC;
    --secondary: #3E92CC;
    /* Alias for secondary color consistency */
    --accent: #FF3C38;
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
    --text-dark: #2D3142;
    --text-muted: #6C757D;
    --success: #4CAF50;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Hidden States */
.menu-toggle,
.mobile-nav-overlay {
    display: none;
}

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

body {
    font-family: 'Outfit', 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

/* --- Shared Header --- */
.top-bar {
    background: #f8f9fa;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
    color: var(--text-muted);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-right {
    display: flex;
    align-items: center;
}

.top-bar-divider {
    margin: 0 15px;
    opacity: 0.2;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: 0.3s;
}

.lang-btn:hover,
.lang-dropdown.active .lang-btn {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

.lang-btn i {
    font-size: 18px;
    opacity: 0.7;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    min-width: 140px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    padding: 8px;
    display: none;
    z-index: 1000;
}

.lang-dropdown:hover .lang-menu,
.lang-dropdown.active .lang-menu {
    display: block;
    animation: slideUp 0.3s ease;
}

.lang-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: 500;
}

.lang-menu a:hover {
    background: #f8fafc;
    color: var(--primary);
}

.lang-menu a.active {
    background: #f0f7ff;
    color: var(--primary);
    font-weight: 700;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-main {
    padding: 20px 0;
    background: var(--white);
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.main-logo {
    max-height: 65px;
    width: auto;
    display: block;
}

.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
    display: flex;
}

.search-container input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-family: inherit;
    transition: var(--transition);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 10px rgba(62, 146, 204, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 25px;
    border-radius: 50px;
    cursor: pointer;
}

.nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    background: var(--primary);
    color: var(--white);
}

.nav-menu .container {
    display: flex;
    position: relative;
    align-items: center;
}

.nav-menu a {
    display: block;
    padding: 16px 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu a.active {
    background: var(--primary-light);
}

/* --- Mega Menu --- */
.has-mega {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    border-top: 2px solid var(--primary);
}

.has-mega:hover .mega-menu {
    display: block;
}

.mega-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 400px;
    padding: 0 !important;
}

.mega-categories {
    background: #f8f9fa;
    border-right: 1px solid #eee;
    padding: 20px 0;
}

.mega-cat-item {
    padding: 12px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #444;
}

.mega-cat-item:hover,
.mega-cat-item.active {
    background: #fff;
    color: var(--primary);
}

.mega-subcategories {
    padding: 30px;
}

.sub-panel {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sub-panel.active {
    display: grid;
}

.sub-column h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--primary);
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.sub-column a {
    display: block;
    padding: 5px 0;
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
}

.sub-column a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

/* --- Shared Footer --- */
.contact-section-v2 {
    padding: 120px 0;
    background: #f4f7fa;
}

footer {
    background: #0A2463;
    color: white;
    padding: 60px 0 20px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: #fff;
}

/* --- Breadcrumbs --- */
.breadcrumb {
    padding: 30px 0;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* --- Base Product Card (Used as fallback/base) --- */
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    border: 1px solid #f0f0f0;
}

.badge-new {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--success);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 36, 99, 0.6);
    backdrop-filter: blur(8px);
    overflow: auto;
}

@media (max-width: 992px) {
    .top-bar .top-left {
        display: none !important;
    }

    .top-bar .container {
        justify-content: center;
    }

    .top-bar .top-left {
        display: none !important;
    }

    .top-right {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .top-bar-divider {
        display: none !important;
    }

    .header-main .container {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: space-between !important;
        padding: 15px 20px;
    }

    .header-main .search-container {
        display: none !important;
    }

    .mobile-search {
        padding: 15px 20px;
        /* No bottom padding */
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
        flex: none !important;
        /* Prevent expansion in flex container */
    }

    .mobile-search input {
        width: 100%;
        height: 50px;
        background: #f4f7fa;
        border: 2px solid #f4f7fa;
        border-radius: 14px;
        padding: 0 60px 0 20px;
        font-size: 0.95rem;
        transition: 0.3s;
    }

    .mobile-search input:focus {
        background: #fff;
        border-color: var(--primary-light);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
        outline: none;
    }

    .mobile-search .search-btn {
        right: 28px;
        top: 22px;
        /* 15px pad + (50-36)/2 = 22px */
        width: 38px;
        height: 36px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: var(--primary);
        position: absolute;
    }

    .nav-wrapper {
        display: none;
    }

    .menu-toggle {
        display: block !important;
        background: none;
        border: none;
        color: var(--primary);
        cursor: pointer;
    }

    .menu-toggle i {
        font-size: 32px;
    }

    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(10, 36, 99, 0.5);
        backdrop-filter: blur(5px);
        z-index: 9999;
        transition: 0.4s;
        display: block;
    }

    .mobile-nav-overlay.active {
        left: 0;
    }

    .mobile-nav-content {
        width: 80%;
        max-width: 300px;
        height: 100%;
        background: #fff;
        display: flex;
        flex-direction: column;
        box-shadow: 10px 0 50px rgba(0, 0, 0, 0.2);
    }

    .mobile-nav-header {
        padding: 20px;
        background: var(--primary);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-nav-header img {
        height: 40px;
        filter: brightness(0) invert(1);
    }

    .menu-close {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav-links {
        padding: 0;
        /* Totally removed padding */
        flex: 1;
        overflow-y: auto;
    }

    .mobile-link {
        display: block;
        padding: 12px 25px;
        /* Slightly reduced horizontal/vertical padding */
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--primary);
        border-bottom: 1px solid #f0f0f0;
        text-decoration: none;
    }

    .mobile-link:hover {
        background: #f8fafc;
        color: var(--primary-light);
    }

    .mobile-nav-footer {
        padding: 30px 20px;
        border-top: 1px solid #eee;
        background: #fdfdfd;
    }

    .m-info {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 15px;
        font-size: 0.9rem;
        color: #666;
    }

    .m-info i {
        color: var(--primary-light);
        font-size: 18px;
    }

    h1 {
        font-size: 2.2rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    h3 {
        font-size: 1.4rem !important;
    }

    .unified-contact-card {
        grid-template-columns: 1fr !important;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 40px 20px !important;
    }

    .contact-form-panel div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .contact-section-v2 {
        padding: 60px 0 !important;
    }
}

.menu-toggle {
    display: none;
}