/* Siloé · zone « créateurs » : carte créateur (partout), liste, fiche boutique, fiche produit.
   Chargé après styles.css. Échelle commune : --h1/--h2/--h3, --r-sm/--r/--r-lg, boutons 44 et 52 px, champs 48 px, --sec, --head-h. */

/* ---------- carte créateur (liste, accueil, autres créateurs) ---------- */
.cr-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--white); transition: box-shadow .2s; }
.cr-card:hover { box-shadow: var(--shadow); }
.cr-ph { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.cr-ph img { width: 100%; height: 100%; object-fit: cover; }
.cr-bd { display: grid; gap: 6px; padding: 14px 16px 16px; align-content: start; }
.cr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--ink-2); }
.cr-uni { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-sm); font-size: 11.5px; font-weight: 600; }
.cr-name { font-size: var(--h3); line-height: 1.15; }
.cr-shop { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.cr-shop .verified svg { width: 14px; height: 14px; }
.cr-quote { font-size: 15px; line-height: 1.4; margin-top: 2px; }

/* ---------- cinq étoiles : contour, remplissage selon la note ---------- */
.star-row { position: relative; display: inline-flex; gap: 2px; vertical-align: middle; flex: none; }
.star-row .sr-five { display: inline-flex; gap: 2px; }
.star-row svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--star); stroke-width: 1.8; stroke-linejoin: round; }
.star-row .star-fill { position: absolute; left: 0; top: 0; height: 100%; overflow: hidden; white-space: nowrap; }
.star-row .star-fill svg { fill: var(--star); }
.star-row .star-fill .sr-five { width: 88px; }

/* ---------- liste des créateurs (#/createurs) ---------- */
.cr-title { margin-bottom: 14px; align-items: baseline; }
.cr-tools { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end; margin-bottom: 22px; }
.cr-tools label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.cr-tools .cr-q { flex: 1 1 260px; }
.cr-tools input, .cr-tools select { height: 48px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: var(--white); box-shadow: inset 0 0 0 1px var(--field-line); color: var(--ink); font-size: 14px; min-width: 0; }
.cr-tools select { appearance: none; min-width: 190px; padding: 0 36px 0 14px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231B2C5E' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.cr-tools input:focus, .cr-tools select:focus { outline: 2px solid var(--blue); outline-offset: 2px; }

.cr-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 18px; }
.cr-four { --cols: 4; }
.cr-empty { grid-column: 1 / -1; padding: 36px 20px; }
.cr-empty h2 { font-size: var(--h2); }

/* ---------- fiche boutique (#/b/<id>, #/h/<id>) ---------- */
.cs .cs-cover { height: clamp(180px, 22vw, 260px); border-radius: var(--r-lg); overflow: hidden; margin-top: 14px; }
.cs .cs-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.cs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-top: 18px; }
.cs-who h1 { font-size: var(--h1); line-height: 1.08; }
.cs-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.cs-actions { display: flex; gap: 8px; }
.cs-actions .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
.cs-quote { margin: 16px 0 0; max-width: 760px; font: italic 400 clamp(19px, 2vw, 24px)/1.3 var(--display); }
.cs .tabs { margin: 24px 0 22px; }
.cs-story { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.cs-why { font-size: 18px; line-height: 1.5; margin-top: 10px; }
.cs-values { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: cv; }
.cs-values li { position: relative; display: grid; gap: 2px; padding-left: 40px; counter-increment: cv; }
.cs-values li::before { content: counter(cv); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--apricot-soft); color: var(--apricot-deep); font-size: 13px; font-weight: 600; }
.cs-values b { font-size: 17px; font-weight: 400; }
.cs-faith { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.cs-faith > div, .cs-faith blockquote { margin: 0; padding: 20px 22px; border-radius: var(--r-lg); }
.cs-faith > div { background: var(--sky); }
.cs-faith p { margin-top: 8px; font-size: 15px; line-height: 1.55; }
.cs-faith blockquote { background: var(--white); display: grid; gap: 8px; font: italic 400 19px/1.35 var(--display); }
.cs-faith cite { font: normal 13px var(--ui); color: var(--ink-2); }
.cs-faith .eyebrow { font-style: normal; }
.cs-day { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 24px; max-width: 900px; font-size: 15px; line-height: 1.55; }
.cs-day .eyebrow { white-space: nowrap; }
.cs-pray { margin-top: 22px; max-width: 760px; font-size: 16px; line-height: 1.55; }
.cs-pray .eyebrow { display: block; margin-bottom: 4px; }
.cs-checked { margin-top: 24px; }
.cs-sec { margin-top: var(--sec); }
.cs-reviews { max-width: 760px; }

/* ---------- fiche produit ---------- */
.gallery { top: calc(var(--head-h) + 24px); }
.pdp { gap: 40px; }
.buy { gap: 16px; }
.pd-head { display: grid; gap: 8px; }
.buy h1 { font-size: var(--h1); line-height: 1.08; }
.pd-rate { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-size: 14px; }
.pd-rate b { font-weight: 600; }
.pd-desc { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.pd-buy { display: grid; gap: 12px; }
.pd-price { font-size: 24px; font-weight: 700; line-height: 1.2; }
.buy-row .qty { height: 52px; }
.buy-row .fav-big { width: 52px; height: 52px; }
.delivery { gap: 10px; padding: 0; background: none; border-radius: 0; font-size: 14px; }
.pd-who { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: var(--white); }
.pd-who img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r); }
.pd-who-name { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.pd-who-tag { margin-top: 2px; font-size: 16px; line-height: 1.35; }
.pd-who-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 13.5px; font-weight: 600; }
.pd-who-links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pd-details h2 { font-size: var(--h3); margin-bottom: 6px; }
.pd-details dl { margin: 0; display: grid; }
.pd-details dl > div { display: grid; grid-template-columns: 124px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.pd-details dt { color: var(--ink-3); }
.pd-details dd { margin: 0; }
.pd-sec { margin-top: var(--sec); }
.reviews { gap: 32px; }
.pd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px 24px; }

/* ---------- tailles intermédiaires ---------- */
@media (max-width: 960px) {
  .cr-grid, .cr-four { --cols: 3; }
  .cs-story { gap: 28px; }
}

/* ---------- téléphone ---------- */
@media (max-width: 680px) {
  .cr-grid, .cr-four { --cols: 1; gap: 12px; }
  .cr-card { flex-direction: row; }
  .cr-ph { width: 112px; aspect-ratio: auto; flex: none; }
  .cr-bd { padding: 12px 14px; }
  .cr-name { font-size: var(--h3); }
  .cr-quote { font-size: 14px; }
  .cr-tools .cr-q { flex-basis: 100%; }
  .cr-tools label:not(.cr-q) { flex: 1 1 calc(50% - 6px); }
  .cr-tools select { width: 100%; min-width: 0; }
  .cs-story, .cs-faith { grid-template-columns: 1fr; }
  .cs-why { font-size: 17px; }
  .cs-actions { width: 100%; }
  .cs-actions .btn { flex: 1; }
  .pd-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px 12px; }
  .main-photo { aspect-ratio: 1 / 1; }
}

/* ---------- barres de répartition (fiche produit) : libellé « 5 ★ » sur une ligne ---------- */
.reviews .bars > div { grid-template-columns: 34px 1fr 40px; }
.reviews .bars > div > span:first-child { white-space: nowrap; }

/* ---------- repasse Manne franche : créateurs, boutique, histoire ---------- */
/* Liste : bande ciel au-dessus des filtres */
.cr-tools { padding: 14px; border-radius: var(--r-lg); background: var(--sky); }
.cr-tools label { color: var(--ink-2); }
/* Boutique : bannière en corbeille (bas arrondi, comme le bol du logo) */
.cs .cs-cover { border-radius: var(--r-lg) var(--r-lg) 50% 50% / var(--r-lg) var(--r-lg) 22% 22%; }
/* Histoire : « une journée à l'atelier » en bande pêche */
.cs-day { max-width: none; padding: 20px 24px; border-radius: var(--r-lg); background: var(--apricot-soft); }
.cs-pray { max-width: none; padding: 20px 24px; border-radius: var(--r-lg); background: var(--sand); }
.cs-day, .cs-pray { margin-top: 14px; }
@media (max-width: 680px) { .cs .cs-cover { border-radius: var(--r) var(--r) 50% 50% / var(--r) var(--r) 18% 18%; } .cs-day, .cs-pray { padding: 16px 18px; } }
