/* Trang chi tiết sản phẩm: khung ảnh + mua hàng (_ProductMain), tab mô tả (_ProductTabs). Dùng cả ở mẫu trang sản phẩm. */
.pd-breadcrumb-wrap { padding-top: 16px; }
.pd-breadcrumb-wrap .breadcrumb { margin-bottom: 0; }
.breadcrumb-current { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--orange) !important; }
.is-product-page .page-row:first-child { padding-top: 14px; }
.pd-section { margin-top: 28px; }
.page-column > .blk--product-main, .page-column > .blk--product-tabs { min-width: 0; }

.pd-main { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 28px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

/* Ảnh */
.pd-gallery { min-width: 0; }
.pd-frame { position: relative; display: block; padding: 4px; border-radius: 12px; background: linear-gradient(150deg, #ffb070, #f65d18 55%, #ff9a4d); }
.pd-frame img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 9px; background: #fff; }
.pd-noimage { display: grid; place-items: center; aspect-ratio: 1; color: #fff; font-size: 28px; font-weight: 800; }
.pd-zoom { position: absolute; right: 14px; bottom: 14px; padding: 5px 10px; border-radius: 6px; background: #0d1720b3; color: #fff; font-size: 12px; opacity: 0; transition: opacity .15s; }
.pd-frame:hover .pd-zoom, .pd-frame:focus-visible .pd-zoom { opacity: 1; }
.product-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.product-thumb-button { flex: 0 0 68px; height: 68px; padding: 2px; border: 2px solid #e8e8e8; border-radius: 8px; background: #fff; cursor: pointer; }
.product-thumb-button:hover { border-color: #ffb27f; }
.product-thumb-button.is-active { border-color: var(--orange); }
.product-thumb-button img { width: 100%; height: 100%; object-fit: contain; }

/* Thông tin & mua hàng */
.pd-info { min-width: 0; }
.pd-brandline { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.pd-brandline img { height: 22px; width: auto; }
.pd-brandline span { padding-left: 10px; border-left: 1px solid var(--line); }
.pd-info h1 { margin: 0 0 8px; font-size: 25px; line-height: 1.3; letter-spacing: -.01em; }
.pd-lead { margin: 0 0 8px; color: #4b5661; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.pd-meta b { color: var(--dark); font-weight: 650; }
.pd-pricebox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 0; padding: 14px 18px; border-radius: 10px; background: linear-gradient(90deg, #fff1e6, #fff8f3); }
.pd-pricebox strong { color: #e03d0a; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }
.pd-pricebox s { color: #9aa3a9; font-size: 16px; }
.pd-discount { padding: 2px 8px; border: 1px solid #f7b08a; border-radius: 5px; background: #fff; color: #e03d0a; font-size: 13px; font-style: normal; font-weight: 800; }
.pd-stock { margin-left: auto; padding: 4px 10px; border-radius: 14px; background: #e6f6ec; color: #2e7d32; font-size: 13px; font-weight: 700; }
.pd-stock::before { content: "● "; }
.pd-stock.is-out { background: #fdecec; color: #c62828; }
.pd-highlights { list-style: none; margin: 0 0 14px; padding: 12px 16px; border-radius: 10px; background: #f8f9fa; display: grid; gap: 7px; }
.pd-highlights li { position: relative; padding-left: 28px; font-size: 14px; line-height: 1.45; }
.pd-highlights li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; }

.pd-info .buy-box { max-width: none; margin-top: 8px; gap: 10px; }
.pd-variants { margin: 0; padding: 0; border: 0; }
.pd-variants legend { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pd-variants legend span { color: var(--dark); }
.pd-variant-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-variant { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 5px 12px; border: 1.5px solid #d9dde0; border-radius: 8px; background: #fff; color: var(--dark); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.pd-variant img { width: 30px; height: 30px; object-fit: contain; border-radius: 4px; }
.pd-variant:hover:not(:disabled) { border-color: #ffb27f; }
.pd-variant[aria-pressed="true"] { border-color: var(--orange); background: #fff4ec; box-shadow: inset 0 0 0 1px var(--orange); color: #c2410c; font-weight: 650; }
.pd-variant:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.pd-buy-row { display: flex; align-items: center; gap: 14px; }
.pd-buy-row label { min-width: 70px; }
.pd-info .buy-actions .button { flex: 1 1 150px; min-width: 0; gap: 8px; padding: 12px 14px; }
.pd-info .buy-actions svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.buy-actions .buy-shopee { border: 2px solid #ee4d2d; background: #fff; color: #ee4d2d; }
.buy-actions .buy-shopee:hover { background: #fff3f0; }

/* Tab mô tả / thông tin */
.pd-tabs { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.pd-tablist { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #fafbfb; overflow-x: auto; }
.pd-tablist button { position: relative; padding: 15px 18px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.pd-tablist button[aria-selected="true"] { color: var(--orange); }
.pd-tablist button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--orange); }
.pd-panel { padding: 22px 26px; }
.pd-description { line-height: 1.75; overflow-wrap: anywhere; }
.pd-description img { max-width: 100%; height: auto; border-radius: 6px; }
/* Mô tả viết lại theo khung: h2 từng mục, bảng thông số 2 cột, danh sách gạch đầu dòng. */
.pd-description h2 { margin: 26px 0 10px; font-size: 19px; line-height: 1.35; }
.pd-description h3 { margin: 20px 0 8px; font-size: 16px; }
.pd-description ul { padding-left: 22px; }
.pd-description li + li { margin-top: 4px; }
.pd-description table { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 14px; margin: 6px 0 14px; }
.pd-description th, .pd-description td { padding: 9px 12px; border: 1px solid #e3e7ec; text-align: left; vertical-align: top; }
.pd-description th { width: 36%; background: #f6f8fa; font-weight: 600; }
.pd-description a[href^="tel:"] { color: var(--orange); font-weight: 700; }
.pd-description.is-collapsed { position: relative; max-height: 900px; overflow: hidden; }
.pd-description.is-collapsed::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, #fff); }
.pd-more { display: block; margin: 12px auto 0; padding: 9px 22px; border: 1.5px solid var(--orange); border-radius: 20px; background: #fff; color: var(--orange); font: inherit; font-weight: 700; cursor: pointer; }
.pd-panel h3 { margin: 22px 0 10px; font-size: 16px; }
.pd-info-table { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 14px; }
.pd-info-table th, .pd-info-table td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.pd-info-table tbody th { width: 34%; background: #f8f9fa; color: var(--muted); font-weight: 650; }
.pd-info-table thead th { background: #f8f9fa; }
.pd-price-cell { color: #e03d0a; font-weight: 700; white-space: nowrap; }
.pd-empty { margin: 0; color: var(--muted); }

@media (max-width: 1100px) {
  .pd-main { grid-template-columns: 1fr; }
  .pd-gallery { max-width: 560px; }
}
@media (max-width: 760px) {
  .pd-main { padding: 12px; gap: 16px; border-radius: 10px; }
  .pd-info h1 { font-size: 20px; }
  .pd-pricebox strong { font-size: 24px; }
  .pd-stock { margin-left: 0; }
  .pd-panel { padding: 16px; }
  .breadcrumb-current { max-width: 180px; }
}
