/* JICOA V7 — category strip hotfix
   Fix bottom-cut category images and keep the strip compact/professional. */

.category-section {
  padding-top: 24px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 11px;
  align-items: start;
  overflow: visible;
  padding: 0;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.category-picture {
  width: 100%;
  aspect-ratio: 5 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin: 0;
  border: 0;
  border-radius: 11px;
  overflow: hidden;
  background: #f3f3f3;
}

.category-picture img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  margin: auto;
  padding: 0;
  border: 0;
  transform: none;
  mix-blend-mode: normal;
}

.category-card:hover .category-picture img {
  transform: scale(1.02);
}

.category-card > span:last-child {
  display: block;
  width: 100%;
  min-height: 32px;
  margin: 0;
  padding: 0 2px;
  color: #161616;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.24;
  text-align: center;
}

@media (max-width: 1330px) {
  .category-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 11px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .category-card {
    flex: 0 0 139px;
    min-width: 139px;
    max-width: 139px;
    scroll-snap-align: start;
  }
}

@media (max-width: 760px) {
  .category-section {
    padding-top: 18px;
  }

  .category-grid {
    gap: 10px;
  }

  .category-card {
    flex: 0 0 124px;
    min-width: 124px;
    max-width: 124px;
  }

  .category-card > span:last-child {
    font-size: 11px;
    min-height: 30px;
  }
}

@media (max-width: 410px) {
  .category-card {
    flex: 0 0 117px;
    min-width: 117px;
    max-width: 117px;
  }
}
