@import url("./all.css");
/* BANNER IKLAN */

body {
    background-color: var(--white);
}

.banner_iklan {
    width: 100%;
    margin-top: 30px;
}

.banner_big_iklan {
    width: 100%;
}

.img_banner_big_iklan {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* KATEGORI */

.kategori {
    width: 100%;
    margin-top: 30px;
    display: flex;
    grid-gap: 30px;
    /* background-color: red; */
}

.kategori a {
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
}

.kategori a:hover {
    color: var(--orange);
}

.isi_kategori {
    width: 100%;
    height: 100%;
    padding: 15px;
    box-sizing: border-box;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid var(--white);
    transition: 0.2s;
}

.isi_kategori:hover {
    border: 2px solid var(--orange);
    border-radius: 3px;
}

.isi_kategori img {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

.isi_kategori p {
    font-size: 14px;
    margin-top: 15px;
    color: var(--black);
    text-align: center;
    line-height: 20px;
}

/* FLASH SALE */

.flash_sale {
    width: 100%;
    margin-top: 30px;
}

.title_flash_sale {
    background-color: var(--white);
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.box_title_flash_sale {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.box_title_flash_sale i {
    font-size: 20px;
    font-weight: 600;
    color: var(--orange);
    margin-right: 5px;
    margin-top: -3px;
}

.box_title_flash_sale p {
    font-size: 25px;
    font-weight: 600;
    color: var(--orange);
}

.countdown_flash_sale {
    display: flex;
    flex-direction: row;
    margin-left: 20px;
    align-items: center;
}

.countdown_flash_sale div {
    width: 32px;
    height: 30px;
    background-color: var(--orange);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

.countdown_flash_sale span {
    margin: 0 5px;
    font-weight: 600;
    color: var(--black);
    font-size: 16px;
}

.box_lihat_semua {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: var(--orange);
    font-size: 16px;
    font-weight: 400;
}

.box_lihat_semua i {
    margin-top: 1px;
}

.box_iklan_flash_sale {
    width: 100%;
    margin-top: 5px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-gap: 15px;
}

.iklan_flash_sale {
    width: 100%;
    background-color: var(--white);
    position: relative;
    border: 1px solid var(--border-grey);
}

.box_persen_flashsale {
    background-color: var(--orange);
    position: absolute;
    text-align: center;
    margin-top: 10px;
    padding: 5px 8px;
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    right: 0;
}

.iklan_flash_sale img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    float: left;
}

.text_iklan_flash_sale {
    width: 100%;
    padding: 13px 15px 15px 15px;
    float: left;
    box-sizing: border-box;
}

.text_iklan_flash_sale h1 {
    font-size: 20px;
    font-weight: 500;
    color: var(--orange);
    text-align: center;
}

.text_iklan_flash_sale span {
    font-size: 15px;
}

.total_barang_flash_sale {
    width: 100%;
    height: 20px;
    margin-top: 15px;
    background-color: var(--semi-orange);
    border-radius: 3px;
    position: relative;
}

.persen_barang_flash_sale {
    height: 100%;
    background-color: var(--orange);
    border-radius: 3px;
    position: absolute;
}

.text_barang_flash_sale {
    width: 100%;
    height: 100%;
    position: absolute;
}

.text_barang_flash_sale p {
    font-size: 12px;
    font-weight: 500;
    color: var(--white);
    text-align: center;
    line-height: 20px;
}

.box_fs_res {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* PRODUK TERLARIS */

.box_title_produk_terlaris {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.box_title_produk_terlaris p {
    font-size: 20px;
    font-weight: 500;
    color: var(--black);
}

.box_judul_ptl {
    width: 100%;
    height: 43px;
}

.box_judul_ptl p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--black);
    font-size: 14px;
}

.box_harga_ptl {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 15px;
    align-items: center;
}

.box_harga_ptl h1 {
    font-size: 15px;
    color: var(--orange);
    font-weight: 500;
}

.box_harga_ptl span {
    font-size: 13px;
}

.box_harga_ptl p {
    font-size: 11.5px;
    color: var(--black);
}

.iml_i {
    width: 100%;
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.isi_iml_i {
    width: 100%;
    background-color: var(--white);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px;
    box-sizing: border-box;
}

.isi_iml_i h1 {
    font-size: 17px;
    font-weight: 600;
    color: var(--black);
}

.isi_iml_i p {
    font-size: 14px;
    font-weight: 400;
    color: var(--semi-black);
    margin-top: 5px;
}

.isi_iml_i img {
    height: 60px;
}

.box_kategori_kota {
    width: 100%;
    /* background-color: red; */
}

.list_produk {
    border: 1px solid var(--border-grey);
}

.title_flash_sale {
    padding-top: 15px;
    padding-left: 0;
    padding-right: 0;
}

.csajdf {
    margin-top: 30px;
}

.kategori_kota {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
}

.isi_kategori_kota {
    width: 100%;
    background-color: var(--white);
    position: relative;
    display: flex;
}

.isi_kategori_kota img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.text_isi_kategori_kota {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.4);
    position: absolute;
}

.text_isi_kategori_kota p {
    font-size: 18px;
    color: var(--white);
    font-weight: 600;
    text-align: center;
}

.lp_mitrap {
    border: 1px solid var(--border-grey) !important;
}

.box_banner_cerita_kami {
    width: 100%;
}

.banner_cerita_kami {
    width: 100%;
    border-radius: 10px;
    margin-top: 30px;
}

/* RESPONSIVE */

@media only screen and (max-width: 900px) {
    .box_banner_cerita_kami {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .banner_cerita_kami {
        width: 100%;
        border-radius: 10px;
        box-sizing: border-box;
        margin-top: 20px;
    }

    .csajdf {
        margin-top: 15px;
    }

    .lp_mitrap img {
        width: 100%;
        height: auto; /* Biarkan tinggi otomatis untuk menjaga proporsi */
        aspect-ratio: 1 / 1; /* Aspek rasio 1:1 */
        object-fit: cover;
        object-position: center;
    }

    .box_kategori_kota {
        width: 100%;
        overflow: auto;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .kategori_kota {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 10px;
        margin-right: 15px;
    }

    .fdghfg {
        margin-right: 15px;
    }

    .isi_kategori_kota {
        width: 198px;
    }

    .isi_kategori_kota img {
        width: 100%;
        height: 80px;
        object-fit: cover;
    }
    .text_isi_kategori_kota p {
        font-size: 16px;
        color: var(--white);
        font-weight: 600;
        text-align: center;
    }

    .box_kategori_kota::-webkit-scrollbar {
        display: none;
    }

    .banner_big_iklan {
        width: 100%;
        height: auto;
    }

    .img_banner_big_iklan {
        height: 180px;
    }

    .banner_small_iklan {
        display: none;
    }

    .box_kategori {
        overflow: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .box_kategori::-webkit-scrollbar {
        display: none;
    }

    .box_iklan_flash_sale_1 {
        overflow: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .box_iklan_flash_sale_1::-webkit-scrollbar {
        display: none;
    }

    .iml_i {
        width: 100%;
        margin-top: 10px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #flash_sale_imi {
        background-color: var(--semi-grey);
    }
}

.back_popup_pemilik {
    width: 100%;
    height: 100%;
    background-color: var(--bg-transparent-black);
    position: fixed;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup_pemilik {
    width: 400px;
    padding: 30px;
    background-color: var(--white);
    border-radius: 3px;
    box-sizing: border-box;
    position: relative;
}

.popup_pemilik h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--orange);
}

.popup_pemilik p {
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    margin-top: 20px;
}

.popup_pemilik span {
    font-weight: 600;
    color: var(--orange);
}

.popup_pemilik h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin-top: 20px;
}

.popup_pemilik h2 a {
    color: #075e54;
}

.close_pp {
    position: absolute;
    right: 0px;
    top: 0px;
    padding: 15px;
    cursor: pointer;
}

.close_pp i {
    font-size: 17px;
    color: var(--black);
}

.box_peluang_usaha {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 15px;
    background-color: var(--white);
}

.box_banner_peluang_usaha {
    width: 50%;
    display: flex;
}

.banner_peluang_usaha {
    width: 100%;
    height: 291px;
    object-fit: cover;
}

.box_produk_pu {
    width: 50%;
    /* flex: 1; */
    /* flex: 1; */
    /* display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px; */
}

@media only screen and (max-width: 600px) {
    .box_produk_pu {
        width: 100%;
    }

    .box_peluang_usaha {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 15px 15px 15px;
        box-sizing: border-box;
    }

    .box_banner_peluang_usaha {
        width: 100%;
        flex: none;
        display: flex;
    }

    .banner_peluang_usaha {
        width: 100%;
        height: 140px;
    }

    .banner_iklan {
        margin-top: 15px;
    }

    .banner_big_iklan {
        /* padding: 0 15px; */
        box-sizing: border-box;
    }

    .box_kategori {
        width: 100%;
    }

    .kategori {
        overflow-x: scroll;
        gap: 25px;
        margin: 0 auto;
        padding: 25px 15px 10px 15px;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch; /* Untuk smooth scrolling */
    }

    /* Untuk menyembunyikan scrollbar di WebKit-based browsers (Chrome, Safari, dll) */
    .kategori::-webkit-scrollbar {
        display: none;
    }

    /* Untuk menyembunyikan scrollbar di Firefox */
    .kategori {
        scrollbar-width: none; /* Firefox */
    }

    /* Untuk menyembunyikan scrollbar di Internet Explorer dan Edge */
    .kategori {
        -ms-overflow-style: none; /* IE and Edge */
    }

    .kategori a {
        white-space: nowrap;
        /* background-color: blue; */
        font-size: 14px;
    }

    .isi_kategori {
        /* background-color: red; */
        padding: 10px 0;
    }

    .isi_kategori img {
        width: 50px;
        height: 50px;
    }

    .isi_kategori p {
        font-size: 11px;
        line-height: 16px;
    }

    .box_lihat_semua {
        display: none;
    }

    .flash_sale {
        margin-top: 15px;
        background-color: var(--white);
    }

    .title_flash_sale {
        padding: 15px;
    }

    .box_title_flash_sale {
        justify-content: space-between;
    }

    .countdown_flash_sale {
        float: right;
    }

    .box_title_flash_sale i {
        font-size: 15.5px;
    }

    .box_title_flash_sale p {
        font-size: 18px;
    }

    .countdown_flash_sale div {
        width: 27px;
        height: 24px;
        font-size: 12px;
    }

    .countdown_flash_sale span {
        font-size: 12px;
        margin: 0 4px;
    }

    .box_iklan_flash_sale {
        width: 800px;
        padding: 0 15px;
        /* background-color: red; */
        margin: 0;
        grid-gap: 10px;
        padding-bottom: 15px;
        background-color: var(--white);
    }

    .iklan_flash_sale img {
        height: 120px;
    }

    .iklan_flash_sale h1 {
        font-size: 15px;
    }

    .iklan_flash_sale span {
        font-size: 13px;
    }

    .total_barang_flash_sale {
        height: 18px;
    }

    .text_barang_flash_sale p {
        font-size: 10px;
    }

    .iklan_flash_sale {
        /* background-color: red; */
        border: 1px solid var(--border-grey);
    }

    .box_persen_flashsale p {
        font-size: 13px;
    }

    .title_flash_sale p {
        font-size: 17px;
        font-weight: 600;
    }

    .grid_terlaris {
        width: 100%;
        grid-template-columns: 1fr 1fr;
        box-sizing: border-box;
    }

    .popup_pemilik {
        width: 92%;
    }

    .popup_pemilik h1 {
        font-size: 18px;
    }

    .popup_pemilik p {
        font-size: 15px;
    }

    .popup_pemilik h2 {
        font-size: 16px;
    }
}
