/* ==========================================================================
   PRODUCT DETAIL — port từ Next.js src/css/product-detail.model.css
   Sections: Hero → Main(Gallery + Info) → Showcase → Related → FAQ
   ========================================================================== */

.product-detail {
  background: #fff;
  color: #1d262d;
  overflow-x: hidden;
  max-width: 100%;
}

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

/* ---------- Reveal on scroll ---------- */
.product-detail [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  will-change: opacity, transform;
}

.product-detail [data-reveal="left"] {
  transform: translateX(-20px);
}

.product-detail [data-reveal="right"] {
  transform: translateX(20px);
}

.product-detail [data-reveal].is-revealed {
  opacity: 1;
  transform: translate(0, 0);
}

.product-detail [data-reveal-delay="1"] {
  transition-delay: 0.08s;
}

.product-detail [data-reveal-delay="2"] {
  transition-delay: 0.16s;
}

.product-detail [data-reveal-delay="3"] {
  transition-delay: 0.24s;
}

/* ============================================================
   HERO
   ============================================================ */
.product-detail__hero {
  position: relative;
  height: 34.375rem;
  color: #fff;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.product-detail__bg {
  position: absolute;
  inset: 0;
  height: 34.39838rem;
}

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

.product-detail__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0) 61%,
      rgba(0, 0, 0, 0.7) 100%);
}

.product-detail__hero-top-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 11.99rem;
  background: linear-gradient(180deg,
      rgba(19, 9, 1, 0.5) 0%,
      rgba(19, 9, 1, 0) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 1;
}

.product-detail__hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2.875rem 4.375rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-detail__hero-title {
  margin: 0;
  font-size: 2.625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.0625rem;
  text-transform: uppercase;
  color: #fff;
}

/* ============================================================
   MAIN (Gallery + Info)
   ============================================================ */
.product-detail__main {
  display: grid;
  grid-template-columns: 55.1875rem 33.25rem;
  gap: 2.5rem;
  padding: 4.375rem;
  justify-content: center;
  align-items: start;
}

/* ============================================================
   GALLERY
   ============================================================ */
.product-detail__gallery {
  position: relative;
  width: 55.1875rem;
  height: 31.5625rem;
}

.product-detail__gallery-main {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0.625rem;
  overflow: hidden;
  background: #1e1e1e;
}

.product-detail__gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transform-origin: center;
  transition:
    opacity 0.55s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-detail__gallery-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.product-detail__gallery-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5.99rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
  pointer-events: none;
  z-index: 1;
}

.product-detail__gallery-arrow {
  position: absolute;
  top: 50%;
  width: 5.34rem;
  height: 5.34rem;
  transform: translateY(-50%);
  border-radius: 50%;

  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  color: #1d262d;
  transition: background 0.2s;
  fill: rgba(255, 255, 255, 0.2);
  stroke-width: 1px;
  stroke: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(7px);
}

.product-detail__gallery-arrow:hover {}

.product-detail__gallery-arrow--left {
  left: -2.65rem;
}

.product-detail__gallery-arrow--right {
  right: -2.65rem;
}

.product-detail__gallery-arrow svg {
  width: 1.05rem;
  height: auto;
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7496%) hue-rotate(354deg) brightness(104%) contrast(101%);
  margin-left: 2.65rem;
}

.product-detail__gallery-arrow--right svg {
  margin-left: 0;
  margin-right: 2.65rem;
}

.product-detail__thumbs {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5325rem;
  z-index: 2;
  transition:
    opacity 0.45s ease 0.12s,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.product-detail__gallery[data-reveal]:not(.is-revealed) .product-detail__thumbs {
  opacity: 0;
  transform: translate(-50%, 0.75rem);
  pointer-events: none;
}

.product-detail__thumb {
  width: 3.67rem;
  height: 2.72rem;
  border-radius: 0.25rem;
  overflow: hidden;
  cursor: pointer;
  border: 0.05rem solid transparent;
  padding: 0;
  background: #000;
  position: relative;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.product-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition:
    opacity 0.25s ease,
    transform 0.45s ease;
}

.product-detail__thumb:hover {
  transform: translateY(-0.12rem);
}

.product-detail__thumb.is-active {
  border-color: #fff;
  box-shadow: 0 0 1.83rem rgba(255, 255, 255, 0.25);
}

.product-detail__thumb.is-active img {
  opacity: 1;
  transform: scale(1.04);
}

/* ============================================================
   INFO
   ============================================================ */
.product-detail__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 31.5625rem;
  width: 33.25rem;
}

.product-detail__info-head {
  display: flex;
  flex-direction: column;
  gap: 0.5625rem;
}

.product-detail__collection {
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: #999;
  opacity: 0.9;
  line-height: 1.4;
  text-transform: uppercase;
}

.product-detail__info-head h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  color: #000;
}

.product-detail__desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #676767;
  opacity: 0.9;
}

.product-detail__info-body {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.product-detail__specs {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.product-detail__specs li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 1rem;
  line-height: 1.2;
  color: #000;
}

.product-detail__specs li span {
  flex: none;
  width: 6.25rem;
  opacity: 0.6;
}

.product-detail__specs li strong {
  font-weight: 400;
}

/* ------------------------------------------------------------
   SPECS OPTION — WYSIWYG (nội dung tự do từ ACF Wysiwyg Editor)
   Bao phủ mọi tag editor có thể sinh ra: heading, list, table,
   image, blockquote, embed, code, align classes của WordPress.
   ------------------------------------------------------------ */
.product-detail__specs_option {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #000;
  /* flex child: cho phép co lại, không đẩy vỡ layout khi nội dung dài */
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding: 0.625rem 0;
}

/* Editor (TinyMCE / paste từ Word, Google Docs) chèn inline
   style="font-size:14px; font-family:Arial" → phá typography của theme.
   Inline style thắng CSS thường nên phải ép bằng !important.
   Selector `*` có specificity (0,1,0) → mọi rule tag/class bên dưới
   (0,1,1) trở lên vẫn override được, miễn có !important. */
.product-detail__specs_option * {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.product-detail__specs_option>*:first-child {
  margin-top: 0;
}

.product-detail__specs_option>*:last-child {
  margin-bottom: 0;
}

/* Block text */
.product-detail__specs_option p {
  margin: 0 0 0.75rem;
  color: #676767;
  opacity: 0.9;
}

.product-detail__specs_option p:empty {
  display: none;
}

/* Headings */
.product-detail__specs_option h1,
.product-detail__specs_option h2,
.product-detail__specs_option h3,
.product-detail__specs_option h4,
.product-detail__specs_option h5,
.product-detail__specs_option h6 {
  margin: 1.25rem 0 0.625rem;
  font-weight: 600;
  line-height: 1.25 !important;
  letter-spacing: -0.01em;
  color: #000;
}

.product-detail__specs_option h1 {
  font-size: 1.75rem !important;
}

.product-detail__specs_option h2 {
  font-size: 1.5rem !important;
}

.product-detail__specs_option h3 {
  font-size: 1.25rem !important;
}

.product-detail__specs_option h4 {
  font-size: 1.125rem !important;
}

.product-detail__specs_option h5 {
  font-size: 1rem !important;
}

.product-detail__specs_option h6 {
  font-size: 0.875rem !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #676767;
}

/* Inline */
.product-detail__specs_option strong,
.product-detail__specs_option b {
  font-weight: 600;
  color: #000;
}

.product-detail__specs_option em,
.product-detail__specs_option i {
  font-style: italic;
}

.product-detail__specs_option u {
  text-underline-offset: 0.15em;
}

.product-detail__specs_option s,
.product-detail__specs_option del,
.product-detail__specs_option strike {
  text-decoration: line-through;
  opacity: 0.7;
}

.product-detail__specs_option mark {
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  padding: 0 0.1875rem;
  border-radius: 0.125rem;
}

.product-detail__specs_option small {
  font-size: 0.875rem !important;
}

.product-detail__specs_option sub,
.product-detail__specs_option sup {
  font-size: 0.75em !important;
  line-height: 0 !important;
}

.product-detail__specs_option abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

/* Links */
.product-detail__specs_option a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: opacity 0.2s;
}

.product-detail__specs_option a:hover {
  opacity: 0.6;
}

.product-detail__specs_option a:focus-visible {
  outline: 1px solid #000;
  outline-offset: 0.125rem;
}

/* Lists */
.product-detail__specs_option ul,
.product-detail__specs_option ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  color: #676767;
}

.product-detail__specs_option ul {
  list-style: disc;
}

.product-detail__specs_option ol {
  list-style: decimal;
}

.product-detail__specs_option li {
  margin-bottom: 0.375rem;
  line-height: 1.5 !important;
}

.product-detail__specs_option li:last-child {
  margin-bottom: 0;
}

.product-detail__specs_option li>ul,
.product-detail__specs_option li>ol {
  margin: 0.375rem 0 0;
}

.product-detail__specs_option ul ul {
  list-style: circle;
}

.product-detail__specs_option ul ul ul {
  list-style: square;
}

.product-detail__specs_option ol ol {
  list-style: lower-alpha;
}

.product-detail__specs_option li::marker {
  color: rgba(0, 0, 0, 0.45);
}

/* Definition list */
.product-detail__specs_option dl {
  margin: 0 0 0.75rem;
}

.product-detail__specs_option dt {
  font-weight: 600;
  color: #000;
}

.product-detail__specs_option dd {
  margin: 0 0 0.5rem;
  padding-left: 1rem;
  color: #676767;
}

/* Blockquote */
.product-detail__specs_option blockquote {
  margin: 1rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 2px solid rgba(0, 0, 0, 0.2);
  font-style: italic;
  color: #444;
}

.product-detail__specs_option blockquote p:last-child {
  margin-bottom: 0;
}

.product-detail__specs_option blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem !important;
  font-style: normal;
  color: #999;
}

/* Divider */
.product-detail__specs_option hr {
  margin: 1.25rem 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  height: 0;
}

/* Table */
.product-detail__specs_option table {
  width: 100%;
  margin: 0 0 1rem;
  border-collapse: collapse;
  font-size: 0.9375rem !important;
  color: #000;
}

.product-detail__specs_option table caption {
  margin-bottom: 0.5rem;
  font-size: 0.875rem !important;
  color: #999;
  text-align: left;
}

.product-detail__specs_option th,
.product-detail__specs_option td {
  padding: 0.5rem 0.625rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  text-align: left;
  vertical-align: top;
  line-height: 1.4 !important;
}

.product-detail__specs_option th {
  font-weight: 600;
  background: rgba(0, 0, 0, 0.04);
}

.product-detail__specs_option td p:last-child {
  margin-bottom: 0;
}

/* Media */
.product-detail__specs_option img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0.375rem;
}

.product-detail__specs_option figure {
  margin: 1rem 0;
  max-width: 100%;
}

.product-detail__specs_option figcaption,
.product-detail__specs_option .wp-caption-text {
  margin-top: 0.375rem;
  font-size: 0.8125rem !important;
  line-height: 1.4 !important;
  color: #999;
  text-align: center;
}

.product-detail__specs_option .wp-caption {
  max-width: 100%;
  margin: 1rem 0;
}

.product-detail__specs_option iframe,
.product-detail__specs_option video,
.product-detail__specs_option embed,
.product-detail__specs_option object {
  max-width: 100%;
  width: 100%;
  height: 18.75rem;
  display: block;
  margin: 1rem 0;
  border: 0;
  border-radius: 0.375rem;
}

.product-detail__specs_option .wp-video,
.product-detail__specs_option .wp-video-shortcode {
  max-width: 100% !important;
  width: 100% !important;
}

/* WordPress alignment */
.product-detail__specs_option .aligncenter {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.product-detail__specs_option .alignleft {
  float: left;
  margin: 0.25rem 1rem 0.75rem 0;
  max-width: 50%;
}

.product-detail__specs_option .alignright {
  float: right;
  margin: 0.25rem 0 0.75rem 1rem;
  max-width: 50%;
}

.product-detail__specs_option .alignnone {
  margin: 0.5rem 0;
}

.product-detail__specs_option .alignwide,
.product-detail__specs_option .alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.product-detail__specs_option::after {
  content: "";
  display: block;
  clear: both;
}

.product-detail__specs_option .has-text-align-center {
  text-align: center;
}

.product-detail__specs_option .has-text-align-right {
  text-align: right;
}

.product-detail__specs_option .has-text-align-left {
  text-align: left;
}

.product-detail__specs_option .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Code */
.product-detail__specs_option code,
.product-detail__specs_option kbd,
.product-detail__specs_option samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 0.875em !important;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.125rem 0.3125rem;
  border-radius: 0.1875rem;
}

.product-detail__specs_option pre {
  margin: 0 0 1rem;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 0.375rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  -webkit-overflow-scrolling: touch;
}

.product-detail__specs_option pre code {
  background: none;
  padding: 0;
  font-size: inherit !important;
}

/* Details / summary */
.product-detail__specs_option details {
  margin: 0 0 0.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.375rem;
}

.product-detail__specs_option summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.product-detail__specs_option summary::-webkit-details-marker {
  display: none;
}

.product-detail__specs_option details[open] summary {
  margin-bottom: 0.5rem;
}

.product-detail__colors {
  display: flex;
  flex-direction: column;
  gap: 0.5625rem;
  margin-top: 0.625rem;
}

.product-detail__colors-label {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.2;
}

.product-detail__colors-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  gap: 0.625rem;
}

.product-detail__color-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.2;
  padding: 0.375rem 1.5rem;
  border: 1px solid #000;
  border-radius: 0.25rem;
  background: #fff;
  color: #000;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.product-detail__color-chip:hover {
  background: rgba(0, 0, 0, 0.06);
}

.product-detail__color-chip.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.product-detail__cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 33.25rem;
  max-width: calc(100vw - 2rem);
  padding: 0;
  background: #fff;
  border-radius: 0.625rem;
  box-shadow: 0;
}

.product-detail__cta-zalo,
.product-detail__cta-zalo:link,
.product-detail__cta-zalo:visited {
  flex: 1;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.5rem;
  padding: 0.75rem 2rem;
  background: #1d1d1d;
  color: #fff !important;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  width: auto;
  box-sizing: border-box;
  white-space: nowrap;
}

.product-detail__cta-zalo span {
  white-space: nowrap;
}

.product-detail__cta-zalo:hover {
  background: #333;
}

.product-detail__cta-zalo svg {
  width: 1.25rem;
  height: auto;
  flex-shrink: 0;
}

.product-detail__cta-share {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid #000;
  border-radius: 0.375rem;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.product-detail__cta-share:hover {
  background: rgba(0, 0, 0, 0.06);
}

.product-detail__cta-share svg {
  width: 1.16rem;
  height: 1.06rem;
}

/* ============================================================
   SHOWCASE (Swiper)
   ============================================================ */
.product-detail__showcase {
  position: relative;
  padding: 4.375rem 0;
  overflow: hidden;
}

.product-detail__showcase .product-detail__showcase-swiper {
  width: 100%;
  overflow: visible;
}

.product-detail__showcase .swiper-wrapper {
  align-items: center;
}

.product-detail__showcase .product-detail__showcase-slide {
  width: 68.7363rem;
  height: 44.75rem;
  border-radius: 0.625rem;
  overflow: hidden;
  position: relative;
  background: #1e1e1e;
  flex-shrink: 0;
}

.product-detail__showcase .product-detail__showcase-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  transition: opacity 0.4s;
}

.product-detail__showcase .swiper-slide-active img,
.product-detail__showcase .product-detail__showcase-slide.is-active img {
  opacity: 1;
}

.product-detail__showcase-pager {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 2.1875rem;
  pointer-events: none;
  z-index: 2;
}

.product-detail__showcase-pager-side {
  display: flex;
  align-items: center;
  gap: 0.9375rem;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.product-detail__showcase-pager-side strong {
  font-weight: 400;
  line-height: 1.25;
}

.product-detail__showcase-pager-side .line {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: #fff;
}

.product-detail__showcase-pager-mb {
  display: none;
}

/* ============================================================
   RELATED
   ============================================================ */
.product-detail__related {
  background: #fafafa;
  padding: 6.25rem 4.375rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.product-detail__related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.product-detail__related-head>div {
  display: flex;
  flex-direction: column;

  justify-content: center;
  gap: 1.5rem;
}

.product-detail__related-head span {
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(37, 37, 37, 0.7);
}

.product-detail__related-head h2 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: #000;
}

.button-mobile .button,
.button-mobile a.button,
.product-detail__related-desktop-btn .button,
.product-detail__related-desktop-btn a.button {
  border: 1px solid rgba(29, 38, 45, 0.47);
}

.product-detail__related-desktop-btn {
  flex-shrink: 0;
}

.product-detail__related-head .button,
.product-detail__related-head a.button {
  transition:
    padding-right 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.product-detail__related-head .button:hover,
.product-detail__related-head a.button:hover,
.product-detail__related-head .button:focus-visible,
.product-detail__related-head a.button:focus-visible {
  background: #000;
  color: #fff;
  border-color: #000;
}

.button-mobile {
  display: none;
}

.product-detail__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-detail__related-card {
  background: #fff;
  border-radius: 0.625rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
}

.product-detail__related-image {
  display: block;
  width: 100%;
  height: 19.875rem;
  overflow: hidden;
}

.product-detail__related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-detail__related-card:hover .product-detail__related-image img {
  transform: scale(1.05);
}

.product-detail__related-body {
  display: flex;
  flex-direction: column;
  gap: 0.1875rem;
  padding: 0 1.125rem;
}

.product-detail__related-body span {
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: #999;
  line-height: 1.4;
  text-transform: uppercase;
}

.product-detail__related-body a,
.product-detail__related-body a:link,
.product-detail__related-body a:visited {
  color: #1d262d;
  text-decoration: none;
  width: auto;
  display: block;
}

.product-detail__related-body h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  color: #1d262d;
}

/* ============================================================
   FAQ
   ============================================================ */
.product-detail__faq {
  position: relative;
  background: #fafafa;
  padding: 4.375rem 4.375rem 0;
  overflow: hidden;
  min-height: 70.1875rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.product-detail__faq-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.product-detail__faq-bg picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.product-detail__faq-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail__faq-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      #fafafa 0%,
      rgba(250, 250, 250, 0.85) 15%,
      rgba(255, 255, 255, 0) 72%);
}

.product-detail__faq-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.8125rem;
  width: 53.4375rem;
  padding-top: 0.625rem;
}

.product-detail__faq-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-detail__faq-head span {
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(37, 37, 37, 0.7);
}

.product-detail__faq-head h2 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: #1d262d;
}

.product-detail__faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.product-detail__faq-item {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10.6px);
  -webkit-backdrop-filter: blur(10.6px);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: background 0.3s;
}

.product-detail__faq-item.is-open {
  background: rgba(255, 255, 255, 0.95);
}

.product-detail__faq-item>button {
  width: 100%;
  padding: 1.125rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  letter-spacing: -0.03em;
  color: #000;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1.2;
}

.product-detail__faq-item>button svg {
  width: 1rem;
  height: 1rem;
  color: #1d262d;
  flex-shrink: 0;
  transition: transform 0.25s;
}

.product-detail__faq-item.is-open>button svg {
  transform: rotate(180deg);
}

.product-detail__faq-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
  will-change: max-height, opacity;
}

.product-detail__faq-item.is-open .product-detail__faq-content {
  opacity: 1;
}

.product-detail__faq-content-inner {
  /* lớp inner để JS đọc scrollHeight chính xác, không ảnh hưởng bởi max-height của parent */
  padding: 0;
}

.product-detail__faq-content-inner p:empty {
  display: none;
}

.product-detail__faq-item p {
  margin: 0;
  padding: 0 1.5rem 1.125rem;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.6);
  opacity: 0.9;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .product-detail {
    padding-bottom: 0;
  }

  @supports (overflow: clip) {
    .product-detail {
      overflow-x: clip;
    }
  }

  /* Hero */
  .product-detail__hero {
    height: 11.00525rem;
    margin-top: 3.43rem;
  }

  .product-detail__hero-overlay {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 45%,
        rgba(0, 0, 0, 0.9) 100%);
  }

  .product-detail__hero-top-gradient {
    display: none;
  }

  .product-detail__hero-content {
    padding: 1rem 1rem 0.625rem;
  }

  .product-detail__hero-title {
    font-size: 1.375rem;
    letter-spacing: -0.0439rem;
  }

  /* Main */
  .product-detail__main {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
    gap: 0;
    padding-top: 2.25rem;
    justify-content: stretch;
  }

  /* min-width:0 cho phép cột 1fr co lại bằng container (mặc định grid item
     có min-width:auto = min-content → nội dung nowrap làm tràn 2 bên) */
  .product-detail__gallery,
  .product-detail__info {
    width: 100%;
    height: auto;
    min-height: 0;
    min-width: 0;
  }

  /* Gallery */
  .product-detail__gallery {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
  }

  .product-detail__gallery-main {
    width: 100%;
    height: 11.1875rem;
    border-radius: 0.26rem;
  }

  .product-detail__gallery-arrow {
    width: 2.5rem;
    height: 2.5rem;
    display: none;
  }

  .product-detail__gallery-arrow--left {
    left: 0.5rem;
  }

  .product-detail__gallery-arrow--right {
    right: 0.5rem;
  }

  .product-detail__gallery-arrow svg,
  .product-detail__gallery-arrow--right svg {
    margin: 0;
    width: 0.875rem;
  }

  .product-detail__thumbs {
    position: static;
    transform: none;
    bottom: auto;
    left: auto;
    display: flex;
    gap: 0.5575rem;
    z-index: auto;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .product-detail__gallery[data-reveal]:not(.is-revealed) .product-detail__thumbs {
    transform: translateY(0.5rem);
  }

  .product-detail__thumb {
    flex: 0 0 3.84113rem;
    width: 3.84113rem;
    min-width: 3.84113rem;
    height: 2.84788rem;
    border-radius: 0.26rem;
    opacity: 0.5;
  }

  .product-detail__thumb img {
    opacity: 0.8;
  }

  .product-detail__thumb.is-active {
    opacity: 1;
    border: none;
    box-shadow: 0 0 1.915rem rgba(255, 255, 255, 0.25);
  }

  .product-detail__thumb.is-active img {
    opacity: 1;
  }

  /* Info */
  .product-detail__info {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .product-detail__info[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .product-detail__info-head {
    gap: 0.5625rem;
    margin-bottom: 0.6875rem;
  }

  .product-detail__collection {
    font-size: 0.75rem;
    letter-spacing: -0.0075rem;
  }

  .product-detail__info-head h2 {
    font-size: 1.375rem;
  }

  .product-detail__desc {
    font-size: 0.875rem;
    letter-spacing: -0.00875rem;
  }

  .product-detail__info-body {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .product-detail__specs {
    padding-top: 0;
    border-top: none;
    gap: 0.625rem;
  }

  .product-detail__specs::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
    margin-bottom: 0.125rem;
  }

  .product-detail__specs li {
    font-size: 0.875rem;
    align-items: flex-start;
    flex-direction: row;
    gap: 0.75rem;
  }

  .product-detail__specs li span {
    width: 6.25rem;
    flex: none;
  }

  .product-detail__specs li strong {
    flex: 1;
    text-align: left;
  }

  /* Specs option — WYSIWYG mobile */
  .product-detail__specs_option {
    font-size: 0.875rem;
    letter-spacing: -0.00875rem;
  }

  /* nhắc lại rule ép inline style cho scope mobile */
  .product-detail__specs_option * {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
  }

  .product-detail__specs_option p,
  .product-detail__specs_option ul,
  .product-detail__specs_option ol,
  .product-detail__specs_option dl {
    margin-bottom: 0.625rem;
  }

  .product-detail__specs_option h1,
  .product-detail__specs_option h2,
  .product-detail__specs_option h3,
  .product-detail__specs_option h4,
  .product-detail__specs_option h5,
  .product-detail__specs_option h6 {
    margin: 1rem 0 0.5rem;
  }

  .product-detail__specs_option h1 {
    font-size: 1.25rem !important;
  }

  .product-detail__specs_option h2 {
    font-size: 1.125rem !important;
  }

  .product-detail__specs_option h3 {
    font-size: 1rem !important;
  }

  .product-detail__specs_option h4,
  .product-detail__specs_option h5 {
    font-size: 0.9375rem !important;
  }

  .product-detail__specs_option h6 {
    font-size: 0.8125rem !important;
  }

  .product-detail__specs_option ul,
  .product-detail__specs_option ol {
    padding-left: 1.125rem;
  }

  .product-detail__specs_option li {
    margin-bottom: 0.3125rem;
  }

  .product-detail__specs_option blockquote {
    margin: 0.75rem 0;
    padding-left: 0.75rem;
  }

  .product-detail__specs_option hr {
    margin: 1rem 0;
  }

  /* Bảng rộng → cuộn ngang trong khung, không đẩy vỡ layout */
  .product-detail__specs_option table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 0.8125rem !important;
    margin-bottom: 0.75rem;
  }

  .product-detail__specs_option th,
  .product-detail__specs_option td {
    padding: 0.4375rem 0.5rem;
  }

  .product-detail__specs_option figure,
  .product-detail__specs_option .wp-caption {
    margin: 0.75rem 0;
  }

  .product-detail__specs_option iframe,
  .product-detail__specs_option video,
  .product-detail__specs_option embed,
  .product-detail__specs_option object {
    height: 12.5rem;
    margin: 0.75rem 0;
  }

  /* Ảnh float trên mobile dễ vỡ chữ → ép về block full width */
  .product-detail__specs_option .alignleft,
  .product-detail__specs_option .alignright {
    float: none;
    display: block;
    max-width: 100%;
    margin: 0.75rem auto;
  }

  .product-detail__specs_option pre {
    padding: 0.75rem;
    font-size: 0.8125rem !important;
  }

  .product-detail__colors {
    gap: 0.5625rem;
    margin-top: 0;
  }

  .product-detail__colors-label {
    font-size: 0.875rem;
    opacity: 0.6;
    color: #000;
  }

  .product-detail__color-chip {
    font-size: 0.875rem;
    padding: 0.375rem 1.5rem;
  }

  .product-detail__cta {
    position: sticky;
    bottom: 0;
    z-index: 99;
    width: calc(100% + 2rem);
    max-width: none;
    margin: 0 -1rem;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom));
    border-radius: 0;
    box-shadow: 0 -0.5rem 1.5rem rgba(0, 0, 0, 0.08);
  }

  .product-detail__faq-head {
    gap: 0.38em;
  }

  /* match base specificity (0,2,0) để override thắng a:link */
  .product-detail__cta-zalo,
  .product-detail__cta-zalo:link,
  .product-detail__cta-zalo:visited {
    min-height: 3rem;
    height: 3rem;
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .product-detail__bg {
    height: 11.00525rem;
  }

  .product-detail__cta-share {
    width: 3rem;
    height: 3rem;
  }

  /* Showcase */
  .product-detail__showcase {
    padding: 1.25rem 1rem;
    overflow: visible;
    padding-top: 0;
    padding-bottom: 2.25rem;
  }

  .product-detail__showcase .product-detail__showcase-swiper {
    overflow: hidden;
    border-radius: 0.5rem;
  }

  .product-detail__showcase .product-detail__showcase-slide {
    width: 100%;
    height: 11.1875rem;
    border-radius: 0.5rem;
    background: transparent;
  }

  .product-detail__showcase .product-detail__showcase-slide img {
    opacity: 1;
  }

  .product-detail__showcase-pager {
    display: none;
  }

  .product-detail__showcase-pager-mb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.625rem;
    font-size: 0.625rem;
    line-height: 0.481rem;
    color: #000;
  }

  .product-detail__faq-list {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .product-detail__showcase-pager-mb-line {
    display: inline-block;
    width: 1.585rem;
    height: 0.0625rem;
    background: #000;
  }

  .product-detail__related-card {
    border-radius: 0.625rem;
    background: #FFF;
    box-shadow: 0 4px 15.2px 0 rgba(0, 0, 0, 0.09);
  }

  /* Related */
  .product-detail__related {
    padding: 2.5rem 1rem;
    gap: 1.25rem;
    padding-top: 2.25rem;
  }

  .product-detail__related-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .product-detail__related-head.is-revealed {
    align-items: center;
    text-align: center;
  }

  .product-detail__related-head.is-revealed>div {
    align-items: center;
  }

  .product-detail__related-head h2 {
    font-size: 1.25rem;
  }

  .product-detail__related-desktop-btn {
    display: none !important;
  }

  .product-detail__related-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-detail__related-image {
    height: 12rem;
  }

  .product-detail__related-body h3 {
    font-size: 1rem;
  }

  .button-mobile {
    display: block;
  }

  .button-mobile .button,
  .button-mobile a.button {
    display: flex;
    width: 100%;
  }

  /* FAQ */
  .product-detail__faq {
    padding: 0;
    min-height: 0;
    height: 63.3125rem;

    padding-bottom: 2.5rem;
  }

  .product-detail__faq-inner {
    width: 100%;
  }

  .product-detail__faq-head {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .product-detail__faq-head h2 {
    font-size: 1.25rem;
  }

  .product-detail__faq-bg img {
    object-fit: cover;
  }

  .product-detail__faq-item>button {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }

  .product-detail__faq-item p {
    padding: 0 1rem 0.875rem;
    font-size: 0.875rem;
  }
}