.mgc-np-aside.mgs-city-savings-aside{position:static;min-width:0}
.mgs-city-home-products{margin-top:14px;padding:12px;background:#fffdf9;border:1px solid #ded8ce;border-radius:9px;color:#182334;box-sizing:border-box}
.mgs-city-home-products *{box-sizing:border-box}
.mgs-city-home-products header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mgs-city-home-products header h2{margin:0;font-size:21px;line-height:1.4}
.mgs-city-home-products header>a{font-size:12px;white-space:nowrap;color:#b80f32}
.mgs-city-home-intro{margin:4px 0 10px;font-size:12px;line-height:1.5;color:#6c7178}
.mgs-city-home-list{display:grid;gap:0;min-width:0}
.mgs-city-home-item{min-width:0;border-top:1px solid #e9e4dd;padding:10px 0}
.mgs-city-home-products .mgs-card{display:grid;grid-template-columns:92px minmax(0,1fr);gap:9px;background:none;border:0;box-shadow:none;padding:0;margin:0;min-width:0}
.mgs-city-home-products .mgs-card-image{position:relative;display:flex;align-items:center;justify-content:center;width:92px;height:112px;align-self:start;overflow:hidden;background:#fff;border-radius:6px;margin:0}
.mgs-city-home-products .mgs-card-image>img,.mgs-city-home-products .mgs-card-image>svg{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;padding:0}
.mgs-city-home-products .mgs-discount{position:absolute;left:0;top:0;padding:2px 4px;background:#fff0f2;color:#b80f32;border-radius:3px;font-size:10px;font-weight:700;line-height:15px}
.mgs-city-home-products .mgs-card-content{min-width:0;padding:0}
.mgs-city-home-products .mgs-card-meta{font-size:10px;line-height:14px;color:#737780;margin-bottom:2px;overflow-wrap:anywhere}
.mgs-city-home-products h3{font-size:13px;line-height:18px;margin:0 0 4px;font-weight:700}
.mgs-city-home-products h3 a{color:#182334;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mgs-city-home-products .mgs-price{display:flex;flex-wrap:wrap;gap:2px;align-items:baseline;line-height:1.3}
.mgs-city-home-products .mgs-price strong{font-size:19px;color:#bc1235;white-space:nowrap}
.mgs-city-home-products .mgs-unit{font-size:10px;color:#626870}
.mgs-city-home-products .mgs-price-label{flex-basis:100%;font-size:11px;color:#bc1235}
.mgs-city-home-products .mgs-old-price{font-size:10px;line-height:14px;color:#777e86;margin:2px 0}
.mgs-city-home-products .mgs-facts p{font-size:10px;line-height:14px;margin:2px 0;color:#656d76;overflow-wrap:anywhere}
.mgs-city-home-products .mgs-facts svg{width:11px;height:11px;margin-right:3px;vertical-align:-1px}
.mgs-city-home-products .mgs-region,.mgs-city-home-generic .mgs-requirement{display:none}
.mgs-city-home-products .mgs-card-bottom{display:flex;flex-wrap:wrap;align-items:start;justify-content:space-between;gap:0 5px;border-top:1px solid #eee9e1;margin-top:4px;padding-top:2px;font-size:10px}
.mgs-city-home-products .mgs-terms{min-width:0;max-width:100%;font-size:10px;color:#67707b}
.mgs-city-home-products .mgs-terms summary{cursor:pointer;line-height:24px}
.mgs-city-home-products .mgs-terms[open]{flex-basis:100%}
.mgs-city-home-products .mgs-terms div{font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.mgs-city-home-products .mgs-terms p{margin:4px 0}
.mgs-city-home-products .mgs-go{color:#b80f32;font-weight:700;line-height:24px;white-space:nowrap}
.mgs-city-home-products .mgs-city-home-more{display:block;min-height:36px;line-height:20px;text-align:center;padding:8px;border-top:1px solid #e9e4dd;font-size:12px;color:#b80f32}
.mgs-city-home-products a:focus-visible,.mgs-city-home-products summary:focus-visible{outline:2px solid #b80f32;outline-offset:2px}
.mgs-city-home-products .mgs-city-home-item[hidden]{display:none!important}
@media(min-width:1024px){
 .mgs-city-home-products .mgs-card{grid-template-columns:140px minmax(0,1fr);gap:8px;align-items:center}
 .mgs-city-home-products .mgs-card-image{width:140px;height:150px;align-self:center}
 .mgc-np-grid.mgs-city-fit-ready{position:relative}
 .mgs-city-fit-ready>.mgs-city-savings-aside{position:absolute;right:0;top:0;width:278px}
 .mgs-city-fit-ready .mgs-city-home-products{display:flex;flex-direction:column;overflow:hidden;min-height:0}
 .mgs-city-fit-ready .mgs-city-home-products header,.mgs-city-fit-ready .mgs-city-home-intro,.mgs-city-fit-ready .mgs-city-home-more{flex-shrink:0}
 .mgs-city-fit-ready .mgs-city-home-list{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto;scrollbar-width:thin}
 .mgs-city-fit-ready .mgs-city-home-item{flex:1 0 auto;display:flex;flex-direction:column;justify-content:center}
 .mgs-city-fit-ready .mgs-city-home-products .mgs-card-image{height:160px}
}
@media(min-width:600px) and (max-width:1023px){.mgs-city-home-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mgs-city-home-products .mgs-card{grid-template-columns:1fr}.mgs-city-home-products .mgs-card-image{width:100%;height:110px}}
@media(max-width:599px){.mgs-city-home-products .mgs-card{grid-template-columns:124px minmax(0,1fr);gap:12px}.mgs-city-home-products .mgs-card-image{width:124px;height:130px}.mgs-city-home-products h3{font-size:14px;line-height:19px}.mgs-city-home-products .mgs-go,.mgs-city-home-products summary{min-height:30px;line-height:30px}.mgs-city-home-products .mgs-city-home-more{min-height:44px;padding:12px}}
/* Homepage deal images (2026-11-12): any offer with mgs_image shows its product photo automatically; offers without one fall back to the merchant logo, and image-less offers never reach this list (filtered in city-home.php). No per-product rules here. */
.mgs-city-home-products .mgs-card-meta{font-size:11px;line-height:16px}
.mgs-city-home-products h3{font-size:15px;line-height:21px;margin-bottom:6px}
.mgs-city-home-products .mgs-price strong{font-size:22px}
.mgs-city-home-products .mgs-unit,.mgs-city-home-products .mgs-old-price,.mgs-city-home-products .mgs-facts p{font-size:11px;line-height:16px}
.mgs-city-home-products .mgs-card-bottom,.mgs-city-home-products .mgs-terms{font-size:11px}
/* Compact text cards with prominent merchant labels. */
.mgs-city-home-products{padding:8px 10px}
.mgs-city-home-products header h2{font-size:20px;line-height:26px}
.mgs-city-home-intro{font-size:11px;line-height:15px;margin:2px 0 6px}
.mgs-city-home-item{padding:6px 0}
.mgs-city-home-products .mgs-card-meta{margin:0 0 3px;line-height:20px}
.mgs-city-home-products .mgs-card-meta>span:first-child{display:inline-block;padding:0 6px;border:1px solid #edccd1;border-radius:4px;background:#fff0f2;color:#a90e2b;font-size:13px;font-weight:800;line-height:19px}
.mgs-city-home-products h3{font-size:14px;line-height:19px;margin:0 0 3px}
.mgs-city-home-products .mgs-price strong{font-size:21px;line-height:25px}
.mgs-city-home-products .mgs-old-price{margin:1px 0;font-size:10px;line-height:14px}
.mgs-city-home-products .mgs-city-home-no-original .mgs-old-price{display:none}
.mgs-city-home-products .mgs-facts{display:flex;flex-wrap:wrap;gap:0 7px;margin:1px 0}
.mgs-city-home-products .mgs-facts p{font-size:10px;line-height:14px;margin:0}
.mgs-city-home-products .mgs-date{white-space:nowrap}
.mgs-city-home-products .mgs-card-bottom{margin-top:2px;padding-top:1px}
.mgs-city-home-products .mgs-go,.mgs-city-home-products .mgs-terms summary{line-height:24px;min-height:24px}
.mgs-city-home-products .mgs-city-home-more{min-height:30px;padding:5px;line-height:20px}
@media(max-width:599px){.mgs-city-home-products .mgs-go,.mgs-city-home-products .mgs-terms summary{min-height:32px;line-height:32px}.mgs-city-home-products .mgs-city-home-more{min-height:40px;padding:10px}}


/* === shop-deadline cities v2: homepage compact deadline tag (2026-11-09) === */
.mgs-city-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:2px!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-city-home-products .mgs-date.mgs-date--due svg{
  width:11px!important;height:11px!important;flex:none;stroke:#a70d26;color:#a70d26;margin-top:0!important
}
.mgs-city-home-products .mgs-date:not(.mgs-date--due){
  color:#858a94;
  font-weight:500;
}
@media(max-width:599px){
  .mgs-city-home-products .mgs-date.mgs-date--due{font-size:12px!important;padding:2px 6px}
  .mgs-city-home-products .mgs-date.mgs-date--due svg{width:10px!important;height:10px!important}
}
/* t557 价格对齐（pt557u / pt558u）：首页侧栏同一修法——主价格在前，price_label 移到主价格下方单独一行；无 label 的卡不留空行 */
.mgs-city-home-products .mgs-price strong{order:1}.mgs-city-home-products .mgs-price .mgs-unit{order:2}.mgs-city-home-products .mgs-price .mgs-price-label{order:3;flex-basis:100%}
/* t559 截止日期对齐（pt559u）：首页侧栏同一行「MM-DD 截止」对齐，贴在「条件与来源」上方；无真实日期的卡不留空药丸；侧栏图已恢复显示（2026-11-12） */
.mgs-city-home-list{align-items:stretch}
.mgs-city-home-item{display:flex;flex-direction:column}
.mgs-city-home-products .mgs-card.mgs-text-only{display:flex;flex-direction:column;flex:1;min-height:0}
.mgs-city-home-products .mgs-card-content{display:flex;flex-direction:column;flex:1;min-height:0}
.mgs-city-home-products .mgs-facts{flex:1;flex-direction:column;align-content:flex-start}
.mgs-city-home-products .mgs-date.mgs-date--due{margin-top:auto!important;align-self:flex-start}
/* Homepage deal banner image (2026-11-12): the product photo sits at the top of the card (user: image on top, smaller than the square middle version). Generic: applies to every offer with an image; no per-product rules. The image anchor is first in the DOM, so the content/facts wrappers are flattened with display:contents and the image is ordered first. This file only loads on the front page, so the /deals/ catalog is untouched. */
.mgs-city-home-products .mgs-card{display:flex;flex-direction:column;flex:1;min-height:0}
.mgs-city-home-products .mgs-card-content{display:contents}
.mgs-city-home-products .mgs-facts{display:contents}
.mgs-city-home-products .mgs-card .mgs-card-image{order:-1;width:100%;height:auto;aspect-ratio:4/3;align-self:stretch;margin:0 0 8px;overflow:hidden;background:#fff;border-radius:6px}
.mgs-city-home-products .mgs-date.mgs-date--due{order:7;margin-top:0!important}
.mgs-city-home-products .mgs-card-bottom{order:8}
/* Homepage deal card v2 (2026-11-12): 4:3 cover-cropped photo on top so the product fills the frame (the 3:2 contain slot left the product at ~30% width in a white void; the 1:1 square middle version was too big); small text raised to 12px; requirement line balanced so a wrapped word never strands alone. Generic: applies to every offer with an image. */
.mgs-city-home-products .mgs-card .mgs-card-image>img{object-fit:cover}
.mgs-city-home-products .mgs-card-meta{font-size:12px;line-height:17px}
.mgs-city-home-products .mgs-price-label{font-size:12px;line-height:17px}
.mgs-city-home-products .mgs-unit{font-size:12px}
.mgs-city-home-products .mgs-facts p{font-size:12px;line-height:17px;text-wrap:balance}
.mgs-city-home-products .mgs-card-bottom,.mgs-city-home-products .mgs-terms{font-size:12px}
.mgs-city-home-products .mgs-discount{font-size:11px;line-height:16px}
/* Homepage deal card v3 compact (2026-11-12): store tag on top of the card, tighter spacing, 16:9 image. Generic: applies to every offer with an image. */
.mgs-city-home-products .mgs-card-meta{order:-2}
.mgs-city-home-products .mgs-card .mgs-card-image{aspect-ratio:16/9;margin:0 0 6px}
.mgs-city-home-products h3{line-height:18px;margin:0 0 2px}
.mgs-city-home-products .mgs-price strong{font-size:20px;line-height:24px}
.mgs-city-home-products .mgs-price-label{line-height:16px}
.mgs-city-home-products .mgs-facts p{line-height:16px}
.mgs-city-home-products .mgs-city-home-item{padding:4px 0}
.mgs-city-home-products .mgs-city-home-intro{margin:2px 0 4px}
/* Homepage deal card text compact (2026-11-12): price label joins the price line instead of its own row (saves a full text line); tighter leading across the text block. Generic: applies to every offer with an image. */
.mgs-city-home-products .mgs-price .mgs-price-label{flex-basis:auto}
.mgs-city-home-products h3{line-height:17px;margin:0 0 1px}
.mgs-city-home-products .mgs-price strong{line-height:22px}
.mgs-city-home-products .mgs-facts p{line-height:15px}
.mgs-city-home-products .mgs-card .mgs-card-image{margin:0 0 4px}
.mgs-city-home-products .mgs-city-home-item{padding:3px 0}
/* Homepage deal panel compression + bottom alignment (2026-11-12): the panel is taller than the latest-articles list, so compress it to end at the same bottom instead of pushing it down (no top void). Image slot 16:9 -> 21/9; intro line and the redundant "view all" link hidden on the homepage (the header already links to all offers); tighter item padding. Generic: applies to every offer. */
.mgs-city-home-products .mgs-card .mgs-card-image{aspect-ratio:21/9}
.mgs-city-home-products .mgs-city-home-intro{display:none}
.mgs-city-home-products .mgs-city-home-more{display:none}
.mgs-city-home-products .mgs-city-home-item{padding:2px 0}
