/* LIFECARE MEDICATE / image-first category cards — 2026-11-23
   Scoped overrides for the older storefront CSS, which contains numerous
   !important constraints for 54px badge icons. Does not affect navigation,
   products or any other homepage section. */
.lc-home-refresh .lc-category-grid{
  display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
  align-items:stretch!important;gap:14px!important;width:100%!important;
}
.lc-home-refresh .lc-category-grid .lc-category-card{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  justify-content:flex-start!important;gap:0!important;
  min-width:0!important;min-height:0!important;
  padding:9px 9px 13px!important;border-radius:22px!important;
  background:#fff!important;border:1px solid #e5f2ec!important;
  box-shadow:0 3px 0 #d9eee5,0 9px 22px rgba(0,87,59,.08)!important;
  text-align:center!important;overflow:hidden!important;
}
.lc-home-refresh .lc-category-grid .lc-category-icon{
  display:block!important;position:relative!important;
  width:100%!important;max-width:none!important;
  height:auto!important;min-height:0!important;aspect-ratio:13/10!important;
  flex:none!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:16px!important;
  background:#f4faf8!important;box-shadow:none!important;
  filter:none!important;overflow:hidden!important;
}
.lc-home-refresh .lc-category-grid .lc-category-icon>img{
  display:block!important;width:100%!important;height:100%!important;
  object-fit:contain!important;object-position:center!important;
  padding:0!important;margin:0!important;border:0!important;
  border-radius:0!important;max-width:none!important;
}
.lc-home-refresh .lc-category-grid .lc-category-card>strong{
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex:1!important;min-height:2.6em!important;
  padding:11px 0 1px!important;margin:0!important;max-width:100%!important;
  color:#113e35!important;font-size:13px!important;font-weight:800!important;
  line-height:1.3!important;letter-spacing:-.02em!important;
  overflow-wrap:normal!important;word-break:normal!important;
}
.lc-home-refresh .lc-category-grid .lc-category-card:hover{transform:translateY(-3px)!important}
.lc-home-refresh .lc-category-grid [hidden],
.lcm-categories-page .lcm-categories-grid [hidden]{display:none!important}
.lc-home-refresh .lc-category-grid .lc-category-icon-fallback{
  display:grid;place-items:center;width:100%;height:100%;
}
.lc-home-refresh .lc-category-grid .lc-category-icon-fallback[hidden]{display:none!important}
/* Full directory matches reference: photo occupies top, category name below. */
.lcm-categories-page .lcm-categories-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;
}
.lcm-categories-page .lcm-category-card{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  min-height:0!important;gap:0!important;padding:9px!important;
  border-radius:20px!important;border:1px solid #e2efe8!important;
  background:#fff!important;box-shadow:0 3px 0 #d9ede5,0 9px 22px rgba(0,87,59,.07)!important;
}
.lcm-categories-page .lcm-category-card__visual{
  display:block!important;position:relative;aspect-ratio:13/10!important;
  width:100%!important;height:auto!important;min-height:0!important;
  border:0!important;border-radius:15px!important;overflow:hidden!important;
  background:#f4faf8!important;box-shadow:none!important;
}
.lcm-categories-page .lcm-category-card__visual>img{
  display:block!important;width:100%!important;height:100%!important;
  object-fit:contain!important;object-position:center!important;
  padding:0!important;margin:0!important;border:0!important;
  max-width:none!important;border-radius:0!important;
}
.lcm-categories-page .lcm-category-card__visual::after{display:none!important}
.lcm-categories-page .lcm-category-card__content{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;flex:1!important;
  min-height:2.7em!important;padding:10px 4px 3px!important;margin:0!important;
}
.lcm-categories-page .lcm-category-card__name{
  margin:0!important;padding:0!important;text-align:center!important;
  color:#113e35!important;font-weight:800!important;
  font-size:clamp(12px,1.35vw,16px)!important;line-height:1.28!important;
  overflow-wrap:normal!important;word-break:normal!important;
}
.lcm-categories-page .lcm-category-card__eyebrow,
.lcm-categories-page .lcm-category-card__cta,
.lcm-categories-page .lcm-category-card__corner{display:none!important}
/* If an unknown category has no uploaded artwork, keep its centered fallback. */
.lcm-categories-page .lcm-category-card__art{display:grid!important;place-items:center!important;
  width:100%!important;height:100%!important;transform:none!important;
  background:linear-gradient(150deg,#f4fcf8,#eaf8f3)!important;
  box-shadow:none!important;border:0!important;}
.lcm-categories-page .lcm-category-card__art[hidden]{display:none!important}
.lcm-categories-page .lcm-category-card__pictogram{transform:none!important}
@media(max-width:1020px){
 .lc-home-refresh .lc-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:11px!important}
 .lcm-categories-page .lcm-categories-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:720px){
 .lc-home-refresh .lc-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
 .lc-home-refresh .lc-category-grid .lc-category-card{padding:7px 7px 11px!important;border-radius:17px!important}
 .lc-home-refresh .lc-category-grid .lc-category-icon{border-radius:13px!important}
 .lc-home-refresh .lc-category-grid .lc-category-card>strong{font-size:clamp(10px,2.8vw,13px)!important;padding:9px 0 1px!important;line-height:1.25!important}
 .lcm-categories-page .lcm-categories-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .lcm-categories-page .lcm-category-card{padding:7px!important;border-radius:17px!important}
 .lcm-categories-page .lcm-category-card__visual{border-radius:12px!important}
 .lcm-categories-page .lcm-category-card__name{font-size:clamp(11px,3vw,14px)!important}
 .lcm-categories-page .lcm-category-card__content{padding:8px 2px 2px!important}
}
@media(max-width:370px){
 .lc-home-refresh .lc-category-grid{gap:7px!important}
 .lc-home-refresh .lc-category-grid .lc-category-card{padding:5px 5px 9px!important}
 .lc-home-refresh .lc-category-grid .lc-category-card>strong{font-size:10px!important}
}

/* Inline artwork reliability: no legacy favicon imagery for known categories. */
.lc-home-refresh .lc-category-grid .lc-category-icon-fallback .lc-category-monogram,
.lcm-categories-page .lcm-category-card__pictogram .lc-category-monogram{
 display:grid;place-items:center;width:58px;height:58px;border-radius:18px;
 background:#e6f5ef;color:#0a765a;font:800 19px/1 system-ui,sans-serif;
 border:1px solid #cee9dc;
}
