/* ============================================================
   BDFink Studios — Shop Page Styles
   Coloring book product grid with Amazon links
   ============================================================ */

.shop-page {
  min-height: 100vh;
}

.shop {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 32px 64px;
}

.shop__header {
  text-align: center;
  margin-bottom: 64px;
}

.shop__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 16px;
}

.shop__subtitle {
  font-size: var(--text-body);
  color: var(--ash);
  letter-spacing: 0.05em;
}


/* --- Category Headers --- */
.shop-category {
  margin: 48px 0 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ember);
}

.shop-category__title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  color: var(--ember);
  letter-spacing: 0.02em;
}


/* --- Collection Sections --- */
.collection {
  margin-bottom: 64px;
}

.collection__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--slate);
}

.collection__title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  color: var(--white);
}

.collection__count {
  font-size: var(--text-small);
  color: var(--smoke);
  letter-spacing: 0.05em;
}

.collection__desc {
  font-size: var(--text-small);
  color: var(--smoke);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* --- Product Grid --- */
.collection__grid,
.shop__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 16px;
}

.book-card {
  background: var(--charcoal);
  border: 1px solid var(--slate);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.book-card:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
  box-shadow: 0 12px 32px rgba(232, 168, 62, 0.12);
}

.book-card__image {
  aspect-ratio: 8.5 / 11;
  overflow: hidden;
  background: var(--slate);
}

.book-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.book-card:hover .book-card__image img {
  transform: scale(1.05);
}

.book-card__info {
  padding: 10px 12px 12px;
}

.book-card__title {
  font-family: var(--font-display);
  font-size: var(--text-body);
  color: var(--white);
  margin-bottom: 6px;
}

.book-card__desc {
  display: none;
}

.book-card__buy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--midnight);
  background: var(--amber);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s var(--ease), transform 0.2s var(--ease);
}

.book-card__buy:hover {
  background: #d49a2e;
  transform: translateY(-2px);
  color: var(--midnight);
}

.book-card__buy svg {
  width: 12px;
  height: 12px;
}

.book-card__coming-soon {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--smoke);
  padding: 7px 0;
}


/* --- Footer --- */
.shop__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--slate);
}

.shop__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-body);
  color: var(--ash);
  transition: color 0.3s var(--ease);
}

.shop__back:hover {
  color: var(--ember);
}

.shop__back svg {
  width: 18px;
  height: 18px;
}

.shop__copyright {
  font-size: var(--text-small);
  color: var(--smoke);
}


/* --- Responsive --- */
@media (max-width: 768px) {
  .shop {
    padding: 100px 16px 48px;
  }

  .shop__header {
    margin-bottom: 40px;
  }

  .collection__grid,
  .shop__grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }

  .shop__footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .collection__grid,
  .shop__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}
