/*
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.   ***************/
/* ===== FORCE FLATSOME TO USE MONTSERRAT (override Lato) ===== */
/* ===== MONTSERRAT FONT FACE ===== */

@font-face {
    font-family: 'Montserrat';
    src: url('/wp-content/fonts/montserrat/Montserrat-Regular.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/wp-content/fonts/montserrat/Montserrat-Medium.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/wp-content/fonts/montserrat/Montserrat-Bold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}
/* 1) Ép toàn site dùng Montserrat */
html, body,
p, li, a, span, button, input, textarea, select {
  font-family: 'Montserrat', sans-serif !important;
}

/* 2) Headings theo weight bạn muốn */
/* ===== H1 Gradient ===== */
h1 {
    font-family: 'Montserrat', sans-serif !important;
	background: linear-gradient(
    45deg,
    #fceb8c 0%,
    #f48804 60%,
    #f48804 100%
	);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== H2 & H3 Cam đậm ===== */
h2, h3 {
    font-family: 'Montserrat', sans-serif !important;
  	color: #f48804 !important;
  	-webkit-text-fill-color: inherit !important;
}
h4, h5 {
  font-family: 'Montserrat', sans-serif !important;
}

/* 3) Body weight */
body {
  font-weight: 500 !important;
}

/* 4) Flatsome hay dùng class này cho tiêu đề */
.heading-font, .alt-font {
  font-family: 'Montserrat', sans-serif !important;
}

/* Bo góc 10px */
.radius-10, div.box-image, div.col.post-item, div.col-inner, figure.wp-block-image.size-full, figure.wp-block-image.aligncenter.size-large {
    border-radius: 10px !important;
    overflow: hidden; /* đảm bảo ảnh bên trong cũng bo theo */
}

/* ===== SEARCH BOX STYLE - ORANGE ===== */

.header-search-form .searchform-wrapper {
    border-radius: 10px;
    overflow: hidden;
}

.header-search-form .searchform {
    background: #fffaf0;
    border-radius: 10px;
    border: 1px solid #fceb8c;
    transition: all 0.3s ease;
}

/* Khi focus */
.header-search-form .searchform:focus-within {
    border-color: #f48804;
    box-shadow: 0 0 0 3px rgba(244, 136, 4, 0.15);
    background: #ffffff;
}

/* Input */
.header-search-form .search-field {
    border: none !important;
    background: transparent;
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
}

/* Placeholder */
.header-search-form .search-field::placeholder {
    color: #caa24f;
}

/* Nút tìm kiếm */
.header-search-form .ux-search-submit {
    background: linear-gradient(45deg, #fceb8c, #f48804);
    border: none;
    color: #fff;
    padding: 0 16px;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
}

/* Hover nút */
.header-search-form .ux-search-submit:hover {
    background: linear-gradient(45deg, #f48804, #fceb8c);
}

/* Icon */
.header-search-form .ux-search-submit i {
    font-size: 14px;
}

/* Ẩn breadcrumb Rank Math trong shop */
.shop-container .rankmath-breadcrumb-wrap {
    display: none !important;
}

/* ===== Hiệu ứng gạch chân chạy cho widget Danh mục sản phẩm ===== */

/* 1) Link danh mục */
.widget_product_categories .product-categories a{
  position: relative;
  display: inline-block;
  padding-bottom: 6px;              /* chừa chỗ cho gạch chân */
  transition: color .25s ease;
}

/* 2) Thanh gạch chân (ẩn ban đầu) */
.widget_product_categories .product-categories a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #fceb8c, #f48804);
  border-radius: 2px;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}

/* 3) Hover: gạch chân chạy ra */
.widget_product_categories .product-categories li:hover > a::after{
  transform: scaleX(1);
}

/* 4) Hover: đổi màu chữ nhẹ cho đẹp */
.widget_product_categories .product-categories li:hover > a{
  color: #f48804;
}

/* 5) Danh mục đang active: luôn hiện gạch chân */
.widget_product_categories .product-categories .current-cat > a::after,
.widget_product_categories .product-categories .current-cat-parent > a::after{
  transform: scaleX(1);
}
.widget_product_categories .product-categories .current-cat > a,
.widget_product_categories .product-categories .current-cat-parent > a{
  color: #f48804;
}

.widget_product_categories 
.product-categories > li > a{
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* ===== CART ICON (Flatsome header cart) ===== */

/* 1) Nút giỏ hàng (icon tròn) */
button.button, .header-cart-link,
.cart-item > a.header-cart-link,
.nav > li.cart-item > a{
  border-radius: 10px !important;
  background: linear-gradient(135deg, #fceb8c 0%, #f48804 100%) !important;
  border: 1px solid rgba(244,136,4,.35) !important;
  box-shadow: 0 10px 24px rgba(244,136,4,.18);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

/* 2) Icon bên trong */
button.button, .header-cart-link i,
.nav > li.cart-item > a i{
  color: #ffffff !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.08);
}

/* 3) Hover: nổi nhẹ + sáng */
button.button:hover, .header-cart-link:hover,
.nav > li.cart-item > a:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 34px rgba(244,136,4,.28);
}

/* 4) Khi dropdown đang mở */
.cart-item.current-dropdown > a.header-cart-link,
.nav > li.cart-item.current-dropdown > a{
  box-shadow: 0 16px 40px rgba(244,136,4,.32);
}

/* 5) Badge số lượng (nếu có) */
.cart-item .cart-icon strong,
.header-cart-link .cart-icon strong{
  border-radius: 999px !important;
  background: #f48804 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  font-weight: 700;
  line-height: 1;
  padding: 2px 6px;
  box-shadow: 0 8px 18px rgba(244,136,4,.25);
}

/* 6) Dropdown mini cart (khung) */
.nav-dropdown-default .nav-dropdown{
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.14);
  border: 1px solid rgba(0,0,0,.06);
}

/* 7) Thanh top nhỏ trong dropdown (để nhìn premium hơn) */
.nav-dropdown-default .nav-dropdown:before{
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #fceb8c 0%, #f48804 100%);
}

/* ===== Mini Cart Button ===== */

.widget_shopping_cart .button.primary,
.widget_shopping_cart .wc-backward{
    background: linear-gradient(135deg, #fceb8c 0%, #f48804 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 600;
    padding: 10px 18px !important;
    box-shadow: 0 10px 25px rgba(244,136,4,.25);
    transition: all .25s ease;
}

/* Hover */
.widget_shopping_cart .button.primary:hover,
.widget_shopping_cart .wc-backward:hover{
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(244,136,4,.35);
    filter: brightness(1.05);
}

/* ===== Mini Cart Popup Border ===== */

.nav-dropdown-default .nav-dropdown{
    border: 2px solid #f48804 !important;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}

/* Thanh highlight trên cùng */
.nav-dropdown-default .nav-dropdown:before{
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #fceb8c, #f48804);
}

.nav-dropdown-default .nav-dropdown{
    background: #fff;
}

.widget_shopping_cart_content{
    padding: 20px 15px;
}

/* ===== TĂNG SIZE POPUP MINI CART ===== */

.nav-dropdown-default .nav-dropdown{
    width: 340px !important;   /* tăng từ ~280 lên 340 */
    padding: 25px 20px;
}

/* ===== CHỈNH NÚT QUAY LẠI CỬA HÀNG ===== */

.widget_shopping_cart .wc-backward{
    display: inline-block;
    white-space: nowrap;            /* không cho xuống dòng */
    font-size: 14px !important;     /* chỉnh lại size chữ */
    padding: 12px 22px !important;  /* cân đối lại */
    border-radius: 10px !important;
}

/* Nếu vẫn bị xuống dòng */
.widget_shopping_cart .wc-backward{
    width: auto !important;
    min-width: 250px;
}

/* Canh giữa đẹp hơn */
.widget_shopping_cart_content{
    text-align: center;
}

/* ===== Mini Cart Popup ===== */

.nav-dropdown.nav-dropdown-default{
    border-radius: 5px !important;
    border: 1px solid #f48804 !important;
}

/* ===== SINGLE PRODUCT: ADD TO CART + BUY NOW (match sample) ===== */
/* Nút THÊM VÀO GIỎ HÀNG */
.single-product .variations_button button.single_add_to_cart_button.button.alt{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  height: 44px;
  padding: 0 22px !important;

  background: #f3b94a !important;
  color: #ffffff !important;
  border: 1px solid #e0a93f !important;
  border-radius: 999px !important;

  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;

  width: auto !important;
  max-width: none !important;

  box-shadow: 0 10px 20px rgba(243,185,74,.22) !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.single-product .variations_button button.single_add_to_cart_button.button.alt:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(243,185,74,.28) !important;
  filter: brightness(1.03);
}

.single-product .variations_button button.single_add_to_cart_button.button.alt:active{
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(243,185,74,.22) !important;
}
/* QTY pill */
.single-product .product .quantity.buttons_added {
  display: inline-flex !important;
  align-items: center;
  overflow: hidden;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #e6e6e6;
  background: #fff;
  margin: 0 !important;
}

/* +/- button */
.single-product .product .quantity.buttons_added .button.is-form{
  width: 44px;
  height: 44px;
  border: 0 !important;
  background: transparent !important;
  color: #333 !important;
  font-weight: 700;
  box-shadow: none !important;
}

.single-product .product .quantity.buttons_added .button.is-form:hover{
  background: rgba(0,0,0,.04) !important;
}

/* input number */
.single-product .product .quantity.buttons_added input.qty{
  width: 56px !important;
  height: 44px !important;
  border: 0 !important;
  border-left: 1px solid #eee !important;
  border-right: 1px solid #eee !important;
  text-align: center !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ========== BUY NOW (UX) ========== */
.single-product .product button.ux-buy-now-button{
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  border: 0 !important;
  border-radius: 6px !important;
  background: linear-gradient(180deg, #f6c61d 0%, #f59000 100%) !important;

  padding: 12px 12px !important;
  min-height: 60px !important;

  text-align: center !important;
  box-shadow: none !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Ẩn chữ gốc "Mua ngay" (để thay bằng 2 dòng) */
.single-product .product button.ux-buy-now-button{
  font-size: 0 !important;
  line-height: 0 !important;
}

/* Dòng 1 */
.single-product .product button.ux-buy-now-button::before{
  content: "ĐẶT MUA SẢN PHẨM NÀY";
  display: block;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
}

/* Dòng 2 */
.single-product .product button.ux-buy-now-button::after{
  content: "Nhân viên sẽ xác nhận đơn hàng sau 5 phút";
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  text-transform: none;
}

.single-product .product button.ux-buy-now-button:hover{
  filter: brightness(1.03);
  transform: translateY(-1px);
}

/* Trạng thái disable (khi chưa chọn biến thể) */
.single-product .product button.ux-buy-now-button.disabled,
.single-product .product button.ux-buy-now-button[disabled]{
  opacity: .55 !important;
  cursor: not-allowed !important;
  transform: none !important;
  filter: none !important;
}

/* Giá sản phẩm trang chi tiết */
.single-product .price,
.single-product .price .amount,
.single-product .woocommerce-Price-amount {
    color: #e10600 !important;   /* đỏ */
    font-weight: 700 !important; /* đậm */
}

/* Nếu là sản phẩm đang giảm giá */
.single-product .price ins .amount {
    color: #e10600 !important;
    font-weight: 700 !important;
}

/* Giá gạch ngang (giá cũ) */
.single-product .price del .amount {
    color: #999 !important;
    font-weight: 500 !important;
}

.woocommerce-variation-price {font-size: 24px}
span.woocommerce-Price-amount.amount {color:#ff0000}

/* Container ảnh sản phẩm phải relative */
.single-product .product-images{
  position: relative;
}

/* Ẩn badge sale ở trang danh mục */
.archive .badge-container,
.post-type-archive-product .badge-container,
.tax-product_cat .badge-container{
    display: none !important;
}

/* Chèn banner góc phải dưới */
.single-product .product-images:after{
  content: "";
  position: absolute;
  bottom: -10px;   /* chỉnh cao thấp */
  right: 0px;    /* chỉnh trái phải */

  width: 400px;   /* chỉnh kích thước */
  height: auto;

  background: url("/wp-content/uploads/2026/02/1.png") no-repeat center;
  background-size: contain;

  aspect-ratio: 4 / 1; /* chỉnh theo tỷ lệ ảnh của bạn */
  pointer-events: none;
}

/* Banner cho trang danh mục sản phẩm */
.archive.woocommerce .product-small .box-image:after,
.post-type-archive-product .product-small .box-image:after,
.tax-product_cat .product-small .box-image:after{
  content: "";
  position: absolute;
  bottom: -10px;
  right: 0px;

  width: 250px; /* nhỏ hơn trang chi tiết */
  background: url("/wp-content/uploads/2026/02/1.png") no-repeat center;
  background-size: contain;

  aspect-ratio: 4 / 1;
  pointer-events: none;
}

/* Ẩn badge giảm giá mặc định */
div.badge-container.absolute.left.top.z-1, .single-product .badge-container .badge,
.single-product span.onsale:not(.sale-percent){
    display: none !important;
}

/* Ẩn nút phóng to ảnh sản phẩm */
.single-product .zoom-button,
.single-product .image-tools{
    display: none !important;
}

.single-product .product-acf-highlight{
  border: 1px dashed #9fc5ff;
  background: #eef6ff;
  padding: 16px 18px;
  border-radius: 8px;
  margin: 14px 0;
}
.single-product .product-acf-highlight .acf-block + .acf-block{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(0,0,0,0.08);
}
.single-product .product-acf-highlight .acf-heading{font-weight:700;margin-bottom:8px;}
.single-product .product-acf-highlight .acf-body ul{margin:0;padding-left:18px;}
.single-product .product-acf-highlight .acf-body li{margin:6px 0;}

/* ===== MINT BEST SELLER: gắn banner vào góc phải-dưới của ẢNH sản phẩm ===== */

/* 1) khung ảnh phải có position để :after bám theo */
.mint-best-seller .product-small .box-image{
  position: relative;
  overflow: hidden;          /* để banner không tràn ra ngoài ảnh */
  border-radius: 12px;       /* nếu ảnh bạn đang bo góc */
}

/* 2) banner ở góc phải-dưới ảnh */
.mint-best-seller .product-small .box-image:after{
  content: "";
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;

  width: 220px;              /* chỉnh kích thước */
  height: 70px;              /* chỉnh kích thước */
  background: url("/wp-content/uploads/2026/02/1.png") no-repeat right bottom;
  background-size: contain;

  pointer-events: none;
  z-index: 5;
}

/* Ẩn toàn bộ phần bình luận ở bài viết */
.single-post #comments{
    display: none !important;
}
/* Thay ảnh avatar trong author box bằng ảnh custom */
.single-post .author-box .avatar,
.blog-single .author-box .avatar,
.single-post .entry-author .avatar {
  width: 90px !important;
  height: 90px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  content: url("/wp-content/uploads/2026/03/phuc-mint.jpg") !important;
}

/* ===== SHINE (đường sáng quét chéo) cho ảnh sản phẩm Flatsome ===== */

.product-small .box-image:before{
  content:"";
  position:absolute;
  top:-20%;
  left:-80%;
  width:5%; /* giảm 50% độ dày */
  height:140%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
  pointer-events:none;
  opacity: 0;
  transition: left .75s ease, opacity .2s ease;
  z-index: 3;
}

.product-small:hover .box-image:before{
  left:130%;
  opacity: 1;
}

/* Border riêng cho UX Block Mint */
.sub-menu.nav-dropdown{
  border: 1px solid #f48804;
  border-radius: 10px;
  background: #fff;
}

.icon-box-img {
    position: relative;
    overflow: hidden;
    border-radius: 12px; /* bo góc mềm mại */
    transition: all 0.3s ease;
}

.icon-box-img img {
    display: block;
    width: 100%;
    transition: all 0.3s ease;
    border-radius: 12px;
	padding-top: 0em !important;
}

/* Hover effect */
.icon-box-img:hover img {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid #ff7a00; /* màu cam */
}

image.show-on-hover.absolute.fill.hide-for-small.back-image
	{border: 1px solid #ff7a00;
	border-radius:10px;}

/* Nút CẬP NHẬT GIỎ HÀNG */
.woocommerce-cart button[name="update_cart"] {
    background: linear-gradient(
        90deg,
        #fceb8c 0%,
        #f48804 60%,
        #f48804 100%
    );
    border: none;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
}

/* Nút TIẾN HÀNH THANH TOÁN */
.woocommerce-cart .checkout-button {
    background: linear-gradient(
        90deg,
        #fceb8c 0%,
        #f48804 60%,
        #f48804 100%
    ) !important;
    border: none;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
}

/* Nút TIẾP TỤC XEM SẢN PHẨM */
.woocommerce-cart .continue-shopping .button {
    border-radius: 10px !important;
}

/* Nút ÁP DỤNG (mã giảm giá) */
.woocommerce-cart .coupon button[name="apply_coupon"] {
    border-radius: 10px !important;
}

/* =========================
   CART ONLY: QTY capsule
   ========================= */

/* Wrapper pill */
.woocommerce-cart td.product-quantity .ux-quantity.quantity.buttons_added{
  display: inline-flex !important;
  align-items: center;
  overflow: hidden;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #e6e6e6;
  background: #fff;
  margin: 0 !important;
}

/* Input number (ô số) */
.woocommerce-cart td.product-quantity .ux-quantity input[type="number"]{
  width: 56px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center !important;
  box-shadow: none !important;
  -moz-appearance: textfield;
}

/* Remove spinner (Chrome) */
.woocommerce-cart td.product-quantity .ux-quantity input[type="number"]::-webkit-outer-spin-button,
.woocommerce-cart td.product-quantity .ux-quantity input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

/* Nút +/- */
.woocommerce-cart td.product-quantity .ux-quantity input[type="button"]{
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 600;
}

/* Bo góc 2 đầu cho đúng capsule */
.woocommerce-cart td.product-quantity .ux-quantity input.minus{
  border-radius: 999px 0 0 999px !important;
}
.woocommerce-cart td.product-quantity .ux-quantity input.plus{
  border-radius: 0 999px 999px 0 !important;
}

/* ===== CHECKOUT - BUTTON ĐẶT HÀNG ===== */
.woocommerce-checkout #place_order {
    background: linear-gradient(
        90deg,
        #fceb8c 0%,
        #f48804 60%,
        #f48804 100%
    ) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-weight: 600;
    height: 48px;
    transition: 0.3s ease;
}

.woocommerce-checkout #place_order:hover {
    opacity: 0.95;
}

/* ===== CHECKOUT - INPUT RADIUS ===== */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="number"],
.woocommerce-checkout select,
.woocommerce-checkout textarea {

    border-radius: 10px !important;
    border: 1px solid #e6e6e6 !important;
    box-shadow: none !important;
}

/* Ẩn circle mặc định */
.flickity-prev-next-button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 44px;
    height: 44px;
}

/* Mũi tên */
.flickity-prev-next-button svg {
    width: 26px;
    height: 26px;
}

.flickity-prev-next-button .arrow {
    fill: #f48804 !important;
    transition: 0.3s ease;
}

/* Hover */
.flickity-prev-next-button:hover .arrow {
    fill: #ff9a1a !important;
    transform: scale(1.1);
}

/* ===== TABLE trong mô tả sản phẩm (accordion) ===== */
.accordion-description-content table,
.product-page-accordion table,
.woocommerce-tabs table,
.TyagGW_tableWrapper table,
.TyagGW_tableContainer table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 16px 0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid #f48804 !important; /* viền ngoài cam */
}

/* th/td */
.accordion-description-content th,
.accordion-description-content td,
.TyagGW_tableWrapper th,
.TyagGW_tableWrapper td {
  padding: 12px 14px !important;
  border-bottom: 1px solid #f48804 !important; /* line cam 1px */
  vertical-align: top;
	color: #000 !important;   /* chữ đen */
}

/* header */
.accordion-description-content thead th,
.TyagGW_tableWrapper thead th {
  background: linear-gradient(90deg, #fceb8c 0%, #f48804 100%) !important;
  color: #000 !important;              /* chữ đen */
  font-weight: 700 !important;         /* in đậm */
  text-align: left !important;
  border-bottom: 1px solid #f48804 !important; /* line cam dưới header */
}

/* zebra */
.accordion-description-content tbody tr:nth-child(even),
.TyagGW_tableWrapper tbody tr:nth-child(even) {
  background: #fafafa !important;
}

/* hover nhẹ */
.accordion-description-content tbody tr:hover,
.TyagGW_tableWrapper tbody tr:hover {
  background: rgba(244,136,4,0.06) !important;
}

/* mobile: kéo ngang nếu bảng dài */
.accordion-description-content .TyagGW_tableWrapper,
.accordion-description-content .TyagGW_tableContainer {
  overflow-x: auto;
}

/* ===== READ MORE (Category + Product) ===== */

/* thêm selector này vào 2 block dưới */
.product-page-accordion .accordion-inner,
.woocommerce-Tabs-panel--description,
#tab-description { /* ... */ }

/* container */
#accordion-description-content,
.term-description,
.woocommerce-category-description,
.product-page-accordion .accordion-inner,
.woocommerce-Tabs-panel--description,
#tab-description{
  position: relative;
  transition: max-height .35s ease;
}

/* trạng thái thu gọn (PHẢI trùng JS: is-collapsed) */
#accordion-description-content.is-collapsed,
.term-description.is-collapsed,
.woocommerce-category-description.is-collapsed,
.product-page-accordion .accordion-inner.is-collapsed,
.woocommerce-Tabs-panel--description.is-collapsed,
#tab-description.is-collapsed{
  max-height: 1500px;
  overflow: hidden;
}

/* overlay mờ ở đáy khi thu gọn */
#accordion-description-content.is-collapsed:after,
.term-description.is-collapsed:after,
.woocommerce-category-description.is-collapsed:after,
.product-page-accordion .accordion-inner.is-collapsed:after,
.woocommerce-Tabs-panel--description.is-collapsed:after,
#tab-description.is-collapsed:after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:140px;
  pointer-events:none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 70%);
}

/* nút xem thêm */
.md-readmore-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 5px 45px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #fceb8c 0%, #f48804 100%);
  box-shadow: 0 10px 24px rgba(244,136,4,.18);
}

.md-readmore-wrap{
  text-align:center;
  margin: 18px 0 0;
}
/* =========================
   // Sticky TOC (mục lục bám theo khi scroll)
   ========================= */

/* Mục lục bài viết */
.md-toc{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 14px 14px 10px;
  background: #fff;

  position: sticky;
  top: 110px;          /* chỉnh theo chiều cao header sticky */
  z-index: 20;
}

/* giới hạn chiều cao để không tràn màn hình */
.md-toc__body{
  max-height: calc(100vh - 160px); /* 110px top + khoảng trống/padding */
  overflow: auto;
}

.md-toc__title{
  font-weight: 800;
  margin-bottom: 10px;
}

.md-toc__list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.md-toc__item{ margin: 6px 0; }

.md-toc__link{
  display: block;
  color: inherit;
  text-decoration: none;
  line-height: 1.35;
  opacity: .9;
  padding: 4px 6px;
  border-radius: 6px;
}

.md-toc__link:hover{ background: rgba(0,0,0,.04); }

.md-toc__link.is-active{
  background: rgba(244,136,4,.12);
  opacity: 1;
  font-weight: 700;
}

/* =========================
   // Phân biệt H2 và H3
   ========================= */

/* H2 - tiêu đề chính trong mục lục */
.md-toc__item.level-2 .md-toc__link{
  font-weight: 700;
  padding-left: 0;
}

/* H3 - thụt vào nhẹ */
.md-toc__item.level-3 .md-toc__link{
  padding-left: 14px;
  font-size: 14px;
  opacity: .9;
}

/* H4 nếu có */
.md-toc__item.level-4 .md-toc__link{
  padding-left: 26px;
  font-size: 13px;
  opacity: .85;
}
/* =========================
   // Sticky TOC fallback bằng fixed
   ========================= */
.md-toc.md-fixed{
  position: fixed !important;
  top: 110px;
  width: 320px;      /* chỉnh theo độ rộng sidebar của bạn */
  z-index: 999;
}
/* Tiêu đề bài viết: chỉ hiện 2 dòng */
.from_the_blog_excerpt{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5em;
  min-height: 3em;
  max-height: 3em;
}

/* Sang trang mới */
.page-numbers.nav-pagination,
.nav-pagination.links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.page-numbers.nav-pagination li,
.nav-pagination.links li {
  list-style: none;
  margin: 0;
}

.page-numbers.nav-pagination li > a,
.page-numbers.nav-pagination li > span,
.nav-pagination.links li > a,
.nav-pagination.links li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #f7f7f7;
  color: #444;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s ease;
}

.page-numbers.nav-pagination li > a:hover,
.nav-pagination.links li > a:hover {
  background: #f4a024;
  color: #fff;
}

.page-numbers.nav-pagination li > span.current,
.nav-pagination.links li > span.current {
  background: #f4a024;
  color: #fff;
}

/* ===== Related posts ===== */
.single-post .mint-related-posts {
  margin-top: 30px;
  padding-top: 20px;
  clear: both;
}

.single-post .mint-related-heading {
  margin: 0 0 16px !important;
  font-size: 28px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  color: #f29a1a !important;
}

/* ép 3 cột thật sự */
.single-post .mint-related-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

/* card */
.single-post .mint-related-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  border: 1px solid #f29a1a !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

/* ảnh */
.single-post .mint-related-thumb {
  display: block !important;
  width: 100% !important;
  height: 180px !important;
  overflow: hidden !important;
  background: #f5f5f5 !important;
  flex-shrink: 0 !important;
}

.single-post .mint-related-thumb img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  display: block !important;
}

/* nội dung */
.single-post .mint-related-body {
  padding: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

.single-post .mint-related-title {
  margin: 0 0 10px !important;
  font-size: 18px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
}

.single-post .mint-related-title a {
  color: #f29a1a !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.9em !important;
  word-break: break-word !important;
}

.single-post .mint-related-excerpt {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.single-post .mint-related-excerpt a,
.single-post .mint-related-excerpt {
  color: #444 !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 3.2em !important;
  word-break: break-word !important;
}

/* hover card */
.single-post .mint-related-card {
  transition: all .3s ease;
}

.single-post .mint-related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

/* zoom ảnh */
.single-post .mint-related-thumb img {
  transition: transform .4s ease;
}

.single-post .mint-related-card:hover .mint-related-thumb img {
  transform: scale(1.06);
}

/* đổi màu title */
.single-post .mint-related-title a {
  transition: color .25s ease;
}

.single-post .mint-related-card:hover .mint-related-title a {
  color: #d98200;
}

/* hover border */
.single-post .mint-related-card:hover {
  border-color: #d98200;
}
/* responsive */
@media (max-width: 849px) {
  .single-post .mint-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 549px) {
  .single-post .mint-related-grid {
    grid-template-columns: 1fr !important;
  }
}

.floating-contact{
    position: fixed;
    right: 20px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.floating-contact a img{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.floating-contact a img:hover{
    transform: scale(1.1);
}

/* ================= CONTACT FORM ================= */

.contact-form-mint{
  border: 2px solid #eee;
  border-radius: 10px;
  padding: 25px;
  background: #fff;
}

/* tiêu đề form */
.contact-form-mint h3{
  font-size: 20px;
  font-weight: 600;
  color: #f59000;
  margin-bottom: 10px;
}

.contact-form-mint p.description{
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* label */
.contact-form-mint label{
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
  color: #333;
}

/* input + textarea */
.contact-form-mint input,
.contact-form-mint textarea{
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  margin-bottom: 15px;
  transition: all .2s ease;
}

.contact-form-mint textarea{
  min-height: 120px;
  resize: vertical;
}

/* focus */
.contact-form-mint input:focus,
.contact-form-mint textarea:focus{
  border-color: #f59000;
  outline: none;
  box-shadow: 0 0 0 2px rgba(245,144,0,0.1);
}

/* ========== SUBMIT BUTTON (giống BUY NOW) ========== */

.contact-form-mint button{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #f6c61d 0%, #f59000 100%);

  padding: 12px 12px;
  min-height: 55px;

  text-align: center;
  color: #fff;
  font-size: 16px;
  font-weight: 600;

  box-shadow: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;

  transition: all .2s ease;
}

/* hover */
.contact-form-mint button:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* active */
.contact-form-mint button:active{
  transform: scale(0.98);
}

/* khung ngoài form */
.contact-form-mint{
  border: 1px solid #f59000; /* cam */
  border-radius: 10px;
  padding: 25px;
  background: #fff;
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}