/* ============================================
   YILON - Custom Zipper Types Styles
   ============================================ */

/* Custom Types Section */
.custom-types-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray);
}

.custom-types-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

/* Grid for custom type cards - compact 5-column layout */
.custom-types-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

/* Individual card */
.custom-type-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
}

.custom-type-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.custom-type-image-button,
.detail-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
}

.custom-type-image-button {
  cursor: pointer;
}

.detail-image-button {
  cursor: zoom-in;
}

.custom-type-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

.custom-type-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.custom-type-card:hover .custom-type-img img {
  transform: scale(1.05);
}

.custom-type-info {
  padding: 8px 10px;
}

.custom-type-info h4 {
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  display: block;
  overflow: visible;
  white-space: normal;
  word-break: break-word;
  min-height: 0;
}

.custom-type-info h4 a {
  color: inherit;
  text-decoration: none;
}

.custom-type-info h4 a:hover {
  color: var(--primary);
}

.detail-image-button .detail-card-img {
  cursor: zoom-in;
}

/* Custom types modal (overlay for the scene-modal) */
.custom-types-modal .scene-modal-wrap {
  max-width: 900px;
  max-height: 85vh;
}

.custom-types-modal-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.custom-types-modal-btn:hover {
  background: var(--primary-dark);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .custom-types-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .custom-types-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .custom-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
