/* Hongmeng's flat, fixed-size product tiles stay distinct from Luna's list cards. */
.theme-hongmeng:is([data-page="home-index"],[data-page="product-list"]) .main-box:is(#category,#goods) {border:1px solid #f1e5e6;border-radius:12px;box-shadow:none;background:#fff}
.theme-hongmeng #goods .goods-list {display:grid;grid-template-columns:repeat(auto-fill,minmax(248px,1fr));gap:12px;align-items:stretch;font-size:14px}
.theme-hongmeng #goods .goods-list>.hm-product-card {box-sizing:border-box;position:relative;display:block;width:100%;min-width:0;max-width:none;height:114px;min-height:114px;max-height:114px;margin:0;padding:10px;border:1px solid #f1e5e6;border-radius:10px;background:#fff;box-shadow:none;color:var(--text);font-size:14px;text-align:left;overflow:hidden;transform:none}
.theme-hongmeng #goods .goods-list>.hm-product-card:hover {border-color:#e4cdcf;box-shadow:0 4px 14px #713c4110}
.theme-hongmeng #goods .hm-product-main {display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px;min-width:0;min-height:0;height:100%}
.theme-hongmeng #goods .hm-product-main.is-text-only {grid-template-columns:minmax(0,1fr)}
.theme-hongmeng #goods .hm-product-cover {align-self:start;position:relative;box-sizing:border-box;width:92px;height:92px;margin:0;border-radius:8px;background:#f9f5f5;overflow:hidden}
.theme-hongmeng #goods .hm-product-cover img {display:block;width:100%;height:100%;max-width:none;margin:0;aspect-ratio:1;object-fit:cover}
.theme-hongmeng #goods .hm-product-info {display:grid;grid-template-rows:minmax(0,1fr) 28px 16px;gap:4px;min-width:0;min-height:0}
.theme-hongmeng #goods .hm-product-name {display:-webkit-box;align-self:start;min-height:0;height:auto;max-height:40px;margin:0;color:#583538;font-size:14px;font-weight:600;line-height:20px;white-space:normal;text-wrap:balance;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.theme-hongmeng #goods .hm-product-price {display:flex;align-items:baseline;flex:none;min-width:0;height:26px;margin:0;color:var(--c1);font-size:18px;font-weight:600;line-height:26px;white-space:nowrap}
.theme-hongmeng #goods .hm-currency {margin-right:2px;font-size:12px;font-weight:500}
.theme-hongmeng #goods .product-spec-start {margin-left:4px;font-size:10px;font-weight:400;line-height:16px}
.theme-hongmeng #goods .hm-product-foot {box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:30px;padding-top:0;border-top:0}
.theme-hongmeng #goods .hm-product-stats {display:flex;align-items:center;gap:8px;min-width:0;color:#96777a;font-size:10px;font-weight:400;line-height:16px;white-space:nowrap;overflow:hidden}
.theme-hongmeng #goods .hm-product-stats span {min-width:0;overflow:hidden;text-overflow:ellipsis}
.theme-hongmeng #goods .hm-product-link {display:flex;align-items:center;flex:none;gap:4px;box-sizing:border-box;max-width:70px;min-width:36px;min-height:26px;margin:0;padding:0 6px;border:1px solid #f0e3e4;border-radius:6px;background:#faf7f7;color:var(--c1);font-size:11px;font-weight:500;line-height:18px}
.theme-hongmeng #goods .hm-product-link span {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.theme-hongmeng #goods .hm-product-link svg {display:block;flex:none;width:14px;height:14px}
.theme-hongmeng #goods .hm-product-card:focus-visible {outline:2px solid var(--c1);outline-offset:3px}
@media(max-width:767px){.theme-hongmeng #goods .goods-list{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}.theme-hongmeng #goods .goods-list>.hm-product-card{height:114px;min-height:114px;max-height:114px}}
@media(max-width:359px){.theme-hongmeng #goods .goods-list{grid-template-columns:minmax(0,1fr)}.theme-hongmeng #goods .hm-product-main{grid-template-columns:92px minmax(0,1fr);gap:8px}.theme-hongmeng #goods .hm-product-cover{width:92px;height:92px}}

.theme-hongmeng #goods .hm-cover-tag {position:absolute;top:4px;left:4px;padding:1px 4px;border-radius:3px;background:#fffffff0;color:#b86d57;font-size:9px;font-weight:500;line-height:14px}

.theme-hongmeng #goods .hm-product-card:hover .hm-product-link {background:var(--c1);border-color:var(--c1);color:#fff}

.theme-hongmeng #goods .hm-product-purchase {display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}
@media(max-width:359px){.theme-hongmeng #goods .hm-product-main {grid-template-columns:80px minmax(0,1fr)}.theme-hongmeng #goods .hm-product-cover {width:80px;height:80px}.theme-hongmeng #goods .hm-product-price {font-size:17px}}

.theme-hongmeng #goods .hm-product-link {position:absolute;right:10px;bottom:10px;min-width:42px;justify-content:center}
.theme-hongmeng #goods .hm-product-stats {box-sizing:border-box;gap:6px;padding-right:50px}
