/* =========================================
   MUSICADEI - WORDPRESS SHARED HEADER
========================================= */

.md-header,
.md-header * {
    box-sizing: border-box;
}

.md-header {
    position: relative;
    z-index: 9999;
    width: 100%;
    height: 78px;
    color: #fff;
    background: linear-gradient(
        105deg,
        #791631 0%,
        #451321 43%,
        #210f16 75%,
        #130d10 100%
    );
    box-shadow: 0 3px 15px rgba(0, 0, 0, .16);
    font-family: Arial, Helvetica, sans-serif;
}

.md-header__inner {
    width: min(90%, 1440px);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.md-header .md-logo,
.md-header .md-logo:link,
.md-header .md-logo:visited,
.md-header .md-logo:hover,
.md-header .md-logo:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 12px;
    color: #fff !important;
    text-decoration: none !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: transform .3s ease, opacity .3s ease;
}

.md-header .md-logo__image {
    display: block;
    width: 190px;
    max-width: 24vw;
    max-height: 54px;
    height: auto;
    object-fit: contain;
    transition: inherit;
}

.md-header .md-logo:hover {
    transform: translateY(-2px);
    opacity: .85;
}

/* Navigation */
.md-header .md-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: clamp(20px, 2.05vw, 34px);
    height: 100%;
}

.md-header .md-nav > a,
.md-header .md-nav__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #f4edef;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(12px, .82vw, 15px);
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: color .22s ease, border-color .22s ease;
}

.md-header .md-nav > a:hover,
.md-header .md-nav > a.is-active,
.md-header .md-nav__trigger:hover,
.md-header .md-nav__item.dropdown-open .md-nav__trigger {
    color: #e9a0b1 !important;
    border-color: #b94c68;
}

.md-header .md-nav__item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.md-header .md-nav__trigger {
    gap: 9px;
}

.md-header .md-nav__chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .22s ease;
}

.md-header .md-nav__item.dropdown-open .md-nav__chevron {
    transform: rotate(225deg);
}

/* Dropdown */
.md-header .md-dropdown {
    position: absolute;
    top: calc(100% - 1px);
    left: -18px;
    z-index: 10000;
    min-width: 225px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 8px;
    background: rgba(29, 13, 19, .98);
    box-shadow: 0 16px 35px rgba(0, 0, 0, .28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(9px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.md-header .md-nav__item.dropdown-open .md-dropdown,
.md-header .md-nav__item:hover .md-dropdown,
.md-header .md-nav__item:focus-within .md-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.md-header .md-dropdown a {
    display: block !important;
    width: 100%;
    min-height: 0;
    padding: 11px 12px !important;
    border: 0 !important;
    border-radius: 5px;
    color: #f7eff1 !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    white-space: normal;
    transition: color .2s ease, background .2s ease, padding-left .2s ease;
}

.md-header .md-dropdown a:hover,
.md-header .md-dropdown a:focus-visible {
    padding-left: 17px !important;
    background: rgba(177, 54, 83, .22);
    color: #fff !important;
}

/* Social media */
.md-header .md-header-social {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 22px;
}

.md-header .md-header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    color: #fff !important;
    text-decoration: none !important;
    transition: color .3s ease, transform .3s ease;
}

.md-header .md-header-social a svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.md-header .md-header-social a:first-child svg,
.md-header .md-header-social a:last-child svg {
    fill: currentColor;
    stroke: none;
}

.md-header .md-header-social a:hover {
    color: #e9a0b1 !important;
    transform: translateY(-3px);
}

/* Mobile menu toggle */
.md-header .md-menu-toggle {
    display: none;
    width: 28px;
    height: 30px;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.md-header .md-menu-toggle i {
    display: block;
    width: 23px;
    height: 1px;
    background: #fff;
}

/* Tablet */
@media (max-width: 1100px) {
    .md-header__inner {
        width: 94%;
        gap: 15px;
    }

    .md-header .md-logo__image {
        width: 165px;
    }

    .md-header .md-nav {
        gap: 14px;
    }

    .md-header .md-nav > a,
    .md-header .md-nav__trigger {
        font-size: 11px;
    }

    .md-header .md-dropdown {
        min-width: 205px;
    }

    .md-header .md-header-social {
        gap: 12px;
    }
}

/* Mobile */
@media (max-width: 760px) {
    .md-header {
        height: 68px;
    }

    .md-header__inner {
        width: 90%;
        gap: 12px;
    }

    .md-header .md-menu-toggle {
        display: flex;
    }

    .md-header .md-logo {
        padding: 0 5px;
    }

    .md-header .md-logo__image {
        width: 155px;
        max-width: 42vw;
        max-height: 45px;
    }

    .md-header .md-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        z-index: 10000;
        height: auto;
        padding: 8px 5% 15px;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        background: #1a0d12;
        box-shadow: 0 12px 20px rgba(0, 0, 0, .2);
    }

    .md-header.menu-open .md-nav {
        display: flex;
    }

    .md-header .md-nav > a {
        display: flex;
        min-height: 0;
        padding: 13px 3px;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        font-size: 14px;
    }

    .md-header .md-nav__item {
        display: block;
        height: auto;
    }

    .md-header .md-nav__trigger {
        display: flex;
        width: 100%;
        min-height: 0;
        justify-content: space-between;
        padding: 13px 3px;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        font-size: 14px;
        line-height: 1.2;
    }

    .md-header .md-dropdown {
        position: static;
        display: none;
        min-width: 0;
        padding: 0 0 5px 12px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;
    }

    .md-header .md-nav__item.dropdown-open .md-dropdown {
        display: block;
    }

    .md-header .md-dropdown a {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }

    .md-header .md-header-social {
        margin-left: auto;
        gap: 12px;
    }
}

/* ==========================================
   MUSICADEI HEADER - TYPOGRAPHY
========================================== */

.md-header {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.md-header a,
.md-header button {
    font-family: inherit;
}

/* Main Navigation */
.md-header .md-nav > a,
.md-header .md-nav__trigger {
    font-family: inherit;
    font-weight: 600;
    letter-spacing: -0.2px;
}

/* Dropdown Menu */
.md-header .md-dropdown a {
    font-family: inherit;
    font-weight: 500;
}

/* Mobile Navigation */
@media (max-width: 760px) {
    .md-header .md-nav > a,
    .md-header .md-nav__trigger {
        font-weight: 600;
    }
}

/* ==========================================
   FIX TYPOGRAPHY DROPDOWN TRIGGER
========================================== */

.md-header .md-nav__trigger {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: inherit !important;
    font-weight: 600 !important;
    line-height: inherit !important;
    letter-spacing: -0.2px !important;
    text-transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    color: inherit;
}

/* Samakan ukuran semua menu navigasi */
.md-header .md-nav > a,
.md-header .md-nav__trigger {
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Active Navigation */
.md-header .md-nav > a.active,
.md-header .md-nav__trigger.active {
    color: #e7a0b1 !important;
}

/* Active Dropdown Item */
.md-header .md-dropdown a.active {
    color: #fff !important;
    background: rgba(177, 54, 83, .28);
}

/* ==========================================
   FIX DROPDOWN FOCUS OUTLINE
========================================== */

/* Hilangkan outline bawaan browser/theme */
.md-header .md-nav__trigger:focus,
.md-header .md-nav__trigger:active,
.md-header .md-nav__item:focus,
.md-header .md-nav__item:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

/* Hilangkan border tambahan pada trigger */
.md-header .md-nav__trigger {
    border: none !important;
}

/* Focus khusus keyboard */
.md-header .md-nav__trigger:focus-visible {
    outline: 2px solid rgba(231, 160, 177, .8) !important;
    outline-offset: 4px;
    border-radius: 3px;
}


/* ==========================================
   MUSICADEI HEADER - MOBILE NAVIGATION FIX
========================================== */

@media (max-width: 760px) {

    /* Navigation container */
    .md-header .md-nav {
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        padding: 8px 20px 15px !important;
        box-sizing: border-box;
        text-align: left !important;
    }

    /* Semua menu utama */
    .md-header .md-nav > a,
    .md-header .md-nav > .md-nav__item {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        box-sizing: border-box;
    }

    /* Link biasa */
    .md-header .md-nav > a {
        display: flex !important;
        align-items: center;
        justify-content: flex-start !important;
        width: 100% !important;
        min-height: 45px !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.12);
        text-align: left !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    /* Dropdown trigger */
    .md-header .md-nav__trigger {
        display: flex !important;
        align-items: center;
        justify-content: space-between !important;
        width: 100% !important;
        min-height: 45px !important;
        height: auto !important;
        margin: 0 !important;
        padding: 12px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.12) !important;
        background: transparent !important;
        text-align: left !important;
        font-family: 'Plus Jakarta Sans', sans-serif !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
    }

    /* Dropdown submenu */
    .md-header .md-dropdown {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 5px 0 8px 12px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .md-header .md-dropdown a {
        display: flex !important;
        align-items: center;
        width: 100% !important;
        min-height: 38px;
        padding: 9px 10px !important;
        box-sizing: border-box;
        text-align: left !important;
        font-family: 'Plus Jakarta Sans', sans-serif !important;
        font-size: 13px !important;
        font-weight: 500 !important;
    }

    /* Active menu */
    .md-header .md-nav > a.active,
    .md-header .md-nav__trigger.active {
        color: #e7a0b1 !important;
    }

    /* Chevron */
    .md-header .md-nav__chevron {
        flex-shrink: 0;
        margin-left: 10px;
    }

}



/* ==========================================
   MUSICADEI - NESTED DROPDOWN
   GUITARS & BASS
========================================== */

.md-header .md-dropdown__nested {
    position: relative;
    width: 100%;
}

.md-header .md-dropdown__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 12px;
    margin: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #f7eff1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.md-header .md-dropdown__trigger:hover,
.md-header .md-dropdown__trigger.active {
    color: #e7a0b1;
    background: rgba(177, 54, 83, .22);
}

.md-header .md-dropdown__trigger:focus {
    outline: none;
    box-shadow: none;
}

.md-header .md-dropdown__arrow {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    margin-left: 10px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .2s ease;
}

.md-header .md-dropdown__nested.nested-open .md-dropdown__arrow {
    transform: rotate(45deg);
}

/* Desktop submenu */
.md-header .md-dropdown__submenu {
    position: absolute;
    top: 0;
    left: calc(100% + 5px);
    min-width: 205px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 8px;
    background: rgba(29, 13, 19, .98);
    box-shadow: 0 16px 35px rgba(0, 0, 0, .28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(7px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 1300;
}

.md-header .md-dropdown__nested:hover .md-dropdown__submenu,
.md-header .md-dropdown__nested:focus-within .md-dropdown__submenu,
.md-header .md-dropdown__nested.nested-open .md-dropdown__submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.md-header .md-dropdown__submenu a {
    display: block !important;
    width: 100%;
    padding: 11px 12px !important;
    border: 0 !important;
    border-radius: 5px;
    color: #f7eff1 !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: color .2s ease, background .2s ease;
}

.md-header .md-dropdown__submenu a:hover,
.md-header .md-dropdown__submenu a.active {
    color: #fff !important;
    background: rgba(177, 54, 83, .28);
}


/* ==========================================
   MOBILE NESTED DROPDOWN
========================================== */

@media (max-width: 760px) {

    .md-header .md-dropdown__nested {
        position: relative;
        width: 100%;
    }

    .md-header .md-dropdown__trigger {
        min-height: 38px;
        padding: 9px 10px;
        font-size: 13px;
    }

    .md-header .md-dropdown__arrow {
        transform: rotate(45deg);
    }

    .md-header .md-dropdown__nested.nested-open .md-dropdown__arrow {
        transform: rotate(225deg);
    }

    .md-header .md-dropdown__submenu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        padding: 4px 0 5px 12px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .md-header .md-dropdown__nested.nested-open .md-dropdown__submenu {
        display: block;
    }

    .md-header .md-dropdown__submenu a {
        min-height: 36px;
        padding: 9px 12px !important;
        font-size: 13px !important;
    }

}



