:root {
  --blue: #1e4fad;
  --blue-dark: #163d88;
  --blue-soft: #e8eef9;
  --red: #e63946;
  --red-hover: #d42f3b;
  --ink: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --surface: #ffffff;
  --page-bg: linear-gradient(180deg, #f4f7fc 0%, #eef2fa 35%, #f8fafc 100%);
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --radius: 14px;
  --radius-lg: 20px;
  --green: #16a34a;
  --related-gap: 1.15rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Chỉ ảnh trong nội dung PDP — tránh ảnh hưởng icon social header/mobile menu */
body.hl-chitiet-pdp .page img,
body.hl-chitiet-pdp .hl-chitiet-pdp-root img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Menu mobile: social căn giữa đồng bộ (Issuu + FA) */
body.hl-chitiet-pdp .mobile__menu ul.social_link_menu li {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}

body.hl-chitiet-pdp .mobile__menu ul.social_link_menu li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

body.hl-chitiet-pdp .mobile__menu ul.social_link_menu li a i {
  display: block;
  width: 1em;
  height: 1em;
  line-height: 1;
}

body.hl-chitiet-pdp .mobile__menu ul.social_link_menu li.issuu .hl-soc-issuu-icon {
  display: block;
  width: 1em;
  height: 1em;
}

.page {
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) clamp(0.85rem, 4vw, 1.35rem) 2.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* --- Hero --- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: start;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.hero > * {
  min-width: 0;
}

@media (max-width: 960px) {
  .hero-gallery {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.85rem;
  }
}

@media (max-width: 560px) {
  .slider-arrow {
    width: 38px;
    height: 38px;
  }

  .slider-arrow--prev {
    left: 8px;
  }

  .slider-arrow--next {
    right: 8px;
  }
}

.hero-gallery {
  display: flex;
  gap: clamp(0.65rem, 2vw, 1rem);
  align-items: flex-start;
  outline: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hero-gallery:focus-visible {
  box-shadow: 0 0 0 3px rgba(30, 79, 173, 0.35);
  border-radius: calc(var(--radius-lg) + 4px);
}

/* Thumbnail strip: mobile mặc định NGANG cuộn; desktop (≥961px) CỘT bên ảnh lớn */
.thumbs-column {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-shrink: 0;
}

.thumb-nav {
  flex-shrink: 0;
  height: 32px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: none;
  place-items: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.thumb-nav:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}

.thumb-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.thumbs-viewport {
  flex: 1;
  min-width: 0;
  width: auto;
  height: auto;
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

/* Mobile / tablet một cột: JS đặt width = n ô vừa màn/lộ trình; không cố định 4; ẩn scrollbar */
@media (max-width: 960px) {
  .thumbs-viewport {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
    scrollbar-width: none;
    overflow-y: hidden;
    -ms-overflow-style: none;
  }

  .thumbs-viewport::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
  }

  .thumbs-viewport::-webkit-scrollbar-thumb {
    display: none;
  }
}

.thumb-strip-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s, color 0.2s;
  display: grid;
  place-items: center;
}

.thumb-strip-arrow:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}

.thumb-strip-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.thumb-strip-arrow[hidden] {
  display: none !important;
}

@media (min-width: 961px) {
  .thumb-strip-arrow {
    display: none !important;
  }
}

.thumbs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 961px) {
  .thumbs-column {
    flex-direction: column;
    align-items: stretch;
    width: 68px;
    gap: 0.4rem;
  }

  .thumb-nav {
    display: grid;
  }

  /* PC (≥961px): luôn hiển thị đúng 4 ô, cuộn dọc các ảnh còn lại */
  .thumbs-viewport {
    flex: unset;
    --thumb-h: 64px;
    --thumb-gap: 0.65rem;
    width: 64px;
    height: calc(4 * var(--thumb-h) + 3 * var(--thumb-gap));
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: auto;
  }

  .thumbs-viewport::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .thumbs-viewport::-webkit-scrollbar-thumb {
    display: none;
  }

  .thumbs {
    flex-direction: column;
    gap: 0.65rem;
    flex-wrap: nowrap;
  }
}

.thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.thumb:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.thumb.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(30, 79, 173, 0.2);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.gallery-slider-shell {
  position: relative;
  flex: 1;
  min-width: 0;
  align-self: stretch;
}

@media (max-width: 960px) {
  .gallery-slider-shell {
    width: 100%;
    min-width: 0;
    align-self: stretch;
  }
}

.slider-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: radial-gradient(circle at 70% 30%, rgba(96, 165, 250, 0.2), transparent 55%),
    linear-gradient(145deg, #1e293b 0%, #0f172a 45%, #1e4fad55 100%);
}

.slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.45, 1);
  will-change: transform;
}

.slider-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.slider-slide img {
  width: 100%;
  height: clamp(260px, 52vw, 420px);
  object-fit: cover;
  background: radial-gradient(circle at 70% 30%, rgba(96, 165, 250, 0.28), transparent 50%),
    linear-gradient(160deg, #334155 0%, #0f172a 100%);
}

@media (max-width: 960px) {
  .slider-slide img {
    height: clamp(220px, 52vw, 400px);
  }
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
  transition: background 0.2s, transform 0.15s, color 0.2s;
}

.slider-arrow:hover {
  background: #fff;
  color: var(--blue);
  transform: translateY(-50%) scale(1.06);
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.98);
}

.slider-arrow--prev {
  left: 12px;
}

.slider-arrow--next {
  right: 12px;
}

.slider-dots {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 0 0;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
  transition: width 0.25s ease, background 0.2s;
}

.slider-dot:hover {
  background: #94a3b8;
}

.slider-dot.is-active {
  width: 26px;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
}

/* Buy column */
.hero-buy {
  padding-top: 0.25rem;
}

.title {
  font-size: clamp(1.2rem, 4.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  color: var(--ink);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.brand {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.brand:hover {
  text-decoration: underline;
}

.sku {
  font-size: 0.8rem;
  color: var(--muted);
  width: 100%;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.stars {
  display: flex;
  letter-spacing: 1px;
  color: #fbbf24;
  font-size: 1rem;
  line-height: 1;
}

.star.half {
  background: linear-gradient(90deg, #fbbf24 50%, #e2e8f0 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rating-text,
.sold {
  color: var(--muted);
}

.sep {
  width: 1px;
  height: 14px;
  background: var(--border);
}

.color-block .label {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.color-btns {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.chip {
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.chip--light {
  background: var(--surface);
  color: var(--ink);
}

.chip--dark {
  /* background: #1e293b;
  color: #fff;
  border-color: #1e293b; */
}

.chip.is-on.chip--dark {
  border-color: #334155;
}

.chip:not(.is-on):hover {
  border-color: #cbd5e1;
}

.chip.is-on:hover {
  transform: translateY(-1px);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.price {
  margin: 0;
  font-size: clamp(1.45rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
  word-wrap: break-word;
}

.vat {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green);
}

.stock .check {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.qty-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  width: fit-content;
}

.qty button {
  width: 40px;
  height: 40px;
  border: none;
  background: #f8fafc;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.2s;
}

.qty button:hover {
  background: #f1f5f9;
}

.qty span {
  min-width: 44px;
  text-align: center;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-cart {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.35);
}

.btn-cart:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
}

.btn-biz {
  background: var(--blue);
  color: #fff;
  padding: 10px !important;
}

.btn-biz:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  color: #fff;
}

.trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 880px) {
  .trust {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.trust li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--muted);
}

.trust strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.82rem;
}

.t-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-soft);
}

.t-ico svg {
  width: 22px;
  height: 22px;
}

.t-ico.blue {
  color: var(--blue);
}


/* Detail + specs + tabs */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, min(100%, 440px));
  gap: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  align-items: start;
  min-width: 0;
}

.detail-main {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 960px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
  }
}

.detail-specs {
  position: sticky;
  top: 1rem;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 960px) {
  .detail-specs {
    position: static;
  }
}

.detail-tabs {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: clip;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.tabs-scroll {
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(180deg, #fafbfe 0%, #fff 100%);
  min-width: 0;
}

.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tabs::-webkit-scrollbar {
  height: 6px;
}

.tabs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}

.tab {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.tab:hover {
  color: var(--ink);
  background: rgba(30, 79, 173, 0.06);
}

.tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 6px 18px rgba(30, 79, 173, 0.28);
}

.tab-panels {
  padding: 1.35rem 1.35rem 1.5rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

@media (max-width: 520px) {
  .tab-panels {
    padding: 1rem 0.85rem 1.2rem;
  }

  .tab {
    font-size: 0.78rem;
    padding: 0.48rem 0.75rem;
  }
}

.tab-panel {
  display: none;
  animation: tabIn 0.35s ease;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 14px;
}

.tab-panel.is-active {
  display: block;
}

@keyframes tabIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prose .lead {
  margin: 0 0 1rem;
  font-size: 0.96rem;
  line-height: 1.72;
  color: #334155;
}

.bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.35rem;
  font-size: 0.89rem;
  color: var(--ink);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 0 0 3px rgba(30, 79, 173, 0.12);
}

.fine-print {
  margin: 1rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.detail-tabs .muted {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.muted.small,
.small.muted {
  display: inline;
  margin-left: 0.35rem;
  font-size: 0.74rem;
}

.card-inset {
  background: linear-gradient(145deg, #f8fafc 0%, #fff 65%);
  border: 1px solid #eef2ff;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  max-width: 100%;
  box-sizing: border-box;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
  min-width: 0;
}

.reviews-summary > div:last-child {
  min-width: 0;
}

.reviews-score {
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.reviews-score .big {
  font-size: 2.25rem;
  letter-spacing: -0.04em;
}

.stars-inline {
  color: #fbbf24;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.review-item {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
}

.review-item p {
  margin: 0;
  font-size: 0.875rem;
  color: #475569;
}

.policy-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink);
}

.policy-list li {
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
}

.policy-list li:last-child {
  margin-bottom: 0;
}

.video-shell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px dashed #cbd5e1;
  max-width: 100%;
}

.video-placeholder {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(145deg, #0f172a, #1e293b);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  padding: 1.5rem;
  max-width: 100%;
  box-sizing: border-box;
}

.play-ico {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-placeholder p {
  margin: 0;
  font-weight: 700;
}

.catalog-banner p {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.89rem;
  color: var(--blue);
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.btn-link:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.specs {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.specs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.specs-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.specs-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

.specs-link:hover {
  text-decoration: underline;
}

.spec-list {
  margin: 0;
  font-size: 14px;
}

.spec-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.spec-row dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 420px) {
  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .spec-row dd {
    text-align: left;
  }
}

/* Related products — carousel */
.related-products {
  margin-top: 0.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.related-products__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.related-products .section-head {
  margin-bottom: 0;
  flex: 1 1 200px;
  min-width: 0;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.15rem, 3.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.related-arrows {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

.related-arrow {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}

.related-arrow:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}

.related-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.related-arrow[hidden] {
  display: none;
}

.related-viewport {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.related-track {
  display: flex;
  gap: var(--related-gap);
  transition: transform 0.42s cubic-bezier(0.25, 1, 0.45, 1);
  will-change: transform;
  margin-bottom: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .related-track {
    transition: none;
  }
}

.related-track .hl-related-slide {
  flex: 0 0 calc((100% - 4 * var(--related-gap)) / 5);
  max-width: calc((100% - 4 * var(--related-gap)) / 5);
  min-width: 0;
}

/* Trong carousel: bỏ lưới Bootstrap của thẻ catalog, full width slide */
.related-products.hl-category-products .related-track .hl-related-slide > [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.related-products.hl-category-products .related-track .hl-related-slide .padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-bottom: 0;
  padding-top: 10px;
}

@media (max-width: 960px) {
  .related-track .hl-related-slide {
    flex: 0 0 calc((100% - 1 * var(--related-gap)) / 2);
    max-width: calc((100% - 1 * var(--related-gap)) / 2);
  }
}

@media (max-width: 560px) {
  .related-track .hl-related-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.related-track .product-card {
  flex: 0 0 calc((100% - 4 * var(--related-gap)) / 5);
  max-width: calc((100% - 4 * var(--related-gap)) / 5);
  min-width: 0;
}

@media (max-width: 960px) {
  .related-track .product-card {
    flex: 0 0 calc((100% - 1 * var(--related-gap)) / 2);
    max-width: calc((100% - 1 * var(--related-gap)) / 2);
  }
}

@media (max-width: 560px) {
  .related-track .product-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.product-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e8eef9, #eef2fa);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 0.9rem 1rem 1rem;
}

.product-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  word-wrap: break-word;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

.product-card__title a:hover {
  color: var(--blue);
}

.product-card__sku {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.product-card__price {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
}

/* —— WooCommerce bridge (PDP dữ liệu động) —— */

body.hl-chitiet-pdp {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

.chitiet-bc {
  margin-bottom: 1rem;
}

.chitiet-bc .woocommerce-breadcrumb {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.chitiet-bc .woocommerce-breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.chitiet-bc .woocommerce-breadcrumb a:hover {
  text-decoration: underline;
}

.hl-chitiet-onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--red);
  color: #fff;
  line-height: 1.2;
}

.hero-buy .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  line-height: 1;
}

.hero-buy .woocommerce-product-rating .star-rating {
  margin: 0;
  float: none;
}

.hero-buy .woocommerce-review-link {
  font-size: 0.82rem;
  color: var(--muted);
}

.hl-chitiet-stock-wrap {
  font-weight: 600;
  font-size: 0.9rem;
}

.hl-chitiet-stock-wrap .stock {
  margin: 0;
}

.hl-chitiet-hero-excerpt {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--ink);
}

/* Bảng trong mô tả ngắn sản phẩm: đẹp hơn + responsive khi co màn hình */
.hl-chitiet-hero-excerpt table {
  display: block;
  width: 100% !important;
  max-width: 100%;
  margin: 0.75rem 0 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #dbe4f3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.hl-chitiet-hero-excerpt table tbody {
  display: table;
  width: 100%;
  min-width: 760px;
}

.hl-chitiet-hero-excerpt table tr {
  background: #fff;
}

.hl-chitiet-hero-excerpt table tr:first-child {
  background: linear-gradient(180deg, #eff5ff 0%, #e9f1ff 100%);
}

.hl-chitiet-hero-excerpt table tr:nth-child(even):not(:first-child) {
  background: #f8fbff;
}

.hl-chitiet-hero-excerpt table th,
.hl-chitiet-hero-excerpt table td {
  padding: 0.68rem 0.75rem;
  border-right: 1px solid #e5edf9;
  border-bottom: 1px solid #e5edf9;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #1e293b;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}

.hl-chitiet-hero-excerpt table tr th:last-child,
.hl-chitiet-hero-excerpt table tr td:last-child {
  border-right: none;
}

.hl-chitiet-hero-excerpt table tr:last-child th,
.hl-chitiet-hero-excerpt table tr:last-child td {
  border-bottom: none;
}

.hl-chitiet-hero-excerpt table tr:first-child th,
.hl-chitiet-hero-excerpt table tr:first-child td {
  font-weight: 700;
  color: #0f2f6d;
}

.hl-chitiet-hero-excerpt p strong {
  color: #0f2f6d;
}

@media (max-width: 767px) {
  .hl-chitiet-hero-excerpt table {
    margin: 0.65rem 0 0.95rem;
    border-radius: 10px;
  }

  .hl-chitiet-hero-excerpt table tbody {
    min-width: 680px;
  }

  .hl-chitiet-hero-excerpt table th,
  .hl-chitiet-hero-excerpt table td {
    padding: 0.58rem 0.62rem;
    font-size: 0.8rem;
  }
}

/* Thu gọn / mở rộng nội dung dài (mô tả ngắn, thông số kỹ thuật) */
.hl-collapsible {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hl-collapsible--excerpt {
  margin-bottom: 1.1rem;
}

.hl-collapsible__inner {
  align-self: stretch;
  width: 100%;
  position: relative;
  overflow: hidden;
  max-height: 350px;
  transition: max-height 0.4s ease;
  box-sizing: border-box;
}

.hl-collapsible.hl-collapsible--static .hl-collapsible__inner {
  max-height: none;
}

.hl-collapsible.is-expanded .hl-collapsible__inner {
  max-height: var(--hl-collapsible-full, 9999px);
}

.hl-collapsible:not(.is-expanded):not(.hl-collapsible--static) .hl-collapsible__inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3rem;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, #fff 100%);
}

.hl-collapsible--specs:not(.is-expanded):not(.hl-collapsible--static) .hl-collapsible__inner::after {
  background: linear-gradient(180deg, transparent 0%, var(--surface, #fff) 100%);
}

.hl-collapsible__toggle {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35rem 0;
  border: none;
  background: transparent;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hl-collapsible__toggle:hover {
  text-decoration: underline;
}

.hl-collapsible__toggle[hidden] {
  display: none;
}

.hero-buy p.price,
.hero-buy span.price {
  margin: 0;
  font-size: clamp(1.45rem, 5vw, 2rem);
  font-weight: 700;
  color: #000;
}

.hero-buy .btn-biz {
  text-decoration: none;
  box-sizing: border-box;
}

.qty-actions form.cart,
.qty-actions > form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  width: 100%;
}

.qty-actions form.cart .hl-variations {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 0.25rem;
}

.hero-buy .hl-variation-row .label strong {
  color: var(--ink);
  font-weight: 700;
}

.hl-variation-select-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.hl-variation-row {
  position: relative;
}

.qty-actions form.cart .hl-variation-row .reset_variations,
.qty-actions form.cart .hl-variation-reset .reset_variations {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.qty-actions form.cart .hl-variation-row .reset_variations:hover,
.qty-actions form.cart .hl-variation-reset .reset_variations:hover {
  text-decoration: underline;
}

.chip.is-on {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(229, 57, 70, 0.15);
}

.chip.is-on.chip--dark {
  /* border-color: var(--blue); */
  /* box-shadow: 0 0 0 2px rgba(229, 57, 70, 0.2); */
}

.hero-buy .color-btns .chip:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.hero-buy .color-btns .chip:disabled:hover {
  transform: none;
}

.qty-actions .woocommerce-variation-price {
  margin: 0.35rem 0 0;
}

.qty-actions .woocommerce-variation-description {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.qty-actions form.cart .quantity {
  display: inline-flex;
  align-items: stretch;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  width: fit-content;
}

.qty-actions form.cart .quantity .qty {
  width: 3.75rem;
  min-height: 40px;
  border: none;
  text-align: center;
  font-weight: 600;
  font-family: inherit;
  background: var(--surface);
}

.hl-qty-stepper input.qty::-webkit-outer-spin-button,
.hl-qty-stepper input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.hl-qty-stepper input.qty {
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-actions form.cart .hl-qty-minus:disabled,
.qty-actions form.cart .hl-qty-plus:disabled,
.hl-qty-minus:disabled,
.hl-qty-plus:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.qty-actions .woocommerce-variation-add-to-cart,
.qty-actions form.cart:not(.variations_form) {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.qty-actions .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.qty-actions .single_add_to_cart_button:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
  color: #fff;
}

/* External product */
.qty-actions form.cart .single_add_to_cart_button[href] {
  text-decoration: none;
  text-align: center;
}

.tab-panel .comment-respond,
.tab-panel .woocommerce-Reviews,
.tab-panel .commentlist {
  /* Woo reviews trong panel */
  max-width: 100%;
}

.tab-panel .comment-form input[type="text"],
.tab-panel .comment-form input[type="email"],
.tab-panel .comment-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 2px solid var(--border);
  font-family: inherit;
}

/* —— PDP: đánh giá (WooCommerce) —— */
.hl-pdp-reviews {
  --hl-star-fill: #f59e0b;
  --hl-star-track: #e2e8f0;
  margin-top: 0.25rem;
}

.hl-reviews-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1.75rem;
  align-items: start;
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #f8fafc 0%, #fff 72%);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

@media (min-width: 720px) {
  .hl-reviews-summary {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    align-items: center;
    padding: 1.5rem 1.65rem;
  }
}

.hl-reviews-summary__score {
  text-align: center;
}

@media (min-width: 720px) {
  .hl-reviews-summary__score {
    text-align: left;
  }
}

.hl-reviews-summary__num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
  line-height: 1;
  margin-bottom: 0.45rem;
}

@media (min-width: 720px) {
  .hl-reviews-summary__num {
    justify-content: flex-start;
  }
}

.hl-reviews-summary__big {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.hl-reviews-summary__out {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
}

.hl-reviews-summary__stars-wrap .star-rating {
  float: none;
  margin: 0 auto 0.5rem;
}

@media (min-width: 720px) {
  .hl-reviews-summary__stars-wrap .star-rating {
    margin-left: 0;
    margin-right: 0;
  }
}

.hl-reviews-summary__meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.hl-reviews-summary__bars {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  min-width: 0;
}

.hl-review-bar {
  display: grid;
  grid-template-columns: 1rem 0.9rem 1fr 1.75rem;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8rem;
  color: var(--ink);
}

.hl-review-bar__label {
  font-weight: 700;
  text-align: right;
  color: var(--muted);
}

.hl-review-bar__star {
  color: var(--hl-star-fill);
  font-size: 0.72rem;
  line-height: 1;
}

.hl-review-bar__track {
  height: 8px;
  border-radius: 999px;
  background: var(--hl-star-track);
  overflow: hidden;
  min-width: 0;
}

.hl-review-bar__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  min-width: 0;
  transition: width 0.35s ease;
}

.hl-review-bar__count {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
  font-size: 0.78rem;
}

.hl-reviews-body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hl-reviews-section-heading {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.hl-reviews-heading-count {
  color: var(--blue);
  font-weight: 800;
}

.hl-reviews-heading-product {
  color: var(--muted);
  font-weight: 600;
}

.hl-reviews-commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hl-review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hl-review-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.hl-review-card .comment_container {
  display: flex;
  gap: 0.85rem 1rem;
  align-items: flex-start;
}

.hl-review-card .avatar.photo {
  border-radius: 50%;
  border: 2px solid #f1f5f9;
  flex-shrink: 0;
  width: 48px !important;
  height: 48px !important;
}

.hl-review-card .comment-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Thứ tự: tên & ngày → sao → nội dung */
.hl-review-card .comment-text .meta {
  order: 1;
}

.hl-review-card .comment-text .star-rating {
  order: 2;
}

.hl-review-card .comment-text .description {
  order: 3;
}

.hl-review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 !important;
  font-size: 0.86rem;
}

.hl-review-meta__row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.hl-review-meta .woocommerce-review__author {
  font-weight: 700;
  color: var(--ink);
}

.hl-review-meta .woocommerce-review__dash {
  color: #cbd5e1;
  margin: 0 0.15rem;
}

.hl-review-meta .woocommerce-review__published-date {
  color: var(--muted);
  font-weight: 500;
}

.hl-review-verified {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

/* Sao: lớp kép chữ ★ thay font Woo mặc định */
.hl-pdp-reviews .star-rating {
  position: relative;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2;
  width: 6.2em;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.hl-pdp-reviews .star-rating::before {
  content: "★★★★★";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--hl-star-track);
  line-height: 1.2;
  color: #f59e0b;
}

.hl-pdp-reviews .star-rating > span {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  padding-top: 1.2em;
  line-height: 0;
  font-size: 0;
}

.hl-pdp-reviews .star-rating > span::before {
  content: "★★★★★";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--hl-star-fill);
  line-height: 1.2;
  font-size: 1rem;
}

.hl-review-card .description {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #334155;
}

.hl-review-card .description p {
  margin: 0;
}

.hl-reviews-noreviews {
  margin: 0 0 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: #f8fafc;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.hl-review-form-wrap {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.hl-review-form-title {
  display: block;
  margin: 0 0 1rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.hl-review-form .hl-review-field {
  margin-bottom: 1rem;
}

.hl-review-form .hl-review-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.hl-review-form .hl-review-field input[type="text"],
.hl-review-form .hl-review-field input[type="email"],
.hl-review-form .hl-review-field textarea {
  margin-top: 0;
  padding: 10px;
  border-radius: 8px !important;
}

.hl-review-form .hl-review-field input[type="text"]:focus,
.hl-review-form .hl-review-field input[type="email"]:focus,
.hl-review-form .hl-review-field textarea:focus {
  margin-top: 0;
  padding: 10px;
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.hl-review-form .hl-review-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.hl-review-rating-field {
  margin-bottom: 1rem;
}

.hl-review-rating-field > label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.hl-review-rating-field .stars {
  margin: 0;
  padding: 0.35rem 0 0.15rem;
  line-height: 1;
}

.hl-review-rating-field .stars > span {
  display: inline-flex;
  gap: 0.18rem;
  flex-wrap: wrap;
  vertical-align: middle;
}

/* Sao chọn điểm — tương thích logic hover/active của WooCommerce */
.hl-review-rating-field p.stars a {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  text-indent: -999em;
  display: inline-block;
  text-decoration: none;
  font-size: 0;
  border-radius: 10px;
  background: #f1f5f9;
  border: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
  vertical-align: middle;
}

.hl-review-rating-field p.stars a::before {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  line-height: 1;
  font-family: inherit;
  content: "★";
  text-indent: 0;
  font-size: 1.15rem;
  color: #cbd5e1;
}

.hl-review-rating-field p.stars a:hover,
.hl-review-rating-field p.stars a:focus {
  background: #fffbeb;
  border-color: #fde68a;
  outline: none;
  transform: translateY(-1px);
}

.hl-review-rating-field p.stars:hover a::before {
  color: #f59e0b;
}

.hl-review-rating-field p.stars a:hover ~ a::before {
  color: #cbd5e1;
}

.hl-review-rating-field p.stars.selected a.active::before {
  color: #f59e0b;
}

.hl-review-rating-field p.stars.selected a.active ~ a::before {
  color: #cbd5e1;
}

.hl-review-rating-field p.stars.selected a:not(.active)::before {
  color: #f59e0b;
}

.hl-review-submit-wrap {
  margin: 0;
  padding-top: 0.25rem;
}

.hl-review-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.75rem 1.35rem;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.hl-review-submit:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.4);
  color: #fff;
}

.hl-reviews-pagination {
  margin-top: 1.25rem;
}

.hl-reviews-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hl-reviews-pagination a.page-numbers,
.hl-reviews-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
}

.hl-reviews-pagination a.page-numbers:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hl-reviews-pagination span.page-numbers.current {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.must-log-in {
  font-size: 0.9rem;
  color: var(--muted);
}

.must-log-in a {
  color: var(--blue);
  font-weight: 600;
}

/* Modal báo giá doanh nghiệp (CF7) */
.hl-pdp-quote-modal .modal-dialog {
  max-width: 560px;
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
}

.hl-pdp-quote-modal .modal-content {
  max-height: calc(100vh - 2rem);
}

.hl-pdp-quote-modal.modal.show {
  overflow-y: auto;
}

.hl-pdp-quote-modal__header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
}

.hl-pdp-quote-modal__header .modal-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}

.hl-pdp-quote-modal__close {
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: #6b7280;
  opacity: 1;
  text-shadow: none;
}

.hl-pdp-quote-modal__close:hover {
  color: var(--ink);
}

.hl-pdp-quote-modal__body {
  padding: 0;
  background: #fff;
  overflow-y: auto;
  max-height: calc(100vh - 8rem);
  -webkit-overflow-scrolling: touch;
}

.hl-pdp-quote-form-wrap {
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: #f8f9fb !important;
}

.hl-pdp-quote-modal .wpcf7-form {
  margin: 0;
}

.hl-pdp-quote-modal .wpcf7-form h5,
.hl-pdp-quote-modal .wpcf7-form .hl-quote-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.hl-pdp-quote-modal .wpcf7-form h5:not(:first-child),
.hl-pdp-quote-modal .wpcf7-form .hl-quote-section-title:not(:first-child) {
  margin-top: 1.25rem;
}

.hl-pdp-quote-modal .wpcf7-form .form-label,
.hl-pdp-quote-modal .wpcf7-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.hl-pdp-quote-modal .wpcf7-form .text-danger,
.hl-pdp-quote-modal .wpcf7-form .wpcf7-validates-as-required {
  color: #dc3545;
}

.hl-pdp-quote-modal .wpcf7-form-control:not(.wpcf7-submit),
.hl-pdp-quote-modal .wpcf7-form input[type="text"],
.hl-pdp-quote-modal .wpcf7-form input[type="email"],
.hl-pdp-quote-modal .wpcf7-form input[type="tel"],
.hl-pdp-quote-modal .wpcf7-form input[type="number"],
.hl-pdp-quote-modal .wpcf7-form textarea {
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.875rem;
  background: #fff;
}

.hl-pdp-quote-modal .wpcf7-form input[readonly] {
  background: #eef1f5;
  color: #4a5568;
}

.hl-pdp-quote-modal .wpcf7-submit,
.hl-pdp-quote-modal input.wpcf7-submit {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.hl-pdp-quote-modal .wpcf7-submit:hover {
  background: var(--blue-dark);
}

.hl-pdp-quote-modal .wpcf7-response-output {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.hl-pdp-quote-form-missing {
  padding: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.qty-actions .btn-biz {
  border: none;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
}

/* code nút */

.dowload-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding:14px 24px;
    background: var(--blue);
    color:#fff;
    text-decoration:none;
    font-size:15px;
    font-weight:600;
    font-family:Inter,system-ui,sans-serif;
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    box-shadow:
        0 1px 2px rgba(0,0,0,.25),
        inset 0 1px rgba(255,255,255,.08);
    transition:all .25s cubic-bezier(.4,0,.2,1);
	margin-bottom: 20px;
}

.dowload-btn i{
    font-size:18px;
    transition:transform .25s ease;
}

.dowload-btn:hover{
    background: var(--blue-dark);
    color:#fff;
    transform:translateY(-2px);
    box-shadow:
        0 10px 25px rgba(0,0,0,.25),
        inset 0 1px rgba(255,255,255,.08);
}

.dowload-btn:hover i{
    transform:translateY(2px);
}

.chatgpt-btn:active{
    transform:scale(.98);
}

.dowload-btn:focus{
    outline:none;
    box-shadow:
        0 0 0 4px rgba(16,163,127,.3),
        0 10px 25px rgba(0,0,0,.2);
}

.dowload-btn br{
	display: none;
}
