/* Home product-card normalization and missing-image fallback. */
.hot-product-items > .van-swipe-item {
  flex: 0 0 100% !important;
  width: 100% !important;
}

.hot-product-items {
  align-items: stretch;
}

.hot-product-items .hot-product-item {
  display: flex;
  flex: 0 0 calc(50% - 0.35rem) !important;
  min-width: 0;
}

.hot-product-container {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Shop product rows size to their content; 100% height makes each row taller
   than the visible cards inside the scrollable shop page. */
.container[data-v-6924684b] .products > .hot-product-container {
  height: auto;
}

.hot-product-container .product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #f4f6f8 url('/product-image-placeholder.svg') center / 62% auto no-repeat;
}

.hot-product-container .product-img .van-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  background: transparent;
}

.hot-product-container .product-img .van-image__img,
.horiz-product-container .van-image__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Product cards use native images so the browser can defer off-screen work. */
.hot-product-container .product-img > img.product-card-image,
.horiz-product-container > img.product-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  color: transparent;
  opacity: 0.32;
  filter: grayscale(1);
  transition: opacity 260ms ease, filter 260ms ease;
}

.hot-product-container .product-img > img.product-card-image.is-loaded,
.horiz-product-container > img.product-card-image.is-loaded {
  opacity: 1;
  filter: none;
}

.hot-product-container .product-img > img.product-card-image {
  aspect-ratio: 1 / 1;
}

.hot-product-container .product-name {
  width: 100% !important;
  min-height: 2.4rem;
  line-height: 1.2rem !important;
  white-space: normal !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hot-product-container .product-popular {
  margin-top: auto;
}

.horiz-product-container {
  min-height: 8rem;
  box-sizing: border-box;
}

.horiz-product-container > .van-image {
  flex: 0 0 7rem;
  width: 7rem !important;
  height: 7rem !important;
  align-self: center;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #f4f6f8 url('/product-image-placeholder.svg') center / 62% auto no-repeat;
}

.horiz-product-container > img.product-card-image {
  flex: 0 0 7rem;
  width: 7rem;
  height: 7rem;
  align-self: center;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #f4f6f8 url('/product-image-placeholder.svg') center / 62% auto no-repeat;
}

.horiz-product-container .product-info {
  min-width: 0;
}

.horiz-product-container .product-name {
  width: 100% !important;
  line-height: 1.25rem !important;
  white-space: normal !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Skip layout and paint work for recommendation cards far below the viewport. */
.hot-shop .horiz-product-container {
  content-visibility: auto;
  contain-intrinsic-size: auto 8.6rem;
}

/* The bundled 10.6 MB font is unsuitable for a mobile storefront. */
.container.safari_only,
.container.safari_only button,
.container.safari_only input,
.container.safari_only textarea,
.container.safari_only select {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif !important;
}

.container.safari_only {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* Immediate HTML shell shown before the application bundle has executed. */
.app-boot-shell {
  min-height: 100vh;
  padding: 1.2rem 1rem;
  box-sizing: border-box;
  background: #fff;
  color: #191919;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.app-boot-shell__brand {
  height: 2.5rem;
  display: flex;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 700;
}

.app-boot-shell__search,
.app-boot-shell__banner,
.app-boot-shell__pill,
.home-progressive-skeleton__image,
.home-progressive-skeleton__line {
  position: relative;
  overflow: hidden;
  background: #f1f3f5;
}

.app-boot-shell__search::after,
.app-boot-shell__banner::after,
.app-boot-shell__pill::after,
.home-progressive-skeleton__image::after,
.home-progressive-skeleton__line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 70%), transparent);
  animation: mall-skeleton-shimmer 1.25s infinite;
}

.app-boot-shell__search {
  height: 2.8rem;
  margin-top: 0.8rem;
  border-radius: 1.4rem;
}

.app-boot-shell__banner {
  aspect-ratio: 16 / 7;
  margin-top: 1rem;
  border-radius: 0.75rem;
}

.app-boot-shell__pills {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

.app-boot-shell__pill {
  width: 5.2rem;
  height: 1.8rem;
  border-radius: 0.9rem;
}

.home-progressive-skeleton {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.65rem;
}

.home-progressive-skeleton--hot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.home-progressive-skeleton__card {
  min-width: 0;
}

.home-progressive-skeleton--hot .home-progressive-skeleton__image {
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
}

.home-progressive-skeleton--recommendations .home-progressive-skeleton__card {
  display: flex;
  min-height: 8rem;
  margin-bottom: 0.55rem;
  padding: 0.5rem;
  box-sizing: border-box;
  border-radius: 0.5rem;
  background: #fff;
}

.home-progressive-skeleton--recommendations .home-progressive-skeleton__image {
  flex: 0 0 7rem;
  height: 7rem;
  border-radius: 0.5rem;
}

.home-progressive-skeleton__copy {
  flex: 1;
  padding: 0.75rem 0 0 0.8rem;
}

.home-progressive-skeleton__line {
  height: 0.8rem;
  margin-top: 0.65rem;
  border-radius: 0.4rem;
}

.home-progressive-skeleton__line--price {
  width: 45%;
  height: 1rem;
}

.home-progressive-skeleton__line--short {
  width: 68%;
}

.is-progressive-loading > .van-empty,
.is-progressive-loading > .van-space {
  display: none !important;
}

@keyframes mall-skeleton-shimmer {
  100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .app-boot-shell__search::after,
  .app-boot-shell__banner::after,
  .app-boot-shell__pill::after,
  .home-progressive-skeleton__image::after,
  .home-progressive-skeleton__line::after {
    animation: none;
  }

  .product-card-image {
    transition: none !important;
  }
}

/* Progressive rendering shared by every storefront route. */
.mall-shop-search-status,
.mall-shop-search-retry {
  display: block;
  box-sizing: border-box;
  width: calc(100% - 2rem);
  margin: 1.25rem auto;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: #fff;
  color: #666;
  font: inherit;
  text-align: center;
}

.mall-shop-search-retry {
  color: #222;
  cursor: pointer;
}

img.mall-progressive-image {
  opacity: 0.18;
  filter: grayscale(1);
  transition: opacity 240ms ease, filter 240ms ease;
}

img.mall-progressive-image.is-loaded {
  opacity: 1;
  filter: none;
}

img.mall-progressive-image.is-fallback {
  object-fit: contain !important;
  background-color: #f4f6f8;
}

.mall-route-skeleton {
  width: 100%;
  min-height: 26rem;
  padding: 1rem;
  box-sizing: border-box;
  background: #fff;
}

.mall-route-skeleton__title,
.mall-route-skeleton__hero,
.mall-route-skeleton__row i,
.mall-route-skeleton__row b {
  display: block;
  position: relative;
  overflow: hidden;
  background: #f1f3f5;
}

.mall-route-skeleton__title::after,
.mall-route-skeleton__hero::after,
.mall-route-skeleton__row i::after,
.mall-route-skeleton__row b::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 72%), transparent);
  animation: mall-skeleton-shimmer 1.25s infinite;
}

.mall-route-skeleton__title {
  width: 38%;
  height: 1.35rem;
  margin: 0.25rem 0 1rem;
  border-radius: 0.7rem;
}

.mall-route-skeleton__hero {
  width: 100%;
  aspect-ratio: 16 / 7;
  margin-bottom: 1rem;
  border-radius: 0.7rem;
}

.mall-route-skeleton__row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
  padding: 0.45rem 0;
}

.mall-route-skeleton__row i {
  flex: 0 0 4.5rem;
  height: 4.5rem;
  border-radius: 0.5rem;
}

.mall-route-skeleton__row span {
  flex: 1;
  padding-top: 0.4rem;
}

.mall-route-skeleton__row b {
  width: 88%;
  height: 0.8rem;
  margin-bottom: 0.8rem;
  border-radius: 0.4rem;
}

.mall-route-skeleton__row b:last-child {
  width: 55%;
}

/* Suppress only route-entry loading toasts; action feedback returns after content settles. */
html.mall-route-booting .van-toast--loading,
html.mall-route-booting .van-toast.van-toast--loading {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Avoid expensive off-screen layout throughout long list pages. */
.van-list > *,
[class*="product-list"] > *,
[class*="order-list"] > * {
  content-visibility: auto;
  contain-intrinsic-size: auto 6rem;
}

@media (prefers-reduced-motion: reduce) {
  img.mall-progressive-image { transition: none; }
  .mall-route-skeleton *::after { animation: none; }
}
/* Keep masked payment digits visible in Android embedded WebViews. */
body .pay-panel-container .van-password-input__security i {
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background-color: #191919 !important;
  box-shadow: 0 0 0 1px rgb(25 25 25 / 8%) !important;
  transform: translate3d(-50%, -50%, 0) !important;
  -webkit-transform: translate3d(-50%, -50%, 0) !important;
  will-change: opacity, visibility;
}
body .pay-panel-container .van-password-input__security i[style*="hidden"] {
  visibility: hidden !important;
  opacity: 0 !important;
}
body .pay-panel-container .van-password-input__security i[style*="visible"] {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Keep the six password cells above the fixed keyboard on Android WebViews. */
body .pay-panel-container {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  padding: 16px !important;
  padding-bottom: 260px !important;
  overflow-y: auto !important;
  background: #fff !important;
}
body .pay-panel-container .pwd-container {
  display: block !important;
  padding-top: 16px !important;
  visibility: visible !important;
  opacity: 1 !important;
}
body .pay-panel-container .van-password-input {
  display: block !important;
  position: relative !important;
  margin: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}
body .pay-panel-container .van-password-input__security {
  display: flex !important;
  width: 100% !important;
  height: 54px !important;
  visibility: visible !important;
  opacity: 1 !important;
}
body .pay-panel-container .van-password-input__security li {
  display: flex !important;
  min-width: 0 !important;
  height: 54px !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #f5f5f5 !important;
  border: 1px solid #d8d8d8 !important;
  border-radius: 6px !important;
}
body .pay-panel-container .van-number-keyboard {
  margin-bottom: 0 !important;
  padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
}
.container.safari_only .home-content .swipe-board .van-image {
  height: auto !important;
  aspect-ratio: 710 / 308;
}

.container.safari_only .home-content .swipe-board .van-image__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.container.safari_only .home-content .swipe-board {
  width: 100%;
  max-width: 710px;
  margin-inline: auto;
}
