.on-mall-page:not(.on-mall-home) .app-header { padding-inline: 0; }
.mall-page-heading { --heading-side: calc(var(--capsule-width) + var(--capsule-right) + 4px); display: grid; grid-template-columns: var(--heading-side) minmax(0, 1fr) var(--heading-side); align-items: center; width: 100%; min-height: 56px; }
.mall-page-heading h1 { min-width: 0; text-align: center; font-size: 1.375rem; line-height: 1.45; overflow-wrap: anywhere; }
.mall-back { display: flex; align-items: center; justify-content: center; width: 56px; min-height: 56px; margin-left: 8px; background: transparent; border-radius: var(--radius-control); }
.on-mall-page main { padding-top: 8px; padding-bottom: calc(16px + var(--safe-area-bottom)); }
#mall-content { padding-bottom: var(--mall-bar-height, 0px); font-size: 1.125rem; overflow-wrap: anywhere; }
#mall-content h2 { font-size: 1.375rem; line-height: 1.5; }
#mall-content h3 { font-size: 1.375rem; line-height: 1.5; margin-block: 8px; }
.mall-panel > h2 { margin-bottom: 8px; }
.mall-panel > p + p { margin-top: 8px; }
.mall-discovery { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 8px; min-width: 0; }
.mall-search { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--control); border-radius: var(--radius-control); padding: 0 4px 0 12px; min-width: 0; }
.mall-search > span { color: var(--text-secondary); flex: 0 0 auto; }
.mall-search .icon { width: 22px; height: 22px; }
.mall-search input { border: 0; flex: 1; width: 0; min-width: 0; min-height: 56px; padding: 10px 0; background: transparent; font: inherit; color: var(--text); }
.mall-search input::placeholder { color: var(--text-secondary); opacity: 1; }
.mall-search button { background: transparent; color: var(--primary-text); border-radius: 8px; min-height: 56px; min-width: 56px; padding: 8px 4px; flex-shrink: 0; font-weight: 600; }
.mall-filter { min-width: 0; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-control); }
.mall-filter summary { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 56px; padding: 8px 4px; cursor: pointer; color: var(--text-secondary); list-style: none; }
.mall-filter summary::-webkit-details-marker, .mall-category-menu summary::-webkit-details-marker { display: none; }
.mall-filter summary .icon { width: 14px; height: 14px; }
.mall-filter[open] summary, .mall-filter.has-filters summary { color: var(--primary-text); font-weight: 600; background: var(--surface-tint); border-radius: var(--radius-control); }
.mall-filter[open] summary .icon, .mall-category-menu[open] summary > .icon { transform: rotate(180deg); }
.mall-filter form { position: absolute; top: calc(100% + 8px); right: 0; width: 100%; max-height: min(65dvh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: var(--space-detail); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-floating); }
.mall-filter form h2 { margin-bottom: 8px; text-align: center; }
.mall-category-menu { min-width: 0; padding: 0 12px; border-radius: var(--radius-control); background: var(--surface); border: 1px solid var(--border); }
.mall-category-menu summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; cursor: pointer; list-style: none; }
.mall-category-menu summary > span { color: var(--text-secondary); }
.mall-category-menu summary > strong { flex: 1; min-width: 0; font-weight: 500; color: var(--primary-text); text-align: right; }
.mall-category-menu summary > .icon { flex: 0 0 16px; width: 16px; height: 16px; color: var(--text-secondary); }
.mall-category-menu .mall-categories { padding: 8px 0 12px; }
.mall-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mall-category { min-height: 56px; border-radius: var(--radius-control); padding: 12px 4px; background: var(--surface); border: 1px solid var(--border); font-size: 1.125rem; }
.mall-category[aria-pressed=true], .mall-option[aria-pressed=true], .mall-option.is-current { background: var(--surface-tint); border-color: var(--primary-text); color: var(--primary-text); font-weight: 600; }
.mall-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.mall-muted { color: var(--text-secondary); font-size: var(--font-supporting); }
.mall-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mall-product { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); color: var(--text); text-decoration: none; }
.mall-product > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--background); }
.mall-product-copy { display: grid; align-content: start; gap: 4px; padding: 10px; }
.mall-product-copy strong { font-size: 1.25rem; line-height: 1.45; }
.mall-price { color: var(--primary-text); font-weight: 600; font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.mall-price small { font-size: var(--font-supporting); margin-left: 3px; font-weight: 400; }
.mall-price-large { font-size: 2rem; }
.mall-gallery { display: grid; gap: 8px; }
.mall-gallery img { width: 100%; height: auto; border-radius: var(--radius-card); max-height: 280px; object-fit: contain; background: var(--surface); }
.mall-options, .mall-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mall-options { gap: 10px; }
.mall-actions { margin-top: 12px; }
.mall-option { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; border: 1px solid var(--control); border-radius: 10px; padding: 10px 12px; background: white; font-size: 1.125rem; color: var(--text); text-decoration: none; }
.mall-option:disabled { cursor: default; }
.mall-link { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; min-width: 56px; padding: 8px 4px; color: var(--primary-text); background: transparent; border-radius: 8px; text-decoration: underline; text-underline-offset: 4px; font-size: 1.125rem; }
.mall-button { display: inline-flex; justify-content: center; align-items: center; min-height: 56px; padding: 10px 16px; background: var(--surface-tint); color: var(--primary-text); border: 1px solid var(--border-accent); border-radius: 10px; text-decoration: none; font-size: 1.125rem; }
.mall-quantity { display: inline-flex; align-items: center; gap: 8px; margin-block: 12px; max-width: 100%; }
.mall-quantity button { display: flex; align-items: center; justify-content: center; width: 56px; min-height: 56px; padding: 4px; border: 1px solid var(--control); border-radius: 10px; color: var(--primary-text); background: white; font-size: 1.5rem; }
.mall-quantity button:disabled { color: var(--text-secondary); cursor: default; background: var(--disabled-surface); }
.mall-quantity output { min-width: 36px; text-align: center; }
.mall-details { margin-block: 12px 0; }
.mall-details > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding-block: 10px; border-bottom: 1px solid var(--border); }
.mall-details > div:last-child { border-bottom: 0; }
.mall-details dt { color: var(--text-secondary); }
.mall-details dd { margin: 0; }
.mall-tag { display: inline-block; padding: 4px 8px; border-radius: 6px; background: var(--green-surface); color: var(--green); font-size: var(--font-supporting); font-weight: 500; }
.mall-line { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; padding-block: 10px; min-width: 0; }
.mall-line + .mall-line { border-top: 1px solid var(--border); }
.mall-line > img { border-radius: 10px; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.mall-line-copy { min-width: 0; }
.mall-line-copy > .mall-link { justify-content: flex-start; min-height: 56px; padding: 0; text-align: left; font-weight: 600; color: var(--text); text-decoration: none; }
.mall-line-copy > p { margin-top: 4px; }
.mall-cart-line { display: flex; align-items: flex-start; gap: 4px; border-top: 1px solid var(--border); }
.mall-cart-line > .mall-check { flex: 0 0 32px; padding-block: 20px; }
.mall-cart-line > .mall-line { flex: 1; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
.mall-check { display: flex; align-items: center; gap: 10px; min-height: 56px; cursor: pointer; }
.mall-check input { width: 24px; height: 24px; accent-color: var(--primary-text); flex: 0 0 auto; margin: 0; }
.mall-check input:disabled { cursor: default; }
.mall-field { display: grid; gap: 8px; margin-bottom: 16px; min-width: 0; }
.mall-field > span { font-weight: 500; }
.mall-field input, .mall-field textarea, .mall-field select { font: inherit; font-size: var(--font-body); color: var(--text); width: 100%; min-width: 0; min-height: 64px; border: 1px solid var(--control); border-radius: 10px; background: white; padding: 12px; }
.mall-field textarea { min-height: 110px; resize: vertical; }
.mall-field input[type=file] { font-size: var(--font-supporting); padding: 10px 6px; }
.mall-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mall-empty { padding: 24px 12px; display: grid; justify-items: center; text-align: center; gap: 12px; }
.mall-empty > .icon { width: 56px; height: 56px; color: var(--text-secondary); }
.mall-empty p { color: var(--text-secondary); }
.mall-empty .primary-button { max-width: 280px; }
.mall-bottom { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 3; width: 100%; max-width: 480px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px var(--page-gutter) calc(8px + var(--safe-area-bottom)); background: var(--surface); border-top: 1px solid var(--border); }
.mall-bottom > .primary-button, .mall-bottom > .secondary-button { flex: 1 1 100px; width: auto; min-width: 0; padding: 12px 10px; font-size: 1.125rem; }
.mall-bottom > .mall-link { flex: 0 1 auto; }
.mall-icon-action { display: grid; justify-items: center; gap: 2px; min-height: 56px; padding: 4px; font-size: var(--font-supporting); background: transparent; color: var(--primary-text); }
.mall-icon-action .icon { width: 24px; height: 24px; }
.mall-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: 100%; }
.mall-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 2px; border-radius: 8px; color: var(--text-secondary); text-decoration: none; line-height: 1.4; font-size: var(--font-supporting); min-width: 0; text-align: center; }
.mall-tab.is-current { color: var(--primary-text); background: var(--surface-tint); font-weight: 600; }
.mall-cart-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; width: 100%; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.mall-cart-footer > span { flex: 1 1 120px; }
.mall-cart-footer small { display: block; }
.mall-cart-footer .primary-button { width: auto; flex: 1 1 120px; min-width: 0; min-height: 64px; padding: 12px; }
.order-business-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px; background: var(--surface-tint); border-radius: var(--radius-control); margin-bottom: 12px; }
.order-business-tabs a { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 10px; border-radius: 8px; color: var(--text-secondary); text-decoration: none; text-align: center; font-size: 1.125rem; }
.order-business-tabs .is-current { color: var(--primary-text); background: white; font-weight: 600; }
.mall-status { color: var(--primary-text); font-weight: 600; }
.mall-error, .mall-notice { padding: 14px; border-radius: var(--radius-control); margin-bottom: 16px; background: var(--rose-surface); color: var(--rose); }
.mall-error-inline { color: var(--rose); }
.mall-notice { color: var(--amber); background: var(--amber-surface); }
.mall-toast { position: fixed; bottom: calc(var(--mall-bar-height, 0px) + 20px); left: 50%; transform: translateX(-50%); width: max-content; max-width: min(90vw, 420px); padding: 12px 16px; border-radius: var(--radius-control); color: white; background: #384636; z-index: 5; box-shadow: var(--shadow-floating); }
.mall-payment-method { display: flex; align-items: center; gap: 10px; margin-block: 16px; }
.mall-payment-result { display: grid; justify-items: center; gap: 16px; padding-block: 16px; }
.mall-payment-result > .icon { color: var(--green); width: 56px; height: 56px; }
.mall-row-link { display: flex; align-items: center; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--primary-text); }
.mall-timeline { list-style: none; padding: 0 0 0 16px; margin: 16px 0 0; }
.mall-timeline li { position: relative; border-left: 2px solid #D6DECD; padding: 0 0 16px 16px; }
.mall-timeline li::before { content: ''; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; background: var(--green); border-radius: 50%; }
.mall-timeline li:last-child { padding-bottom: 0; }
.mall-timeline time, .mall-message time { color: var(--text-secondary); font-size: var(--font-supporting); }
.mall-review { padding: 12px 0; border-top: 1px solid var(--border); }
.mall-review p { margin-top: 8px; }
.mall-image-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mall-image-list a { max-width: 100%; }
.mall-image-list img { width: 88px; height: 88px; max-width: 100%; object-fit: cover; border-radius: 8px; }
.mall-messages { display: grid; gap: 12px; }
.mall-message { justify-self: start; max-width: 90%; min-width: 0; border: 1px solid var(--border); background: white; border-radius: 14px; padding: var(--space-content); }
.mall-message.from-buyer { justify-self: end; background: var(--green-surface); border-color: #C5DCC6; }
.mall-message p { white-space: pre-wrap; margin-block: 6px; }
.mall-context { display: block; border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-top: 12px; color: var(--primary-text); }
.large-text .mall-products, .large-text .mall-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.extra-large-text .mall-products, .extra-large-text .mall-categories, .extra-large-text .mall-field-pair { grid-template-columns: minmax(0, 1fr); }
.extra-large-text .mall-line, .extra-large-text .mall-cart-line > .mall-line { grid-template-columns: minmax(0, 1fr); }
.extra-large-text .mall-line > img { width: 100px; }
.extra-large-text .mall-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 350px) { .mall-cart-line > .mall-line { grid-template-columns: minmax(0, 1fr); } .mall-cart-line > .mall-line > img { width: 72px; } .mall-product-copy { padding: 10px; } }

.mall-product-detail { display: grid; gap: 0; min-width: 0; background: var(--surface); border-radius: var(--radius-card); }
.mall-product-detail .mall-gallery { padding: 0; }
.mall-product-summary { display: grid; gap: 8px; padding: var(--space-detail); }
#mall-content .mall-product-summary h2 { font-size: 1.5rem; line-height: 1.4; }
.mall-product-summary > .mall-link { justify-self: start; }
.mall-product-detail > .mall-panel { margin: 0 16px; padding: var(--space-detail) 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
.mall-product-detail > .mall-panel > h2 { font-size: 1.25rem; }
.mall-product-detail > .mall-panel > p { font-size: var(--font-body); }
.mall-filter summary:focus-visible, .mall-category-menu summary:focus-visible { outline: 3px solid var(--primary-text); outline-offset: 3px; border-radius: 8px; }
.large-text .mall-discovery { grid-template-columns: minmax(0, 1fr); }
.large-text .mall-filter summary { justify-content: space-between; padding-inline: 16px; }
.large-text .mall-filter form { position: static; width: auto; max-height: none; box-shadow: none; border: 0; }
.large-text .mall-products { grid-template-columns: minmax(0, 1fr); }
.extra-large-text .mall-category-menu summary { flex-wrap: wrap; }
@media (max-width: 350px) { .mall-products { grid-template-columns: minmax(0, 1fr); } }

/* Storefront */
html:has(.on-mall-home) { scroll-padding-bottom: calc(var(--nav-height) + 16px); }
.on-mall-home .app-shell {
  background: linear-gradient(180deg, var(--surface-tint), var(--background) 620px, var(--surface) 1040px);
}
.on-mall-home .app-header { background: var(--surface-tint); }
.on-mall-home .mini-program-capsule { background: var(--surface); border-color: var(--border); }
.on-mall-home .mall-page-heading { width: 1px; min-height: 0; }
.on-mall-home .location-context { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: start; }
.on-mall-home main { padding-bottom: calc(var(--nav-height) + 16px); }
.on-mall-home .bottom-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-radius: 20px 20px 0 0;
}
.on-mall-home .bottom-nav .nav-item { flex: 1 1 max(56px, 3.75rem); color: var(--text); }
.on-mall-home .bottom-nav .nav-item[aria-current="page"] { color: var(--primary-text); }
.on-mall-home .nav-item[aria-current="page"] [data-icon="shopping"] path:first-child { fill: currentColor; }
.on-mall-home .nav-ai-label { max-width: 100%; padding-inline: 3px; white-space: normal; text-align: center; }
.on-mall-home #mall-toast { bottom: calc(var(--nav-height) + 16px); }

.mall-home { display: grid; gap: var(--space-section); font-size: var(--font-body); container: mall-home / inline-size; }
.mall-home > .mall-search { gap: 0; margin-block-end: calc(var(--space-content) - var(--space-section)); padding: 0 12px 0 0; box-shadow: var(--shadow-nav); }
.mall-home > .mall-search button { display: grid; place-items: center; }
.mall-home > .mall-search .icon { width: 26px; height: 26px; }
.mall-search-field { display: grid; flex: 1; min-width: 0; }
.mall-search-field > * { grid-area: 1 / 1; }
.mall-search-field input { width: 100%; }
.mall-search-field label { align-self: center; padding-block: 10px; line-height: 1.4; color: var(--text-secondary); pointer-events: none; }
.mall-search-field input:focus + label, .mall-search-field input:not(:placeholder-shown) + label { opacity: 0; }

.mall-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-radius: var(--radius-panel);
  overflow: hidden;
  margin-block-end: calc(var(--space-content) - var(--space-section));
  background: linear-gradient(105deg, #fff2dc, #fae4c5);
  color: #54230b;
}
.mall-hero-copy { z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: start; gap: 8px; padding: var(--space-card); padding-inline-start: var(--space-detail); }
#mall-content .mall-hero h2 { font-size: 1.75rem; line-height: 1.3; font-weight: 700; }
.mall-hero h2 span { display: block; text-wrap: balance; }
.mall-hero-copy p {
  padding: 3px 10px;
  border-radius: var(--radius-action);
  background: linear-gradient(110deg, #b64e00, #ae380b);
  color: var(--surface);
  font-size: var(--font-supporting);
  font-weight: 600;
}
.mall-hero img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; }
@container mall-home (min-width: 20rem) {
  .mall-hero { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
  .mall-hero img {
    width: calc(100% + 32px);
    margin-inline-start: -32px;
    mask-image: linear-gradient(to right, transparent, #000 32px);
  }
}
.mall-shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 6px;
  margin-block-end: calc(var(--space-content) - var(--space-section));
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, #f0f8fc, var(--surface));
  box-shadow: var(--shadow-nav);
}
.mall-shortcut {
  flex: 1 1 max(56px, 4.5rem);
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  min-width: 56px;
  min-height: 56px;
  padding: 4px 2px;
  color: #101c68;
  font-size: var(--font-supporting);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-card);
}
.mall-shortcut-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-card);
  color: var(--surface);
  background: linear-gradient(145deg, var(--shortcut-light), var(--shortcut-main) 55%, var(--shortcut-deep));
  box-shadow: inset 0 0 0 1px #ffffff50, inset 0 2px 4px #ffffff55, 0 2px 5px #102a6314;
}
.mall-shortcut-icon .icon { width: 32px; height: 32px; filter: drop-shadow(0 1px 1px #102a6333); }
.mall-shortcut-amber { --shortcut-light: #ffd782; --shortcut-main: #ffa409; --shortcut-deep: #ff7900; }
.mall-shortcut-violet { --shortcut-light: #e5bbff; --shortcut-main: #b471f4; --shortcut-deep: #903bf2; }
.mall-shortcut-blue { --shortcut-light: #a4e2fb; --shortcut-main: #2bb1f8; --shortcut-deep: #0094f0; }
.mall-shortcut-green { --shortcut-light: #b3eab4; --shortcut-main: #47ca68; --shortcut-deep: #00b856; }
.mall-shortcut-rose { --shortcut-light: #ffbbc5; --shortcut-main: #ff6b86; --shortcut-deep: #ff3c64; }
.mall-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 2px solid var(--surface);
  border-radius: var(--radius-card);
  background: var(--surface-gradient);
}
.mall-assurances li { display: flex; flex: 1 1 6.5rem; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 4px; line-height: 1.35; }
@container mall-home (min-width: 22rem) {
  .mall-assurances li + li { border-inline-start: 1px solid var(--border-accent); }
}
.mall-assurances .icon { width: 24px; height: 24px; color: var(--primary-text); }
.mall-assurances strong, .mall-assurances small { display: block; font-size: var(--font-supporting); }
.mall-assurances small { color: var(--text-secondary); }

.mall-home-section { display: grid; gap: 8px; }
.mall-home-section .mall-heading h2 { padding-inline-start: 10px; border-inline-start: 4px solid var(--primary-action); }
#mall-content .mall-home .mall-heading h2, #mall-content .mall-promotion h2 { font-size: 1.625rem; line-height: 1.35; }
.mall-home-today .mall-heading h2 { padding-inline-start: 0; border: 0; }
.mall-home-trial .mall-heading h2 { border-inline-start-color: var(--amber); }
.mall-home-more { display: inline-flex; align-items: center; gap: 4px; min-width: 56px; min-height: 56px; font-size: var(--font-supporting); font-weight: 600; text-decoration: none; }
.mall-home-more .icon { width: 16px; height: 16px; }
.mall-home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: var(--space-content); }
.mall-recommendation, .mall-popular-card {
  min-width: 0;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-nav);
}
.mall-recommendation {
  display: grid;
  grid-template-columns: minmax(44px, 35%) minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 8px;
}
.mall-recommendation img, .mall-popular-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: var(--background); border-radius: 8px; }
.mall-recommendation img { background: #fbf4ea; }
.mall-recommendation-copy, .mall-popular-copy { display: grid; gap: 4px; line-height: 1.45; }
.mall-recommendation-copy strong, .mall-popular-copy strong { font-size: var(--font-body); }
.mall-recommendation-copy > small, .mall-popular-copy small { color: var(--text-secondary); font-size: var(--font-supporting); }
.mall-home .mall-price { color: var(--rose); }
.mall-recommendation-meta, .mall-popular-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.mall-recommendation-meta { align-items: center; }
.mall-shop-product { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-action); color: var(--surface); }
.mall-shop-product .icon { width: 18px; height: 18px; }
.mall-popular-card { display: flex; flex-direction: column; }
.mall-popular-card img { aspect-ratio: 4 / 3; border-radius: var(--radius-card) var(--radius-card) 0 0; }
.mall-popular-copy { flex: 1; padding: var(--space-card); }
.mall-popular-meta { align-self: end; }
.mall-promotion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-content);
  padding: var(--space-detail);
  border-radius: var(--radius-panel);
}
.mall-promotion p { font-size: var(--font-supporting); }
.mall-promotion-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-card); background: #ffffff26; color: var(--surface); }
.mall-promotion-coupons {
  background: radial-gradient(circle at 83% 11%, #ffcb32 0 5px, transparent 6px),
    radial-gradient(circle at 91% 23%, #ffc579 0 3px, transparent 4px),
    radial-gradient(circle at 100% 0%, #ffffff26 0 48px, transparent 49px),
    radial-gradient(circle at 0% 100%, #ffffff19 0 29px, transparent 30px),
    linear-gradient(105deg, #ff7109, #ff9e08 55%, #ff901b);
  box-shadow: 0 6px 16px #b75b1024;
}
.mall-coupon-copy { flex: 1 1 10rem; min-width: 0; }
.mall-coupon-offers { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: 6px; }
.mall-coupon-offers span { padding: 5px 10px; border-radius: var(--radius-action); background: #ffffff30; font-size: var(--font-supporting); font-weight: 600; }
:is(.mall-coupon-claim, .mall-trial-apply, .mall-new-buy):disabled {
  position: relative;
  isolation: isolate;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: var(--radius-action);
  background: transparent;
  font-weight: 600;
  cursor: default;
}
:is(.mall-coupon-claim, .mall-trial-apply, .mall-new-buy):disabled::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8px 0;
  border-radius: inherit;
  background: var(--promotion-button-surface);
}
.mall-coupon-claim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-inline-start: auto;
  font-size: var(--font-supporting);
}
.mall-coupon-claim:disabled { --promotion-button-surface: var(--surface); padding-inline: 12px; color: var(--text-secondary); }
.mall-coupon-claim .icon { width: 16px; height: 16px; }
@container mall-home (min-width: 26rem) {
  .mall-promotion-coupons { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 6px; }
  .mall-promotion-icon, .mall-coupon-claim { grid-row: 1 / span 2; }
  .mall-promotion-icon { grid-column: 1; }
  .mall-coupon-claim { grid-column: 3; }
  .mall-coupon-offers { grid-column: 2; }
}
.mall-promotion-flash { display: grid; background: linear-gradient(125deg, #ff2b41, #e90020); box-shadow: var(--shadow-nav); }
.mall-flash-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.mall-flash-heading { display: flex; align-items: center; gap: 8px; }
.mall-flash-heading .icon { color: #ffe054; }
.mall-flash-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mall-flash-clock { display: inline-flex; align-items: center; gap: 4px; color: var(--surface); font-variant-numeric: tabular-nums; }
.mall-flash-clock b { min-width: 2em; padding: 3px 5px; border-radius: 6px; background: var(--surface); color: var(--rose); text-align: center; }
.mall-flash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: var(--space-content); }
.mall-flash-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 56px;
  padding: var(--space-card);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.mall-flash-card img { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: contain; border-radius: 8px; background: var(--background); }
.mall-flash-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: var(--text-secondary); }
.mall-flash-price > small { font-size: var(--font-supporting); }
.mall-flash-track { height: 8px; border-radius: var(--radius-action); background: #fce9ed; }
.mall-coupon-copy, .mall-coupon-offers, .mall-flash-heading h2, .mall-flash-status p {
  color: var(--surface);
  paint-order: stroke fill;
}
.mall-coupon-copy, .mall-coupon-offers { -webkit-text-stroke: 2px #683008; }
.mall-flash-heading h2, .mall-flash-status p { -webkit-text-stroke: 2px #77171b; }
.mall-trial-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#mall-trial-availability { color: var(--text-secondary); font-size: var(--font-supporting); }
.mall-trial-zero { padding: 2px 9px; border-radius: var(--radius-action); background: #ab4600; color: var(--surface); font-size: var(--font-supporting); font-weight: 600; }
.mall-trial-list { padding-inline: var(--space-card); border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); box-shadow: var(--shadow-nav); }
.mall-trial-card { display: grid; align-items: center; gap: var(--space-content); padding-block: var(--space-detail); }
.mall-trial-card + .mall-trial-card { border-block-start: 1px solid var(--border); }
.mall-trial-product {
  display: grid;
  gap: 4px;
  min-height: 56px;
  border-radius: var(--radius-card);
  color: var(--text);
  text-decoration: none;
}
.mall-trial-photo { position: relative; display: block; max-width: 160px; }
.mall-trial-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: var(--radius-card); background: var(--background); }
.mall-trial-photo .mall-trial-zero { position: absolute; top: 4px; right: 4px; background: var(--rose); }
.mall-trial-copy { display: grid; gap: 8px; min-width: 0; }
.mall-trial-copy small { color: var(--text-secondary); font-size: var(--font-supporting); }
.mall-trial-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.mall-trial-apply:disabled {
  --promotion-button-surface: var(--amber-surface);
  justify-self: end;
  color: var(--amber);
}
@container mall-home (min-width: 20rem) {
  .mall-trial-card { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}
.mall-new-card {
  display: grid;
  gap: var(--space-content);
  padding: var(--space-detail);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-nav);
}
.mall-new-photo {
  display: grid;
  place-items: center;
  align-self: start;
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1;
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, #fff3e4, #ffe3c4);
  color: #a55b24;
}
.mall-new-photo .icon { width: 48px; height: 48px; }
.mall-new-copy { display: grid; justify-items: start; gap: 8px; min-width: 0; }
#mall-content .mall-new-copy h3 { margin: 0; font-size: var(--font-body); line-height: 1.4; }
.mall-new-copy p, .mall-new-price small { color: var(--text-secondary); font-size: var(--font-supporting); }
.mall-new-badge {
  padding: 2px 9px;
  border-radius: var(--radius-action);
  background: var(--primary-action);
  color: var(--surface);
  font-size: var(--font-supporting);
  font-weight: 600;
}
.mall-new-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.mall-new-price { display: grid; }
.mall-new-price strong { color: var(--rose); font-size: 1.625rem; }
.mall-new-buy:disabled {
  --promotion-button-surface: var(--surface-tint);
  color: var(--primary-text);
}
@container mall-home (min-width: 22rem) {
  .mall-new-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
}
.mall-home-status { padding: var(--space-detail); border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary); }
