/* ─── SHOP HEADER ───────────────────────────────────────────── */

.shop-page { padding-top: 52px; }

.shop-header {
  max-width: 700px;
  margin: 0 auto;
  padding: 72px 32px 36px;
  text-align: center;
}

.shop-header .section-label { margin-bottom: 22px; }

.shop-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 42px;
  color: #f0e8d8;
  line-height: 1.15;
}

.shop-title em { font-style: italic; color: #d6a854; }

/* Category / Season / Collection pill nav lives in main.css — shared with
   the gallery page on the homepage, which loads main.css but not this file.
   On the shop, Type/Season/Collection stack as one filter block: the divider
   and breathing room that main.css puts under a lone .category-nav move down
   onto .shop-grid instead, so the block reads as a single unit no matter how
   many of the three rows actually have anything to filter by. */
.shop-page .category-nav { border-bottom: none; padding-bottom: 0; margin-bottom: 20px; }

.category-nav-secondary { margin: 0 48px 20px; padding-bottom: 0; border-bottom: none; }
.category-nav-secondary:empty { display: none; margin: 0; }

/* ─── GRID ──────────────────────────────────────────────────── */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 48px 0;
  border-top: 1px solid rgba(214,220,227,0.4);
  min-height: 320px;
}

.shop-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  opacity: 0;
  transform: translateY(18px);
  animation: cardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.shop-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #0a0806;
  border-radius: 2px;
}

.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.shop-card:hover .shop-card-img img { transform: scale(1.06); }

/* ─── SOLD ──────────────────────────────────────────────────── */

/* Fade the image and text, not the card itself — the card's entrance
   animation uses forwards fill, which would win over any opacity set here.
   The status badge stays at full strength so "Spoken For" is still legible. */
.shop-card.is-sold .shop-card-img img {
  opacity: 0.4;
  filter: grayscale(0.4);
}

.shop-card.is-sold .shop-card-info {
  opacity: 0.5;
  transition: opacity 0.35s ease;
}

.shop-card.is-sold:hover .shop-card-img img { opacity: 0.62; }
.shop-card.is-sold:hover .shop-card-info { opacity: 0.75; }

.shop-card-status {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(240,232,216,1);
  background: rgba(10, 8, 6, 0.72);
  border: 1px solid rgba(214,220,227,0.63);
  padding: 5px 9px;
  backdrop-filter: blur(3px);
}

.shop-card-info { padding: 18px 2px 0; }

.shop-card-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(214,168,84,0.9);
  margin-bottom: 8px;
}

.shop-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 22px;
  color: #f0e8d8;
  line-height: 1.2;
  margin-bottom: 6px;
}

.shop-card-name em { font-style: italic; color: #d6a854; }

.shop-card-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(240,232,216,0.9);
}

.shop-card-sizes {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(214,168,84,0.75);
  margin-top: 6px;
}

.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 19px;
  color: rgba(214,168,84,0.8);
  padding: 60px 0;
}

/* A category filter emptying out an otherwise non-empty collection: the
   plain "nothing here" line, a short rule, then a taste of what else the
   collection holds so the shopper isn't stuck. */
.shop-empty-wrap { grid-column: 1 / -1; text-align: center; padding: 0 0 72px; }
.shop-empty-wrap .shop-empty { padding: 44px 0; }

.shop-empty-rule {
  width: 50%;
  max-width: 220px;
  margin: 16px auto 32px;
  border: none;
  border-top: 1px solid rgba(214,168,84,0.5);
}

.shop-empty-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(214,168,84,0.75);
  margin-bottom: 32px;
}

.shop-empty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: left;
  margin-bottom: 40px;
}

.shop-empty-showall {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(214,168,84,0.8);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(214,168,84,0.4);
  padding: 4px 0;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.shop-empty-showall:hover { color: #f0e8d8; border-color: #f0e8d8; }

/* ─── PAGINATION ────────────────────────────────────────────── */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 64px 32px 96px;
}

.page-btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(214,168,84,0.85);
  background: none;
  border: none;
  cursor: pointer;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.page-btn:hover:not(:disabled) { color: rgba(214,168,84,1); }

.page-btn.active {
  color: #0c0906;
  background: rgba(214,168,84,0.96);
  border-radius: 50%;
}

.page-btn:disabled { opacity: 0.5; cursor: default; }

.page-arrow { font-size: 14px; }

/* ─── TABLET ────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .shop-grid, .shop-empty-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .shop-grid { padding: 32px 32px 0; }
  .shop-title { font-size: 36px; }
  .category-nav { gap: 20px; margin: 0 32px 20px; padding-bottom: 0; }
}

/* ─── PHONE ─────────────────────────────────────────────────── */

@media (max-width: 560px) {
  .shop-header { padding: 56px 24px 28px; }
  .shop-title { font-size: 30px; }
  .category-nav { gap: 14px 18px; margin: 0 24px 16px; padding: 0; }
  .category-pill { font-size: 9px; letter-spacing: 0.24em; }
  .shop-grid, .shop-empty-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
  .shop-grid { padding: 24px 24px 0; }
  .shop-card-name { font-size: 19px; }
  .pagination { padding: 48px 24px 72px; gap: 16px; }
}

@media (max-width: 380px) {
  .shop-grid { grid-template-columns: 1fr; max-width: 320px; }
  .shop-empty-grid { grid-template-columns: 1fr; }
}
