/* =========================
   Header Container & Layout
   ========================= */
#header {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.28);
    border-bottom: 1px solid #eaeaea;
    font-family: 'Inter', Arial, sans-serif;
}

.header-nav {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 0 32px;
    gap: 24px;
}

/* =========================
   Logo
   ========================= */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-img {
    max-width: 100px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.logo-title {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #222;
    line-height: 1.1;
    margin-left: 2px;
    letter-spacing: -0.5px;
}

/* =========================
   Menu Area
   ========================= */
.menu-area {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    padding-right: 40px;
    position: relative;
}

/* Menu Link */
.menu-area a {
    font-weight: 500;
    color: #222 !important;
    font-size: 1rem;
    text-decoration: none;
    padding: 6px 0;
    border-radius: 6px;
    position: relative;
    transition: color 0.2s;
    background: none;
}

/* Animated underline untuk semua link menu */
.menu-area a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #222;
    transition: width .25s ease;
    display: block;
}
.menu-area a:hover::after,
.menu-area a.active::after {
    width: 100%;
}

/* Text glow effect on hover */
.menu-area a:hover {
    background: none;
    box-shadow: none;
    color: #0a2342 !important;
    text-shadow: 0 0 8px #ff7e5f;
    transition: text-shadow 0.2s, color 0.2s;
}

/* Dropdown Menu */
.menu-area .dropdown-menu-nav {
    position: relative;
    display: inline-block;
}
.menu-area .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

/* Dropdown menu animation (hover) */
.menu-area .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scaleY(0.98);
    transition: 
        opacity 0.25s cubic-bezier(.4,0,.2,1),
        transform 0.25s cubic-bezier(.4,0,.2,1),
        visibility 0.25s;
    pointer-events: none;
    position: absolute;
    top: 110%;
    left: 0;
    min-width: 160px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    z-index: 100;
    padding: 6px 0;
}
.menu-area .dropdown-menu-nav:hover .dropdown-menu,
.menu-area .dropdown-menu-nav:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scaleY(1);
    pointer-events: auto;
}
.menu-area .dropdown-item {
    padding: 10px 18px;
    display: block;
    color: #222;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s;
}
.menu-area .dropdown-item:hover {
    background: #f2f6fa;
    color: #0a2342;
}
.menu-area .dropdown-toggle::after {
    display: none !important;
}

/* animasi caret dropdown */
.menu-area .caret-icon {
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.menu-area .dropdown-menu-nav.open .caret-icon {
    transform: rotate(180deg);
}

/* =========================
   Profile Dropdown
   ========================= */
.profile-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #0a2342;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s;
    cursor: pointer;
    padding: 0;
}
.profile-icon:hover {
    border-color: #48bfc3;
}
.profile-icon i.fa-user-circle {
    font-size: 2rem;
    color: #808080;
}
.profile-dropdown {
    position: relative;
}
.profile-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: #fff;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    z-index: 999;
    padding: 6px 0;
}
.profile-dropdown .dropdown-menu.show {
    display: block;
}
.profile-dropdown .dropdown-item {
    padding: 10px 18px;
    display: block;
    color: #222;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s;
}
.profile-dropdown .dropdown-item:hover {
    background: #f2f6fa;
    color: #0a2342;
}

/* =========================
   Header Action (Login & Cart)
   ========================= */
.header-action {
    display: flex;
    align-items: center;
    gap: 16px;
}
.btn-login {
    background: #0a2342;
    color: #fff !important;
    font-weight: 400;
    border-radius: 8px;
    padding: 7px 15px;
    border: none;
    font-size: 1rem;
    transition: background 0.2s;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: inline-block;
}
.btn-login:hover {
    background: #48bfc3;
    color: #fff !important;
}

.cart-svg {
    transition: 
        transform 0.18s cubic-bezier(.4,0,.2,1),
        filter 0.18s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
}
.cart-svg:hover {
    transform: scale(1.18) rotate(-8deg);
    /* filter: drop-shadow(0 0 8px #48bfc3) brightness(1.2); */
}

/* =========================
   Hamburger Menu (Mobile)
   ========================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}
.menu-toggle span {
    position: absolute;
    left: 8px;
    width: 24px;
    height: 2.5px;
    background: #222;
    border-radius: 2px;
    transition: 0.3s cubic-bezier(.4,0,.2,1);
    transform-origin: center center;
}
.menu-toggle span:nth-child(1) { top: 12px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 19px;
}
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 19px;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 991px) {
    .header-nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px;
        min-height: 56px;
        position: relative;
        gap: 0;
    }
    .logo-title { font-size: 1rem; }
    .btn-login { padding: 7px 14px; font-size: 0.95rem; }
    .logo-area { flex: 0 0 auto; margin-bottom: 0; }
    .header-action { gap: 8px; margin-bottom: 0; }
    .menu-area {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
        background: #fff;
        position: absolute;
        top: 56px;
        right: 0;
        width: 100%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-30px) scaleY(0.95);
        transition: 
            opacity 0.35s cubic-bezier(.4,0,.2,1),
            transform 0.35s cubic-bezier(.4,0,.2,1);
        gap: 18px;
        font-size: 0.95rem;
    }
    .menu-area .dropdown-menu-nav { width: 100%; }
    .menu-area .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 12px 24px;
        font-size: 1.1rem;
    }
    .menu-area .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f8f9fa;
        border-radius: 0;
        min-width: 0;
        width: 100%;
        padding: 0;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
    }
    .menu-area .dropdown-menu .dropdown-item {
        padding-left: 40px;
        font-size: 1rem;
        border-bottom: 1px solid #eee;
    }
    .menu-area .dropdown-menu .dropdown-item:last-child {
        border-bottom: none;
    }
    .menu-area a {
        padding: 12px 24px;
        font-size: 1rem;
        border-radius: 0;
        width: 100%;
        text-align: left;
    }
    .menu-area.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scaleY(1);
    }
    .menu-toggle { display: flex; }
}
