
/* ==================================================
   home.min.css
   Tách từ customs.min.css (giữ nguyên source gốc)
================================================== */

/** Slide for content-showproduct **/

/* Nút */
.product-wrapper{
    position:relative;
}

.nav-btn{
    position:absolute;
    top:40%;
    transform:translateY(-50%);
    width:34px;
    height:34px;
    border:none;
    background:#fff;
    box-shadow:0 2px 8px rgba(0,0,0,0.15);
    border-radius:50%;
    cursor:pointer;
    z-index:2;
}

.nav-left{
    left:-15px;
}

.nav-right{
    right:-15px;
}

.nav-btn:hover{
    background:#f5f5f5;
}

/* UX Drag */
.product-scroll.dragging{
    cursor:grabbing;
    cursor:-webkit-grabbing;
}

.banner-card{
    flex:0 0 auto;
    width:260px;
    border:none;
    padding:0;
}

.banner-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:6px;
}

/* Slide */
.product-scroll{
    display:flex;
    gap:10px;
    overflow-x:auto;
    scroll-behavior:auto;
    scrollbar-width:none;
    -ms-overflow-style:none;
    cursor:grab;
    user-select:none;
    will-change:scroll-position;
    -webkit-user-drag:none;
    scroll-snap-type:x mandatory;
}

.product-scroll::-webkit-scrollbar{
    display:none;
}

.product-scroll::-webkit-scrollbar-thumb{
    background:#ccc;
    border-radius:10px;
}

.product-scroll a{
    cursor:pointer;
    -webkit-user-drag:none;
}

.product-scroll,
.product-scroll *{
    user-select:none;
    -webkit-user-select:none;
}

/* Section categories */
.section-cats{
    display:flex;
    align-items:center;
    gap:15px;
    list-style:none;
    margin:0;
    padding:0;
    overflow-x:auto;
    cursor:grab;
    scrollbar-width:none;
    -ms-overflow-style:none;
}

.section-cats,
.section-cats *{
    user-select:none;
    -webkit-user-select:none;
}

.section-cats.dragging{
    cursor:grabbing;
}

.section-cats::-webkit-scrollbar{
    display:none;
}

.section-cats li{
    flex-shrink:0;
}

/* Link */
.section-cats a{
    font-size:13px;
    color:#555;
    text-decoration:none;
    transition:.2s;
    white-space:nowrap;
}

.section-cats a:hover{
    color:#e60000;
}

/* Xem tất cả */
.section-cats .view-all a{
    color:#e60000;
    font-weight:500;
    border-left:1px solid #ddd;
    padding-left:10px;
}
