@media(max-width:768px){

.product-detail{

    display:block;

    padding:15px;

    padding-bottom:140px; /* tambah */

    margin-bottom:0;
}

.product-gallery{

    background:#fff;

    border-radius:20px;

    padding:10px;

    margin-bottom:15px;
}

.product-detail-image{

    width:100%;

    display:block;

    border-radius:16px;
}

.product-info{

    background:#fff;

    border-radius:20px;

    padding:18px;

    margin-bottom:30px; /* tambah */
}

.product-title{

    font-size:40px;

    font-weight:800;

    line-height:1.3;
}

.product-meta{

    display:flex;

    flex-wrap:wrap;

    gap:8px;
}

.product-meta span{

    background:#f8fafc;

    padding:8px 12px;

    border-radius:999px;

    font-size:13px;
}

.product-price-big{

    font-family:
    'Inter',
    sans-serif !important;

    font-weight:900;

    font-variant-numeric:
    tabular-nums;

    font-feature-settings:
    "tnum";

    letter-spacing:-1px;
} 

.feature-box{

    display:flex;

    flex-wrap:wrap;

    gap:8px;

    margin-bottom:25px;

}

.feature-item{

    padding:8px 12px;

    background:#f8fafc;

    border-radius:999px;

    font-size:12px;
}

.product-action-mobile{

    position:fixed;

    left:0;
    right:0;
    bottom:0;

    background:#fff;

    padding:12px;

    display:flex;

    gap:10px;

    z-index:999;

    box-shadow:0 -5px 20px rgba(0,0,0,.08);
}

}
@media(max-width:768px){

.product-action-desktop{
    display:none;
}

.product-action-mobile{
    display:flex;
}

}

.price-box{

    background:#eff6ff;

    border:2px solid #dbeafe;

    padding:20px;

    border-radius:18px;

    margin:20px 0;
}

.product-badges{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:8px 0 12px;
}

.badge{
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
}

.badge-hot{
    background:#fff1f2;
    color:#ef4444;
}

.badge-stock{
    background:#ecfdf5;
    color:#10b981;
}

.gallery-slider{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
}

.gallery-slider::-webkit-scrollbar{
    display:none;
}

.gallery-slider img{
    flex:0 0 100%;
    scroll-snap-align:start;
}

.product-option{
    margin:16px 0 20px;
}

.option-title{
    display:block;
    font-size:15px;
    font-weight:600;
    margin-bottom:10px;
    color:#111827;
}

.color-list{

    display:flex;

    flex-wrap:wrap;

    gap:10px;
}

.color-item{

    border:none;

    background:#f1f5f9;

    color:#475569;

    padding:10px 16px;

    border-radius:12px;

    font-size:13px;

    font-weight:600;

    transition:.2s;
}

.color-item.active{

    background:linear-gradient(
        135deg,
        #2563eb,
        #4f86ff
    );

    color:#fff;

    box-shadow:
    0 4px 12px
    rgba(37,99,235,.25);
}

.color-item:not(.active):hover{

    background:#e2e8f0;
}

.size-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:10px;
}

.size-item{

    min-width:55px;

    padding:10px 16px;

    border:2px solid #e5e7eb;

    background:#fff;

    border-radius:12px;

    font-weight:600;

    cursor:pointer;

    transition:.2s;
}

.size-item.active{

    background:#2563eb;

    color:#fff;

    border-color:#2563eb;

    box-shadow:
    0 6px 15px rgba(37,99,235,.25);

}

.review-section{

    margin-top:20px;

    padding:15px;

    background:#fff;

    border-radius:16px;
}

.review-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:15px;
}

.review-header h3{

    font-size:16px;

    margin:0;
}

.review-score{

    font-size:22px;

    font-weight:800;

    color:#2563eb;
}

.review-total{

    display:block;

    font-size:11px;

    color:#64748b;
}

.review-list{

    display:flex;

    flex-direction:column;

    gap:10px;
}

.review-item{

    background:#f8fafc;

    padding:12px;

    border-radius:12px;
}

.review-user{

    font-size:13px;

    font-weight:700;

    margin-bottom:5px;
}

.review-star{

    color:#f59e0b;

    margin-bottom:6px;
}

.review-item p{

    margin:0;

    font-size:13px;

    line-height:1.5;

    color:#475569;
}

.review-user{

    font-size:14px;

    font-weight:700;

    margin-bottom:8px;
}

.review-star{

    font-size:14px;

    margin-bottom:10px;
}

.review-item p{

    font-size:13px;

    line-height:1.7;

    color:#64748b;
}

.mobile-bottom-space{
    display:none;
}

.product-spec{

    margin-top:15px;

    border:1px solid #e5e7eb;

    border-radius:16px;

    overflow:hidden;

    margin-bottom:20px;
}

.spec-item{

    display:flex;

    justify-content:space-between;

    padding:12px 15px;

    border-bottom:1px solid #e5e7eb;
}

.spec-item:last-child{
    border-bottom:none;
}

.spec-item span{

    color:#64748b;

    font-size:14px;
}

.spec-item strong{

    color:#111827;

    font-size:14px;
}

.description-text{

    line-height:1.8;

    color:#475569;
}

.color-list,
.size-list{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

}

.color-list{

    margin-bottom:15px;

}

.product-option{

    margin:18px 0;

}

.option-title{

    display:block;

    margin-bottom:10px;

    font-size:15px;

    font-weight:700;

    color:#111827;

}

@media(max-width:768px){

.product-action-mobile{

    display:flex;

    align-items:center;

    gap:10px;

}

.product-action-mobile .wishlist-btn{

    width:50px;

    min-width:50px;

    flex:none;

}

.product-action-mobile .cart-btn{
    flex:1;
}

.product-action-mobile .buy-btn{
    flex:2;
}

.product-action-mobile .buy-btn{

    flex:2;

    font-size:16px;

    font-weight:700;

}

}

.product-description{

    margin-top:25px;

    padding-top:5px;

}

.product-description h3{

    margin-bottom:18px;

}

.product-gallery{

    overflow:hidden;

    border-radius:20px;

}

.gallery-slider{

    display:flex;

    overflow-x:auto;

    overflow-y:hidden;

    width:100%;

    scroll-snap-type:x mandatory;

    scroll-behavior:smooth;

}

.gallery-slider img{

    min-width:100%;

    width:100%;

    flex-shrink:0;

    scroll-snap-align:start;

}


.slider-dots{

    display:flex;

    justify-content:center;

    gap:8px;

    margin-top:10px;

}

.dot{

    width:8px;

    height:8px;

    border-radius:50%;

    background:#d1d5db;

}

.dot.active{

    background:#2563eb;

    width:20px;

    border-radius:999px;

}

.gallery-slider{

    display:flex;

    overflow-x:auto;

    scroll-snap-type:x mandatory;

    scroll-behavior:smooth;

    scrollbar-width:none;

}

.gallery-slider::-webkit-scrollbar{

    display:none;

}

.product-detail-image{

    flex:0 0 100%;

    width:100%;

    scroll-snap-align:start;

    border-radius:16px;

}

.gallery-thumbs{

    display:flex;

    gap:10px;

    margin-top:12px;

    overflow-x:auto;

}

.gallery-thumbs::-webkit-scrollbar{

    display:none;

}

.thumb{

    width:65px;

    height:65px;

    object-fit:cover;

    border-radius:12px;

    border:2px solid transparent;

    cursor:pointer;

    flex-shrink:0;

}

.thumb.active{

    border-color:#2563eb;

}

@media(max-width:768px){

    .product-detail{

        display:flex !important;

        flex-direction:column;

    }

    .mobile-order-1{
        order:1;
    }

    .mobile-order-2{
        order:2;
    }

    .mobile-order-3{
        order:3;
    }

    .review-section{

        margin-top:20px;

        margin-bottom:20px;

    }

}

@media(max-width:768px){

    .product-detail{

        display:flex !important;

        flex-direction:column;

    }

    .left-column{

        display:contents;

    }

    .product-gallery{
        order:1;
    }

    .product-info{
        order:2;
    }

    .review-section{
        order:3;
    }

}

.login-buy-btn{

    display:flex;
    align-items:center;
    justify-content:center;

    width:100%;

    height:55px;

    border-radius:16px;

    background:#2563eb;

    color:#fff;

    text-decoration:none;

    font-weight:700;
}

.product-action-mobile .login-buy-btn{
    flex:1;
}

.login-notice{

    background:#eff6ff;

    border:1px solid #bfdbfe;

    color:#2563eb;

    padding:12px 15px;

    border-radius:12px;

    font-size:14px;

    font-weight:600;

    margin-top:20px;
    margin-bottom:15px;
}


.option-modal{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.45);

    display:none;

    align-items:center;
    justify-content:center;

    z-index:999999;

}

.option-modal.show{

    display:flex;

}

.option-box{
    width:320px;
    background:#fff;
    border-radius:20px;
    padding:24px;
    text-align:center;
}

.option-box svg{
    width:50px;
    height:50px;
    color:#ef4444;
    margin-bottom:12px;
}

.option-box h3{
    margin-bottom:10px;
}

.option-box p{
    color:#64748b;
    margin-bottom:20px;
}

.option-box button{
    width:100%;
    height:46px;
    border:none;
    border-radius:12px;
    background:#2563eb;
    color:#fff;
    font-weight:700;
    cursor:pointer;
}
.product-topbar{

    position:fixed;

    top:15px;
    left:15px;
    right:15px;

    display:flex;
    justify-content:space-between;

    z-index:999;
}


.product-topbar{

    position:fixed;

    top:20px;
    left:20px;
    right:20px;

    display:flex;
    justify-content:space-between;

    z-index:9999;

    pointer-events:none;
}

.topbar-btn{

    width:50px;
    height:50px;

    border-radius:50%;

    background:rgba(255,255,255,.95);

    backdrop-filter:blur(15px);

    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;

    color:#111827;

    box-shadow:
    0 10px 25px rgba(0,0,0,.12);

    pointer-events:auto;

    transition:.2s;
}

.topbar-btn:hover{

    transform:translateY(-2px);
}

.topbar-btn svg{

    width:22px;
    height:22px;
}

.topbar-cart{

    position:relative;
}

.cart-badge{

    position:absolute;

    top:-4px;
    right:-4px;

    min-width:20px;
    height:20px;

    padding:0 5px;

    border-radius:999px;

    background:#2563eb;
    color:#fff;

    font-size:11px;
    font-weight:700;

    display:flex;
    align-items:center;
    justify-content:center;
}

@media(max-width:768px){

.product-topbar{

    top:12px;
    left:12px;
    right:12px;
}

.topbar-btn{

    width:42px;
    height:42px;
}

.topbar-btn svg{

    width:20px;
    height:20px;
}

.cart-badge{

    width:18px;
    height:18px;

    font-size:10px;
}

}

@media(max-width:768px){

.product-detail{
    padding-top:70px;
}

}

@media(max-width:768px){

.product-action-mobile{

    display:flex;
    gap:10px;
}

.product-action-mobile .wishlist-btn{

    width:50px;
    min-width:50px;
    flex:none;
}

.product-action-mobile .cart-btn{

    width:60px;
    min-width:60px;

    display:flex;
    align-items:center;
    justify-content:center;

    flex:none;
}

.product-action-mobile .buy-btn{

    flex:1;
}

.product-action-mobile .cart-btn svg{

    width:20px;
    height:20px;
}

}


.cart-btn{

    background:#eef4ff;

    color:#2563eb;

    border:none;

    border-radius:14px;

    height:52px;
}

.buy-btn{

    height:52px;

    border-radius:14px;

    font-weight:700;
}