/**
 * YHN Phase 1D.1 - Single product only.
 * All rules are scoped to the dedicated body class.
 */

.yhn-product-phase1d{overflow-x:clip}
.yhn-product-phase1d .product-main{padding-top:20px}
.yhn-product-phase1d .product-info{align-items:flex-start}
.yhn-product-phase1d .product-gallery,
.yhn-product-phase1d .summary.entry-summary{min-width:0}

.yhn-product-phase1d .product-gallery{
  background:#fff;border:1px solid #f0e4ea;border-radius:18px;
  box-shadow:0 8px 28px rgba(44,28,38,.06)
}
.yhn-product-phase1d .product-gallery img{max-width:100%;height:auto}

.yhn-product-phase1d .summary.entry-summary{
  background:#fff;border:1px solid #f0e4ea;border-radius:18px;
  box-shadow:0 8px 28px rgba(44,28,38,.06)
}
.yhn-product-phase1d h1.product_title{color:#302b2f!important;font-size:clamp(24px,2.1vw,32px)!important;line-height:1.3!important}
.yhn-product-phase1d .yhn-no-review{font-size:13px;color:#69636a;font-weight:600}
.yhn-product-phase1d .yhn-product-review-top{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.yhn-product-phase1d .yhn-product-review-top .woocommerce-review-link{margin:0}

.yhn-product-phase1d table.variations{display:block;margin:0 0 12px}
.yhn-product-phase1d table.variations tbody,
.yhn-product-phase1d table.variations tr{display:block;width:100%}
.yhn-product-phase1d table.variations th,
.yhn-product-phase1d table.variations td{display:block;width:100%;padding:0;border:0}
.yhn-product-phase1d table.variations label{display:block;margin:0 0 7px;color:#373238;font-size:14px;font-weight:750}
.yhn-product-phase1d table.variations select{
  width:100%;min-height:46px;margin:0;padding:0 42px 0 14px;
  border:1px solid #dfccd6;border-radius:12px;background-color:#fff;color:#302b2f;font-weight:650
}
.yhn-product-phase1d .reset_variations{display:inline-block;margin-top:8px;color:#a70d54;font-size:13px;font-weight:650}
.yhn-product-phase1d .woocommerce-variation-price{margin:10px 0}
.yhn-product-phase1d .woocommerce-variation-availability{margin-bottom:10px}

.yhn-product-phase1d form.cart{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.yhn-product-phase1d form.variations_form.cart>table,
.yhn-product-phase1d form.variations_form.cart>.single_variation_wrap{flex:0 0 100%;width:100%;min-width:0}
.yhn-product-phase1d form.variations_form.cart .woocommerce-variation-add-to-cart{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.yhn-product-phase1d form.cart .quantity{margin:0!important}
.yhn-product-phase1d form.cart .single_add_to_cart_button{flex:1 1 230px;margin:0!important}

.yhn-product-phase1d .yhn-purchase-assurance{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
  margin:14px 0 4px;padding:10px;background:#fff9fc;border:1px solid #efdce6;border-radius:14px
}
.yhn-product-phase1d .yhn-purchase-assurance>span,
.yhn-product-phase1d .yhn-purchase-assurance>a{
  display:flex;min-width:0;flex-direction:column;padding:9px 10px;border-radius:10px;background:#fff;color:#383238;text-decoration:none
}
.yhn-product-phase1d .yhn-purchase-assurance strong{font-size:13px;line-height:1.35;color:#8f124b}
.yhn-product-phase1d .yhn-purchase-assurance small{margin-top:3px;font-size:11.5px;line-height:1.4;color:#6b656b}

.yhn-product-phase1d .woocommerce-tabs .panel,
.yhn-product-phase1d .woocommerce-Tabs-panel{overflow-wrap:anywhere}
.yhn-product-phase1d #tab-description>*:not(.alignwide):not(.alignfull){max-width:920px;margin-left:auto;margin-right:auto}
.yhn-product-phase1d #tab-description p,
.yhn-product-phase1d #tab-description li{font-size:16px!important;line-height:1.8!important}
.yhn-product-phase1d #tab-description table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.yhn-product-phase1d #tab-description .yhn-table-scroll{
  display:block;width:100%;max-width:100%;margin:18px auto;overflow-x:auto;overflow-y:hidden;
  border:1px solid #eadde4;border-radius:14px;background:#fff;-webkit-overflow-scrolling:touch;
  overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#d94b93 #f7edf2
}
.yhn-product-phase1d #tab-description .yhn-table-scroll table{
  display:table!important;width:100%!important;min-width:760px!important;margin:0!important;
  table-layout:auto!important;overflow:visible!important;border:0!important;border-radius:0!important
}
.yhn-product-phase1d #tab-description .yhn-table-scroll th,
.yhn-product-phase1d #tab-description .yhn-table-scroll td{
  min-width:180px!important;vertical-align:top!important;word-break:normal!important;
  overflow-wrap:break-word!important;white-space:normal!important
}
.yhn-product-phase1d #tab-description .yhn-table-scroll th:nth-child(2),
.yhn-product-phase1d #tab-description .yhn-table-scroll td:nth-child(2){min-width:240px!important}
.yhn-product-phase1d #tab-description .yhn-table-scroll th:nth-child(3),
.yhn-product-phase1d #tab-description .yhn-table-scroll td:nth-child(3){min-width:300px!important}
.yhn-product-phase1d #tab-description iframe{display:block;max-width:100%;margin-left:auto;margin-right:auto}
.yhn-product-phase1d .related.products .products{margin-left:-6px;margin-right:-6px}

@media (max-width:849px){
  .yhn-product-phase1d .product-main{padding-top:10px}
  .yhn-product-phase1d .yhn-rankmath-breadcrumb-wrap{overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}
  .yhn-product-phase1d .product-gallery,
  .yhn-product-phase1d .summary.entry-summary{border-radius:15px;box-shadow:0 5px 18px rgba(44,28,38,.05)}
  .yhn-product-phase1d h1.product_title{font-size:23px!important;line-height:1.34!important}
  .yhn-product-phase1d .summary .price>span.amount,
  .yhn-product-phase1d .summary .price ins .amount{font-size:26px!important}
  .yhn-product-phase1d form.cart{align-items:stretch}
  .yhn-product-phase1d form.cart .quantity{flex:0 0 112px}
  .yhn-product-phase1d form.cart .single_add_to_cart_button{flex:1 1 calc(100% - 122px);width:auto!important;min-width:0;padding-left:14px!important;padding-right:14px!important}
  .yhn-product-phase1d .yhn-purchase-assurance{grid-template-columns:1fr;padding:8px;gap:6px}
  .yhn-product-phase1d .yhn-purchase-assurance>span,
  .yhn-product-phase1d .yhn-purchase-assurance>a{padding:9px 11px}
  .yhn-product-phase1d #tab-description p,
  .yhn-product-phase1d #tab-description li{font-size:15px!important;line-height:1.75!important}
  .yhn-product-phase1d #tab-description .yhn-table-scroll::before{
    content:"Vuốt ngang để xem đầy đủ bảng →";display:block;position:sticky;left:0;width:max-content;
    padding:8px 12px;color:#8f124b;background:#fff7fb;font-size:12px;font-weight:700
  }
  .yhn-product-phase1d #tab-description .yhn-table-scroll table{min-width:760px!important}
  .yhn-product-phase1d #tab-description .yhn-table-scroll th,
  .yhn-product-phase1d #tab-description .yhn-table-scroll td{font-size:14px!important;line-height:1.55!important;padding:10px 12px!important}
  .yhn-product-phase1d .woocommerce-tabs ul.tabs,
  .yhn-product-phase1d .tabbed-content ul.nav{display:flex;max-width:100%;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
  .yhn-product-phase1d .woocommerce-tabs ul.tabs li,
  .yhn-product-phase1d .tabbed-content ul.nav li{flex:0 0 auto}
}

@media (max-width:380px){
  .yhn-product-phase1d form.cart .quantity{flex:0 0 100%;width:100%}
  .yhn-product-phase1d form.cart .single_add_to_cart_button{flex:0 0 100%;width:100%!important}
}

@media (prefers-reduced-motion:reduce){
  .yhn-product-phase1d *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
