@font-face {
  font-family: "TikTok Text";
  src: url("/fonts/tiktok-text-regular.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

/* Keep the original family names from the reference page for explicit roles. */
@font-face {
  font-family: "TikTokText-Regular.otf";
  src: url("/fonts/tiktok-text-regular.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "TikTokText-Medium.otf";
  src: url("/fonts/tiktok-text-medium.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "TikTokText-Bold.otf";
  src: url("/fonts/tiktok-text-bold.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "TikTok Text";
  src: url("/fonts/tiktok-text-medium.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "TikTok Text";
  src: url("/fonts/tiktok-text-bold.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  color-scheme: light;
  font-family: "TikTok Text", Arial, sans-serif;
  --product-width: 420px;
  --font-text: "TikTok Text", "TikTokText-Regular.otf", Arial, sans-serif;
  --font-medium: "TikTokText-Medium.otf", "TikTok Text", Arial, sans-serif;
  --font-bold: "TikTokText-Bold.otf", "TikTok Text", Arial, sans-serif;
  --text-caption: 11px;
  --text-small: 12px;
  --text-label: 13px;
  --text-card: 14px;
  --text-body: 15px;
  --text-emphasis: 15px;
  --text-title: 16px;
  --text-price: 20px;
  --line-compact: 1.2;
  --line-body: 1.5;
  --color-text: #161616;
  --color-muted: #7b7b7b;
  --color-line: #ececec;
  --color-surface: #ffffff;
  --color-page: #f5f5f5;
  --color-primary: #fe2c55;
  --color-primary-dark: #e91e4b;
  --color-teal: #16a6a0;
  --color-yellow: #ffc400;
  --toolbar-height: 42px;
  --tabs-height: 42px;
  --header-height: calc(var(--toolbar-height) + var(--tabs-height));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-text);
  font-size: 12px;
  font-feature-settings: "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-page);
  font-family: var(--font-text);
  font-size: var(--text-small);
  line-height: var(--line-body);
  letter-spacing: 0;
  font-synthesis: none;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: none;
}

.icon-image {
  object-fit: contain;
}

.product-detail-page {
  min-width: 320px;
}

.product-detail {
  width: min(100%, var(--product-width));
  min-height: 100vh;
  margin: 0 auto;
  overflow: clip;
  background: var(--color-surface);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.04);
  padding-bottom: 66px;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 1;
}

.product-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-line);
}

.product-header__toolbar {
  display: flex;
  height: var(--toolbar-height);
  align-items: center;
  gap: 0;
  padding: 2px 6px 0;
}

.product-header__back .icon {
  width: 24px;
  height: 24px;
}

.product-header__toolbar > .icon-button:not(.product-header__back) .icon {
  width: 25px;
  height: 25px;
}

.product-header__toolbar > .icon-button:last-child .icon {
  width: 24px;
  height: 24px;
}

.product-search {
  display: flex;
  min-width: 0;
  height: 30px;
  flex: 1;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #f1f1f2;
}

.product-search__icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  stroke-width: 1.7;
}

.product-search input {
  min-width: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  outline: 0;
  background: transparent;
  color: #555;
  font-size: var(--text-emphasis);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-header__cart {
  position: relative;
}

.product-header__cart-count {
  position: absolute;
  top: 0;
  right: 0;
  display: none;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--color-primary);
  color: white;
  font-size: 10px;
  line-height: 16px;
}

.product-header__cart-count.is-visible {
  display: block;
}

.product-tabs {
  display: grid;
  height: var(--tabs-height);
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}

.product-tabs__item {
  position: relative;
  display: grid;
  place-items: center;
  color: #777;
  font-size: var(--text-emphasis);
  font-weight: 400;
}

.product-tabs__item.is-active {
  color: var(--color-text);
  font-family: var(--font-medium);
  font-weight: 400;
}

.product-tabs__item.is-active::after {
  position: absolute;
  right: 20%;
  bottom: 0;
  left: 20%;
  height: 2px;
  content: "";
  background: var(--color-text);
}

.product-gallery__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 420 / 438;
  overflow: hidden;
  background: #efefef;
  touch-action: pan-y;
}

.product-gallery__track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
  transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.product-gallery__slide {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  margin: 0;
}

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

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.48);
  color: white;
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-arrow .icon {
  width: 15px;
  height: 15px;
}

.gallery-arrow--previous {
  left: 8px;
  display: none;
}

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

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

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

.shop-card__offers::-webkit-scrollbar {
  display: none;
}

.flash-sale {
  display: grid;
  min-height: 58px;
  grid-template-columns: 1.45fr 1fr;
  color: white;
  background: linear-gradient(100deg, #ff3760 0 57%, #ff5848 57% 100%);
}

.flash-sale__price,
.flash-sale__clock {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-content: center;
  align-items: baseline;
  padding: 7px 10px;
}

.flash-sale__price span {
  margin-right: 5px;
}

.flash-sale__price strong {
  margin-right: 7px;
  font-family: var(--font-bold);
  font-size: var(--text-price);
  font-weight: 400;
  line-height: 1;
}

.flash-sale__price del {
  width: 100%;
  margin-top: 4px;
  opacity: 0.82;
  font-size: var(--text-small);
}

.flash-sale__clock {
  justify-content: center;
  text-align: center;
}

.flash-sale__clock strong,
.flash-sale__clock span {
  width: 100%;
}

.flash-sale__clock strong {
  font-family: var(--font-bold);
  font-size: var(--text-emphasis);
  font-weight: 400;
}

.flash-sale__clock span {
  font-size: var(--text-caption);
}

.promotion-chips {
  display: flex;
  gap: 8px;
  padding: 6px 10px 1px;
  overflow-x: auto;
  color: #dd4360;
  white-space: nowrap;
}

.promotion-chips span {
  padding: 3px 8px;
  background: #fff0f3;
  font-size: var(--text-small);
  font-weight: 500;
}

.product-summary {
  border-bottom: 1px solid var(--color-line);
}

.product-summary__title {
  margin: 9px 10px 6px;
  font-family: var(--font-medium);
  font-size: var(--text-title);
  font-weight: 400;
  line-height: 1.45;
}

.mall-badge {
  display: inline-flex;
  height: 15px;
  align-items: center;
  padding: 0 4px;
  border-radius: 2px;
  background: #111;
  color: white;
  font-family: var(--font-bold);
  font-size: var(--text-caption);
  font-weight: 400;
  vertical-align: 1px;
}

.product-summary__social-proof {
  display: flex;
  gap: 12px;
  padding: 0 10px 11px;
  color: var(--color-muted);
  font-size: var(--text-body);
}

.product-summary__social-proof a {
  color: #3582a8;
}

.product-summary__rating strong {
  color: var(--color-text);
  font-family: var(--font-medium);
  font-weight: 400;
}

.product-summary__sold {
  position: relative;
  padding-left: 12px;
}

.product-summary__sold::before {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 1px;
  content: "";
  background: #d9d9d9;
}

.product-summary__sold strong {
  color: var(--color-text);
  font-family: var(--font-bold);
  font-weight: 400;
}

.star,
.review-stars {
  color: var(--color-yellow);
}

.product-services {
  border-bottom: 1px solid var(--color-line);
}

.product-services__row {
  display: flex;
  gap: 9px;
  padding: 11px 10px;
  border-bottom: 1px solid #f3f3f3;
}

.product-services__row:last-child {
  border-bottom: 0;
}

.product-services p,
.product-services small {
  display: block;
  margin: 0;
}

.product-services p {
  font-size: var(--text-emphasis);
  line-height: 1.35;
}

.product-services small {
  margin-top: 3px;
  color: var(--color-muted);
  font-size: var(--text-body);
  line-height: 1.35;
}

.service-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 1px;
}

.freeship-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 4px;
  border-radius: 2px;
  background: #e8fbf8;
  color: var(--color-teal);
  font-size: var(--text-caption);
  font-weight: 500;
}

.purchase-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  display: grid;
  width: min(100%, var(--product-width));
  height: 66px;
  grid-template-columns: 54px 54px minmax(0, 1fr) minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  padding: 7px 8px 5px;
  border-top: 1px solid var(--color-line);
  background: white;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  transform: translateX(-50%);
}

.purchase-bar__utility {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: var(--text-small);
  line-height: 1.1;
}

.purchase-bar__utility:first-child {
  grid-column: 1;
}

.purchase-bar__utility:nth-child(2) {
  grid-column: 2;
}

.purchase-bar__utility .icon {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
}

.purchase-bar__utility small {
  margin-top: 4px;
  color: var(--color-text);
  font-size: var(--text-caption);
  white-space: nowrap;
}

.product-variant-strip {
  display: flex;
  width: 100%;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border: 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: white;
  color: var(--color-muted);
  cursor: pointer;
  gap: 8px;
  font-size: var(--text-card);
}

.product-variant-strip > .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.product-variant-strip > span:nth-child(2) {
  flex: 0 0 auto;
  white-space: nowrap;
}

.product-variant-strip__preview {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.product-variant-strip__grid-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: #777;
}

.product-variant-strip__images {
  position: relative;
  display: flex;
  min-width: 0;
  max-width: 213px;
  gap: 3px;
  overflow: hidden;
}

.product-variant-strip__images:has(img:nth-of-type(6))::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 25px;
  height: 32px;
  content: "";
  background: linear-gradient(90deg, transparent, white 88%);
  pointer-events: none;
}

.product-variant-strip__images img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  object-fit: cover;
}

.product-variant-strip__images img:nth-of-type(n + 7) {
  display: none;
}

.product-hot-category {
  display: flex;
  min-width: 0;
  height: 42px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  overflow: hidden;
  border-top: 1px solid #f3e8bd;
  border-bottom: 1px solid #f3e8bd;
  background: #fffbea;
  color: #b97800;
  font-size: var(--text-card);
}

.product-hot-category__icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  color: #b97800;
}

.product-hot-category strong {
  flex: 0 0 auto;
  font-family: var(--font-bold);
  font-weight: 400;
}

.product-hot-category span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-hot-category__chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-left: auto;
}

.purchase-button {
  display: flex;
  width: 100%;
  height: 46px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 5px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-bold);
  font-size: var(--text-title);
  font-weight: 400;
  line-height: 1.15;
}

.purchase-button > span {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

.purchase-button--cart {
  grid-column: 3;
  background: #f1f2f4;
}

.purchase-button--buy {
  grid-column: 4;
  background: var(--color-primary);
  color: white;
}

.purchase-button small {
  display: block;
  font-size: var(--text-caption);
  font-weight: 400;
}

.product-section {
  padding: 16px 8px;
  border-bottom: 6px solid var(--color-page);
  scroll-margin-top: calc(var(--header-height) + 8px);
}

.product-section h2 {
  margin: 0 0 10px;
  font-family: var(--font-medium);
  font-size: var(--text-title);
  font-weight: 400;
  line-height: 1.3;
}

.voucher-list {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 8px;
}

.voucher {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
}

.voucher > div {
  min-width: 0;
  flex: 1;
}

.voucher--shipping {
  border: 1px solid #c9efeb;
  background: #f0fffd;
}

.voucher--shipping::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 11px;
  border-radius: 0 5px 0 8px;
  content: "";
  background: #18c8c3;
}

.voucher--shop {
  border-color: #f5eaea;
  background: #fff5f5;
}

.voucher strong,
.voucher small {
  display: block;
}

.voucher strong {
  overflow: hidden;
  font-family: var(--font-bold);
  font-size: var(--text-card);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voucher small {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: var(--text-caption);
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.voucher button {
  width: 72px;
  height: 30px;
  flex: 0 0 72px;
  padding: 0 7px;
  border: 1px solid #52cfc8;
  border-radius: 4px;
  background: white;
  color: var(--color-teal);
  cursor: pointer;
  font-size: var(--text-small);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-heading span {
  color: var(--color-muted);
  font-size: var(--text-small);
}

.reviews__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reviews__header h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reviews__header a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  color: var(--color-muted);
  font-size: var(--text-label);
}

.reviews__header a .icon {
  width: 15px;
  height: 15px;
}

.review-overview {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}

.review-overview > strong {
  font-family: var(--font-medium);
  font-size: var(--text-title);
  font-weight: 400;
}

.review-overview > strong span {
  color: var(--color-muted);
  font-family: var(--font-text);
  font-size: var(--text-small);
}

.review-stars,
.review-card__stars {
  display: inline-flex;
  gap: 2px;
}

.review-stars b {
  font-size: 18px;
  line-height: 1;
}

.review-stars .is-empty,
.review-card__stars .is-empty {
  color: #dddddd;
}

.review-list {
  margin-top: 12px;
}

.review-card + .review-card {
  margin-top: 28px;
}

.review-card__customer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-card__customer > strong {
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-medium);
  font-size: var(--text-emphasis);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-card__avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  object-fit: cover;
}

.review-card__avatar--fallback {
  display: grid;
  place-items: center;
  background: #dddddd;
  color: white;
}

.review-card__avatar--fallback .icon {
  width: 27px;
  height: 27px;
}

.review-card__stars {
  margin-top: 10px;
  color: var(--color-yellow);
}

.review-card__stars b {
  font-size: var(--text-label);
  line-height: 1;
}

.review-card__variant,
.review-card__comment {
  margin: 0;
}

.review-card__variant {
  margin-top: 5px;
  color: var(--color-muted);
  font-size: var(--text-label);
}

.review-card__comment {
  margin-top: 6px;
  color: #5f5f5f;
  font-size: var(--text-emphasis);
  line-height: var(--line-body);
}

.review-card__images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.review-card__images img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  object-fit: cover;
}

.reviews__empty {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: var(--text-card);
}

.shop-card__header,
.shop-card__identity,
.shop-card__metrics {
  display: flex;
  align-items: center;
}

.shop-card__header {
  gap: 10px;
  justify-content: space-between;
}

.shop-card__identity {
  min-width: 0;
  gap: 12px;
}

.shop-card__details {
  min-width: 0;
}

.shop-card__identity h2,
.shop-card__identity p {
  margin: 0;
}

.shop-card__identity h2 {
  overflow: hidden;
  font-family: var(--font-medium);
  font-size: var(--text-title);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-card__identity p {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: var(--text-small);
}

.shop-card__logo {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #263536;
}

.shop-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-card__rating {
  padding: 1px 5px;
  background: #e1f3e9;
  color: #267554;
  font-family: var(--font-medium);
}

.shop-card__sold {
  display: block;
  min-width: 0;
  margin-top: 4px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: var(--text-small);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-card__actions {
  display: grid;
  width: 96px;
  flex: 0 0 96px;
  gap: 6px;
}

.shop-card__actions a,
.shop-card__actions button {
  display: grid;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #f2f2f2;
  color: var(--color-text);
  cursor: pointer;
  font-family: var(--font-bold);
  font-size: var(--text-small);
  font-weight: 400;
}

.shop-card__actions [data-shop-follow] {
  background: var(--color-primary);
  color: white;
}

.shop-card__actions [data-shop-follow].is-following {
  background: #f2f2f2;
  color: var(--color-text);
}

.shop-card__actions button:disabled {
  cursor: default;
  opacity: .65;
}

.shop-card__metrics {
  justify-content: space-between;
  gap: 12px;
  padding: 13px 4px 14px;
  color: var(--color-muted);
  font-size: var(--text-label);
}

.shop-card__metrics > span {
  display: inline-flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 4px;
}

.shop-card__metrics > span:last-child {
  justify-content: flex-end;
}

.shop-card__metrics > span > span {
  min-width: 0;
  white-space: nowrap;
}

.shop-card__metrics .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: #f2a500;
}

.shop-card__metrics b {
  color: var(--color-text);
  font-family: var(--font-medium);
  font-weight: 400;
}

@media (max-width: 360px) {
  .shop-card__metrics > span {
    align-items: flex-start;
  }

  .shop-card__metrics > span > span {
    line-height: 1.3;
    white-space: normal;
  }
}

.shop-card__offers {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.shop-coupon,
.shop-offer {
  position: relative;
  min-height: 140px;
  flex: 0 0 100px;
  overflow: hidden;
  border-radius: 5px;
}

.shop-coupon {
  display: flex;
  flex-basis: 110px;
  flex-direction: column;
  justify-content: center;
  padding: 10px 8px 8px;
  background: #fff1f4;
  text-align: center;
}

.shop-coupon__quantity {
  position: absolute;
  top: 0;
  left: 0;
  padding: 1px 5px;
  border-radius: 0 0 4px;
  background: var(--color-primary);
  color: white;
  font-size: var(--text-caption);
}

.shop-coupon strong {
  overflow: hidden;
  font-family: var(--font-bold);
  font-size: var(--text-title);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-coupon small {
  display: -webkit-box;
  min-height: 32px;
  margin: 7px 0;
  overflow: hidden;
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-coupon button {
  height: 28px;
  border: 1px solid #ff809a;
  border-radius: 4px;
  background: var(--color-primary);
  color: white;
  font-family: var(--font-medium);
}

.shop-offer img {
  width: 100%;
  height: 100px;
  border-radius: 5px;
  object-fit: cover;
}

.shop-offer strong,
.shop-offer small {
  display: block;
  padding: 2px 4px 0;
}

.shop-offer strong {
  overflow: hidden;
  font-family: var(--font-medium);
  font-size: var(--text-card);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-offer small {
  width: fit-content;
  margin: 2px 4px 0;
  border-radius: 2px;
  background: #ffe5ec;
  font-size: var(--text-caption);
  color: var(--color-primary);
}

.product-specs {
  margin: 0;
  font-size: var(--text-emphasis);
}

.product-specs div {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  gap: 8px;
  margin-bottom: 4px;
}

.product-specs dt,
.product-specs dd {
  margin: 0;
}

.product-specs dt {
  color: var(--color-muted);
}

.product-specs dd {
  overflow: hidden;
  color: #777;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-video {
  margin-top: 20px;
}

.product-video h3,
.product-description__copy h3 {
  margin: 0 0 8px;
  font-family: var(--font-medium);
  font-size: var(--text-title);
  font-weight: 400;
}

.product-video video {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #111;
  object-fit: cover;
}

.product-description__copy {
  margin-top: 20px;
}

.product-description__content {
  max-height: 22.5em;
  overflow: hidden;
  color: #555;
  font-size: var(--text-body);
  line-height: var(--line-body);
}

.product-description__copy.is-expanded .product-description__content {
  max-height: none;
}

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

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

.product-description__content h2,
.product-description__content h3,
.product-description__content h4 {
  margin: 16px 0 7px;
  color: var(--color-text);
  font-family: var(--font-medium);
  font-size: var(--text-emphasis);
  font-weight: 400;
}

.product-description__content p {
  margin: 7px 0;
}

.product-description__content ul,
.product-description__content ol {
  margin: 7px 0;
  padding-left: 20px;
}

.product-description__toggle {
  display: flex;
  width: 100%;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 6px;
  border: 0;
  background: white;
  color: var(--color-text);
  cursor: pointer;
  font-family: var(--font-medium);
  font-size: var(--text-card);
}

.product-description__toggle[hidden] {
  display: none;
}

.product-description__toggle .icon {
  width: 15px;
  height: 15px;
  color: var(--color-muted);
  transform: rotate(90deg);
  transition: transform 160ms ease;
}

.product-description__copy.is-expanded .product-description__toggle .icon {
  transform: rotate(-90deg);
}

.related-products {
  background: #f4f4f4;
}

.related-products h2 {
  margin-bottom: 14px;
}

.related-products__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 8px;
}

.related-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: white;
}

.related-card__image {
  position: relative;
  aspect-ratio: 1;
  background: #eee;
}

.related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card__discount {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 43px;
  height: 23px;
  padding: 3px 7px;
  border-radius: 0 0 0 4px;
  background: #ff4949;
  color: white;
  font-family: var(--font-medium);
  font-size: var(--text-label);
  text-align: center;
}

.related-card__body {
  display: flex;
  min-height: 132px;
  flex: 1;
  flex-direction: column;
  padding: 6px 7px 8px;
}

.related-card__title {
  display: -webkit-box;
  min-height: 40px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: var(--text-body);
  line-height: 1.35;
}

.related-card__title .mall-badge {
  margin-right: 3px;
}

.related-card__price {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 9px;
  margin-top: 4px;
}

.related-card__price strong {
  flex: 0 1 auto;
  overflow: hidden;
  color: var(--color-primary);
  font-family: var(--font-medium);
  font-size: 18px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-card__price del {
  min-width: 0;
  overflow: hidden;
  color: var(--color-muted);
  font-size: var(--text-label);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-card__badges,
.related-card__stats {
  display: flex;
  min-width: 0;
  align-items: center;
}

.related-card__badges {
  gap: 6px;
  margin-top: 6px;
}

.related-card__badges .freeship-badge {
  gap: 2px;
}

.related-card__badges .icon {
  width: 11px;
  height: 11px;
}

.related-card__cod {
  padding: 1px 4px;
  border: 1px solid #ffd5de;
  border-radius: 2px;
  color: var(--color-primary);
  font-size: var(--text-caption);
  line-height: 1.2;
}

.related-card__stats {
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: #666;
  font-size: var(--text-small);
}

.related-card__stats > span + span {
  padding-left: 8px;
  border-left: 1px solid #d6d6d6;
}

.related-card__rating b {
  color: var(--color-yellow);
  font-size: var(--text-label);
  font-weight: 400;
}

.variant-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.variant-sheet.is-open {
  display: flex;
}

.variant-sheet__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
}

.variant-sheet__panel {
  position: relative;
  display: flex;
  width: min(100%, var(--product-width));
  max-height: min(92vh, 760px);
  flex-direction: column;
  padding: 14px 16px 0;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  background: white;
  font-size: var(--text-body);
}

.variant-sheet__close {
  position: absolute;
  top: 6px;
  right: 7px;
  z-index: 2;
}

.variant-sheet__close .icon {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.variant-sheet__product {
  display: flex;
  min-height: 112px;
  gap: 12px;
  padding-right: 25px;
}

.variant-sheet__product > img {
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  border-radius: 8px;
  object-fit: cover;
}

.variant-sheet__product h2 {
  margin: 4px 0 7px;
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 700;
}

.variant-sheet__product p,
.variant-sheet__product small {
  display: block;
  margin: 0 0 8px;
  color: var(--color-muted);
}

.variant-sheet__product p {
  font-size: var(--text-label);
}

.variant-sheet__product small {
  font-size: var(--text-body);
}

.variant-sheet__section {
  margin-top: 10px;
}

.variant-sheet h3 {
  margin: 0 0 10px;
  font-size: var(--text-emphasis);
  font-weight: 500;
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.variant-card {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 7px;
  background: white;
  cursor: pointer;
}

.variant-card.is-active {
  border: 2px solid var(--color-primary);
}

.variant-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.variant-card span {
  display: block;
  min-height: 30px;
  padding: 4px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: var(--text-body);
  line-height: var(--line-compact);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.variant-card.is-active span {
  color: var(--color-primary);
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-option {
  min-width: 64px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #dadada;
  border-radius: 3px;
  background: white;
  cursor: pointer;
  font-size: var(--text-body);
}

.size-option.is-active {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.variant-sheet__quantity {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
}

.variant-sheet__quantity h3 {
  margin: 0;
}

.quantity-stepper {
  display: grid;
  width: 118px;
  height: 36px;
  grid-template-columns: 36px 1fr 36px;
  overflow: hidden;
  border-radius: 5px;
  background: #f5f5f5;
}

.quantity-stepper button,
.quantity-stepper output {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: var(--text-emphasis);
}

.quantity-stepper button {
  cursor: pointer;
  font-size: 20px;
}

.variant-sheet__actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: auto -16px 0;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-line);
  background: white;
}

.sheet-action {
  min-height: 48px;
  padding: 7px;
  border: 0;
  border-radius: 24px;
  cursor: pointer;
  font-size: var(--text-title);
  font-weight: 700;
}

.sheet-action--cart {
  background: #f3f3f3;
}

.sheet-action--buy {
  background: var(--color-primary);
  color: white;
}

.sheet-action small {
  display: block;
  font-size: var(--text-small);
  font-weight: 400;
}

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  z-index: 120;
  max-width: 320px;
  padding: 10px 16px;
  border-radius: 4px;
  background: rgba(25, 25, 25, 0.9);
  color: white;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.has-open-sheet {
  overflow: hidden;
}

@media (max-width: 419px) {
  .variant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-header__toolbar {
    padding-right: 4px;
    padding-left: 4px;
  }

  .icon-button {
    width: 36px;
    flex-basis: 36px;
  }
}

@media (min-width: 768px) {
  body {
    padding: 14px 0 40px;
  }

  .product-detail {
    border-radius: 5px;
  }

  .variant-sheet__panel {
    margin-bottom: 12px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .toast {
    transition: none;
  }
}
