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

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}
/*sản phẩm*/
.product-specs h3 {
    font-size: 18px;
    margin-bottom: 15px;
}
.product-specs .row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.product-specs .col {
    flex: 1 1 calc(25% - 15px);

}
@media(max-width: 768px) {
    .product-specs .col {
        flex: 1 1 calc(50% - 15px);
    }
}
@media(max-width: 480px) {
    .product-specs .col {
        flex: 1 1 100%;
    }
}
.product-gallery .col, .product-gallery .gallery-item, .product-gallery .columns {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
}
.product-specs.mt-3 {
    font-size: 14px;
}
.product-main {
    background: #F7F6F6;
}


/* Mobile:*/
@media (max-width: 767px) {
  .single-product .product-main .row.content-row {
    display: flex;
    flex-direction: column;
  }
  .single-product .product-main .product-gallery {
    order: 1; 
  }
  .single-product .product-main .product-info {
    order: 2; 
  }
}

/*chi tiết sp*/
@media (min-width: 1025px) {
    .shop-container {
        margin-top: 5%;
    }
    .product-gallery.col.large-6 {
        margin-top: -15%;
    }
}
.info-icons-wrap {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    border-top: 1px solid #ccc;
    padding-top: 20px;
}

.info-icon-box {
    text-align: center;
    flex: 1;
}

.info-icon-box img {
    width: 40px;
    height: auto;
    margin-bottom: 8px;
}

.info-icon-box span {
    display: block;
    font-size: 14px;
    color: #333;
}

.info-icon-box a {
    text-decoration: none;
    color: inherit;
}

.info-icon-box a:hover span {
    color: #0073aa;
}

/*  icon + nút */

.under-thumb-button-wrap {
  text-align: center;
  margin-top: 30px;
	 margin-bottom: 30px;
}

.under-thumb-button {
  display: inline-block;
  padding: 10px 18px;
  background: #0073aa;
  color: #fff;

  text-decoration: none;
  transition: background 0.2s ease;
}

.under-thumb-button:hover {
  background: #005f8d;
	  color: #fff;
}
form.cart {
    display: none;
}
.price-wrapper {
    font-size: 20px;
}
.product-summary .woocommerce-Price-currencySymbol {
    font-size: 1em;
    vertical-align: top;
    margin-top: .05em;
}
.product-price-table {
  margin: 25px 0;
}

.product-price-table h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.bang-gia-san-pham
 {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.bang-gia-san-pham td {
  border: 1px solid #ddd;
  padding: 12px 15px;
}

.bang-gia-san-pham tr:nth-child(even) {
  background-color: #f9f9f9;
}
/*tab*/
.has-equal-box-heights .box-image {
    padding-top: 55%;
}
.pt-half {
    padding-top: 15px;
    margin-left: 0;
}
/*trang-chủ*/


/* Tiêu đề */
.product-cat-grid .product-title {
  font-size: 18px;
  font-weight: 700;
  color: #0056a4; 
  margin: 0 0 8px;
  text-transform: uppercase;
}

/* Giá */
.product-cat-grid .product-price {
  font-size: 16px;
  color: #000;
  margin-bottom: 15px;
}


/* Ảnh sản phẩm */
.product-cat-grid .product-image img {
  max-width: 100%;
  height: auto;
  transition: transform .3s ease;
}

.product-cat-grid .product-box:hover .product-image img {
  transform: scale(1.05);
}

/* Responsive */
@media(max-width: 1024px) {
  .product-cat-grid .product-box {
    flex: 0 0 calc(50% - 20px); /* 2 cột */
  }
}
@media(max-width: 600px) {
  .product-cat-grid .product-box {
    flex: 0 0 100%; /* 1 cột */
  }
}
/*san pham trang chu*/
.product-tc .col.medium-4.small-6.product-box {
    background: linear-gradient(170deg, rgba(243, 244, 244, 0.9), #ffff);
    position: relative;
    overflow: hidden;
    transition: all 0.5s 
ease;
}
.product-cat-grid .row{
    display: flex;
    flex-wrap: wrap;
     gap: 50px; 
}
/* .product-cat-grid.row {
    display: flex;
    flex-wrap: wrap;
    gap: 80px; 
} */

.product-tc .product-cat-grid .product-box {
    flex: 1 1 calc(33.333% - 80px); 
    box-sizing: border-box;
}
.product-tc .product-top-title.text-center {
    padding-top: 30px;
    text-align: right;
    margin-bottom: 20%;
}
.product-tc .product-cat-grid .product-price {
    font-size: 20px;
    color: #000;
    margin-bottom: 15px;
}
.product-cat-grid .product-box {
    position: relative;
    overflow: hidden; 
    background: #fff; 
    transition: transform 0.3s ease;
}

.product-tc .product-cat-grid .product-box::before {
    content: '';
    position: absolute;
    top: -100%; 
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(170deg, rgba(30,144,255,0.15), #ffffff);
    transition: top 0.6s ease;
    z-index: 1; 
}

.product-tc .product-cat-grid .product-box:hover::before {
    top: 0; 
}

.product-tc .product-cat-grid .product-box > * {
    position: relative;
    z-index: 2; 
}
.product-tc li.tab.active.has-icon {
    border-style: solid;
    border-width: 0px 0px 1px 0px;
}
.product-tc li.tab.has-icon,.product-tc li.tab.active.has-icon {
    background: linear-gradient(to bottom, #e0e0e0, #ffffff);
    border-radius: 1px;
    padding: 5px 20px;
    font-weight: bold;
    color: #000000;
    transition: all 0.3s;
	
}
.product-tc img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
    padding: 0;
    margin: 0;
    min-width: 100%;
}
.nav.nav-simple.nav-uppercase.nav-size-xlarge.nav-left li.tab {
    margin-right: 30px;
    display: inline-block;
}

.nav.nav-simple.nav-uppercase.nav-size-xlarge.nav-left li.tab:last-child {
    margin-right: 0; 
}
/* */
.nav.nav-simple.nav-uppercase.nav-size-xlarge.nav-left li.tab:hover {
    border-bottom: 1px solid #000; 
}
/*header*/
.btn-dangky {

    background-color: #0056A4; 

    border-radius: 6px; 

}

.btn-dangky:hover {
    background-color: #0056A4; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translateY(-2px);
	color: #fff;
}
.btn-dangky a {
    display: inline-block;
    background-color: #1365ae;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;

padding: 10px 20px;
}
/*tin tức*/
h6.entry-category.is-xsmall {
    display: none;
}
h5.post-title.is-large {
    font-size: 22px;
}
h1.page-title.is-large.uppercase {
    display: none;
}
.is-divider {
    display: none;
}
.article-inner h1.entry-title {
    border-bottom: 1px solid #000;
    padding-bottom: 20px;
    text-align: center;
}
div#respond {
    display: none;
}
/*form*/

.btn-laithu input,
.btn-laithu select {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

.btn-laithu input:focus,
.btn-laithu select:focus {
  border-color: #000;
  outline: none;
}

.btn-laithu input[type="submit"] {
  width: 100%;
  background: #000;
  color: #fff;
  font-weight: bold;
  padding: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-laithu input[type="submit"]:hover {
  opacity: 0.9;
}
.btn-laithu .wpcf7 {
    color: #333;
    position: relative;
    margin-top: -20px;
}

/*  */
@media (min-width: 1024px) {
  #formlich {
    max-height: 680px;   
    overflow-y: auto;   
    padding: 5px;
  }
}

@media (max-width: 1023px) {
  #formlich {
    max-height: none;
    overflow-y: visible;
  }
}

/*form đăng ký*/
.formdangky .col {
    padding: 0 5px 30px !important;
}
.formdangky .small-5 {
    max-width: 41.66667%;
    flex-basis: 41.66667%;
float: left;
}
@media (min-width: 1281px) {
  
 .formdangky .small-2 {
    max-width: 16.66667%;
    flex-basis: 16.66667%;
float: left;
}
  
}
@media (min-width: 1025px) and (max-width: 1280px) {
  
  .formdangky .small-2 {
    max-width: 16.66667%;
    flex-basis: 16.66667%;
float: left;
}
  
}
@media (min-width: 768px) and (max-width: 1024px) {
  
  .formdangky .small-2 {
    max-width: 16.66667%;
    flex-basis: 16.66667%;
float: left;
}
  
}

@media (max-width: 767px) {
  .formdangky .small-2 {
    max-width: 100% !important;
    flex-basis: 100% !important;
    float: none !important; 
  }
	 .formdangky .small-4 {
    max-width: 100%;
    -ms-flex-preferred-size:  100%;
    flex-basis: 100%;
}
}

/* @media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  
.formdangky .small-2 {
    max-width: 16.66667%;
    flex-basis: 16.66667%;
float: left;
}
  
} */
 
.formdangky input[type='text'], .formdangky input[type='tel'],.formdangky textarea {
!important;
    border-radius: 4px;

font-weight:normal;
}
 
.formdangky textarea {min-height: 7em !important;}
 
.formdangky input[type='submit']{background: linear-gradient(to right, #1365AE, #1365AE);}
 
 
@media (min-width: 481px) and (max-width: 767px) {
  
.formdangky .small-5,.formdangky .small-2 {
    max-width: 100%;
    flex-basis: 100%;
float:center !important ;
align-content: center !important;
}
.formdangky input[type='submit'] {
    min-height: 2.5em !important;
width: 100%;
}
}
 
@media (min-width: 320px) and (max-width: 480px) {
  
.formdangky .small-5,.formdangky .small-2 {
    max-width: 100%;
    flex-basis: 100%;
float:center !important ;
align-content: center !important;
}
.formdangky input[type='submit'] {
    min-height: 2.5em !important;
width: 100%;
}
}

.formdangky .col.small-12 {
    display: flex;
    justify-content: center;
}
/*san-pham*/
.flickity-prev-next-button:hover,
.slider-nav-reveal .flickity-prev-next-button {
    width: 30px;
    top: -2px;
    bottom: 0;
    height: 100%;
    background-color: transparent; 
    -webkit-box-shadow: none;
    box-shadow: none; 
    margin: 0 !important;
}
.product-section {
    border-top: none;
}
/*footer*/
.absolute-footer.dark.medium-text-center.small-text-center {
    display: none;
}
.footer-links {
    display: flex
;
    justify-content: right;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 20px;
    margin-bottom: 0;
    align-items: center;
}
.footer-links a {
  color: #0066cc;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}
/*sản phẩm mobile trang chủ*/
/* Mobile: 1 sản phẩm 1 hàng */
@media (max-width: 768px) {
    .product-tc .product-cat-grid {
        gap: 20px; 
    }

    .product-tc .product-cat-grid .product-box {
        flex: 1 1 100%; 
        max-width: 100%;
    }
}
/* Tab trên mobile */



/*   .tabbed-content .nav::-webkit-scrollbar {
    display: none; 
  } */

  .tabbed-content .nav li {
    flex: 0 0 auto; 
    margin-right: 8px;
  }

}
body.single-product .shop-container {
    padding-top: 10%;
}
body.archive.tax-product_cat .shop-container,
body.post-type-archive-product .shop-container {
padding-top: 0 !important;
}
/*sửa mới*/
.product-specs.mt-3 {
    padding-top: 20px;
}
/*  TRANG CHỦ */
/*  @media (max-width: 768px) {
   body.home .product-footer .woocommerce-tabs .tabbed-content .nav li {
        flex: 0 0 auto;
        margin-right: 8px;
        width: 50%;
   }
} */
@media (max-width: 768px) {
  .tabbed-content .nav {
    display: flex !important;
    flex-wrap: nowrap !important; 
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
  } 
/* mặc định */
@media (max-width: 768px) {
   body:not(.home) .tabbed-content .nav li {
        flex: 0 0 auto;
        margin-right: 8px;
        width: 45%!important;
   }
}


/* Mobile: 2 cột / hàng */

@media (max-width: 767px) {
    .product-specs .row .col {
        flex: 0 0 50%;
        max-width: 35%;
        text-align: center;
        justify-content: center;

    }
.product-specs.mt-3 .row{
        justify-content: center;


    }
}
th, td {
    padding: .5em;
    text-align: left;
    border-bottom: 1px solid #ececec;
    line-height: 1.3;
    font-size: 1em;
}

@media (max-width: 767px) {
  #ntg-call-bottom .box-support {
    display: none !important;
  }
}
