/* Extracted from inline <style> in templates/storefront/partials/home_popular_categories.html */


.pop-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pop-cat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
  position: relative;
}
.pop-cat-card:hover,
.pop-cat-card:focus-visible {
  border-color: #2563eb;
  box-shadow: 0 4px 16px rgba(37,99,235,.12);
}
.pop-cat-card__img {
  aspect-ratio: 4/3;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pop-cat-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}
.pop-cat-card__placeholder {
  color: #9ca3af;
}
.pop-cat-card__body {
  padding: 12px 16px 14px;
  flex: 1;
}
.pop-cat-card__name {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  margin-bottom: 2px;
}
.pop-cat-card__count {
  font-size: 13px;
  color: #6b7280;
}
.pop-cat-card__arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  opacity: 0;
  transition: opacity .2s, color .2s;
}
.pop-cat-card:hover .pop-cat-card__arrow {
  opacity: 1;
  color: #2563eb;
}
@media (max-width: 1023px) {
  .pop-cats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .pop-cats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pop-cat-card__img { aspect-ratio: 1; }
  .pop-cat-card__body { padding: 10px 12px 12px; }
  .pop-cat-card__name { font-size: 13px; }
  .pop-cat-card__count { font-size: 12px; }
}
@media (max-width: 479px) {
  .pop-cats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pop-cat-card__img img { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pop-cat-card, .pop-cat-card__arrow { transition: none; }
}
@media (forced-colors: active) {
  .pop-cat-card:hover,
  .pop-cat-card:focus-visible { outline: 2px solid LinkText; outline-offset: -2px; }
  .pop-cat-card__arrow { opacity: 1; border: 1px solid LinkText; background: Canvas; }
  .pop-cat-card__img { border-bottom: 1px solid CanvasText; }
}
