/* CompactList theme: 紧凑横向商品列表，原主题样式不受影响 */
.item-list { display:flex; flex-direction:column; gap:0; margin:0; }
.item-list > .compact-product { width:100%; max-width:100%; box-sizing:border-box; display:flex; align-items:center; position:relative; gap:16px; padding:14px 16px; color:inherit; background:rgba(255,255,255,.78); border-bottom:1px solid rgba(148,163,184,.22); transition:background .18s ease, transform .18s ease; overflow:hidden; }
.item-list > .compact-product:first-child { border-radius:12px 12px 0 0; }
.item-list > .compact-product:last-child { border-radius:0 0 12px 12px; border-bottom:0; }
.item-list > .compact-product:hover { background:rgba(255,255,255,.98); transform:translateX(2px); }
.compact-product__thumb { width:64px; height:64px; flex:0 0 64px; border-radius:12px; overflow:hidden; background:#f1f5f9; box-shadow:0 3px 10px rgba(15,23,42,.12); }
.compact-product__thumb img { display:block; width:100%; height:100%; object-fit:cover; }
.compact-product__body { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:6px; }
.compact-product__title { color:#1f2937; font-size:15px; font-weight:700; line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.compact-product__meta, .compact-product__stats { display:flex; align-items:center; gap:6px; flex-wrap:wrap; min-width:0; }
.compact-product__stats { color:#6b7280; font-size:12px; }
.compact-badge { display:inline-flex; align-items:center; padding:2px 7px; border-radius:999px; font-size:11px; line-height:1.35; white-space:nowrap; }
.compact-badge--delivery { color:#16834a; background:rgba(34,197,94,.12); }
.compact-badge--recommend { color:#635bdb; background:rgba(99,91,219,.12); }
.compact-badge--tag { color:#b42318; background:rgba(239,68,68,.1); }
.compact-badge--orange { color:#c2410c; background:rgba(249,115,22,.12); }.compact-badge--green { color:#16834a; background:rgba(34,197,94,.12); }.compact-badge--blue { color:#1d4ed8; background:rgba(59,130,246,.12); }.compact-badge--purple { color:#7e22ce; background:rgba(168,85,247,.12); }.compact-badge--pink { color:#be185d; background:rgba(236,72,153,.12); }.compact-badge--cyan { color:#0e7490; background:rgba(6,182,212,.12); }.compact-badge--gray { color:#4b5563; background:rgba(107,114,128,.12); }
.compact-product__price { flex:0 0 auto; min-width:76px; color:#e34d6f; font-size:20px; font-weight:800; text-align:right; white-space:nowrap; }.compact-product__currency { font-size:13px; font-weight:600; margin-right:1px; }
.compact-product__arrow { flex:0 0 auto; color:#94a3b8; font-size:28px; font-weight:300; line-height:1; }
.compact-product__soldout { position:absolute; top:9px; right:10px; padding:2px 7px; border-radius:999px; background:#f43f5e; color:#fff; font-size:10px; }
.compact-product.soldout { filter:grayscale(.7); opacity:.72; }
@media (max-width:767.98px) {
 .item-list > .compact-product { gap:10px; padding:12px 10px; }
 .compact-product__thumb { width:50px; height:50px; flex-basis:50px; border-radius:10px; }
 .compact-product__title { font-size:14px; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
 .compact-product__price { min-width:58px; font-size:17px; }
 .compact-product__currency { font-size:11px; }
 .compact-product__arrow { font-size:24px; }
 .compact-badge { font-size:10px; padding:2px 5px; }
}
@media (max-width:380px) {
 .item-list > .compact-product { gap:8px; padding-left:8px; padding-right:8px; }
 .compact-product__thumb { width:44px; height:44px; flex-basis:44px; }
 .compact-product__price { min-width:51px; font-size:16px; }
 .compact-product__stats { font-size:11px; gap:4px; }
 .compact-product__arrow { font-size:22px; }
}
/* final polish and overflow guard */
html, body { overflow-x:hidden; }
.panel-body { min-width:0; }
.item-list { width:100%; margin-left:0 !important; margin-right:0 !important; border-radius:12px; overflow:hidden; box-shadow:0 8px 24px rgba(30,41,59,.06); }
.item-list > .compact-product { min-width:0; text-decoration:none; }
.compact-product__price, .compact-product__arrow { display:block !important; visibility:visible !important; }
.compact-product__price { text-shadow:0 1px 0 rgba(255,255,255,.7); }
.compact-product__arrow { transition:transform .18s ease,color .18s ease; }
.item-list > .compact-product:hover .compact-product__arrow { color:#7a8cff; transform:translateX(3px); }
@media (max-width:767.98px) {
 .item-list > .compact-product { align-items:center; }
 .compact-product__body { overflow:hidden; }
}
