*{box-sizing:border-box}
html,body{margin:0;padding:0}
body.mall-body{
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    background:#f3e8dd;
    color:#111827;
}
a{text-decoration:none;color:inherit}
.container{max-width:1200px;margin:0 auto;padding:0 16px}

/* header */
.mall-header{
    background:#111827;
    color:#fff;
    position:sticky;
    top:0;
    z-index:20;
    box-shadow:0 8px 20px rgba(15,23,42,.15)
}
.mall-header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:64px;
    gap:16px
}
.mall-logo-text{
    font-size:20px;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase
}
.mall-nav-right{display:flex;gap:12px}
.mall-nav-link{
    font-size:14px;
    color:#e5e7eb;
    padding:8px 12px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.04)
}
.mall-nav-link:hover{background:rgba(255,255,255,.10)}

/* main */
.mall-main{padding:32px 0 40px}

/* pills */
.mall-top-pills{
    display:flex;
    gap:12px;
    margin-bottom:20px;
    flex-wrap:wrap
}
.pill-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 18px;
    border-radius:999px;
    border:1px solid #d1d5db;
    background:rgba(255,255,255,.8);
    font-size:13px
}

/* hero */
.mall-hero{
    background:#fefaf6;
    border-radius:24px;
    padding:32px 20px 28px;
    text-align:center;
    box-shadow:0 12px 30px rgba(15,23,42,.10);
    margin-bottom:28px
}
.mall-hero-title{
    margin:0 0 6px;
    font-size:32px;
    font-weight:800
}
.mall-hero-subtitle{
    margin:0 0 20px;
    color:#4b5563;
    font-size:14px
}
.mall-search-bar{
    display:flex;
    align-items:center;
    max-width:560px;
    margin:0 auto;
    background:#fff;
    border-radius:999px;
    padding:6px 8px;
    box-shadow:0 6px 15px rgba(15,23,42,.10)
}
.mall-search-bar.left{margin:0}
.mall-search-bar input[type="text"]{
    flex:1;
    border:none;
    background:transparent;
    padding:10px 14px;
    font-size:16px;
    outline:none
}
.mall-search-bar button{
    width:40px;
    height:40px;
    border-radius:999px;
    border:none;
    background:#111827;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer
}

/* stores */
.mall-stores-section{margin-top:28px}
.mall-stores-header h2{margin:0 0 6px;font-size:22px}
.mall-stores-header p{margin:0 0 18px;font-size:14px;color:#4b5563}
.mall-store-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:18px
}
.mall-store-card{
    background:#fefaf6;
    border-radius:22px;
    padding:18px 14px 16px;
    box-shadow:0 10px 24px rgba(15,23,42,.10);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:space-between;
    min-height:220px;
    transition:transform .12s ease,box-shadow .12s ease
}
.mall-store-card:hover{
    transform:translateY(-3px);
    box-shadow:0 16px 34px rgba(15,23,42,.16)
}
.mall-store-logo-wrap{
    width:72px;
    height:72px;
    border-radius:999px;
    background:#f3f4f6;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    margin-bottom:12px
}
.mall-store-logo-wrap img{
    max-width:100%;
    max-height:100%;
    object-fit:contain
}
.mall-store-info{text-align:center;margin-bottom:12px}
.mall-store-name{font-size:15px;font-weight:700}
.mall-store-tag{
    font-size:11px;
    letter-spacing:.1em;
    text-transform:uppercase;
    color:#9ca3af;
    margin-top:2px
}
.mall-store-footer{width:100%;display:flex;justify-content:center}
.mall-store-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 16px;
    border-radius:999px;
    border:1px solid #111827;
    background:#fff;
    font-size:13px
}

/* store page */
.store-hero-card{
    display:flex;
    align-items:center;
    gap:18px;
    background:#fefaf6;
    border-radius:22px;
    box-shadow:0 10px 24px rgba(15,23,42,.10);
    padding:18px;
    margin-bottom:20px
}
.store-logo-wrap{
    width:72px;
    height:72px;
    border-radius:999px;
    background:#f3f4f6;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden
}
.store-logo-wrap.large{
    width:88px;
    height:88px
}
.store-logo-wrap img{
    max-width:100%;
    max-height:100%;
    object-fit:contain
}
.store-hero-info h1{margin:0 0 6px;font-size:28px}
.store-hero-info p{margin:0;color:#6b7280}
.store-search-section{margin-bottom:10px}

/* product grid */
.product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(185px,1fr));
    gap:16px;
    margin-top:12px
}
.product-card{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 10px 24px rgba(15,23,42,.12);
    display:flex;
    flex-direction:column;
    transition:transform .12s ease,box-shadow .12s ease
}
.product-card:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 36px rgba(15,23,42,.18)
}
.product-img-wrap{
    width:100%;
    height:240px;
    background:#f3f4f6;
    display:flex;
    align-items:center;
    justify-content:center
}
.product-img-wrap img{
    width:100%;
    height:100%;
    object-fit:contain
}
.product-info{
    padding:12px;
    display:flex;
    flex-direction:column;
    gap:6px
}
.product-title{
    font-size:13px;
    line-height:1.35;
    font-weight:600;
    color:#111827;
    min-height:38px;
    margin:0
}
.product-store{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:12px;
    color:#6b7280
}
.product-store-logo{
    width:18px;
    height:18px;
    object-fit:contain;
    border-radius:4px;
    background:#f3f4f6
}
.product-price-wrap{
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:wrap
}
.product-old-price{
    font-size:12px;
    text-decoration:line-through;
    color:#9ca3af
}
.product-price{
    font-size:15px;
    font-weight:800;
    color:#111827
}

/* footer */
.mall-footer{
    border-top:1px solid #e5e7eb;
    padding:16px 0;
    font-size:13px;
    color:#4b5563;
    background:#fdf5ec;
    margin-top:24px
}

.loading-indicator{
    text-align:center;
    padding:16px;
    font-size:13px;
    color:#6b7280
}

@media (max-width: 900px){
    .store-hero-card{
        flex-direction:column;
        align-items:flex-start
    }
}

@media (max-width: 640px){
    .mall-main{padding:16px 0 28px}
    .mall-hero-title{font-size:26px}
    .product-grid,
    .mall-store-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
}