@charset "UTF-8";
* {
  margin: 0px;
  padding: 0px;
  font-family: "Roboto Condensed", sans-serif;
}

html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a {
  color: #000;
  text-decoration: none;
}
a:hover {
  color: #000;
}
a:active {
  color: #000;
}

.font18_all * {
  font-size: 18px !important;
}

.font18 {
  font-size: 18px !important;
}

.font20 {
  font-size: 20px !important;
}

.font17 {
  font-size: 17px !important;
}

.font14 {
  font-size: 14px !important;
}

.font_small {
  font-size: 14px;
  font-style: italic;
  color: #000;
}

.font16 {
  font-size: 16px !important;
}

.font16_all * {
  font-size: 16px !important;
}

ul {
  margin: 0px;
  padding: 0px;
}
ul li {
  list-style: none;
}

img {
  width: 100%;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.clear {
  clear: both;
}

.right {
  float: right;
}

.cursor {
  cursor: pointer;
}

hr {
  margin: 8px 0px;
}

.pdl0 {
  padding-left: 0px;
}

.pd0 {
  padding: 0px;
}

.pdr0 {
  padding-right: 0px;
}

.pd05 {
  padding: 5px;
}

.pd10 {
  padding: 10px;
}

.pd15 {
  padding: 15px;
}

.bold {
  font-weight: bold;
}

.mg0 {
  margin: 0px;
}

.readmore.closed {
  max-height: 100px;
  overflow: hidden;
}

.hplink {
  color: royalblue;
  text-decoration: underline;
}

.textgray {
  color: #3e3a3acf !important;
  font-weight: 500;
  font-size: 15px;
}

.scaleimg {
  overflow: hidden;
}
.scaleimg img {
  width: 100%;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
}
.scaleimg:hover img {
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}

.slick-slider .btn_arrow {
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  color: #fff;
  -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
          box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
  font-weight: bold;
  background: #fff;
  cursor: pointer;
  position: absolute;
  border-radius: 50%;
  color: #000;
}
.slick-slider .btn_arrow.btn_prev {
  bottom: 45%;
  left: 25px;
  z-index: 10;
}
.slick-slider .btn_arrow.btn_next {
  bottom: 45%;
  right: 25px;
  z-index: 10;
}

#backtotop {
  position: fixed;
  bottom: 15%;
  right: 2%;
  width: 40px;
  height: 40px;
  z-index: 999;
  display: none;
  text-align: center;
  padding-top: 2px;
  cursor: pointer;
  background: #0C714B;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  -webkit-animation: fadeup 0.4s;
          animation: fadeup 0.4s;
}
#backtotop::after {
  content: "";
  font-family: "FontAwesome";
  color: #fff;
  font-size: 22px;
  font-weight: bold;
}
#backtotop:hover {
  background: orangered;
}

@-webkit-keyframes fadeup {
  from {
    bottom: -100px;
  }
}

@keyframes fadeup {
  from {
    bottom: -100px;
  }
}
@media screen and (max-width: 1000px) {
  .live-search a.fa {
    display: none;
  }
  .live-search .search-box {
    display: block;
    width: 96%;
    margin: auto;
    position: relative;
  }

  .text-overflow-mb {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }

  .p0mb {
    padding: 0px !important;
  }

  .wrapper {
    display: grid;
    grid-template-columns: 30% 70%;
  }
  .wrapper div {
    padding-left: 10px;
  }
}
@media screen and (max-width: 767px) {
  #qickcart {
    width: 90%;
    margin: auto;
  }

.sec-lienket .box-link {
        padding: 10px 5px; /* Giảm khoảng cách bên trong */
        min-height: 80px;  /* Thu thấp độ cao của ô */
        font-size: 15px;   /* Giảm cỡ chữ để không bị nhảy dòng */
        margin-bottom: 10px;
    }

    .sec-lienket .box-link .fa {
        font-size: 18px;   /* Thu nhỏ icon */
        margin-bottom: 5px;
    }
    
    .sec-lienket .box-link .text {
        line-height: 1.2;
        letter-spacing: 0; /* Bỏ khoảng cách chữ để tiết kiệm diện tích */
    }

    /* Đảm bảo 2 ô trên 1 hàng cân đối */
    .p0mb {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    .sec-lienket .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .sec-lienket .col-xs-6 {
        padding-left: 5px;
        padding-right: 5px;
    }

  .item-sanpham {
    margin-bottom: 15px;
    position: relative;
  }
  .item-sanpham a .content .price {
    font-size: 14px;
    margin: 0px 5px 0px 5px;
  }
  
  
      /* Khung chứa nút đặt hàng */
    .item-sanpham .box-quick-add {
        position: relative !important;
        margin-top: 10px !important;
        opacity: 1 !important; /* Cố định hiển thị nút */
        text-align: center;
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0 !important; /* Bỏ vị trí tuyệt đối */
        background: transparent !important; /* Bỏ nền trắng mờ */
        backdrop-filter: none !important;
    }

    /* Thẻ span chứa icon giỏ hàng */
    .item-sanpham .box-quick-add .qick-add-card {
        display: inline-block;
        background: rgba(108, 117, 125, 0.05); /* Nền xám rất nhẹ */
        color: #444444 !important; /* Màu xám */
        padding: 8px 15px; /* Giảm padding */
        border-radius: 25px;
        font-size: 16px !important; /* Tăng kích thước icon lên */
        border: 1px solid rgba(12, 113, 75, 0.2);
        width: auto !important; /* Tự động theo kích thước icon */
        height: auto;
        line-height: normal;
        cursor: pointer;
        transition: 0.3s;
    }

    /* Bỏ chữ "Thêm vào giỏ hàng" bằng CSS */
    .item-sanpham .box-quick-add .qick-add-card::after {
        content: "" !important; /* Bỏ nội dung chữ */
        display: none !important;
    }

    /* Hover trên điện thoại: Chỉ đổi màu nhẹ */
    .item-sanpham .box-quick-add .qick-add-card:hover {
        background: #a61e16;
        color: #fff !important;
    }
	
	
	.item-sanpham .percent{
	    left: 0px !important;
	}
	
	
	.item-blog {
        margin-bottom: 30px; /* Tạo khoảng cách giữa các bài viết */
        border-bottom: 1px solid #f0f0f0; /* Đường kẻ mờ phân cách */
        padding-bottom: 15px;
    }
    
    .item-blog .title {
        font-size: 16px !important;
        white-space: normal !important; /* Quan trọng: Cho phép xuống dòng */
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Giới hạn tối đa 2 dòng tiêu đề */
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 42px; /* Giữ chiều cao cố định để các khối đều nhau */
    }

    .item-blog .scaleimg img {
        width: 100%;
        height: auto;
        border-radius: 5px;
    }	
	
	.sec-blog .col-md-3 {
        margin-top: 40px; /* Tạo khoảng cách lớn giữa bài viết và tin nổi bật */
        padding-top: 20px;
        border-top: 3px solid #f9f9f9;
    }
    
	.sec-blog .box-title-container {
        padding: 5px 5px !important; /* Mobile cần padding để không dính mép */
    }
    .sec-blog .box-title {
        font-size: 18px !important; /* Hạ size chữ xuống cho vừa màn hình nhỏ */
    }
    .sec-blog .box-title:after {
        width: 50px !important; /* Gạch chân ngắn lại cho cân đối */
    }
	
}


@media (min-width: 992px) and (max-width: 1199px) {
  .nav-menu li a {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 13px; /* Thu nhỏ font một chút ở khoảng màn hình này */
  }
}
