/* ========================================
   RESET
======================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:
    "Segoe UI",
    Arial,
    sans-serif;

    background:
    linear-gradient(
        180deg,
        #eff6ff 0%,
        #ffffff 100%
    );

    color:#1e293b;

    min-height:100vh;

    padding-bottom:100px;
}

/* ========================================
   HEADER
======================================== */

.header{

    position:sticky;
    top:0;
    z-index:999;

    background:
    linear-gradient(
        135deg,
        #60a5fa,
        #38bdf8,
        #7dd3fc
    );

    padding:15px;

    box-shadow:
    0 4px 20px
    rgba(0,0,0,.12);
}

.header-top{

    display:flex;
    align-items:center;
    justify-content:space-between;

    margin-bottom:15px;
}

.logo-wrapper{

    display:flex;
    align-items:center;
    gap:12px;
}

.logo{

    width:60px;
    height:60px;

    border-radius:16px;

    object-fit:cover;

    background:#fff;

    border:3px solid rgba(255,255,255,.7);
}

.logo-placeholder{

    width:60px;
    height:60px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#fff;

    border-radius:16px;

    font-size:28px;
}

.shop-info h1{

    font-size:18px;
    font-weight:700;

    color:#fff;
}

.shop-info small{

    color:#e0f2fe;
}

/* ========================================
   SEARCH
======================================== */

.search-row{

    display:flex;
    gap:10px;
}

.search-box{

    flex:1;

    display:flex;
    align-items:center;

    gap:10px;

    background:#fff;

    padding:12px 15px;

    border-radius:50px;

    transition:.3s;
}

.search-box:focus-within{

    box-shadow:
    0 0 0 4px
    rgba(255,255,255,.25);
}

.search-box input{

    width:100%;

    border:none;
    outline:none;

    background:none;

    font-size:15px;
}

.cart-button{

    border:none;

    background:#fff;

    width:55px;
    height:55px;

    border-radius:18px;

    cursor:pointer;

    font-size:22px;

    position:relative;

    transition:.3s;
}

.cart-button:hover{

    transform:scale(1.05);
}

.cart-button span{

    position:absolute;

    top:-5px;
    right:-5px;

    background:#ef4444;

    color:#fff;

    width:22px;
    height:22px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:12px;
    font-weight:bold;
}

/* ========================================
   HERO
======================================== */

.hero{

    padding:15px;
}

.hero-card{

    background:
    linear-gradient(
        135deg,
        #38bdf8,
        #60a5fa
    );

    border-radius:24px;

    padding:25px;

    color:#fff;

    box-shadow:
    0 10px 25px
    rgba(96,165,250,.25);

    animation:
    floatHero
    4s ease-in-out infinite;
}

.hero-card h2{

    margin-bottom:8px;
}

@keyframes floatHero{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-4px);
    }

    100%{
        transform:translateY(0);
    }
}

/* ========================================
   SECTION
======================================== */

.kategori-section,
.featured-section,
.product-section{
    padding:15px;
}

.kategori-section h3,
.featured-section h3,
.product-section h3{

    margin-bottom:15px;

    font-size:18px;
}

/* ========================================
   KATEGORI
======================================== */

.kategori-scroll{

    display:flex;

    gap:10px;

    overflow-x:auto;

    padding-bottom:5px;
}

.kategori-scroll::-webkit-scrollbar{
    display:none;
}

.kategori-btn{

    border:none;

    background:#fff;

    padding:10px 18px;

    border-radius:30px;

    white-space:nowrap;

    cursor:pointer;

    font-weight:600;

    box-shadow:
    0 3px 12px
    rgba(0,0,0,.08);

    transition:.25s;
}

.kategori-btn.active{

    background:#38bdf8;

    color:#fff;
}

/* ========================================
   PRODUCT GRID
======================================== */

.product-grid{

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:15px;
}

.featured-products .product-card{

    flex:0 0 150px;

    width:150px;

    min-width:150px;
    
    scroll-snap-align:start;
}

/*.featured-products{*/

/*    display:flex;*/
    
/*    gap:15px;*/

/*    overflow-x:auto;*/

/*    padding-bottom:10px;*/
/*}*/

.featured-products{

    display:flex;

    gap:15px;

    overflow-x:auto;

    padding-bottom:10px;

    scroll-snap-type:x mandatory;
}

.featured-products::-webkit-scrollbar{
    display:none;
}

/* ========================================
   PRODUCT CARD
======================================== */

.product-card{
    
    background:#fff;

    border-radius:20px;

    overflow:hidden;

    box-shadow:
    0 8px 20px
    rgba(0,0,0,.08);

    transition:.3s;

    animation:
    fadeUp .4s ease;
}

.product-card:hover{

    transform:
    translateY(-5px);
}

.product-image{

    display:block;

    width:100%;

    height:150px;

    object-fit:cover;

    background:#f1f5f9;
}

/*.product-image{*/

/*    width:100%;*/
/*    aspect-ratio:1/1;*/

/*    object-fit:cover;*/

/*    background:#f1f5f9;*/
/*}*/

.product-content{

    padding:12px;
}

.product-name{

    font-size:12px;

    font-weight:600;

    min-height:40px;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;
}

/*.product-name{*/

/*    font-size:14px;*/

/*    font-weight:600;*/

/*    min-height:38px;*/

/*    overflow:hidden;*/
/*}*/

.product-price{

    margin-top:8px;

    color:#0284c7;

    font-weight:700;

    font-size:13px;
}

.product-stock{

    margin-top:5px;

    font-size:10px;

    color:#64748b;
}

.product-btn{

    width:100%;

    margin-top:10px;

    border:none;

    background:
    linear-gradient(
        135deg,
        #38bdf8,
        #60a5fa
    );

    color:#fff;

    padding:10px;

    border-radius:12px;

    cursor:pointer;

    font-weight:600;
}

/* ========================================
   FLOATING CART
======================================== */

.floating-cart{

    position:fixed;

    right:20px;
    bottom:20px;

    width:65px;
    height:65px;

    border:none;

    border-radius:50%;

    background:
    linear-gradient(
        135deg,
        #38bdf8,
        #60a5fa
    );

    color:#fff;

    font-size:28px;

    cursor:pointer;

    z-index:999;

    box-shadow:
    0 10px 25px
    rgba(56,189,248,.4);

    animation:
    pulseCart 2s infinite;
}

.floating-cart span{

    position:absolute;

    top:-5px;
    right:-5px;

    width:24px;
    height:24px;

    border-radius:50%;

    background:#ef4444;

    color:#fff;

    font-size:12px;
    font-weight:bold;

    display:flex;
    align-items:center;
    justify-content:center;
}

@keyframes pulseCart{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.08);
    }

    100%{
        transform:scale(1);
    }
}

/* ========================================
   FOOTER
======================================== */

.footer{

    margin-top:30px;

    padding:25px;

    background:#fff;

    border-top-left-radius:30px;
    border-top-right-radius:30px;

    box-shadow:
    0 -5px 20px
    rgba(0,0,0,.05);
}

.footer-content{

    text-align:center;
}

.footer-content h4{

    margin-bottom:10px;
}

/* ========================================
   LOADING
======================================== */

.loading{

    grid-column:1/-1;

    text-align:center;

    padding:30px;

    color:#64748b;
}

/* ========================================
   ANIMATION
======================================== */

@keyframes fadeUp{

    from{

        opacity:0;

        transform:
        translateY(15px);
    }

    to{

        opacity:1;

        transform:
        translateY(0);
    }
}

/* ========================================
   TABLET
======================================== */

@media(min-width:768px){

    .product-grid{

        grid-template-columns:
        repeat(3,1fr);
    }

}

/* ========================================
   DESKTOP
======================================== */

@media(min-width:1200px){

    .product-grid{

        grid-template-columns:
        repeat(5,1fr);
    }

}

/* ========================================
   TOAST
======================================== */

.toast-message{

    position:fixed;

    left:50%;
    bottom:90px;

    transform:
    translateX(-50%)
    translateY(20px);

    background:#0f172a;

    color:#fff;

    padding:12px 18px;

    border-radius:12px;

    font-size:14px;

    z-index:9999;

    opacity:0;

    transition:.3s;
}

.toast-message.show{

    opacity:1;

    transform:
    translateX(-50%)
    translateY(0);
}

/* ========================================
   CART
======================================== */

.cart-item{

    background:#fff;

    border-radius:20px;

    padding:15px;

    margin-bottom:15px;

    display:flex;

    gap:15px;

    box-shadow:
    0 5px 20px
    rgba(0,0,0,.08);
}

.cart-image{

    width:90px;
    height:90px;

    border-radius:15px;

    object-fit:cover;
}

.cart-content{

    flex:1;
}

.cart-name{

    font-weight:700;

    margin-bottom:8px;
}

.cart-price{

    color:#0284c7;

    font-weight:700;

    margin-bottom:8px;
}

.qty-wrapper{

    display:flex;

    align-items:center;

    gap:10px;
}

.qty-btn{

    width:35px;
    height:35px;

    border:none;

    border-radius:10px;

    background:#38bdf8;

    color:#fff;

    cursor:pointer;
}

.qty-value{

    min-width:25px;

    text-align:center;

    font-weight:700;
}

.remove-btn{

    border:none;

    background:#ef4444;

    color:#fff;

    border-radius:10px;

    padding:8px 12px;

    cursor:pointer;
}

.cart-summary{

    position:fixed;

    left:0;
    right:0;
    bottom:0;

    background:#fff;

    padding:15px;

    box-shadow:
    0 -5px 20px
    rgba(0,0,0,.08);

    display:flex;

    justify-content:space-between;

    align-items:center;
}

.checkout-btn{

    border:none;

    background:
    linear-gradient(
        135deg,
        #38bdf8,
        #60a5fa
    );

    color:#fff;

    padding:12px 20px;

    border-radius:15px;

    font-weight:700;

    cursor:pointer;
}

/* ========================================
   CHECKOUT
======================================== */

.checkout-card{

    background:#fff;

    border-radius:20px;

    padding:20px;

    margin-bottom:15px;

    box-shadow:
    0 5px 20px
    rgba(0,0,0,.08);
}

.input-control{

    width:100%;

    padding:12px;

    border:1px solid #dbeafe;

    border-radius:12px;

    margin-top:10px;

    font-size:14px;
}

textarea.input-control{

    resize:vertical;
}

.map-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    z-index:9999;
}

.map-box{
    width:100%;
    height:100%;
    background:#fff;
}

#googleMap{
    width:100%;
    height:calc(100% - 50px);
}

.map-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    z-index:99999;
}

.map-container{
    width:100%;
    height:100%;
    background:#fff;
}

.map-toolbar{
    height:55px;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    padding:10px;
    border-bottom:1px solid #ddd;
}

#mapPicker{
    width:100%;
    height:calc(100vh - 55px);
}