/** Slide for content-showproduct**/

/**Nút**/
.product-wrapper {
position: relative;
}

.nav-btn {
position: absolute;
top: 40%;
transform: translateY(-50%);
width: 32px;
height: 32px;
border: none;
background: #fff;
box-shadow: 0 2px 6px rgba(0,0,0,0.2);
border-radius: 50%;
cursor: pointer;
z-index: 10;
}

.nav-left { left: -10px; }
.nav-right { right: -10px; }

.nav-btn:hover {
background: #f5f5f5;
}
/**#End**/
/**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**/
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 2px solid #eee;
margin-bottom: 15px;
padding-bottom: 8px;
}

/* TITLE */
.section-left h2 {
font-size: 20px;
font-weight: 700;
margin: 0;
}

/* RIGHT MENU */
.section-cats {
display: flex;
align-items: center;
gap: 15px;
list-style: none;
margin: 0;
padding: 0;
}

/* LINK */
.section-cats a {
font-size: 13px;
color: #555;
text-decoration: none;
transition: 0.2s;
}

.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;
}

/* card giống layout slider */
.product-card {
flex: 0 0 auto;
width: 180px;
background: #fff;
border: 1px solid #eee;
border-radius: 6px;
}

/* responsive giống hình */
@media (min-width: 768px) {
.product-card {
min-width: 200px;
}
}

@media (min-width: 1200px) {
.product-card {
min-width: 220px;
}
}
.product-thumb {
position: relative;
background: #fff;
display: flex;
align-items: center;
justify-content: center;
}
.product-thumb img {
width: 100%;
height: auto;
object-fit: cover; /* KHÁC cover */
padding: 10px;
background: #fff;
}
.discount {
position: absolute;
top: 5px;
left: 5px;
background: red;
color: #fff;
font-size: 11px;
padding: 2px 6px;
border-radius: 3px;
}
.product-info a {
font-size: 13px;
color: #333;
display: block;
height: 36px;
overflow: hidden;
}
.price {
padding: 0 10px 10px;
}

.price del {
display: block;
font-size: 12px;
color: #999;
}

.new-price {
color: #e60000;
font-weight: bold;
font-size: 14px;
}

.section-header {
border-bottom: 2px solid #eee;
padding-bottom: 8px;
}

.section-title h2 {
font-size: 20px;
font-weight: bold;
}

.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; }

/* Ẩn scrollbar */
.product-scroll {
display: flex;
gap: 10px;
overflow-x: auto;

scroll-behavior: auto; /* QUAN TRỌNG */

scrollbar-width: none;
-ms-overflow-style: none;

cursor: grab;
user-select: none;
will-change: scroll-position;
-webkit-user-drag: none;

}
.product-scroll::-webkit-scrollbar {
display: none;              /* Chrome, Safari */
}

.product-scroll::-webkit-scrollbar-thumb {
background: #ccc;
border-radius: 10px;
}

.product-scroll::-webkit-scrollbar {
display: none;
}

.product-scroll.dragging {
cursor: grabbing;
}

.product-scroll a {
cursor: pointer;
-webkit-user-drag: none;
}
.product-scroll,
.product-scroll * {
user-select: none;          /* chặn bôi xanh */
-webkit-user-select: none;
}

/**End**/
/** Style for Slideshow**/

/* Reset nền mặc định của Bootstrap */
#myCarousel1 .carousel-control {
    background: none;
    width: 50px;
    opacity: 1;
}

/* Icon mũi tên */
#myCarousel1 .carousel-control span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;

    color: #fff;
    font-size: 20px;

    transition: all 0.3s ease;
}

/* Hover đẹp hơn */
#myCarousel1 .carousel-control span:hover {
    background: #ff5722;
    transform: scale(1.1);
}

/* Căn giữa theo chiều dọc */
#myCarousel1 .carousel-control.left,
#myCarousel1 .carousel-control.right {
    top: 50%;
    transform: translateY(-50%);
}

/* Đẩy ra sát 2 bên */
#myCarousel1 .carousel-control.left {
    left: 10px;
}

#myCarousel1 .carousel-control.right {
    right: 10px;
}
/**End**/

/**Style for popup Giỏ hàng **/
.cart-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.cart-popup.active {
    display: block;
}

.cart-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.cart-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    padding: 20px;
    overflow-y: auto;

    transform: translateX(100%);
    transition: 0.3s ease;
}

.cart-popup.active .cart-content {
    transform: translateX(0);
}

.close-cart {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
}

.number-item {
    background: red;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}
/**End**/



/** **/

/**End**/



/** **/

/**End**/