/* ============================================================
   Luxshine Hair — Product Detail Page (PDP)
   Built from Figma 201-8592. DS tokens only; reuses shop.css
   (.product-card, .filter-group chev) + base .btn / .sec-head.
   ============================================================ */

.pdp { position: relative; }

/* Left-aligned section header (title with gold highlight; no eyebrow — user 2026-10-14) */
.pdp-sec-head { display: flex; flex-direction: column; gap: var(--space-2); }
.pdp-sec-head__eyebrow { font-size: var(--body-size); color: var(--text-secondary); text-transform: capitalize; }
.pdp-sec-head__title {
  font-family: var(--font-heading);
  font-size: var(--h3-size); line-height: var(--h3-lh);
  text-transform: uppercase; color: var(--color-black);
}

/* ---------- Product main (gallery | info) ---------- */
.pdp-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
  /* Side padding comes from .container (24px), so this block sits on the same 1352px frame as the
     breadcrumb, the description and the FAQ. It used to be padding: 0, 24px wider on each side. */
  padding-block: 0;
}

/* Gallery */
.pdp-gallery { display: flex; gap: var(--space-4); }
/* The square main image sets the gallery's height; the thumbnail column fills that height: its
   arrows at the two ends, and the track taking everything between them. */
.pdp-thumbs { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: var(--space-2); flex: 0 0 124px; }
/* Scrollable thumbnail track + up/down arrows for more images. It grows to the column's full height;
   a thumbnail cut off at the bottom edge shows there is more to scroll to. */
.pdp-thumbs__track { display: flex; flex-direction: column; flex: 1 1 0; gap: var(--space-4); width: 124px; min-height: 0; overflow: hidden; scroll-behavior: smooth; }
.pdp-thumbs__arrow {
  flex: none; width: 124px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--grey-400); background: var(--color-white); cursor: pointer;
  transition: border-color .15s ease, opacity .15s ease;
}
.pdp-thumbs__arrow:hover:not(:disabled) { background: var(--color-primary); border-color: var(--color-primary); }
.pdp-thumbs__arrow:disabled { opacity: .3; cursor: not-allowed; }
.pdp-thumbs__arrow-ico {
  width: 16px; height: 16px; background: var(--color-black);
  -webkit-mask: url("../assets/icons/chevron-up.svg") no-repeat center / 16px;
  mask: url("../assets/icons/chevron-up.svg") no-repeat center / 16px;
}
.pdp-thumbs__arrow--down .pdp-thumbs__arrow-ico {
  -webkit-mask-image: url("../assets/icons/chevron-down.svg");
  mask-image: url("../assets/icons/chevron-down.svg");
}
.pdp-thumb {
  flex: none;
  width: 124px; height: 124px;
  padding: 0; border: 1px solid var(--grey-400); background: var(--grey-500);
  overflow: hidden; cursor: pointer;
  transition: border-color .2s ease;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb[aria-current="true"] { border-color: var(--color-primary); border-width: 2px; }
.pdp-thumb:hover { border-color: var(--color-primary); }
.pdp-stage {
  flex: 1 1 auto; align-self: flex-start;
  aspect-ratio: var(--ty-le-san_pham);
  background: var(--grey-500);
  overflow: hidden;
}
.pdp-stage img { width: 100%; height: 100%; object-fit: cover; }

/* Sticky gallery — "fit screen" khi cuộn phần info (user chốt 2026-10-08).
   Ghim dưới header một hàng (72px) + 24px, cao vừa viewport; chỉ desktop, layout xếp dọc ≤1024 không ghim. */
@media (min-width: 1025px) {
  .pdp-gallery {
    position: sticky;
    top: var(--space-24);                                  /* header 72 + 24 */
    max-height: calc(100dvh - var(--space-24) - var(--space-8)); /* vp - 96 - 32 */
  }
  .pdp-stage { min-height: 0; }
}

/* Info column */
.pdp-info { display: flex; flex-direction: column; gap: var(--space-6); }
.pdp-desc { color: var(--text-secondary); font-size: var(--body-size); line-height: var(--body-lh); max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pdp-head { display: flex; flex-direction: column; gap: var(--space-2); }
.pdp-viewers {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--body-size); line-height: var(--body-lh); font-weight: 600; color: var(--color-error);
}
.pdp-viewers__ico {
  width: 16px; height: 16px; flex: 0 0 16px;
  background: currentColor;
  -webkit-mask: url("../assets/icons/eye.svg") no-repeat center / 16px;
  mask: url("../assets/icons/eye.svg") no-repeat center / 16px;
}
.pdp-title {
  font-family: var(--font-heading);
  font-size: var(--h4-size); line-height: var(--h4-lh);
  text-transform: uppercase; color: var(--color-black);
}
.pdp-divider { height: 1px; border: 0; background: var(--grey-400); margin: 0; }
/* The title and the SKU / status lines read as one group: 8px apart inside the column's 24px rhythm. */
.pdp-head + .pdp-meta { margin-top: calc(var(--space-4) * -1); }
/* Breadcrumb on the product page: 16px above and below. */
main:has(> .pdp-main) > .breadcrumb { padding-block: var(--space-4); }

.pdp-meta { display: flex; flex-direction: column; gap: var(--space-2); }
.pdp-meta__row { display: flex; gap: var(--space-2); font-size: var(--body-size); line-height: var(--body-lh); }
.pdp-meta__label { flex: 0 0 95px; font-weight: 600; color: var(--color-black); }
.pdp-meta__val { color: var(--text-secondary); }
.pdp-meta__link { color: var(--color-font); text-decoration: underline; text-underline-offset: 2px; transition: color .2s ease; }
.pdp-meta__link:hover, .pdp-meta__link:focus-visible { color: var(--primary-600); }
.pdp-meta__inline { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-4); }
.pdp-meta__inline .pdp-meta__label { flex: 0 0 auto; }
.pdp-meta__sep { flex: 0 0 auto; width: 1px; height: 16px; background: var(--grey-400); }
.pdp-status { color: var(--color-black); }
.pdp-status__count { font-weight: 700; color: var(--color-success); }

/* Color swatches */
.pdp-color { display: flex; flex-direction: column; gap: var(--space-2); }
/* A class selector beats the UA [hidden] rule — restore hide-when-hidden so the
   colour/length pickers can be toggled by arrival context (from=color|length). */
.pdp-color[hidden], .pdp-length[hidden] { display: none; }
.pdp-color__head { font-size: var(--body-size); }
.pdp-color__head b { font-weight: 600; }
.pdp-swatches { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pdp-swatch {
  position: relative; box-sizing: border-box;
  width: 56px; height: 56px; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid transparent; background: transparent;
}
.pdp-swatch input { position: absolute; opacity: 0; width: 0; height: 0; }
.pdp-swatch__img { width: 40px; height: 40px; object-fit: cover; display: block; }
.pdp-swatch:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary); }
.pdp-swatch:has(input:focus-visible) { border-color: var(--color-primary); }

/* Length picker (shown when arriving from a colour listing) */
.pdp-standard { display: flex; flex-direction: column; gap: var(--space-3); }
.pdp-length { display: flex; flex-direction: column; gap: var(--space-3); }
.pdp-lengths { flex-wrap: wrap; }
.pdp-length-opt { position: relative; cursor: pointer; }
.pdp-length-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.pdp-length-opt span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 40px; padding: 0 var(--space-3);
  border: 1px solid var(--border-strong); border-radius: 0;
  font-size: 14px; color: var(--color-black);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.pdp-length-opt span:hover { border-color: var(--color-black); }
.pdp-length-opt input:checked + span { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-black); }
.pdp-length-opt input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Product option rows (Standard / Quality / Texture / Color / Length) — label-left layout
   theo Figma ref (user chốt 2026-10-08, cmuz0714sgcyh) */
.pdp-opts { display: flex; flex-direction: column; gap: var(--space-5); }
.pdp-opt { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-4); align-items: start; }
.pdp-opt__label { height: 40px; display: flex; align-items: center; font-size: var(--caption-size); line-height: var(--caption-lh); letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); font-weight: 400; }
.pdp-opt__pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pdp-opt__group { display: flex; flex-direction: column; gap: var(--space-3); }
@media (max-width: 640px) {
  .pdp-opt { grid-template-columns: 1fr; gap: var(--space-2); }
  .pdp-opt__label { height: auto; }
}

/* Quantity stepper */
.pdp-qty { display: flex; align-items: center; gap: var(--space-4); }
.pdp-qty__label { font-size: var(--body-size); font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--grey-400); height: 42px; }
.qty__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 100%; border: 0; background: transparent; cursor: pointer;
}
.qty__ico { width: 16px; height: 16px; background: var(--color-black); }
.qty__btn--minus .qty__ico { -webkit-mask: url("../assets/icons/minus.svg") no-repeat center / 16px; mask: url("../assets/icons/minus.svg") no-repeat center / 16px; }
.qty__btn--plus .qty__ico { -webkit-mask: url("../assets/icons/plus.svg") no-repeat center / 16px; mask: url("../assets/icons/plus.svg") no-repeat center / 16px; }
.qty__btn:hover { background: var(--grey-200); }
.qty__input {
  width: 56px; height: 100%; border: 0; border-inline: 1px solid var(--grey-400);
  text-align: center; font: inherit; font-weight: 600; color: var(--color-black);
  -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Main CTA (inquiry) — label sits outside; button shows WhatsApp icon + number */
.pdp-cta-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.pdp-cta__label { font-size: var(--body-size); line-height: var(--body-lh); color: var(--color-black); }
.pdp-cta {
  align-self: flex-start;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: 0;
}
.pdp-cta:hover,
.pdp-cta:focus-visible { background: var(--color-primary); color: var(--color-black); }
.pdp-cta__ico {
  width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("../assets/icons/whatsapp.svg") no-repeat center / 20px;
  mask: url("../assets/icons/whatsapp.svg") no-repeat center / 20px;
}

/* Product info accordion */
.pdp-acc { display: flex; flex-direction: column; margin-top: var(--space-2); }
.pdp-acc__item { border-top: 1px solid var(--grey-400); }
.pdp-acc__item:last-child { border-bottom: 1px solid var(--grey-400); }
.pdp-acc__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding-block: var(--space-4);
  list-style: none; cursor: pointer;
  font-weight: 600; font-size: var(--body-size); color: var(--color-black);
}
.pdp-acc__head::-webkit-details-marker { display: none; }
.pdp-acc__chev {
  width: 16px; height: 16px; flex: 0 0 16px;
  background: var(--color-black);
  -webkit-mask: url("../assets/icons/keyboard-arrow-down.svg") no-repeat center / 16px;
  mask: url("../assets/icons/keyboard-arrow-down.svg") no-repeat center / 16px;
  transition: transform .2s ease;
}
.pdp-acc__item[open] .pdp-acc__chev { transform: rotate(180deg); }
.pdp-acc__body { padding-bottom: var(--space-4); color: var(--text-secondary); font-size: var(--body-size); line-height: var(--body-lh); }
.pdp-acc__body p + p { margin-top: var(--space-3); }
/* Tip Guidelines: the care guide under the specifications, always open (no disclosure, so no chevron and
   no pointer); it keeps the look of an open accordion row, hairline above and below. */
.pdp-tip { margin-top: var(--space-2); border-block: 1px solid var(--grey-400); }
.pdp-tip__title { padding-block: var(--space-4); font-family: var(--font-body); font-weight: 600; font-size: var(--body-size); line-height: var(--body-lh); color: var(--color-black); }
/* Specifications: a label and its value per row, a hairline under each (native dl). */
.pdp-specs { margin: 0; }
.pdp-specs__row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--grey-400); }
.pdp-specs dt { font-weight: 600; text-transform: uppercase; color: var(--color-black); }
.pdp-specs dd { margin: 0; color: var(--color-font); }
.pdp-specs__note { margin-top: var(--space-3); }
/* Shipping: two short headings and a routes table. */
.pdp-ship__title { margin-bottom: var(--space-2); font-family: var(--font-body); font-weight: 600; font-size: var(--body-size); line-height: var(--body-lh); color: var(--color-black); }
.pdp-acc__body p + .pdp-ship__title, .pdp-ship__wrap + .pdp-ship__title { margin-top: var(--space-6); }
.pdp-ship__wrap { margin-top: var(--space-4); }
/* No minimum width: on a narrow column the cells wrap, so the table never needs sideways scrolling. */
/* The look is the site's shared table (.dtable, css/sections.css), at body size inside this column. */
.pdp-ship th, .pdp-ship td { overflow-wrap: anywhere; }
/* "Vietnam" spans the five rows, so in rows two to five the first cell is the Destination column, not the table's edge. */
.pdp-ship tbody tr:not(:first-child) > td:first-child { padding-left: var(--dtable-pad); }

/* ---------- FAQ ---------- */
/* ---------- Long description beside the specifications ---------- */
/* A hairline separates the product block above from these two sections, with the same room on either side of it. */
.pdp-long { position: relative; margin-top: var(--space-16); padding-block: var(--space-16); }
/* The hairline is drawn inside the container's 24px side padding, so it ends where the copy does. */
.pdp-long::before { content: ""; position: absolute; top: 0; left: var(--space-6); right: var(--space-6); height: 1px; background: var(--grey-400); }
/* Two sections side by side, each under its own title: the description (copy, then the guideline
   panels) on the left; the specifications on the right, stretched to the description's height. */
.pdp-long__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12) var(--space-16); align-items: stretch; }
.pdp-long__desc { display: grid; align-content: start; gap: var(--space-8); min-width: 0; }
.pdp-long__text { display: grid; gap: var(--space-8); min-width: 0; }
/* The specifications run the full height of the description: on desktop a hairline down their left edge
   marks that height, and the list stays in view under the header while the description scrolls past. */
.pdp-long__specs { position: relative; min-width: 0; }
/* 96px: the 72px header plus 24px of air. */
.pdp-long__specs-in { position: sticky; top: var(--space-24); display: grid; gap: var(--space-8); }
/* A side column, so its title takes the smaller heading style (H3 32/40, as the enquiry form's title), in sentence case. */
.pdp-long__specs .pdp-sec-head__title { font-size: var(--h4-size); line-height: var(--h4-lh); text-transform: none; }
/* The list opens on its first row's text: no rule and no padding above it. */
.pdp-long__specs .pdp-specs__row:first-child { padding-top: 0; }
/* Guideline panels carry text, so they keep their own shape and are never cropped. They close the description. */
.pdp-long__gallery { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.pdp-long__gallery img { display: block; width: 100%; height: auto; }
/* The opening copy runs the full width of the description column (user 2026-10-14). */
.pdp-long__lead { font-size: var(--body-size); line-height: var(--body-lh); color: var(--text-secondary); }
.pdp-long__lead p + p { margin-top: var(--space-4); }
.pdp-long__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.pdp-long__facts dt { font-weight: 700; font-size: var(--body-size); line-height: var(--body-lh); color: var(--color-black); }
.pdp-long__facts dd { margin: 0; font-size: var(--body-size); line-height: var(--body-lh); color: var(--text-secondary); }
/* Narrow desktop: equal columns, so "Additional Information" still fits on one line beside "Product description". */
@media (max-width: 1279px) { .pdp-long__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* Tablet and phone: one column, the specifications after the description; nothing sticks. */
@media (max-width: 1024px) {
  .pdp-long__grid { grid-template-columns: minmax(0, 1fr); }
  .pdp-long__specs-in { position: static; }
}
@media (max-width: 640px) { .pdp-long__facts { grid-template-columns: minmax(0, 1fr); } }

/* The FAQ closes the description column: a hairline, with the same 64px on either side as the one above. */
.pdp-long__desc .faq { margin-top: var(--space-8); padding: var(--space-16) 0 0; border-top: 1px solid var(--grey-400); }

/* ---------- Desktop: both blocks sit on the page's 12-column grid (24px gutters) ---------- */
/* Every edge falls on a column line: gallery 6 columns (thumbnails 1, photo 5) beside details 6;
   description 7 columns beside specifications 5. Children take their columns from the same grid (subgrid). */
@media (min-width: 1025px) {
  .pdp-main { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-6); }
  /* A subgrid keeps the parent's column lines only if it keeps the parent's 24px gutter too. */
  .pdp-gallery { grid-column: span 6; display: grid; grid-template-columns: subgrid; column-gap: var(--space-6); }
  .pdp-thumbs { grid-column: span 1; min-width: 0; }
  .pdp-stage { grid-column: span 5; }
  .pdp-info { grid-column: span 6; }
  /* Thumbnails and their arrows are one column wide; a thumbnail stays square. */
  .pdp-thumbs__track, .pdp-thumbs__arrow { width: 100%; }
  .pdp-thumb { width: 100%; height: auto; aspect-ratio: var(--ty-le-san_pham); }

  .pdp-long__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-6); }
  /* The description takes eight of the twelve columns, the specifications four (user 2026-10-14). */
  .pdp-long__desc { grid-column: span 8; grid-template-columns: subgrid; column-gap: var(--space-6); }
  .pdp-long__desc > *, .pdp-long__text > * { grid-column: 1 / -1; }
  .pdp-long__text, .pdp-long__grid .pdp-long__facts { grid-template-columns: subgrid; column-gap: var(--space-6); }
  .pdp-long__facts > div { grid-column: span 4; }
  /* The dividing hairline is the column's own left border, with 32px on either side of it (user 2026-10-14,
     "32px | (line dọc) 32px"): the column starts 8px past the 24px gutter, and its content 32px past the line. */
  .pdp-long__specs { grid-column: span 4; margin-left: var(--space-2); padding-left: var(--space-8); border-left: 1px solid var(--grey-400); }
}
/* Narrow desktop: seven and five, so the specification rows keep their label and value on one line. */
@media (min-width: 1025px) and (max-width: 1279px) {
  .pdp-long__desc { grid-column: span 7; }
  .pdp-long__specs { grid-column: span 5; }
  .pdp-long__facts > div { grid-column: span 3; }
}

.faq { padding-block: var(--space-16); }
.faq__list { display: flex; flex-direction: column; margin-top: var(--space-10); max-width: none; width: 100%; }
.faq__item { border-top: 1px solid var(--grey-400); }
.faq__item:last-child { border-bottom: 1px solid var(--grey-400); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding-block: var(--space-6);
  list-style: none; cursor: pointer;
  font-weight: 600; font-size: var(--h6-size); color: var(--color-black);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__ico {
  width: 16px; height: 16px; flex: 0 0 16px; background: var(--color-black);
  -webkit-mask: url("../assets/icons/plus.svg") no-repeat center / 16px;
  mask: url("../assets/icons/plus.svg") no-repeat center / 16px;
}
.faq__item[open] .faq__ico {
  -webkit-mask-image: url("../assets/icons/minus.svg");
  mask-image: url("../assets/icons/minus.svg");
}
.faq__a { padding-bottom: var(--space-6); color: var(--text-secondary); font-size: var(--body-size); line-height: var(--body-lh); max-width: 70ch; }

/* ---------- Related products ---------- */
.related { padding-block: var(--space-16); background: var(--surface-cream); }
.related__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6);
  margin-top: var(--space-10);
}

/* ---------- Partner / wholesale inquiry ---------- */
.partner { padding-block: var(--space-20); background: var(--color-white); }
.partner__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; }
.partner__intro { display: flex; flex-direction: column; gap: var(--space-6); max-width: 451px; }
.partner__lead { font-size: var(--body-size); line-height: var(--body-lh); color: var(--text-secondary); }
.partner__features { display: flex; flex-direction: column; gap: var(--space-6); }
.partner__feature { display: flex; gap: var(--space-2); }
.partner__feature-ico {
  width: 24px; height: 24px; flex: 0 0 24px; background: var(--color-primary);
  -webkit-mask: url("../assets/icons/shield-check.svg") no-repeat center / 24px;
  mask: url("../assets/icons/shield-check.svg") no-repeat center / 24px;
}
.partner__feature-title { font-weight: 700; text-transform: uppercase; color: var(--color-black); margin-bottom: var(--space-1); }
.partner__feature-text { font-size: var(--body-size); line-height: var(--body-lh); color: var(--text-secondary); }

.partner__form-wrap { display: flex; flex-direction: column; gap: var(--space-6); }
.partner__form-title { font-family: var(--font-heading); font-size: var(--h4-size); line-height: var(--h4-lh); color: var(--color-black); }
.partner__form { display: flex; flex-direction: column; gap: var(--space-4); }
.partner__form .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.partner__form .btn { width: 100%; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .pdp-main { grid-template-columns: 1fr; gap: var(--space-12); padding-inline: var(--space-6); }
  .pdp-gallery { max-width: 680px; }
  /* Touch screens: option chips and the thumbnail arrows reach a 44px target (user 2026-10-14, "tiện dùng, dễ dùng"). */
  .pdp-length-opt span { height: 44px; }
  .pdp-thumbs__arrow { height: 44px; }
  .related__grid { grid-template-columns: repeat(2, 1fr); }
  .partner__inner { grid-template-columns: 1fr; gap: var(--space-12); }
  .partner__intro { max-width: 100%; }
}

/* Phone: the thumbnails become one strip under the photo that scrolls sideways (user 2026-10-14, "cụm này
   scroll ngang"), running to both edges of the screen; a thumbnail is sized so three and a half show, the
   half one telling there is more. */
@media (max-width: 767px) {
  /* No breadcrumb on a phone, so the photo keeps 24px under the header. */
  .pdp-main { padding-top: var(--space-6); }
  .pdp-gallery { flex-direction: column-reverse; }
  .pdp-thumbs { display: block; flex: 0 0 auto; margin-inline: calc(var(--space-6) * -1); }
  .pdp-thumbs__arrow { display: none; }
  .pdp-thumbs__track { flex-direction: row; flex-wrap: nowrap; gap: var(--space-3); width: auto; padding-inline: var(--space-6); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--space-6); scrollbar-width: none; }
  .pdp-thumbs__track::-webkit-scrollbar { display: none; }
  .pdp-thumb { flex: 0 0 min(124px, calc((100% - var(--space-3) * 3) / 3.5)); width: auto; height: auto; aspect-ratio: var(--ty-le-san_pham); scroll-snap-align: start; }
  .pdp-thumb:focus-visible { outline: 2px solid var(--color-black); outline-offset: -2px; }
  /* The photo runs to both edges of the screen too, flush with the thumbnail strip (user 2026-10-14, "Hình
     full-bleed luôn"). */
  .pdp-stage { align-self: stretch; margin-inline: calc(var(--space-6) * -1); }
  /* The product name takes the page's H2 style (28/36 on a phone), so it is not smaller than the headings below
     it (user 2026-10-14, comment cmv7v5aa5c500). */
  .pdp-title { font-size: var(--h3-size); line-height: var(--h3-lh); }
  /* SKU, status and categories: three rows 8px apart, the labels in one 95px column so the values line up; the
     upright rule only made sense with SKU and status side by side (user 2026-10-14, "gap, spacing, padding giữa
     3 cụm content này đang khác nhau"). */
  .pdp-meta__inline { flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .pdp-meta__inline .pdp-meta__label { flex: 0 0 95px; }
  .pdp-meta__sep { display: none; }
  /* The hotline button stays at the foot of the screen from the moment the page opens, and settles back into its
     place when the page reaches it (user 2026-10-14, "fixed khi scroll khi mới vào page này"). While it is stuck,
     only the button shows (the label returns in place); a browser without scroll-state queries keeps the label. */
  .pdp-cta-wrap { position: sticky; bottom: 0; z-index: 5; container-type: scroll-state; margin: calc(var(--space-3) * -1) calc(var(--space-6) * -1); padding: var(--space-3) var(--space-6) max(var(--space-3), env(safe-area-inset-bottom)); background: var(--color-white); }
  .pdp-cta-wrap::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--grey-400); opacity: 0; }
  @container scroll-state(stuck: bottom) {
    .pdp-cta__label { display: none; }
    .pdp-cta-wrap::before { opacity: 1; }
  }
  /* Related products: the four in a 2 x 2 grid (user 2026-10-15: nothing scrolls sideways; it was a strip from
     2026-10-14, "Scroll ngang"). */
  .related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .pdp-thumbs__track { scroll-behavior: auto; }
}

@media (max-width: 640px) {
  .related__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .partner__form .form__row { grid-template-columns: 1fr; }
  .pdp-cta { width: 100%; }
}
