/* ==========================================================================
   EXPLORE CATEGORY - 3 BOX LAYOUT
   ========================================================================== */

.category-placeholder-434 {
    display: grid;
    grid-template-columns: 44fr 56fr;
    grid-template-rows: 1fr 1fr;
    gap: clamp(12px, 1.2vw, 24px);
    padding: clamp(32px, 5vh, 80px) clamp(20px, 9%, 180px);
    width: 100%;
    margin-top: clamp(40px, 5vh, 80px);
    height: clamp(400px, 65vh, 9999px);
    background: #eeeeef;
    box-sizing: border-box;
}

/* ── KOTAK KIRI: Biru + Gambar ── */
.category-placeholder-left {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
    background: #1f4390;
    border-radius: 0;
    height: 100%;
    align-self: stretch;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    clip-path: url(#leftBoxClip);
}

.category-image-434 {
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
    margin: auto;
    transform: translate(-20px, -35px);
}

/* ── KOTAK KANAN WRAPPER ── */
.category-placeholder-right {
    grid-row: 1 / 3;
    grid-column: 2 / 3;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: clamp(12px, 1.2vw, 24px);
    height: 100%;
    align-self: stretch;
}

/* ── KOTAK KANAN ATAS: Explore Categories text ── */
.category-placeholder-top {
    background: #00000000;
    border-radius: 24px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(24px, 4vw, 50px) clamp(24px, 4vw, 50px) clamp(24px, 4vw, 50px) 0px;
    overflow: hidden;
    position: relative;
}

.category-title-434 {
    font-size: clamp(48px, 6vw, 140px);
    font-weight: 1100;
    color: transparent;
    -webkit-text-stroke: 3px #1f4390;
    line-height: 1.1;
    text-align: left;
    user-select: none;
    margin: 0;
}

.category-title-sub {
    font-size: clamp(12px, 1.3vw, 16px);
    color: #00000000;
    margin-top: 12px;
    font-weight: 400;
}

/* ── KOTAK KANAN BAWAH: Category Cards ── */
.category-placeholder-bottom {
    background: #00000000;
    border-radius: 24px;
    width: calc(100% + 14vw);
    margin-left: -14vw;
    height: 100%;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.category-slider-container-434 {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
}

.category-slider-container-434.grabbing { cursor: grabbing; }
.category-slider-container-434::-webkit-scrollbar { display: none; }

.category-slider-434 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: clamp(10px, 1.5vw, 16px);
    height: 100%;
    align-items: flex-start;
    width: max-content;
    will-change: transform;
}

/* Category Card */
.category-card-434 {
    background: #fff;
    border: 1.5px solid #ebebeb;
    border-radius: 16px;
    padding: clamp(10px, 1.2vw, 16px);
    width: clamp(190px, 18vw, 260px);
    height: clamp(140px, 14vw, 210px);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.category-card-434:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(31,67,144,0.13);
}

.category-card-434 img {
    width: clamp(60px, 6vw, 100px);
    height: clamp(60px, 6vw, 100px);
    object-fit: contain;
    margin-bottom: 12px;
}

.card-title-434 {
    font-size: clamp(13px, 1.2vw, 20px);
    font-weight: 600;
    color: #1f4390;
    text-decoration: none;
    display: block;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
}

.card-title-434:hover { color: #f7b963; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (min-width: 1920px) {
    .category-placeholder-434 {
        height: clamp(600px, 76vh, 9999px);
        padding: clamp(60px, 5.5vh, 120px) clamp(80px, 11%, 280px);
        gap: 20px;
    }
    .category-placeholder-right { gap: 20px; }
    .category-title-434 { -webkit-text-stroke: 4px #1f4390; }
}

@media (max-width: 768px) {
    .category-placeholder-434 {
        grid-template-columns: 1fr;
        grid-template-rows: 280px auto auto;
        gap: 12px;
        padding: clamp(20px, 4vw, 40px) clamp(12px, 5%, 32px);
        height: auto;
    }
    .category-placeholder-left {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
        height: 280px;
        clip-path: none;
    }
    .category-placeholder-right {
        grid-row: 2 / 4;
        grid-column: 1 / 2;
        grid-template-rows: auto auto;
        gap: 12px;
        height: auto;
    }
    .category-placeholder-top {
        min-height: 140px;
        height: auto;
    }
    .category-placeholder-bottom {
        min-height: 180px;
        height: auto;
        width: 100%;
        margin-left: 0;
    }
    .category-title-434 { -webkit-text-stroke: 2px #1f4390; }
}

@media (max-width: 440px) {
    .category-placeholder-434 {
        padding: 16px 5%;
        gap: 10px;
    }
    .category-placeholder-left { height: 240px; }
    .category-card-434 {
        width: clamp(85px, 26vw, 120px);
        height: clamp(85px, 24vw, 120px);
    }
}

/* ── Short screens: 1366x768, 1280x720 ── */
@media (max-height: 800px) and (min-width: 1024px) {
    .category-placeholder-434 {
        height: clamp(420px, 85vh, 9999px);
        padding: clamp(20px, 3.5vh, 50px) clamp(20px, 9%, 180px);
    }
}

/* ── 4K: 3840x2160 ── */
@media (min-width: 3000px) {
    .category-placeholder-434 {
        height: clamp(900px, 72vh, 9999px);
        padding: clamp(80px, 5vh, 160px) clamp(200px, 13%, 500px);
        gap: 32px;
    }
    .category-placeholder-right { gap: 32px; }
    .category-card-434 {
        width: clamp(160px, 7vw, 280px);
        height: clamp(160px, 7vw, 280px);
        border-radius: 24px;
    }
    .category-title-434 { -webkit-text-stroke: 5px #1f4390; }
}

/* ── Ultrawide: 3440x1440 ── */
@media (min-width: 2560px) and (max-width: 2999px) {
    .category-placeholder-434 {
        height: clamp(700px, 74vh, 9999px);
        padding: clamp(60px, 5vh, 120px) clamp(150px, 12%, 400px);
        gap: 24px;
    }
    .category-placeholder-right { gap: 24px; }
    .category-card-434 {
        width: clamp(130px, 7.5vw, 240px);
        height: clamp(130px, 7vw, 220px);
    }
}

/* ── JARAK BANNER → CATEGORY ── */
.banner-322-section {
    margin-bottom: clamp(40px, 6vh, 100px) !important;
}

.category-placeholder-434 {
    margin-top: clamp(40px, 6vh, 100px) !important;
}


/* ==========================================================================
   EXPLORE CATEGORY - MOBILE (Android & iOS)
   ========================================================================== */

@media (max-width: 768px) {

    .category-placeholder-left {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        pointer-events: none !important;
    }

    .category-placeholder-434 {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
        grid-template-rows: unset !important;
        gap: 16px !important;
        padding: 48px 20px 28px 20px !important;
        height: auto !important;
        min-height: unset !important;
        margin-top: 0 !important;
        background: #eeeeef;
        box-sizing: border-box;
        width: 100%;
    }

    .category-placeholder-right {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
        height: auto !important;
    }

    .category-placeholder-top {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 0 0 0 4px !important;
        min-height: unset !important;
        height: auto !important;
        background: transparent !important;
        border-radius: 0 !important;
        overflow: visible !important;
        width: 100% !important;
        text-align: left !important;
    }

    .category-placeholder-top h1,
    .category-placeholder-top h1.category-title-434,
    h1.category-title-434 {
        font-size: clamp(54px, 15vw, 88px) !important;
        font-weight: 900 !important;
        color: transparent !important;
        -webkit-text-stroke: 2.5px #1f4390 !important;
        line-height: 1.15 !important;
        text-align: left !important;
        margin: 0 !important;
        padding: 4px 0 !important;
        overflow: visible !important;
        width: 100% !important;
        display: block !important;
        float: none !important;
        transform: none !important;
    }

    .category-placeholder-bottom {
        width: 100% !important;
        margin-left: 0 !important;
        height: auto !important;
        min-height: unset !important;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        display: flex !important;
        align-items: flex-start !important;
    }

    .category-slider-container-434 {
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        cursor: auto !important;
        padding-bottom: 8px !important;
    }

    .category-slider-container-434::-webkit-scrollbar {
        display: none !important;
    }
    .category-slider-container-434 {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }

    .category-slider-434 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        align-items: flex-start !important;
        width: max-content !important;
        padding: 4px 2px 4px 2px !important;
    }

    .category-card-434 {
        width: clamp(120px, 30vw, 170px) !important;
        height: clamp(100px, 22vw, 140px) !important;
        border-radius: 14px !important;
        padding: 12px 14px !important;
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07) !important;
        background: #fff !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        border: 1.5px solid #ebebeb !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
        cursor: pointer !important;
    }

    .category-card-434:active {
        transform: scale(0.96) !important;
        box-shadow: 0 1px 4px rgba(31, 67, 144, 0.1) !important;
    }

    .category-card-434 img {
        width: clamp(52px, 12vw, 80px) !important;
        height: clamp(52px, 12vw, 80px) !important;
        object-fit: contain !important;
        margin-bottom: 8px !important;
    }

    .card-title-434 {
        font-size: clamp(10px, 2.6vw, 13px) !important;
        font-weight: 600 !important;
        color: #1f4390 !important;
        text-decoration: none !important;
        display: block !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .category-slider-container-434::before,
    .category-slider-container-434::after {
        display: none !important;
    }

    .banner-322-section {
        margin-bottom: 0 !important;
    }

    .category-placeholder-434 {
        margin-top: 0 !important;
    }
}

/* ==========================================================================
   EXTRA SMALL - HP kecil (max-width: 375px)
   ========================================================================== */
@media (max-width: 375px) {
    .category-title-434 {
        font-size: clamp(28px, 9vw, 42px) !important;
    }

    .category-card-434 {
        width: clamp(80px, 27vw, 110px) !important;
        height: clamp(80px, 27vw, 110px) !important;
        border-radius: 12px !important;
    }

    .category-card-434 img {
        width: clamp(38px, 12vw, 56px) !important;
        height: clamp(38px, 12vw, 56px) !important;
    }

    .card-title-434 {
        font-size: clamp(9px, 2.5vw, 11px) !important;
    }
}

/* ==========================================================================
   LANDSCAPE MODE - HP landscape
   ========================================================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .category-placeholder-434 {
        padding: 20px 20px 24px 20px !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 20px !important;
    }

    .category-placeholder-right {
        flex-direction: row !important;
        align-items: center !important;
        gap: 20px !important;
    }

    .category-placeholder-top {
        min-width: 160px !important;
        flex-shrink: 0 !important;
    }

    .category-title-434 {
        font-size: clamp(24px, 5vw, 40px) !important;
    }

    .category-placeholder-bottom {
        flex: 1 !important;
        overflow: hidden !important;
    }

    .category-card-434 {
        width: clamp(80px, 14vw, 110px) !important;
        height: clamp(80px, 12vh, 100px) !important;
    }
}

/* ==========================================================================
   SURFACE PRO 7 (912px) & ASUS ZENBOOK FOLD (853px): 769px - 1024px
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {

    /* ── Sembunyikan kotak biru kiri + override JS animated class ── */
    .category-placeholder-left,
    .category-placeholder-left.animated {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        grid-row: unset !important;
        grid-column: unset !important;
        pointer-events: none !important;
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }

    /* ── Grid jadi 1 kolom, height auto ── */
    .category-placeholder-434 {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        height: auto !important;
        min-height: unset !important;
        padding: 0px 40px 60px 40px !important;
        gap: 16px !important;
        margin-top: -20px !important;
    }

    /* ── Right wrapper: column ── */
    .category-placeholder-right {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        width: 100% !important;
        height: auto !important;
        align-items: flex-start !important;
    }

    /* ── Teks Explore Categories ── */
    .category-placeholder-top {
        width: 100% !important;
        flex-shrink: 0 !important;
        height: auto !important;
        min-height: unset !important;
        padding: 0 !important;
    }

    .category-title-434 {
        font-size: 110px !important;
        font-weight: 900 !important;
        -webkit-text-stroke: 3px #1f4390 !important;
    }

    /* ── Cards wrapper ── */
    .category-placeholder-bottom {
        width: 100% !important;
        margin-left: 0 !important;
        height: 160px !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
    }

    /* ── Slider container ── */
    .category-slider-container-434 {
        width: 100% !important;
        height: 100% !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        cursor: grab !important;
    }

    /* ── Slider row ── */
    .category-slider-434 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        height: 100% !important;
        align-items: center !important;
        width: max-content !important;
        padding: 4px !important;
    }

    /* ── Cards ── */
    .category-card-434 {
        width: 150px !important;
        height: 140px !important;
        flex-shrink: 0 !important;
    }

    .category-card-434 img {
        width: 60px !important;
        height: 60px !important;
    }

    .card-title-434 {
        font-size: 13px !important;
    }
}