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

/* ===== 1. Màu: tiêu đề cột = cam, các mục còn lại = xanh ===== */
#wide-nav .nav-dropdown li > a,
#wide-nav .nav-dropdown li > a:hover {
  color: #00773b !important;
}
#wide-nav ul.nav-dropdown > li.nav-dropdown-col > a,
#wide-nav ul.nav-dropdown > li.nav-dropdown-col > a:hover {
  color: #f6821f !important;
}

/* ===== 2. Thu hẹp khoảng cách, bỏ in đậm ===== */
#wide-nav .nav-dropdown li > a {
  padding-top: 3px !important;
  padding-bottom: 3px !important;
  min-height: 0 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  font-size: 13px !important;
}
#wide-nav ul.nav-dropdown > li.nav-dropdown-col > a {
  padding-top: 0 !important;
  padding-bottom: 8px !important;
}
#wide-nav ul.nav-column li > a {
  font-weight: 400 !important;
}
#wide-nav ul.nav-column li.menu-item-has-children > a {
  padding-top: 8px !important;
}

/* ===== 3. Hiển thị mọi cấp con lồng bên trong, mỗi cấp thụt vào 14px ===== */
#wide-nav ul.nav-column ul.sub-menu {
  display: block !important;
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  height: auto !important;
  overflow: visible !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 0 0 14px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
#wide-nav ul.nav-column .icon-angle-right,
#wide-nav ul.nav-column .icon-angle-down {
  display: none !important;
}

/* ===== 4. Dấu gạch ngang đầu dòng cho mục con của danh mục cha trong cột ===== */
#wide-nav ul.nav-column li.menu-item-has-children > ul.sub-menu > li > a::before {
  content: "- ";
}

/* ===== Menu xổ ra kiểu nhiều cột: dàn đều các cột ra hết khung ===== */
/* (trừ "Máy văn phòng" để giữ nguyên kiểu hiển thị hiện tại) */
#wide-nav li.menu-item:not(#menu-item-16874):hover > ul.nav-dropdown-full {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start;
}
#wide-nav li.menu-item:not(#menu-item-16874) > ul.nav-dropdown-full > li.nav-dropdown-col {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
}


/* ===== Tiêu đề section kiểu hiện đại: chữ xanh + gạch cam ngắn bên dưới ===== */
.section-title-center {
  display: flex !important;
  justify-content: center !important;
  border: 0 !important;
  margin-bottom: 25px !important;
}
/* Bỏ 2 đường kẻ hai bên */
.section-title-center > b {
  display: none !important;
}
.section-title-center .section-title-main {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #00773b !important;
}
/* Gạch cam ngắn bên dưới */
.section-title-center .section-title-main::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: #f6821f;
  transform: translateX(-50%);
}



/* Hiển thị đầy đủ ảnh đại diện bài viết */
.smpb .smpb-card-media {
    background: #fff;
}

.smpb .smpb-card-media .smpb-image {
    object-fit: contain;
    object-position: center;
}

/* Bỏ phóng to ảnh khi rê chuột */
.smpb .smpb-card:hover .smpb-card-media .smpb-image {
    transform: none;
}



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

***************/

.product-title product_title entry-title{
    font-size: 24px !important;
    font-weight: 300 !important;
}

#shop-sidebar{

   
    /* width: 400px; */
    /* height: 200px; */
    
    /*  border: 1px solid #777777; padding-left: 5px; border-radius: 1% 1% 1% 1%;*/
    


    box-shadow: rgb(60 64 67 / 10%) 0px 1px 2px 0px, rgb(60 64 67 / 15%) 0px 2px 6px 2px;
    padding: 10px;
    border-radius: 10px
}

#product-sidebar{

   
    /* width: 400px; */
    /* height: 200px; */
    
    /*  border: 1px solid #777777; padding-left: 5px; border-radius: 1% 1% 1% 1%;*/
    


    box-shadow: rgb(60 64 67 / 10%) 0px 1px 2px 0px, rgb(60 64 67 / 15%) 0px 2px 6px 2px;
    padding: 10px;
    border-radius: 10px
}


#masthead {
    background-color: white !important;
}


input.wpcf7-form-control.wpcf7-submit {
    display: block;
    margin: 0 auto;
 }

.product-info summary{
    border-right: 0px solid #ececec !important;
 }

.stuck .header-main .nav > li > a {
    line-height: 14px !important;
}


.flatsome-studio-button{
    display: none !important;
}


/* 1. Ẩn các trường địa chỉ nhạy cảm nhưng vẫn giữ dữ liệu ngầm */
#billing_country_field, 
#billing_city_field, 
#billing_state_field {
    display: none !important;
}

/* 2. Làm các ô nhập liệu full dài 100% */
.woocommerce-checkout .form-row {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
}

/* 3. Bo góc và chỉnh thẩm mỹ cho các ô nhập liệu */
.woocommerce-checkout input[type="text"], 
.woocommerce-checkout input[type="tel"], 
.woocommerce-checkout textarea,
.woocommerce-checkout .select2-selection {
    border-radius: 10px !important; /* Độ bo góc tùy chỉnh */
    border: 1px solid #ddd !important;
    padding: 12px 15px !important;
    height: auto !important;
}

/* 4. Chỉnh riêng cho ô Ghi chú (Thông tin bổ sung) */
.woocommerce-additional-fields {
    margin-top: 20px;
}

/*hungnv*/

/* =========================================================
   THẺ SẢN PHẨM ĐỒNG ĐỀU (toàn site)
   ========================================================= */

/* 1. Thẻ cao bằng nhau trong cùng hàng, viền nhạt, bo góc */
.product-small.col > .col-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-small.col .product-small.box {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.product-small.col .product-small.box:hover {
  border-color: #00773b;
  box-shadow: 0 6px 18px rgba(0, 119, 59, .12);
}

/* 2. Khung ảnh vuông 1:1 (kiểu padding-top, chạy tốt trên iPhone/Safari),
      ảnh lấp đầy khung và cắt phần thừa ở giữa */
.product-small.col .box-image {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 0;
  padding-top: 100%;
  overflow: hidden;
}
.product-small.col .box-image .image-none {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.product-small.col .box-image .image-none > a {
  display: block;
  width: 100%;
  height: 100%;
}
.product-small.col .box-image .image-none img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 3. Phần chữ: bỏ chiều cao JS của equalize-box, tên tối đa 2 dòng, nút sát đáy */
.product-small.col .box-text-products {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: auto !important;
  padding: 12px 10px 14px;
}
.product-small.col .box-text-products .name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: auto !important;
  min-height: 2.6em;
  line-height: 1.3;
  margin-bottom: 6px;
}
.product-small.col .box-text-products .price-wrapper {
  height: auto !important;
}
.product-small.col .box-text-products .add-to-cart-button {
  height: auto !important;
  margin-top: auto;
  padding-top: 10px;
}

/* ===== Mọi mục cấp 1 của menu nhiều cột = cam, dù có danh mục con hay không ===== */
#wide-nav ul.nav-dropdown.nav-dropdown-full > li > a,
#wide-nav ul.nav-dropdown.nav-dropdown-full > li > a:hover {
  color: #f6821f !important;
  font-weight: 700 !important;
  padding-top: 0 !important;
  padding-bottom: 8px !important;
}

