@import url('./all.css');
/* BANNER IKLAN */
  /* Full page carousel container */
  .banner_iklan_fullpage {
    width: 100%;
    height: 40vh;
    position: relative;
    overflow: hidden;
  }

  .slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
  }

  .slide {
    flex: 0 0 100%;
    position: relative;
    height: 100%;
  }

  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Overlay text */
  .banner_text {
    position: absolute;
    bottom: 20%;
    left: 10%;
    max-width: 500px;
    color: #fff;
    z-index: 5;
  }

  .banner_text h1 { font-size: 3rem; margin-bottom: 15px; }
  .banner_text p { font-size: 1.2rem; margin-bottom: 20px; }

  .btn_banner {
    background: #ff6600;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
  }
  .btn_banner:hover { background: #e55b00; }

  /* Navigation buttons */
  .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
  }

  .nav-prev { left: 20px; }
  .nav-next { right: 20px; }

  /* Dots */
  .dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 5;
  }

  .dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 0 5px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
  }

  .dot.active {
    background: #fff;
    transform: scale(1.3);
  }

/* KATEGORI */
/* ---------------- KATEGORI ---------------- */
.kategori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px; /* ini jarak antar kategori */
    width: 100%;
    max-width: 1200px;
	padding: 20px 15px;
    margin-top: 10px;
}

.isi_kategori {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: var(--white);
    border-radius: 25px;
    text-align: center;
    border: 2px solid var(--white);
    transition: 0.2s;
}
.isi_kategori:hover {
    border-color: var(--orange);
}
.isi_kategori img {
    height: 70px;
    margin-bottom: 10px;
}
.isi_kategori p {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
}

/* FLASH SALE */

.produk {
    width: 100%;
    margin: 30px auto;
}

/* HEADER */
.header_produk {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.header h2 {
    color: #ff6a00;
}

/* TOGGLE BUTTON */
.view_toggle button {
    padding: 6px 12px;
    border: none;
    margin-left: 5px;
    cursor: pointer;
    border-radius: 5px;
    background: #ddd;
}

.view_toggle button.active {
    background: #880015;
    color: #fff;
}

/* GRID DEFAULT (3 kolom) */
.product_wrapper.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* LIST MODE */
.product_wrapper.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* CARD */
.product_card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);

    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 0.4s forwards;
}

/* GRID STYLE */
.product_wrapper.grid .product_card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* LIST STYLE */
.product_wrapper.list .product_card {
    flex-direction: row;
}

.product_wrapper.list img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* HOVER */
.product_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.product_card:hover img {
    transform: scale(1.05);
}

.product_card img {
    transition: 0.3s;
}

/* TEXT */
.product_info {
    padding: 10px;
}

.product_title {
    font-size: 14px;
    color: #333;
    height: 38px;
    overflow: hidden;
}

.product_price {
    color: #ff6a00;
    font-weight: bold;
    margin-top: 5px;
}

.product_sold {
    font-size: 12px;
    color: #888;
}

/* ANIMATION */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TABLET */
@media (max-width: 768px) {
    .produk {
        padding-left: 8px;
        padding-right: 8px;
    }

    .product_wrapper.grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product_wrapper.grid .product_card img {
        height: 180px;
    }
}

@media (max-width: 480px) {

    /* GRID JADI 2 KOLOM KECIL */
    .product_wrapper.grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product_wrapper.grid .product_card img {
        height: 140px;
    }

    /* LIST MODE LEBIH COMPACT */
    .product_wrapper.list .product_card {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 5px;
    }

    .product_wrapper.list img {
        width: 90px;
        height: 90px;
        border-radius: 8px;
    }

    /* TEXT LEBIH KECIL */
    .product_title {
        font-size: 13px;
    }

    .product_price {
        font-size: 14px;
    }

    .product_sold {
        font-size: 11px;
    }

    /* HEADER BIAR TIDAK KEPENCET */
    .header_produk {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .view_toggle {
        width: 100%;
    }

    .view_toggle button {
        width: 48%;
    }
}



.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: 5px;
}

.iklan_flash_sale {
    width: 100%;
    background-color: var(--white);
    position: relative;
}

.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: 20px;
    position: relative;
}

.persen_barang_flash_sale {
    height: 100%;
    background-color: var(--orange);
    border-radius: 20px;
    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);
}



.full-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: auto; /* ganti ini */
}

/* LEFT SECTION TANPA BACKGROUND HITAM */
.grid-left {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent; /* hapus hitam */
    padding: 20px;
}

/* GAMBAR ASLI (NO CROP, NO BACKGROUND) */
.grid-left img {
    max-width: 100%;
    height: auto;
    object-fit: contain;

    border-radius: 16px; /* biar halus */
    border: 1px solid #e5e5e5; /* garis tipis elegan */

    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* depth */
    background: #fff; /* biar tidak nyatu dengan background */

    padding: 10px; /* kasih ruang dalam */
}
/* RIGHT TEXT */
.grid-right {
    background: #f5f5f5;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ANIMASI FLOAT LEMBUT */
@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}


@media (max-width: 768px) {
    .full-grid {
        grid-template-columns: 1fr;
    }

    /* GAMBAR JANGAN KEGEDEAN */
    .grid-left {
        padding: 10px;
        order: 1;
    }

	.grid-left img {
		max-width: 100%;
		border-radius: 12px;
	}

    /* TEXT LEBIH NYAMAN DIBACA */
    .grid-right {
        padding: 20px 15px;
        text-align: center;
        order: 2;
    }
}
@media (max-width: 480px) {

    .grid-left img {
        max-width: 75%; /* biar tidak terlalu dominan */
        animation: none; /* optional: matikan animasi biar ringan */
    }

    .grid-right {
        padding: 15px;
    }

    .grid-right h1,
    .grid-right h2 {
        font-size: 20px;
        line-height: 1.3;
    }

    .grid-right p {
        font-size: 14px;
    }
}




.customer-page {
    width: 100%;
    margin: 30px auto;


    margin: auto;
    padding: 40px 20px;
    text-align: center;
}

/* WRAPPER */
.customer-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* SLIDER */
.customer-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px;
}

/* hide scrollbar */
.customer-slider::-webkit-scrollbar {
    display: none;
}

/* CARD */
.customer-card {
    min-width: 250px;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    flex-shrink: 0;
    transition: 0.3s;
}

.customer-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff6a00;
}
.customer-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px;

    scroll-snap-type: x mandatory;
}

.customer-card {
    min-width: 250px;
    flex-shrink: 0;
    scroll-snap-align: start;
}
/* BUTTON */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6a00;
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.nav-btn.left {
    left: -10px;
}

.nav-btn.right {
    right: -10px;
}

/* TABLET */
@media (max-width: 768px) {

    .customer-page {
        padding: 30px 15px;
    }

    .customer-slider {
        gap: 12px;
        padding: 15px 5px;
    }

    .customer-card {
        min-width: 220px;
        padding: 15px;
    }

    .customer-card img {
        width: 100px;
        height: 100px;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}


/* RESPONSIVE */

@media only screen and (max-width: 900px) {
    .banner_big_iklan {
        width: 100%;
        height: auto;
    }
    .img_banner_big_iklan {
        height: 90px;
    }
    .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;
    }
}

@media only screen and (max-width: 600px) {
    .banner_iklan {
        margin-top: 15px;
    }
    .banner_big_iklan {
        padding: 0 15px;
        box-sizing: border-box;
    }
    .box_kategori {
        width: 100%;
    }
    .kategori {
        width: 850px;
        box-sizing: border-box;
        padding: 0 15px;
        grid-gap: 10px;
        margin-top: 15px;
    }
    .isi_kategori {
        /* background-color: red; */
        padding: 10px 0;
    }
    .isi_kategori img {
        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;
    }
    .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: 2px solid var(--semi-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;
    }
}