:root {
  color-scheme: light;
  color: #242424;
  background: #eff0f5;
  font: 16px / 1.4 Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }

.mall-home {
  width: min(100%, 430px);
  min-height: 100dvh;
  margin-inline: auto;
  padding-block-end: calc(74px + env(safe-area-inset-bottom));
  background: #eff0f5;
}

button {
  border: 0;
  padding: 0;
  color: inherit;
  background: none;
  font: inherit;
}

button:disabled { opacity: 1; }
a:focus-visible, button:focus-visible { outline: 2px solid #925416; outline-offset: 2px; }

.brand-header {
  padding: 4px max(8px, 2.125%) 0;
  background:
    linear-gradient(to bottom, transparent calc(100% - 36px), #fffef8),
    #f9e7a7 url("/static/brand-header-clouds.webp") center / cover no-repeat;
}

.brand { display: flex; flex-direction: column; justify-content: center; min-height: 90px; }
.brand h1, .brand p { margin: 0; }
.brand h1 img { display: block; width: 110px; height: auto; }
.brand p { margin-block-start: 8px; color: #70471f; font-size: 12px; }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 38px;
  padding-inline: 14px;
  border: 2px solid #171c26;
  border-radius: 50px;
  color: #737782;
  background: #fafafa;
  font-size: 13px;
  text-align: left;
}

.search::before {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background:
    radial-gradient(circle at 6px 6px, transparent 4px, currentColor 4.7px 5.4px, transparent 6px),
    linear-gradient(45deg, transparent 41%, currentColor 41% 56%, transparent 56%) 9px 9px / 5px 5px no-repeat;
  color: #92949c;
}

.guarantees {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.guarantees li { flex: 1 1 25%; padding-inline: 2px; text-align: center; font-size: 10px; line-height: 12px; }
.guarantees li + li { border-inline-start: 1px solid; }

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(83px, auto);
  gap: 4px 0;
  margin: 4px 11px 0;
  padding: 17px 15px 6px;
  border-radius: 7px;
  background: white;
}

.shortcut-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: clamp(10px, 2.95vw, 12.6px);
  line-height: 1.6;
  white-space: nowrap;
}
.shortcut-grid img { width: clamp(37px, 11.5vw, 49px); height: auto; }

.banner-carousel {
  position: relative;
  overflow: hidden;
  margin: 12px 4% 0;
  border-radius: 13px;
}
.banner-carousel > img { display: block; width: 100%; height: clamp(110px, 32.5vw, 133px); object-fit: fill; }
.banner-controls { position: absolute; inset-inline: 0; bottom: 1px; display: flex; justify-content: center; }
.banner-controls button { display: grid; place-items: center; width: 18px; height: 20px; cursor: pointer; }
.banner-controls button::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #ffffffb3; }
.banner-controls button[aria-pressed="true"]::before { background: #fc5369; }

.catalog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 220px;
  padding-block-start: 55px;
  color: #65686d;
}
.catalog-empty img { width: 105px; height: 105px; object-fit: contain; }
.catalog-empty p { margin: 0; font-size: 14px; }

.bottom-nav {
  position: fixed;
  z-index: 1;
  inset-inline: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(100%, 430px);
  height: calc(75px + env(safe-area-inset-bottom));
  margin-inline: auto;
  padding: 3px 6px env(safe-area-inset-bottom);
  border-top: 1px solid #f1e3ca;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -3px 12px #6f4d220d;
  background: #fff7e5;
}
.bottom-nav > * {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  color: #766c61;
  text-decoration: none;
}

.tab-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  max-width: 100%;
  height: 46px;
  margin-block-end: 3px;
}
.tab-icon img { position: relative; width: 42px; height: 42px; object-fit: contain; }
.bottom-nav button:not(.tab-ai) img { opacity: 0.84; }

.tab-ai .tab-icon::before,
.bottom-nav [aria-current] .tab-icon::before {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  border: 1px solid #ffc269;
  background: #ffe4a8;
}
.tab-ai .tab-icon::before { bottom: 5px; width: 64px; height: 64px; border-color: transparent; background: #ffe7a9b3; }
.tab-ai .tab-icon img { position: absolute; bottom: 0; width: 55px; height: 69px; }
.tab-label { margin-block-end: 2px; padding: 1px 6px; border-radius: 8px; font-size: 12px; line-height: 16px; }
.bottom-nav [aria-current] .tab-label { color: #924800; background: #ffe7bd; font-weight: 700; }
.bottom-nav [aria-current] .tab-label::after { content: ""; display: block; width: 17px; height: 2px; margin-inline: auto; border-radius: 2px; background: #f78b20; }
