.shoe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.shoe-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 14px;
  background: #f3f3f3;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  text-align: left;
}

.shoe-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.25s ease;
}

.shoe-card:hover img {
  transform: scale(1.06);
}

.shoe-label,
.shoe-count {
  position: absolute;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.shoe-label {
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1;
}

.shoe-count {
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

.shoe-expand {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  background: #f7f7f7;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.thumb-row {
  display: flex;
  gap: 10px;
  padding-bottom: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.thumb-row::-webkit-scrollbar {
  height: 8px;
}

.thumb-row::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}

.thumb {
  display: block;
  flex: 0 0 auto;
  width: 120px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #eaeaea;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  scroll-snap-align: start;
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.thumb:hover img {
  transform: scale(1.05);
}

.expand-hint {
  margin: 0 0 10px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 14px;
}

@media (max-width: 900px) {
  .shoe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .shoe-grid {
    grid-template-columns: 1fr;
  }
}
