/* ZeGreen — Smart Description for Pieces / Screens / Batteries
   Loaded only on shop 2 (ZeGreen) */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

.zg-desc{
  --zg-green:#18A957;
  --zg-green-dark:#0e7837;
  --zg-green-light:#e8f7ef;
  --zg-coral:#FF6852;
  --zg-orange:#FFB546;
  --zg-dark:#0f1d2c;
  --zg-700:#374151;
  --zg-500:#6b7280;
  --zg-200:#e5e7eb;
  --zg-100:#f3f4f6;
  --zg-50:#f9fafb;
  --zg-r:14px;
  --zg-rs:8px;
  --zg-shadow:0 4px 16px rgba(15,29,44,.06),0 1px 3px rgba(15,29,44,.04);
  --zg-shadow-lg:0 12px 32px rgba(15,29,44,.10),0 2px 8px rgba(15,29,44,.06);
  font-family:'Inter',sans-serif;
  color:var(--zg-700);
  line-height:1.55;
  margin:30px 0;
}
.zg-desc *{box-sizing:border-box}
.zg-desc h1,.zg-desc h2,.zg-desc h3,.zg-desc h4,.zg-desc h5{font-family:'Outfit',sans-serif;color:var(--zg-dark);letter-spacing:-.01em;line-height:1.2;margin:0}

/* HERO */
.zg-hero{background:linear-gradient(135deg,#0f1d2c 0%,#1a2940 100%);color:#fff;border-radius:var(--zg-r);padding:50px 40px;position:relative;overflow:hidden;margin-bottom:32px;text-align:center}
.zg-hero::before{content:'';position:absolute;top:-30%;left:-10%;width:50%;height:200%;background:radial-gradient(circle,rgba(24,169,87,.25),transparent 60%);pointer-events:none}
.zg-hero::after{content:'';position:absolute;top:-50%;right:-15%;width:50%;height:200%;background:radial-gradient(circle,rgba(24,169,87,.18),transparent 60%);pointer-events:none}
.zg-hero-inner{position:relative;z-index:2;max-width:780px;margin:0 auto}
.zg-hero .zg-badge{display:inline-block;background:var(--zg-green);color:#fff;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;padding:5px 14px;border-radius:20px;margin-bottom:18px}
.zg-hero h2{color:#fff;font-size:36px;font-weight:800;margin-bottom:14px;line-height:1.1}
.zg-hero p.zg-subtitle{color:rgba(255,255,255,.78);font-size:15.5px;margin:0 auto 22px;max-width:600px}
.zg-tags{display:flex;flex-wrap:wrap;gap:9px;justify-content:center}
.zg-tags .zg-tag{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);color:#fff;padding:7px 15px;border-radius:20px;font-size:12.5px;font-weight:500;backdrop-filter:blur(8px)}

/* Specs grid */
.zg-specs{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:32px}
.zg-spec{background:#fff;border-radius:var(--zg-r);padding:22px;box-shadow:var(--zg-shadow);transition:transform .25s,box-shadow .25s;border-top:4px solid var(--zg-green)}
.zg-spec:hover{transform:translateY(-3px);box-shadow:var(--zg-shadow-lg)}
.zg-spec .zg-ic{width:48px;height:48px;background:var(--zg-green-light);border-radius:12px;display:grid;place-items:center;color:var(--zg-green);font-size:22px;margin-bottom:12px}
.zg-spec h3{font-size:14px;color:var(--zg-green);text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px;font-weight:700}
.zg-spec ul{list-style:none;padding:0;margin:0}
.zg-spec li{padding:6px 0;font-size:13.5px;color:var(--zg-700);display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--zg-100)}
.zg-spec li:last-child{border:0}
.zg-spec li strong{color:var(--zg-dark);font-weight:600;text-align:right}

/* Section title */
.zg-st{text-align:center;margin:36px 0 22px}
.zg-st .zg-eyebrow{display:inline-block;background:var(--zg-green-light);color:var(--zg-green);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;padding:5px 14px;border-radius:20px;margin-bottom:10px}
.zg-st h3{font-size:28px;font-weight:800;margin-bottom:6px;color:var(--zg-dark)}
.zg-st p{color:var(--zg-500);font-size:14.5px;margin:0}

/* Compat / how-to */
.zg-compat{display:grid;grid-template-columns:1fr 1.4fr;gap:30px;align-items:center;background:#fff;border-radius:var(--zg-r);padding:30px;box-shadow:var(--zg-shadow);margin-bottom:32px}
.zg-compat .zg-img-wrap{background:linear-gradient(135deg,var(--zg-green-light),#fff);border-radius:var(--zg-r);padding:18px;text-align:center;display:grid;place-items:center;min-height:240px}
.zg-compat h4{font-size:21px;margin-bottom:12px;color:var(--zg-dark)}
.zg-compat ol{padding:0;list-style:none;counter-reset:steps;margin:0}
.zg-compat ol li{counter-increment:steps;padding:10px 0 10px 44px;position:relative;font-size:14.5px;color:var(--zg-700)}
.zg-compat ol li::before{content:counter(steps);position:absolute;left:0;top:8px;width:30px;height:30px;background:var(--zg-green);color:#fff;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:13px;font-family:'Outfit'}

/* Phone mockup */
.zg-phone{width:170px;height:230px;background:#0f1d2c;border:6px solid #0f1d2c;border-radius:24px;margin:0 auto;padding:8px 6px;box-shadow:0 12px 28px rgba(0,0,0,.25);position:relative}
.zg-phone::before{content:'';position:absolute;top:6px;left:50%;transform:translateX(-50%);width:60px;height:14px;background:#0f1d2c;border-radius:0 0 12px 12px;z-index:2}
.zg-phone-screen{background:#fff;border-radius:18px;height:100%;padding:22px 14px 14px;display:flex;flex-direction:column;gap:6px}
.zg-phone-status{font-family:'Outfit';font-weight:700;font-size:12.5px;text-align:center;color:var(--zg-dark);margin-bottom:8px}
.zg-phone-row{display:flex;justify-content:space-between;font-size:11px;padding:7px 0;border-bottom:1px solid var(--zg-100)}
.zg-phone-row:last-child{border:0}
.zg-phone-row .lbl{color:var(--zg-500)}
.zg-phone-row .val{color:var(--zg-green);font-weight:700}

/* Steps tutoriel */
.zg-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:32px}
.zg-step{background:#fff;border-radius:var(--zg-r);padding:22px;text-align:center;box-shadow:var(--zg-shadow);position:relative}
.zg-step .zg-num{position:absolute;top:-14px;left:50%;transform:translateX(-50%);background:var(--zg-green);color:#fff;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-family:'Outfit';box-shadow:0 4px 10px rgba(24,169,87,.4);font-size:14px}
.zg-step .zg-ic{font-size:42px;color:var(--zg-green);margin:14px 0 10px;line-height:1}
.zg-step h4{font-size:15.5px;margin-bottom:8px;color:var(--zg-dark)}
.zg-step p{font-size:13px;color:var(--zg-500);line-height:1.5;margin:0}

/* Tip */
.zg-tip{background:linear-gradient(90deg,#fff8e6 0%,#fffefa 100%);border-left:4px solid var(--zg-orange);border-radius:var(--zg-r);padding:18px 22px;margin-bottom:32px;display:flex;gap:14px;align-items:flex-start}
.zg-tip .zg-ic{font-size:26px;color:var(--zg-orange);flex-shrink:0;line-height:1}
.zg-tip h4{font-size:15.5px;margin-bottom:5px;color:var(--zg-dark)}
.zg-tip p{font-size:13.5px;color:var(--zg-700);margin:0}

/* Trust */
.zg-trust{background:#fff;border-radius:var(--zg-r);padding:28px;box-shadow:var(--zg-shadow);margin-bottom:32px}
.zg-trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.zg-trust-item{text-align:center}
.zg-trust-item .zg-ic{width:54px;height:54px;background:var(--zg-green-light);color:var(--zg-green);border-radius:50%;display:grid;place-items:center;font-size:24px;margin:0 auto 10px}
.zg-trust-item h4{font-size:14px;margin-bottom:4px;font-weight:700;color:var(--zg-dark)}
.zg-trust-item p{font-size:12px;color:var(--zg-500);line-height:1.45;margin:0}

/* Gallery */
.zg-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-bottom:32px}
.zg-gal-item{position:relative;background:#fff;border:1px solid var(--zg-100);border-radius:var(--zg-r);overflow:hidden;box-shadow:var(--zg-shadow);padding:28px;display:grid;place-items:center;min-height:300px;transition:transform .3s,box-shadow .3s,border-color .3s}
.zg-gal-item::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at center,var(--zg-green-light) 0%,transparent 65%);opacity:.55;pointer-events:none}
.zg-gal-item:hover{transform:translateY(-3px);box-shadow:var(--zg-shadow-lg);border-color:var(--zg-green)}
.zg-gal-item img{position:relative;max-width:100%;max-height:260px;object-fit:contain;mix-blend-mode:multiply}

/* FAQ */
.zg-faq{background:#fff;border-radius:var(--zg-r);padding:30px;box-shadow:var(--zg-shadow);margin-bottom:32px}
.zg-faq h3{font-size:22px;margin-bottom:14px;color:var(--zg-dark)}
.zg-faq-item{border-bottom:1px solid var(--zg-100);padding:16px 0}
.zg-faq-item:last-child{border:0;padding-bottom:0}
.zg-faq-q{font-family:'Outfit';font-weight:700;font-size:15.5px;color:var(--zg-dark);margin-bottom:8px;display:flex;align-items:flex-start;gap:10px}
.zg-faq-q::before{content:'?';width:22px;height:22px;background:var(--zg-green);color:#fff;border-radius:50%;display:grid;place-items:center;font-size:13px;flex-shrink:0;font-weight:700}
.zg-faq-item p{font-size:14px;color:var(--zg-700);padding-left:32px;margin:0}

/* Compare */
.zg-compare{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:14px;padding-left:32px}
.zg-cmp-card{padding:18px;border-radius:var(--zg-rs);border:2px solid var(--zg-200);position:relative}
.zg-cmp-card.zg-current{border-color:var(--zg-green);background:var(--zg-green-light)}
.zg-cmp-card h5{font-size:17px;font-weight:800;margin-bottom:8px;color:var(--zg-dark)}
.zg-cmp-card.zg-current h5{color:var(--zg-green-dark)}
.zg-cmp-card ul{list-style:none;padding:0;margin:0}
.zg-cmp-card li{font-size:13px;padding:4px 0 4px 20px;position:relative;color:var(--zg-700)}
.zg-cmp-card li::before{content:'✓';position:absolute;left:0;color:var(--zg-green);font-weight:700}
.zg-cmp-badge{position:absolute;top:-10px;right:12px;background:var(--zg-green);color:#fff;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;padding:3px 10px;border-radius:20px;box-shadow:0 4px 10px rgba(24,169,87,.35)}

/* Features table dans smart-description */
.zg-features-wrap{
  background:#fff;
  border-radius:var(--zg-r);
  box-shadow:var(--zg-shadow);
  overflow:hidden;
  margin-bottom:32px;
}
.zg-features-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:14px;
  margin:0;
}
.zg-features-table th,
.zg-features-table td{
  padding:12px 18px;
  text-align:left;
  border-bottom:1px solid var(--zg-100);
  vertical-align:middle;
}
.zg-features-table tr:last-child th,
.zg-features-table tr:last-child td{border-bottom:none}
.zg-features-table th{
  font-family:'Outfit',sans-serif;
  font-weight:600;
  color:var(--zg-500);
  font-size:12.5px;
  text-transform:uppercase;
  letter-spacing:.05em;
  width:42%;
  background:var(--zg-50);
}
.zg-features-table td{
  color:var(--zg-dark);
  font-weight:600;
  text-align:right;
}
.zg-features-table tr:hover th,
.zg-features-table tr:hover td{background:var(--zg-green-light)}

/* Mobile */
@media(max-width:768px){
  .zg-hero{padding:32px 22px}
  .zg-hero h2{font-size:24px}
  .zg-specs,.zg-steps,.zg-trust-grid{grid-template-columns:1fr}
  .zg-compat{grid-template-columns:1fr;padding:22px}
  .zg-gallery{grid-template-columns:1fr;gap:12px}
  .zg-gal-item{min-height:240px;padding:20px}
  .zg-gal-item img{max-height:200px}
  .zg-st h3{font-size:20px}
  .zg-compare{grid-template-columns:1fr;padding-left:0}
}

/* =============================================
   PRODUCT PAGE TOP — CE Widgets restyled (Shop 2)
   ============================================= */

/* === Page general font === */
body.page-product{
  font-family:'Inter',-apple-system,sans-serif;
  --pz-green:#18A957;
  --pz-green-dark:#0e7837;
  --pz-green-light:#e8f7ef;
  --pz-dark:#0f1d2c;
  --pz-700:#374151;
  --pz-500:#6b7280;
  --pz-200:#e5e7eb;
  --pz-100:#f3f4f6;
  --pz-50:#f9fafb;
}

/* === Breadcrumb === */
body.page-product .ce-breadcrumb{
  font-size:12.5px;
  color:var(--pz-500);
  margin-bottom:18px;
}
body.page-product .ce-breadcrumb ol{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  list-style:none;
  padding:0;
  margin:0;
}
body.page-product .ce-breadcrumb__item{
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--pz-500);
  font-weight:500;
}
body.page-product .ce-breadcrumb__item:not(:last-child)::after{
  content:'›';
  color:var(--pz-200);
  font-size:14px;
  margin-left:4px;
}
body.page-product .ce-breadcrumb__item a{
  color:var(--pz-500);
  text-decoration:none;
  transition:color .2s;
}
body.page-product .ce-breadcrumb__item a:hover{color:var(--pz-green)}
body.page-product .ce-breadcrumb__item:last-child{color:var(--pz-dark);font-weight:600}
body.page-product .ce-breadcrumb__item:last-child span{color:var(--pz-dark)}

/* === Product Name (Title) === */
body.page-product h1.ce-product-name,
body.page-product .ce-product-name.elementor-heading-title{
  font-family:'Outfit','Manrope',sans-serif !important;
  font-size:26px !important;
  font-weight:700 !important;
  line-height:1.25 !important;
  color:var(--pz-dark) !important;
  letter-spacing:-.01em !important;
  text-transform:lowercase !important;
  margin:0 0 14px 0 !important;
}
body.page-product h1.ce-product-name::first-letter{
  text-transform:uppercase;
}

/* === Product Meta (SKU) — HIDDEN === */
body.page-product .elementor-widget-product-meta,
body.page-product .ce-product-meta{
  display:none !important;
}

/* === Product info column — push everything right (away from photo) === */
body.page-product .elementor-element.ce-valign-center.elementor-col-50,
body.page-product section.elementor-element[data-id="50f5c4ee"] .elementor-element.elementor-col-50:nth-child(2) .elementor-element-populated{
  padding-left:24px !important;
}

/* === Product Price === */
body.page-product .elementor-widget-product-price,
body.page-product .elementor-widget-product-price > .elementor-widget-container{
  max-width:100%;
  overflow:visible;
  padding-left:8px;
}
body.page-product .ce-product-prices{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0 6px;
  max-width:100%;
  padding-left:0;
  overflow:visible;
}
body.page-product .ce-product-price{
  font-family:'Outfit',sans-serif !important;
  font-size:30px !important;
  font-weight:800 !important;
  color:var(--pz-dark) !important;
  line-height:1.1 !important;
  word-break:break-word;
  max-width:100%;
  white-space:nowrap;
}
body.page-product .ce-product-price > span{color:inherit}

/* Old/regular price (struck through) */
body.page-product .ce-product-price-regular{
  font-family:'Outfit',sans-serif !important;
  font-size:18px !important;
  font-weight:600 !important;
  color:#9ca3af !important;
  text-decoration:line-through !important;
  text-decoration-color:#9ca3af !important;
  text-decoration-thickness:2px !important;
  margin-right:4px;
}

/* Discounted price → ROUGE pour mise en valeur */
body.page-product .ce-product-price.ce-has-discount,
body.page-product .ce-product-price.ce-has-discount > span{
  color:#e11d48 !important;
}
body.page-product .ce-product-price.ce-has-discount{
  text-shadow:0 1px 0 rgba(225,29,72,.05);
}

/* "Économisez X€" badge auto */
body.page-product .ce-product-prices.ce-product-prices--has-discount::after,
body.page-product .ce-product-prices:has(.ce-has-discount)::after{
  content:'PROMO';
  display:inline-flex;
  align-items:center;
  background:#e11d48;
  color:#fff;
  font-family:'Outfit',sans-serif;
  font-size:11px;
  font-weight:800;
  padding:4px 10px;
  border-radius:20px;
  letter-spacing:.06em;
  box-shadow:0 4px 12px rgba(225,29,72,.3);
  align-self:center;
  text-transform:uppercase;
  animation:zgFadeIn .3s;
}

/* Add same left padding to title and other widgets in the right column */
body.page-product .elementor-widget-product-name > .elementor-widget-container,
body.page-product .elementor-widget-product-rating > .elementor-widget-container,
body.page-product .elementor-widget-product-add-to-cart > .elementor-widget-container,
body.page-product .elementor-widget-product-quantity > .elementor-widget-container,
body.page-product .elementor-widget-shortcode > .elementor-widget-container{
  padding-left:8px;
}
body.page-product .zg-supplement-wrap{padding-left:8px}
body.page-product .ce-tax-shipping-delivery-label{
  font-size:12px;
  color:var(--pz-500);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.05em;
}

/* Supplement badge inline — à côté du prix */
body.page-product .zg-supplement-badge{
  display:inline-block;
  background:var(--pz-green-light);
  color:var(--pz-green-dark);
  font-family:'Outfit',sans-serif;
  font-size:12px;
  font-weight:700;
  padding:5px 11px;
  border-radius:20px;
  border:1px solid rgba(24,169,87,.25);
  animation:zgFadeIn .25s;
  white-space:nowrap;
  align-self:center;
  vertical-align:middle;
}
@keyframes zgFadeIn{
  from{opacity:0;transform:translateY(-4px)}
  to{opacity:1;transform:translateY(0)}
}

/* Main price pulse animation when total changes */
body.page-product .ce-product-price.zg-price-pulse,
body.page-product .ce-product-price span.zg-price-pulse{
  animation:zgPricePulse .4s ease;
}
@keyframes zgPricePulse{
  0%{transform:scale(1);color:var(--pz-dark)}
  50%{transform:scale(1.06);color:var(--pz-green)}
  100%{transform:scale(1);color:var(--pz-dark)}
}

/* === Star Rating — HIDDEN (pas d'avis pour l'instant) === */
body.page-product .elementor-widget-product-rating,
body.page-product .ce-product-rating{
  display:none !important;
}

/* === Tabs : on garde uniquement "Présentation" === */
body.page-product .elementor-nav-tabs .elementor-nav .menu-item:not(:first-child){
  display:none !important;
}

/* === Product Features Table — caché UNIQUEMENT en haut de page (gardé dans la description) === */
body.page-product [data-elementor-type="product"] > .elementor-section-wrap .elementor-widget-product-features{
  display:none !important;
}

/* Style joli pour les features dans la description */
body.page-product [data-elementor-type="post"] .ce-product-features,
body.page-product .product-description .ce-product-features{
  width:100%;
  background:var(--pz-50);
  border-radius:10px;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  margin:18px 0;
  font-size:13.5px;
}
body.page-product [data-elementor-type="post"] .ce-product-features__row,
body.page-product .product-description .ce-product-features__row{
  border-bottom:1px solid var(--pz-100);
}
body.page-product [data-elementor-type="post"] .ce-product-features tr:last-child,
body.page-product .product-description .ce-product-features tr:last-child{
  border-bottom:none;
}
body.page-product [data-elementor-type="post"] .ce-product-features__label,
body.page-product .product-description .ce-product-features__label{
  font-family:'Outfit',sans-serif;
  font-weight:600;
  color:var(--pz-500);
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.04em;
  padding:11px 16px !important;
  text-align:left;
  width:42%;
  vertical-align:middle;
  background:transparent;
}
body.page-product [data-elementor-type="post"] .ce-product-features__value,
body.page-product .product-description .ce-product-features__value{
  color:var(--pz-dark);
  font-weight:600;
  padding:11px 16px !important;
  text-align:right;
  font-size:13.5px;
  vertical-align:middle;
}
body.page-product [data-elementor-type="post"] .ce-product-features__row:nth-child(even),
body.page-product .product-description .ce-product-features__row:nth-child(even){
  background:rgba(255,255,255,.6);
}
body.page-product [data-elementor-type="post"] .ce-product-features__row:hover,
body.page-product .product-description .ce-product-features__row:hover{
  background:var(--pz-green-light);
}

/* === Add to cart button === */
body.page-product .elementor-widget-product-add-to-cart .elementor-button,
body.page-product button[data-button-action="add-to-cart"],
body.page-product .ce-add-to-cart-btn{
  background:var(--pz-green) !important;
  border:none !important;
  border-radius:10px !important;
  padding:14px 28px !important;
  font-family:'Outfit',sans-serif !important;
  font-size:15px !important;
  font-weight:700 !important;
  color:#fff !important;
  letter-spacing:.01em !important;
  transition:background .2s,transform .2s,box-shadow .2s !important;
  box-shadow:0 4px 14px rgba(24,169,87,.3) !important;
}
body.page-product .elementor-widget-product-add-to-cart .elementor-button:hover,
body.page-product button[data-button-action="add-to-cart"]:hover{
  background:var(--pz-green-dark) !important;
  transform:translateY(-2px) !important;
  box-shadow:0 6px 20px rgba(24,169,87,.4) !important;
}

/* === Quantity selector === */
body.page-product .ce-product-quantity input,
body.page-product .product-quantity .form-control{
  border:1px solid var(--pz-200) !important;
  border-radius:8px !important;
  font-family:'Outfit',sans-serif !important;
  font-weight:600 !important;
  text-align:center !important;
}

/* === Upsell "Complétez votre achat" — version compacte === */
body.page-product h4{font-family:'Outfit',sans-serif}

/* Wrapper du bloc upsell — propre, pas de box, juste un peu d'air */
body.page-product #idxrimpulsepurchase-add-to-cart{
  margin-top:14px;
}
body.page-product .idxrimpulsepurchase-product-buttons{
  margin-top:0;
  padding:0;
  background:transparent;
  border:none;
}

/* Le widget shortcode parent n'a pas de marge superflue */
body.page-product .elementor-widget-shortcode > .elementor-widget-container{
  padding:0 !important;
}

/* H4 title "Complétez votre achat" */
body.page-product h4:has(+ .row.small-bloque),
body.page-product .col-md-6 > h4{
  font-family:'Outfit',sans-serif !important;
  font-size:13px !important;
  font-weight:700 !important;
  color:var(--pz-500) !important;
  text-transform:uppercase !important;
  letter-spacing:.06em !important;
  text-align:left !important;
  padding:0 !important;
  margin:0 0 12px !important;
  border-top:none !important;
  display:flex;
  align-items:center;
  gap:8px;
}
body.page-product h4:has(+ .row.small-bloque)::before,
body.page-product .col-md-6 > h4::before{
  content:'+';
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--pz-green);
  color:#fff;
  font-size:13px;
  font-weight:800;
  flex-shrink:0;
}

/* Upsell wrapper (contains all cards) — neutre, pas de vert */
body.page-product .row.small-bloque{
  background:transparent !important;
  border:none !important;
  padding:0 !important;
  margin:0 !important;
  display:flex !important;
  flex-wrap:wrap;
  gap:8px;
  box-shadow:none !important;
}

/* Each individual upsell CARD */
body.page-product .block-product-impulse{
  background:#fff;
  border:1px solid var(--pz-100);
  border-radius:10px;
  padding:10px;
  flex:1 1 calc(33.333% - 8px);
  min-width:0;
  max-width:calc(33.333% - 8px);
  transition:border-color .2s,background .2s,box-shadow .2s,transform .2s;
  position:relative;
  display:flex;
  flex-direction:column;
  gap:6px;
}
body.page-product .block-product-impulse:hover{
  border-color:var(--pz-green);
  box-shadow:0 4px 14px rgba(15,29,44,.06);
}

/* Selected card */
body.page-product .block-product-impulse:has(input:checked),
body.page-product .block-product-impulse.is-selected,
body.page-product .block-product-impulse.zg-selected{
  border-color:var(--pz-green) !important;
  background:var(--pz-green-light) !important;
  box-shadow:0 0 0 2px rgba(24,169,87,.20);
}

body.page-product .block-product-impulse .col-md-4,
body.page-product .block-product-impulse .col-md-8{
  padding:0 !important;
  flex:initial !important;
  width:100% !important;
  max-width:none !important;
}
body.page-product .block-product-impulse .imagen{
  width:100% !important;
  text-align:center;
}
body.page-product .block-product-impulse .imagen img{
  width:60px !important;
  height:60px !important;
  object-fit:contain;
  border-radius:6px;
  background:#fff;
  padding:4px;
  border:1px solid var(--pz-100);
}
body.page-product .block-product-impulse .texto{
  width:100%;
}
body.page-product .block-product-impulse .texto h5{
  font-family:'Outfit',sans-serif !important;
  font-size:12px !important;
  font-weight:600 !important;
  color:var(--pz-dark) !important;
  margin:0 0 4px 0 !important;
  line-height:1.3 !important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.page-product .block-product-impulse .texto h5 a{
  color:var(--pz-dark) !important;
  text-decoration:none !important;
}
body.page-product .block-product-impulse .texto h5 a:hover{color:var(--pz-green) !important}
body.page-product .block-product-impulse .precio,
body.page-product .block-product-impulse .price,
body.page-product .block-product-impulse .precio-producto{
  color:var(--pz-green) !important;
  font-weight:800 !important;
  font-family:'Outfit',sans-serif !important;
  font-size:13px !important;
  margin:0 !important;
  display:block;
}

/* Checkbox */
body.page-product .block-product-impulse .selector-compra input[type="checkbox"],
body.page-product .block-product-impulse input[type="checkbox"]{
  width:20px;
  height:20px;
  accent-color:var(--pz-green);
  cursor:pointer;
}
body.page-product .block-product-impulse .selector-compra{
  margin-top:auto;
}

/* Mobile: 1 column */
@media(max-width:768px){
  body.page-product .block-product-impulse{
    flex:1 1 100%;
    max-width:100%;
    flex-direction:row;
    align-items:center;
  }
  body.page-product .block-product-impulse .imagen{width:50px !important;flex-shrink:0}
  body.page-product .block-product-impulse .imagen img{width:50px !important;height:50px !important}
  body.page-product .block-product-impulse .texto{flex:1}
}

/* Final price impulse */
body.page-product #idxrimpulsepurchase-precio-producto,
body.page-product .price-impulse{
  background:var(--pz-green-light) !important;
  border:1px solid rgba(24,169,87,.25);
  border-radius:8px;
  padding:10px 14px !important;
  margin:12px 0 8px !important;
  text-align:center;
  font-family:'Outfit',sans-serif !important;
  font-size:14px !important;
  font-weight:700 !important;
  color:var(--pz-dark) !important;
  transition:transform .25s,box-shadow .25s,background .25s;
}
body.page-product #idxrimpulsepurchase-precio-producto.zg-pulse{
  animation:zgPulse .4s ease;
}
@keyframes zgPulse{
  0%{transform:scale(1);background:var(--pz-green-light)}
  50%{transform:scale(1.04);background:#d4f4e0;box-shadow:0 6px 20px rgba(24,169,87,.3)}
  100%{transform:scale(1);background:var(--pz-green-light)}
}

/* (cleanup — duplicate rule removed; selected state is now handled on .block-product-impulse only) */
body.page-product .price-impulse span{
  color:var(--pz-green-dark) !important;
  font-size:18px !important;
  font-weight:800 !important;
  margin-left:6px;
}

/* Upsell add-to-cart impulse button */
body.page-product .add-to-cart-idxrimpulsepurchase{
  background:var(--pz-green) !important;
  border:none !important;
  border-radius:10px !important;
  padding:12px 20px !important;
  font-family:'Outfit',sans-serif !important;
  font-weight:700 !important;
  color:#fff !important;
  font-size:14px !important;
  transition:background .2s,transform .2s,box-shadow .2s !important;
  width:100%;
  box-shadow:0 4px 14px rgba(24,169,87,.28) !important;
}
body.page-product .add-to-cart-idxrimpulsepurchase:hover{
  background:var(--pz-green-dark) !important;
  transform:translateY(-1px);
  box-shadow:0 6px 20px rgba(24,169,87,.4) !important;
}

/* === Product images zoom === */
body.page-product .elementor-widget-product-images img{
  border-radius:12px;
  background:var(--pz-50);
}
body.page-product .elementor-widget-product-images .elementor-main-swiper{
  background:var(--pz-50);
  border-radius:12px;
}

/* === Product share === */
body.page-product .elementor-widget-product-share .elementor-social-icon{
  background:var(--pz-50) !important;
  color:var(--pz-700) !important;
  transition:background .2s,color .2s !important;
}
body.page-product .elementor-widget-product-share .elementor-social-icon:hover{
  background:var(--pz-green) !important;
  color:#fff !important;
}

/* === Mobile === */
@media(max-width:768px){
  body.page-product h1.ce-product-name{
    font-size:22px !important;
  }
  body.page-product .ce-product-price{
    font-size:30px !important;
  }
  body.page-product .ce-breadcrumb{font-size:11.5px}

  /* Sticky add-to-cart bar on mobile */
  body.page-product::after{
    content:'';
    height:80px; /* spacer pour le sticky bar */
    display:block;
  }
  body.page-product .elementor-widget-product-add-to-cart{
    position:fixed !important;
    bottom:0;
    left:0;
    right:0;
    z-index:999;
    background:#fff;
    padding:12px 16px !important;
    box-shadow:0 -4px 20px rgba(15,29,44,.10);
    border-top:1px solid var(--pz-100);
    margin:0 !important;
  }
  body.page-product .elementor-widget-product-add-to-cart .elementor-button{
    width:100% !important;
    padding:14px !important;
    font-size:16px !important;
  }
}

/* =============================================
   ZG-OOS-ALERT — Formulaire "Avertir moi" rupture de stock
   ============================================= */
.zg-oos-alert{
  display:flex;
  gap:14px;
  align-items:flex-start;
  background:linear-gradient(135deg,#fff7ed 0%,#fef3c7 100%);
  border:1.5px solid #fcd34d;
  border-radius:14px;
  padding:18px 20px;
  margin:0 0 22px;
  box-shadow:0 2px 12px rgba(180,83,9,.08);
  font-family:'Inter','Helvetica Neue',sans-serif;
}
.zg-oos-alert__icon{
  flex-shrink:0;
  width:44px;height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border:1.5px solid #fcd34d;
  border-radius:50%;
  color:#d97706;
}
.zg-oos-alert__body{
  flex:1;
  min-width:0;
}
.zg-oos-alert__title{
  font-family:'Outfit',sans-serif;
  font-weight:700;
  font-size:15px;
  color:#0f1d2c;
  margin:0 0 4px;
}
.zg-oos-alert__sub{
  font-family:'Inter',sans-serif;
  font-size:13px;
  color:#6b7280;
  margin:0 0 12px;
  line-height:1.4;
}
.zg-oos-alert__form{
  display:flex;
  gap:8px;
  align-items:stretch;
  margin:0 0 8px;
  flex-wrap:wrap;
}
.zg-oos-alert__input{
  flex:1;
  min-width:200px;
  padding:10px 14px;
  border:1.5px solid #e5e7eb;
  border-radius:10px;
  background:#fff;
  font-family:'Inter',sans-serif;
  font-size:14px;
  color:#0f1d2c;
  outline:none;
  transition:all .15s;
}
.zg-oos-alert__input:focus{
  border-color:#18A957;
  box-shadow:0 0 0 3px rgba(24,169,87,.15);
}
.zg-oos-alert__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  background:linear-gradient(135deg,#18A957 0%,#22c16b 100%);
  color:#fff;
  font-family:'Outfit',sans-serif;
  font-weight:600;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.05em;
  padding:10px 20px;
  border:none;
  border-radius:10px;
  cursor:pointer;
  transition:all .2s;
  box-shadow:0 2px 8px rgba(24,169,87,.20);
  white-space:nowrap;
}
.zg-oos-alert__btn:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(24,169,87,.32);
}
.zg-oos-alert__success{
  display:flex;
  align-items:center;
  gap:8px;
  background:#dcfce7;
  border:1.5px solid #22c16b;
  color:#0e7837;
  font-family:'Outfit',sans-serif;
  font-weight:600;
  font-size:13.5px;
  padding:10px 14px;
  border-radius:10px;
  margin-bottom:8px;
}
.zg-oos-alert__legal{
  font-family:'Inter',sans-serif;
  font-size:11px;
  color:#92400e;
  font-style:italic;
  opacity:.85;
}
@media (max-width:991px){
  .zg-oos-alert{
    flex-direction:column;
    padding:16px;
  }
  .zg-oos-alert__form{
    flex-direction:column;
  }
  .zg-oos-alert__input,
  .zg-oos-alert__btn{
    width:100%;
  }
}

/* =============================================
   Quand produit OOS : on masque les contrôles d'achat
   ============================================= */
body.zg-oos .elementor-widget-product-add-to-cart,
body.zg-oos .elementor-widget-product-quantity,
body.zg-oos [data-widget_type="product-add-to-cart.default"],
body.zg-oos [data-widget_type="product-quantity.default"]{
  display:none !important;
}
/* Cas où le bouton est dans un wrapper inline avec quantité */
body.zg-oos .ce-product-add-to-cart,
body.zg-oos .ce-product-quantity,
body.zg-oos .product-add-to-cart{
  display:none !important;
}

/* =============================================
   Masquer "Au lieu de X €" sur les produits PACK
   Le client voit juste le prix simple, comme un produit standard.
   La logique pack reste active côté admin (stock, items).
   ============================================= */
body.page-product .ce-product-price-pack,
body.product-id-22973 .ce-product-price-pack,
body[id^="product-"] .ce-product-price-pack{
  display:none !important;
}
/* Sur les miniatures catégorie aussi (au cas où) */
body.page-category .ce-product-price-pack,
body[id^="category-"] .ce-product-price-pack{
  display:none !important;
}
