/* ============================================
   COLLECTIONS PAGE
   ============================================ */

.collections-index {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;
  gap: 1rem;
  padding: var(--spacing-lg) var(--spacing-md);
  max-width: 1600px;
  margin: 0 auto;
}

.product-item {
  position: relative;
  overflow: hidden;
  background: #e8e6e1;
}

.product-item a {
  display: block;
  height: 100%;
}

.product-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: none;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-item:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: transparent;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-item:hover .product-info {
  opacity: 1;
  transform: translateY(0);
}

.product-info h3 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.product-info .status {
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: var(--color-text-light);
}

/* Abstract grid variations */
.product-tall {
  grid-row: span 2;
}

.product-wide {
  grid-column: span 2;
}

.product-large {
  grid-column: span 2;
  grid-row: span 2;
}

.collection-entry {
  margin-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--spacing-xl);
}

.collection-entry:last-child {
  border-bottom: none;
}

.collection-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.collection-image {
  overflow: hidden;
}

.collection-image img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-link:hover .collection-image img {
  transform: scale(1.03);
}

.collection-info h2 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.01em;
}

.collection-concept {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xs);
  font-style: italic;
}

.collection-meta {
  font-size: 0.875rem;
  font-family: var(--font-sans);
  opacity: 0.6;
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .collections-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
  }
}

@media (max-width: 768px) {
  .collections-index {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .product-large,
  .product-wide {
    grid-column: span 1;
  }

  .product-tall {
    grid-row: span 1;
  }

  .collection-link {
    grid-template-columns: 1fr;
  }

  .collection-info h2 {
    font-size: 1.5rem;
  }
}
