/* Homepage recreation based on the supplied mobile commerce template. */
body {
    color: #27231f !important;
    background: #efede9 !important;
}

.moban-home {
    width: min(430px, 100%) !important;
    min-height: 100dvh !important;
    margin: 0 auto !important;
    padding: 0 10px calc(72px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden;
    background-color: #ffffff !important;
    background-image: url("/assets/member/moban-home/page-background.png") !important;
    background-repeat: no-repeat !important;
    background-position: top center !important;
    background-size: 100% auto !important;
}

.moban-home .mall-header {
    margin: 0 -10px !important;
    padding: calc(10px + env(safe-area-inset-top)) 10px 0 !important;
    overflow: hidden !important;
    background: transparent !important;
}

.moban-home .mall-top {
    min-height: 42px;
    display: grid !important;
    grid-template-columns: minmax(112px, 140px) minmax(0, 1fr);
    align-items: center;
    gap: 9px !important;
    padding: 0 0 10px !important;
}

.moban-home .brand-logo {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    color: #26221f !important;
    font-size: 18px !important;
    font-weight: 750 !important;
    line-height: 1.2;
    white-space: nowrap;
}

.moban-home .brand-logo img {
    flex: 0 0 auto;
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
}

.moban-home .brand-logo.has-logo {
    font-size: 14px !important;
}

.moban-home .brand-logo span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.moban-home .search-card,
.moban-home .mall-header .search-card {
    width: 100%;
    min-width: 0;
    min-height: 36px !important;
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 0 !important;
    padding: 0 12px 0 0 !important;
    border: 0 !important;
    border-radius: 19px !important;
    background: #f7f7f7 !important;
    box-shadow: none !important;
}

.moban-home .search-card input {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    height: 34px;
    padding: 0;
    color: #3c3732 !important;
    font-size: 15px !important;
}

.moban-home .search-card input::placeholder { color: #a29c96 !important; }

.moban-home .search-card .search-icon {
    grid-column: 1;
    grid-row: 1;
    width: 38px;
    min-width: 38px !important;
    height: 36px;
    min-height: 36px !important;
    border-radius: 0 !important;
    color: #999999 !important;
    background: transparent !important;
    font-size: 21px;
}

.moban-home .hero-slider {
    margin: 0 0 12px !important;
    padding: 0 !important;
    border-radius: 8px;
}

.moban-home .hero-card {
    aspect-ratio: 646 / 270 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #eee9e2 !important;
    box-shadow: none !important;
}

.moban-home .hero-card > img { object-fit: cover !important; }

.moban-home .hero-dots {
    bottom: 7px;
    gap: 4px;
}

.moban-home .hero-dots button {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, .68);
}

.moban-home .hero-dots button.active {
    width: 20px;
    background: #d79c3d !important;
}

.home-menu-section {
    margin: 0 -10px;
    padding: 0 10px 10px;
    background: transparent;
}

.moban-home .quick-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 13px 3px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.moban-home .quick-item {
    min-width: 0;
    min-height: 66px;
    display: grid;
    grid-template-rows: 50px auto;
    justify-items: center;
    align-content: start;
    gap: 6px;
    padding: 0 !important;
    color: #2d2925 !important;
    background: transparent !important;
    font-size: 13px !important;
}

.moban-home .quick-item > span:last-child {
    width: 100%;
    overflow: hidden;
    line-height: 1.35;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.moban-home .quick-icon-wrap {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #eadbc3;
    border-radius: 50%;
    background: #fffaf2;
    box-shadow: none;
}

.moban-home .quick-icon {
    width: 48px !important;
    height: 48px !important;
    display: block;
    border: 0 !important;
    border-radius: 50% !important;
    object-fit: contain;
    background: transparent !important;
}

.moban-home .home-therapist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 0 -8px 10px;
}

.moban-home .home-therapist-grid img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 110 / 131;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.moban-home .gift-order-entry {
    min-height: 68px;
    margin: 0 0 10px !important;
    padding: 10px 12px;
    border: 1px solid #ead8bc !important;
    border-radius: 8px !important;
    background: #fff9ef !important;
    box-shadow: none !important;
}

.moban-home .gift-order-entry-icon {
    color: #a96f22 !important;
    background: #ffffff !important;
}

.moban-home .gift-order-entry-copy strong { color: #2c2722; }
.moban-home .gift-order-entry-action { color: #a96f22 !important; }

.moban-home .store-card-grid {
    gap: 7px;
    margin-bottom: 10px;
}

.moban-home .store-entry-card {
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.moban-home .elder-goods-section {
    margin: 0 0 10px !important;
    padding: 12px 10px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #fff0df !important;
    box-shadow: none !important;
}

.moban-home .elder-goods-head {
    gap: 7px;
    margin: 0 0 10px;
}

.moban-home .elder-goods-head h2 {
    color: #26221e !important;
    font-size: 18px !important;
    font-weight: 750 !important;
}

.moban-home .elder-goods-head span {
    min-height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 1px 7px;
    border-radius: 4px;
    color: #ffffff;
    background: #d7a04a;
    font-size: 12px;
}

.moban-home .elder-goods-list { gap: 8px; }

.moban-home .elder-goods-item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    min-height: 106px;
    padding: 9px;
    border: 0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
}

.moban-home .elder-goods-item > img {
    width: 88px;
    height: 88px;
    border-radius: 7px;
    object-fit: cover;
}

.moban-home .elder-goods-info h3 {
    margin: 1px 0 6px;
    color: #292521;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.moban-home .elder-goods-info strong {
    color: #ba2525 !important;
    font-size: 19px;
    font-weight: 750;
}

.moban-home .elder-goods-info button {
    min-width: 74px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 17px !important;
    color: #ffffff;
    background: #c79547 !important;
    font-size: 13px;
    font-weight: 600;
}

.moban-home .health-goods-section {
    margin: 0 0 10px;
    padding: 12px 10px 16px;
    border-radius: 8px;
    background: #fff0df;
}

.moban-home .health-goods-head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
}

.moban-home .health-goods-head h2 {
    margin: 0;
    color: #26221e;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.35;
}

.moban-home .health-goods-head span {
    min-height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 1px 7px;
    border-radius: 4px;
    color: #ffffff;
    background: #d7a04a;
    font-size: 12px;
}

.moban-home .health-goods-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.moban-home .health-goods-item {
    min-width: 0;
    padding: 10px 10px 9px;
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
}

.moban-home .health-goods-image {
    width: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.moban-home .health-goods-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.moban-home .health-goods-item h3 {
    min-height: 44px;
    margin: 8px 2px 4px;
    display: -webkit-box;
    overflow: hidden;
    color: #2b2723;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.moban-home .health-goods-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
}

.moban-home .health-goods-foot strong {
    min-width: 0;
    overflow: hidden;
    color: #c11f1f;
    font-size: 18px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.moban-home .health-goods-cart {
    width: 100%;
    min-width: 0;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    background: linear-gradient(135deg, #d2a457, #b88437);
    box-shadow: 0 3px 8px rgba(151, 109, 39, .2);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.moban-home .health-goods-cart::after {
    content: none;
}

.moban-home .product-tabs {
    position: relative;
    top: auto;
    z-index: 1;
    min-height: 64px;
    display: grid;
    grid-template-columns: repeat(var(--product-tab-count, 2), minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 12px !important;
    padding: 0 !important;
    overflow: visible;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.moban-home .product-tabs button {
    position: relative;
    min-width: 0;
    min-height: 64px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    overflow: hidden;
    border: 1px solid #eadbc3 !important;
    border-radius: 8px !important;
    color: #514b45;
    background: #ffffff !important;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 600;
}

.moban-home .product-tab-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #eadbc3;
    border-radius: 50%;
    background: #fffaf2;
}

.moban-home .product-tab-icon img {
    width: 42px;
    height: 42px;
    display: block;
    border-radius: 50%;
    object-fit: contain;
}

.moban-home .product-tab-label {
    min-width: 0;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    border-radius: 0;
    line-height: 1.35;
    white-space: nowrap;
}

.moban-home .product-tabs button.active {
    border-color: #d5a04c !important;
    color: #8f5d17 !important;
    background: #fff0df !important;
}

.moban-home .product-tabs button.active .product-tab-label {
    color: #8f5d17;
    background: transparent;
    font-weight: 750;
}

.moban-home .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 10px !important;
    margin: 0 !important;
    padding: 0 2px 20px !important;
}

.moban-home .product-card {
    min-width: 0;
    overflow: hidden !important;
    border: 1px solid rgba(218, 203, 181, .9) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(72, 52, 30, .07), 0 7px 18px rgba(72, 52, 30, .09) !important;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.moban-home .product-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid #eee5d8;
    border-radius: 7px 7px 0 0;
    background: #faf8f5;
}

.moban-home .product-image,
.moban-home .product-card > img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    border-radius: 7px 7px 0 0 !important;
    object-fit: contain !important;
    background: #faf8f5 !important;
}

.moban-home .product-card-body { padding: 7px 9px 9px !important; }

@media (hover: hover) {
    .moban-home .product-card:hover {
        border-color: #d4b984 !important;
        box-shadow: 0 2px 4px rgba(72, 52, 30, .08), 0 11px 24px rgba(72, 52, 30, .13) !important;
    }
}

.moban-home .product-card h3 {
    min-height: 42px;
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    color: #2b2723 !important;
    font-size: 14px;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.moban-home .product-card-tags {
    min-height: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.moban-home .product-card-tags span {
    min-height: 17px;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    border: 1px solid #e7bcae;
    border-radius: 3px;
    color: #bf5d42;
    background: #fffdfa;
    font-size: 9px;
    line-height: 1;
}

.moban-home .product-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    margin-top: 4px;
}

.moban-home .level-price-block {
    min-width: 0;
    display: flex !important;
    align-items: baseline;
    gap: 4px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.moban-home .price {
    color: #b57c2b !important;
    font-size: 18px !important;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.moban-home .level-price-block del {
    max-width: 54px;
    overflow: hidden;
    color: #aaa39c;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.moban-home .product-buy-btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    display: grid;
    place-items: center;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #d2a457, #b88437) !important;
    box-shadow: 0 3px 8px rgba(151, 109, 39, .2) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

.moban-home .product-buy-btn::after {
    content: none;
}

.moban-home .product-buy-btn:disabled {
    color: #ffffff !important;
    background: #c8c2bb !important;
}

.moban-home .product-sales {
    display: block;
    margin-top: -1px;
    color: #9a948e !important;
    font-size: 10px !important;
}

.moban-home .home-empty,
.moban-home .elder-empty {
    grid-column: 1 / -1;
    padding: 30px 12px;
    color: #8d857e;
    text-align: center;
}

.moban-home + .bottom-nav,
body > .bottom-nav {
    width: min(430px, 100%) !important;
    min-height: calc(58px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid #eee6da !important;
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: 0 -4px 14px rgba(73, 55, 35, .06) !important;
}

.moban-home + .bottom-nav a,
body > .bottom-nav a {
    min-height: 58px;
    grid-template-rows: auto auto !important;
    align-content: center;
    gap: 3px;
    color: #746e68 !important;
}

.moban-home + .bottom-nav a.active,
body > .bottom-nav a.active { color: #b57c2b !important; }

@media (max-width: 359px) {
    .moban-home .mall-top { grid-template-columns: 76px minmax(0, 1fr); }
    .moban-home .brand-logo { font-size: 16px !important; }
    .moban-home .quick-item { font-size: 11px !important; }
    .moban-home .product-grid { gap: 16px 7px !important; }
    .moban-home .price { font-size: 16px !important; }
}

@media (min-width: 700px) {
    .moban-home { box-shadow: 0 0 30px rgba(62, 48, 34, .08) !important; }
}

.moban-home .level-price-block {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1px 4px;
}

.moban-home .current-level-price {
    grid-column: 1 / -1;
    display: block;
    margin: 0;
    color: #8d6b2d;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.moban-home .level-price-block .price {
    grid-column: 1;
    min-width: 0;
}

.moban-home .level-price-block del {
    grid-column: 2;
}

.moban-home .product-card h3 {
    min-height: 34px;
    line-height: 1.35 !important;
}
