/* Shared behavior and responsive guards for the approved formal renderer. */
[hidden] { display: none !important; }
.pay-methods:empty { display: none; }
html[data-storefront-data="loading"] .campaign-carousel,
html[data-storefront-data="loading"] .pay-methods { visibility: hidden; }
.campaign-carousel:has(.server-poster), .campaign-track:has(.server-poster) { min-height: 0; aspect-ratio: 5 / 1; }
.server-poster { cursor: default; }
.server-poster picture, .server-poster img { display: block; width: 100%; height: 100%; }
.server-poster img { object-fit: contain; }
.campaign-carousel:has(.server-poster-placeholder), .campaign-track:has(.server-poster-placeholder) { aspect-ratio: auto; min-height: 210px; }
.poster-unavailable { display: grid; place-items: center; color: var(--ink-soft); font-size: 14px; }
.campaign-dot { position: relative; }
.campaign-dot::after { content: ""; position: absolute; inset: -12px -4px; }
.cat-tab, .sub-tab { min-height: 40px; cursor: pointer; }
.cat-tab:focus-visible, .sub-tab:focus-visible, .bottomnav button:focus-visible { outline: 2px solid var(--stamp-deep); outline-offset: 3px; }
.catalog-empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.catalog-empty-actions a, .catalog-empty-actions button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--ink); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; row-gap: 8px; }
.foot-links a { display: inline-flex; min-height: 36px; align-items: center; }
.foot-copyright { display: block; color: var(--ink-soft); font-size: 11px; }
.foot-tagline { display: none; }
.mobile-more { display: none; position: relative; }
.mobile-more summary { list-style: none; cursor: pointer; }
.mobile-more summary::-webkit-details-marker { display: none; }
.mobile-more svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mobile-more nav { position: absolute; top: calc(100% + 5px); right: 0; z-index: 90; display: grid; min-width: 145px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 8px 24px rgba(1,28,68,.12); }
.mobile-more nav a { min-height: 42px; padding: 12px; color: var(--ink); font-size: 13px; white-space: nowrap; }
.mobile-more summary:focus-visible { outline: 2px solid var(--stamp-deep); outline-offset: 2px; }

/* Keep square covers square while retaining the approved image/information split. */
.pcard:not(.collection-end-card) { container-type: inline-size; min-height: 0; aspect-ratio: auto; }
.pcard:not(.collection-end-card) .pcard-visual { align-self: start; height: 50cqw; }
/* Keep the detail overlay centered when the cover is a native product link. */
#pgrid .pcard:not(.collection-end-card) .pcard-visual { display: grid; text-decoration: none; }
/* Give square covers and complete product information enough desktop space. */
@media (min-width: 901px) {
  #pgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); align-items: start; }
  #pgrid .collection-end-card { grid-column: 1 / -1; }
}
@media (min-width: 1680px) {
  html:lang(en) body:has(#pgrid) .top-row { grid-template-columns: minmax(200px, 1fr) clamp(400px, 32vw, 520px) max-content; }
}
.pcard:not(.collection-end-card) .pcard-info { min-height: 50cqw; padding-block: 8px; }
.pcard:not(.collection-end-card) .cat { margin-bottom: 2px; }
@container (max-width: 340px) {
  .pcard:not(.collection-end-card) .pcard-info { padding-block: 4px; }
  .pcard:not(.collection-end-card) .cat, .pcard:not(.collection-end-card) h4 { margin-bottom: 0; }
  .pcard:not(.collection-end-card) .sales { margin-bottom: 2px; }
  .pcard:not(.collection-end-card) .foot { gap: 2px; }
}
@container (max-width: 300px) {
  .pcard:not(.collection-end-card) .pcard-info { padding-block: 2px; }
  .pcard:not(.collection-end-card) .cat { padding-block: 1px; }
  .pcard:not(.collection-end-card) .tag, .pcard:not(.collection-end-card) .sales { margin-bottom: 0; }
  .pcard:not(.collection-end-card) .foot { gap: 0; }
}
@media (max-width: 900px) {
  .pcard:not(.collection-end-card) .pcard-visual { align-self: stretch; height: 100cqw; flex-basis: auto; }
  .pcard:not(.collection-end-card) .pcard-info { min-height: 0; }
  .pcard:not(.collection-end-card) h4 { min-height: 38px; -webkit-line-clamp: 2; }
}

@media (max-width: 640px) {
  .top-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  .top-row .brand { min-width: 0; gap: 6px; }
  .top-row .brand-title { display: flex; height: auto; }
  .top-row .brand-cn { font-size: 20px; }
  .top-row .brand-en, .top-row .brand-divider, .top-row .brand-tagline, .top-row .brand .en, .top-row .tag { display: none; }
  .top-row .mark { width: 32px; height: 32px; }
  .top-row .search { grid-column: 1 / -1; grid-row: 2; min-width: 0; width: 100%; max-width: none; height: 42px; margin: 0; }
  .toplinks { gap: 0; margin-left: 0; }
  .toplinks .utility-divider, .toplinks .item-label { display: none; }
  .toplinks .utility-links { gap: 0; }
  .toplinks .utility-links > a:first-child, .toplinks .utility-help, .toplinks .utility-contact, .toplinks .utility-orders, .toplinks [data-open-dialog="orders"] { display: none; }
  .toplinks .item { display: flex; min-width: 40px; min-height: 42px; justify-content: center; padding: 0; }
  .lang-switcher { display: block; }
  .lang-toggle { min-width: 40px; min-height: 42px; padding-inline: 4px; }
  .lang-code:not(.is-active), .lang-slash { display: none; }
  .mobile-more { display: block; }
  .mobile-more summary { display: grid; min-width: 40px; min-height: 42px; place-items: center; color: var(--ink-soft); }
  .pcard .btn-cart, .pcard .btn-buy { min-height: 42px; padding-inline: 12px; }
  .campaign-dots { bottom: 14px; }
  .campaign-carousel:has(.server-poster-placeholder), .campaign-track:has(.server-poster-placeholder) { min-height: 240px; }
  .campaign-dot::after { inset: -14px -5px; }
  .foot-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .foot-links { gap: 4px 16px; }
  .foot-links .sep { display: none; }
  body:has(.bottomnav) footer { padding-bottom: calc(78px + env(safe-area-inset-bottom,0px)); }
  .bottomnav button { border: 0; font-family: inherit; }
}

/* Product card hierarchy: labels → name → price → actions. Keep the
   information column stable when a product has a long price or title. */
.pcard:not(.collection-end-card) .pcard-info { min-height: 0; }
.pcard:not(.collection-end-card) .card-labels {
  display: flex;
  min-width: 0;
  min-height: 22px;
  align-items: flex-start;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}
.pcard:not(.collection-end-card) .card-labels:empty { visibility: hidden; }
.pcard:not(.collection-end-card) .card-label {
  display: block;
  min-width: 0;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 3px;
  background: var(--stamp-soft);
  color: var(--stamp-deep);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.pcard:not(.collection-end-card) h4 {
  min-height: 38px;
  margin-bottom: 6px;
}
.pcard:not(.collection-end-card) .foot {
  gap: 8px;
}
.pcard:not(.collection-end-card) .price-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  overflow: hidden;
  white-space: nowrap;
}
.pcard:not(.collection-end-card) .price-main {
  display: flex;
  min-width: 0;
  align-items: baseline;
}
.pcard:not(.collection-end-card) .price {
  min-width: 0;
  overflow: hidden;
  font-size: clamp(13px, 1.1vw, 16px);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard:not(.collection-end-card) .price-meta {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 5px;
  overflow: hidden;
  line-height: 14px;
}
.pcard:not(.collection-end-card) .price-meta .orig,
.pcard:not(.collection-end-card) .price-meta .save {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard:not(.collection-end-card) .price-meta .orig { flex: 0 1 auto; }
.pcard:not(.collection-end-card) .price-meta .save { flex: 1 1 auto; }
.pcard:not(.collection-end-card) .actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  width: 100%;
}
.pcard:not(.collection-end-card) .actions button {
  min-width: 0;
  overflow: hidden;
  padding: 6px 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .pcard:not(.collection-end-card) .card-label { padding-inline: 5px; }
  .pcard:not(.collection-end-card) .price { font-size: 14px; }
}

/* Price-led card layout: make the current price the primary reading target
   and keep the purchase controls anchored to the bottom of the information
   panel.  Explicit left alignment prevents the narrow panel from making the
   price appear visually detached on the right. */
.pcard:not(.collection-end-card) .pcard-info,
.pcard:not(.collection-end-card) .foot { text-align: left; }
.pcard:not(.collection-end-card) .foot {
  align-items: stretch;
  width: 100%;
}
.pcard:not(.collection-end-card) .price-stack {
  align-items: flex-start;
  width: 100%;
}
.pcard:not(.collection-end-card) .price-main {
  justify-content: flex-start;
  width: 100%;
  text-align: left;
}
.pcard:not(.collection-end-card) .price {
  display: inline-flex;
  align-items: baseline;
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.08;
}
.pcard:not(.collection-end-card) .price small {
  margin-left: 2px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}
.pcard:not(.collection-end-card) .price-meta {
  justify-content: flex-start;
  width: 100%;
  font-size: 10.5px;
  text-align: left;
}
.pcard:not(.collection-end-card) .price-meta .orig { font-size: 11px; }
.pcard:not(.collection-end-card) .price-meta .save { font-size: 10.5px; }
.pcard:not(.collection-end-card) .actions { margin-top: 2px; }

.pcard:not(.collection-end-card) .sales{font-size:13px;line-height:18px;font-weight:500;color:#687588;text-align:left;margin:0 0 5px;flex:none;}
