/* ─────────────────────────────────────────────────────────────────────────────
   Boucherie Urbaine — CSS du catalogue PHP (Sprint 6)
   Les classes utilitaires générales (grid, flex, spacing, typo, surface-dark,
   gold-rule, …) viennent du build Vite (dist/assets/styles-*.css). Ici ne se
   trouvent que les composants spécifiques aux pages /boutique* et les rares
   utilitaires absents du build, exprimés avec les variables de design.
   ───────────────────────────────────────────────────────────────────────────── */

/* Grille produits : 1 → 2 → 3 colonnes */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Grille catégories : 1 → 2 → 3 colonnes (cartes paysage) */
.shop-grid-categories {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .shop-grid-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .shop-grid-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Bandeau de page (surface noir, image de fond) */
.shop-hero {
  position: relative;
  background-color: var(--noir);
  color: oklch(0.97 0.01 85);
  padding: 8.5rem 0 4.5rem;
  overflow: hidden;
}
.shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
}
.shop-hero--image::before {
  background-image: var(--shop-hero-image);
}
.shop-hero > * {
  position: relative;
}
.shop-hero-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: var(--or);
}
.shop-hero-title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.shop-hero-text {
  margin: 1.25rem auto 0;
  max-width: 42rem;
  color: oklch(0.85 0.02 85);
}

/* Fil d'Ariane */
.shop-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.shop-breadcrumbs a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.shop-breadcrumbs a:hover { color: var(--primary); }
.shop-breadcrumbs .sep { color: oklch(0.75 0.02 80); }
.shop-breadcrumbs [aria-current="page"] { color: var(--foreground); }

/* Carte catégorie */
.shop-category-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s;
}
.shop-category-card:hover { box-shadow: var(--shadow-lift); }
.shop-category-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s;
}
.shop-category-card:hover img { transform: scale(1.04); }
.shop-category-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  padding: 1.5rem;
}
.shop-category-body .tag {
  align-self: flex-start;
  border-radius: 9999px;
  background: oklch(0.17 0.008 40 / 0.85);
  color: var(--or);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
}
.shop-category-body h3 { font-family: var(--font-display); font-size: 1.375rem; }
.shop-category-body h3 a { color: inherit; transition: color 0.2s; }
.shop-category-body h3 a:hover { color: var(--primary); }
.shop-category-body p {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.shop-category-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.25rem;
}
.shop-category-price { font-size: 0.875rem; font-weight: 500; color: var(--primary); }

/* Carte produit */
.shop-product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s;
}
.shop-product-card:hover { box-shadow: var(--shadow-lift); }
.shop-product-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--muted);
  overflow: hidden;
}
.shop-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.shop-product-card:hover .shop-product-media img { transform: scale(1.04); }
.shop-product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  border-radius: 9999px;
  background: oklch(0.17 0.008 40 / 0.85);
  color: var(--or);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
}
.shop-product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  padding: 1.5rem;
}
.shop-product-body h3 { font-family: var(--font-display); font-size: 1.25rem; }
.shop-product-body h3 a { color: inherit; transition: color 0.2s; }
.shop-product-body h3 a:hover { color: var(--primary); }
.shop-product-body p {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
.shop-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.25rem;
  flex-wrap: wrap;
}
.shop-product-price { font-size: 0.875rem; font-weight: 500; color: var(--primary); }

/* Détail produit */
.shop-detail-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3rem;
}
@media (min-width: 1024px) {
  .shop-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.shop-detail-media {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--muted);
  aspect-ratio: 4 / 3;
}
.shop-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.shop-detail-title { font-family: var(--font-display); font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.15; }
.shop-detail-tag {
  display: inline-flex;
  border-radius: 9999px;
  background: oklch(0.17 0.008 40 / 0.85);
  color: var(--or);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
}
.shop-detail-price { font-family: var(--font-display); font-size: 1.25rem; color: var(--primary); }
.shop-detail-desc { font-size: 1rem; line-height: 1.85; color: var(--muted-foreground); }

/* Bouton ajouter au panier (version PHP) */
.shop-atc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  border-radius: 9999px;
  padding: 0 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-foreground);
  background: var(--primary);
  transition: background 0.2s, opacity 0.2s;
  border: 0;
  cursor: pointer;
}
.shop-atc:hover { background: var(--primary); opacity: 0.9; }
.shop-atc.is-added { background: var(--primary); }
.shop-atc--disabled {
  cursor: not-allowed;
  opacity: 0.55;
  background: var(--muted);
  color: var(--muted-foreground);
}
.shop-atc--disabled:hover { opacity: 0.55; }

/* Sélecteur de poids (vente au kilo) */
.weight-picker {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  background: var(--card);
  max-width: 26rem;
}
.weight-picker-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-foreground); }
.weight-picker-live { font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.weight-picker-options { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.weight-picker-options button {
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: transparent;
  color: var(--foreground);
  font-size: 0.8125rem;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.weight-picker-options button:hover { border-color: var(--primary); color: var(--primary); }
.weight-picker-options button.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.weight-picker-custom { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.weight-picker-custom input {
  width: 11rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  padding: 0.45rem 0.7rem;
}
.weight-picker-custom-hint { font-size: 0.6875rem; color: var(--muted-foreground); }
.weight-picker-total { font-size: 0.8125rem; color: var(--muted-foreground); }
.weight-picker-total strong { color: var(--foreground); font-size: 0.95rem; }

/* Note "prix en boutique" (pas de prix numérique) */
.shop-price-note {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 34rem;
}
.shop-price-note strong { color: var(--foreground); font-weight: 600; }

/* Bouton flottant WhatsApp — cercle vert officiel, pastille "WhatsApp" sur desktop */
.wa-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: #25d366;
  color: #ffffff;
  box-shadow:
    0 12px 24px -6px rgba(37, 211, 102, 0.45),
    0 4px 10px -4px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float svg {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}
.wa-float .wa-label {
  display: none;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1;
  color: #ffffff;
}
.wa-float:hover {
  transform: scale(1.05);
  box-shadow:
    0 16px 30px -8px rgba(37, 211, 102, 0.55),
    0 6px 14px -6px rgba(37, 211, 102, 0.4);
}
@media (min-width: 640px) {
  .wa-float {
    width: auto;
    height: 3.5rem;
    gap: 0.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .wa-float .wa-label { display: inline; }
}
