/* Gallery-specific overrides — dark theme */

.gallery-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border);
}

.gallery-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}

.gallery-hero p { color: var(--text2); font-size: 1.05rem; }

.filter-section { padding: 32px 0; }

.filter-controls { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.825rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--border2); color: var(--text); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #0e0e0f; font-weight: 600; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding-bottom: 80px;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg2);
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.product-card:hover { border-color: var(--border2); transform: translateY(-4px); }
.product-card.hidden { display: none; }

.product-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s;
  display: block;
}

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

.product-info {
  padding: 16px 20px 14px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.tag {
  background: var(--bg3);
  color: var(--text3);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
}

.product-description {
  color: var(--text2);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.btn-view, .btn-etsy {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.btn-view {
  background: var(--accent);
  color: #0e0e0f;
}
.btn-view:hover { background: var(--accent2); color: #0e0e0f; }

.btn-etsy {
  background: none;
  color: var(--text2);
  border: 1px solid var(--border2);
}
.btn-etsy:hover { color: var(--text); border-color: var(--text2); }

/* Product detail page */
.product-detail {
  padding: 64px 0;
}

.product-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.product-detail-image {
  position: sticky;
  top: 80px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.product-detail-image img { width: 100%; height: auto; display: block; }

.product-detail-info { display: flex; flex-direction: column; gap: 20px; }

.back-to-gallery {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text2);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.back-to-gallery:hover { color: var(--text); }

.product-detail-info h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.product-detail-info .product-description { color: var(--text2); line-height: 1.75; font-size: 0.975rem; }

.product-detail-info .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #0e0e0f;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}
.product-detail-info .cta-button:hover { background: var(--accent2); transform: translateY(-2px); color: #0e0e0f; }

.loading { text-align: center; padding: 64px 0; color: var(--text3); font-size: 1rem; }
.empty-state { text-align: center; padding: 64px 24px; }
.empty-state h2 { color: var(--text); margin-bottom: 12px; }
.empty-state p { color: var(--text2); }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .filter-controls { gap: 6px; }
  .filter-btn { padding: 7px 14px; font-size: 0.8rem; }
  .product-detail-container { grid-template-columns: 1fr; gap: 32px; padding: 0 20px; }
  .product-detail-image { position: relative; top: 0; }
}
