/* ============================================================
   Chordia Jewels — Mega Menu CSS (Full Width, All Devices)
   ============================================================ */

/* ================================================================
   DESKTOP NAV (≥ 993px)
   ================================================================ */
@media (min-width: 993px) {
    .navigation, #mainMenu { display: block !important; }
    .cj-mob-hamburger       { display: none !important; }
    .cj-mob-close           { display: none !important; }
    .cj-mob-overlay         { display: none !important; }
}

/* ── Nav wrapper ── */
.cj-nav { width: 100%; }

.cj-nav__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    justify-content: center;
}

/* KEY: nav item static so mega can go full-width via fixed */
.cj-nav__item {
    position: static !important;
}

/* ── Nav link ── */
.cj-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 16px 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500 !important;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #1c1c1c;
    text-decoration: none !important;
    white-space: nowrap;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
    transition: color 0.2s;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.cj-nav__link:hover,
.cj-has-mega:hover > .cj-nav__link {
    color: #1c1c1c;
    text-decoration: none !important;
    border-bottom: none !important;
}
.cj-nav__link:focus,
.cj-nav__link:active {
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ── Chevron ── */
.cj-chevron {
    transition: transform 0.22s ease;
    flex-shrink: 0;
}
.cj-chevron-btn {
    background: none !important;
    border: none !important;
    padding: 4px 0 4px 4px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    color: inherit !important;
    flex-shrink: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
}
.cj-has-mega:hover .cj-chevron {
    transform: rotate(180deg);
}
.cj-has-mega.cj-mob-open .cj-chevron {
    transform: rotate(180deg);
}

/* ================================================================
   MEGA PANEL — Full width, fixed, below nav bar
   ================================================================ */
.cj-mega {
    display: none;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    background: #ffffff;
    border-top: 2px solid #1c1c1c;
    border-bottom: 1px solid #e8e2d9;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    z-index: 99999;
    /* top is set dynamically by JS */
}

@media (min-width: 993px) {
    .cj-has-mega:hover > .cj-mega {
        display: block !important;
    }
}

/* ── Mega inner — centered content with max-width ── */
.cj-mega__inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    padding: 40px 60px 48px !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* ── Each column — equal flex, generous width ── */
.cj-mega__col {
    flex: 1 1 0% !important;
    min-width: 180px !important;
    padding: 0 56px 0 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    float: none !important;
}
.cj-mega__col:last-child {
    padding-right: 0 !important;
}

/* ── Column title (plain) ── */
.cj-mega__col-title {
    display: block !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;
    color: #1c1c1c !important;
    margin: 0 0 16px !important;
    padding: 0 0 12px !important;
    border: none !important;
    border-bottom: 1px solid #e8e2d9 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    float: none !important;
}

/* ── Column title (clickable link) ── */
a.cj-mega__col-title--link {
    display: block !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;
    color: #1c1c1c !important;
    margin: 0 0 16px !important;
    padding: 0 0 12px !important;
    border: none !important;
    border-bottom: 1px solid #e8e2d9 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    float: none !important;
    transition: color 0.15s !important;
}
a.cj-mega__col-title--link:hover {
    color: #262523 !important;
    text-decoration: none !important;
}

.cj-mega__col a.cj-mega__col-title--link:hover {
    color: #100f0c !important;
  
}

/* ── Column list ── */
.cj-mega__col ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    float: none !important;
}
.cj-mega__col ul li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
    list-style: none !important;
}
.cj-mega__col ul li a {
    display: block !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #666 !important;
    text-decoration: none !important;
    padding: 8px 0 !important;
    line-height: 1.5 !important;
    border: none !important;
    white-space: nowrap !important;
    float: none !important;
    transition: color 0.15s, padding-left 0.15s !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
}
.cj-mega__col ul li a:hover {
    color: #1c1c1c !important;
    padding-left: 6px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

/* ================================================================
   LARGE DESKTOP (1400px+) — iMac, 4K
   ================================================================ */
@media (min-width: 1400px) {
    .cj-nav__link { font-size: 12px; padding: 18px 14px; }
    .cj-mega__inner {
        max-width: 1400px !important;
        padding: 44px 80px 52px !important;
    }
    .cj-mega__col ul li a { font-size: 14px !important; }
    .cj-mega__col-title,
    a.cj-mega__col-title--link { font-size: 14px !important; }
}

/* ================================================================
   TABLET (768px – 992px) — iPad
   ================================================================ */
@media (min-width: 768px) and (max-width: 992px) {
    .cj-mega__inner {
        padding: 28px 32px 36px !important;
    }
    .cj-mega__col {
        min-width: 140px !important;
        padding-right: 32px !important;
    }
}

/* ================================================================
   MOBILE (≤ 992px) — Accordion slide-in panel
   ================================================================ */
@media (max-width: 992px) {

    .navigation, #mainMenu { display: none !important; }

    .navigation.cj-nav-wrapper-open,
    #mainMenu.cj-nav-wrapper-open {
        display: block !important;
        position: fixed;
        top: 0; left: 0;
        z-index: 999999;
        width: 0; height: 0;
        overflow: visible;
        background: none;
    }

    /* Hamburger */
    .cj-mob-hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px 10px 6px 4px;
        color: #1c1c1c;
        flex-shrink: 0;
        order: -1;
        -webkit-tap-highlight-color: transparent;
    }
    .icons.header-actions,
    .icons,
    .header-actions {
        justify-content: flex-end !important;
        gap: 12px !important;
    }

    /* Slide-in panel */
    .cj-nav.cj-mobile-open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: #fff;
        z-index: 999999;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18) !important;
        padding: 0;
        animation: cjSlideIn 0.25s ease;
    }
    @keyframes cjSlideIn {
        from { transform: translateX(-100%); }
        to   { transform: translateX(0); }
    }

    /* Close button */
    .cj-mob-close {
        display: flex !important;
        align-items: center;
        position: sticky;
        top: 0; left: 0;
        width: 100%;
        height: 52px;
        min-height: 52px;
        flex-shrink: 0;
        background: #fff;
        border-bottom: 1px solid #f0ebe3;
        border-radius: 0;
        border-top: none; border-left: none; border-right: none;
        font-size: 13px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        letter-spacing: 0.05em;
        cursor: pointer;
        color: #1c1c1c;
        padding: 0 20px;
        z-index: 10;
        gap: 10px;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    /* Nav list */
    .cj-nav__list {
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
        padding: 0; margin: 0;
        justify-content: flex-start !important;
        flex: 1 1 auto;
    }
    .cj-nav__item {
        width: 100%;
        border-bottom: 1px solid #f0ebe3;
        flex-shrink: 0;
        position: relative !important;
    }
    .cj-nav__link {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px !important;
        font-size: 13px !important;
        width: 100%;
        color: #1c1c1c !important;
        box-sizing: border-box;
        text-decoration: none !important;
    }
    .cj-nav__link:hover {
        background: #f3f2f0;
        color: #1c1c1c !important;
    }

    /* Chevron button mobile — larger tap target */
    .cj-chevron-btn {
        min-width: 44px !important;
        min-height: 44px !important;
        justify-content: center !important;
        padding: 0 !important;
        margin-right: -8px !important;
    }

    /* Mega panel — accordion, NOT fixed */
    .cj-mega {
        display: none !important;
        position: static !important;
        width: 100% !important;
        transform: none !important;
        min-width: 0 !important;
        max-width: 100% !important;
        border: none !important;
        border-top: 1px solid #f0ebe3 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #f3f2f0 !important;
    }
    .cj-has-mega.cj-mob-open > .cj-mega {
        display: block !important;
    }

    .cj-mega__inner {
        flex-direction: column !important;
        padding: 12px 20px 20px !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 0 !important;
    }
    .cj-mega__col {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 12px 0 4px !important;
        border-top: 1px solid #ede8e0 !important;
        border-left: none !important;
    }
    .cj-mega__col:first-child {
        border-top: none !important;
        padding-top: 4px !important;
    }
    .cj-mega__col-title,
    a.cj-mega__col-title--link {
        font-size: 10px !important;
        margin-bottom: 10px !important;
        white-space: normal !important;
    }
    .cj-mega__col ul li a {
        font-size: 13px !important;
        padding: 8px 0 !important;
        color: #5a5a5a !important;
        white-space: normal !important;
    }

    /* Overlay */
    .cj-mob-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 999998;
    }
   
}

/* ── iPhone SE (320–374px) ── */
@media (max-width: 374px) {
    .cj-nav.cj-mobile-open { width: 92% !important; max-width: 92% !important; }
    .cj-nav__link           { font-size: 12px !important; padding: 14px 16px !important; }
    .cj-mob-close           { font-size: 11px !important; padding: 0 16px !important; }
    .cj-mega__inner         { padding: 10px 16px 16px !important; }
}

/* ── iPhone 14/15 (375–430px) ── */
@media (min-width: 375px) and (max-width: 430px) {
    .cj-nav.cj-mobile-open { width: 88%; max-width: 300px; }
}

/* ── Large phones (431–767px) ── */
@media (min-width: 431px) and (max-width: 767px) {
    .cj-nav.cj-mobile-open { width: 75%; max-width: 340px; }
}

/* ── iPad (768–992px) ── */
@media (min-width: 768px) and (max-width: 992px) {
    .cj-nav.cj-mobile-open          { width: 55%; max-width: 380px; }
    .cj-nav__link                   { font-size: 13px !important; padding: 18px 24px !important; }
    .cj-mob-close                   { height: 58px !important; font-size: 13px !important; }
    .cj-mega__col ul li a           { font-size: 14px !important; }
}

/* ── iPhone notch safe area ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 992px) {
        .cj-nav.cj-mobile-open { padding-bottom: env(safe-area-inset-bottom); }
    }
}

/* ── Retina / Mac Retina ── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cj-nav__link,
    .cj-mega__col ul li a {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .cj-nav.cj-mobile-open { animation: none !important; }
    .cj-chevron, .cj-nav__link, .cj-mega__col ul li a { transition: none !important; }
}