/*
 * MCTK Emerald Cyber Luxury — Single Product Detail (v3.9.0)
 * Loaded CONDITIONALLY only on Single Product pages (0 bytes elsewhere).
 * Clean top-to-bottom layout (ZERO sidebar widgets), overrides legacy style.css/compat.css
 * cleanly, preserves existing 3 Contact Buttons (mctk-support-v4), 4 Trust Badges,
 * Variation Option Cards (with radio + price + checkmark) & Review MH v1.9.1.
 */

/* ===== 1. FULL-WIDTH TOP-TO-BOTTOM CONTAINER (NO SIDEBAR WIDGETS) ===== */
body.single-product.mctk-single-emerald .product-container{
  max-width:1320px;
  margin-left:auto;
  margin-right:auto;
  padding-top:14px;
}
body.single-product.mctk-single-emerald .product-sidebar,
body.single-product.mctk-single-emerald #product-sidebar{
  display:none!important;
}
body.single-product.mctk-single-emerald .product-main{
  padding-top:12px;
  padding-bottom:22px;
}
body.single-product.mctk-single-emerald .product-main > .row{
  background:#fff;
  border:1px solid var(--mcx-line);
  border-radius:20px;
  padding:26px 22px;
  box-shadow:var(--mcx-shadow-sm);
  margin-left:0;
  margin-right:0;
  align-items:flex-start;
}

/* Gallery Left */
body.single-product.mctk-single-emerald .product-gallery{
  padding-bottom:0;
}
body.single-product.mctk-single-emerald .product-gallery .product-images,
body.single-product.mctk-single-emerald .product-gallery .woocommerce-product-gallery__image{
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--mcx-line);
  background:var(--mcx-canvas);
}

/* Summary Right (NO extra category pill above H1) */
body.single-product.mctk-single-emerald .product-info{
  padding-top:2px;
  padding-bottom:4px;
}
body.single-product.mctk-single-emerald .product-info h1.product-title,
body.single-product.mctk-single-emerald .product-info h1.entry-title{
  font-family:var(--mcx-heading)!important;
  font-size:clamp(24px,2.4vw,32px)!important;
  font-weight:800!important;
  line-height:1.22!important;
  letter-spacing:-.03em!important;
  color:var(--mcx-ink)!important;
  margin:0 0 10px!important;
}
body.single-product.mctk-single-emerald .product-info .is-divider{
  display:none!important;
}

/* Social Proof Row: ★★★★★ 5.0 / 5 · [Review Icon] 61 đánh giá · [Flame Icon] Đã bán 849 */
body.single-product.mctk-single-emerald .product-info .woocommerce-product-rating.ktk-single-social-proof{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:6px 10px!important;
  margin:0 0 14px!important;
  padding:0!important;
  font-size:13.5px!important;
  line-height:1.45!important;
  color:var(--mcx-muted)!important;
}
body.single-product.mctk-single-emerald .ktk-single-rating-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
body.single-product.mctk-single-emerald .ktk-single-social-proof .mctk-gold-stars,
body.single-product.mctk-single-emerald .ktk-single-social-proof .mctk-gold-stars-fill{
  color:#f59e0b!important;
  font-size:15.5px!important;
}
body.single-product.mctk-single-emerald .ktk-single-rating-score{
  font-family:var(--mcx-heading)!important;
  font-weight:800!important;
  font-size:14px!important;
  color:var(--mcx-ink)!important;
  font-variant-numeric:tabular-nums;
}
body.single-product.mctk-single-emerald .ktk-single-sep{
  color:#cbd5e1!important;
  font-weight:700;
}
body.single-product.mctk-single-emerald .ktk-single-review-link,
body.single-product.mctk-single-emerald .ktk-single-review-count{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  padding:3px 9px!important;
  border-radius:999px!important;
  background:#ecfdf5!important;
  border:1px solid #d1fae5!important;
  color:#047857!important;
  font-size:13px!important;
  font-weight:600!important;
  text-decoration:none!important;
  transition:background .15s,border-color .15s;
}
body.single-product.mctk-single-emerald .ktk-single-review-link:hover{
  background:#d1fae5!important;
  border-color:#6ee7b7!important;
  color:#065f46!important;
}
body.single-product.mctk-single-emerald .ktk-single-sold{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  padding:3px 9px!important;
  border-radius:999px!important;
  background:#fff7ed!important;
  border:1px solid #fed7aa!important;
  color:#c2410c!important;
  font-size:13px!important;
  font-weight:700!important;
}
body.single-product.mctk-single-emerald .ktk-sp-ico{
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
}
body.single-product.mctk-single-emerald .ktk-sp-ico--review{color:#059669!important}
body.single-product.mctk-single-emerald .ktk-sp-ico--sold{color:#ea580c!important}

/* Price + Discount Pill (overrides style.css 22px !important) */
body.single-product.mctk-single-emerald .product-info .price-wrapper{
  margin:0 0 14px!important;
}
body.single-product.mctk-single-emerald .product-info .price,
body.single-product.mctk-single-emerald .product-info .price-wrapper .price,
body.single-product.mctk-single-emerald .product-info .price.product-page-price{
  display:inline-flex!important;
  align-items:baseline!important;
  flex-wrap:wrap!important;
  gap:6px 10px!important;
  font-family:var(--mcx-heading)!important;
  font-size:clamp(25px,2.5vw,32px)!important;
  font-weight:800!important;
  color:var(--mcx-green-dark)!important;
  margin:0!important;
  line-height:1.2!important;
}
body.single-product.mctk-single-emerald .product-info .price > .amount,
body.single-product.mctk-single-emerald .product-info .price ins,
body.single-product.mctk-single-emerald .product-info .price ins .amount,
body.single-product.mctk-single-emerald .product-info .price ins bdi{
  color:var(--mcx-green-dark)!important;
  font-weight:800!important;
  text-decoration:none!important;
}
body.single-product.mctk-single-emerald .product-info .price del,
body.single-product.mctk-single-emerald .product-info .price del .amount,
body.single-product.mctk-single-emerald .product-info .price del bdi{
  font-size:16px!important;
  font-weight:500!important;
  color:#94a3b8!important;
  opacity:1!important;
}
body.single-product.mctk-single-emerald .mcx-sale-pct{
  display:inline-flex;
  align-items:center;
  padding:3px 10px;
  border-radius:999px;
  background:#fee2e2;
  color:#dc2626;
  font-family:var(--mcx-heading);
  font-size:12.5px;
  font-weight:800;
  line-height:1.25;
  vertical-align:middle;
}

/* Short Description */
body.single-product.mctk-single-emerald .product-short-description{
  font-size:14px;
  line-height:1.72;
  color:var(--mcx-muted);
  margin-bottom:14px;
}
body.single-product.mctk-single-emerald .product-short-description p{
  margin:0 0 10px;
}

/* Variation Option Cards (overrides legacy style.css & compat.css solid-green) */
body.single-product.mctk-single-emerald table.variations{
  margin-bottom:14px!important;
}
body.single-product.mctk-single-emerald table.variations td.label{
  display:block!important;
  padding:0 0 7px!important;
}
body.single-product.mctk-single-emerald table.variations td.label label{
  font-family:var(--mcx-heading)!important;
  font-size:13.5px!important;
  font-weight:700!important;
  color:var(--mcx-ink)!important;
}
body.single-product.mctk-single-emerald table.variations td.value{
  display:block!important;
  padding:0 0 10px!important;
}
body.single-product.mctk-single-emerald .hita-variation-buttons{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:9px!important;
}
body.single-product.mctk-single-emerald .hita-variation-buttons--priced{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(148px,1fr))!important;
  gap:10px!important;
}
body.single-product.mctk-single-emerald .hita-variation-buttons .hita-variation-btn{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:9px!important;
  min-height:46px!important;
  padding:10px 14px!important;
  border-radius:12px!important;
  border:1.5px solid var(--mcx-line-strong)!important;
  background:#fff!important;
  color:var(--mcx-ink)!important;
  font-family:var(--mcx-heading)!important;
  font-size:13px!important;
  font-weight:700!important;
  text-align:left!important;
  box-shadow:none!important;
  transition:border-color .15s,background .15s,color .15s,box-shadow .15s!important;
}
body.single-product.mctk-single-emerald .hita-variation-buttons .hita-variation-btn--priced{
  width:100%!important;
  padding:11px 30px 11px 12px!important;
  min-height:58px!important;
}
body.single-product.mctk-single-emerald .hita-var-radio{
  width:16px;
  height:16px;
  flex:0 0 16px;
  border-radius:50%;
  border:2px solid #cbd5e1;
  background:#fff;
  transition:border-color .15s,box-shadow .15s;
}
body.single-product.mctk-single-emerald .hita-var-body{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
body.single-product.mctk-single-emerald .hita-var-top{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px;
}
body.single-product.mctk-single-emerald .hita-var-label{
  font-size:13.5px;
  font-weight:700;
  color:var(--mcx-ink);
  line-height:1.25;
}
body.single-product.mctk-single-emerald .hita-var-pct{
  display:inline-flex;
  align-items:center;
  padding:1px 6px;
  border-radius:999px;
  background:#dcfce7;
  color:#047857;
  font-size:10.5px;
  font-weight:800;
  line-height:1.3;
}
body.single-product.mctk-single-emerald .hita-var-price{
  font-size:12.5px;
  font-weight:700;
  color:var(--mcx-green-dark);
  font-variant-numeric:tabular-nums;
}
body.single-product.mctk-single-emerald .hita-variation-buttons .hita-variation-btn:not(.is-disabled):not(:disabled):hover{
  border-color:var(--mcx-green)!important;
  background:var(--mcx-emerald-50)!important;
  color:var(--mcx-green-dark)!important;
}
body.single-product.mctk-single-emerald .hita-variation-buttons .hita-variation-btn.is-selected:not(.is-disabled):not(:disabled){
  border-color:var(--mcx-green)!important;
  background:var(--mcx-emerald-50)!important;
  color:var(--mcx-green-dark)!important;
  box-shadow:0 0 0 2px rgba(5,150,105,.18)!important;
  padding-right:32px!important;
}
body.single-product.mctk-single-emerald .hita-variation-buttons .hita-variation-btn.is-selected:not(.is-disabled):not(:disabled) .hita-var-radio{
  border-color:var(--mcx-green);
  box-shadow:inset 0 0 0 3px #fff;
  background:var(--mcx-green);
}
body.single-product.mctk-single-emerald .hita-variation-buttons .hita-variation-btn.is-selected:not(.is-disabled):not(:disabled) .hita-var-label{
  color:#065f46;
}
body.single-product.mctk-single-emerald .hita-variation-buttons .hita-variation-btn.is-selected:not(.is-disabled):not(:disabled)::after{
  content:"✓";
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:17px;
  height:17px;
  border-radius:50%;
  background:var(--mcx-green);
  color:#fff;
  font-size:10px;
  font-weight:800;
  display:grid;
  place-items:center;
}

/* Quantity + Add to Cart + Buy Now Row */
body.single-product.mctk-single-emerald .product-info form.cart .single_add_to_cart_button{
  min-height:48px!important;
  height:48px!important;
  border-radius:11px!important;
  background:linear-gradient(135deg,var(--mcx-green),var(--mcx-green-dark))!important;
  border-color:var(--mcx-green)!important;
  font-family:var(--mcx-heading)!important;
  font-size:14px!important;
  font-weight:700!important;
  letter-spacing:0!important;
  text-transform:none!important;
  box-shadow:var(--mcx-shadow-emerald)!important;
}
body.single-product.mctk-single-emerald .product-info form.cart .ux-buy-now-button,
body.single-product.mctk-single-emerald .product-info form.cart .buy_now_button{
  min-height:48px!important;
  height:48px!important;
  border-radius:11px!important;
  background:linear-gradient(135deg,#ef4444,#dc2626)!important;
  border-color:#dc2626!important;
  font-family:var(--mcx-heading)!important;
  font-size:14px!important;
  font-weight:700!important;
  letter-spacing:0!important;
  text-transform:none!important;
}

/* 4 Trust Badges Harmonized */
body.single-product.mctk-single-emerald .ktk-trust-badges-row{
  border-radius:14px!important;
  border-color:var(--mcx-line)!important;
  background:var(--mcx-canvas)!important;
}
body.single-product.mctk-single-emerald .ktk-trust-icon{
  color:var(--mcx-green)!important;
  background:var(--mcx-emerald-50)!important;
}

/* ===== 2. PRODUCT DESCRIPTION CARD (TOP-TO-BOTTOM FLOW, ZERO WIDGETS) ===== */
body.single-product.mctk-single-emerald .product-footer{
  max-width:1320px;
  margin:0 auto;
}
body.single-product.mctk-single-emerald .woocommerce-tabs,
body.single-product.mctk-single-emerald .product-section{
  background:#fff;
  border:1px solid var(--mcx-line);
  border-radius:18px;
  padding:26px 28px;
  margin:0 0 22px;
  box-shadow:var(--mcx-shadow-sm);
}
body.single-product.mctk-single-emerald .woocommerce-tabs ul.tabs,
body.single-product.mctk-single-emerald .woocommerce-tabs .product-tabs{
  margin:0 0 18px;
  padding:0 0 12px;
  border-bottom:1px solid var(--mcx-line);
}
body.single-product.mctk-single-emerald .woocommerce-tabs ul.tabs li a{
  padding:9px 18px;
  border-radius:10px;
  font-family:var(--mcx-heading);
  font-size:14px;
  font-weight:700;
  text-transform:none;
  letter-spacing:0;
}
body.single-product.mctk-single-emerald .woocommerce-tabs ul.tabs li.active a{
  background:linear-gradient(135deg,var(--mcx-green),var(--mcx-green-dark));
  color:#fff!important;
}
body.single-product.mctk-single-emerald .woocommerce-tabs .panel{
  font-size:14.5px;
  line-height:1.8;
  color:var(--mcx-ink-2);
}
body.single-product.mctk-single-emerald .woocommerce-tabs .panel h2{
  position:relative;
  padding-left:14px;
  font-size:20px;
  font-weight:800;
  color:var(--mcx-ink);
  margin:22px 0 12px;
}
body.single-product.mctk-single-emerald .woocommerce-tabs .panel h2::before{
  content:"";
  position:absolute;
  left:0;
  top:4px;
  bottom:4px;
  width:4px;
  border-radius:4px;
  background:var(--mcx-green);
}
/* Safe clean emerald bullet styling that never breaks nested lists or custom blocks */
body.single-product.mctk-single-emerald .woocommerce-tabs .panel > ul{
  list-style:none;
  padding:14px 18px;
  margin:10px 0 16px;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:8px 20px;
}
body.single-product.mctk-single-emerald .woocommerce-tabs .panel > ul > li{
  position:relative;
  padding-left:24px;
  margin:0;
}
body.single-product.mctk-single-emerald .woocommerce-tabs .panel > ul > li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:4px;
  width:17px;
  height:17px;
  border-radius:50%;
  background:var(--mcx-emerald-100);
  color:var(--mcx-green-dark);
  font-size:10.5px;
  font-weight:800;
  display:grid;
  place-items:center;
  line-height:1;
}

/* ===== 3. REVIEW MH SECTION — card styling now lives in wordpress-review-mh v1.9.2 (mctk-emerald-sync.css) ===== */

/* ===== 4. CLASSIC PRODUCT FAQ ACCORDION (ONLY PRESENT WHEN POPULATED) ===== */
.mcx-single-faq-wrap{margin:0 0 22px}
.mcx-pfaq{
  background:#fff;
  border:1px solid var(--mcx-line);
  border-radius:18px;
  padding:24px 28px;
  box-shadow:var(--mcx-shadow-sm);
}
.mcx-pfaq-head{margin:0 0 16px}
.mcx-pfaq-title{
  position:relative;
  padding-left:14px;
  margin:0;
  font-family:var(--mcx-heading);
  font-size:20px;
  font-weight:800;
  color:var(--mcx-ink);
  line-height:1.3;
}
.mcx-pfaq-title::before{
  content:"";
  position:absolute;
  left:0;
  top:3px;
  bottom:3px;
  width:4px;
  border-radius:4px;
  background:var(--mcx-green);
}
.mcx-pfaq-list{display:flex;flex-direction:column;gap:10px}
.mcx-pfaq-item{
  border:1px solid var(--mcx-line);
  border-radius:12px;
  background:var(--mcx-canvas);
  overflow:hidden;
  transition:border-color .16s,background .16s;
}
.mcx-pfaq-item[open]{background:#fff;border-color:var(--mcx-emerald-200)}
.mcx-pfaq-q{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  font-family:var(--mcx-heading);
  font-size:14.5px;
  font-weight:700;
  color:var(--mcx-ink);
  cursor:pointer;
  list-style:none;
}
.mcx-pfaq-q::-webkit-details-marker{display:none}
.mcx-faq-chev{display:inline-flex;flex:0 0 auto;color:var(--mcx-green);transition:transform .18s ease}
.mcx-pfaq-item[open] > .mcx-pfaq-q .mcx-faq-chev{transform:rotate(180deg)}
.mcx-pfaq-a{padding:0 16px 15px;font-size:14px;line-height:1.75;color:var(--mcx-muted)}
.mcx-pfaq-a p{margin:0 0 8px}
.mcx-pfaq-a p:last-child{margin-bottom:0}

/* ===== 5. RELATED PRODUCTS (4 COLUMNS CLEAN — FIXES LEGACY style.css .product-small) ===== */
body.single-product.mctk-single-emerald .related.related-products-wrapper{
  background:#fff;
  border:1px solid var(--mcx-line);
  border-radius:18px;
  padding:24px 24px 18px;
  margin:0 0 24px;
  box-shadow:var(--mcx-shadow-sm);
}
body.single-product.mctk-single-emerald .related-products-wrapper .product-section-title{
  font-family:var(--mcx-heading);
  font-size:20px;
  font-weight:800;
  letter-spacing:-.02em;
  text-transform:none;
  color:var(--mcx-ink);
  margin:0 0 18px;
}
body.single-product.mctk-single-emerald .related .product-small .price::before{
  content:none!important;
  display:none!important;
}
body.single-product.mctk-single-emerald .related .product-small .price{
  font-size:16px!important;
  gap:4px 8px!important;
}
body.single-product.mctk-single-emerald .related .product-small .price del{
  display:inline-block!important;
  width:auto!important;
  flex-basis:auto!important;
  margin-top:0!important;
}
body.single-product.mctk-single-emerald .related .ktk-grid-social-proof{
  gap:4px 8px!important;
  font-size:12px!important;
}
body.single-product.mctk-single-emerald .related .ktk-grid-rating-wrap{
  display:inline-flex;
  align-items:center;
  gap:4px;
}
body.single-product.mctk-single-emerald .related .ktk-grid-rating{
  margin-right:0!important;
  padding-left:0!important;
}
body.single-product.mctk-single-emerald .related .ktk-grid-sold{
  display:inline-flex!important;
  align-items:center!important;
  gap:3px!important;
  color:#475569!important;
}

/* ===== RESPONSIVE ===== */
@media(max-width:849px){
  body.single-product.mctk-single-emerald .product-main > .row{
    padding:16px 12px;
    border-radius:16px;
  }
  body.single-product.mctk-single-emerald .woocommerce-tabs,
  body.single-product.mctk-single-emerald #mctk-reviews-section,
  body.single-product.mctk-single-emerald .wp-review-mh,
  .mcx-pfaq,
  body.single-product.mctk-single-emerald .related.related-products-wrapper{
    padding:18px 14px;
    border-radius:14px;
  }
}

/* =====================================================================
 * v4.0.0 — MOCKUP-ACCURATE POLISH + MULTI-DEVICE RESPONSIVE (Desktop / Tablet / Mobile / Zalo & Cốc Cốc in-app)
 * ===================================================================== */

/* In-page anchor nav (Mô tả chi tiết · Đánh giá (N) · Câu hỏi thường gặp) */
.mcx-sp-anchors{
  display:flex;
  align-items:center;
  gap:6px;
  margin:0 0 14px;
  padding:6px;
  background:#fff;
  border:1px solid var(--mcx-line);
  border-radius:14px;
  box-shadow:var(--mcx-shadow-sm);
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.mcx-sp-anchors::-webkit-scrollbar{display:none}
.mcx-sp-anchor{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 18px;
  border-radius:10px;
  font-family:var(--mcx-heading);
  font-size:13.5px;
  font-weight:700;
  color:var(--mcx-ink-2)!important;
  white-space:nowrap;
  text-decoration:none!important;
  transition:background .15s,color .15s;
}
.mcx-sp-anchor:hover{background:var(--mcx-emerald-50);color:var(--mcx-green-dark)!important}
.mcx-sp-anchor.is-active{background:linear-gradient(135deg,var(--mcx-green),var(--mcx-green-dark));color:#fff!important}

/* Hide native Woo tab bar when only the Description tab remains (anchor nav replaces it) */
body.single-product.mctk-single-emerald .woocommerce-tabs ul.tabs:has(> li:only-child){display:none!important}
body.single-product.mctk-single-emerald .woocommerce-tabs .panel{display:block}
#tab-description,#mcx-single-faq-title{scroll-margin-top:calc(var(--mcx-header-offset,120px) + 8px)}

/* Variation cards: 4 per row on desktop exactly like mockup */
body.single-product.mctk-single-emerald .hita-variation-buttons--priced{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}

/* Summary spacing like mockup */
body.single-product.mctk-single-emerald .product-info .mctk-support-v4{margin-top:14px}

/* Related products — compact horizontal cards (thumb + name + rating + price) */
body.single-product.mctk-single-emerald .related .products.row{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  margin:0!important;
}
body.single-product.mctk-single-emerald .related .products.row::before,
body.single-product.mctk-single-emerald .related .products.row::after{display:none!important;content:none!important}
body.single-product.mctk-single-emerald .related .products.row > .product-small.col{
  width:auto!important;
  max-width:none!important;
  flex-basis:auto!important;
  padding:0!important;
  margin:0!important;
}
body.single-product.mctk-single-emerald .related .product-small .col-inner{
  height:100%;
  padding:10px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
body.single-product.mctk-single-emerald .related .product-small.box{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:12px!important;
}
body.single-product.mctk-single-emerald .related .product-small .box-image{
  flex:0 0 72px!important;
  width:72px!important;
  max-width:72px!important;
  border-radius:12px!important;
  overflow:hidden!important;
}
body.single-product.mctk-single-emerald .related .product-small .box-image img{aspect-ratio:1/1;object-fit:cover}
body.single-product.mctk-single-emerald .related .product-small .box-text{
  flex:1 1 auto!important;
  min-width:0!important;
  padding:0!important;
}
body.single-product.mctk-single-emerald .related .product-small .title-wrapper .product-title a,
body.single-product.mctk-single-emerald .related .product-small .woocommerce-LoopProduct-link{
  -webkit-line-clamp:1!important;
  min-height:0!important;
  font-size:14px!important;
}
body.single-product.mctk-single-emerald .related .product-small .category,
body.single-product.mctk-single-emerald .related .product-small .badge-container,
body.single-product.mctk-single-emerald .related .product-small .add-to-cart-button,
body.single-product.mctk-single-emerald .related .product-small .grid-tools,
body.single-product.mctk-single-emerald .related .product-small .image-tools,
body.single-product.mctk-single-emerald .related .product-small .ktk-grid-sold,
body.single-product.mctk-single-emerald .related .product-small .ktk-stock-progress-bar{display:none!important}
body.single-product.mctk-single-emerald .related .ktk-grid-social-proof{margin:3px 0 4px!important;min-height:0!important}
body.single-product.mctk-single-emerald .related .product-small .price,
body.single-product.mctk-single-emerald .related .product-small .price > .amount,
body.single-product.mctk-single-emerald .related .product-small .price ins .amount{color:#dc2626!important;font-size:15.5px!important}
body.single-product.mctk-single-emerald .related .product-small .price del{display:none!important}

/* ===== TABLET (≤1024px) ===== */
@media(max-width:1024px){
  body.single-product.mctk-single-emerald .related .products.row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* ===== MOBILE (≤849px) — Flatsome stacks gallery above summary ===== */
@media(max-width:849px){
  body.single-product.mctk-single-emerald .product-container{padding-top:8px}
  body.single-product.mctk-single-emerald .product-main{padding-top:6px;padding-bottom:14px}
  body.single-product.mctk-single-emerald .product-gallery{margin-bottom:12px}
  body.single-product.mctk-single-emerald .product-info h1.product-title{font-size:22px!important}
  body.single-product.mctk-single-emerald .product-info .price,
  body.single-product.mctk-single-emerald .product-info .price.product-page-price{font-size:24px!important}
  body.single-product.mctk-single-emerald .hita-variation-buttons--priced{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.single-product.mctk-single-emerald .hita-variation-buttons .hita-variation-btn--priced{min-height:54px!important;padding:9px 28px 9px 10px!important}
  body.single-product.mctk-single-emerald .woocommerce-tabs,
  body.single-product.mctk-single-emerald .product-section{padding:16px 14px}
  body.single-product.mctk-single-emerald .woocommerce-tabs .panel > ul{grid-template-columns:1fr;padding:12px 14px}
  .mcx-sp-anchor{padding:8px 14px;font-size:13px}
}

/* ===== SMALL PHONES (≤549px) ===== */
@media(max-width:549px){
  body.single-product.mctk-single-emerald .product-main > .row{padding:12px 10px!important;border-radius:14px!important}
  body.single-product.mctk-single-emerald .woocommerce-variation-add-to-cart,
  body.single-product.mctk-single-emerald form.cart:not(.variations_form){gap:8px!important}
  body.single-product.mctk-single-emerald .product-info form.cart .single_add_to_cart_button{flex:1 1 calc(100% - 128px)!important;min-width:0!important;font-size:13.5px!important}
  body.single-product.mctk-single-emerald .product-info form.cart .ux-buy-now-button,
  body.single-product.mctk-single-emerald .product-info form.cart .buy_now_button{flex:1 1 100%!important;min-width:0!important}
  body.single-product.mctk-single-emerald .related .products.row{grid-template-columns:1fr!important}
  body.single-product.mctk-single-emerald .ktk-single-social-proof{gap:6px!important}
  body.single-product.mctk-single-emerald .ktk-single-sep{display:none!important}
}

/* Sticky add-to-cart bar: respect iPhone home indicator / Android gesture bar */
.ktk-sticky-product-bar-wrapper{padding-bottom:env(safe-area-inset-bottom,0)}

/* =====================================================================
 * v4.1.0 — FIX: "Sản phẩm tương tự" thumbs stretched tall → fixed 72×72 square, natural card height
 * ===================================================================== */
body.single-product.mctk-single-emerald .related .product-small .col-inner,
body.single-product.mctk-single-emerald .related .product-small .box-text,
body.single-product.mctk-single-emerald .related .product-small.box{height:auto!important;min-height:0!important}
body.single-product.mctk-single-emerald .related .product-small .box-image{
  position:relative!important;
  height:72px!important;
  min-height:72px!important;
  margin:0!important;
  background:#f1f5f9;
}
body.single-product.mctk-single-emerald .related .product-small .box-image > div,
body.single-product.mctk-single-emerald .related .product-small .box-image > div > a,
body.single-product.mctk-single-emerald .related .product-small .box-image > a{
  position:absolute!important;
  inset:0;
  display:block!important;
  width:100%!important;
  height:100%!important;
  padding:0!important;
}
body.single-product.mctk-single-emerald .related .product-small .box-image img{
  position:absolute!important;
  inset:0;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  object-fit:cover;
  object-position:center;
  aspect-ratio:auto;
}
body.single-product.mctk-single-emerald .related .product-small .box-image .back-image,
body.single-product.mctk-single-emerald .related .product-small .box-image .show-on-hover{display:none!important}
body.single-product.mctk-single-emerald .related .product-small .title-wrapper{margin:0 0 2px}
body.single-product.mctk-single-emerald .related .product-section-title,
body.single-product.mctk-single-emerald .related .product-section-title span{text-transform:none!important;letter-spacing:-.01em!important}

/* Breadcrumb: last crumb (product name) always visible */
body.single-product.mctk-single-emerald .woocommerce-breadcrumb,
body.single-product.mctk-single-emerald .rank-math-breadcrumb{display:block!important;font-size:13px;color:#64748b}
body.single-product.mctk-single-emerald .woocommerce-breadcrumb > *:last-child,
body.single-product.mctk-single-emerald .rank-math-breadcrumb .last{color:#0f172a!important;font-weight:600;opacity:1!important;visibility:visible!important}

/* =====================================================================
 * v4.2.0 — Description bullet list: normal VERTICAL list (keeps emerald ✓ icons)
 * ===================================================================== */
body.single-product.mctk-single-emerald .woocommerce-tabs .panel > ul{
  display:block!important;
  grid-template-columns:none!important;
  padding:12px 16px!important;
}
body.single-product.mctk-single-emerald .woocommerce-tabs .panel > ul > li{margin:0 0 8px!important}
body.single-product.mctk-single-emerald .woocommerce-tabs .panel > ul > li:last-child{margin-bottom:0!important}

/* Related products section (own renderer, compact horizontal cards from cards.css) */
.mcx-related{margin:0 0 24px;padding:20px;background:#fff;border:1px solid #d5dde7;border-radius:18px;box-shadow:0 2px 10px rgba(15,23,42,.05)}
.mcx-related-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.mcx-related-head h2{margin:0;font-family:var(--mcx-heading);font-size:20px;font-weight:800;letter-spacing:-.02em;color:#0f172a}
.mcx-related .mcx-text-link{display:inline-flex;align-items:center;gap:5px;font-family:var(--mcx-heading);font-size:13px;font-weight:700;color:#047857!important}
.mcx-related .mcx-text-link svg{width:15px;height:15px}
@media(max-width:849px){.mcx-related{padding:14px;border-radius:14px}}

/* =====================================================================
 * v4.3.0 — SINGLE PRODUCT MOBILE OVERFLOW & CROSS-BROWSER HARDENING
 * ===================================================================== */
body.single-product.mctk-single-emerald .product-info,
body.single-product.mctk-single-emerald .woocommerce-tabs .panel{min-width:0;overflow-wrap:break-word;word-wrap:break-word}
body.single-product.mctk-single-emerald .product-short-description table,
body.single-product.mctk-single-emerald .woocommerce-tabs .panel table{
  display:block;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border-collapse:collapse;
}
body.single-product.mctk-single-emerald .product-short-description img,
body.single-product.mctk-single-emerald .woocommerce-tabs .panel img,
body.single-product.mctk-single-emerald .woocommerce-tabs .panel iframe{max-width:100%;height:auto}
body.single-product.mctk-single-emerald .related .product-small .box-image > div,
body.single-product.mctk-single-emerald .related .product-small .box-image > div > a,
body.single-product.mctk-single-emerald .related .product-small .box-image > a,
body.single-product.mctk-single-emerald .related .product-small .box-image img{top:0;right:0;bottom:0;left:0}
@media(max-width:549px){
  body.single-product.mctk-single-emerald .product-info .mctk-support-v4{display:flex;flex-wrap:wrap;gap:8px}
  body.single-product.mctk-single-emerald .product-info .mctk-support-v4 a{flex:1 1 calc(50% - 4px);min-width:0;justify-content:center}
  body.single-product.mctk-single-emerald .ktk-trust-badges-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
}
@media(max-width:359px){
  body.single-product.mctk-single-emerald .hita-variation-buttons--priced{grid-template-columns:1fr!important}
  body.single-product.mctk-single-emerald .product-info .mctk-support-v4 a{flex:1 1 100%}
}
