/*
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  ***************/

/* ===== Mobile: category icon menu (grid 4 cols => 4+4+3) ===== */
body.home .takao-cat-grid{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:stretch;
}
body.home .takao-cat-grid .takao-cat-col{
  flex:0 0 25% !important;
  max-width:25% !important;
  padding-left:6px !important;
  padding-right:6px !important;
  margin-bottom:12px;
}
body.home .takao-cat-grid .takao-cat-col .icon-box,
body.home .takao-cat-grid .takao-cat-col .icon-box-img{
  margin-left:auto;
  margin-right:auto;
}
body.home .takao-cat-grid .takao-cat-col .icon-box-text{
  text-align:center;
}

/* ===== If the category section is a Flickity slider, neutralize ONLY its category items ===== */
body.home .takao-cat-grid-slider .flickity-viewport{
  overflow:visible !important;
  height:auto !important;
}
body.home .takao-cat-grid-slider .flickity-slider{
  position:static !important;
  transform:none !important;
  display:flex !important;
  flex-wrap:wrap !important;
  width:100% !important;
}
body.home .takao-cat-grid-slider .flickity-slider > .takao-cat-item{
  flex:0 0 25% !important;
  max-width:25% !important;
  padding-left:6px !important;
  padding-right:6px !important;
  margin-bottom:12px;
}
body.home .takao-cat-grid-slider .flickity-prev-next-button,
body.home .takao-cat-grid-slider .flickity-page-dots{
  display:none !important;
}


}
/* =========================================================/* Product cards makeover moved to assets/css/product-cards.css */

/* ========== PRODUCT CARD FIX (Grid) ========== */

/* 1) Card đều chiều cao + bố cục cột */
.products .product-small .box,
.woocommerce .products .product-small .box{
  height: 100%;
  display: flex;
  flex-direction: column;
}

.products .product-small .box-text,
.woocommerce .products .product-small .box-text{
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 2) Title bớt đậm + clamp 3 dòng + ... */
.products .product-small .name.product-title a,
.woocommerce .products .product-small .name.product-title a{
  font-weight: 600;              /* bớt đậm */
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;         /* tối đa 3 dòng */
  overflow: hidden;
}

/* 3) Sao + giá căn giữa */
.products .product-small .star-rating,
.woocommerce .products .product-small .star-rating{
  margin: 8px auto 6px !important;   /* auto => center */
  float: none !important;
  display: block;
}

.products .product-small .price-wrapper,
.woocommerce .products .product-small .price-wrapper{
  text-align: center;
}

.products .product-small .price,
.woocommerce .products .product-small .price{
  display: inline-block;
  margin: 0 auto;
}

/* 4) Khu vực quantity (– 1 +) không vỡ, canh giữa */
.products .product-small form.cart,
.woocommerce .products .product-small form.cart{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;                 /* đẩy cụm dưới xuống đáy card => đều chiều cao */
}

.products .product-small .quantity,
.woocommerce .products .product-small .quantity,
.products .product-small .ux-quantity,
.woocommerce .products .product-small .ux-quantity{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto !important;
}

.products .product-small .quantity input.qty,
.woocommerce .products .product-small .quantity input.qty{
  width: 64px !important;
  min-width: 64px !important;
  text-align: center;
}

.products .product-small .quantity .minus,
.products .product-small .quantity .plus,
.woocommerce .products .product-small .quantity .minus,
.woocommerce .products .product-small .quantity .plus{
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  line-height: 34px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* 5) Nút Add to cart đều nhau và nằm gọn */
.products .product-small a.button,
.products .product-small button.button,
.woocommerce .products .product-small a.button,
.woocommerce .products .product-small button.button{
  width: 100%;
  border-radius: 8px;
}

/* 6) Chống tràn layout do text dài / phần tử linh tinh */
.products .product-small .box-text,
.woocommerce .products .product-small .box-text{
  overflow: hidden;
}

/*Mới*/
/* =========================
   PRODUCT GRID – CARD FIX
   Equal height + aligned rows
   ========================= */

/* Make each product card equal height */
.woocommerce ul.products,
.products{
  display:flex;
  flex-wrap:wrap;
}

.woocommerce ul.products li.product,
.products .product-small{
  display:flex;
}

.woocommerce ul.products li.product .col-inner,
.products .product-small .col-inner{
  width:100%;
  display:flex;
}

.woocommerce ul.products li.product .box,
.products .product-small .box{
  width:100%;
  display:flex;
  flex-direction:column;
  height:100%;
  border:1px solid #e6e6e6;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}

/* Image area (force equal height, no distortion) */
.products .product-small .box-image,
.woocommerce ul.products li.product .box-image{
  padding:18px 18px 6px;
  height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.products .product-small .box-image a,
.woocommerce ul.products li.product .box-image a{
  display:block;
  width:100%;
  height:100%;
}

.products .product-small .box-image img,
.woocommerce ul.products li.product .box-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

/* If you prefer no crop, swap object-fit: cover -> contain */

/* Text area becomes a column so we can push controls to bottom */
.products .product-small .box-text{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px 16px 16px;
  text-align:left;
  flex:1;
}

/* Title: lighter + clamp 3 lines with ellipsis */
.products .product-small .name,
.products .product-small .woocommerce-loop-product__title,
.woocommerce ul.products li.product .name{
  font-weight:600;
  line-height:1.35;
  margin:0;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  min-height: calc(1.35em * 3); /* reserve 3 lines so titles align */
}

/* Rating + price centered and aligned */
.products .product-small .star-rating,
.products .product-small .price-wrapper,
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .price{
  margin-left:auto;
  margin-right:auto;
  text-align:center;
}

.products .product-small .price-wrapper{
  min-height: 28px; /* keep price row same height */
}

/* Push cart area to bottom so all buttons align */
.products .product-small .add-to-cart-button,
.woocommerce ul.products li.product .add-to-cart-button{
  margin-top:auto;
}

/* FORCE show Add to cart button if it exists but got hidden */
.products .product-small .add-to-cart-button,
.woocommerce ul.products li.product .add-to-cart-button,
.woocommerce ul.products li.product a.button.add_to_cart_button,
.woocommerce ul.products li.product a.button.product_type_simple,
.woocommerce ul.products li.product a.button.product_type_variable,
.woocommerce ul.products li.product a.button.product_type_grouped{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
}

/* =========================================================
   BUTTON COLOR – Add to cart
   Use #ffeb3b (yellow) as requested
   ========================================================= */

/* Loop cards (custom + default Woo buttons inside product grid) */
.products .product-small .takao-loop-cart .button,
.products .product-small .takao-loop-cart a.button,
.products .product-small .takao-loop-cart button,
.products .product-small a.button.add_to_cart_button,
.products .product-small a.button.product_type_simple,
.products .product-small a.button.product_type_variable,
.products .product-small a.button.product_type_grouped,
.products .product-small a.button.product_type_external,
.products .product-small button.single_add_to_cart_button,
.woocommerce ul.products li.product .takao-loop-cart .button,
.woocommerce ul.products li.product a.button.add_to_cart_button,
.woocommerce ul.products li.product a.button.product_type_simple,
.woocommerce ul.products li.product a.button.product_type_variable,
.woocommerce ul.products li.product a.button.product_type_grouped,
.woocommerce ul.products li.product a.button.product_type_external{
  background-color: #ffeb3b !important;
  border-color: #ffeb3b !important;
  color: #111 !important;
}

/* Hover */
.products .product-small .takao-loop-cart .button:hover,
.products .product-small a.button.add_to_cart_button:hover,
.products .product-small a.button.product_type_simple:hover,
.products .product-small button.single_add_to_cart_button:hover,
.woocommerce ul.products li.product a.button.add_to_cart_button:hover,
.woocommerce ul.products li.product a.button.product_type_simple:hover,
.woocommerce ul.products li.product a.button.product_type_variable:hover,
.woocommerce ul.products li.product a.button.product_type_grouped:hover,
.woocommerce ul.products li.product a.button.product_type_external:hover{
  background-color: #ffeb3b !important;
  border-color: #ffeb3b !important;
  color: #111 !important;
  filter: brightness(0.97);
}

/* Button full width and never "break" */
.products .product-small .add-to-cart-button a.button,
.woocommerce ul.products li.product a.button{
  width:100%;
  display:block;
  box-sizing:border-box;
  border-radius:10px;
  padding:12px 14px;
  font-weight:700;
  text-transform:none;
}

/* If Flatsome wraps quantity+button in form.cart, align nicely */
.woocommerce ul.products li.product form.cart{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* Quantity group: keep minus/qty/plus as ONE bar */
.woocommerce ul.products li.product .quantity,
.products .product-small .quantity{
  display:inline-flex !important;
  align-items:stretch !important;
  gap:0 !important;
  white-space:nowrap;
}

.woocommerce ul.products li.product .quantity .minus,
.woocommerce ul.products li.product .quantity .plus,
.products .product-small .quantity .minus,
.products .product-small .quantity .plus{
  float:none !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:42px !important;
  min-width:42px !important;
  height:42px !important;
  line-height:42px !important;
  margin:0 !important;
  border-radius:0 !important;
}

.woocommerce ul.products li.product .quantity .minus,
.products .product-small .quantity .minus{
  border-radius:10px 0 0 10px !important;
}

.woocommerce ul.products li.product .quantity .plus,
.products .product-small .quantity .plus{
  border-radius:0 10px 10px 0 !important;
}

.woocommerce ul.products li.product .quantity input.qty,
.products .product-small .quantity input.qty{
  float:none !important;
  display:inline-block !important;
  width:70px !important;
  min-width:70px !important;
  height:42px !important;
  line-height:42px !important;
  margin:0 !important;
  border-left:0 !important;
  border-right:0 !important;
  text-align:center !important;
  border-radius:0 !important;
  box-sizing:border-box;
}

/* Make sure quantity doesn't wrap and looks centered */
.products .product-small .quantity,
.woocommerce ul.products li.product .quantity{
  margin-left:auto;
  margin-right:auto;
}

/* Small screens */
@media (max-width: 849px){
  .products .product-small .box-text{
    padding:12px 12px 14px;
  }
}


/* =========================
   SECTION TITLE (Category heading)
   Yellow full-width pill + remove Flatsome default frame
   ========================= */

/* Target Flatsome section title blocks like: <div class="container section-title-container"><h3 class="section-title ...">... */
.container.section-title-container{
  width: 100%;
}

.container.section-title-container .section-title{
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  background: #ffeb3b;
  border: 0 !important;
  border-radius: 10px;
  box-shadow: none !important;
}

/* Remove default lines/frame generated by Flatsome */
.container.section-title-container .section-title:before,
.container.section-title-container .section-title:after,
.container.section-title-container .section-title b{
  display: none !important;
}

/* Ensure the main text sits nicely */
.container.section-title-container .section-title .section-title-main{
  display: inline-block;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Optional: keep arrow aligned */
.container.section-title-container .section-title i{
  margin-left: 6px;
}

/* =========================
   PRODUCT GRID – PERFECT ALIGN (Fix8)
   - Ảnh cùng chiều cao (không méo)
   - Title/giá/qty/button thẳng hàng
   - Card cùng chiều cao
   ========================= */

/* Ensure each card stretches full height inside columns/slider */
.products .product-small,
.woocommerce ul.products li.product{
  height: 100%;
}

.products .product-small .col-inner,
.woocommerce ul.products li.product .col-inner{
  height: 100%;
  display: flex;
}

.products .product-small .box,
.woocommerce ul.products li.product .box{
  height: 100%;
}

/* 1) Equal-height image area (no distortion) */
.products .product-small .box-image,
.woocommerce ul.products li.product .box-image{
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 18px 8px;
}

.products .product-small .box-image a,
.woocommerce ul.products li.product .box-image a{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.products .product-small .box-image img,
.woocommerce ul.products li.product .box-image img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

@media (max-width: 768px){
  .products .product-small .box-image,
  .woocommerce ul.products li.product .box-image{
    height: 180px;
  }
}

/* 2) Hide rating in grid to keep price aligned (optional but needed for perfect alignment) */
.products .product-small .star-rating,
.woocommerce ul.products li.product .star-rating{
  display: none !important;
}

/* 3) Reserve consistent space for title + price */
.products .product-small .name.product-title,
.products .product-small .woocommerce-loop-product__title,
.woocommerce ul.products li.product .name{
  min-height: calc(1.35em * 3);
}

.products .product-small .price-wrapper,
.woocommerce ul.products li.product .price{
  min-height: 32px;
}

/* 4) Push cart block to bottom so qty/button align */
.products .product-small .box-text,
.woocommerce ul.products li.product .box-text{
  flex: 1;
}

.products .product-small .takao-loop-cart,
.products .product-small form.cart,
.woocommerce ul.products li.product .takao-loop-cart,
.woocommerce ul.products li.product form.cart{
  margin-top: auto !important;
}

/* 5) Normalize qty + button heights */
.products .product-small .takao-loop-cart,
.woocommerce ul.products li.product .takao-loop-cart{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.products .product-small .takao-qty,
.products .product-small .takao-qtywrap,
.woocommerce ul.products li.product .takao-qty,
.woocommerce ul.products li.product .takao-qtywrap{
  height: 40px;
}

.products .product-small .takao-qty-btn,
.woocommerce ul.products li.product .takao-qty-btn{
  width: 40px !important;
  height: 40px !important;
  line-height: 38px !important;
}

.products .product-small .takao-qty-input,
.woocommerce ul.products li.product .takao-qty-input{
  height: 40px !important;
}

.products .product-small .takao-loop-cart .button,
.products .product-small .takao-loop-cart a.button,
.products .product-small .takao-loop-cart button,
.woocommerce ul.products li.product .takao-loop-cart .button,
.woocommerce ul.products li.product .takao-loop-cart a.button,
.woocommerce ul.products li.product .takao-loop-cart button{
  height: 44px;
  line-height: 44px;
  padding: 0 14px;
}

/* =========================
   FIX11 – Image equal height (no distortion, width auto)
   - Khung ảnh cố định chiều cao
   - Ảnh luôn cao bằng nhau, không méo
   - Ảnh rộng theo tỉ lệ; nếu quá rộng sẽ bị cắt 2 bên (không phá layout)
   ========================= */

.products .product-small .box-image,
.woocommerce ul.products li.product .box-image{
  height: 220px !important;
  overflow: hidden !important;
}

.products .product-small .box-image a,
.woocommerce ul.products li.product .box-image a{
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.products .product-small .box-image img,
.woocommerce ul.products li.product .box-image img{
  height: 100% !important;
  width: auto !important;
  max-width: none !important;
  max-height: 100% !important;
  object-fit: unset !important;
  object-position: center !important;
}

@media (max-width: 768px){
  .products .product-small .box-image,
  .woocommerce ul.products li.product .box-image{
    height: 180px !important;
  }
}

/* =========================
   FIX13 – Image frame fixed + title always aligned
   ========================= */

/* 1) Hard lock image frame (override earlier rules) */
.products .product-small .box-image,
.woocommerce ul.products li.product .box-image{
  height: 220px !important;
  padding: 18px 18px 8px !important;
  overflow: hidden !important;
  display: block !important;
  position: relative !important;
}

.products .product-small .box-image a,
.woocommerce ul.products li.product .box-image a{
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

/* Neo TOP: ảnh bám theo đỉnh, không được kéo cao khung */
.products .product-small .box-image img,
.woocommerce ul.products li.product .box-image img{
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: unset !important;
  object-position: unset !important;
}

@media (max-width: 768px){
  .products .product-small .box-image,
  .woocommerce ul.products li.product .box-image{
    height: 180px !important;
  }
}

/* 2) Ensure text block starts at same position on every card */
.products .product-small .box-text,
.woocommerce ul.products li.product .box-text{
  padding-top: 14px !important;
}

/* 3) Reserve the same space for title + price so rows align */
.products .product-small .name.product-title,
.products .product-small .woocommerce-loop-product__title,
.woocommerce ul.products li.product .name{
  min-height: calc(1.35em * 3) !important;
}

.products .product-small .price-wrapper,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price-wrapper{
  min-height: 32px !important;
}



/* =========================================================
   FIX14: Force equal image frame height (top-anchored, no distortion)
   - Landscape images will not push title up (frame stays fixed)
   - Tall images are cropped at bottom (overflow hidden)
   ========================================================= */
.products .product-small .box-image,
.woocommerce ul.products li.product .box-image{
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  overflow: hidden !important;
  display: block !important;
  align-items: initial !important;
  justify-content: initial !important;
}

.products .product-small .box-image a,
.woocommerce ul.products li.product .box-image a{
  display:block !important;
  width:100% !important;
  height:100% !important;
  overflow:hidden !important;
}

.products .product-small .box-image img,
.woocommerce ul.products li.product .box-image img{
  display:block !important;
  width:100% !important;
  height:auto !important;          /* keep ratio, no distortion */
  max-height:none !important;
  object-fit: unset !important;
  object-position: top center !important;
  margin:0 !important;
}

@media (max-width: 849px){
  .products .product-small .box-image,
  .woocommerce ul.products li.product .box-image{
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
  }
}

/* === IMAGE FRAME FIX: tối ưu cho ảnh ngang + dọc, không lệch, không méo === */
.products .product-small.box,
.product-small.box{
  display:flex !important;
  flex-direction:column !important;
  height:100% !important;
}

.products .product-small.box .box-image,
.product-small.box .box-image{
  height:220px !important;
  min-height:220px !important;
  max-height:220px !important;
  overflow:hidden !important;
}

/* Treo ảnh vào khung: TOP + center ngang */
.products .product-small.box .box-image > a,
.product-small.box .box-image > a{
  display:flex !important;
  height:100% !important;
  justify-content:flex-start !important; /* neo TOP */
  align-items:center !important;         /* căn giữa ngang */
}

/* Ảnh không méo, không cắt, không lệch */
.products .product-small.box .box-image img,
.product-small.box .box-image img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;          /* không méo */
  object-position:top center !important;  /* neo TOP, giữa ngang */
  margin:0 !important;
  max-width:100% !important;
}

/* Mobile */
@media (max-width: 849px){
  .products .product-small.box .box-image,
  .product-small.box .box-image{
    height:180px !important;
    min-height:180px !important;
    max-height:180px !important;
  }
}


/* === Tighten spacing: ảnh -> title -> price === */

/* 1) Giảm chiều cao khung ảnh để title không bị “rớt” quá xa */
.products .product-small.box .box-image,
.product-small.box .box-image{
  height:190px !important;
  min-height:190px !important;
  max-height:190px !important;
}

/* 2) Giảm padding vùng text */
.products .product-small.box .box-text,
.product-small.box .box-text{
  padding-top:10px !important;
  padding-bottom:10px !important;
}

/* 3) Title sát ảnh hơn */
.products .product-small.box .title-wrapper,
.product-small.box .title-wrapper{
  margin-top:0 !important;
}
.products .product-small.box .name.product-title,
.product-small.box .name.product-title{
  margin:0 0 6px 0 !important;   /* giảm khoảng cách dưới title */
  line-height:1.25 !important;
}

/* 4) Price sát title hơn */
.products .product-small.box .price-wrapper,
.product-small.box .price-wrapper{
  margin-top:0 !important;
  margin-bottom:8px !important;  /* giảm khoảng cách xuống qty */
}
.products .product-small.box .price,
.product-small.box .price{
  margin:0 !important;
}

/* Mobile */
@media (max-width: 849px){
  .products .product-small.box .box-image,
  .product-small.box .box-image{
    height:165px !important;
    min-height:165px !important;
    max-height:165px !important;
  }
}

/* === Tighter: title -> price, and button -> card bottom === */

/* 1) Title sát price hơn */
.products .product-small.box .name.product-title,
.product-small.box .name.product-title{
  margin-bottom: 2px !important;
  line-height: 1.22 !important;
}

.products .product-small.box .price-wrapper,
.product-small.box .price-wrapper{
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}

.products .product-small.box .price,
.product-small.box .price{
  margin: 0 !important;
  line-height: 1.2 !important;
}

/* 2) Giảm “đệm đáy” của card để nút sát chân khung hơn */
.products .product-small.box .box-text,
.product-small.box .box-text{
  padding-bottom: 6px !important;
}

/* 3) Giảm khoảng cách dưới nút Add to cart */
.products .product-small.box .button,
.product-small.box .button,
.products .product-small.box .takao-loop-cart .button,
.product-small.box .takao-loop-cart .button{
  margin-bottom: 0 !important;
}

/* 4) Nếu Flatsome đang set gap lớn giữa các block trong box-text */
.products .product-small.box .box-text > *,
.product-small.box .box-text > *{
  margin-bottom: 6px !important;
}
.products .product-small.box .box-text > *:last-child,
.product-small.box .box-text > *:last-child{
  margin-bottom: 0 !important;
}

/* =========================
 * Checkout UI (mẫu 2)
 * ========================= */

body.fch-checkout .woocommerce-notices-wrapper,
body.fch-checkout .woocommerce-form-coupon-toggle{
  display:none !important;
}

/* Keep site container width (DO NOT force 100vw) */

body.fch-checkout .fch-checkout-header{
  margin:0 0 20px;
  padding:12px 0 0;
  text-align:center;
}

body.fch-checkout .fch-checkout-lang{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:54px;
  height:42px;
  border:1px solid #eee;
  background:#fff;
  margin:0 auto 8px;
  font-weight:600;
}

body.fch-checkout .fch-checkout-title{
  margin:0 0 10px;
}

body.fch-checkout .fch-checkout-steps{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 8px;
}

body.fch-checkout .fch-step{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid #e7e7e7;
  background:#fff;
  font-size:14px;
}

body.fch-checkout .fch-step.is-active{
  background:#f3c300;
  border-color:#f3c300;
  color:#fff;
}

body.fch-checkout .fch-checkout-sub{
  margin:0;
  color:#6b6b6b;
}

/* Section blocks */
body.fch-checkout .fch-section{
  background:#fff;
  border:1px solid #e7e7e7;
  border-radius:6px;
  padding:16px;
  margin:0 0 18px;
}

body.fch-checkout .fch-section-title{
  margin:0 0 14px;
  font-size:18px;
  font-weight:700;
}

/* 1) Payment & Shipping: form + map (within same section) */
body.fch-checkout .fch-ship-grid{
  display:grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap:18px;
  align-items:start;
}

@media (max-width: 849px){
  body.fch-checkout .fch-ship-grid{
    grid-template-columns:1fr;
  }
}

body.fch-checkout .fch-ship-side{
  align-self:start;
}

body.fch-checkout .fch-checkout-note{
  font-size:12px;
  line-height:1.45;
  color:#c10000;
  margin-bottom:12px;
}

body.fch-checkout .fch-checkout-map img{
  width:100%;
  height:auto;
  display:block;
}

/* Make order review full width and similar section spacing */
body.fch-checkout #order_review_heading{
  text-align:left;
  max-width:none;
  margin:0 auto 10px;
  padding:0 24px;
}

body.fch-checkout form.checkout{
  max-width:100%;
  width:100%;
  margin:0;
  padding:0 0 24px;
}

/* Hide Flatsome sidebars + make checkout full width */
body.fch-checkout #secondary,
body.fch-checkout .sidebar,
body.fch-checkout .shop-sidebar{
  display:none !important;
}
body.fch-checkout .large-9,
body.fch-checkout .medium-9,
body.fch-checkout .small-12{
  width:100% !important;
  max-width:100% !important;
  flex-basis:100% !important;
}

/* Order review table (mẫu) */
body.fch-checkout .fch-review{
  width:100%;
  border:1px solid #e7e7e7;
  border-collapse:collapse;
}
body.fch-checkout .fch-review th,
body.fch-checkout .fch-review td{
  border:1px solid #e7e7e7;
  padding:10px 12px;
  vertical-align:middle;
}
body.fch-checkout .fch-review thead th{
  background:#fafafa;
  font-weight:700;
}
body.fch-checkout .fch-section-title th{
  background:#b08b00;
  color:#fff;
  font-weight:700;
  padding:8px 12px;
}
body.fch-checkout .fch-td-block{
  background:#fff;
}

body.fch-checkout .fch-col-img{ width:80px; }
body.fch-checkout .fch-col-price{ width:120px; }
body.fch-checkout .fch-col-qty{ width:140px; }
body.fch-checkout .fch-col-sub{ width:140px; }
body.fch-checkout .fch-td-img img{ max-width:46px; height:auto; display:block; }
body.fch-checkout .fch-product-name{ font-weight:600; }

/* Qty control */
body.fch-checkout .fch-qty{
  display:inline-flex;
  align-items:center;
  border:1px solid #dcdcdc;
  border-radius:4px;
  overflow:hidden;
  background:#fff;
}
body.fch-checkout .fch-qty-btn{
  width:34px;
  height:34px;
  border:0;
  background:#f3f3f3;
  font-size:16px;
  line-height:34px;
}
body.fch-checkout .fch-qty-input{
  width:52px;
  height:34px;
  border:0;
  text-align:center;
  padding:0;
}

/* Services + support */
body.fch-checkout .fch-services-box,
body.fch-checkout .fch-support-box{
  display:flex;
  flex-direction:column;
  gap:6px;
}
body.fch-checkout .fch-check,
body.fch-checkout .fch-radio{
  display:flex;
  align-items:center;
  gap:10px;
}
body.fch-checkout .fch-check input,
body.fch-checkout .fch-radio input{
  margin:0;
}
body.fch-checkout .fch-check__label,
body.fch-checkout .fch-radio__label{
  flex:1;
}
body.fch-checkout .fch-check__price,
body.fch-checkout .fch-radio__price{
  white-space:nowrap;
}

/* Payment block like mẫu */
body.fch-checkout #payment.fch-payment{
  background:#efefef;
  padding:14px 16px;
  border:1px solid #e7e7e7;
  border-top:0;
}
body.fch-checkout #payment.fch-payment .wc_payment_methods{
  margin:0 0 10px;
}
body.fch-checkout #payment.fch-payment #place_order{
  background:#f3c300;
  border-color:#f3c300;
  color:#000;
  font-weight:700;
  padding:12px 18px;
  border-radius:4px;
}
body.fch-checkout #payment.fch-payment .woocommerce-terms-and-conditions-wrapper{
  margin:10px 0;
}


/* =========================
 * Thank You UI (mẫu 3)
 * ========================= */

body.fch-thankyou .woocommerce-order{
  max-width:none;
  width:100%;
  margin:0 auto;
  padding:0 24px;
}

body.fch-thankyou .fch-thankyou-hero{
  position:relative;
  padding:60px 0 30px;
  text-align:center;
}

body.fch-thankyou .fch-thankyou-hero__bg{
  position:absolute;
  inset:0;
  background: #0a8f2a;
  background-image: none !important;
  z-index:0;
}

body.fch-thankyou .fch-thankyou-title{
  position:relative;
  z-index:1;
  color:#fff;
  margin:0 0 30px;
  letter-spacing:1px;
}

body.fch-thankyou .fch-thankyou-panel{
  position:relative;
  z-index:1;
  max-width:none;
  width:100%;
  margin:0 auto;
  background:#fff;
  border-radius:10px;
  padding:18px 18px 6px;
  box-shadow:0 2px 18px rgba(0,0,0,0.06);
}

body.fch-thankyou .fch-thankyou-panel::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-38px;
  height:60px;
  background:#fff;
  clip-path:polygon(0 100%, 50% 0, 100% 100%);
}

body.fch-thankyou .fch-thankyou-panel__cap{
  color:#b08b00;
  font-weight:700;
  margin-bottom:12px;
}

/* Order information lines: one item per line (label + value) */
body.fch-thankyou .fch-ty-lines{
  max-width: 520px;
  margin: 0 auto 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

body.fch-thankyou .fch-ty-line{
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: center;
  font-size: 16px;
}

body.fch-thankyou .fch-ty-k{
  color: #111;
  font-weight: 500;
}

body.fch-thankyou .fch-ty-v{
  color: #111;
  font-weight: 800;
}

body.fch-thankyou .fch-thankyou-meta{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:12px;
  text-align:left;
}

@media (max-width: 849px){
  body.fch-thankyou .fch-thankyou-meta{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 549px){
  body.fch-thankyou .fch-thankyou-meta{
    grid-template-columns:1fr;
  }
}

body.fch-thankyou .fch-label{
  display:block;
  color:#6b6b6b;
  font-size:12px;
  margin-bottom:4px;
}

/* Hide default thankyou blocks to match mẫu (optional) */
body.fch-thankyou .woocommerce-order-details,
body.fch-thankyou .woocommerce-customer-details{
  display:none;
}


/* Checkout steps: anchor + link reset */
body.fch-checkout .fch-step-anchor{
  position:relative;
  top:-120px;
  height:1px;
}
body.fch-checkout a.fch-step{
  text-decoration:none;
  color:inherit;
}
body.fch-checkout a.fch-step:hover{
  text-decoration:none;
}



/* Thank you subtitle + bank box */
.fch-thankyou-subtitle{
  margin: 10px auto 0;
  max-width: 980px;
  padding: 0 15px;
  font-size: 16px;
  line-height: 1.5;
  color: #ffffff;
  text-align: center;
}

.fch-thankyou-bank{
  margin-top: 16px;
  text-align: left;
}

.fch-thankyou-bank__title{
  font-weight: 700;
  margin-bottom: 10px;
}

.fch-thankyou-bank__box{
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
}

.fch-bank-row{
  display:flex;
  gap:14px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f1f1;
}

.fch-bank-row:last-child{ border-bottom: 0; }

.fch-bank-k{
  width: 160px;
  color: #666;
  font-weight: 600;
}

.fch-bank-v{
  flex: 1;
  font-weight: 700;
  color: #111;
}
