.tn-cart-fab{position:fixed;right:22px;bottom:22px;z-index:99920;border:0;border-radius:999px;background:#245c37;color:#fff;box-shadow:0 8px 28px rgba(0,0,0,.2);height:50px;padding:0 13px 0 15px;display:flex;align-items:center;gap:7px;font:600 14px/1 Arial,sans-serif;cursor:pointer}.tn-cart-fab:hover{transform:translateY(-1px)}.tn-cart-fab-icon{font-size:19px}.tn-cart-count{min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#d5ae57;color:#173824;display:grid;place-items:center;font-size:12px}.tn-cart-overlay{position:fixed;inset:0;background:rgba(18,28,20,.45);z-index:99930}.tn-cart-drawer{position:fixed;top:0;right:0;width:min(470px,100vw);height:100dvh;background:#fff;z-index:99940;box-shadow:-16px 0 45px rgba(0,0,0,.18);transform:translateX(105%);transition:transform .28s ease;display:flex;flex-direction:column;color:#243128}.tn-cart-drawer.is-open{transform:translateX(0)}body.tn-cart-open{overflow:hidden}.tn-cart-head{padding:19px 20px;border-bottom:1px solid #e7e7df;display:flex;align-items:center;justify-content:space-between;background:#fffaf0}.tn-cart-head strong{display:block;font-family:Georgia,serif;color:#245c37;font-size:21px;letter-spacing:.04em}.tn-cart-head small{display:block;margin-top:3px;color:#70766e;font-size:12px}.tn-cart-close{border:0;background:transparent;color:#245c37;font-size:30px;line-height:1;cursor:pointer}.tn-cart-body{overflow:auto;padding:10px 20px 26px}.tn-cart-empty{text-align:center;color:#777;padding:55px 12px}.tn-cart-item{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:12px;padding:14px 0;border-bottom:1px solid #eee}.tn-cart-item-img{width:70px;height:70px;background:#f6f3ea;border-radius:8px;overflow:hidden;display:grid;place-items:center}.tn-cart-item-img img{width:100%;height:100%;object-fit:contain}.tn-cart-item-title{font-weight:700;color:#245c37;text-decoration:none;font-size:14px}.tn-cart-item-price{margin:4px 0 8px;color:#777;font-size:13px}.tn-cart-item-actions{display:flex;align-items:center;gap:12px}.tn-cart-qty{display:grid;grid-template-columns:28px 38px 28px;border:1px solid #d9ded8;border-radius:6px;overflow:hidden}.tn-cart-qty button,.tn-cart-qty input{height:28px;border:0;background:#fff;text-align:center;font-size:14px}.tn-cart-qty button{cursor:pointer;background:#f5f6f3}.tn-cart-qty input{width:38px;border-left:1px solid #e3e5e0;border-right:1px solid #e3e5e0}.tn-cart-remove{border:0;background:none;color:#9b4a42;padding:0;cursor:pointer;font-size:12px}.tn-cart-line{white-space:nowrap;color:#245c37;font-size:13px}.tn-cart-summary{padding-top:16px}.tn-cart-coupon-row{display:grid;grid-template-columns:1fr auto;gap:8px}.tn-cart-coupon-input,.tn-cart-customer input,.tn-cart-customer textarea{width:100%;border:1px solid #d9ded8;border-radius:7px;padding:11px 12px;font:inherit;box-sizing:border-box;background:#fff}.tn-cart-apply{border:0;border-radius:7px;background:#d5ae57;color:#183a25;font-weight:700;padding:0 14px;cursor:pointer}.tn-cart-coupon-msg{min-height:20px;padding:6px 2px 3px;font-size:12px}.tn-cart-coupon-msg.is-ok,.tn-cart-submit-msg.is-ok{color:#27703f}.tn-cart-coupon-msg.is-error,.tn-cart-submit-msg.is-error{color:#a43a32}.tn-cart-money-row{display:flex;justify-content:space-between;gap:12px;padding:7px 0;color:#555}.tn-cart-discount-row strong{color:#a43a32}.tn-cart-total-row{margin-top:4px;padding:12px 0;border-top:1px solid #e0e3dc;color:#1f5131;font-size:18px}.tn-cart-customer{display:grid;gap:10px;margin-top:11px}.tn-cart-customer label{display:grid;gap:5px;color:#425046;font-size:13px}.tn-cart-customer label span{color:#a43a32}.tn-cart-customer textarea{resize:vertical}.tn-cart-submit{width:100%;border:0;border-radius:8px;background:#245c37;color:#fff;font-weight:700;letter-spacing:.035em;padding:13px 15px;margin-top:13px;cursor:pointer}.tn-cart-submit:disabled{opacity:.65;cursor:wait}.tn-cart-submit-msg{padding:8px 2px 0;font-size:13px}.tn-cart-toast{position:fixed;left:50%;bottom:84px;z-index:99960;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#173824;color:#fff;padding:10px 16px;border-radius:999px;box-shadow:0 8px 24px rgba(0,0,0,.2);transition:.2s ease;font-size:13px;max-width:90vw;text-align:center}.tn-cart-toast.is-show{opacity:1;transform:translate(-50%,0)}.tn-cart-product-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0 4px}.tn-cart-product-actions button{min-height:44px;border-radius:7px;font-weight:700;letter-spacing:.025em;cursor:pointer}.tn-add-cart{background:#fff;border:1px solid #245c37;color:#245c37}.tn-buy-now{background:#245c37;border:1px solid #245c37;color:#fff}
@media(max-width:599px){.tn-cart-fab{right:14px;bottom:14px;height:47px;padding:0 10px 0 12px}.tn-cart-fab-label{display:none}.tn-cart-drawer{width:100vw}.tn-cart-body{padding:8px 14px 24px}.tn-cart-head{padding:16px 15px}.tn-cart-item{grid-template-columns:58px minmax(0,1fr);gap:10px}.tn-cart-item-img{width:58px;height:58px}.tn-cart-line{grid-column:2;text-align:right;margin-top:-26px}.tn-cart-product-actions{grid-template-columns:1fr}.tn-cart-toast{bottom:70px}}


/* v1.0.3: thông báo nằm ngay phía trên nút Giỏ hàng */
.tn-cart-toast{
  left:auto!important;
  right:22px!important;
  bottom:82px!important;
  transform:translateY(10px)!important;
  max-width:min(360px,calc(100vw - 32px))!important;
  border-radius:10px!important;
  padding:11px 14px!important;
  text-align:left!important;
}
.tn-cart-toast.is-show{
  transform:translateY(0)!important;
}
@media(max-width:599px){
  .tn-cart-toast{
    left:auto!important;
    right:14px!important;
    bottom:72px!important;
    max-width:calc(100vw - 28px)!important;
    text-align:center!important;
  }
}


/* ======================================================================
   v1.0.5 — CỤM THÔNG BÁO + NÚT GIỎ HÀNG
   Thông báo luôn nằm ngay phía trên nút Giỏ hàng.
   ====================================================================== */
.tn-cart-fab-stack{
  position:fixed!important;
  right:22px!important;
  bottom:22px!important;
  z-index:99920!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  gap:8px!important;
  pointer-events:none!important;
}
.tn-cart-fab-stack .tn-cart-fab{
  position:relative!important;
  right:auto!important;
  bottom:auto!important;
  z-index:1!important;
  pointer-events:auto!important;
}
.tn-cart-fab-stack .tn-cart-toast{
  position:relative!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  z-index:2!important;
  max-width:min(340px,calc(100vw - 32px))!important;
  margin:0!important;
  padding:10px 13px!important;
  border-radius:9px!important;
  background:#173824!important;
  color:#fff!important;
  box-shadow:0 8px 24px rgba(0,0,0,.18)!important;
  font-size:13px!important;
  line-height:1.35!important;
  font-weight:600!important;
  text-align:left!important;
  opacity:0!important;
  visibility:hidden!important;
  transform:translateY(7px)!important;
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease!important;
  pointer-events:none!important;
}
.tn-cart-fab-stack .tn-cart-toast.is-show{
  opacity:1!important;
  visibility:visible!important;
  transform:translateY(0)!important;
}
@media(max-width:599px){
  .tn-cart-fab-stack{
    right:14px!important;
    bottom:14px!important;
  }
  .tn-cart-fab-stack .tn-cart-toast{
    max-width:calc(100vw - 28px)!important;
    text-align:center!important;
  }
}


/* ======================================================================
   v1.0.6 — THÔNG BÁO GIỎ HÀNG RIÊNG, KHÔNG XUNG ĐỘT THEME
   ====================================================================== */
.tn-cart-fab-stack .tn-cart-plugin-toast{
  position:relative!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  z-index:2!important;
  display:block!important;
  max-width:min(360px,calc(100vw - 32px))!important;
  margin:0!important;
  padding:10px 14px!important;
  border-radius:9px!important;
  background:#173824!important;
  color:#fff!important;
  box-shadow:0 8px 24px rgba(0,0,0,.18)!important;
  font:600 13px/1.35 Arial,sans-serif!important;
  text-align:left!important;
  opacity:0!important;
  visibility:hidden!important;
  transform:translateY(7px)!important;
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease!important;
  pointer-events:none!important;
}
.tn-cart-fab-stack .tn-cart-plugin-toast.is-show{
  opacity:1!important;
  visibility:visible!important;
  transform:translateY(0)!important;
}
@media(max-width:599px){
  .tn-cart-fab-stack .tn-cart-plugin-toast{
    max-width:calc(100vw - 28px)!important;
    text-align:center!important;
  }
}

/* ======================================================================
   v1.0.8 — Cụm thao tác chi tiết sản phẩm đã chốt
   [ − 1 +  Thêm vào giỏ ] [ Mua ngay ] [ Xem tất cả sản phẩm ]
   ====================================================================== */
.tn-cart-product-actions{
  grid-template-columns:minmax(220px,1.35fr) minmax(118px,.9fr)!important;
  align-items:stretch!important;
}
.tn-add-cart-combo{
  min-height:52px;
  height:52px;
  display:grid;
  grid-template-columns:82px minmax(92px,1fr);
  align-items:center;
  gap:8px;
  padding:0 10px 0 8px;
  border:1px solid #245c37;
  border-radius:8px;
  background:#fff;
  color:#245c37;
  box-sizing:border-box;
  overflow:hidden;
}
.tn-add-cart-combo .tn-add-cart{
  height:50px!important;
  min-height:50px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#245c37!important;
  font-size:15px!important;
  font-weight:600!important;
  letter-spacing:0!important;
  text-transform:none!important;
  text-align:left!important;
  white-space:nowrap!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  box-shadow:none!important;
}
.tn-add-cart-combo .tn-add-cart:hover,
.tn-add-cart-combo .tn-add-cart:focus{
  color:#173824!important;
  text-decoration:none!important;
  background:transparent!important;
}
.tn-add-cart-combo.is-in-cart .tn-add-cart{
  color:#C9A24D!important;
}
.tn-add-cart-combo.is-in-cart .tn-add-cart:hover,
.tn-add-cart-combo.is-in-cart .tn-add-cart:focus{
  color:#A98332!important;
}
.tn-detail-cart-qty{
  display:grid;
  grid-template-columns:24px 28px 24px;
  align-items:center;
  justify-items:center;
  gap:2px;
  height:34px;
  flex:none;
}
.tn-detail-cart-qty button,
.tn-detail-cart-qty input{
  border:0!important;
  background:transparent!important;
  color:#245c37!important;
  font:600 16px/1 Arial,sans-serif!important;
  text-align:center!important;
  padding:0!important;
  margin:0!important;
  box-shadow:none!important;
}
.tn-detail-cart-qty button{
  width:24px;
  height:32px;
  cursor:pointer;
  font-size:18px!important;
  border-radius:4px!important;
}
.tn-detail-cart-qty button:hover{
  background:#f5f3ea!important;
  color:#173824!important;
}
.tn-detail-cart-qty input{
  width:28px;
  height:32px;
  appearance:textfield;
  -moz-appearance:textfield;
  outline:0;
}
.tn-detail-cart-qty input::-webkit-outer-spin-button,
.tn-detail-cart-qty input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
.tn-add-cart-combo:focus-within,
.tn-add-cart-combo:hover{
  border-color:#173824;
}
.tn-cart-product-actions .tn-buy-now{
  min-height:52px!important;
  height:52px!important;
  border-radius:8px!important;
  font-size:15px!important;
  box-sizing:border-box!important;
}

/* Desktop: giữ đúng bố cục 3 nút cùng một hàng đã chốt trong theme. */
@media(min-width:1025px){
  .product-detail-top .actions{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:12px!important;
    align-items:stretch!important;
  }
  .product-detail-top .actions .tn-cart-product-actions{
    display:contents!important;
    margin:0!important;
  }
  .product-detail-top .actions .tn-add-cart-combo{
    flex:0 1 210px!important;
    min-width:190px!important;
  }
  .product-detail-top .actions .tn-buy-now{
    flex:0 0 118px!important;
  }
  .product-detail-top .actions > .btn.outline{
    flex:1 1 190px!important;
    min-width:180px!important;
    font-size:15px!important;
    padding:0 12px!important;
  }
  .product-detail-top .actions .tn-add-cart-combo,
  .product-detail-top .actions .tn-buy-now,
  .product-detail-top .actions > .btn.outline{
    height:52px!important;
    min-height:52px!important;
    box-sizing:border-box!important;
  }
}

/* Tablet/mobile: chỉ giữ cụm số lượng ở trái và chữ ở phải; không ép layout desktop. */
@media(max-width:599px){
  .tn-cart-product-actions{
    grid-template-columns:1fr!important;
  }
  .tn-add-cart-combo{
    width:100%;
    grid-template-columns:auto minmax(110px,1fr);
    gap:10px;
    padding:0 12px 0 9px;
  }
}


/* ======================================================================
   v1.0.9 — Cân lại cụm 3 nút desktop
   [ − 1 + | Thêm vào giỏ ] [ Mua ngay ] [ Xem tất cả sản phẩm ]
   Chỉ tác động desktop >=1025px; tablet/mobile giữ nguyên.
   ====================================================================== */
@media(min-width:1025px){
  .product-detail-top .actions{
    gap:12px!important;
    align-items:stretch!important;
  }

  .product-detail-top .actions .tn-add-cart-combo{
    flex:0 0 204px!important;
    width:204px!important;
    min-width:204px!important;
    max-width:204px!important;
    height:52px!important;
    min-height:52px!important;
    display:grid!important;
    grid-template-columns:80px minmax(0,1fr)!important;
    gap:0!important;
    padding:0!important;
    overflow:hidden!important;
    border:1px solid #245c37!important;
    border-radius:8px!important;
    background:#fff!important;
    box-sizing:border-box!important;
  }

  .product-detail-top .actions .tn-detail-cart-qty{
    width:80px!important;
    height:50px!important;
    display:grid!important;
    grid-template-columns:24px 28px 24px!important;
    gap:0!important;
    align-items:center!important;
    justify-items:center!important;
    padding:0 2px!important;
    margin:0!important;
    background:#fbf6e9!important;
    border-right:1px solid #eadfc7!important;
    box-sizing:border-box!important;
  }

  .product-detail-top .actions .tn-detail-cart-qty button,
  .product-detail-top .actions .tn-detail-cart-qty input{
    color:#245c37!important;
    font-weight:700!important;
  }

  .product-detail-top .actions .tn-detail-cart-qty button{
    width:24px!important;
    height:32px!important;
    border-radius:5px!important;
  }

  .product-detail-top .actions .tn-detail-cart-qty input{
    width:28px!important;
    height:32px!important;
  }

  .product-detail-top .actions .tn-add-cart-combo .tn-add-cart{
    width:100%!important;
    min-width:0!important;
    height:50px!important;
    min-height:50px!important;
    padding:0 8px!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    white-space:nowrap!important;
    overflow:visible!important;
    font-size:15px!important;
    font-weight:600!important;
    letter-spacing:0!important;
    line-height:1!important;
    border:0!important;
    background:transparent!important;
    box-sizing:border-box!important;
  }

  .product-detail-top .actions .tn-buy-now{
    flex:0 0 120px!important;
    width:120px!important;
    min-width:120px!important;
    height:52px!important;
    min-height:52px!important;
    padding:0 12px!important;
    font-size:14px!important;
    white-space:nowrap!important;
    border-radius:8px!important;
    box-sizing:border-box!important;
  }

  .product-detail-top .actions > .btn.outline{
    flex:1 1 190px!important;
    min-width:180px!important;
    height:52px!important;
    min-height:52px!important;
    padding:0 10px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:13px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    border-radius:8px!important;
    box-sizing:border-box!important;
  }
}


/* ======================================================================
   v1.0.10 — Sản phẩm chưa có giá: vẫn hiện CTA nhưng chuyển sang Liên hệ
   ====================================================================== */
.tn-cart-product-actions.tn-contact-only .tn-add-cart-combo,
.tn-cart-product-actions.tn-contact-only .tn-buy-now{
  cursor:pointer!important;
  position:relative;
}
.tn-cart-product-actions.tn-contact-only .tn-detail-cart-qty,
.tn-cart-product-actions.tn-contact-only .tn-add-cart{
  pointer-events:none!important;
}
.tn-cart-product-actions.tn-contact-only .tn-add-cart-combo{
  border-color:#9aa99f!important;
  background:#f8faf8!important;
}
.tn-cart-product-actions.tn-contact-only .tn-detail-cart-qty{
  opacity:.58!important;
  background:#f2f3ee!important;
  border-right-color:#d9ded8!important;
}
.tn-cart-product-actions.tn-contact-only .tn-add-cart{
  color:#66776b!important;
}
.tn-cart-product-actions.tn-contact-only .tn-buy-now{
  background:#6e8375!important;
  border-color:#6e8375!important;
  color:#fff!important;
}
.tn-cart-product-actions.tn-contact-only .tn-add-cart-combo:hover,
.tn-cart-product-actions.tn-contact-only .tn-add-cart-combo:focus,
.tn-cart-product-actions.tn-contact-only .tn-add-cart-combo:focus-within{
  border-color:#C9A24D!important;
  box-shadow:0 0 0 2px rgba(201,162,77,.12)!important;
}
.tn-cart-product-actions.tn-contact-only .tn-add-cart-combo:hover .tn-add-cart,
.tn-cart-product-actions.tn-contact-only .tn-add-cart-combo:focus .tn-add-cart{
  color:#A98332!important;
}
.tn-cart-product-actions.tn-contact-only .tn-buy-now:hover,
.tn-cart-product-actions.tn-contact-only .tn-buy-now:focus{
  background:#C9A24D!important;
  border-color:#C9A24D!important;
  color:#173824!important;
}


/* ======================================================================
   v1.0.11 — "Liên hệ" trên card sản phẩm chưa có giá
   ====================================================================== */
.tn-card-contact-link{
  cursor:pointer!important;
  text-decoration:none!important;
  transition:color .18s ease, opacity .18s ease!important;
}
.tn-card-contact-link:hover,
.tn-card-contact-link:focus,
.tn-card-contact-link:focus-visible{
  color:#C9A24D!important;
  text-decoration:none!important;
  outline:none!important;
}


/* ======================================================================
   v1.0.12 — ép hover chữ "Liên hệ" trên card, kể cả theme style con
   ====================================================================== */
.tn-card-contact-link:hover,
.tn-card-contact-link:hover *,
.tn-card-contact-link:focus,
.tn-card-contact-link:focus *,
.tn-card-contact-link.is-tn-contact-hover,
.tn-card-contact-link.is-tn-contact-hover *{
  color:#C9A24D!important;
  text-decoration:none!important;
}


/* ======================================================================
   v1.0.13 — Cân lại tỷ lệ 3 nút desktop
   Thu gọn cụm − 1 +, tăng nhẹ chữ Thêm vào giỏ,
   thu gọn Mua ngay / Xem tất cả sản phẩm.
   Chỉ tác động desktop >=1025px.
   ====================================================================== */
@media(min-width:1025px){
  .product-detail-top .actions .tn-add-cart-combo{
    flex:0 0 208px!important;
    width:208px!important;
    min-width:208px!important;
    max-width:208px!important;
    grid-template-columns:66px minmax(0,1fr)!important;
  }

  .product-detail-top .actions .tn-detail-cart-qty{
    width:66px!important;
    grid-template-columns:19px 24px 19px!important;
    padding:0 2px!important;
  }

  .product-detail-top .actions .tn-detail-cart-qty button{
    width:19px!important;
    font-size:17px!important;
  }

  .product-detail-top .actions .tn-detail-cart-qty input{
    width:24px!important;
    font-size:15px!important;
  }

  .product-detail-top .actions .tn-add-cart-combo .tn-add-cart{
    padding:0 9px!important;
    font-size:16px!important;
    font-weight:600!important;
  }

  .product-detail-top .actions .tn-buy-now{
    flex:0 0 110px!important;
    width:110px!important;
    min-width:110px!important;
    padding:0 10px!important;
    font-size:13.5px!important;
  }

  .product-detail-top .actions > .btn.outline{
    flex:0 0 190px!important;
    width:190px!important;
    min-width:190px!important;
    max-width:190px!important;
    padding:0 9px!important;
    font-size:12.5px!important;
  }
}


/* ======================================================================
   v1.0.14 — CHỈ MOBILE: 2 CTA hàng trên + Xem tất cả ở hàng dưới
   [ − 1 + | Thêm vào giỏ ] [ Mua ngay ]
   [          Xem tất cả sản phẩm          ]
   Không tác động tablet >=600px hoặc desktop.
   ====================================================================== */
@media(max-width:599px){
  .product-detail-top .actions{
    display:grid!important;
    grid-template-columns:minmax(0,1.65fr) minmax(100px,1fr)!important;
    gap:10px!important;
    align-items:stretch!important;
    width:100%!important;
  }

  .product-detail-top .actions .tn-cart-product-actions{
    display:contents!important;
    margin:0!important;
  }

  .product-detail-top .actions .tn-add-cart-combo{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:52px!important;
    min-height:52px!important;
    margin:0!important;
    display:grid!important;
    grid-template-columns:62px minmax(0,1fr)!important;
    gap:0!important;
    padding:0!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  .product-detail-top .actions .tn-detail-cart-qty{
    width:62px!important;
    height:50px!important;
    grid-template-columns:18px 24px 18px!important;
    padding:0 1px!important;
    margin:0!important;
    box-sizing:border-box!important;
  }

  .product-detail-top .actions .tn-detail-cart-qty button{
    width:18px!important;
    min-width:18px!important;
    padding:0!important;
    font-size:16px!important;
  }

  .product-detail-top .actions .tn-detail-cart-qty input{
    width:24px!important;
    min-width:24px!important;
    padding:0!important;
    font-size:14px!important;
  }

  .product-detail-top .actions .tn-add-cart-combo .tn-add-cart{
    width:100%!important;
    min-width:0!important;
    height:50px!important;
    min-height:50px!important;
    padding:0 7px!important;
    margin:0!important;
    font-size:14px!important;
    white-space:nowrap!important;
    box-sizing:border-box!important;
  }

  .product-detail-top .actions .tn-buy-now{
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:52px!important;
    min-height:52px!important;
    margin:0!important;
    padding:0 7px!important;
    font-size:13px!important;
    white-space:nowrap!important;
    box-sizing:border-box!important;
  }

  .product-detail-top .actions > .btn.outline{
    grid-column:1 / -1!important;
    grid-row:2!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:48px!important;
    min-height:48px!important;
    margin:0!important;
    padding:0 10px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:13px!important;
    white-space:nowrap!important;
    box-sizing:border-box!important;
  }
}


/* ======================================================================
   v1.0.16 — TINH CHỈNH CTA CHỈ MOBILE (<600px)
   Thu hẹp nút Thêm vào giỏ, nới Mua ngay, cân font 3 nút.
   Tablet/Desktop không thay đổi.
   ====================================================================== */
@media(max-width:599px){
  .product-detail-top .actions{
    grid-template-columns:minmax(0,1.58fr) minmax(118px,.92fr)!important;
    gap:10px!important;
  }

  .product-detail-top .actions .tn-add-cart-combo{
    grid-template-columns:56px minmax(0,1fr)!important;
  }

  .product-detail-top .actions .tn-detail-cart-qty{
    width:56px!important;
    grid-template-columns:17px 22px 17px!important;
    padding:0!important;
  }

  .product-detail-top .actions .tn-detail-cart-qty button{
    width:17px!important;
    min-width:17px!important;
    font-size:15px!important;
    font-weight:700!important;
  }

  .product-detail-top .actions .tn-detail-cart-qty input{
    width:22px!important;
    min-width:22px!important;
    font-size:14px!important;
    font-weight:600!important;
  }

  .product-detail-top .actions .tn-add-cart-combo .tn-add-cart{
    padding:0 8px!important;
    font-size:15px!important;
    font-weight:600!important;
    letter-spacing:0!important;
  }

  .product-detail-top .actions .tn-buy-now{
    padding:0 10px!important;
    font-size:13.5px!important;
    font-weight:700!important;
    letter-spacing:.01em!important;
  }

  .product-detail-top .actions > .btn.outline{
    font-size:13.5px!important;
    font-weight:700!important;
    letter-spacing:.01em!important;
  }
}


/* ======================================================================
   v1.0.17 — MOBILE: khoảng thở cụm số lượng + vạch phân cách
   Chỉ <600px. Tablet/Desktop giữ nguyên.
   [ − 1 + | Thêm vào giỏ ]
   ====================================================================== */
@media(max-width:599px){
  .product-detail-top .actions .tn-add-cart-combo{
    grid-template-columns:64px minmax(0,1fr)!important;
  }

  .product-detail-top .actions .tn-detail-cart-qty{
    width:64px!important;
    grid-template-columns:18px 20px 18px!important;
    gap:0!important;
    padding:0 4px!important;
    box-sizing:border-box!important;
    border-right:1px solid rgba(36,92,55,.24)!important;
  }

  .product-detail-top .actions .tn-detail-cart-qty button{
    width:18px!important;
    min-width:18px!important;
  }

  .product-detail-top .actions .tn-detail-cart-qty input{
    width:20px!important;
    min-width:20px!important;
  }

  .product-detail-top .actions .tn-add-cart-combo .tn-add-cart{
    padding-left:10px!important;
    padding-right:9px!important;
  }
}


/* ======================================================================
   v1.0.19 — MULTIPLE COUPON THEO SẢN PHẨM
   ====================================================================== */
.tn-cart-coupon-list{display:grid;gap:7px;margin:8px 0 2px}
.tn-cart-coupon-item{border:1px solid #dfe4dd;border-radius:8px;padding:8px 9px;background:#fafbf8}
.tn-cart-coupon-item-head{display:flex;align-items:center;gap:8px;color:#245c37;font-size:12px}
.tn-cart-coupon-item-head b{letter-spacing:.035em}
.tn-cart-coupon-item-head strong{margin-left:auto;color:#a43a32}
.tn-cart-coupon-remove{width:22px;height:22px;border:0;border-radius:50%;background:transparent;color:#7a817b;font-size:18px;line-height:1;cursor:pointer;padding:0}
.tn-cart-coupon-remove:hover{background:#f1eee4;color:#9b4a42}
.tn-cart-coupon-item small{display:block;margin-top:4px;color:#697169;font-size:11px;line-height:1.4}
.tn-cart-coupon-item.is-applied{border-color:rgba(36,92,55,.28);background:#f7fbf7}
.tn-cart-coupon-item.is-applied .tn-cart-coupon-item-head b{color:#245c37}
.tn-cart-coupon-item.is-error{border-color:rgba(164,58,50,.25);background:#fff8f7}
.tn-cart-coupon-item.is-error small{color:#a43a32}
.tn-cart-coupon-item.is-shadowed{border-color:rgba(201,162,77,.38);background:#fffaf0}
.tn-cart-coupon-item.is-shadowed small{color:#8b6b26}
.tn-cart-coupon-discounts{margin-top:4px}
.tn-cart-code-discount{padding:5px 0!important;font-size:12px!important}
.tn-cart-code-discount span{display:grid;gap:2px;min-width:0}
.tn-cart-code-discount span b{color:#245c37;font-size:12px}
.tn-cart-code-discount span small{color:#747b75;font-size:10.5px;max-width:285px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tn-cart-code-discount strong{color:#a43a32}
@media(max-width:599px){.tn-cart-coupon-item{padding:8px}.tn-cart-code-discount span small{max-width:220px}}

/* ======================================================================
   v1.0.21 — MÃ ƯU ĐÃI THEO TỪNG SẢN PHẨM + MÃ TOÀN ĐƠN RIÊNG
   ====================================================================== */
.tn-cart-item-coupon{
  grid-column:2 / -1;
  margin-top:-2px;
  padding:9px 0 2px;
  border-top:1px dashed #e5e5dc;
}
.tn-cart-item-coupon-title,
.tn-cart-order-coupon-title{
  color:#245c37;
  font-size:11.5px;
  font-weight:700;
  line-height:1.35;
  margin-bottom:6px;
}
.tn-cart-item-coupon-row,
.tn-cart-order-coupon-block .tn-cart-coupon-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px;
  align-items:stretch;
}
.tn-cart-product-coupon-input,
.tn-cart-order-coupon-input{
  width:100%;
  min-width:0;
  height:36px;
  border:1px solid #d9ded8;
  border-radius:7px;
  padding:0 10px;
  background:#fff;
  color:#26352b;
  font:500 12px/1.2 Arial,sans-serif;
  box-sizing:border-box;
  outline:0;
}
.tn-cart-product-coupon-input:focus,
.tn-cart-order-coupon-input:focus{
  border-color:#7ca188;
  box-shadow:0 0 0 2px rgba(36,92,55,.07);
}
.tn-cart-product-coupon-apply,
.tn-cart-order-apply{
  min-width:76px;
  height:36px;
  border:0;
  border-radius:7px;
  padding:0 10px;
  background:#d5ae57;
  color:#183a25;
  font:700 11px/1 Arial,sans-serif;
  white-space:nowrap;
  cursor:pointer;
}
.tn-cart-product-coupon-apply:hover,
.tn-cart-order-apply:hover{
  background:#c9a24d;
}
.tn-cart-product-coupon-result,
.tn-cart-order-coupon-result{
  margin-top:6px;
}
.tn-cart-product-coupon-result:empty,
.tn-cart-order-coupon-result:empty{
  display:none;
}
.tn-cart-order-coupon-block{
  margin:15px 0 8px;
  padding:12px;
  border:1px solid #e4e5dc;
  border-radius:9px;
  background:#fffaf0;
}
.tn-cart-order-coupon-title{
  margin-bottom:2px;
  font-size:12px;
}
.tn-cart-order-coupon-note{
  margin:0 0 8px;
  color:#7b7e76;
  font-size:10.5px;
  line-height:1.35;
}
.tn-cart-item-coupon .tn-cart-coupon-item,
.tn-cart-order-coupon-result .tn-cart-coupon-item{
  margin:0;
  padding:7px 8px;
}
.tn-cart-item-coupon .tn-cart-coupon-item-head,
.tn-cart-order-coupon-result .tn-cart-coupon-item-head{
  font-size:11px;
}
.tn-cart-item-coupon .tn-cart-coupon-item small,
.tn-cart-order-coupon-result .tn-cart-coupon-item small{
  font-size:10.5px;
}
.tn-cart-product-coupon-remove,
.tn-cart-order-coupon-remove{
  width:22px;
  height:22px;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#7a817b;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  padding:0;
}
.tn-cart-product-coupon-remove:hover,
.tn-cart-order-coupon-remove:hover{
  background:#f1eee4;
  color:#9b4a42;
}
@media(max-width:599px){
  .tn-cart-item-coupon{
    grid-column:1 / -1;
    margin-top:2px;
    padding-top:9px;
  }
  .tn-cart-product-coupon-input,
  .tn-cart-order-coupon-input{
    height:38px;
    font-size:12px;
  }
  .tn-cart-product-coupon-apply,
  .tn-cart-order-apply{
    height:38px;
    min-width:72px;
  }
  .tn-cart-order-coupon-block{
    padding:10px;
  }
}


/* ======================================================================
   v1.0.25 — FIX CTA RIÊNG TABLET 600–1024px
   Hàng 1: [ − 1 + | Thêm vào giỏ ] [ Mua ngay ] theo tỷ lệ ~62/38.
   Hàng 2: [ Xem tất cả sản phẩm ] full width.
   Mobile <600 và Desktop >=1024 giữ nguyên.
   ====================================================================== */
@media (min-width:600px) and (max-width:1024px){
  body.single-tn_product .product-detail-top .actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
    align-items:stretch!important;
    width:100%!important;
  }

  body.single-tn_product .product-detail-top .actions .tn-cart-product-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1.65fr) minmax(112px,1fr)!important;
    gap:10px!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }

  body.single-tn_product .product-detail-top .actions .tn-add-cart-combo{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:50px!important;
    min-height:50px!important;
    grid-template-columns:68px minmax(0,1fr)!important;
    gap:0!important;
    padding:0!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  body.single-tn_product .product-detail-top .actions .tn-detail-cart-qty{
    width:68px!important;
    height:48px!important;
    grid-template-columns:20px 24px 20px!important;
    gap:0!important;
    padding:0 2px!important;
    border-right:1px solid rgba(36,92,55,.20)!important;
    box-sizing:border-box!important;
  }

  body.single-tn_product .product-detail-top .actions .tn-detail-cart-qty button{
    width:20px!important;
    min-width:20px!important;
    font-size:16px!important;
  }

  body.single-tn_product .product-detail-top .actions .tn-detail-cart-qty input{
    width:24px!important;
    min-width:24px!important;
    font-size:14px!important;
  }

  body.single-tn_product .product-detail-top .actions .tn-add-cart-combo .tn-add-cart{
    width:100%!important;
    min-width:0!important;
    height:48px!important;
    min-height:48px!important;
    padding:0 8px!important;
    font-size:14px!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    justify-content:center!important;
    box-sizing:border-box!important;
  }

  body.single-tn_product .product-detail-top .actions .tn-buy-now{
    width:100%!important;
    min-width:112px!important;
    max-width:none!important;
    height:50px!important;
    min-height:50px!important;
    padding:0 8px!important;
    font-size:13px!important;
    white-space:nowrap!important;
    box-sizing:border-box!important;
  }

  body.single-tn_product .product-detail-top .actions > .btn.outline{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:48px!important;
    min-height:48px!important;
    margin:0!important;
    padding:0 10px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:13px!important;
    white-space:nowrap!important;
    box-sizing:border-box!important;
  }
}


/* v1.0.27 - trạng thái sau khi gửi đơn thành công */
.tn-cart-empty.is-success{
  color:#1f5f3a;
  background:#f2f8f3;
  border:1px solid #cfe3d4;
  border-radius:10px;
  padding:14px 16px;
  font-weight:600;
  line-height:1.5;
}


/* ======================================================================
   v1.0.31 — Xác nhận đơn sau khi gửi + ĐẶT THÊM HÀNG
   ====================================================================== */
.tn-cart-new-order{
  width:100%;
  margin-top:9px;
  padding:11px 15px;
  border:1px solid #245c37;
  border-radius:8px;
  background:#fff;
  color:#245c37;
  font-weight:700;
  letter-spacing:.025em;
  cursor:pointer;
}
.tn-cart-new-order:hover{background:#f3f7f2}
.tn-cart-new-order[hidden]{display:none!important}

.tn-cart-submit-msg.is-ok{
  margin-top:10px;
  padding:11px 12px;
  border:1px solid #cfe1d3;
  border-radius:8px;
  background:#f1f7f2;
  color:#245c37;
  font-weight:600;
  line-height:1.45;
}

.tn-cart-drawer.is-submitted .tn-cart-submit{
  opacity:1;
  cursor:default;
  background:#e9f0ea;
  color:#245c37;
  border:1px solid #c8d8cb;
}
.tn-cart-drawer.is-submitted .tn-cart-qty,
.tn-cart-drawer.is-submitted .tn-cart-item-coupon,
.tn-cart-drawer.is-submitted .tn-cart-order-coupon-block,
.tn-cart-drawer.is-submitted .tn-cart-customer{opacity:.84}
.tn-cart-drawer.is-submitted .tn-cart-remove{color:#9b9f9a;cursor:default}
.tn-cart-drawer.is-submitted input[readonly],
.tn-cart-drawer.is-submitted textarea[readonly]{background:#f8f8f4;color:#465149;cursor:default}


/* v1.0.33 — field Địa chỉ trong thông tin khách hàng */
.tn-cart-address-label{display:block;}
.tn-cart-address{min-height:58px;resize:vertical;}


/* ======================================================================
   v1.0.34 — FORM KHÁCH HÀNG GỌN THEO CHIỀU DỌC
   Dấu * cùng dòng label; giữ nguyên kích thước ô nhập.
   ====================================================================== */
.tn-cart-customer{
  gap:7px!important;
}

.tn-cart-customer label{
  display:block!important;
  margin:0!important;
  color:#425046;
  font-size:13px;
  line-height:1.3!important;
}

.tn-cart-customer label > span{
  display:inline!important;
  margin-left:2px!important;
  color:#a43a32;
  line-height:inherit!important;
}

.tn-cart-customer label > input,
.tn-cart-customer label > textarea{
  display:block!important;
  margin-top:4px!important;
  margin-bottom:0!important;
}

/* Không cho các rule cũ đẩy dấu bắt buộc xuống một hàng riêng */
.tn-cart-customer label > span + input,
.tn-cart-customer label > span + textarea{
  margin-top:4px!important;
}

@media(max-width:599px){
  .tn-cart-customer{gap:6px!important;}
  .tn-cart-customer label > input,
  .tn-cart-customer label > textarea{margin-top:3px!important;}
}

/* v1.0.43 — Header Cart consolidated for production. */
.tn-cart-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.tn-cart-turnstile{margin-top:12px;min-height:1px}
.tn-cart-toast-only{pointer-events:none}

.tn-cart-fab-icon{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;line-height:0;flex:0 0 19px}
.tn-cart-fab-icon svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.tn-header-actions .tn-cart-header-trigger{position:relative;right:auto;bottom:auto;z-index:auto;height:38px;padding:0 8px;border-radius:7px;box-shadow:none;background:transparent;color:#fff7e4;border:1px solid rgba(255,247,228,.32)}
.tn-header-actions .tn-cart-header-trigger:hover{transform:none;background:rgba(255,255,255,.08);color:#f4a719;border-color:rgba(244,167,25,.55)}
.tn-header-actions .tn-cart-header-trigger .tn-cart-fab-label{display:none}
.tn-header-actions .tn-cart-header-trigger .tn-cart-fab-icon{width:18px;height:18px;flex-basis:18px}
.tn-header-actions .tn-cart-header-trigger .tn-cart-fab-icon svg{width:18px;height:18px}
.tn-header-actions .tn-cart-header-trigger .tn-cart-count{min-width:18px;height:18px;padding:0 4px;font-size:10px}

/* Mobile: đối xứng hamburger 44×44. */
@media (max-width:599px){
  .header .tn-header-actions{height:44px!important;align-self:center!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;overflow:visible!important}
  .header .tn-header-actions .tn-cart-header-trigger{position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;margin:0!important;transform:none!important;align-self:center!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;border:1px solid rgba(255,255,255,.35)!important;border-radius:9px!important;background:rgba(255,255,255,.08)!important;box-shadow:none!important}
  .header .tn-header-actions .tn-cart-header-trigger .tn-cart-fab-icon{width:23px!important;height:23px!important;flex:0 0 23px!important;margin:0!important}
  .header .tn-header-actions .tn-cart-header-trigger .tn-cart-fab-icon svg{width:23px!important;height:23px!important;stroke-width:2!important}
  .header .tn-header-actions .tn-cart-header-trigger .tn-cart-count{position:absolute!important;right:-4px!important;top:-4px!important;min-width:19px!important;width:auto!important;height:19px!important;padding:0 4px!important;margin:0!important;line-height:19px!important;font-size:10px!important;font-weight:700!important;transform:none!important;z-index:2!important;box-shadow:0 2px 7px rgba(0,0,0,.18)!important}
}

/* Tablet: 44px hit target; nhẹ hơn desktop/mobile về thị giác. */
@media (min-width:600px) and (max-width:1024px){
  .header .tn-header-actions{align-self:center!important;justify-self:end!important;overflow:visible!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;display:flex!important;align-items:center!important;justify-content:center!important}
  .header .tn-header-actions .tn-cart-header-trigger{position:relative!important;top:0!important;right:0!important;bottom:auto!important;left:auto!important;margin:0!important;transform:none!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;border:1px solid rgba(255,247,228,.24)!important;border-radius:9px!important;background:rgba(255,255,255,.035)!important;color:#fff7e4!important;box-shadow:none!important;z-index:auto!important}
  .header .tn-header-actions .tn-cart-header-trigger:hover{transform:none!important;background:rgba(255,255,255,.07)!important;border-color:rgba(244,167,25,.42)!important}
  .header .tn-header-actions .tn-cart-header-trigger .tn-cart-fab-label{display:none!important}
  .header .tn-header-actions .tn-cart-header-trigger .tn-cart-fab-icon{width:20px!important;height:20px!important;flex:0 0 20px!important;margin:0!important;transform:none!important}
  .header .tn-header-actions .tn-cart-header-trigger .tn-cart-fab-icon svg{width:20px!important;height:20px!important;stroke-width:1.8!important}
  .header .tn-header-actions .tn-cart-header-trigger .tn-cart-count{position:absolute!important;top:3px!important;right:3px!important;min-width:16px!important;width:auto!important;height:16px!important;line-height:16px!important;padding:0 4px!important;margin:0!important;border-radius:999px!important;background:#d5ae57!important;color:#173824!important;font-size:8.5px!important;font-weight:700!important;text-align:center!important;transform:none!important;box-shadow:none!important;z-index:2!important}
}

/* iPad Pro / tablet lớn: visual button 40×40 bên trong slot 44×44. */
@media (min-width:900px) and (max-width:1024px){
  .header .tn-header-actions .tn-cart-header-trigger{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;border-color:rgba(255,247,228,.20)!important;border-radius:8px!important;background:rgba(255,255,255,.025)!important}
  .header .tn-header-actions .tn-cart-header-trigger .tn-cart-fab-icon{width:19px!important;height:19px!important;flex:0 0 19px!important}
  .header .tn-header-actions .tn-cart-header-trigger .tn-cart-fab-icon svg{width:19px!important;height:19px!important;stroke-width:1.75!important}
  .header .tn-header-actions .tn-cart-header-trigger .tn-cart-count{top:2px!important;right:2px!important;min-width:15px!important;height:15px!important;line-height:15px!important;font-size:8px!important}
}

