/* ============================================================
   ANNOUNCEMENT BAR
============================================================ */
.ann-bar {
    background: #2A1B38;
    color: rgba(245,245,245,0.82);
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
    text-align: center;
    position: relative;
    z-index: 1100;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    overflow: hidden;
    max-height: 100px;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
    opacity: 1;
}
.ann-bar.hide {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: none;
}
.ann-bar a {
    color: #D4956A;
    text-decoration: none;
    font-weight: 500;
}
.ann-bar a:hover { color: #fff; }
.ann-close {
    position: absolute;
    right: 1rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: rgba(245,245,245,0.45);
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.ann-close:hover { color: #fff; }

/* ============================================================
   MAIN NAV WRAPPER
============================================================ */
#mainNav {
    font-family: 'Jost', sans-serif;
    background: rgba(245,245,245,0.9);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border-bottom: 1px solid rgba(42,27,56,0.1);
    padding: 1rem 3rem;
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: all 0.35s ease;
}
#mainNav.scrolled {
    background: rgba(42,27,56,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.55rem 2rem;
    border-bottom: 1px solid rgba(184,115,51,0.2);
    box-shadow: 0 4px 30px rgba(26,15,36,0.2);
}
#mainNav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1320px; /* Bootstrap default container max-width for XXL */
    margin: 0 auto;
}

/* ============================================================
   LOGO
============================================================ */
.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: #2A1B38;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.04em;
    transition: color 0.3s;
    flex-shrink: 0;
}
.nav-logo .gem { color: #B87333; transition: transform 0.35s ease; }
.nav-logo:hover .gem { transform: rotate(45deg) scale(1.15); display: inline-block; }
#mainNav.scrolled .nav-logo { color: #D4956A; }

/* ============================================================
   DESKTOP MENU
============================================================ */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0; padding: 0;
    gap: 0.1rem;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2A1B38;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: 3px;
    transition: color 0.25s, background 0.25s;
    white-space: nowrap;
}
.nav-menu > li > a:hover { color: #B87333; }
#mainNav.scrolled .nav-menu > li > a { color: rgba(245,245,245,0.82); }
#mainNav.scrolled .nav-menu > li > a:hover { color: #D4956A; }

.nav-arrow {
    font-size: 0.55rem;
    transition: transform 0.3s ease;
    display: inline-block;
}
.nav-menu > li:hover .nav-arrow { transform: rotate(180deg); }

/* ============================================================
   MEGA MENU
============================================================ */
.has-mega { position: static !important; }
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%; right: auto; transform: translateX(-50%) translateY(-6px);
    width: 100vw; max-width: 1200px;
    background: #fff;
    border-top: 2px solid #B87333;
    box-shadow: 0 20px 60px rgba(26,15,36,0.14);
    opacity: 0;
    visibility: hidden;
    transition: all 0.28s ease;
    z-index: 900;
    border-radius: 0 0 6px 6px;
}
.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.mega-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    padding: 1.8rem 2rem 2rem;
}
.mega-col {
    padding: 0 1.5rem;
    border-right: 1px solid rgba(42,27,56,0.07);
}
.mega-col:first-child { padding-left: 0; }
.mega-col:last-child  { padding-right: 0; border-right: none; }

.mega-col-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(42,27,56,0.08);
}
.mega-col-head .icon { font-size: 1.3rem; }
.mega-col-head h6 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #2A1B38;
    margin: 0;
}
.mega-col-head small {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6B5F78;
    display: block;
}

.gem-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.gem-list li a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.38rem 0.5rem;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.8rem;
    color: #0F0F0F;
    transition: all 0.2s;
}
.gem-list li a:hover { background: #EDE8F5; padding-left: 0.9rem; }
.gem-list .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.gem-list .gname { flex: 1; }
.gem-list .planet {
    font-size: 0.63rem;
    color: #6B5F78;
    white-space: nowrap;
}

.purpose-list { list-style: none; padding: 0; margin: 0; }
.purpose-list li a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.38rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    color: #0F0F0F;
    text-decoration: none;
    transition: all 0.2s;
}
.purpose-list li a:hover { background: #EDE8F5; padding-left: 0.9rem; }
.purpose-list li a i { color: #B87333; width: 14px; font-size: 0.8rem; }

.mini-div { height: 1px; background: rgba(42,27,56,0.07); margin: 0.8rem 0; }

.mega-promo {
    background: linear-gradient(145deg, #2A1B38, #1A0F24);
    border-radius: 6px;
    padding: 1.6rem 1.4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.mega-promo::before {
    content: '';
    position: absolute;
    top: -30%; right: -20%;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184,115,51,0.18) 0%, transparent 70%);
}
.mega-promo-badge {
    display: inline-block;
    background: #B87333;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
}
.mega-promo .gem-icon { font-size: 2.2rem; margin-bottom: 0.7rem; }
.mega-promo h5 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 400;
    color: #F5F5F5;
    margin-bottom: 0.6rem;
    line-height: 1.35;
}
.mega-promo p {
    font-size: 0.75rem;
    color: rgba(245,245,245,0.55);
    line-height: 1.6;
    margin-bottom: 1.1rem;
}
.btn-promo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #B87333;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.55rem 1.3rem;
    text-decoration: none;
    transition: background 0.25s, transform 0.25s;
}
.btn-promo:hover { background: #D4956A; color: #fff; transform: translateY(-2px); }
.mega-quick-links { margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.mega-quick-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.76rem;
    color: #2A1B38;
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    border-radius: 3px;
    transition: all 0.2s;
}
.mega-quick-links a i { color: #B87333; }
.mega-quick-links a:hover { background: #EDE8F5; padding-left: 0.9rem; }

/* ============================================================
   SIMPLE DROPDOWN
============================================================ */
.has-drop { position: relative; }
.drop-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: #fff;
    border-top: 2px solid #B87333;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 16px 40px rgba(26,15,36,0.13);
    min-width: 270px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 900;
    padding: 0.4rem 0;
}
.has-drop:hover .drop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.drop-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 1.1rem;
    text-decoration: none;
    color: #0F0F0F;
    transition: all 0.2s;
}
.drop-item:hover { background: #EDE8F5; padding-left: 1.4rem; }
.drop-item i { color: #B87333; font-size: 1rem; flex-shrink: 0; width: 18px; text-align: center; }
.drop-item strong { display: block; font-size: 0.82rem; font-weight: 500; color: #2A1B38; }
.drop-item small  { display: block; font-size: 0.67rem; color: #6B5F78; margin-top: 1px; }
.drop-divider { height: 1px; background: rgba(42,27,56,0.07); margin: 0.3rem 0; }

/* Rudraksha grid dropdown */
.drop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.drop-grid .drop-item { padding: 0.48rem 0.9rem; }
.drop-grid .drop-item:hover { padding-left: 1.2rem; }
.drop-grid .drop-item strong { font-size: 0.76rem; }
.drop-grid .drop-item small  { font-size: 0.62rem; }
.drop-grid .drop-item i { font-size: 0.65rem; width: 12px; color: #8d6e63; }
.drop-special {
    border-top: 1px solid rgba(184,115,51,0.18);
    background: rgba(184,115,51,0.04);
}
.drop-special:hover { background: rgba(184,115,51,0.1); }

/* ============================================================
   UTILITY ICONS
============================================================ */
.nav-utils {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
}
.nav-icon-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none;
    color: #2A1B38;
    font-size: 1.05rem;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: all 0.25s;
}
.nav-icon-btn:hover { background: rgba(42,27,56,0.08); color: #B87333; }
#mainNav.scrolled .nav-icon-btn { color: rgba(245,245,245,0.82); }
#mainNav.scrolled .nav-icon-btn:hover { background: rgba(255,255,255,0.1); color: #D4956A; }

.cart-count {
    position: absolute;
    top: 3px; right: 3px;
    background: #B87333;
    color: #fff;
    font-size: 0.52rem;
    font-weight: 700;
    min-width: 15px; height: 15px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    padding: 0 2px;
    line-height: 1;
}

/* ============================================================
   SEARCH BAR
============================================================ */
.nav-search-bar {
    background: #2A1B38;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}
.nav-search-bar.open {
    max-height: 70px;
    padding: 0.7rem 0;
    opacity: 1;
}
.search-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(184,115,51,0.22);
    border-radius: 3px;
    padding: 0 1rem;
    max-width: 700px;
    margin: 0 auto;
}
.search-wrap i { color: #B87333; font-size: 0.85rem; }
.search-wrap input {
    flex: 1;
    background: none; border: none; outline: none;
    color: #F5F5F5;
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    padding: 0.6rem 0;
}
.search-wrap input::placeholder { color: rgba(245,245,245,0.35); }
.search-x {
    background: none; border: none;
    color: rgba(245,245,245,0.45);
    font-size: 0.85rem; cursor: pointer;
    transition: color 0.2s;
}
.search-x:hover { color: #D4956A; }

/* ============================================================
   MOBILE HAMBURGER
============================================================ */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none;
    cursor: pointer; padding: 4px;
}
.bar {
    display: block;
    width: 23px; height: 2px;
    background: #2A1B38;
    border-radius: 2px;
    transition: all 0.3s ease;
}
#mainNav.scrolled .bar { background: #F5F5F5; }
.nav-hamburger.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   RESPONSIVE — MOBILE (<1200px)
============================================================ */
@media (max-width: 1199px) {
    #mainNav {
        padding: 1rem 1.5rem;
    }
    #mainNav.scrolled {
        padding: 0.75rem 1.5rem;
    }
    .nav-hamburger { display: flex; }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #fff;
        border-top: 2px solid #B87333;
        border-bottom: 1px solid rgba(42,27,56,0.1);
        box-shadow: 0 10px 30px rgba(26,15,36,0.1);
        max-height: 75vh;
        overflow-y: auto;
        padding: 0.5rem 0;
        z-index: 800;
    }
    .nav-menu.open { display: flex; }
    #mainNav.scrolled .nav-menu { background: #1A0F24; }

    .nav-menu > li > a {
        padding: 0.7rem 1.3rem;
        justify-content: space-between;
        border-radius: 0;
        color: #2A1B38;
    }
    #mainNav.scrolled .nav-menu > li > a {
        color: rgba(245,245,245,0.9);
    }

    .mega-menu, .drop-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border-top: none !important;
        border-radius: 0 !important;
        border-right: none !important;
        border-left: 3px solid #B87333;
        margin-left: 1.2rem;
        min-width: unset; width: auto;
        display: none;
        padding: 0.3rem 0;
    }
    .mega-menu.mob-open, .drop-menu.mob-open { display: block; }
    .mega-inner {
        grid-template-columns: 1fr;
        padding: 0.5rem 1rem;
        gap: 0;
    }
    .mega-col { border-right: none; padding: 0.5rem 0.5rem; }
    .mega-promo { display: none; }
    .drop-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .nav-logo { font-size: 1.2rem; }
    .nav-utils { gap: 0; }
    .nav-icon-btn { width: 32px; height: 32px; font-size: 0.95rem; }
    #mainNav { padding: 0.8rem 1rem; }
    .ann-bar { font-size: 0.65rem; padding: 0.4rem 0.8rem; }
    .ann-close { right: 0.5rem; }
}

/* States — Not Available */
.rudraksha-disabled > a,
.jewelry-disabled > a {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}
.rudraksha-disabled .drop-grid,
.rudraksha-disabled .drop-divider,
.rudraksha-disabled .drop-special,
.jewelry-disabled .drop-item {
    opacity: 5;
    filter: blur(2px);
    pointer-events: none;
    user-select: none;
}
.rudraksha-disabled .drop-menu::after,
.jewelry-disabled .drop-menu::after {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2A1B38;
    background: rgba(255, 255, 255, 0.438);
    text-align: center;
    padding: 1rem;
    z-index: 10;
}
.rudraksha-disabled .drop-menu::after { content: "🚫  Currently Not Available in India"; }
.jewelry-disabled .drop-menu::after { content: "🚫  Coming Soon"; }
