.header-fixed-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    font-family:
        "Segoe UI",
        -apple-system,
        BlinkMacSystemFont,
        Roboto,
        sans-serif;
    border-top: 4px solid #ff0000;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.main-header-bg {
    background: #ffffff;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 80px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.logo-container a:hover {
    border-color: #ffcccc;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.15);
    transform: translateY(-1px);
}

.logo-container img {
    height: 48px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
    max-width: none !important;
}

.pc-location-wrapper {
    position: relative;
    flex-shrink: 0;
}

.pc-location-btn {
    background: #fff8f8;
    color: #333;
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    border: 1px solid #ffcccc;
}

.pc-location-btn:hover {
    background: #ffe6e6;
    border-color: #e50914;
}

.pc-location-icon {
    color: #e50914;
    font-size: 15px;
}

.pc-location-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.pc-location-text .pc-label {
    font-size: 11px;
    color: #777;
    font-weight: 500;
}

.pc-location-text .pc-value {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-location-arrow {
    font-size: 11px;
    color: #888;
}

.pc-location-dropdown {
    display: none;
    position: absolute;
    top: 115%;
    left: 0;
    width: 310px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 12px;
    border: 1px solid #f0f0f0;
}

.pc-location-dropdown.active {
    display: block;
}

.pc-location-search input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.pc-location-search input:focus {
    border-color: #e50914;
}

.pc-location-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pc-location-item {
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px;
    transition: background 0.2s;
}

.pc-location-item:hover {
    background: #fff5f5;
    color: #e50914;
}

.pc-location-item .badge-main {
    font-size: 11px;
    background: #e50914;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
}

.header-search {
    flex: 1;
    max-width: 550px;
}

.search-box-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-box-wrapper input {
    width: 100%;
    padding: 11px 50px 11px 42px;
    border-radius: 25px;
    border: 2px solid #e2e8f0;
    outline: none;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background: #fafafa;
}

.search-box-wrapper input:focus {
    background: #ffffff;
    border-color: #e50914;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15);
}

.search-btn-right {
    position: absolute;
    right: 4px;
    background: linear-gradient(135deg, #ffc700, #ffa000);
    border: none;
    color: #222;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        transform 0.2s,
        background 0.2s;
    box-shadow: 0 2px 5px rgba(255, 199, 0, 0.4);
}

.search-btn-right:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #ffd700, #ffb300);
}

.login-wrapper {
    position: relative;
    flex-shrink: 0;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.login-btn-trigger {
    color: #222;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 20px;
    transition: background 0.2s;
    cursor: pointer;
    background: #f8f8f8;
    border: 1px solid #eee;
}

.login-btn-trigger:hover {
    background: #fff3f3;
    border-color: #ffcccc;
}

.user-avatar-icon {
    width: 30px;
    height: 30px;
    background: #e50914;
    color: #ffc700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.login-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: 280px;
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 999;
    border: 1px solid #f1f5f9;
    box-sizing: border-box;
}

.login-wrapper:hover .login-dropdown,
.login-dropdown:hover {
    display: block;
}

.login-dropdown input[type="email"],
.login-dropdown input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.login-dropdown input:focus {
    border-color: #e50914;
}

.login-dropdown .options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 14px;
    color: #64748b;
}

.login-dropdown .options a {
    color: #e50914;
    text-decoration: none;
    font-weight: 600;
}

.login-dropdown .btn-masuk {
    width: 100%;
    background: linear-gradient(135deg, #e50914, #b80710);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.login-dropdown .btn-masuk:hover {
    opacity: 0.9;
}

.login-dropdown .register-text {
    text-align: center;
    font-size: 12px;
    margin-top: 12px;
    color: #64748b;
}

.login-dropdown .register-text a {
    color: #e50914;
    font-weight: 700;
    text-decoration: none;
}

.user-menu-item {
    display: block;
    padding: 10px 0;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    transition: color 0.2s;
}

.user-menu-item:hover {
    color: #e50914;
}

.btn-logout {
    width: 100%;
    background: #222;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: #000;
}

.bottom-bar-bg {
    background: #ff0000;
    position: relative;
}

.bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
}

.bottom-bar .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.bottom-bar .nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
}

.bottom-bar .nav-links a:hover,
.bottom-bar .nav-links a.active {
    color: #ffd700;
}

.bottom-bar .nav-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 3px;
    background: #ffd700;
    border-radius: 2px;
    transition: width 0.2s ease-in-out;
}

.bottom-bar .nav-links a:hover::after,
.bottom-bar .nav-links a.active::after {
    width: 100%;
}

.category-dropdown-container {
    position: relative;
    display: inline-block;
    height: 100%;
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.category-link-trigger {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 15px;
    padding: 4px 0;
    position: relative;
    transition: color 0.2s;
    cursor: pointer;
    user-select: none;
}

@media (min-width: 901px) {
    .category-dropdown-container:hover .category-popup-dropdown {
        display: block;
    }
    .category-dropdown-container:hover .category-link-trigger,
    .category-link-trigger.active {
        color: #ffd700;
    }
    .category-dropdown-container:hover .category-link-trigger::after,
    .category-link-trigger.active::after {
        width: 100%;
    }
}

.category-link-trigger::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 3px;
    background: #ffd700;
    border-radius: 2px;
    transition: width 0.2s ease-in-out;
}

.category-popup-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: -40px;
    width: 820px;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-radius: 0 12px 12px 12px;
    z-index: 1000;
    padding: 22px;
    border-top: 4px solid #ffd700;
    box-sizing: border-box;
}

.category-popup-header {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 6px;
}

.category-popup-header span {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.category-popup-header a {
    font-size: 13px;
    font-weight: 700;
    color: #e50914 !important;
    background: #fff;
    display: inline-block;
    padding: 6px 14px 6px 18px !important;
    border-radius: 4px;
    text-decoration: none;
    opacity: 1 !important;
    border: 1px solid #ffcccc;
    transition: all 0.2s ease;
}

.category-popup-header a:hover {
    background: #fff5f5;
    color: #b80710 !important;
    border-color: #ff9999;
}

.category-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
}

.category-item-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 12px 16px 12px 22px !important;
    border-radius: 8px;
    text-decoration: none;
    color: #0f172a !important;
    font-weight: 600;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.category-item-card:hover {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #e50914 !important;
}

.category-item-card svg {
    stroke: #64748b;
    transition: stroke 0.2s;
}

.category-item-card:hover svg {
    stroke: #e50914;
}

.lang-selector {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.mobile-bottom-dock {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99998;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    border-top: 1px solid #eee;
}

.mobile-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    flex: 1;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    transition:
        color 0.2s,
        background-color 0.2s;
}

.mobile-dock-item svg {
    font-size: 20px;
    margin-bottom: 2px;
    transition: stroke 0.2s;
}

.mobile-dock-item:hover,
.mobile-dock-item.active {
    color: #d97706;
    background-color: #fffbeb;
}

body {
    padding-top: 124px !important;
    padding-bottom: 0px;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 100000;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-bottom-sheet.active {
    transform: translateY(0);
}
.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.sheet-header h3 {
    margin: 0;
    font-size: 16px;
    color: #111;
}
.close-sheet-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
}
.sheet-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
    outline: none;
}
.sheet-search input:focus {
    border-color: #e50914;
}
.sheet-list {
    max-height: 210px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sheet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}
.sheet-item:hover,
.sheet-item:active {
    background: #ffe6e6;
    color: #e50914;
}
.sheet-item .badge-main {
    font-size: 11px;
    background: #e50914;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
}

@media (max-width: 900px) {
    body {
        padding-top: 75px !important;
        padding-bottom: 60px !important;
    }

    .desktop-only-element {
        display: none !important;
    }

    .main-header {
        height: 65px;
        padding: 0;
        gap: 12px;
    }

    .header-search {
        flex: 1;
        max-width: none;
    }

    .bottom-bar-bg {
        display: none;
        position: fixed;
        bottom: 60px;
        left: 0;
        width: 100%;
        background: #e50914;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.15);
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        max-height: 70vh;
        overflow-y: auto;
        z-index: 9998;
    }

    .bottom-bar-bg.mobile-active {
        display: block;
    }

    .bottom-bar {
        height: auto;
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .bottom-bar .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        width: 100%;
    }

    .bottom-bar .nav-links > a,
    .category-dropdown-container {
        width: 100%;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        font-size: 16px;
        text-align: left;
        display: block;
    }

    .bottom-bar .nav-links a::after,
    .category-link-trigger::after {
        display: none;
    }

    .category-popup-dropdown {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        background: #b80710;
        box-shadow: none;
        border: none;
        padding: 10px 0 0 0;
        display: none;
    }

    .category-dropdown-container.mobile-open .category-popup-dropdown {
        display: block !important;
    }

    .category-popup-header {
        background-color: #ffffff !important;
        border-bottom: 1px solid #e2e8f0;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
        padding: 12px !important;
        border-radius: 6px;
    }

    .category-popup-header span {
        color: #1e293b !important;
        font-weight: 700;
    }

    .category-popup-header a {
        color: #e50914 !important;
        background: #fff;
        border: 1px solid #ffcccc;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        padding: 8px !important;
    }

    .category-popup-header a:hover {
        background: #fff5f5;
        color: #b80710 !important;
    }

    .category-grid {
        grid-template-columns: 1fr;
        max-height: none;
        margin-top: 10px;
    }

    .category-item-card {
        background: #ffffff !important;
        color: #0f172a !important;
        border: 1px solid #cbd5e1;
    }

    .mobile-bottom-dock {
        display: flex;
    }
}
