/* "Shop by category" tiles, Apple-style: larger quiet tiles, readable labels (never below 14px),
   icon in a soft rounded square, no drop-shadow on icons, hairline instead of heavy shadow,
   physical press feedback. Scoped to #categoryCards so other card groups are unaffected. */
body:not(.admin-view) #storePage #categoryCards { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 14px !important; }
body:not(.admin-view) #storePage #categoryCards .home-category-card {
  flex-direction: row; justify-content: flex-start; align-items: center; gap: 16px;
  min-height: 92px; padding: 16px 20px; border: 0; border-radius: 20px; background: #fff;
  box-shadow: 0 0 0 1px rgba(29, 29, 31, .07); color: #1D1D1F; text-align: start;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease-out;
}
body:not(.admin-view) #storePage #categoryCards .home-category-card > span {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #F5F5F7;
}
body:not(.admin-view) #storePage #categoryCards .home-category-card svg { width: 32px; height: 32px; filter: none; }
body:not(.admin-view) #storePage #categoryCards .home-category-card b { font-size: 16px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; text-align: start; }
body:not(.admin-view) #storePage #categoryCards .home-category-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(29, 29, 31, .07), 0 10px 28px rgba(29, 29, 31, .08); }
body:not(.admin-view) #storePage #categoryCards .home-category-card:active { transform: scale(.98); box-shadow: 0 0 0 1px rgba(29, 29, 31, .07); }
body:not(.admin-view) #storePage #categoryCards .home-category-card:focus-visible { outline: 3px solid rgba(46, 58, 140, .35); outline-offset: 3px; }

/* Tablet: four across, stacked tile so the label has room */
@media (max-width: 1023px) {
  body:not(.admin-view) #storePage #categoryCards { gap: 12px !important; }
  body:not(.admin-view) #storePage #categoryCards .home-category-card { flex-direction: column; justify-content: center; text-align: center; gap: 10px; min-height: 124px; padding: 16px 10px; }
  body:not(.admin-view) #storePage #categoryCards .home-category-card b { text-align: center; font-size: 15px; }
}
/* Phone: two columns, horizontal tiles, 14px+ labels (they were 9px) */
@media (max-width: 599px) {
  body:not(.admin-view) #storePage #categoryCards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  body:not(.admin-view) #storePage #categoryCards .home-category-card { flex-direction: row; justify-content: flex-start; text-align: start; gap: 12px; min-height: 72px; padding: 12px 14px; border-radius: 16px; }
  body:not(.admin-view) #storePage #categoryCards .home-category-card > span { width: 44px; height: 44px; border-radius: 12px; }
  body:not(.admin-view) #storePage #categoryCards .home-category-card svg { width: 28px; height: 28px; }
  body:not(.admin-view) #storePage #categoryCards .home-category-card b { text-align: start; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.admin-view) #storePage #categoryCards .home-category-card { transition: none; }
  body:not(.admin-view) #storePage #categoryCards .home-category-card:hover { transform: none; }
}
