/* =====================================================================
   shop.css — complément à admin.css pour le front boutique
   Utilise les variables --a3i-* définies dans admin.css
   ===================================================================== */

/* ---------- Grille catalogue ---------- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.product-card {
  background: var(--a3i-white);
  border: 1px solid var(--a3i-gray-lt);
  border-radius: var(--a3i-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.product-card:hover {
  box-shadow: var(--a3i-shadow-md);
  transform: translateY(-2px);
  border-color: var(--a3i-red);
}

.product-card__img {
  background: var(--a3i-gray-bg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;  /* keep this for the badge */
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  display: block;
}
.product-card__img--placeholder {
  display: grid;
  place-items: center;
  color: var(--a3i-gray);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
/* Badge stock : sous le prix (fond blanc), pas sur l'image */
.product-card__stock-badge {
  margin-top: 6px;
  white-space: nowrap;
}

.product-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-card__category {
  font-size: 11px;
  color: var(--a3i-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.product-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--a3i-black);
  margin: 0;
  line-height: 1.3;
}
.product-card__short {
  font-size: 13px;
  color: var(--a3i-gray);
  margin: 0;
  flex: 1;
}
.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--a3i-gray-lt);
}
.product-card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--a3i-red);
}
.product-card__price-ttc {
  font-size: 11px;
  color: var(--a3i-gray);
  font-weight: 500;
  display: block;
}

/* ---------- Fiche produit ---------- */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
}
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; }
}

.product-gallery__main {
  background: var(--a3i-gray-bg);
  border: 1px solid var(--a3i-gray-lt);
  border-radius: var(--a3i-radius-lg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  color: var(--a3i-gray);
  /* Add these: */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Add this to prevent shrinking in flex context: */
  flex-shrink: 0;
}
.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.product-gallery__thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border: 1px solid var(--a3i-gray-lt);
  border-radius: var(--a3i-radius);
  cursor: pointer;
  transition: border-color .15s;
}
.product-gallery__thumbs img.is-active,
.product-gallery__thumbs img:hover {
  border-color: var(--a3i-red);
}

.product-info {
  background: var(--a3i-white);
  border: 1px solid var(--a3i-gray-lt);
  border-radius: var(--a3i-radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
}
.product-info__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--a3i-black);
  margin: 8px 0 4px 0;
  letter-spacing: -0.2px;
}
.product-info__sku {
  font-family: var(--a3i-font-mono);
  font-size: 12px;
  color: var(--a3i-gray);
  margin-bottom: 16px;
}
.product-info__price-box {
  background: var(--a3i-gray-bg);
  border-radius: var(--a3i-radius);
  padding: 16px;
  margin: 16px 0;
}
.product-info__price-ht {
  font-size: 28px;
  font-weight: 700;
  color: var(--a3i-red);
  line-height: 1;
}
.product-info__price-ttc {
  font-size: 13px;
  color: var(--a3i-gray);
  margin-top: 4px;
}
.product-info__desc {
  font-size: 14px;
  color: var(--a3i-black);
  line-height: 1.6;
  margin: 16px 0;
}
.product-info__desc ul {
  padding-left: 20px;
}

/* ---------- Récap commande (checkout) ---------- */
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

.order-summary {
  background: var(--a3i-white);
  border: 1px solid var(--a3i-gray-lt);
  border-radius: var(--a3i-radius-lg);
  padding: 20px;
  position: sticky;
  top: 100px;
}
.order-summary__title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--a3i-gray);
  margin: 0 0 16px 0;
}
.order-summary__item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--a3i-gray-lt);
  margin-bottom: 16px;
}
.order-summary__item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--a3i-radius);
  background: var(--a3i-gray-bg);
  flex-shrink: 0;
  object-fit: cover;
}
.order-summary__item-info strong { display: block; font-size: 13px; color: var(--a3i-black); }
.order-summary__item-info small  { font-size: 11px; color: var(--a3i-gray); font-family: var(--a3i-font-mono); }

.order-summary__lines > div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  color: var(--a3i-gray);
}
.order-summary__total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  color: var(--a3i-black);
  border-top: 2px solid var(--a3i-black);
  padding-top: 12px;
  margin-top: 12px;
}
.order-summary__total .amount { color: var(--a3i-red); }

/* ---------- Timeline de statut (mes commandes) ---------- */
.order-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 0;
  overflow-x: auto;
}
.order-timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 100px;
  text-align: center;
  position: relative;
  flex: 1;
}
.order-timeline__step::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 15px;
  width: 100%;
  height: 2px;
  background: var(--a3i-gray-lt);
  z-index: 0;
}
.order-timeline__step:last-child::after { display: none; }
.order-timeline__step.is-done::after     { background: var(--a3i-success); }
.order-timeline__dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--a3i-white);
  border: 2px solid var(--a3i-gray-lt);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--a3i-gray);
  position: relative;
  z-index: 1;
}
.order-timeline__step.is-done .order-timeline__dot {
  background: var(--a3i-success);
  border-color: var(--a3i-success);
  color: var(--a3i-white);
}
.order-timeline__step.is-current .order-timeline__dot {
  background: var(--a3i-red);
  border-color: var(--a3i-red);
  color: var(--a3i-white);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192,0,0,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(192,0,0,0);  }
}
.order-timeline__label {
  font-size: 11px;
  color: var(--a3i-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.order-timeline__step.is-current .order-timeline__label {
  color: var(--a3i-red);
  font-weight: 700;
}

/* ---------- Hero / page titre catalogue ---------- */
.shop-hero {
  background: linear-gradient(135deg, var(--a3i-red) 0%, var(--a3i-red-dark) 100%);
  color: var(--a3i-white);
  padding: 32px;
  border-radius: var(--a3i-radius-lg);
  margin-bottom: 24px;
}
.shop-hero h1 {
  font-size: 28px;
  margin: 0 0 8px 0;
  letter-spacing: -0.3px;
}
.shop-hero p {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
  max-width: 640px;
}

/* ---------- Filtres catalogue (sidebar ou topbar) ---------- */
.catalog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--a3i-white);
  border: 1px solid var(--a3i-gray-lt);
  border-radius: var(--a3i-radius);
}
.catalog-filters label {
  font-size: 12px;
  color: var(--a3i-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.catalog-filters select,
.catalog-filters input {
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid var(--a3i-gray-lt);
  border-radius: var(--a3i-radius);
  background: var(--a3i-white);
  font-family: inherit;
}

/* ---------- Support & contact (shop/support.php) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.contact-card {
  background: var(--a3i-white);
  border: 1px solid var(--a3i-gray-lt);
  border-top: 4px solid var(--a3i-gray-lt);
  border-radius: var(--a3i-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .18s, border-color .18s;
}
.contact-card:hover { box-shadow: var(--a3i-shadow-md); border-color: var(--a3i-red); }
.contact-card__icon {
  width: 48px; height: 48px;
  background: var(--a3i-red-soft);
  display: grid; place-items: center;
  border-radius: var(--a3i-radius);
  font-size: 24px;
}
.contact-card__icon--blue  { background: rgba(25,103,170,0.10); }
.contact-card__icon--green { background: rgba(46,125,50,0.10); }
.contact-card__title { font-size: 16px; font-weight: 600; color: var(--a3i-black); margin: 0; }
.contact-card__desc  { font-size: 13px; color: var(--a3i-gray); margin: 0; flex: 1; }
.contact-card__info  { font-size: 14px; }
.contact-card__info a { color: var(--a3i-red); text-decoration: none; font-weight: 600; }
.contact-card__info a:hover { text-decoration: underline; }
.contact-card__hours {
  font-size: 11px;
  color: var(--a3i-gray);
  padding-top: 8px;
  border-top: 1px solid var(--a3i-gray-lt);
}

.support-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
.support-layout .form-field textarea { resize: vertical; min-height: 140px; }
@media (max-width: 1024px) {
  .support-layout { grid-template-columns: 1fr; }
}

.hours-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--a3i-gray-lt); }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:first-child { font-weight: 600; color: var(--a3i-black); }
.hours-table td:last-child { color: var(--a3i-gray); text-align: right; }
.hours-table td.hours-closed { color: var(--a3i-red); font-style: italic; }

.faq-item { border-bottom: 1px solid var(--a3i-gray-lt); padding: 14px 0; }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item__q {
  font-weight: 600;
  font-size: 14px;
  color: var(--a3i-black);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.faq-item__q:hover { color: var(--a3i-red); }
.faq-item__q::after { content: "+"; font-size: 18px; font-weight: 400; color: var(--a3i-gray); flex-shrink: 0; transition: transform .2s; }
.faq-item.is-open .faq-item__q::after { transform: rotate(45deg); }
.faq-item__a { font-size: 13px; color: var(--a3i-gray); margin-top: 10px; line-height: 1.7; display: none; }
.faq-item.is-open .faq-item__a { display: block; }

/* ---------- Documentation (shop/docs.php) ---------- */
.docs-list { display: flex; flex-direction: column; }
.docs-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--a3i-gray-lt);
}
.docs-item:first-child { padding-top: 0; }
.docs-item:last-child { border-bottom: none; padding-bottom: 0; }
.docs-item__type {
  flex: 0 0 48px;
  height: 48px;
  display: grid; place-items: center;
  background: var(--a3i-red-soft);
  color: var(--a3i-red);
  border-radius: var(--a3i-radius);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.docs-item__info { flex: 1; min-width: 0; }
.docs-item__info strong { font-size: 14px; color: var(--a3i-black); }
.docs-item__info p { margin: 2px 0 0; font-size: 13px; color: var(--a3i-gray); }
.docs-item__info small { display: block; margin-top: 4px; font-size: 11px; color: var(--a3i-gray); }
.docs-item__actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 640px) {
  .docs-item { flex-wrap: wrap; }
  .docs-item__actions { width: 100%; }
}

/* =====================================================================
   Habillage boutique (v2) — bandeau d'accueil, catalogue à filtres,
   fiche produit, pied de page. Polices, boutons et en-tête :
   site_header.css (communs avec le configurateur).
   ===================================================================== */

body.shop-body {
  --a3i-font:      var(--site-font);
  --a3i-font-mono: var(--site-font-mono);
  --a3i-radius:    6px;
  --a3i-radius-lg: 10px;
  --a3i-gray-lt:   #E2E2DE;
  --a3i-gray:      #55585D;
  font-family: var(--a3i-font);
  background: var(--shop-bg);
  color: var(--shop-ink);
  display: flex;
  flex-direction: column;
}
.shop-body a { color: #B00000; }

.shop-main { flex: 1; width: 100%; max-width: 1200px; padding: 32px 24px 56px; }
.shop-main--full { max-width: none; padding: 0; }
.shop-flashes { padding-top: 16px; }

/* ---------- Bandeau d'accueil ---------- */
.shop-eyebrow {
  font-family: var(--a3i-font-mono);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: #8A1010;
}
.shop-eyebrow--light { color: #FF8A8A; }

.shop-hero { background: var(--shop-ink); color: #fff; }
.shop-hero__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
  padding-top: 56px; padding-bottom: 56px;
}
.shop-hero__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px; }
.shop-hero h1 {
  margin: 0; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.05;
  font-weight: 700; letter-spacing: -1px; color: #fff;
}
.shop-hero p { margin: 0; font-size: 17px; line-height: 1.6; color: #C9CBCF; max-width: 480px; }
.shop-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.shop-hero__visual {
  flex: 1 1 440px; position: relative; display: block;
  background: var(--shop-ink-2); border: 1px solid #33363B; border-radius: 12px; padding: 20px;
  text-decoration: none;
}
.shop-hero__visual img { width: 100%; height: auto; display: block; border-radius: 4px; }
.shop-hero__tag {
  position: absolute; left: 32px; bottom: 32px;
  background: #fff; color: var(--shop-ink);
  padding: 10px 14px; border-radius: 6px;
  display: flex; flex-direction: column; gap: 2px; font-size: 13px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.shop-hero__tag small { font-family: var(--a3i-font-mono); font-size: 11px; color: var(--shop-muted); }

/* ---------- Engagements ---------- */
.shop-trust { background: #fff; border-bottom: 1px solid var(--shop-line); }
.shop-trust__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px;
  padding-top: 24px; padding-bottom: 24px;
}
.shop-trust__item { display: flex; gap: 12px; align-items: flex-start; }
.shop-trust__item svg { width: 28px; height: 28px; flex-shrink: 0; fill: none; stroke: var(--a3i-red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shop-trust__item strong { display: block; font-size: 14px; }
.shop-trust__item span { font-size: 13px; color: var(--shop-muted); }

/* ---------- Catalogue (filtres + liste) ---------- */
.catalog { padding: 48px 0 56px; scroll-margin-top: 72px; }
.catalog__head { margin-bottom: 24px; }
.catalog__head h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
.catalog__head p { margin: 4px 0 0; color: var(--shop-muted); font-size: 15px; }

.catalog__layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }

.catalog-facets {
  flex: 1 1 240px; max-width: 280px;
  display: flex; flex-direction: column; gap: 24px;
  font-size: 14px;
}
.catalog-facets fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.catalog-facets__title {
  display: block;
  font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
  color: var(--shop-muted); margin-bottom: 8px; padding: 0;
}
.catalog-facets__search input {
  width: 100%; box-sizing: border-box; height: 44px; padding: 0 12px;
  border: 1px solid #D6D6D2; border-radius: var(--a3i-radius);
  font: inherit; font-size: 14px; background: #fff;
}
.catalog-facets__search input:focus { outline: 2px solid var(--a3i-red); outline-offset: -1px; }
.catalog-facets__check { display: flex; align-items: center; gap: 10px; min-height: 32px; cursor: pointer; }
.catalog-facets__check input { width: 18px; height: 18px; margin: 0; accent-color: var(--a3i-red); }
.catalog-facets__check span { margin-left: auto; color: var(--shop-muted); font-size: 13px; }
.catalog-facets__check.is-empty { color: #707378; }
.catalog-facets__actions { display: flex; gap: 8px; }
.catalog-facets__promo {
  border: 1px solid var(--shop-line); border-radius: var(--a3i-radius-lg);
  background: #fff; padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.catalog-facets__promo strong { font-size: 15px; }
.catalog-facets__promo span { font-size: 13px; color: var(--shop-muted); line-height: 1.5; }
.catalog-facets__promo a { font-weight: 600; text-decoration: none; }

.catalog-results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.catalog-results__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.catalog-results__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.catalog-results__chips strong { font-size: 14px; margin-right: 4px; }
.shop-body .catalog-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #E8E8E5; color: var(--shop-ink); text-decoration: none;
  padding: 5px 10px; border-radius: 14px;
}
.shop-body .catalog-chip:hover { background: #DCDCD8; }
.catalog-results__sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--shop-muted); }
.catalog-results__sort select {
  height: 36px; padding: 0 10px; border: 1px solid #D6D6D2; border-radius: var(--a3i-radius);
  font: inherit; font-size: 13px; background: #fff; color: var(--shop-ink);
}
.catalog-empty {
  background: #fff; border: 1px dashed #D6D6D2; border-radius: var(--a3i-radius-lg);
  padding: 32px; display: flex; flex-direction: column; gap: 6px; color: var(--shop-muted);
}
.catalog-empty strong { color: var(--shop-ink); }

.catalog-item {
  background: #fff; border: 1px solid var(--shop-line); border-radius: 12px;
  display: flex; flex-wrap: wrap; overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.catalog-item:hover { border-color: #C9C9C4; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.catalog-item__img {
  flex: 1 1 240px; max-width: 300px;
  background: #ECECE9; display: flex; align-items: center; justify-content: center; padding: 16px;
}
.catalog-item__img img { width: 100%; height: auto; display: block; border-radius: 3px; box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.catalog-item__img.is-placeholder { color: var(--shop-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; min-height: 180px; }
.catalog-item__body { flex: 999 1 320px; min-width: 0; padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.catalog-item__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 12px; }
.catalog-item__ref { font-family: var(--a3i-font-mono); font-size: 12px; color: var(--shop-muted); }
.catalog-item h3 { margin: 4px 0 0; font-size: 19px; font-weight: 600; }
.shop-body .catalog-item h3 a { color: var(--shop-ink); text-decoration: none; }
.shop-body .catalog-item h3 a:hover { color: var(--a3i-red); }
.catalog-item__desc { margin: 0; font-size: 14px; color: var(--shop-text-2); line-height: 1.55; }
.catalog-item__specs {
  margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px;
  font-size: 13px;
}
.catalog-item__specs dt { color: var(--shop-muted); font-size: 12px; }
.catalog-item__specs dd { margin: 2px 0 0; font-weight: 600; font-family: var(--a3i-font-mono); font-size: 13px; }
.catalog-item__foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--shop-line-2);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.catalog-item__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.catalog-item__price strong { font-size: 22px; font-weight: 700; }
.catalog-item__price span { font-size: 13px; color: var(--shop-muted); }
.catalog-item__actions { display: flex; gap: 8px; }

/* Pastille de disponibilité */
.shop-stock {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 12px; white-space: nowrap;
}
.shop-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.shop-stock--in_stock  { background: #E6F2E7; color: #2E6B31; }
.shop-stock--low_stock { background: #FFF1DC; color: #8A5300; }
.shop-stock--on_order  { background: #E7EEF6; color: #1A4E85; }

/* ---------- Bandeau configurateur ---------- */
.shop-cta {
  margin: 0 0 64px;
  background: var(--a3i-red); color: #fff; border-radius: 12px;
  padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.shop-cta > div { flex: 1 1 420px; }
.shop-cta h2 { margin: 0 0 8px; font-size: 28px; font-weight: 700; color: #fff; }
.shop-cta p { margin: 0; font-size: 16px; color: #FFE3E3; line-height: 1.55; }

/* ---------- Pied de page ---------- */
.shop-footer { background: var(--shop-ink); color: #A3A6AB; font-size: 13px; }
.shop-footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
  padding-top: 40px; padding-bottom: 32px;
}
.shop-footer__col { display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.shop-footer__col strong { color: #fff; font-size: 14px; }
.shop-body .shop-footer a { color: #A3A6AB; text-decoration: none; }
.shop-body .shop-footer a:hover { color: #fff; }
.shop-footer__legal { border-top: 1px solid #2C2F33; padding-top: 16px; padding-bottom: 16px; font-size: 12px; }

/* ---------- Fiche produit ---------- */
.shop-breadcrumb { font-size: 13px; color: var(--shop-muted); margin-bottom: 20px; }
.shop-body .shop-breadcrumb a { color: var(--shop-muted); text-decoration: none; }
.shop-body .shop-breadcrumb a:hover { color: var(--a3i-red); }
.shop-breadcrumb span { margin: 0 6px; }

.pdp { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.pdp__media { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pdp__main {
  background: #fff; border: 1px solid var(--shop-line); border-radius: var(--a3i-radius-lg);
  padding: 24px; display: flex; align-items: center; justify-content: center; min-height: 320px;
  color: var(--shop-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
}
.pdp__main img { width: 100%; height: auto; display: block; border-radius: 4px; cursor: zoom-in; }
.pdp__thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.pdp__thumbs button {
  width: 96px; height: 72px; padding: 4px; background: #fff; cursor: pointer;
  border: 1px solid var(--shop-line); border-radius: var(--a3i-radius);
}
.pdp__thumbs button.is-active, .pdp__thumbs button:hover { border: 2px solid var(--a3i-red); padding: 3px; }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pdp__buy {
  flex: 1 1 360px; max-width: 420px;
  background: #fff; border: 1px solid var(--shop-line); border-radius: var(--a3i-radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 96px;
}
.pdp__buy h1 { margin: 6px 0 4px; font-size: 30px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; }
.pdp__sku { font-family: var(--a3i-font-mono); font-size: 13px; color: var(--shop-muted); }
.pdp__short { margin: 0; font-size: 15px; line-height: 1.6; color: var(--shop-text-2); }
.pdp__price { border-top: 1px solid var(--shop-line-2); padding-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.pdp__price strong { font-size: 32px; font-weight: 700; letter-spacing: -.5px; }
.pdp__price strong small { font-size: 15px; font-weight: 500; color: var(--shop-muted); }
.pdp__price span { font-size: 13px; color: var(--shop-muted); }
.pdp__avail { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--shop-muted); }
.pdp__avail .shop-stock { align-self: flex-start; font-size: 13px; }
.pdp__buy form { margin: 0; }
.pdp__buy .shop-btn { width: 100%; }
.pdp__login-hint { margin: -8px 0 0; font-size: 12px; color: var(--shop-muted); text-align: center; }
.pdp__checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--shop-text-2); }
.pdp__checks li { display: flex; gap: 10px; align-items: center; }
.pdp__checks svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: #2E7D32; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.pdp__details { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.pdp__card {
  background: #fff; border: 1px solid var(--shop-line); border-radius: var(--a3i-radius-lg);
  padding: 24px 28px; box-sizing: border-box;
}
.pdp__card > h2 { margin: 0 0 16px; font-size: 18px; font-weight: 600; }
.pdp__desc { flex: 999 1 560px; min-width: 0; font-size: 15px; line-height: 1.65; color: var(--shop-text-2); }

/* ---------- Texte riche (description produit, partagé avec l'éditeur admin) ---------- */
.rich-text { overflow-wrap: anywhere; }
.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text p { margin: 0 0 12px; }
.rich-text h2, .rich-text h3, .rich-text h4 { color: var(--shop-ink, #16181B); line-height: 1.3; }
.rich-text h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 2px solid #B00000; }
.rich-text h3 { font-size: 17px; font-weight: 600; margin: 22px 0 10px; }
.rich-text h4 { font-size: 13px; font-weight: 600; margin: 18px 0 8px; letter-spacing: 1px; text-transform: uppercase; color: #8A1010; }
.rich-text strong { color: var(--shop-ink, #16181B); font-weight: 600; }
.rich-text ul, .rich-text ol { margin: 0 0 14px; padding-left: 22px; }
.rich-text li { margin: 4px 0; }
.rich-text li > ul, .rich-text li > ol { margin: 4px 0 0; }
.rich-text ul li::marker { color: #B00000; }
.rich-text ol li::marker { color: #B00000; font-weight: 600; }
.rich-text blockquote {
  margin: 0 0 14px; padding: 12px 16px; border-left: 3px solid #B00000;
  background: #F6F6F3; border-radius: 0 6px 6px 0; color: var(--shop-ink, #16181B);
}
.rich-text hr { border: 0; border-top: 1px solid var(--shop-line, #E2E2DE); margin: 20px 0; }
.rich-text a { color: #B00000; text-decoration: underline; text-underline-offset: 2px; }
.rich-text .txt-sm { font-size: 13px; }
.rich-text .txt-lg { font-size: 18px; }
.rich-text .txt-xl { font-size: 22px; line-height: 1.35; }
.rich-text .align-center  { text-align: center; }
.rich-text .align-right   { text-align: right; }
.rich-text .align-justify { text-align: justify; }
.pdp__docs { flex: 1 1 300px; max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.pdp__docs h2 { margin-bottom: 6px; }
.shop-body .pdp__doc {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 1px solid var(--shop-line); border-radius: var(--a3i-radius);
  color: var(--shop-ink); text-decoration: none; font-size: 14px;
}
.shop-body .pdp__doc:hover { border-color: var(--shop-ink); }
.pdp__doc-type {
  font-family: var(--a3i-font-mono); font-size: 11px; font-weight: 500;
  background: #FBEAEA; color: #8A1010; padding: 6px 8px; border-radius: 4px;
}
.pdp__docs p { margin: 0; font-size: 13px; color: var(--shop-muted); line-height: 1.5; }

@media (max-width: 640px) {
  .shop-hero__inner { padding-top: 36px; padding-bottom: 36px; gap: 32px; }
  .shop-hero__visual { padding: 12px; }
  .shop-hero__tag { left: 20px; bottom: 20px; }
  .catalog-facets { max-width: none; }
  .catalog-facets__promo { display: none; }
  .catalog-item__img { max-width: none; }
  .catalog-item__actions { width: 100%; }
  .catalog-item__actions .shop-btn { flex: 1; }
  .shop-cta { padding: 28px 24px; }
  .pdp__buy { position: static; max-width: none; }
}
