/*
Theme Name: Hapco
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.banner-ct .banner-bg {
    border-radius: 10px;
}
.banner-ct {
    border-radius: 10px;
}
.header-block-hotline h3 {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 20px;
}
.header-block-hotline p {
    font-size: 13px;
}
.icon-box-header .icon-box-text {
    padding-left: 10px !important;
}
.blog-ct .post-item {
    padding-bottom: 0;
}
.blog-ct .post-item .box-text {
    padding-bottom: 0;
}
.blog-ct .post-item .box-text .box-text-inner {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 10px;
}
.blog-ct .post-item .box-text {
    position: relative;
}
.blog-ct .post-meta {
    font-size: 15px;
}
.blog-ct .post-title {
    font-size: 16px;
}
.blog-ct {
    padding: 15px 0px 20px 0px;
}
.row-blog {
       background: #f7f7f7;
       height: 230px;
       overflow: auto;
}

#header-contact li a span{    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    color: black;}
#header-contact li a i{
    color: #4aa936;}.nav-spacing-xlarge>li {
    margin: 0 17px;
}
.footer-section .col{padding-bottom:0}.footer-section h3{font-size: 18px;
    font-weight: 500;
    color: #454545;
    margin-bottom: 19px;}
.section4 {padding-bottom:10px !important}
a.back-to-top{background:#4aa936 !important; color:white !important; border:none} .tieu-de-section .col{padding-bottom:0}.tieu-de-section .large-4 {
    text-transform: uppercase;
    font-weight: 500;
    font-family: "inter",sans-serif;text-align:right
}
.nut-1{padding: 5px 20px;
    border-radius: 5px;
    font-weight: bold;
    letter-spacing: 0;
    font-family: "inter", sans-serif;
    font-size: 16px;}
.product-small .box-text{padding:10px 10px}
.product-small.box .product-title a{font-size:15px; color:black;font-weight: 700;}
.stuck .header-main{background:white}.product-small.box .product-title a:hover{color:#4aa936}
.section2 .col{padding-bottom:0}
.section-title-bold span {padding: 3px 12px 0 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 19px;
    font-weight:500;
    color:#da1c1c;
    border: none;
}.section-title b {
    background-color: currentColor;height:1px
}.section-title-container{margin-bottom:0}
.section3 .col{padding-bottom:0}
.section3 .img{    box-shadow: 0 0 5px rgb(0 0 0 / 10%);
    margin-bottom: 30px;}
.section3 .section-title-bold{margin-bottom:17px}
.section3 .ux-logo-link img{height:55px !important; border-radius:5px}
.section3 .ux-logo-link img:hover{    box-shadow: 2px 2px 20px #0000001c;}
.flickity-prev-next-button{top:13%}
.flickity-prev-next-button svg{padding:30%}
.section3 .ux-logo-link{padding:0 !important}.slider-nav-push:not(.slider-nav-reveal) .flickity-prev-next-button {
    margin-top: -5%;
}.box-blog-post .is-divider{display:none}.list-post1 .post-item .post-title{margin-bottom: 9px;}
.list-post1 .post-item .box-text{padding:20px 15px}
.section4 .flickity-prev-next-button{margin-top:5%!important}
.list-post1 .post-item .col-inner{box-shadow: 2px 2px 20px #0000001f;}.list-post1 .post-item .post-title:hover{color:#d91d1a}
.list-post1 .post-item a:hover{color:black}
.gioi-thieu-2 .col{padding-bottom:0}
.gioi-thieu-2 ul li{list-style:none}
.lien-he-1 .col{padding-bottom:0}
.lien-he-1 .cot2 .col-inner{    background: #ffffff29;
    padding: 30px;
        border-radius: 10px;}.lien-he-1 .cot2 .col-inner .col-inner{background:none; padding:0; border-radius:0}
.lien-he-2 .col{padding-bottom:0;}
.lien-he-2 .nut2{    border-radius: 99px;
    margin: 0;
    margin-top: 30px;
    color: #4aa936 !important;
    font-family: "inter", sans-serif;
    letter-spacing: 0;
    box-shadow: 2px 2px 20px #00000024;}
.form-lien-he p.des{margin-bottom:14px}
.form-lien-he .row-info{display:inline-block; clear:both; width:100%;}
.form-lien-he .row-info .left{display:inline-block; width:50%;float:left; padding-right:10px;}
.form-lien-he .row-info .right{display:inline-block; width:50%;padding-left:10px}
.form-lien-he input, .form-lien-he textarea{border-radius:5px; box-shadow:none}
.lien-he-3 .col{padding-bottom:0}
span.widget-title {
    font-weight: 600;
    font-size: 21px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: normal;
    color: #4aa936;
}.widget .is-divider {
    margin-top: 0.66em;
    max-width: 100%;
    height: 0px;
}.nav-small.nav>li.html {
    font-size: 15px;
    font-weight: 500;
    color: #dc1a1b;
    font-family: "inter", sans-serif;
}
.single-product .featu#4aa936-title .page-title-inner {
    padding-bottom: 61px;
}
.single-product .page-title-inner {
    position: relative;
    padding-top: 70px;
    min-height: 124px;
}
.tu-van-block .nut1{border-radius: 5px;
    font-family: "inter", sans-serif;
    letter-spacing: 0;
    text-transform: none;
        font-weight: 500;}.tu-van-block .col{padding-bottom:0}
.single-product .product-short-description{font-size:15px}
.single-product .product_meta{font-size:14px}.product-footer .woocommerce-tabs {border-top: 0;
}.product-main {
    padding: 20px 0 0 0;
}
.tu-van-block .nut2{background: gray !important;
    border-radius: 5px;
    font-family: "inter",sans-serif;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;}
.single-product .title-overlay {
    background-color: rgb(0 0 0 / 67%);
}
.woocommerce-breadcrumb{display: none;}
.widget_product_categories li{    border-top: 1px solid white !important;}
.widget_product_categories li a{    background: #f5f5f5;
        padding: 4px 10px !important; font-size: 15px;}.widget_product_categories li a:hover{background:#4aa936; color:white}.woocommerce-result-count, .woocommerce-ordering, .woocommerce-ordering select{font-size:13px}.recent-blog-posts a{font-size:15px}
.flatsome_recent_posts .badge-inner{border-radius:99%}
.woocommerce-tabs .tabs{border-bottom: 2px solid #ededed;
    padding-bottom: 6px;}
.related{border-top:none !important}
.related h3{margin: 0;
    padding: 0;
    letter-spacing: 0;
    text-transform: none;
    font-size: 20px;
    border-bottom: 2px solid #ededed;
        padding-bottom: 10px;}.related h3{margin-bottom:20px}
.single-product .large-9{border-left:none !important; padding-left:0}
.blog-archive .post-item .post-title{margin-bottom:11px}
.blog-archive .large-12{padding-bottom:0; text-align:left}
.page-wrapper {
    padding-top: 20px;
    padding-bottom: 20px;
}
.blog-archive .large-9{padding-left:0}
.blog-archive .post-item a:hover{color:black}
.blog-archive .post-item .post-title:hover{color:#cd2219}
#breadcrumbs{margin-bottom:5px; font-size:14px}
.blog-archive h1.page-title{margin-bottom: 20px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 25px;}
.woocommerce-tabs li a{text-transform: none;
    letter-spacing: 0;
    font-size: 20px;
    font-weight: bold;
    padding: 0;}
.single-product .nav-line>li.active>a:before{display:none}
.blog-single .large-9{padding-left:0}.xem-them .tieu-de-xem-them {
     font-weight: 700;
    display: block;
    margin-bottom: 10px;
    color: black;
    font-family: "inter", sans-serif;
        font-size: 20px;}
.xem-them ul li {
    margin-bottom: 3px;
}
.xem-them ul li a {
   font-weight: 700;
    font-size: 15px;
    color: #313131;
}
.xem-them ul li a:hover {
    text-decoration: underline;
}
.blog-single .entry-meta {
    text-transform: none;
    font-size: 14px;
    letter-spacing: 0;
    color: gray;
    border-top: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
    padding: 10px;
    background: #f9f9f9;
}
.danh-muc {
    margin-bottom: 15px;
}
.danh-muc span.title, .the-tim-kiem span.title {
    border-radius: 4px;
    background: #d81c1d;
    padding: 4px 10px;
    color: white;
    margin-right: 5px;
}
.danh-muc a, .the-tim-kiem a {line-height:32px;
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 4px 10px;
    background: #dedede;
    color: #464646;
}
.danh-muc a:hover, .the-tim-kiem a:hover {
    background: #b9b9b9;
    color: white;
}
.bai-viet-lien-quan {
    margin-top: 15px;
}
.bai-viet-lien-quan h3 {
    font-size: 20px;
    color: black;
}
.bai-viet-lien-quan ul {
    margin-bottom: 0;
    display: inline-block;
    width: 100%;
}
.bai-viet-lien-quan ul li {
    list-style: none;
    width: 33.33%;
    color: graytext;
    float: left;
    padding-left: 4px;
    padding-right: 5px;
}
.bai-viet-lien-quan ul li .box-image img {
    height: 200px;
    object-fit: cover;
    object-position: center;
}.bai-viet-lien-quan h4:hover{color:#d81d1e}
.bai-viet-lien-quan h4 {
    font-size: 15px;
    color: black;
    line-height: 19px;font-weight:500;
    padding-top: 7px;
    height: 47px;
    overflow: hidden;
}.blog-single .large-9 .is-divider{display:none}.blog-single .blog-share{text-align:left}.entry-content {
    padding-bottom: 0;
}
.category-filtering a{font-family: "inter",sans-serif;
    letter-spacing: 0;}
.footer-section h3 {
    font-size: 18px;
    font-weight: 500;
    color: #818181;
    margin-bottom: 19px;
    text-transform: uppercase;
}
.row.product-ct .col:nth-child(8n+1) .col-inner,
.row.product-ct .col:nth-child(8n+3) .col-inner,
.row.product-ct .col:nth-child(8n+6) .col-inner,
.row.product-ct .col:nth-child(8n+8) .col-inner {
  background-color: #d4d8d9; /* Màu 1 */
}

.row.product-ct .col:nth-child(8n+2) .col-inner,
.row.product-ct .col:nth-child(8n+4) .col-inner,
.row.product-ct .col:nth-child(8n+5) .col-inner,
.row.product-ct .col:nth-child(8n+7) .col-inner {
  background-color: #e3e7e8; /* Màu 2 */
}
.product-ct .box-text {
    width: 60%;
    padding: 30px;
}
.product-ct .box-text .product-title a {
    font-size: 25px;
    text-transform: capitalize;
}
.text-dmsp h4 {
    color: #666;
}
.text-dmsp p {
    color: #666;
}
.row.product-ct .col .col-inner {
  transition: background-color 0.3s ease; 
}

.row.product-ct .col .col-inner:hover {
  background-color: #1d2020; 
}
.row.product-ct .col .col-inner:hover h4, .row.product-ct .col .col-inner:hover p{
  color: #fff; 
}
.img-box-last .box-text {
    width: 100%;
}
.img-box-last:before {
    content: '';
    position: absolute;
    z-index: 1;
    top: 16px;
    left: 16px;
    width: calc(100% - 32px);
    height: calc(100% - 32px);
    transform: scale(1);
    background: transparent;
    border: 2px solid #fff;
}
.text-dmsp {
    text-shadow: none;
}



@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
.bai-viet-lien-quan ul li {
    width: 50%;
}
.bai-viet-lien-quan ul li .box-image img {
    height: 90px;
}
.off-canvas .nav-vertical>li>a {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 15px;
    color: black;
}
.banner .text-box{width:100% !important; padding:15px !important}
.banner .text-box h2{font-size: 23px;
    line-height: 34px;}
.banner{padding-top:360px !important}.list-post1 .post-item .post-title {
    font-size: 16px;
}.footer-section .col{flex-basis:100%; max-width:100%}.gioi-thieu-2 .col, .gioi-thieu-2 ul li{text-align:center !important}
.off-canvas-left .mfp-content{background:white}.single-product .large-9, .blog-archive .large-9,.blog-single .large-9{padding-left:15px}.product-info {
    padding-bottom: 0;
}.blog-archive .post-item .post-title {
    font-size: 16px;
}.nav-small.nav>li.html {
    font-size: 14px;color:black
}.bai-viet-lien-quan h3, .xem-them .tieu-de-xem-them {
        font-size: 18px;}

}


/* css phuc dev */
/* Grid hiển thị thông số sản phẩm */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Desktop: 2 cột */
  gap: 10px;
  margin-top: 10px;
}

.spec-item {
    background: rgba(0,0,0,.4);
    padding: 4px 10px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec-label {
  font-weight: 600;
  color: #fff;
  text-align: left;
}

.spec-value {
  font-weight: 300;
  color: #fff;
}

/* Mobile: tự động xuống 1 cột */
@media (max-width: 767px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }
}
.product-small.box {
    background: #fff;
}
.product-small .box-text .product-title {
    text-align: left;
}
.product-sidebar .box-category {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    border: 1px solid #ccc;
    padding: 3px;
}
.product-sidebar .box-category:hover {
    background: #ebebeb;
}
.product-sidebar .box-category .box-text {
    padding: 0;
}
.product-sidebar .box-category .box-text {
    padding: 0px 10px 0 10px;
    font-size: 14px;
}
.product-sidebar .box-category .box-text h5 {
    text-transform: capitalize;
}
.product-sidebar .product-category {
    padding-bottom: 5px;
}

/* ===== Layout chính ===== */
.category-page {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* ===== Sidebar Sticky ===== */
.category-sidebar {
  width: 25%;

}

.category-sidebar h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #4aa936;
  font-weight: 600;
}


/* ===== Nav ===== */
.side-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
}

.side-nav {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    background: #fff;
    padding: 15px;
    border-radius: 0 0 5px 5px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #f7f7f7;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.side-nav a:hover {
  background: #e9f5ec;
  color: #4aa936;
}

.side-nav a.active {
  background: #4aa936;
  color: #fff;
}

/* ===== Content ===== */
.category-content {
  width: 75%;
}

/* ===== Section ===== */
.cat-section {
  background: #f5f5f5;
  padding: 30px;
  margin: 30px 0;
}

.cat-section h2 {
  text-align: center;
  text-transform: uppercase;
  font-size: 26px;
  font-weight: 700;
  color: #4aa936;
  margin-bottom: 20px;
}

/* ===== Responsive Mobile ===== */
@media (max-width: 768px) {
  .category-page {
    flex-direction: column;
  }

  .category-sidebar {
    width: 100%;
    position: relative; /* bỏ sticky trên mobile */
    top: auto;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
  }

  .category-sidebar h3 {
    display: none;
  }

  .side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
  }

  .side-nav a {
    flex: 1 1 48%;
    text-align: center;
    font-size: 14px;
    padding: 8px;
  }

  .category-content {
    width: 100%;
  }
}




.product-sku {
    font-size: 14px;
    color: #666;
    text-align: left;
}

.custom-buttons-wrap {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 10px;
}

.btn-icon {
    display: inline-flex !important;
    background: #eaf5ed;
    color: #333;
    padding: 5px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 1px solid #f1f1f1;
    align-items: center;
    width: 50%;
    justify-content: center;
}

.btn-icon:hover {
    background: #d4ebd9;
    color: #000;
}
.box-text-products .title-wrapper {
    min-height: 50px;
}
.child-cat-header {
    border-left: 4px solid #000;
    padding-left: 10px;
    margin-bottom: 15px;
}
h3.child-cat-title {
    margin-bottom: 0 !important;
}
.cat-section h3 {
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 30px;
}
.cat-section .row .col-inner {
    background: #f5f5f5;
    height: 100%;
}
table {
    background: #fff;
    padding: 15px;
}
.pdf-list {
    margin-top: 15px;
}
ul.pdf-list li {
    list-style: none;
}
ul.pdf-list li a {
    background: #fff !important;
    color: #333;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
}
.tbl-spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tbl-spec th,
.tbl-spec td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  vertical-align: middle;
}

.tbl-spec th {
  background: #f5f5f5;
  font-weight: 600;
  text-transform: uppercase;
  color: #333;
  width: 200px; /* có thể chỉnh cho đều */
}

.tbl-spec td {
  color: #000;
}

/* Responsive: cho phép cuộn ngang nếu bảng dài */
.tbl-spec_wrap {
  overflow-x: auto;
}
form.woocommerce-ordering, .woocommerce-result-count {
    display: none;
}

svg.flickity-button-icon {
    background: #4aa936;
    border: none !important;
}
.shop-page-title {
    display: none;
}
.breadcrumb {
    padding-top: 15px;
}
.breadcrumb span.current {
    color: #000;
    font-weight: bold;
}
.category-banner {
  position: relative;
  width: 100%;
  height: 300px; 
  overflow: hidden;
}

.category-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}
@media (max-width: 768px) {
  .category-banner {
    height: 125px;
  }
}


.footer-link a {
    transition: all .3s;
}
.footer-link a:hover {
    padding-left: 5px;
    color: #4aa936 !important;
}
