/* ── Homepage hero ── */

.shop-hero {
  width: 100%;
  min-height: 80vh;
  overflow: hidden;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-hero a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 80vh;
}

.shop-hero img {
  width: 100%;
  max-width: 100%;
  height: 80vh;
  object-fit: cover;
  display: block;
}

.shop-hero-placeholder {
  width: 100%;
  height: 80vh;
  background: #e8e8e8;
}

.shop-hero.is-portrait img,
.shop-hero.is-square img {
  width: auto;
  max-width: min(90vw, 60vh);
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  margin: 32px auto;
}

/* ── Wall label ── */

.shop-wall-label {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding: 40px 0 48px;
  border-bottom: 1px solid #e0e0e0;
}

.shop-wall-label-info {
  flex: 1 1 auto;
}

.shop-wall-label-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #000;
}

.shop-wall-label-subtitle {
  margin: 6px 0 0;
  font-size: 1rem;
  color: #666;
  line-height: 1.45;
}

.shop-wall-label-meta {
  margin: 14px 0 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  font-weight: 500;
}

.shop-wall-label-right {
  flex: 0 0 auto;
  text-align: right;
}

.shop-wall-label-price {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #000;
}

.shop-wall-label-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
  padding-bottom: 1px;
  transition: opacity 0.15s ease;
}

.shop-wall-label-link:hover {
  opacity: 0.5;
}

/* ── Section dividers ── */

.shop-section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0 24px;
}

.shop-section-divider::before,
.shop-section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
}

.shop-section-divider span,
.shop-section-divider-link {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s ease;
}

.shop-section-divider-link:hover {
  color: #000;
}

/* ── Product grid (section cards) ── */

.shop-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px 20px;
  margin-bottom: 32px;
  align-items: start;
}

.shop-listing-card {
  display: flex;
  flex-direction: column;
  color: #222;
  text-decoration: none;
  background: #fff;
}

/*
 * Each card's image area uses the artwork's natural aspect ratio (portrait
 * 3:4, landscape 4:3, square 1:1) so nothing is cropped. The grid uses
 * `align-items: start` so cards of different heights sit side by side
 * without stretching, gallery-wall style.
 */
.shop-listing-card-image-wrap {
  display: block;
  width: 100%;
  background: #fafafa;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.shop-listing-card.is-portrait .shop-listing-card-image-wrap {
  aspect-ratio: 3 / 4;
}

.shop-listing-card.is-square .shop-listing-card-image-wrap {
  aspect-ratio: 1 / 1;
}

.shop-listing-card-image,
.shop-listing-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.shop-listing-card-image {
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.shop-listing-card-placeholder {
  background: #ececec;
}

.shop-listing-card-body {
  padding: 12px 0 16px;
}

.shop-listing-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.shop-listing-card-price {
  margin: 4px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
}

.shop-listing-card-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  background: #222;
  color: #fff;
}

.shop-listing-empty {
  margin: 80px 0;
  text-align: center;
  color: #999;
  font-size: 1rem;
}

.archive-header {
  padding-top: 48px;
  padding-bottom: 24px;
}

.archive-header p:last-child {
  max-width: 680px;
  color: #555;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .shop-hero {
    min-height: 50vh;
  }

  .shop-hero img {
    height: 50vh;
  }

  .shop-hero-placeholder {
    height: 50vh;
  }

  .shop-wall-label {
    flex-direction: column;
    gap: 16px;
    padding: 28px 0 36px;
  }

  .shop-wall-label-right {
    text-align: left;
  }

  .shop-wall-label-title {
    font-size: 1.5rem;
  }

  .shop-wall-label-price {
    font-size: 1.4rem;
  }

  .shop-listing-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
}
