/* HBYT_PRODUCT_CARD_NAMES_V1: existing English subtitle plus unchanged model. */
.hbyt-product-card-name,
.hbyt-product-card-model {
  display: block;
  overflow-wrap: anywhere;
}
.hbyt-product-card-name:empty { display: none; }
.hbyt-product-card-name { font-weight: 600; }
.hbyt-product-card-model { margin-top: 5px; font-size: 12px; font-weight: 400; }
.hbyt-product-card-name:empty + .hbyt-product-card-model { margin-top: 0; }
.hbyt-product-card-link:focus-visible { outline: 3px solid #d15d22; outline-offset: 4px; }

#index-body .i-product .productBox .swiper-slide > p > a.hbyt-product-card-link {
  max-width: 100%;
  font-size: 17px;
  line-height: 1.4;
}
#index-body .i-product .hbyt-product-card-model { font-size: 13px; }
#index-body .i-product .productBox .swiper-slide { height: auto; }

/* Wrapped names can vary in length; keep the existing column widths and align rows. */
.product-page .right ul.product-id,
.prodet-page .init-3 ul.product-id { display: flex; flex-wrap: wrap; }
.product-page .right ul.product-id li,
.prodet-page .init-3 ul.product-id li { display: flex; float: none; margin-left: 0; }
.product-page .right ul.product-id li .box,
.prodet-page .init-3 ul.product-id li .box { display: flex; flex-direction: column; width: 100%; }
.product-page .right ul.product-id li .box .btn,
.prodet-page .init-3 ul.product-id li .box .btn { margin-top: auto; }

ul.product-id li .box .btn a.hbyt-product-card-link,
.product-page .right ul.product-id li .box .btn a.hbyt-product-card-link,
.prodet-page .init-3 ul.product-id li .box .btn a.hbyt-product-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 78px;
  padding: 10px 12px;
  margin-left: 0;
  float: none;
  box-sizing: border-box;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
}
ul.product-id .hbyt-product-card-name { font-size: 15px; }
ul.product-id .hbyt-product-card-model { color: rgba(255,255,255,.86); line-height: 1.3; }

@media (max-width: 767px) {
  #index-body .i-product .productBox .swiper-slide > p > a.hbyt-product-card-link { font-size: 16px; }
  ul.product-id li .box .btn a.hbyt-product-card-link { padding: 10px 8px; }
}

/* The marked editorial section is output once by the server, before legacy data. */
.prodet-page section[data-hbyt-product-overview="v1"] {
  margin: 28px 0;
  padding: 24px 28px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fafafa;
  color: #363f4d;
  font-size: 16px;
  line-height: 1.7;
}
.prodet-page section[data-hbyt-product-overview="v1"] h2 { margin: 0 0 14px; font-size: 24px; line-height: 1.3; }
.prodet-page section[data-hbyt-product-overview="v1"] h3 { margin: 20px 0 8px; font-size: 18px; line-height: 1.4; }
.prodet-page section[data-hbyt-product-overview="v1"] p { margin: 0 0 12px; }
.prodet-page section[data-hbyt-product-overview="v1"] ul { margin: 0 0 12px; padding-left: 22px; }
.prodet-page section[data-hbyt-product-overview="v1"] li { margin: 5px 0; list-style: disc; }
.prodet-page section[data-hbyt-product-overview="v1"] > :last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .prodet-page section[data-hbyt-product-overview="v1"] { padding: 20px 16px; }
  .prodet-page section[data-hbyt-product-overview="v1"] h2 { font-size: 21px; }
}
