/* V3.7.0: only homepage category cards and homepage real previews. */
#categories .smz-main-category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
#categories .smz-home-category{min-height:226px;padding:19px;display:flex;flex-direction:column;gap:8px;align-items:stretch;box-shadow:0 9px 28px rgba(20,32,55,.045);transition:transform .2s,box-shadow .2s,border-color .2s}
#categories .smz-home-category:hover{border-color:#e9c673;transform:translateY(-3px);box-shadow:0 14px 32px rgba(20,32,55,.09)}
.smz-home-category-head{display:flex;align-items:center;justify-content:space-between}
.smz-home-category .cat-icon{width:49px;height:49px;display:grid;place-items:center;font-size:23px;background:#fff3d4;border-radius:14px;color:#a57500}
.smz-home-category[data-root=computers] .cat-icon,.smz-home-category[data-root=science] .cat-icon{background:#e3efff;color:#3163b4}
.smz-home-category[data-root=health] .cat-icon,.smz-home-category[data-root=home] .cat-icon{background:#e0f6ef;color:#138571}
.smz-home-category[data-root=arts] .cat-icon,.smz-home-category[data-root=games] .cat-icon{background:#f2e6ff;color:#8456be}
.smz-home-category[data-root=sports] .cat-icon,.smz-home-category[data-root=recreation] .cat-icon{background:#ffebde;color:#b45c26}
.smz-home-category-open{width:35px;height:35px;border:1px solid var(--line);border-radius:10px;display:grid;place-items:center;font-size:18px;color:var(--muted)}
.smz-home-category-title{font-size:17px;font-weight:850;line-height:1.3;color:var(--ink);margin-top:3px}
.smz-home-category-note{font-size:12px;line-height:1.55;color:var(--muted);margin:0;min-height:36px;max-width:100%}
.smz-home-category-topics{display:flex;flex-wrap:wrap;gap:6px;align-items:flex-end;margin-top:auto;padding-top:11px;border-top:1px solid var(--line)}
.smz-home-category-topics a{font-size:11px;color:var(--muted);padding:5px 9px;border-radius:9px;background:var(--soft);line-height:1.4;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.smz-home-category-topics a:hover{background:#f6d56a;color:#172038}
#product-grid .smv-card-cover{height:auto;aspect-ratio:16/9;min-height:0;isolation:isolate}
#product-grid .smv-preview-image{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:top center;z-index:1}
#product-grid .smv-preview-image[hidden]{display:none}
#product-grid .smv-cover-domain{z-index:2;background:rgba(255,255,255,.94);color:#263049;box-shadow:0 2px 12px rgba(18,32,61,.11)}
#product-grid .smv-card-cover-orb,#product-grid .smv-cover-glyph{z-index:0}
#product-grid .smv-card-content .card-footer{flex-wrap:wrap;gap:7px}
#product-grid .smv-card-content .profile-btn{flex:1 1 125px;min-width:0}
#product-grid .smv-card-content .smv-collection-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;font-size:11px;font-weight:750;padding:8px 11px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);white-space:nowrap}
#product-grid .smv-card-content .smv-collection-link:hover{border-color:var(--gold)}
html[data-theme=dark] .smz-home-category .cat-icon{color:#f4cf70;background:#373327}
html[data-theme=dark] .smz-home-category[data-root=health] .cat-icon{color:#a5efd6;background:#223d37}
html[data-theme=dark] .smz-home-category[data-root=computers] .cat-icon{color:#aad3ff;background:#25354a}
@media(max-width:1000px){#categories .smz-main-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:740px){#categories .smz-main-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#categories .smz-home-category{padding:14px;min-height:215px}.smz-home-category-title{font-size:14px}.smz-home-category-note{font-size:11px;min-height:32px}}
@media(max-width:400px){#categories .smz-main-category-grid{grid-template-columns:1fr}.smz-home-category-note{min-height:0}#categories .smz-home-category{min-height:185px}}
@media(prefers-reduced-motion:reduce){#categories .smz-home-category{transition:none}}


/* V3.7.1 — homepage card readability and stable two-row actions.
   Scope to homepage cards only; Discover, detail and membership pages are unchanged. */
#product-grid .smv-card-cover{aspect-ratio:16/9;overflow:hidden}
#product-grid .smv-card-content{padding:17px 18px 19px;min-width:0}
#product-grid .smv-card-content .card-upper{
  margin-top:0;min-height:78px;display:flex;align-items:center;gap:9px;
}
#product-grid .smv-card-content .product-logo{
  width:48px;height:48px;flex:0 0 48px;font-size:24px;border:2px solid var(--surface);
}
#product-grid .smv-card-content .card-name{min-width:0;flex:1 1 0;padding:0}
#product-grid .smv-card-content .card-name a{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;
  overflow:hidden;overflow-wrap:anywhere;word-break:normal;
  font-size:15px;line-height:1.25;letter-spacing:-.15px;
}
#product-grid .smv-card-content .card-name small{
  font-size:11px;overflow-wrap:anywhere;margin-top:4px;
}
#product-grid .smv-card-content .sm-upvote{
  margin:0;align-self:center;flex:0 0 auto;min-width:44px;padding:8px;
}
#product-grid .smv-card-content .card-ratings{margin-top:9px;min-height:22px}
#product-grid .smv-card-content .card-description{min-height:65px}
#product-grid .smv-card-content .card-tags{margin-top:auto}
#product-grid .smv-card-content .card-footer{
  display:grid;grid-template-columns:repeat(12,minmax(0,1fr));
  grid-template-rows:44px 42px;gap:8px;align-items:stretch;
  margin-top:0;
}
#product-grid .smv-card-content .card-footer>*{
  width:100%;max-width:100%;min-width:0;min-height:0;
  box-sizing:border-box;text-align:center;
}
#product-grid .smv-card-content .profile-btn{
  grid-column:1 / span 10;grid-row:1;display:flex;white-space:nowrap;
  flex:initial;padding:8px 7px;font-size:12px;
}
#product-grid .smv-card-content .smv-site-visit{
  grid-column:11 / span 2;grid-row:1;display:grid;place-items:center;
  width:100%;min-width:0;height:100%;
}
#product-grid .smv-card-content .smv-collection-link{
  grid-column:1 / span 7;grid-row:2;
  display:flex;justify-content:center;align-items:center;
  padding:7px 5px;min-height:0;white-space:normal;line-height:1.2;
}
#product-grid .smv-card-content .save-btn{
  grid-column:8 / span 5;grid-row:2;order:0;
  display:flex;align-items:center;justify-content:center;
  padding:7px 5px;min-width:0;min-height:0;white-space:normal;
}
@media(max-width:380px){
  #product-grid .smv-card-content{padding:15px 13px 17px}
  #product-grid .smv-card-content .card-name a{font-size:14px}
}
