/* Unmodified OFL font, self-hosted. Only numeric glyphs use this face. */
@font-face{font-family:"Mall Numerals";src:url("vendor/barlow/BarlowSemiCondensed-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap;unicode-range:U+0030-0039,U+002C,U+002E}
.app :is(.retail-points,.retail-daily,.reference-points,.mall-entry-points,.offer-gift-price,.offer-market-policy,.offer-subsidy strong,.offer-event-price,.offer-item-quote h2,.bundle-item-price,.bundle-totals dd){font-family:"Mall Numerals","PingFang TC","PingFang SC",-apple-system,sans-serif;font-variant-numeric:lining-nums tabular-nums;font-weight:400}
.app[data-page] .retail-daily .reference-points{text-decoration-line:line-through;text-decoration-thickness:1px;text-decoration-color:#98a195;text-decoration-skip-ink:none}

/* Compact the two adjacent shelves without accumulating both 32px paddings. */
.app[data-page=home] .hot-shelf{padding-bottom:14px}
.app[data-page=home] .editorial-featured{padding-top:14px;padding-bottom:24px}
.app[data-page=home] .editorial-featured .featured-intro{margin-bottom:12px}
/* The featured grid shares its compact spacing on the homepage and collection page. */
.app[data-page] .featured-editorial-grid{row-gap:10.4px}
.app[data-page=home] .editorial-for-you .for-you-grid{row-gap:15.45px}
.app[data-page] :is(.featured-editorial-grid,.for-you-grid) .retail-points{font-weight:700;font-synthesis:weight}

/* Recalculate every shared edge from the tighter visible column gap. */
:root{--product-grid-visible-gap:12px;--entry-edge-padding:10.2px;--entry-edge-gap:0px;--entry-edge-disc:54.4px;--home-product-edge:calc(var(--frame-width) * .1 + var(--entry-edge-padding) * .8 - var(--entry-edge-disc) / 2 - var(--entry-edge-gap) * .4);--home-grid-inset:calc((var(--home-product-edge) * 2 + var(--product-grid-visible-gap) - var(--frame-width) * .05 - var(--home-product-gap) * .95) / 1.9)}
:root[data-locale=en]{--entry-edge-padding:12px;--entry-edge-gap:4px}
.app[data-page=home] .hot-cards{gap:12px}
.app[data-page=home] :is(.featured-editorial-grid,.for-you-grid){margin-inline:calc(var(--home-grid-inset) - 16px)}
@media(max-width:359px){:root{--entry-edge-padding:5.1px;--entry-edge-disc:45.9px}:root[data-locale=en]{--entry-edge-padding:12px;--entry-edge-gap:4px}}
@media(max-width:350px){:root{--product-grid-visible-gap:9.6px}.app[data-page=home] .hot-cards{gap:9.6px}}

/* Two lines for identity, one line for the supporting reason. Full reason remains accessible. */
.app[data-page] .for-you-card h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.app[data-page] .for-you-reason{display:block;min-height:19px;height:19px;line-height:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:unset;margin:5px 0}

/* Compact labels for products selected this edition and active offers. */
.featured-editorial-card .product-image,
.offer-catalog-content .offer-card-image {
  position: relative;
}
.product-card-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 1;
  padding: 2px 7px;
  border-radius: 4px;
  background: #eaf0e9;
  color: #315c50;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  white-space: nowrap;
}
.product-card-badge--topup,
.app .home-offers .offer-gift-main .offer-live-subsidy {
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 249, 239, .68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  color: #614b38;
  font-size: 10px;
  line-height: 14px;
  font-weight: 500;
}
.product-card-badge--topup {
  top: 5px;
  left: 5px;
}
.app .home-offers .offer-gift-main .offer-live-subsidy {
  min-height: 0;
}
