/* FB CLONE | Product detail page | unified with Danh muc / Tai khoan. */
/* Loaded ONLY on product.php and AFTER existing site CSS. */
body.hm-body .hm-shell-main > main.product-detail-page.hm-unified-page.container {
  box-sizing:border-box!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  margin:0 0 12px!important;
  padding:12px 13px 15px!important;
  background:#fff!important;
  border:1px solid var(--hm-line,#e2eaf3)!important;
  border-radius:12px!important;
  box-shadow:var(--hm-shadow,0 3px 15px rgba(31,64,104,.055))!important;
  overflow:hidden;
}
/* The heading uses the SAME wrapper, font and divider as the other tabs. */
body.hm-body .hm-shell-main .hm-product-detail-unified > .hm-product-detail-head {
  display:flex;align-items:center;gap:12px;
  min-width:0;min-height:63px;
  margin:0 0 13px;padding:0 6px 11px;
  border:0;border-bottom:1px solid #eaf0f6;
  background:transparent;
}
body.hm-body .hm-shell-main .hm-product-detail-head .hm-section-icon {
  display:grid;place-items:center;flex:0 0 37px;
  width:37px;height:37px;border-radius:10px;
  background:#d9edff;color:#0968dd;
}
body.hm-body .hm-shell-main .hm-product-detail-head .hm-unified-head-copy {
  flex:1;min-width:0;
}
body.hm-body .hm-shell-main .hm-product-detail-head h1 {
  margin:0!important;
  font-family:var(--hm-facebook-font)!important;
  font-size:18px!important;line-height:1.35!important;
  font-weight:700!important;letter-spacing:normal!important;
  text-transform:none!important;color:#0b4d9e!important;
}
body.hm-body .hm-shell-main .hm-product-detail-head p {
  margin:3px 0 0;font-size:11px;line-height:1.5;color:#657c95;
}
body.hm-body .hm-shell-main .hm-product-detail-head .hm-product-detail-back {
  display:inline-flex;align-items:center;justify-content:center;
  gap:7px;flex-shrink:0;white-space:nowrap;
  min-height:36px;padding:8px 12px;
  font-size:12px;line-height:1.3;
}
body.hm-body .hm-shell-main .hm-product-detail-back .site-icon {
  width:15px;height:15px;
}
/* Keep the compact product information, order control and desktop columns. */
body.hm-body .hm-shell-main .hm-product-detail-unified .detail-layout {
  width:100%;max-width:none;min-width:0;
  gap:12px;
  margin:0;
}
body.hm-body .hm-shell-main .hm-product-detail-unified .detail-main,
body.hm-body .hm-shell-main .hm-product-detail-unified .detail-order {
  min-width:0;
}
body.hm-body .hm-shell-main .hm-product-detail-unified .detail-surface {
  border-radius:10px;
  border:1px solid #e4edf7;
  box-shadow:none;
  background:#fcfdff;
}
body.hm-body .hm-shell-main .hm-product-detail-unified .detail-heading .detail-product-name {
  font-family:var(--hm-facebook-font);
  font-size:clamp(20px,2.25vw,26px);
  line-height:1.25;letter-spacing:normal;
  font-weight:700;text-transform:none;
  color:#142d48;margin:7px 0 9px;
  overflow-wrap:anywhere;
}
body.hm-body .hm-shell-main .hm-product-detail-unified .detail-missing {
  margin:0;
}
@media(max-width:760px){
  body.hm-body .hm-shell-main > main.product-detail-page.hm-unified-page.container {
    padding:9px!important;
    margin:0 0 12px!important;
  }
  body.hm-body .hm-shell-main .hm-product-detail-unified > .hm-product-detail-head {
    min-height:0;flex-wrap:wrap;gap:9px;
    padding:4px 3px 11px;margin-bottom:10px;
  }
  body.hm-body .hm-shell-main .hm-product-detail-head .hm-section-icon {
    flex-basis:34px;width:34px;height:34px;
  }
  body.hm-body .hm-shell-main .hm-product-detail-head h1{font-size:16px!important}
  body.hm-body .hm-shell-main .hm-product-detail-head p{font-size:10.5px}
  body.hm-body .hm-shell-main .hm-product-detail-head .hm-product-detail-back {
    margin-left:43px;max-width:calc(100% - 43px);
    min-height:34px;
  }
  body.hm-body .hm-shell-main .hm-product-detail-unified .detail-layout {
    grid-template-columns:minmax(0,1fr);
  }
  body.hm-body .hm-shell-main .hm-product-detail-unified .detail-heading .detail-product-name {
    font-size:clamp(18px,4.9vw,22px);
  }
}


/* 2026-10-18: Product detail PANEL titles use the exact header typography
   of "San pham noi bat" (the product NAME keeps its own hierarchy). */
body.hm-body .hm-shell-main .hm-product-detail-unified .detail-section-title h2,
body.hm-body .hm-shell-main .hm-product-detail-unified .order-header h2 {
  font-family:var(--hm-facebook-font)!important;
  font-size:18px!important;
  font-weight:700!important;
  line-height:1.35!important;
  letter-spacing:normal!important;
  font-style:normal!important;
  text-transform:none!important;
  color:#0b4d9e!important;
}
body.hm-body .hm-shell-main .hm-product-detail-unified .detail-section-title h2 {
  margin:0!important;
}
body.hm-body .hm-shell-main .hm-product-detail-unified .order-header h2 {
  margin:7px 0 5px!important;
}
@media(max-width:650px){
  body.hm-body .hm-shell-main .hm-product-detail-unified .detail-section-title h2,
  body.hm-body .hm-shell-main .hm-product-detail-unified .order-header h2 {
    font-size:16px!important;
  }
}
