.product-detail-page {
  background: #f4faff;
  color: #111d23;
}

.product-detail-shell {
  width: min(976px, calc(100% - 32px));
  max-width: 976px;
  padding: 10px 0 8px;
  margin-inline: auto;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  font-size: 13px;
  color: #6b7a76;
}

.breadcrumbs a {
  color: #3d8571;
  text-decoration: none;
}

.product-top-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.9fr);
  gap: 32px;
  align-items: start;
  background: #fff;
  border: 1px solid #d8e7ef;
  border-radius: 16px;
  padding: 24px;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-gallery__main {
  background: #f8fafc;
  border-radius: 14px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e6edf2;
}

.product-gallery__source {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  color: #44615e;
}

.product-gallery__source-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #1f3d39;
}

.product-gallery__source-link {
  color: #1d5d64;
  text-decoration: none;
  font-size: 13px;
}

.product-gallery__source-link:hover {
  text-decoration: underline;
}

.product-gallery__source-link--text {
  pointer-events: none;
}

.product-gallery__image,
.product-gallery__placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-gallery__placeholder {
  background: linear-gradient(145deg, #f8fafc, #e9f6fd);
}

.product-gallery__strip {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
}

.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  padding: 12px 4px 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.product-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.product-gallery__thumb {
  position: relative;
  flex: 0 0 calc((100% - 30px) / 4);
  max-width: 96px;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8e7ef;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  scroll-snap-align: center;
  transition: border-color 0.2s ease;
}

.product-gallery__thumb:hover {
  border-color: #8aa0a8;
}

.product-gallery__thumb.is-active {
  border-color: #111d23;
}

.product-gallery__thumb.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  border: 5px solid transparent;
  border-top: 0;
  border-bottom: 6px solid #111d23;
  transform: translateX(-50%);
}

.product-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #111d23;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.product-gallery__arrow:disabled {
  color: #c3ced3;
  cursor: default;
}

.product-gallery__thumb:focus-visible,
.product-gallery__arrow:focus-visible {
  outline: 2px solid #111d23;
  outline-offset: 2px;
}

.product-summary {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pill--brand {
  background: rgba(48, 96, 81, 0.1);
  color: #1e5b51;
}

.pill--category {
  background: rgba(41, 110, 158, 0.1);
  color: #214d6d;
}

.pill--verified {
  background: rgba(131, 192, 92, 0.15);
  color: #3e6e29;
}

.product-summary__meta-item {
  color: #5b6c68;
  font-size: 13px;
}

.product-summary__title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #111d23;
}

.product-summary__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #536765;
  font-size: 14px;
}

.stars {
  color: #f3b847;
  letter-spacing: 2px;
  font-size: 18px;
}

.product-summary__rating-value {
  font-weight: 700;
  color: #152422;
}

.divider {
  color: #9aa8a4;
}

.product-summary__highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid #d8e7ef;
  border-radius: 12px;
  background: #f8fafc;
}

.product-summary__highlight-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #34484e;
}

.product-summary__highlight-row .material-symbols-outlined {
  flex: 0 0 auto;
  margin-top: 1px;
}

.product-summary__highlight-row p {
  margin: 0;
  line-height: 1.5;
}

.product-summary__intro {
  margin: 0 0 4px;
  color: #34484e;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-size: 20px;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  color: #2d7d69;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'liga';
}

.product-detail-disclaimer {
  margin: 12px auto 0;
  color: #5a6b6e;
  font-size: 13px;
  line-height: 1.6;
  font-style: italic;
}

.product-summary__price-box {
  background: #fff;
  border-top: 1px solid #e6edf2;
  padding: 14px 0 0;
}

.product-summary__price-box--no-price {
  padding-top: 0;
  border-top: 0;
}

.product-summary__price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.product-summary__price {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  color: #162b28;
}

.product-summary__price-note {
  margin: -4px 0 12px;
  color: #5a6b6e;
  font-size: 13px;
  line-height: 1.5;
}

.product-summary__old-price {
  color: #8a9795;
  text-decoration: line-through;
}

.product-summary__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff4d6;
  color: #b26d00;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button--shop {
  width: 100%;
  background: var(--color-brand);
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  border-radius: 10px;
}

.product-section {
  margin-top: 20px;
  background: #fff;
  border: 1px solid #d8e7ef;
  border-radius: 14px;
  padding: 22px 24px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-heading__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #111d23;
}

.section-heading__meta {
  color: #61736f;
  font-size: 13px;
}

.ingredient-table-wrap {
  overflow-x: visible;
}

.ingredient-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

@media (min-width: 641px) {
  .ingredient-table th:first-child,
  .ingredient-table td:first-child {
    width: 32%;
  }
}

.ingredient-table td {
  overflow-wrap: anywhere;
}

.ingredient-table th,
.ingredient-table td {
  border-bottom: 1px solid rgba(21, 41, 38, 0.08);
  padding: 18px 14px;
  text-align: left;
  vertical-align: top;
}

.ingredient-table th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #61736f;
  background: #f8fbfa;
}

.ingredient-table td p {
  margin: 8px 0 0;
  color: #536663;
  line-height: 1.6;
}

.tone {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.tone--green {
  background: rgba(75, 153, 120, 0.12);
  color: #245d4a;
}

.ewg-badge {
  display: inline-block;
  background: #edf8ef;
  color: #2f7a3b;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 12px;
}

.compatibility-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.compatibility-card {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 10px;
  background: #f5fbf8;
  border: 1px solid #d8e7ef;
}

.compatibility-card strong {
  font-size: 1rem;
}

.compatibility-card__status {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(43, 138, 97, 0.12);
  color: #205d48;
  font-size: 11px;
  font-weight: 700;
}

.compatibility-card small {
  color: #57706d;
  line-height: 1.5;
}

.ingredient-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ingredient-filter-tabs button {
  border: 1px solid rgba(34, 45, 42, 0.08);
  background: #f7f9f8;
  color: #425a56;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

.ingredient-filter-tabs .is-active {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}

.ingredient-preview {
  background: #effaf6;
  border: 1px solid #acf0db;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.ingredient-preview h3 {
  margin: 0 0 8px;
  color: #1b2c2d;
}

.ingredient-preview p {
  margin: 0;
  color: #4d6360;
  line-height: 1.7;
}

.ingredient-preview span {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(40, 114, 93, 0.12);
  color: #255f52;
  font-weight: 700;
  font-size: 12px;
}

.ingredient-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #dbece7;
}

.ingredient-list__header {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(150px, 0.8fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #dbece7;
  background: #f7fcfa;
  color: #658079;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.ingredient-list__item {
  border-bottom: 1px solid #e4efeb;
}

.ingredient-list__row {
  display: grid;
  width: 100%;
  grid-template-columns: 28px minmax(0, 1fr) minmax(150px, 0.8fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  background: #fff;
  border: 0;
  text-align: left;
  cursor: pointer;
  list-style: none;
}

.ingredient-list__row::-webkit-details-marker {
  display: none;
}

.ingredient-list__row::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1px solid #738984;
  border-bottom: 1px solid #738984;
  transform: translateY(-2px) rotate(45deg);
  color: #738984;
  transition: transform 160ms ease;
}

.ingredient-list__item[open] .ingredient-list__row::after {
  transform: translateY(2px) rotate(225deg);
}

.ingredient-list__row--static {
  cursor: default;
}

.ingredient-list__row--static::after {
  content: none;
}

.ingredient-list__row:hover,
.ingredient-list__item[open] .ingredient-list__row {
  background: #fbfdfc;
}

.ingredient-list__identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.ingredient-list__subname {
  color: #7c8e89;
  font-size: 11px;
}

.ingredient-list__role {
  color: #39806c;
  font-size: 10px;
}

.ingredient-list__purpose {
  color: #71817d;
  font-size: 12px;
  text-align: right;
}

.product-data-empty {
  color: #687b82;
  font-size: 13px;
}

.product-description h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

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

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

.ingredient-list__code {
  display: grid;
  place-items: center;
  color: #82938e;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.ingredient-list__name {
  font-weight: 700;
  color: #1d2d2d;
}

.ingredient-list__badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.ingredient-list__badge--complete {
  background: #d9f4e8;
  color: #226449;
}

.ingredient-list__badge--pending {
  background: #fff1cf;
  color: #986215;
}

.ingredient-list__detail {
  margin: 0 10px 12px 38px;
  padding: 14px 16px;
  border: 1px solid #d6ebe4;
  border-radius: 10px;
  background: #fff;
  color: #5c6e69;
  font-size: 12px;
  line-height: 1.65;
}

.ingredient-list__detail p {
  margin: 0 0 8px;
}

.ingredient-list__detail p:last-child {
  margin-bottom: 0;
}

.ingredient-list__detail strong {
  color: #234c40;
}

.ingredient-list__caution {
  padding: 8px 10px;
  border: 1px solid #f2dfad;
  border-radius: 8px;
  background: #fffaf0;
}

.empty-state {
  padding: 80px 0 40px;
  text-align: center;
}

@media (max-width: 980px) {
  .product-top-overview {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }

  .compatibility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .product-detail-shell {
    padding-top: 10px;
  }

  .product-top-overview,
  .product-section {
    padding: 16px;
    border-radius: 12px;
  }

  .product-top-overview {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-gallery__main {
    max-width: 360px;
    width: 100%;
    margin-inline: auto;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-heading {
    gap: 6px;
    margin-bottom: 14px;
  }

  .section-heading h2 {
    font-size: 1rem;
    line-height: 1.35;
  }

  .section-heading__left {
    gap: 8px;
  }

  .section-heading__left .material-symbols-outlined {
    font-size: 20px;
  }

  .section-heading__meta {
    font-size: 12px;
  }

  .ingredient-table-wrap {
    overflow-x: visible;
  }

  .ingredient-table,
  .ingredient-table tbody,
  .ingredient-table tr,
  .ingredient-table td {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .ingredient-table thead {
    display: none;
  }

  .ingredient-table tr {
    padding: 12px 0;
    border-bottom: 1px solid rgba(21, 41, 38, 0.08);
  }

  .ingredient-table td {
    padding: 4px 0;
    border: 0;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .ingredient-table td p {
    margin: 2px 0 0;
    font-size: 13px;
  }

  .ingredient-list__row {
  grid-template-columns: 24px minmax(0, 1fr) 16px;
  gap: 8px;
  padding-inline: 4px;
  }

  .ingredient-list__header {
    display: none;
  }

  .ingredient-list__purpose {
  grid-column: 2;
  grid-row: 2;
  text-align: left;
  font-size: 11px;
  }

  .ingredient-list__badge {
  grid-column: 2;
  grid-row: 3;
  margin-top: 2px;
  }

  .ingredient-list__row::after {
  grid-column: 3;
  grid-row: 1;
  }

  .ingredient-list__detail {
  margin: 0 0 10px 28px;
  padding: 12px;
  }

  .compatibility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-summary__title {
    font-size: 1.25rem;
  }
}

.compatibility-quiz {
  margin: 16px 0 0;
  color: var(--color-muted, #5f6b66);
  font-size: 14px;
}

.compatibility-quiz a {
  color: var(--color-green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.compatibility-quiz a:hover {
  color: var(--color-green-dark);
}

/* Direct purchase: quantity, buy now and Zalo actions. */
.direct-purchase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

.direct-purchase__quantity {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
}

.quantity-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quantity-stepper__button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-line, #d8e7ef);
  border-radius: 10px;
  background: #fff;
  color: var(--color-ink, #111d23);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.quantity-stepper__button:hover {
  border-color: var(--color-coral, #f48f87);
  color: var(--color-coral-dark, #974540);
}

.quantity-stepper__input {
  width: 64px;
  height: 36px;
  border: 1px solid var(--color-line, #d8e7ef);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 600;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.quantity-stepper__input::-webkit-outer-spin-button,
.quantity-stepper__input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.button--buy-now,
.button--zalo {
  width: 100%;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.3;
}

.button--buy-now strong,
.button--zalo strong {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.button--buy-now span,
.button--zalo span {
  font-size: 12px;
  font-weight: 500;
}

.button--buy-now {
  background: var(--color-brand);
  color: #fff;
}

.button--zalo {
  background: #0068ff;
  color: #fff;
}

@media (max-width: 420px) {
  .direct-purchase {
    grid-template-columns: 1fr;
  }
}

/* Without a Zalo number, buy-now spans the full row. */
.button--buy-now:last-child {
  grid-column: 1 / -1;
}

/* Customer reviews. */
.review-summary {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 12px;
  background: var(--color-surface-blue, #e9f6fd);
}

.review-summary__score {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.review-summary__score strong {
  font-size: 44px;
  line-height: 1;
}

.review-summary__score small {
  color: var(--color-muted, #56666c);
}

.review-stars {
  color: #f5a623;
  font-size: 16px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.review-summary__bars {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.review-summary__bars li {
  display: grid;
  grid-template-columns: 44px 1fr 28px;
  align-items: center;
  gap: 10px;
}

.review-summary__bar {
  height: 8px;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.review-summary__bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #f5a623;
}

.review-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-item {
  padding: 16px 0;
  border-top: 1px solid var(--color-line, #d8e7ef);
}

.review-item__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.review-item__header time {
  display: block;
  color: var(--color-muted, #56666c);
  font-size: 12px;
}

.review-item__avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #fff0ed;
  color: var(--color-coral-dark, #974540);
  font-weight: 700;
}

.review-item p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

@media (min-width: 720px) {
  .review-summary {
    grid-template-columns: 180px 1fr;
  }
}

/* Review form and Google sign-in. */
.review-write {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--color-line, #d8e7ef);
  border-radius: 12px;
}

.review-write h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.review-write__note {
  margin: 0 0 12px;
  color: var(--color-muted, #56666c);
  font-size: 14px;
}

.review-write__message {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-green, #256959);
}

.review-write__message.is-error {
  color: var(--color-coral-dark, #974540);
}

.review-form {
  display: grid;
  gap: 12px;
  width: 100%;
}

.review-form__rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  border: 0;
}

.review-form__rating legend {
  float: left;
  margin-right: 12px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 32px;
}

.review-form__rating input {
  position: absolute;
  opacity: 0;
}

.review-form__rating label {
  padding: 0 2px;
  color: #c8d3d8;
  font-size: 28px;
  line-height: 32px;
  cursor: pointer;
}

.review-form__rating input:checked ~ label,
.review-form__rating label:hover,
.review-form__rating label:hover ~ label {
  color: #f5a623;
}

.review-form__rating input:focus-visible + label {
  outline: 2px solid var(--color-ink, #111d23);
  outline-offset: 2px;
}

.review-form textarea {
  width: 100%;
  min-height: 140px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--color-line, #d8e7ef);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

.review-form .button {
  justify-self: start;
}

/* Rating, sold count and discounted price under the product title. */
.product-summary__social-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 10px 0 0;
  font-size: 14px;
}

.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.product-rating strong {
  color: #f5a623;
  font-size: 16px;
}

.product-rating__count {
  color: var(--color-muted, #56666c);
}

.product-sold {
  padding-left: 16px;
  border-left: 1px solid var(--color-line, #d8e7ef);
  color: var(--color-muted, #56666c);
}

.product-summary__social-proof > :first-child {
  padding-left: 0;
  border-left: 0;
}

.product-summary__pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 14px 0 6px;
}

.product-summary__price-original {
  color: var(--color-muted, #56666c);
  font-size: 14px;
  text-decoration: line-through;
}

.product-summary__discount {
  align-self: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fff0ed;
  color: var(--color-coral-dark, #974540);
  font-size: 12px;
  font-weight: 800;
}

/* Collapsible content sections on the product page. */
.product-fold__summary {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  cursor: pointer;
  list-style: none;
}

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

.product-fold__summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin: 0 4px 3px 12px;
  border-right: 2px solid var(--color-muted, #5a6b6e);
  border-bottom: 2px solid var(--color-muted, #5a6b6e);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.product-fold[open] > .product-fold__summary {
  margin-bottom: 22px;
}

.product-fold[open] > .product-fold__summary::after {
  margin-bottom: -3px;
  transform: rotate(-135deg);
}

.product-fold__summary:focus-visible {
  outline: 2px solid var(--color-green, #2d7a66);
  outline-offset: 4px;
  border-radius: 8px;
}

.product-fold__intro p {
  margin: 0 0 16px;
  color: #5a6b6e;
  font-size: 13px;
}

@media (max-width: 640px) {
  .product-fold[open] > .product-fold__summary {
    margin-bottom: 14px;
  }
}

.product-summary__skin-types {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.product-summary__skin-types-label {
  color: #5a6b6e;
  font-size: 13px;
}

.product-summary__skin-type {
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f5f0;
  color: #256959;
  font-size: 12px;
  font-weight: 600;
}

/* INCI list nested inside the "Thành phần" section. */
.product-fold--inner {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #d8e7ef;
}

.product-fold__summary--inner h3 {
  margin: 0;
  font-size: 1rem;
}

.product-fold--inner[open] > .product-fold__summary--inner {
  margin-bottom: 14px;
}

.review-pagination {
  margin-top: 20px;
}

.review-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-pagination li {
  display: contents;
}

.review-pagination a,
.review-pagination span.page-numbers {
  display: grid;
  min-width: 36px;
  min-height: 36px;
  place-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #5a6b6e;
  font-size: 13px;
  font-weight: 600;
}

.review-pagination a:hover,
.review-pagination span.current {
  background: var(--color-brand);
  color: var(--color-white);
}

.review-list {
  scroll-margin-top: calc(var(--header-offset) + 12px);
}

.review-list.is-loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 150ms ease;
}

/* Less empty space between the last note and the footer. */
.single-product .site-footer {
  margin-top: 24px;
}

/* Similar products: sideways strip that scrolls on its own. */
.product-related .section-heading {
  margin-bottom: 16px;
}

.product-related__nav {
  display: flex;
  gap: 6px;
}

.product-related__arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid #d8e7ef;
  border-radius: 50%;
  background: #fff;
  color: #111d23;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.product-related__arrow:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.product-related__arrow[hidden] {
  display: none;
}

.product-related__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.product-related__item {
  flex: 0 0 calc((100% - 36px) / 4);
  min-width: 0;
  scroll-snap-align: start;
}

.product-related__item .product-card {
  height: 100%;
}

.product-related .product-card:hover,
.product-related .product-card:focus-within {
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .product-related__item {
    flex-basis: calc((100% - 12px) / 2);
  }

  .product-related__arrow {
    display: none;
  }
}

/* Similar products: arrows over the strip, no scrollbar (same behaviour as the brand strip). */
.product-related__viewport {
  position: relative;
}

.product-related__track {
  scrollbar-width: none;
}

.product-related__track::-webkit-scrollbar {
  display: none;
}

.product-related__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  box-shadow: var(--shadow-soft);
  transform: translateY(-50%);
}

.product-related__arrow--prev {
  left: -10px;
}

.product-related__arrow--next {
  right: -10px;
}

@media (max-width: 760px) {
  .product-related__arrow {
    display: grid;
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .product-related__arrow[hidden] {
    display: none;
  }

  .product-related__arrow--prev {
    left: -6px;
  }

  .product-related__arrow--next {
    right: -6px;
  }
}
