@charset "UTF-8";
/*
Theme Name: MatBaoWS
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.18.2
*/
/*************** ADD CUSTOM CSS HERE.   ***************/
/* sử dụng responsive đơn gian 
EX: 
.my-element {
font-size: 24px;
@include responive(phone-sm) {
  display:none;
}
}
*/
/* sử dụng responsive  min-width và max-width
EX: 
.my-element {
font-size: 24px;
@include responive(phone-sm,max) {
  display:none;
}
}
.my-element {
font-size: 24px;
@include responive(min,tablet) {
  display:none;
}
}
.my-element {
font-size: 24px;
@include responive(420px, down) {
  display:none;
}
}
*/
/* sử dụng responsive  min-width và max-width có thể custom breakpoints 2 giá trị max và min
EX: 
.my-element {
font-size: 24px;
@include responive(420px, 768px) {
  display:none;
}
}
*/
.__ellipsis_2_rows {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4 !important;
  min-height: 2.8em !important;
}

.__ellipsis_3_rows {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.4 !important;
  min-height: 4.2em !important;
}

.mbws_home-wrap-title-product {
  display: flex;
  justify-content: space-between;
}

.mbws_border-bottom-title {
  border-bottom: 2px solid var(--fs-color-primary);
  width: fit-content;
}
.mbws_border-bottom-title h2 {
  color: #000000;
  text-transform: uppercase;
}

.post-item .box-blog-post .box-text .post-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  min-height: 68px;
}
.post-item .box-blog-post .box-text .post-meta {
  margin-top: 10px;
  font-size: 14px;
  color: #000000;
  opacity: 1;
}
.post-item .box-blog-post .box-text .from_the_blog_excerpt {
  color: #000000;
}
.post-item .box-blog-post .box-text .is-divider {
  display: none;
}
.post-item .box-blog-post .box-text .button {
  border: 1px solid #646d7a;
}
.post-item .box-blog-post .box-text .button:hover {
  background: var(--fs-color-primary);
  border: 1px solid var(--fs-color-primary);
  color: #ffffff;
  transition: all 0.3s;
}

.rank-math-breadcrumb p {
  font-size: 18px;
}
.rank-math-breadcrumb p a {
  text-decoration: none;
}
.rank-math-breadcrumb p .last {
  font-weight: 600;
}

.mbws_contact-infor iframe {
  width: 100%;
}

.type-product .product-title .woocommerce-LoopProduct-link {
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}
.type-product .product-title .woocommerce-LoopProduct-link:hover {
  color: var(--fs-color-primary);
}
/* Cố định tỷ lệ khung hình box ảnh sản phẩm thành hình vuông (1:1) */
.type-product .box-image > div:first-child {
  position: relative !important;
  width: 100% !important;
  padding-top: 100% !important; /* Tạo tỷ lệ hình vuông 1:1 */
  height: 0 !important;
  overflow: hidden !important;
}

.type-product .box-image > div:first-child > a {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.type-product .box-image img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Ảnh tự động phóng to lấp đầy khung hình vuông */
  box-sizing: border-box !important;
  padding: 0 !important; /* Tràn viền sắc nét, hiện đại */
  border: 1px solid #e6e6e6 !important;
  border-radius: 8px !important;
}

/* Đồng bộ chiều cao tiêu đề sản phẩm để các thành phần bên dưới thẳng hàng */
.type-product .product-title {
  min-height: 2.5em;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.type-product .badge-container .badge-circle {
  padding-left: 10px;
  max-width: calc(100% - 20px);
  width: auto;
}
.type-product .badge-container .badge-circle .badge-inner {
  border-radius: 4px;
  background-color: var(--fs-color-primary) !important;
  padding: 5px 8px !important;
  white-space: normal !important;
  max-width: 100% !important;
  line-height: 1.3 !important;
  font-size: 0.8em !important;
  display: block !important;
  text-align: center;
  word-wrap: break-word;
  height: auto !important;
  width: auto !important;
}
.type-product .price-wrapper {
  margin-top: 10px;
}
.type-product .price-wrapper ins .woocommerce-Price-amount {
  font-size: 16px;
}
.type-product .price-wrapper bdi {
  font-size: 16px;
}

.mbws_custom-button {
  line-height: 40px;
}

.post-type-archive-product .woocommerce-breadcrumb {
  display: none;
}

.single-product .woocommerce-breadcrumb {
  display: none;
}
.single-product .product-gallery-slider img {
  border: 1px solid #e6e6e6;
}
.single-product .type-product .price-wrapper bdi {
  font-size: 20px;
}
.single-product .single_add_to_cart_button {
  background: var(--fs-color-primary);
}
.single-product .product_meta .posted_in {
  font-size: 18px;
  font-weight: 600;
}
.single-product .product_meta .posted_in a {
  font-weight: 400;
}
.single-product .product_meta .tagged_as {
  font-size: 18px;
  font-weight: 600;
}
.single-product .product_meta .tagged_as a {
  font-weight: 400;
}
.single-product .product-footer .product-tabs li a {
  font-size: 20px;
  text-decoration: none;
}
.single-product .product-main {
  padding: 60px 0;
}
.single-product .product-footer {
  padding-bottom: 60px;
}

.cart-collaterals .wc-proceed-to-checkout .checkout-button {
  background: var(--fs-color-primary);
}

.mbws_wrap-banner-single-product {
  padding: 100px 0 80px 0;
  background: #cccccc;
  display: flex;
  justify-content: center;
}
.mbws_wrap-banner-single-product .mbws_content {
  text-align: center;
}

.woocommerce-cart #content {
  padding: 100px 0 80px 0;
}

.woocommerce-checkout #content {
  padding: 100px 0 0 0;
}
.woocommerce-checkout #content #place_order {
  background: var(--fs-color-primary);
}

.woocommerce-customer-details .addresses {
  justify-content: space-between;
}

.header-nav {
  margin-left: 20px;
}
.header-nav .menu-item {
  margin: 0 20px;
}

.ux-search-submit {
  background: #ffffff;
  color: var(--fs-color-primary);
}

@media (max-width: 1024px) {
  #top-bar {
    display: none;
  }
}

.nav-dropdown {
  display: flex !important;
  flex-direction: column;
  flex-wrap: wrap;
}
.nav-dropdown li {
  margin: 0 !important;
}
.nav-dropdown li > a {
  display: flex !important;
  color: inherit;
}
.nav-dropdown li.menu-item-has-children {
  position: relative;
  display: flex;
  width: 100% !important;
}
.nav-dropdown li.menu-item-has-children::before {
  content: "\f105";
  font-family: fl-icons !important;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translatey(-50%);
}
.nav-dropdown li.menu-item-has-children > a {
  color: inherit;
  width: 100% !important;
  font-weight: 400;
  text-transform: unset;
  font-size: inherit;
}
.nav-dropdown li.menu-item-has-children:hover > .sub-menu {
  left: 100%;
  opacity: 1;
}
.nav-dropdown .sub-menu {
  min-width: 250px;
  background-color: white;
  padding: 20px 0 !important;
  position: absolute;
  left: 999%;
  opacity: 0;
  top: -20px;
  box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.15);
}

.off-canvas .nav-vertical li > a {
  text-transform: uppercase;
  font-size: 14px;
}

.products .badge-container .box-text {
  text-align: center;
}

.post-sidebar .widget .is-divider {
  display: none;
}
.post-sidebar .widget ul li a {
  text-decoration: none;
}
.post-sidebar .widget_recent_entries, .post-sidebar .widget_categories {
  border: 1px solid #e5e5e5;
}
.post-sidebar .widget_recent_entries .widget-title, .post-sidebar .widget_categories .widget-title {
  padding: 15px;
  display: block;
}
.post-sidebar .widget_recent_entries ul, .post-sidebar .widget_categories ul {
  border-top: 1px solid #e5e5e5;
}
.post-sidebar .widget_recent_entries ul li, .post-sidebar .widget_categories ul li {
  padding: 15px;
}

#shop-sidebar .widget_product_categories {
  border: 1px solid #e5e5e5;
}
#shop-sidebar .widget_product_categories .is-divider {
  display: none;
}
#shop-sidebar .widget_product_categories .widget-title {
  padding: 15px;
  display: block;
}
#shop-sidebar .widget_product_categories ul.product-categories {
  border-top: 1px solid #e5e5e5;
}
#shop-sidebar .widget_product_categories ul.product-categories > li {
  padding: 0 15px;
}
#shop-sidebar .widget_product_categories ul.product-categories > li a {
  padding: 10px 0;
  text-decoration: none;
}
#shop-sidebar .widget_product_categories ul.product-categories > li a:hover {
  color: var(--fs-color-primary);
}
#shop-sidebar .widget_product_categories ul.product-categories > li ul.children {
  padding-left: 10px;
  border-left: none;
}

.blog-wrapper.blog-archive {
  padding-top: unset !important;
}

.blog-filters .nav > li > a {
  font-size: 1rem;
}

/* Custom Footer Styling */
.main-footer {
  background-color: #293d22 !important; /* Spico Dark Forest Green */
  color: #f5edd8 !important; /* Warm Cream Text */
  padding-top: 50px !important;
  padding-bottom: 30px !important;
}

.main-footer h4 {
  color: #f5c518 !important; /* Gold Accent */
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  text-transform: uppercase;
  font-size: 15px;
}

.main-footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: #f5c518;
}

.main-footer p, 
.main-footer span {
  color: #e5dfcb !important;
  font-size: 14px;
  line-height: 1.6;
}

.main-footer p {
  margin-bottom: 15px;
}

.main-footer a {
  color: #e5dfcb !important;
  transition: color 0.3s ease, padding-left 0.3s ease;
  text-decoration: none;
}

.main-footer a:hover {
  color: #f5c518 !important;
}

.main-footer .footer-contact-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.main-footer .footer-contact-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.main-footer .footer-contact-list li .icon {
  margin-right: 12px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(245, 197, 24, 0.1);
  border-radius: 50%;
  color: #f5c518;
  flex-shrink: 0;
}

.main-footer .footer-contact-list li .text {
  line-height: 1.5;
  color: #e5dfcb;
  font-size: 14px;
}

.main-footer .ux-menu {
  flex-direction: column !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-footer .ux-menu li {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.main-footer .ux-menu a {
  padding: 6px 0 !important;
  border-bottom: 1px dashed rgba(245, 237, 216, 0.1) !important;
  display: block;
  font-size: 14px;
  font-weight: 400;
  text-transform: none !important;
}

.main-footer .ux-menu a:hover {
  padding-left: 8px !important;
  color: #f5c518 !important;
}

.main-footer .ux-menu li:last-child a {
  border-bottom: none !important;
}

/* Absolute footer styling */
.absolute-footer {
  background-color: #1e3019 !important; /* Darker green */
  border-top: 1px solid rgba(245, 237, 216, 0.08);
  padding: 15px 0 !important;
}

.absolute-footer .copyright-footer {
  color: rgba(245, 237, 216, 0.6) !important;
  font-size: 13px;
}

.absolute-footer .copyright-footer a {
  color: #f5c518 !important;
  font-weight: 600;
}

.absolute-footer .copyright-footer a:hover {
  text-decoration: underline;
}

/* Custom styling for native Flatsome tabs on FAQ page */
.page-template-page-faq .tabbed-content {
  margin-bottom: 40px;
}

.page-template-page-faq .tabbed-content .nav {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-bottom: 45px !important;
  border: none !important;
}

.page-template-page-faq .tabbed-content .nav > li {
  margin: 0 !important;
  padding: 0 !important;
}

.page-template-page-faq .tabbed-content .nav > li > a {
  background-color: #faf8f5 !important;
  color: #2d7a3a !important;
  border: 1px solid #e8e3d9 !important;
  padding: 10px 24px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 99px !important;
  cursor: pointer !important;
  font-family: 'Quicksand', sans-serif !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-transform: none !important;
  box-shadow: none !important;
}

.page-template-page-faq .tabbed-content .nav > li > a:hover {
  background-color: #e8e3d9 !important;
  color: #1a4a22 !important;
}

.page-template-page-faq .tabbed-content .nav > li.active > a {
  background-color: #2d7a3a !important;
  color: #f5edd8 !important;
  border-color: #2d7a3a !important;
  box-shadow: 0 4px 12px rgba(45, 122, 58, 0.18) !important;
}

/* Custom styling for native Flatsome accordions in FAQ */
.page-template-page-faq .accordion {
  border: 1px solid #e8e3d9;
  border-radius: 12px;
  padding: 10px 24px;
  background-color: #ffffff;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.02);
  margin-bottom: 30px;
}

.page-template-page-faq .accordion-item {
  border-bottom: 1px solid #e8e3d9 !important;
  margin: 0 !important;
  border-left: 4px solid transparent !important;
  transition: all 0.3s ease;
}

.page-template-page-faq .accordion-item:last-child {
  border-bottom: none !important;
}

.page-template-page-faq .accordion-item:hover {
  background-color: #faf8f5;
}

.page-template-page-faq .accordion-item.active {
  background-color: #faf8f5;
  border-left: 4px solid #2d7a3a !important;
}

.page-template-page-faq .accordion-title {
  padding: 20px 50px 20px 20px !important;
  font-size: 16.5px !important;
  font-weight: 700 !important;
  font-family: 'Quicksand', sans-serif !important;
  color: #111 !important;
  line-height: 1.4 !important;
  border: none !important;
  display: block !important;
  position: relative !important;
  text-decoration: none !important;
}

.page-template-page-faq .accordion-title:hover {
  color: #2d7a3a !important;
}

.page-template-page-faq .accordion-title .toggle {
  position: absolute !important;
  right: 15px !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
  width: auto !important;
  border: none !important;
  background: none !important;
}

.page-template-page-faq .accordion-title .toggle i {
  font-size: 20px !important;
  color: #888 !important;
  transition: transform 0.3s ease !important;
  display: inline-block !important;
}

.page-template-page-faq .accordion-title.active {
  color: #2d7a3a !important;
}

.page-template-page-faq .accordion-title.active .toggle i {
  color: #2d7a3a !important;
  transform: rotate(180deg) !important;
}

.page-template-page-faq .accordion-inner {
  padding: 0 10px 22px 10px !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #333 !important; /* Slightly darker color for better contrast when bold */
  font-family: 'Quicksand', sans-serif !important;
  font-weight: bold !important;
}

.page-template-page-faq .accordion-inner a {
  color: #2d7a3a;
  text-decoration: underline;
  font-weight: 600;
}

.page-template-page-faq .accordion-inner a:hover {
  color: #f5c518;
}

/* Smooth Slide-up Fade-in Animation for Active Tab Panel */
.page-template-page-faq .tab-panels .panel {
  animation: faqTabFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes faqTabFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Unified styling for MBWS Counter on About page (Desktop & Mobile) */
.mbws_counter {
  margin-bottom: 25px;
}

.mbws_counter .counter-number {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  display: flex !important;
  flex-wrap: nowrap !important; /* Ngăn chặn việc xuống dòng làm lệch hàng */
  justify-content: center !important;
  align-items: baseline !important;
  gap: 6px !important;
  font-size: 3rem !important; /* Base size for desktop */
}

.mbws_counter .counter-number .count-up {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 700 !important;
}

.mbws_counter .counter-number .left-counter,
.mbws_counter .counter-number .right-counter {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.45em !important; /* Giảm cỡ chữ của nhãn (như chai/tháng, đại lý) để tránh bị tràn */
  display: inline-block !important;
}

.mbws_counter .title {
  font-family: 'Quicksand', sans-serif !important;
  font-size: 1.1em !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin-top: 10px !important;
  text-transform: none !important;
}

/* Mobile adjustments */
@media (max-width: 549px) {
  .mbws_counter .counter-number {
    font-size: 2.2rem !important; /* Scale down on mobile */
    gap: 4px !important;
  }
  
  .mbws_counter .counter-number .left-counter,
  .mbws_counter .counter-number .right-counter {
    font-size: 0.6em !important;
  }

  .mbws_counter .title {
    font-size: 0.95em !important;
    padding: 0 5px !important;
  }
}

/* Mô tả ngắn sản phẩm ngoài danh sách sản phẩm */
.type-product .product-short-description {
  font-size: 0.85em;
  color: #666;
  line-height: 1.4;
  margin-top: 6px;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Bố cục lại quy trình lên men (Timeline) trên thiết bị di động */
@media (max-width: 767px) {
  .timeline-vertical .row .row {
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Cột chứa ảnh: Luôn hiển thị đầu tiên */
  .timeline-vertical .row .row > .col:has(.img),
  .timeline-vertical .row .row > .col:has(img) {
    order: 1 !important;
  }
  
  /* Cột chứa nút tròn/đường line: Hiển thị thứ hai */
  .timeline-vertical .row .row > .col:has(.icon-box),
  .timeline-vertical .row .row > .col:has(.featured-box) {
    order: 2 !important;
    margin-bottom: 10px !important;
  }
  
  /* Cột chứa nội dung chữ: Hiển thị cuối cùng */
  .timeline-vertical .row .row > .col:has(h3) {
    order: 3 !important;
    margin-bottom: 40px !important; /* Khoảng cách lớn trước khi sang bước tiếp theo */
  }
}