/* ============================================
   B.EASE — Fiche produit (sans Elementor)
   Design system : rouge #E8192C, navy #0D1B2A
   Version 1.0 — Mai 2026
   ============================================ */

:root {
  --bease-red: #E8192C;
  --bease-red-d: #C41020;
  --bease-navy: #0D1B2A;
  --bease-text: #111;
  --bease-muted: #6B7280;
  --bease-subtle: #9CA3AF;
  --bease-border: #E5E7EB;
  --bease-bg: #F9F9F7;
  --bease-white: #fff;
  --bease-green: #16A34A;
  --bease-r: 8px;
  --bease-rs: 5px;
}

/* TRUST BAR */
.bease-trust-bar {
  background: var(--bease-navy);
  color: rgba(255,255,255,.75);
  text-align: center;
  font-size: 12px;
  padding: 8px 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.bease-trust-bar span { margin: 0 12px; }
.bease-trust-bar strong { color: #fff; }

/* PAGE WRAPPER */
.bease-product-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
}

/* HERO GRID */
.bease-hero {
  display: grid;
  grid-template-columns: 58% 1fr;
  gap: 3rem;
  align-items: start;
}

/* GALLERY */
.bease-gallery { position: sticky; top: 20px; }

.bease-main-img {
  background: var(--bease-bg);
  border-radius: 12px;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.bease-main-img .woocommerce-product-gallery__image {
  width: 100%;
  height: 100%;
}
.bease-main-img .woocommerce-product-gallery__image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center top;
}

/* Badge bestseller */
.bease-img-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--bease-navy);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  z-index: 2;
}

/* Thumbnails */
.bease-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 10px;
}
.bease-thumbs .flex-control-thumbs {
  display: contents;
}
.bease-thumbs .flex-control-thumbs li {
  list-style: none;
}
.bease-thumbs .flex-control-thumbs li img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--bease-rs);
  border: 1.5px solid var(--bease-border);
  cursor: pointer;
  transition: border-color .15s;
}
.bease-thumbs .flex-control-thumbs li.flex-active img,
.bease-thumbs .flex-control-thumbs li img:hover {
  border-color: var(--bease-navy);
}

/* PRODUCT SUMMARY */
.bease-summary {}

/* Rating */
.bease-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.bease-stars { color: #F59E0B; font-size: 14px; }
.bease-rating-link {
  font-size: 13px;
  color: var(--bease-muted);
  text-decoration: underline;
  cursor: pointer;
}
.bease-sales-proof { font-size: 12px; color: var(--bease-subtle); }

/* Titre */
.bease-product-title {
  font-size: 36px !important;
  letter-spacing: .5px !important;
  line-height: 1.05 !important;
  color: var(--bease-navy) !important;
  margin-bottom: 4px !important;
  text-transform: none !important;
  font-family: 'Bebas Neue', sans-serif !important;
}
.bease-product-sub {
  font-size: 13px;
  color: var(--bease-muted);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bease-border);
}

/* Prix */
.bease-price-wrap .price {
  font-size: 30px !important;
  font-weight: 700 !important;
  color: var(--bease-navy) !important;
}
.bease-price-note {
  font-size: 13px;
  color: var(--bease-subtle);
  margin-bottom: 1rem;
  margin-top: 2px;
}

/* Sélecteurs variations */
.bease-variations .variations {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-bottom: 1rem;
}
.bease-variations .variations tr {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bease-variations .variations td.label {
  display: block;
  padding: 0;
}
.bease-variations .variations td.label label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--bease-text) !important;
  text-transform: none !important;
  letter-spacing: .3px;
}
.bease-variations .variations td.value {
  display: block;
  padding: 0;
}
/* Swatches taille */
.bease-variations select {
  display: none; /* masqué, remplacé par les boutons via JS ou plugin */
}

/* Stock */
.bease-stock-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--bease-muted);
  margin-bottom: 1rem;
}
.bease-stock-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
}

/* ══ CTA — SEUL élément rouge de la page ══ */
.bease-cta-wrap { margin-bottom: 10px; }
.bease-cta-wrap .single_add_to_cart_button,
.bease-cta-primary {
  width: 100% !important;
  padding: 18px 24px !important;
  background: var(--bease-red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--bease-r) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  cursor: pointer;
  font-family: inherit !important;
  transition: background .15s, transform .1s, box-shadow .15s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  letter-spacing: .2px;
  box-shadow: 0 4px 14px rgba(232,25,44,.35) !important;
  text-transform: none !important;
}
.bease-cta-wrap .single_add_to_cart_button:hover,
.bease-cta-primary:hover {
  background: var(--bease-red-d) !important;
  box-shadow: 0 6px 20px rgba(232,25,44,.45) !important;
  transform: translateY(-1px);
}
.bease-cta-sub {
  text-align: center;
  font-size: 12px;
  color: var(--bease-subtle);
  margin-bottom: 1rem;
}

/* Trust list */
.bease-trust-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 1rem;
}
.bease-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--bease-muted);
}
.bease-trust-check {
  color: var(--bease-green);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

/* Cashback & livraison */
.bease-meta-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bease-border);
  font-size: 13px;
  color: var(--bease-muted);
}
.bease-meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── ANCHOR NAV ── */
.bease-anchor-nav {
  border-top: 1px solid var(--bease-border);
  border-bottom: 1px solid var(--bease-border);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 2.5rem -1.5rem 0;
  padding: 0 1.5rem;
  background: var(--bease-white);
  position: sticky;
  top: 0;
  z-index: 40;
}
.bease-anchor-nav::-webkit-scrollbar { display: none; }
.bease-anchor-nav a {
  padding: 13px 18px;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--bease-muted);
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  text-decoration: none;
  display: block;
}
.bease-anchor-nav a:hover { color: var(--bease-text); }
.bease-anchor-nav a.active { color: var(--bease-navy); border-bottom-color: var(--bease-navy); font-weight: 600; }

/* ── SECTIONS ── */
.bease-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--bease-border);
}
.bease-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: .5px;
  color: var(--bease-navy);
  margin-bottom: 1.2rem;
}

/* Features grid */
.bease-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--bease-border);
  border: 1px solid var(--bease-border);
  border-radius: var(--bease-r);
  overflow: hidden;
}
.bease-feature-card {
  background: var(--bease-white);
  padding: 1.2rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.bease-feature-icon { font-size: 20px; flex-shrink: 0; }
.bease-feature-card h3 { font-size: 14px; font-weight: 600; color: var(--bease-navy); margin-bottom: 3px; }
.bease-feature-card p { font-size: 13px; color: var(--bease-muted); line-height: 1.5; }

/* Description */
.bease-description-body { font-size: 14px; color: var(--bease-text); line-height: 1.8; margin-bottom: 1.2rem; }
.bease-description-body p { margin-bottom: .8rem; }
.bease-spec-table { width: 100%; border-collapse: collapse; font-size: 13px; border: 1px solid var(--bease-border); border-radius: var(--bease-r); overflow: hidden; }
.bease-spec-table tr { border-bottom: 1px solid var(--bease-border); }
.bease-spec-table tr:last-child { border-bottom: none; }
.bease-spec-table td { padding: 9px 14px; vertical-align: top; }
.bease-spec-table td:first-child { font-weight: 600; color: var(--bease-text); width: 35%; background: var(--bease-bg); }

/* Réalisations */
.bease-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: .8rem;
}
.bease-photo-card {
  border-radius: var(--bease-r);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--bease-border);
  background: var(--bease-bg);
}
.bease-photo-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}
.bease-photo-card.big { grid-row: span 2; }
.bease-photo-card.big img { aspect-ratio: 4/9; }
.bease-photo-overlay {
  position: absolute; inset: 0;
  background: rgba(13,27,42,.7);
  display: flex; align-items: flex-end;
  padding: 12px; opacity: 0;
  transition: opacity .2s;
}
.bease-photo-card:hover .bease-photo-overlay { opacity: 1; }
.bease-photo-meta { color: #fff; font-size: 11px; line-height: 1.4; }
.bease-photo-meta b { display: block; font-size: 13px; }
.bease-ugc-cta { font-size: 13px; color: var(--bease-muted); text-align: center; padding: .8rem; }
.bease-ugc-cta a { color: var(--bease-navy); font-weight: 600; text-decoration: underline; }

/* Avis */
.bease-reviews-header { display: flex; gap: 2rem; align-items: center; margin-bottom: 1.2rem; flex-wrap: wrap; }
.bease-big-rating { text-align: center; }
.bease-big-rating .score { font-size: 44px; font-weight: 700; color: var(--bease-navy); line-height: 1; }
.bease-big-rating .stars { font-size: 16px; color: #F59E0B; }
.bease-big-rating small { font-size: 12px; color: var(--bease-subtle); }
.bease-rating-bars { flex: 1; min-width: 150px; }
.bease-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 12px; color: var(--bease-subtle); }
.bease-bar-bg { flex: 1; height: 6px; background: var(--bease-bg); border-radius: 3px; overflow: hidden; border: 1px solid var(--bease-border); }
.bease-bar-fill { height: 100%; background: #F59E0B; border-radius: 3px; }
.bease-bar-count { min-width: 22px; text-align: right; font-weight: 500; color: var(--bease-text); font-size: 12px; }

/* FAQ */
.bease-faq-item { border-bottom: 1px solid var(--bease-border); }
.bease-faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: .9rem 0; font-size: 14px; font-weight: 500; color: var(--bease-text);
  cursor: pointer; font-family: inherit;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  transition: color .15s;
}
.bease-faq-q:hover { color: var(--bease-navy); }
.bease-faq-arrow { color: var(--bease-subtle); transition: transform .2s; flex-shrink: 0; font-size: 16px; }
.bease-faq-a { padding: 0 0 .9rem; font-size: 13px; color: var(--bease-muted); line-height: 1.6; display: none; }
.bease-faq-item.open .bease-faq-a { display: block; }
.bease-faq-item.open .bease-faq-q { color: var(--bease-navy); }
.bease-faq-item.open .bease-faq-arrow { transform: rotate(45deg); color: var(--bease-navy); }

/* Upsell */
.bease-upsell-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bease-upsell-card {
  background: var(--bease-bg); border-radius: var(--bease-r);
  border: 1px solid var(--bease-border); padding: .9rem;
  cursor: pointer; transition: border-color .15s;
}
.bease-upsell-card:hover { border-color: var(--bease-navy); }
.bease-upsell-img {
  background: var(--bease-white); border-radius: var(--bease-rs);
  height: 100px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; border: 1px solid var(--bease-border);
}
.bease-upsell-img img { max-height: 90px; object-fit: contain; }
.bease-upsell-name { font-size: 13px; font-weight: 500; color: var(--bease-text); margin-bottom: 3px; }
.bease-upsell-price { font-size: 14px; font-weight: 700; color: var(--bease-navy); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .bease-hero { grid-template-columns: 1fr; gap: 0; }
  .bease-gallery { position: static; }
  .bease-main-img { border-radius: 0; min-height: 360px; }
  .bease-main-img .woocommerce-product-gallery__image img { height: 360px; }
  .bease-thumbs { padding: 0 1rem; }
  .bease-summary { padding: 1rem; }
  .bease-product-title { font-size: 28px !important; }
  .bease-product-page { padding: 0 0 100px; }
  .bease-anchor-nav { margin: 1.5rem 0 0; padding: 0 1rem; position: sticky; top: 0; }
  .bease-section { padding: 1.5rem 1rem; }
  .bease-features-grid { grid-template-columns: 1fr; }
  .bease-photos-grid { grid-template-columns: 1fr 1fr; }
  .bease-upsell-grid { grid-template-columns: 1fr 1fr; }
  .bease-reviews-header { flex-direction: column; align-items: flex-start; }

  /* CTA sticky mobile */
  .bease-cta-sticky-mobile {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bease-white);
    border-top: 1px solid var(--bease-border);
    padding: 12px 16px 20px;
    z-index: 100;
    display: block;
  }
  .bease-cta-sticky-mobile .single_add_to_cart_button {
    width: 100% !important;
    padding: 16px !important;
    font-size: 17px !important;
    box-shadow: 0 4px 16px rgba(232,25,44,.4) !important;
  }
  .bease-cta-wrap { display: none; } /* masqué sur mobile, remplacé par le sticky */
  .bease-trust-bar { display: none; } /* trust bar en header mobile inutile */
}

@media (min-width: 769px) {
  .bease-cta-sticky-mobile { display: none; }
}
