.myclear{
    clear: both;
}
.page-header .topnew {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    /* height:250px; */
    height:350px;
    padding:3em 1em;
    background-color:#C8C3BF;
    background-position:center;
    background-size:cover;
    text-align:center;
    color:#222;
}
@media only screen and (max-width: 600px) {
    .page-header { display: block !important; }
    .topnew { display: block !important; }

    .topnew {
        height:auto;
        background-size:contain;
    }
}
.product-price  {
    color: #075df2;
}
.product-name {
    flex: 1;
    white-space: inherit;
    display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3; /* Giới hạn tối đa 3 dòng */
            line-clamp: 3; /* Giới hạn tối đa 3 dòng */
            overflow: hidden;
            text-overflow: ellipsis;
            max-height: 6em ; /* 3 dòng = 3 * 1.5em (giả sử line-height = 1.5) */
            line-height: 1.5;
            word-break: break-word;
}
/* Định dạng nút Scroll To Top */
#scrollTopBtn {
    display: none; /* Ẩn mặc định */
    position: fixed;
    bottom: 120px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: #ff5733;
    color: white;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 999;
    transition: opacity 0.3s, transform 0.3s;
}

#scrollTopBtn:hover {
    background: #e74c3c;
}

/* Chỉ hiển thị trên di động */
@media (max-width: 600px) {
    #scrollTopBtn {
        display: block;
    }
}
/* SLIDER */
/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */

/* body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
} */

.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    height: 350px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slides {
    display: flex;
    width: 100%;  /* Để mỗi ảnh full container, tránh bị kéo nhiều ảnh */
    transition: transform 1s ease-in-out;
}

.slides img {
    min-width: 100%; /* Đảm bảo chỉ hiển thị 1 ảnh mỗi lần */
    height: 350px;
    object-fit: contain; /* Giữ nguyên tỷ lệ ảnh */
}

/* Nút điều hướng */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .slider {
        width: 100%;
    }

    .slides img {
        height: auto;
    }

    .prev, .next {
        padding: 10px;
        font-size: 18px;
        width: 40px;
        height: 40px;
    }
}
.product-gallery {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    position: sticky;
    justify-content: center;
}
@media (max-width:992px) {
    .product-gallery {
       flex-direction: column-reverse !important;
       padding: 15px !important;
    }
    .product-thumbs-list {
        margin-bottom: 1rem;
        flex-direction: row !important;
        width: 100% !important;
        max-height: 120px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
    .product-main-image {
        max-height: 400px !important;
    }
    .product-main-image img {
        max-height: 400px !important;
    }
}

@media (max-width:576px) {
    .product-gallery {
       gap: 10px !important;
       padding: 10px !important;
    }
    .product-thumbs-list {
        gap: 8px !important;
    }
    .product-thumb {
        min-width: 80px !important;
        width: 80px !important;
    }
    .product-thumb img {
        height: 80px !important;
    }
    .product-main-image {
        max-height: 300px !important;
    }
    .product-main-image img {
        max-height: 300px !important;
    }
}
.fixed-height-image {
    width: auto; 
    max-height: 400px; 
    object-fit: cover; 
    text-align: center;
    
    display: block;
} 

.scrollable-text {
    max-height: 400px; /* Chiều cao tối đa */
    overflow-y: auto; /* Cuộn khi nội dung vượt quá */
    padding-right: 10px; /* Tạo khoảng trống để tránh che nội dung bởi thanh cuộn */
}
.image-container {
    display: flex;
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
    width: 100%; 
    max-height: 350px; /* Chiều cao cố định của khung */
    overflow: hidden; /* Ẩn phần ảnh thừa nếu có */
    /* background-color: #fffdfd; Màu nền để thấy rõ vùng ảnh */
}
/* BANNER */
.bannertop {
    width: 100%; /* Chiều rộng tối đa */
    height: 200px; /* Chiều cao cố định */
    overflow: hidden; /* Ẩn phần ảnh thừa */
    display: flex;
    justify-content: center; /* Căn giữa ảnh theo chiều ngang */
    align-items: center; /* Căn giữa ảnh theo chiều dọc */
    background-color: #f3f3f3; /* Màu nền (tuỳ chỉnh nếu cần) */
}

.bannertop .bannertop-img {
    width: 100%; /* Chiếm toàn bộ chiều rộng */
    height: auto; /* Chiếm toàn bộ chiều cao */
    object-fit: cover; /* Cắt ảnh để lấp đầy khung mà không bị méo */
}
/* SLIDER */

/* .swiper {
    width: 100%;
    height: 300px; Chiều cao cố định
} */


/* .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
} */

/* .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;  Đảm bảo ảnh không méo 
}  */
.swiper {
    width: 100%;
    max-width: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 400px; /* Điều chỉnh nếu cần */
    object-fit: cover; /* Đảm bảo ảnh không méo */
    aspect-ratio: 16/5; /* Giữ đúng tỷ lệ ảnh */
}
/* THÊM CONTACT */
.contact-us .breadcrumb {
    padding:1.2rem 0 1.1rem
  }
  
  .contact-us .breadcrumb li:last-child {
    color:#666
  }
  
  .contact-us .breadcrumb li:not(:last-child):after,.contact-us .breadcrumb li:not(:last-child) a {
    opacity:0.7
  }
  
  .contact-us .page-header {
    height:30.2rem
  }
  
  .contact-us .page-title {
    font-size:5rem
  }
  
  .contact-us .grey-section {
    background-color:#f6f7f9
  }
  
  .contact-us .store-section .title {
    font-size:3rem
  }
  
  .contact-us .grey-section {
    padding:2.5rem 3.2rem 1.4rem
  }
  .contact-us .grey-section {
    padding: 2.5rem 3.2rem 1.4rem!important;
}

  
  .contact-us .grey-section h4 {
    font-size:2rem;
    line-height:1.1
  }
  
  .contact-us .grey-section p {
    margin-bottom:3.2rem;
    line-height:1.72
  }
  
  .contact-section form h4 {
    margin-bottom:0.3rem
  }
  
  .contact-section form p {
    margin-bottom:2.4rem;
    font-size:1.3rem
  }
  
  .contact-section .form-control {
    border-radius:0.3rem
  }
  
  .contact-section .form-control::placeholder {
    color:#999
  }
  
  .contact-section textarea {
    min-height:15rem;
    padding:1rem 2rem
  }
  
  .contact-section .btn i {
    font-size:1.6rem;
    margin-left:1rem;
    margin-bottom:0.2rem
  }
  
  .contact-section .btn i:before {
    font-weight:600
  }
  