/* =====================================================================
   CHÉTOU — PAGE SHOWCASE
   ===================================================================== */

/* ---------------------------------------------------------------------
   Intro — même traitement typographique que les titres des lookbooks
   --------------------------------------------------------------------- */

.shop-intro {
  max-width: 760px;
  margin: 30px auto 34px;
  padding: 0 24px;
  text-align: center;
  font-family: var(--roboto);
  color: #fff;
}

.shop-intro p {
  font-size: clamp(13px, 1.3vw, 15px);
  letter-spacing: 0.04em;
  line-height: 1.7;
  margin: 0 auto 8px;
}

/* ---------------------------------------------------------------------
   Sélection Marais — sans cadre, sans texte : le nom et le bouton
   --------------------------------------------------------------------- */

.shop-store {
  /* Le nom et le bouton sont sur la même ligne. */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;

  margin: 0 auto 34px;
  padding: 0 24px;
  font-family: var(--roboto);
  color: #fff;
}

.shop-store h2 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: 0;
  white-space: nowrap;
}

.shop-store a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.shop-store a:hover {
  background: #fff;
  color: #000;
}

/* ---------------------------------------------------------------------
   Barre de filtres — du texte, un soulignement sur la catégorie active
   --------------------------------------------------------------------- */

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 26px;
  max-width: 1180px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.shop-filter {
  background: none;
  border: none;
  padding: 6px 0;
  color: #7d7d7d;
  font-family: var(--roboto);
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: crosshair;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.shop-filter:hover {
  color: #fff;
}

.shop-filter.active {
  color: #fff;
  border-bottom-color: #fff;
}

/* ---------------------------------------------------------------------
   La grille
   --------------------------------------------------------------------- */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 40px 24px;
  max-width: 1180px;
  margin: 0 auto 90px;
  padding: 0 24px;
}

.shop-card {
  display: flex;
  flex-direction: column;
  font-family: var(--roboto);
  color: #fff;
}

.shop-card.hidden {
  display: none;
}

.shop-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #000;
  cursor: crosshair;
}

.shop-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease;
}

/* Le dos est superposé au recto, invisible au repos.
   pointer-events: none est INDISPENSABLE : sans lui, cette image passe
   au-dessus du recto et intercepte le clic, ce qui empêche la fenêtre
   d'agrandissement de s'ouvrir. */
.shop-back {
  opacity: 0;
  pointer-events: none;
}

/* Après un survol prolongé (js/shop.js), on échange les deux photos.
   Le zoom porte sur les deux à la fois : le mouvement reste cohérent. */
.shop-card-media.flip .shop-front { opacity: 0; }
.shop-card-media.flip .shop-back  { opacity: 1; }

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

.shop-card h3 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 14px 0 5px;
}

.shop-card .shop-meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #8a8a8a;
  margin: 0 0 14px;
}

.shop-btn {
  margin-top: auto;
  padding: 11px;
  width: 100%;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  font-family: var(--roboto);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: crosshair;
  transition: background 0.2s, color 0.2s;
}

.shop-btn:hover {
  background: #000;
  color: #fff;
}

.shop-btn.sold {
  background: transparent;
  color: #6a6a6a;
  border-color: #3a3a3a;
  cursor: default;
}

.shop-btn.sold:hover {
  background: transparent;
  color: #6a6a6a;
}

/* ---------------------------------------------------------------------
   Fenêtre de commande
   --------------------------------------------------------------------- */

#order .popup-content {
  max-width: 500px;
}

#order .order-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #333;
}

#order .order-summary img {
  width: 70px;
  height: 94px;
  object-fit: cover;
  flex: 0 0 auto;
}

#order .order-summary div {
  font-family: var(--roboto);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

#order .order-note {
  font-family: var(--roboto);
  font-size: 12px;
  line-height: 1.5;
  color: #8a8a8a;
  margin-top: 4px;
}

/* ---------------------------------------------------------------------
   Mobile
   --------------------------------------------------------------------- */

@media screen and (max-width: 852px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 12px;
    padding: 0 12px;
  }

  .shop-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding: 0 12px 6px;
    margin-bottom: 26px;
  }

  .shop-filter {
    flex: 0 0 auto;
  }

  .shop-card h3   { font-size: 12px; }
  .shop-card .shop-meta { font-size: 11px; }
  .shop-btn       { font-size: 11px; padding: 9px; }
  .shop-intro     { padding: 0 16px; margin-bottom: 22px; }
}
