.mgs-home-products{--mgh-red:#c8102e;--mgh-ink:#1d2433}
.mgs-home-products .sh{gap:14px}
.mgs-home-products .sh .mgs-home-all{flex:none;font:600 14px/1.5 system-ui,sans-serif;color:var(--mgh-red);white-space:nowrap;text-decoration:none}
.mgs-home-products .mgs-home-intro{margin:-5px 0 16px;color:#68707b;font-size:14px;line-height:1.6}
.mgs-home-products .mgs-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.mgs-home-products .mgs-card{min-width:0;display:flex;flex-direction:column;border:1px solid #e3dbce;border-radius:10px;background:#fff;overflow:hidden;color:var(--mgh-ink)}
.mgs-home-products .mgs-card a{text-decoration:none;color:inherit}
.mgs-home-products .mgs-card-image{display:block;position:relative;flex:none;height:155px;background:#fff;border-bottom:1px solid #f3f0e9}
.mgs-home-products .mgs-card-image img,.mgs-home-products .mgs-card-image svg{display:block;width:100%;height:100%;object-fit:contain;padding:12px;box-sizing:border-box}
.mgs-home-products .mgs-discount{position:absolute;top:8px;left:8px;padding:2px 6px;border-radius:4px;background:#fff0f2;color:#b50e2a;font:700 12px/1.5 system-ui,sans-serif}
.mgs-home-products .mgs-card-content{padding:11px 12px;display:flex;flex-direction:column;flex:1;min-width:0}
.mgs-home-products .mgs-card-meta{display:flex;gap:7px;color:#747983;font-size:11px;margin:0 0 5px;line-height:1.5}
.mgs-home-products h3{font:700 15px/1.5 system-ui,"Microsoft YaHei",sans-serif;margin:0 0 8px;min-height:45px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mgs-home-products h3 a:hover{color:var(--mgh-red)}
.mgs-home-products .mgs-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px;margin:0;color:var(--mgh-red);line-height:1.4}
.mgs-home-products .mgs-price strong{font:750 24px/1.35 system-ui,sans-serif;letter-spacing:-.6px;white-space:nowrap}
.mgs-home-products .mgs-unit{font-size:12px;color:#737782}
.mgs-home-products .mgs-price-label{flex-basis:100%;font-size:11px;font-weight:600}
.mgs-home-products .mgs-old-price{font-size:11px;line-height:1.6;color:#8b8e96;margin:3px 0 5px}
.mgs-home-products .mgs-facts{margin-top:auto;padding-top:4px}
.mgs-home-products .mgs-facts p{margin:0;font-size:11px;line-height:1.6;color:#737782}
.mgs-home-products .mgs-date{display:flex;align-items:center;gap:4px;margin-top:3px!important}
.mgs-home-products .mgs-date svg{width:13px;height:13px;flex:none}
.mgs-home-products .mgs-card-bottom{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;border-top:1px solid #eee8df;padding-top:7px;margin-top:7px;font-size:12px}
.mgs-home-products .mgs-go{color:var(--mgh-red)!important;font-weight:700;white-space:nowrap}
.mgs-home-products .mgs-terms{min-width:0;color:#747983;font-size:11px}
.mgs-home-products .mgs-terms summary{cursor:pointer;white-space:nowrap}
.mgs-home-products .mgs-terms>div{font-size:12px;line-height:1.7;overflow-wrap:anywhere;padding-top:6px}
.mgs-home-products .mgs-terms p{margin:0 0 8px}
.mgs-home-products .mgs-terms a{color:var(--mgh-red)}
.mgs-home-products .mgs-home-more{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;box-sizing:border-box;margin-top:14px;padding:9px 16px;border:1px solid #c8102e;border-radius:8px;background:#fffdf8;color:#b50e2a;font-size:15px;font-weight:700;text-decoration:none}
.mgs-home-products .mgs-home-more:hover{background:#c8102e;color:white}
.mgs-home-products :focus-visible{outline:3px solid #c8102e;outline-offset:3px}
@media(max-width:800px){.mgs-home-products .mgs-home-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:560px){
 .mgs-home-products .sh{gap:10px}.mgs-home-products .sh .mgs-home-all{font-size:12px}
 .mgs-home-products .mgs-home-intro{font-size:12px;margin:0 0 12px}
 .mgs-home-products .mgs-home-grid{gap:8px}
 .mgs-home-products .mgs-card-image{height:92px}
 .mgs-home-products .mgs-card-image img{padding:15px 5px 4px}
 .mgs-home-products .mgs-card-content{padding:7px}
 .mgs-home-products h3{font-size:13px;line-height:18px;min-height:36px;margin-bottom:3px}
 .mgs-home-products .mgs-price strong{font-size:20px;line-height:1.25}
 .mgs-home-products .mgs-discount{font-size:10px;top:5px;left:5px}
 .mgs-home-products .mgs-card-bottom{gap:4px;font-size:11px;margin-top:4px;padding-top:4px;min-height:24px}
 .mgs-home-products .mgs-terms{font-size:10px}

 .mgs-home-products .mgs-card{position:relative}
 .mgs-home-products .mgs-card-meta{position:absolute;top:5px;right:5px;max-width:54%;display:block;margin:0;padding:0 3px;background:rgba(255,255,255,.94);border-radius:3px;font-size:10px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .mgs-home-products .mgs-old-price{margin:1px 0 2px;font-size:11px;line-height:15px}
 .mgs-home-products .mgs-facts{padding-top:2px}
 .mgs-home-products .mgs-facts p{font-size:11px;line-height:15px}
 .mgs-home-products .mgs-date{margin-top:2px!important}
 .mgs-home-products .mgs-terms summary,.mgs-home-products .mgs-go{display:block;min-height:24px;line-height:24px}
}

/* Compact homepage preview on desktop; full catalogue keeps its own layout. */
@media(min-width:801px){
 .mgs-home-products.sec{padding-top:24px;padding-bottom:24px}
 .mgs-home-products .sh{margin-bottom:10px}
 .mgs-home-products .mgs-home-intro{font-size:13px;margin:0 0 12px}
 .mgs-home-products .mgs-home-grid{gap:10px}
 .mgs-home-products .mgs-card{display:grid;grid-template-columns:192px minmax(0,1fr);align-items:start;gap:10px;padding:10px;border-radius:8px}
 .mgs-home-products .mgs-card-image{width:192px;height:192px;border:0;border-radius:5px;overflow:hidden;align-self:center}
 .mgs-home-products .mgs-card-image img,.mgs-home-products .mgs-card-image svg{padding:0;object-fit:contain}
 .mgs-home-products .mgs-discount{top:0;left:0;font-size:10px;line-height:15px;padding:1px 5px}
 .mgs-home-products .mgs-card-content{padding:0;min-width:0;height:100%;box-sizing:border-box}
 .mgs-home-products .mgs-card-meta{font-size:10px;line-height:14px;margin-bottom:3px}
 .mgs-home-products h3{font-size:13px;line-height:18px;min-height:0;margin-bottom:5px}
 .mgs-home-products .mgs-price{gap:2px;line-height:1.3}
 .mgs-home-products .mgs-price strong{font-size:21px;line-height:1.25}
 .mgs-home-products .mgs-price-label{font-size:10px;line-height:14px}
 .mgs-home-products .mgs-old-price{font-size:10px;line-height:15px;margin:1px 0 3px}
 .mgs-home-products .mgs-facts{margin-top:0;padding-top:0}
 .mgs-home-products .mgs-facts p{font-size:10px;line-height:15px}
 .mgs-home-products .mgs-date{margin-top:1px!important}
 .mgs-home-products .mgs-card-bottom{margin-top:5px;padding-top:4px;gap:5px;font-size:11px}
 .mgs-home-products .mgs-terms{font-size:10px}
 .mgs-home-products .mgs-terms summary,.mgs-home-products .mgs-go{display:block;min-height:24px;line-height:24px}
 .mgs-home-products .mgs-home-more{margin-top:10px}
}
@media(min-width:801px) and (max-width:1100px){
 .mgs-home-products .mgs-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* === shop-deadline live v2: homepage compact deadline tag (2026-11-09) === */
.mgs-home-products .mgs-date.mgs-date--due{
  display:inline-flex!important;
  align-items:center;
  gap:4px;
  max-width:100%;
  box-sizing:border-box;
  margin-top:4px!important;
  padding:2px 6px;
  border-radius:4px;
  background:#fdecee;
  border:1px solid #f0c4cb;
  color:#a70d26!important;
  font-size:12px!important;
  font-weight:600!important;
  line-height:1.2!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mgs-home-products .mgs-date.mgs-date--due svg{
  width:11px!important;height:11px!important;flex:none;stroke:#a70d26;color:#a70d26
}
@media(max-width:700px){
  .mgs-home-products .mgs-date.mgs-date--due{font-size:12px!important;padding:2px 6px}
  .mgs-home-products .mgs-date.mgs-date--due svg{width:10px!important;height:10px!important}
}
/* t547 价格对齐（pt547u）：主价格紧跟两行标题，相邻卡同一水平线；price_label 文案保留，移到主价格下方单独一行（无 label 的卡不留空行） */
.mgs-home-products .mgs-price strong{order:1}.mgs-home-products .mgs-price .mgs-unit{order:2}.mgs-home-products .mgs-price .mgs-price-label{order:3;flex-basis:100%}
@media(min-width:801px){.mgs-home-products h3{min-height:36px}}
