*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    background:#f5f6fa;

    font-family:
    Segoe UI,
    sans-serif;

}

/* HEADER */

.header{

    background:#ff6b00;

    color:#fff;

    padding:15px 25px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    position:sticky;

    top:0;

    z-index:999;

}

.logo{

    font-size:24px;

    font-weight:700;

}

.search-box{

    width:400px;

    position:relative;

}

.search-box input{

    width:100%;

    padding:12px 15px;

    border:none;

    border-radius:50px;

}

.search-box i{

    position:absolute;

    right:15px;

    top:14px;

    color:#666;

}

/* KATEGORI */

.kategori-wrapper{

    display:flex;

    gap:10px;

    padding:20px;

    overflow:auto;

}

.kategori{

    border:none;

    background:#fff;

    padding:10px 20px;

    border-radius:50px;

    cursor:pointer;

}

.kategori.active{

    background:#ff6b00;

    color:#fff;

}

/* PRODUK */

.produk-container{

    display:grid;

    grid-template-columns:
    repeat(
        auto-fill,
        minmax(220px,1fr)
    );

    gap:20px;

    padding:20px;

}

.produk-card{

    background:#fff;

    border-radius:15px;

    overflow:hidden;

    transition:.3s;

    box-shadow:
    0 4px 10px rgba(0,0,0,.08);

}

.produk-card:hover{

    transform:
    translateY(-5px);

}

.produk-image img{

    width:100%;

}

.produk-info{

    padding:15px;

}

.produk-nama{

    font-weight:700;

    margin-bottom:10px;

}

.produk-harga{

    color:#ff6b00;

    font-size:22px;

    font-weight:700;

    margin-bottom:8px;

}

.produk-stok{

    color:#666;

    margin-bottom:15px;

}

.btn-detail{

    width:100%;

    border:none;

    background:#ff6b00;

    color:#fff;

    padding:10px;

    border-radius:10px;

    cursor:pointer;

}

/* MODAL */

.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    justify-content:center;
    align-items:center;
    z-index:9999;
    padding:20px;
    overflow-y:auto;
}

.modal-content{

    width:100%;
    max-width:900px;
    background:#fff;
    border-radius:20px;
    position:relative;
    display:flex;
    gap:30px;
    padding:30px;
    box-shadow:
    0 20px 50px rgba(0,0,0,.25);
    max-height:90dvh;
    overflow-y:auto;
    scrollbar-width:none;
}

.modal-content::-webkit-scrollbar{

    display:none;
}

.close-modal{
    position:absolute;
    top:15px;
    right:20px;
    font-size:32px;
    cursor:pointer;
    color:#666;
    font-weight:bold;
}

.close-modal:hover{
    color:#ff6600;
}

/* FOTO */

.modal-image{
    width:420px;
    height:420px;
    object-fit:cover;
    border-radius:15px;
    background:#f1f1f1;
    flex-shrink:0;
}

/* DETAIL */

.modal-detail{
    flex:1;
    display:flex;
    flex-direction:column;
}

#modalNama{
    font-size:34px;
    font-weight:700;
    margin-bottom:10px;
}

.modal-stok{
    font-size:18px;
    margin-bottom:20px;
    color:#555;
}

.modal-satuan,
.modal-qty{
    margin-bottom:20px;
}

.modal-satuan label,
.modal-qty label{
    display:block;
    font-weight:600;
    margin-bottom:8px;
    color:#444;
}

.modal-satuan select{
    width:100%;
    height:50px;
    border:1px solid #ddd;
    border-radius:10px;
    padding:0 15px;
    font-size:16px;
}

.modal-qty input{
    width:120px;
    height:50px;
    border:1px solid #ddd;
    border-radius:10px;
    padding:0 15px;
    font-size:18px;
}

/* BUTTON */

.btn-cart-modal{
    width:100%;
    height:55px;
    border:none;
    border-radius:12px;
    background:#16a34a;
    color:#fff;
    font-size:18px;
    font-weight:600;
    cursor:pointer;
    margin-top:10px;
}

.btn-cart-modal:hover{
    background:#15803d;
}

.btn-wa{
    width:100%;
    height:55px;
    border:none;
    border-radius:12px;
    background:#25D366;
    color:#fff;
    font-size:18px;
    font-weight:600;
    cursor:pointer;
    margin-top:12px;
}

.btn-wa:hover{
    background:#1ebc59;
}
/* ==========================
   SIDEBAR KERANJANG
========================== */

.cart-sidebar{

    position:fixed;

    top:0;
    right:-420px;

    width:420px;
    max-width:100%;

    height:100vh;

    background:#fff;

    z-index:99999;

    transition:.3s;

    display:flex;

    flex-direction:column;

    box-shadow:
        -5px 0 20px rgba(0,0,0,.15);
}

.cart-sidebar.active{

    right:0;
}

.cart-overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.4);

    display:none;

    z-index:99998;
}

.cart-overlay.active{

    display:block;
}

.cart-header{

    padding:20px;

    background:#ff6b00;

    color:#fff;

    display:flex;

    justify-content:space-between;

    align-items:center;
}

.cart-header span{

    cursor:pointer;

    font-size:28px;
}

.cart-items{

    flex:1;

    overflow-y:auto;

    padding:15px;
}

.cart-item{

    border:1px solid #eee;

    border-radius:12px;

    padding:12px;

    margin-bottom:10px;
}

.cart-item-name{

    font-weight:700;
}

.cart-item-satuan{

    color:#666;

    margin-top:5px;
}

.cart-item-price{

    color:#ff6b00;

    font-weight:700;

    margin-top:5px;
}

.cart-footer{

    padding:15px;

    border-top:1px solid #eee;
}

.cart-total{

    font-size:18px;

    font-weight:700;

    margin-bottom:10px;
}

.btn-checkout{

    width:100%;

    border:none;

    background:#25d366;

    color:#fff;

    padding:14px;

    border-radius:10px;

    cursor:pointer;

    font-weight:700;
}

.empty-cart{

    text-align:center;

    color:#999;

    padding:50px 0;
}

@media(max-width:768px){

    .search-box{

        width:220px;

    }

    .modal{

        padding:10px;

        align-items:flex-start;
    }

    .modal-content{

        width:100%;

        max-width:100%;

        margin:10px 0;

        padding:15px;

        border-radius:20px;

        display:block;

        max-height:calc(
            100dvh - 20px
        );

        overflow-y:auto;
    }

    .close-modal{

        top:10px;

        right:15px;

        font-size:42px;
    }

    .modal-image{

        width:100%;

        height:auto;

        max-height:300px;

        object-fit:contain;

        border-radius:15px;

        margin-bottom:20px;
    }

    #modalNama{

        font-size:24px;

        margin-bottom:10px;
    }

    .modal-stok{

        font-size:18px;
    }

    .modal-satuan select{

        width:100%;

        height:55px;

        font-size:18px;
    }

    .modal-qty input{

        width:100%;

        height:55px;

        font-size:20px;
    }

    .btn-cart-modal,
    .btn-wa{

        width:100%;

        height:55px;

        font-size:18px;
    }

    .cart-sidebar{

        width:100%;

        right:-100%;

        height:100dvh;
    }

    .cart-items{

        flex:1;

        overflow-y:auto;

        min-height:0;

        padding:15px;
    }

    .cart-footer{

        flex-shrink:0;

        background:#fff;

        border-top:1px solid #eee;

        padding:15px;

        padding-bottom:calc(
            env(safe-area-inset-bottom) + 15px
        );
    }

}

.produk-action{

    display:flex;

    gap:10px;

}

.btn-detail{

    flex:1;

}

.btn-cart{

    width:55px;

    border:none;

    background:#16a34a;

    color:#fff;

    border-radius:10px;

    cursor:pointer;

    font-size:18px;
}

.btn-cart:hover{

    background:#15803d;

}

.header-right{

    display:flex;
    align-items:center;

}

.cart-icon{

    position:relative;

    cursor:pointer;

    font-size:24px;

    color:#fff;

}

#cartCount{

    position:absolute;

    top:-8px;
    right:-12px;

    background:red;

    color:#fff;

    width:22px;
    height:22px;

    border-radius:50%;

    font-size:12px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-weight:700;

}

body.no-scroll{

    overflow:hidden;

    position:fixed;

    width:100%;
}

.modal,
.cart-sidebar{

    overscroll-behavior:contain;

}

.cart-items,
.modal-content{

    overscroll-behavior:contain;

}

.checkout-input{

    width:100%;

    height:50px;

    padding:10px 15px;

    border:1px solid #ddd;

    border-radius:10px;

    margin-top:5px;

    margin-bottom:15px;

}

.member-box{

    display:flex;

    gap:10px;

    margin-bottom:15px;

}

.btn-member{

    width:90px;

    border:none;

    background:#2563eb;

    color:#fff;

    border-radius:10px;

    cursor:pointer;

    font-weight:600;

}

.member-info{

    background:#ecfdf5;

    border:1px solid #86efac;

    color:#166534;

    padding:12px;

    border-radius:10px;

    margin-bottom:15px;

}

.filter-bar{

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;

    padding:15px 20px;
    flex-wrap:wrap;

}

.kategori-wrapper{

    display:flex;
    gap:8px;

    overflow-x:auto;
    scrollbar-width:none;

    flex:1;

}

.kategori-wrapper::-webkit-scrollbar{
    display:none;
}

.kategori-btn{

    border:none;

    background:#fff;

    padding:8px 15px;

    border-radius:25px;

    font-size:13px;

    cursor:pointer;

    white-space:nowrap;

}

.kategori-btn.active{

    background:#ff7300;

    color:#fff;

}

.sort-wrapper{

    min-width:130px;

}

#sortProduk{

    width:100%;

    border:none;

    background:#fff;

    padding:8px 12px;

    border-radius:25px;

    font-size:13px;

    cursor:pointer;

}

@media(max-width:768px){

    .produk-container{

        grid-template-columns:
            repeat(2,1fr);

        gap:10px;

        padding:10px;

    }

    .produk-card{

        border-radius:12px;

    }

    .produk-image img{

        height:140px;

        object-fit:cover;

    }

    .produk-info{

        padding:10px;

    }

    .produk-nama{

        font-size:14px;

        line-height:18px;

        height:36px;

        overflow:hidden;

    }

    .produk-harga{

        font-size:16px;

        margin-bottom:8px;

    }

    .produk-action{

        gap:5px;

    }

    .btn-detail{

        padding:8px;

        font-size:13px;

    }

    .btn-cart{

        width:42px;

        font-size:15px;

    }

}

/* ==========================
   BANNER SLIDER
========================== */

.banner-slider{

    width:100%;

    height:420px;

    overflow:hidden;

    position:relative;

}

.banner-slider picture,
.banner-slider .slide{

    width:100%;
    height:100%;
    display:none;

}

.banner-slider .active{

    display:block;

}

.banner-slider img{

    width:100%;
    height:100%;

    object-fit:cover;

    display:block;

}

/* MOBILE */

@media(max-width:768px){

    .banner-slider{

        height:180px;

    }

}

.banner-slider img.active{
    display:block;
}

.banner-slider{
    width:100%;
    height:420px;
    overflow:hidden;
}

.banner-slider img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

@media(max-width:768px){

    .banner-slider{
        height:180px;
    }

}

.btn-download{

    width:100%;

    height:55px;

    border:none;

    border-radius:12px;

    background:#2563eb;

    color:#fff;

    font-size:18px;

    font-weight:600;

    cursor:pointer;

    margin-top:12px;

}

.btn-download:hover{

    background:#1d4ed8;

}

#preloader{
    position:fixed;
    inset:0;
    background:#ff6b00;
    z-index:999999;
    display:flex;
    align-items:center;
    justify-content:center;
}

.loader-content{
    text-align:center;
}

.loader-logo{
    width:220px;
    max-width:70vw;
    animation:pulse 1.5s infinite;
}

@keyframes pulse{
    0%{transform:scale(1);}
    50%{transform:scale(1.08);}
    100%{transform:scale(1);}
}

#loaderText{
    margin-top:20px;
    color:white;
    font-size:18px;
    font-weight:600;
}

.loader-progress{
    width:280px;
    height:10px;
    background:rgba(255,255,255,.3);
    border-radius:99px;
    overflow:hidden;
    margin-top:15px;
}

#loaderBar{
    width:0%;
    height:100%;
    background:white;
    transition:.2s;
}

body.loading{
    overflow:hidden;
}

.info-produk{

    padding:0 20px;
    margin-bottom:15px;

    font-size:14px;
    color:#666;

}

.info-produk span{

    font-weight:700;
    color:#ff6b00;

}