/* The mobile homepage and the decoration preview use the same component styles. */
.mh-home-header {
  position: sticky;
  top: 0;
  z-index: 25;
  padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 10px;
  color: var(--mpv-ink);
  background: #fffaf7;
  border-bottom: 1px solid #f0e7e0;
}
.mh-home-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mh-home-tools > b { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-home-tools > button {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 34px; border: 0; padding: 0 3px; background: none; color: var(--mpv-muted);
  font: inherit; font-size: 12px;
}
.mh-home-tools .mh-location { max-width: 46%; }
.mh-home-tools .mh-location span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-home-tools .mh-location i:first-child { color: var(--mobile-shop-accent, #ce451c); font-size: 15px; }
.mh-home-tools .mh-home-support { width: 36px; font-size: 19px; }
.mh-home-header .mh-main-search {
  display: flex; align-items: center; gap: 8px; height: 46px; margin: 0; padding: 3px 3px 3px 12px;
  border: 1px solid #d95027; border-radius: 12px; background: #fff;
}
.mh-main-search > i { flex: none; font-size: 19px; color: #b23e1f; }
.mh-home-header .mh-main-search input {
  flex: 1; width: 0; min-width: 0; height: 100%; border: 0; padding: 0;
  outline: 0; background: transparent; color: var(--mpv-ink); font: inherit; font-size: 14px;
}
.mh-main-search input::placeholder { color: #687384; }
.mh-home-header .mh-main-search button {
  flex: none; min-width: 68px; height: 38px; padding: 0 12px; border: 0; border-radius: 8px;
  background: #c8431c; color: white; font-size: 14px; font-weight: 650;
}
.mh-main-search:focus-within { outline: 2px solid #bd4a2d; outline-offset: 2px; }

.mpv-search-home { padding: 10px 12px 0; gap: 16px; }
.mpv-search-home .mpv-carousel-section { padding: 0; border: 0; border-radius: 13px; overflow: hidden; }
.mpv-search-home .mpv-carousel-slide { border-radius: 0; touch-action: pan-y; }
.mpv-search-home .mpv-carousel-copy {
  display: grid; gap: 5px; align-content: end; inset: 0; padding: 16px 48px 28px 16px;
  background: linear-gradient(90deg,#1d1429df, #1d142950 65%, transparent), linear-gradient(0deg,#1d142976,transparent 45%);
}
.mpv-search-home .mpv-carousel-copy b { font-size: clamp(19px,5.5vw,28px); line-height: 1.25; }
.mpv-search-home .mpv-carousel-copy small { font-size: 11px; line-height: 1.45; }
.mpv-search-home .mpv-carousel-dots button { height: 18px; width: 16px; background: transparent; }
.mpv-search-home .mpv-carousel-dots button::after { content: ''; display: block; width: 5px; height: 5px; margin: auto; border-radius: 6px; background: #ffffffa8; }
.mpv-search-home .mpv-carousel-dots button.active::after { width: 14px; background: white; }
.mpv-search-home .mpv-carousel-arrow {
  top: 8px; width: 32px; height: 32px; transform: none; background: #fffdf2dc;
}
.mpv-search-home .mpv-carousel-arrow.prev { left: auto; right: 45px; }
.mpv-search-home .mpv-carousel-arrow.next { right: 9px; }
.mpv-search-home .mpv-product-section, .mpv-search-home .mpv-page-nav:has(.mpv-page-nav-cards) {
  border: 0; background: transparent; padding: 0;
}
.mpv-search-home .mpv-section-head { padding: 0 1px 8px; align-items: center; }
.mpv-search-home .mpv-component-head { margin-bottom: 8px; padding: 0 1px; }
.mpv-search-home :is(.mpv-section-head,.mpv-component-head) b { color: var(--mpv-ink); font-size: 18px; line-height: 1.4; }
.mpv-search-home .mpv-section-head button { min-height: 40px; padding: 0 4px; color: #a23b20; font-size: 12px; }
.mpv-search-home .mpv-products { padding: 0; gap: 9px; }
.mpv-search-home .mpv-product { border: 1px solid #eee8e3; border-radius: 11px; background: white; }
.mpv-search-home .mpv-product-image { aspect-ratio: 1.2; background: #f8f7f5; }
.mpv-search-home .mpv-product-info b { margin-bottom: 6px; min-height: 2.8em; font-weight: 600; }
.mpv-search-home .mpv-page-nav-cards { gap: 9px; }
.mpv-search-home .mpv-page-nav-cards > button {
  position: relative; min-height: 72px; min-width: 0; flex-direction: row; justify-content: flex-start; align-items: center;
  text-align: left; padding: 8px; border: 1px solid #eee8e3; border-radius: 11px; background: #fff;
}
.mpv-search-home .mpv-page-nav-cards > button::after { content: '›'; margin-left: auto; color: #9f7464; }
.mpv-search-home .mpv-page-nav-cards > button > :is(img,i) { width: 47px; height: 47px; border-radius: 7px; object-fit: contain; flex: none; }
.mpv-search-home .mpv-page-nav-cards b { font-size: 13px; color: var(--mpv-ink); white-space: normal; overflow-wrap: anywhere; }

.mh-catalog-results { padding: 8px 12px 12px; }
.mh-search-count { color: var(--mpv-muted); font-size: 12px; }
.mh-search-pages { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 12px; }
.mh-search-pages:empty { display: none; }
.mh-search-pages button, .mh-empty button {
  min-height: 40px; padding: 0 12px; border: 1px solid var(--mpv-line); border-radius: 8px;
  background: white; color: #a23b20; font: inherit;
}
.mh-search-pages button:disabled { color: #7e8490; background: #f8f6f3; }
.mh-empty {
  grid-column: 1/-1; display: grid; justify-items: center; gap: 8px; padding: 18px 8px;
  color: var(--mpv-muted); font-size: 13px; text-align: center;
}
.mh-empty i { font-size: 26px; color: #9c6956; }
.mh-empty b { color: var(--mpv-ink); }
