/* Boutique KONAD — Fiches produit premium V4.0
 * Thème enfant Fashion / PrestaShop 1.7.8.x
 * Ce fichier n'agit QUE sur la fiche produit. Aucun style de catalogue/accueil.
 * Les vrais formulaires PrestaShop et widgets d'avis sont conservés.
 */
body#product.kn4-ready {
  --kn4-cream: #fbf5ef;
  --kn4-cream-2: #f7ece6;
  --kn4-white: #fffdfb;
  --kn4-wine: #84263e;
  --kn4-wine-hover: #65182e;
  --kn4-ink: #482c28;
  --kn4-muted: #7f6b63;
  --kn4-stroke: #ecd9cc;
  --kn4-shadow: 0 14px 28px rgba(99,47,37,.075);
  background-color: var(--kn4-cream);
  color: var(--kn4-ink);
}
body#product.kn4-ready #main.kn4-main {
  max-width: 1350px;
  width: 100%;
  margin: auto;
  padding: 12px 24px 48px;
  color: var(--kn4-ink);
}
body#product.kn4-ready #main :is(.breadcrumb,nav.breadcrumb) {
  margin: 5px 0 24px;
  color: var(--kn4-muted);
  font-size: 12px;
}
body#product.kn4-ready #main .product-container,
body#product.kn4-ready #main .product-container .row {
  min-width: 0;
}
body#product.kn4-ready #main .product-container {
  margin-bottom: 21px;
}
body#product.kn4-ready #main .product-container [class*="col-"] { min-width: 0; }
/* Photos : conserver les zooms, miniatures et leurs événements natifs */
body#product.kn4-ready #main .images-container { background: transparent; }
body#product.kn4-ready #main :is(.product-cover, .images-container .product-cover) {
  overflow: hidden;
  border: 1px solid var(--kn4-stroke);
  border-radius: 17px;
  background: var(--kn4-white);
  box-shadow: var(--kn4-shadow);
}
body#product.kn4-ready #main .product-cover img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
body#product.kn4-ready #main .product-images img.thumb {
  border: 1px solid var(--kn4-stroke);
  border-radius: 10px;
  background: white;
}
body#product.kn4-ready #main .product-images img.thumb.selected,
body#product.kn4-ready #main .product-images img.thumb:hover { border-color: var(--kn4-wine); }
/* Achat */
body#product.kn4-ready #main .product-container :is(h1,.h1) {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(29px,3vw,42px);
  font-weight: 400;
  line-height: 1.17;
  letter-spacing: -.018em;
  text-transform: none;
  color: var(--kn4-ink);
  margin: 0 0 13px;
}
body#product.kn4-ready #main :is(.product-description-short,#product-description-short) {
  color: var(--kn4-ink);
  line-height: 1.56;
  font-size: 13.5px;
  margin: 8px 0 14px;
  max-width: 650px;
}
body#product.kn4-ready #main .product-container :is(.product-reference,.product-unit-price,.product-quantities,.tax-shipping-delivery-label) {
  font-size: 12px;
  color: var(--kn4-muted);
}
body#product.kn4-ready #main .product-prices { margin: 15px 0 21px; }
body#product.kn4-ready #main .product-container .current-price .price,
body#product.kn4-ready #main .product-prices .current-price > span:first-child {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(28px,2.7vw,37px);
  line-height: 1.2;
  color: var(--kn4-wine);
}
body#product.kn4-ready #main .product-container .product-actions { min-height: 0; }
body#product.kn4-ready #main .product-add-to-cart { margin: 8px 0 10px; }
body#product.kn4-ready #main .product-container :is(#quantity_wanted,.product-variants select) {
  min-height: 44px;
  border: 1px solid var(--kn4-stroke);
  border-radius: 11px;
  background: white;
  color: var(--kn4-ink);
}
body#product.kn4-ready #main .product-container :is(button.add-to-cart,button[data-button-action="add-to-cart"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 29px;
  background: var(--kn4-wine);
  border: 1px solid var(--kn4-wine);
  border-radius: 999px;
  color: white;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: 0 9px 18px rgba(132,38,62,.13);
}
body#product.kn4-ready #main .product-container :is(button.add-to-cart,button[data-button-action="add-to-cart"]):hover:not(:disabled) {
  background: var(--kn4-wine-hover);
  border-color: var(--kn4-wine-hover);
}
/* Réassurance et réseaux au niveau de l'achat, pas en bas de la page. */
body#product.kn4-ready #main .kn4-purchase-extras {
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 17px 0 16px;
}
body#product.kn4-ready #main .kn4-trust {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0;
  padding: 14px 0;
  border-top: 1px solid var(--kn4-stroke);
  border-bottom: 1px solid var(--kn4-stroke);
}
body#product.kn4-ready #main .kn4-trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 11px;
  border-right: 1px solid var(--kn4-stroke);
  min-width: 0;
}
body#product.kn4-ready #main .kn4-trust-item:first-child {padding-left: 0;}
body#product.kn4-ready #main .kn4-trust-item:last-child {padding-right: 0;border-right: 0;}
body#product.kn4-ready #main .kn4-trust-icon {color: var(--kn4-wine);display:inline-flex;align-items:center;justify-content:center;flex:0 0 27px;}
body#product.kn4-ready #main .kn4-trust-icon svg {width:26px;height:26px;}
body#product.kn4-ready #main .kn4-trust-item strong {
  display:block;font-size:11.5px;line-height:1.35;color:var(--kn4-ink);font-weight:700;
}
body#product.kn4-ready #main .kn4-trust-item small {
  display:block;margin-top:3px;font-size:10px;line-height:1.35;color:var(--kn4-muted);
}
body#product.kn4-ready #main .kn4-trust-item a {color:var(--kn4-wine);text-decoration:underline;text-underline-offset:2px;}
body#product.kn4-ready #main .kn4-social {margin-top:15px;}
body#product.kn4-ready #main .kn4-social-label {
  display:block;
  color:var(--kn4-muted);
  font-size:11px;
  letter-spacing:.07em;
  text-transform:uppercase;
  margin-bottom:9px;
}
body#product.kn4-ready #main .kn4-social-links {display:flex;gap:9px;flex-wrap:wrap;}
body#product.kn4-ready #main .kn4-social-links a {
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 13px;min-height:38px;
  background:var(--kn4-white);color:var(--kn4-wine);
  border:1px solid var(--kn4-stroke);border-radius:999px;
  font-size:12px;font-weight:700;text-decoration:none;
  transition:background .16s ease,color .16s ease;
}
body#product.kn4-ready #main .kn4-social-links a:hover,
body#product.kn4-ready #main .kn4-social-links a:focus-visible {
  background:var(--kn4-wine);color:white;border-color:var(--kn4-wine);
}
body#product.kn4-ready #main .kn4-social-links svg {width:17px;height:17px;display:block;}
/* Le thème affiche encore Facebook/X/Pinterest génériques : les remplacer. */
body#product.kn4-ready #main .social-sharing {display:none!important;}
/* Les trois garanties de l'ancien thème font doublon avec nos trois avantages. */
body#product.kn4-ready #main :is(.blockreassurance_product,#blockreassurance_product,.block-reassurance,.kp3-trust,.kp3-social) {display:none!important;}
/* PayPal : ne toucher ni au formulaire panier ni au checkout. 
   Enlever uniquement les éléments EXPRESS/4X de la fiche si identifiés explicitement par le script.
   PayPal reste disponible lors de la validation de commande. */
body#product.kn4-ready #main .kn4-hide-paypal-product {display:none!important;}
/* Si le module PayPal place sa promotion dans un conteneur séparé, éviter l'étalement. */
body#product.kn4-ready #main .product-container iframe[src*="paypal"] {max-width:100%;}
/* Blocs onglets : reproduire la carte de la maquette */
body#product.kn4-ready #main :is(.tabs,.product-tabs) {
  border:1px solid var(--kn4-stroke);
  border-radius:18px;
  background:rgba(255,253,251,.9);
  box-shadow:var(--kn4-shadow);
  clear:both;
  overflow:hidden;
  margin:25px 0 25px;
  padding:18px 22px 24px;
}
body#product.kn4-ready #main :is(.tabs,.product-tabs) .nav-tabs {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:7px;
  padding:0 0 15px;
  margin:0 0 17px;
  border-bottom:1px solid var(--kn4-stroke);
}
body#product.kn4-ready #main :is(.tabs,.product-tabs) .nav-tabs li {min-width:0;}
body#product.kn4-ready #main :is(.tabs,.product-tabs) .nav-tabs a {
  display:inline-flex;align-items:center;justify-content:center;
  min-height:40px;
  padding:9px 21px;
  border:1px solid transparent;
  border-radius:10px;
  background:#f5e9e2;
  color:var(--kn4-ink);
  text-decoration:none;
  font-weight:700;font-size:12.5px;text-transform:none;
}
body#product.kn4-ready #main :is(.tabs,.product-tabs) .nav-tabs :is(li.active a,a.active),
body#product.kn4-ready #main :is(.tabs,.product-tabs) .nav-tabs a[aria-selected="true"] {
  color:#fff;background:var(--kn4-wine);border-color:var(--kn4-wine);
}
body#product.kn4-ready #main :is(.tabs,.product-tabs) :is(p,li) {font-size:13px;line-height:1.65;color:var(--kn4-ink);}
body#product.kn4-ready #main .kn4-desc-overview {
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);
  gap:25px;
  padding:13px 14px 17px;
  background:linear-gradient(105deg,#fffdfb 0%,#fdf3ec 100%);
  border:1px solid var(--kn4-stroke);
  border-radius:13px;
  margin:0 0 17px;
}
body#product.kn4-ready #main .kn4-desc-overview h3 {
  font:italic 400 clamp(19px,2.3vw,25px)/1.25 Georgia,serif;
  color:var(--kn4-wine);
  margin:4px 0 10px;
}
body#product.kn4-ready #main .kn4-desc-overview p {
  margin:0 0 7px;
  color:var(--kn4-ink);
  font-size:13px;line-height:1.7;
}
body#product.kn4-ready #main .kn4-desc-perks {border-left:1px solid var(--kn4-stroke);padding:1px 0 1px 22px;}
body#product.kn4-ready #main .kn4-desc-perks strong {
  display:block;
  color:var(--kn4-ink);
  font-size:13px;
  margin:5px 0 10px;
}
body#product.kn4-ready #main .kn4-desc-perks ul {list-style:none;margin:0;padding:0;}
body#product.kn4-ready #main .kn4-desc-perks li {
  position:relative;
  padding-left:23px;
  margin:0 0 11px;
  font-size:12px;
  line-height:1.5;
}
body#product.kn4-ready #main .kn4-desc-perks li:before {
  content:'✓';position:absolute;left:0;top:0;color:var(--kn4-wine);font-weight:700;
}
body#product.kn4-ready #main .kn4-original-description.kn4-desc-collapsed {
  position:relative;
  overflow:hidden;
  max-height:0;
}
body#product.kn4-ready #main .kn4-details-more {
  padding:10px 19px;
  border:1px solid var(--kn4-stroke);
  border-radius:999px;
  background:var(--kn4-white);
  color:var(--kn4-wine);
  font-size:12px;font-weight:700;
  cursor:pointer;
  margin:0 0 1px;
}
body#product.kn4-ready #main .kn4-details-more:hover {border-color:var(--kn4-wine);}
/* Recommandations : le vrai module konadrecommendations4 conserve ses formulaires d'ajout au panier. */
body#product.kn4-ready #main #kn4-recommendations {margin:25px 0 27px;clear:both;}
body#product.kn4-ready #main #kn4-recommendations .products-section-title {
  text-align:center;
  margin:0 0 20px;
  font:italic normal clamp(24px,2.7vw,31px)/1.25 Georgia,serif;
  color:var(--kn4-wine);
  text-transform:none!important;
  letter-spacing:normal;
}
body#product.kn4-ready #main #kn4-recommendations .products-section-title .main-title {
  color:var(--kn4-wine);font:inherit;text-transform:none!important;
}
body#product.kn4-ready #main #kn4-recommendations #accessories-grid {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:15px;
  list-style:none;margin:0!important;padding:0!important;
  width:100%!important;height:auto!important;
  box-sizing:border-box;
}
body#product.kn4-ready #main #kn4-recommendations #accessories-grid > li.product_item {
  display:flex!important; flex-direction:column;
  float:none!important;position:relative;
  flex:none!important;
  min-width:0!important; width:100%!important;max-width:100%!important;
  margin:0!important;padding:0!important;
  background:var(--kn4-white);
  border:1px solid var(--kn4-stroke);border-radius:16px;
  overflow:hidden;box-shadow:var(--kn4-shadow);
}
body#product.kn4-ready #main #kn4-recommendations #accessories-grid > li .product-miniature,
body#product.kn4-ready #main #kn4-recommendations #accessories-grid > li .thumbnail-container {
  display:flex;flex-direction:column;flex:1;
  width:100%!important;max-width:100%!important;
  min-width:0!important;
  height:auto!important;min-height:0!important;
  margin:0!important;padding:0;
  border:0;box-shadow:none;
  background:transparent;
}
body#product.kn4-ready #main #kn4-recommendations #accessories-grid .product-thumbnail {
  position:relative!important;
  display:flex;align-items:center;justify-content:center;
  width:100%!important;height:216px!important;
  min-width:0;padding:7px;overflow:hidden;background:#fff;
}
body#product.kn4-ready #main #kn4-recommendations #accessories-grid .product-thumbnail img {
  display:block;position:static!important;
  width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;
  object-fit:contain;margin:auto;
}
body#product.kn4-ready #main #kn4-recommendations #accessories-grid .product-description {
  display:flex;flex-direction:column;flex:1;
  position:static!important;
  width:100%!important;height:auto!important;
  min-height:0!important;
  max-width:100%!important;
  padding:12px 11px 6px!important;
  margin:0!important;
  background:transparent!important;
  box-shadow:none!important;
  text-align:center;
}
body#product.kn4-ready #main #kn4-recommendations #accessories-grid .product-title {
  display:-webkit-box;
  width:100%;max-height:38px;
  min-height:36px;overflow:hidden;
  -webkit-line-clamp:2;-webkit-box-orient:vertical;
  margin:0 0 8px;
  text-align:center;
  white-space:normal;
  font-size:12.5px;line-height:1.42;text-transform:none;
}
body#product.kn4-ready #main #kn4-recommendations #accessories-grid .product-title a {
  color:var(--kn4-ink);font-size:12.5px;line-height:1.42;text-decoration:none;
}
body#product.kn4-ready #main #kn4-recommendations #accessories-grid .product-price-and-shipping {
  display:block;position:static!important;
  margin:auto 0 3px!important;
  text-align:center;opacity:1!important;visibility:visible!important;
}
body#product.kn4-ready #main #kn4-recommendations #accessories-grid .price {
  color:var(--kn4-wine);font-size:17px;font-weight:700;
}
body#product.kn4-ready #main #kn4-recommendations #accessories-grid .ka-rec-actions {
  clear:both;
  display:block;
  margin-top:auto;
  padding:8px 10px 14px!important;
  background:transparent!important;
  text-align:center;
}
body#product.kn4-ready #main #kn4-recommendations #accessories-grid .ka-rec-cta {
  display:inline-flex!important;align-items:center;justify-content:center;
  max-width:100%;min-height:37px;
  border-radius:999px!important;
  padding:9px 14px!important;
  background:var(--kn4-wine)!important;
  border-color:var(--kn4-wine)!important;
  color:white!important;
  font-weight:700;font-size:11.5px;line-height:1.25;
  white-space:normal;
}
body#product.kn4-ready #main #kn4-recommendations #accessories-grid .ka-rec-cta:hover {background:var(--kn4-wine-hover)!important;border-color:var(--kn4-wine-hover)!important;}
/* Avis officiels sans note fictive, avant ou après la grille selon l'emplacement du thème. */
body#product.kn4-ready #main #kn4-reviews {
  background:var(--kn4-white);
  border:1px solid var(--kn4-stroke);
  border-radius:17px;
  box-shadow:var(--kn4-shadow);
  padding:20px 23px;
  margin:24px 0 29px;
  clear:both;
}
body#product.kn4-ready #main .kn4-review-title {
  color:var(--kn4-wine);
  margin:0 0 13px;
  font:italic normal clamp(23px,2.5vw,30px)/1.25 Georgia,serif;
}
body#product.kn4-ready #main #kn4-reviews :is(#product-comments-list-header,#product-comments-list) {max-width:100%;width:100%;}
body#product.kn4-ready #main .kn4-duplicate-recs-hidden {display:none!important;}
body#product.kn4-ready #main .kp3-secondary-related-hidden {display:none!important;}
body#product.kn4-ready #main .kn4-avis-jump {
  display:inline-flex;
  color:var(--kn4-wine);
  font-size:12px;
  margin:0 0 11px;
  text-decoration:underline;
  text-underline-offset:3px;
}
/* Éviter les anciennes cartes V3 ajoutées par JS, le source natif est préservé. */
body#product.kn4-ready #main :is(#kp3-related,.kp3-related) {display:none!important;}
@media (max-width:1090px) {
  body#product.kn4-ready #main #kn4-recommendations #accessories-grid {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  body#product.kn4-ready #main .kn4-trust {grid-template-columns:1fr;gap:7px;}
  body#product.kn4-ready #main .kn4-trust-item {padding:2px 0;border:0;}
}
@media (max-width:767px) {
  body#product.kn4-ready #main.kn4-main {padding:10px 13px 35px;}
  body#product.kn4-ready #main .product-container :is(h1,.h1) {font-size:30px;}
  body#product.kn4-ready #main .product-cover {border-radius:12px;}
  body#product.kn4-ready #main .kn4-purchase-extras {margin:14px 0;}
  body#product.kn4-ready #main .kn4-trust-item small {font-size:10px;}
  body#product.kn4-ready #main .kn4-social-links a {flex:1;min-width:0;justify-content:center;padding:9px 7px;font-size:11px;}
  body#product.kn4-ready #main .kn4-social-links {gap:6px;}
  body#product.kn4-ready #main .kn4-social-links svg {height:15px;width:15px;}
  body#product.kn4-ready #main :is(.tabs,.product-tabs) {margin:18px 0 23px;padding:12px;}
  body#product.kn4-ready #main :is(.tabs,.product-tabs) .nav-tabs {justify-content:flex-start;gap:4px;}
  body#product.kn4-ready #main :is(.tabs,.product-tabs) .nav-tabs a {font-size:11px;padding:9px 10px;min-height:37px;}
  body#product.kn4-ready #main .kn4-desc-overview {grid-template-columns:1fr;gap:10px;padding:12px;}
  body#product.kn4-ready #main .kn4-desc-perks {border-left:0;border-top:1px solid var(--kn4-stroke);padding:10px 0 0;}
  body#product.kn4-ready #main #kn4-recommendations #accessories-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px;}
  body#product.kn4-ready #main #kn4-recommendations #accessories-grid .product-thumbnail {height:160px!important;padding:5px;}
  body#product.kn4-ready #main #kn4-recommendations #accessories-grid .product-description {padding:10px 7px 5px!important;}
  body#product.kn4-ready #main #kn4-recommendations #accessories-grid .product-title a {font-size:11px;}
  body#product.kn4-ready #main #kn4-recommendations #accessories-grid .price {font-size:15px;}
  body#product.kn4-ready #main #kn4-recommendations #accessories-grid .ka-rec-cta {font-size:11px;padding:9px 8px!important;}
  body#product.kn4-ready #main #kn4-reviews {padding:15px 13px;}
}
@media (max-width:385px) {
  body#product.kn4-ready #main #kn4-recommendations #accessories-grid .product-thumbnail {height:140px!important;}
  body#product.kn4-ready #main .kn4-social-links a {font-size:10px;}
}
@media (prefers-reduced-motion:reduce) {
  body#product.kn4-ready #main .kn4-social-links a {transition:none;}
}
