.bottom-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mall-home-shell {
  background: #ffe4e7;
  padding-bottom: var(--nav);
}

.mall-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 14px;
  background: #fff;
  color: #4a353d;
}

.mall-brand h1 {
  font-size: 16px;
  font-weight: 650;
}

.mall-record, .mall-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  font-size: 13px;
}

.mall-record svg, .mall-more svg {
  width: 16px;
  height: 16px;
}

.mall-intro {
  padding: 15px 12px 12px;
}

.mall-banner {
  margin-inline: 3px;
  aspect-ratio: 2 / 3;
  border-radius: 9px;
  background: #f9cdd6;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  user-select: none;
}

.mall-banner:active {
  cursor: grabbing;
}

.mall-banner:focus-visible {
  outline: 2px solid #236dd1;
  outline-offset: 2px;
}

.mall-banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
}

.mall-banner-track img {
  flex: 0 0 100%;
  object-fit: cover;
  object-position: center;
}

.mall-banner-count {
  position: absolute;
  right: 14px;
  bottom: 13px;
  min-width: 28px;
  padding: 1px 6px;
  border-radius: 12px;
  background: #24231da6;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

.mall-announcement {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-block: 17px 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

.mall-announcement svg {
  color: #e93352;
  width: 18px;
}

.search.mall-search {
  margin: 0;
  padding-inline: 5px 12px;
  height: 36px;
  background: #fff5f6;
}

.mall-search input {
  height: 100%;
}

.mall-shop-search {
  padding: 10px 12px;
}

.mall-featured, .mall-video {
  padding: 10px 12px 14px;
}

.mall-featured {
  border-block: 1px solid #f7cfd5;
  background: #fff0f2;
}

.mall-featured header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 4px;
}

.mall-featured h2, .mall-video h2 {
  font-size: 17px;
}

.mall-more {
  color: #76565e;
}

.mall-hot-card {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 12px #a2586317;
}

.mall-hot-image {
  position: relative;
}

.mall-hot-image .photo {
  height: clamp(180px, 64vw, 270px);
}

.mall-hot-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 4px;
  writing-mode: vertical-rl;
  border-radius: 4px;
  background: #e83147;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.mall-hot-content {
  display: grid;
  gap: 4px;
  padding: 8px 10px 10px;
}

.mall-hot-content h3 {
  margin: 0;
  font-size: 15px;
}

.mall-hot-content p {
  overflow: hidden;
  color: #76565e;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mall-hot-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
}

.mall-buy {
  min-height: 34px;
  padding: 4px 14px;
  border-radius: 18px;
  background: #e83147;
  color: #fff;
  font-size: 13px;
}

.mall-hot-empty {
  padding: 18px 12px;
  border-radius: 8px;
  background: #fff;
  color: #76565e;
  text-align: center;
}

.mall-video h2 {
  margin: 2px 4px 9px;
}

.mall-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #21181d;
  object-fit: contain;
}

.detail-gallery {
  position: relative;
  background: #fff;
}

.detail-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  align-items: flex-start;
}

.detail-gallery-track .photo {
  flex: 0 0 100%;
  min-width: 0;
  height: auto;
  scroll-snap-align: start;
}

.detail-gallery button, .gallery-count {
  position: absolute;
  border-radius: 20px;
  background: #232323bb;
  color: #fff;
}

.detail-gallery button {
  display: grid;
  place-items: center;
  top: 50%;
  translate: 0 -50%;
  width: 38px;
  height: 38px;
}

.gallery-previous {
  left: 12px;
}

.gallery-next, .gallery-count {
  right: 12px;
}

.gallery-count {
  bottom: 12px;
  padding: 2px 9px;
  pointer-events: none;
}
