/* Shared style for the "Tarjetas horizontales" option in Categorías destacadas. */
.store-shell .category-horizontal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(10px, 1.3vw, 18px);
}
.store-shell .category-horizontal-item {
  position: relative;
  display: flex;
  aspect-ratio: 1.85;
  min-height: 180px;
  padding: clamp(14px, 1.5vw, 22px);
  overflow: hidden;
  align-items: flex-start;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  color: var(--ink);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.store-shell .category-horizontal-item:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.store-shell .category-horizontal-item:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.store-shell .category-horizontal-image {
  position: absolute;
  inset: 0 0 0 auto;
  width: 68%;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 28%);
  mask-image: linear-gradient(to right, transparent, #000 28%);
}
.store-shell .category-horizontal-item b {
  position: relative;
  z-index: 1;
  max-width: 60%;
  overflow-wrap: anywhere;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.2;
}
.store-shell .category-horizontal-item i {
  position: absolute;
  z-index: 1;
  bottom: 16px;
  left: clamp(14px, 1.5vw, 22px);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 3px 12px color-mix(in srgb, var(--ink) 10%, transparent);
  color: var(--brand);
  font-style: normal;
}
@media (max-width: 900px) {
  .store-shell .category-horizontal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .store-shell .category-horizontal-grid { grid-template-columns: 1fr; }
  .store-shell .category-horizontal-item { min-height: 160px; }
}
/* The editor's phone is narrow even when the browser viewport is wide. */
.preview-mobile .store-shell .category-horizontal-grid { grid-template-columns: minmax(0, 1fr); }
.preview-mobile .store-shell .category-horizontal-item { min-height: 160px; }
