/* Chỉ tải tại chi tiết sản phẩm, giữ tỷ lệ ảnh và nút chia sẻ dễ chạm. */
.share-icons { flex-wrap: wrap; }
.dts-related-products__card img { aspect-ratio: 4 / 3; height: auto; object-fit: contain; background: #fff; }
.share-icons .dts-share-action { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; border: 1px solid #ddd; border-radius: 6px; background: #fff; color: #0747a1; padding: 6px 10px; font-size: 14px; }
.share-icons .dts-share-action[hidden] { display: none; }
.share-icons .dts-share-action:focus-visible { outline: 3px solid #0755b5; }
.dts-share-status:empty { display: none; }

/* PR12: chỉ chỉnh hàng chia sẻ và CTA cạnh giá; giữ nguyên handler/form. */
.dts-product-share { --dts-share-size: 40px; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; }
.dts-product-share__label { flex: 0 0 auto; color: #4b5563; font-size: 12px; white-space: nowrap; }
.dts-product-share > a, .dts-product-share > .dts-share-action { position: static; opacity: 1; display: inline-flex; flex: 0 0 var(--dts-share-size); align-items: center; justify-content: center; width: var(--dts-share-size); min-width: var(--dts-share-size); height: var(--dts-share-size); min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; color: #fff; box-shadow: 0 2px 6px #0002; }
.dts-product-share > .dts-share-action { background: #4b5563; }
.dts-product-share > a:hover, .dts-product-share > .dts-share-action:hover { transform: none; filter: brightness(.9); }
.dts-product-share svg { display: block; width: 18px; height: 18px; flex: none; }
.dts-product-price { margin-bottom: 0 !important; }
.dts-product-price .text-red { white-space: nowrap; }
.dts-product-price-note { font-size: 13px; line-height: 1.5; margin: 6px 0 14px; }
.dts-product-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.dts-product-price-note + .dts-product-actions { margin-top: 0; }
.dts-product-actions > a { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 6px 10px; text-decoration: none; line-height: 1.25; }
.dts-product-actions__primary { grid-column: 1 / -1; height: 52px; font-size: 18px; white-space: nowrap; }
.dts-product-actions__secondary { height: 44px; font-size: 16px; }
.dts-product-actions__primary + .dts-product-actions__secondary:last-child { grid-column: 1 / -1; }
@media (max-width: 767.98px) {
    /* Bảy nút 36px + nhãn cần thêm phần đệm của thẻ ở viewport 360px. */
    .dts-product-share { --dts-share-size: 36px; justify-content: center; width: max-content; position: relative; left: 50%; transform: translateX(-50%); margin-inline: 0; }
    .dts-product-share__label { font-size: 11px; }
    .dts-product-actions__primary { font-size: 16px; white-space: normal; }
    .dts-product-actions__secondary { font-size: 14px; white-space: nowrap; }
}

/* PR12 mobile dưới 576px: nhãn riêng dòng, tick thụt lề treo, tab cuộn ngang. */
@media (max-width: 575.98px) {
    .dts-product-info-label { display: block; width: 100%; font-size: 14px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
    .dts-product-summary__values { width: 100%; margin-left: 0 !important; margin-top: 4px; }
    .dts-product-summary__item { display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 6px; padding-inline: 0 !important; font-size: 14px; line-height: 1.5; }
    .dts-product-summary__item > svg { width: 14px; height: 14px; margin: 3px 0 0 !important; }
    .dts-product-summary__text { min-width: 0; overflow-wrap: anywhere; }
    .dts-product-price { display: block !important; }
    .dts-product-price__value { display: block !important; width: 100%; margin: 4px 0 0 !important; }
    .dts-product-price .text-red { font-size: 18px; font-weight: 700; line-height: 1.4; text-decoration: none; }
    /* Giữ ký hiệu ₫ trong HTML, chỉ cắt nét dưới có sẵn trong glyph ở mobile. */
    .dts-product-price__value .dts-product-price__currency { display: inline-block; line-height: 1; vertical-align: baseline; clip-path: inset(0 0 3px 0); text-decoration: none; }
    .dts-product-share { --dts-share-size: 32px; position: static; left: auto; transform: none; width: 100%; max-width: 100%; flex-wrap: wrap; gap: 6px; margin-inline: 0; }
    .dts-product-share__label { flex: 0 0 100%; width: 100%; text-align: center; font-size: 13px; color: #6b7280; }
    .dts-product-tabs { box-sizing: border-box; width: 100%; max-width: 100%; padding-inline: var(--dts-tab-start, 0px) var(--dts-tab-end, 0px); flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; white-space: nowrap; scrollbar-width: none; -ms-overflow-style: none; }
    .dts-product-tabs::-webkit-scrollbar { display: none; }
    .dts-product-tabs > .nav-item { flex: 0 0 auto; }
    .dts-product-tabs .nav-link { white-space: nowrap; }
}
