/* Escale Fiche Produit */
.single-product {
  --efp-ink: #231f1b;
  --efp-muted: #7d736a;
  --efp-line: #ebe4dc;
  --efp-cream: #f7f3ee;
  --efp-sand: #efe7dd;
  --efp-accent: #9c876f;
  --efp-hot: #a4442f;
  --efp-ok: #4f6b4a;
}

/* ---------- En-tête de fiche ---------- */
.single-product .entry-summary .efp-brand {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--efp-accent);
  text-decoration: none;
}
.single-product .entry-summary .efp-brand:hover { color: var(--efp-ink); }
.single-product .entry-summary .product_title {
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--efp-ink);
  margin-bottom: 12px;
}
.single-product .entry-summary .product_title::first-letter { text-transform: uppercase; }
.single-product .entry-summary > .price,
.single-product .entry-summary .price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 24px;
  font-weight: 600;
  color: var(--efp-ink);
}
.single-product .entry-summary .price del { font-size: 17px; font-weight: 400; color: var(--efp-muted); }
.single-product .entry-summary .price ins { text-decoration: none; }
.efp-off {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--efp-hot);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  align-self: center;
}
.single-product .entry-summary .woocommerce-product-details__short-description {
  color: #4a433d;
  font-size: 15.5px;
  line-height: 1.6;
}

/* ---------- Signaux ---------- */
.efp-signals {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.efp-signal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--efp-cream);
  color: var(--efp-ink);
  font-size: 13.5px;
  line-height: 1.2;
}
.efp-signal .efp-ico { color: var(--efp-accent); flex: none; }
.efp-signal.is-hot { background: #f8ebe6; color: var(--efp-hot); }
.efp-signal.is-hot .efp-ico { color: var(--efp-hot); animation: efp-pulse 1.8s ease-in-out infinite; }
@keyframes efp-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* ---------- Bouton panier ---------- */
.single-product .entry-summary form.cart .single_add_to_cart_button {
  border-radius: 999px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  transition: transform .15s, box-shadow .2s;
}
.single-product .entry-summary form.cart .single_add_to_cart_button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgba(35, 31, 27, .55);
}

/* ---------- Livraison ---------- */
.efp-delivery {
  margin: 22px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--efp-line);
  border-radius: 10px;
  background: #fff;
}
.efp-delivery__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 2px 0 12px;
}
.efp-delivery__row + .efp-delivery__row { padding-top: 12px; border-top: 1px solid var(--efp-line); }
.efp-delivery__row[hidden] { display: none; }
.efp-delivery__row .efp-ico { flex: none; margin-top: 1px; color: var(--efp-accent); }
.efp-delivery p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--efp-ink); }
.efp-delivery strong { font-weight: 600; }
.efp-delivery__ship strong:first-child { color: var(--efp-ok); }
.efp-country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--efp-muted);
}
.efp-delivery .efp-country select,
.single-product .efp-delivery .efp-country select {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: auto !important;
  min-width: 0 !important;
  height: 30px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 30px 0 13px !important;
  border: 1px solid var(--efp-line) !important;
  border-radius: 999px !important;
  outline: none !important;
  box-shadow: none !important;
  background: var(--efp-cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23231f1b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 28px !important;
  color: var(--efp-ink) !important;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.efp-delivery .efp-country select:hover { border-color: #d9cfc4 !important; background-color: #f2ece4 !important; }
.efp-delivery .efp-country select:focus-visible { border-color: var(--efp-ink) !important; box-shadow: 0 0 0 3px rgba(35, 31, 27, .1) !important; }
.efp-free {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--efp-cream);
}
.efp-free[hidden] { display: none; }
.efp-free p { font-size: 13.5px; margin-bottom: 8px; }
.efp-free__bar { display: block; height: 4px; border-radius: 4px; background: var(--efp-line); overflow: hidden; }
.efp-free__bar span { display: block; height: 100%; width: 0; background: var(--efp-accent); border-radius: inherit; transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.efp-free.is-done .efp-free__bar span { background: var(--efp-ok); }

/* ---------- Réassurance ---------- */
.efp-trust {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}
.efp-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: var(--efp-muted);
}
.efp-trust .efp-ico { flex: none; color: var(--efp-ink); }

/* ---------- Onglets ---------- */
.efp-tab { max-width: 780px; }
.efp-tab p { margin: 0 0 14px; }
.efp-rates { width: 100%; margin: 6px 0 18px; border-collapse: collapse; font-size: 14px; }
.efp-rates th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--efp-muted); font-weight: 600; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--efp-line); }
.efp-rates td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--efp-line); }
.efp-advice {
  padding: 26px 28px;
  border-radius: 10px;
  background: var(--efp-sand);
}
.efp-advice__title { font-size: 20px; color: var(--efp-ink); }
.efp-btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--efp-ink);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none !important;
}

@media (max-width: 689px) {
  .efp-trust { grid-template-columns: 1fr; }
  .efp-delivery { padding: 16px; }
  .efp-rates th:nth-child(2), .efp-rates td:nth-child(2) { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .efp-signal.is-hot .efp-ico { animation: none; }
}

/* Description courte repliée pour garder le bouton panier visible. */
.single-product .entry-summary .woocommerce-product-details__short-description.efp-clamp {
  position: relative;
  max-height: 7.2em;
  overflow: hidden;
  transition: max-height .4s ease;
}
.single-product .entry-summary .woocommerce-product-details__short-description.efp-clamp::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3em;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}
.single-product .entry-summary .woocommerce-product-details__short-description.efp-clamp.is-open { max-height: none; }
.single-product .entry-summary .woocommerce-product-details__short-description.efp-clamp.is-open::after { display: none; }
.single-product .entry-summary .woocommerce-product-details__short-description p:first-child { margin-top: 0; }
.efp-more {
  display: inline-block;
  margin: 6px 0 4px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--efp-ink);
  background: none;
  color: var(--efp-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
}
.single-product .entry-summary .stock.in-stock { display: none; }

/* ---------- Barre d'achat collante ---------- */
.efp-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9980;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-top: 1px solid var(--efp-line);
  box-shadow: 0 -18px 40px -24px rgba(35, 31, 27, .35);
  transform: translateY(105%);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.efp-sticky.is-on { transform: none; }
.efp-sticky__inner {
  max-width: 1290px;
  margin: 0 auto;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.efp-sticky__img img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; background: var(--efp-cream); display: block; }
.efp-sticky__info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.efp-sticky__brand { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--efp-accent); }
.efp-sticky__name { font-size: 15px; color: var(--efp-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.efp-sticky__name::first-letter { text-transform: uppercase; }
.efp-sticky__ship { font-size: 13px; color: var(--efp-ok); white-space: nowrap; }
.efp-sticky__price { font-size: 17px; font-weight: 600; color: var(--efp-ink); white-space: nowrap; }
.efp-sticky__price del { font-size: 13px; font-weight: 400; color: var(--efp-muted); margin-right: 4px; }
.efp-sticky__price ins { text-decoration: none; }
.efp-sticky__price .efp-off { display: none; }
.efp-sticky__btn {
  flex: none;
  height: 46px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--efp-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.efp-sticky__btn:hover { background: #000; }
@media (max-width: 999px) {
  .efp-sticky__inner { padding: 10px 16px; gap: 12px; }
  .efp-sticky__ship, .efp-sticky__brand { display: none; }
  .efp-sticky__name { font-size: 13.5px; }
  .efp-sticky__price { font-size: 15px; }
  .efp-sticky__btn { padding: 0 18px; height: 42px; font-size: 12px; }
}
@media (max-width: 420px) {
  .efp-sticky__img { display: none; }
}
