/* Recherche (ex-custom2) */
#search_block_top {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

#searchbox {
  width: 450px !important;
}

#searchbox .table {
  display: flex;
  gap: 0;
  width: 100%;
}

#searchbox .table-cell {
  margin: 0;
  padding: 0;
}

#searchbox .table-cell:last-child {
  flex: 1;
}

/* Recherche wpksearchengine : responsive mobile (évite largeur fixe 450px) */
@media (max-width: 991px) {
  #search_block_top {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
    margin: 8px 0 12px;
    box-sizing: border-box;
  }

  #search_block_top #searchbox,
  #searchbox {
    width: 100% !important;
    max-width: 100% !important;
  }

  #search_block_top #wpksearchengine,
  #wpksearchengine {
    width: 100%;
    max-width: 100%;
  }
}

/* -------------------------------------------------------------------------
   Page produit — ancien thème Kitencre (couleurs, image, cadre, CTA magenta)
   ------------------------------------------------------------------------- */

/* Titre produit (nom de la cartouche) : pleine largeur, tout en haut sous le fil d’Ariane */
.encre-legacy-product .encre-product-page-title {
  margin-bottom: 1rem;
}

.encre-legacy-product .encre-product-page-title .product_title {
  margin-top: 0;
  margin-bottom: 0;
  text-align: left;
}

/* Fix "truncated" product name + SKU on product page */
/* NOTE: .encre-legacy-product is on the main section, not on body */
body#product .encre-legacy-product .encre-product-page-title .product_title {
  max-width: 100%;
  min-width: 0 !important; /* avoid flex overflow truncation */
  flex: 1 1 auto !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  word-break: break-word !important;
  height: auto !important;
  max-height: none !important;
}

body#product .encre-legacy-product .product-reference,
body#product .encre-legacy-product .product-reference span {
  max-width: 100%;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  word-break: break-word !important;
  height: auto !important;
  max-height: none !important;
}

/* Some blocks render SKU/reference inside dl/dd (theme) */
body#product .encre-legacy-product .product_list__item__features__value {
  max-width: 100%;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  word-break: break-word !important;
  height: auto !important;
  max-height: none !important;
}

/* Blocs issus de displayFooterProduct dans la colonne imprimantes (souvent listes / sliders) */
#right-column .encre-sidebar-footer-product {
  width: 100%;
  margin-top: 1rem;
}

#right-column .encre-sidebar-footer-product .products,
#right-column .encre-sidebar-footer-product .product_list {
  max-width: 100%;
}

#right-column .encre-sidebar-footer-product img {
  max-width: 100%;
  height: auto;
}

.encre-legacy-product .encre-product-card.product_list__item__container {
  border: 1px solid #e4e4e4;
  padding: 15px 15px 20px;
  margin-bottom: 1rem;
}

/* Image principale : taille réduite sur la fiche produit */
.encre-legacy-product .product_list__item__img {
  text-align: center;
}

@media (min-width: 768px) {
  .encre-legacy-product .product_list__item__img {
    max-width: 320px;
    flex: 0 0 320px;
  }
}

.encre-legacy-product #image-block .product-cover,
.encre-legacy-product .product_list__item__img .product-cover {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.encre-legacy-product #image-block .product-cover img,
.encre-legacy-product .product_list__item__img .product-cover img,
.encre-legacy-product .js-cover-mobilecarousel .product-cover img {
  max-height: 280px;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* Ligne photo + colonne texte/prix : alignement en haut */
.encre-legacy-product .main-product-details .product-container.product_list__item__container {
  align-items: flex-start;
}

/* Colonne droite dédiée : imprimantes compatibles (séparée du contenu principal) */
#right-column.encre-compatible-printers-column {
  margin-top: 1rem;
}

@media (min-width: 992px) {
  #right-column.encre-compatible-printers-column {
    margin-top: 0;
    padding-left: 1rem;
    border-left: 1px solid #e4e4e4;
  }

  #right-column.encre-product-sidebar {
    position: sticky;
    top: 1rem;
    align-self: flex-start;
  }

  #right-column .encre-sidebar-inner {
    min-height: 120px;
  }
}

/* Colonne droite fiche produit uniquement — doublons « Brand & product details » */
body#product #right-column .product-details-info,
body#product #right-column .js-product-details .product-details-info,
body#product #right-column .product-manufacturer,
body#product #right-column .product-reference,
body#product #right-column .product-condition,
body#product #right-column .product-quantities,
body#product #right-column .product-availability-date,
#right-column.encre-compatible-printers-column .encre-sidebar-inner .product-details-info,
#right-column.encre-compatible-printers-column .hook-displayFooterProduct .product-details-info,
#right-column.encre-compatible-printers-column .encre-sidebar-inner .product-manufacturer,
#right-column.encre-compatible-printers-column .encre-sidebar-inner .product-reference,
#right-column.encre-compatible-printers-column .encre-sidebar-inner .product-condition,
#right-column.encre-compatible-printers-column .encre-sidebar-inner .product-quantities,
#right-column.encre-compatible-printers-column .hook-displayFooterProduct .product-manufacturer,
#right-column.encre-compatible-printers-column .hook-displayFooterProduct .product-reference,
#right-column.encre-compatible-printers-column .hook-displayFooterProduct .product-condition,
#right-column.encre-compatible-printers-column .hook-displayFooterProduct .product-quantities {
  display: none !important;
}


/* Bloc prix / panier en haut de la colonne centrale (à côté de la photo) */
.encre-legacy-product .encre-product-commerce-top.box-info-product {
  margin-bottom: 1.25rem;
}

.encre-legacy-product .encre-product-payment-top {
  margin-bottom: 1.25rem;
}

/* Bloc sous la ligne photo / prix : marque, réf., caractéristiques + cartouches liées */
.encre-legacy-product .encre-product-below-main {
  margin-top: 1.5rem;
}

.encre-legacy-product .encre-product-info-frame {
  border: 1px solid #e4e4e4;
  padding: 1rem 1.25rem 1.25rem;
  margin-bottom: 1.5rem;
  background: #fafafa;
}

.encre-legacy-product .encre-product-info-frame .encre-info-frame-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  color: #212121;
}

.encre-legacy-product .encre-search-related-cartridges {
  margin-bottom: 1.5rem;
}

.encre-legacy-product .encre-search-related-cartridges .printer_main__title {
  margin-top: 1.25rem;
}

.encre-legacy-product .encre-search-related-cartridges .printer_main__title:first-child {
  margin-top: 0;
}

.encre-legacy-product .encre-search-related-fallback .btn {
  margin-top: 0.25rem;
}

/* Listes produits type ancien .printer_main (bas de fiche produit) */
.encre-related-products-zone {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e4e4e4;
  clear: both;
}

.encre-related-products-zone .encre-related-cartridges-header {
  margin-bottom: 1.25rem;
}

.encre-related-products-zone.printer_main {
  margin-top: 2rem;
  clear: both;
}

.encre-related-products-zone .printer_main__title,
.encre-related-products-zone .products-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e4e4e4;
}

@media (max-width: 767px) {
  .encre-related-products-zone .products.row > .product,
  .encre-related-products-zone .wpk-printer-product-list .product {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .encre-related-products-zone .printer_main__title,
  .encre-related-products-zone .products-section-title {
    font-size: 1.05rem;
    line-height: 1.35;
  }
}

.encre-legacy-product .product_list__item__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1rem;
  text-align: left;
}

.encre-legacy-product .short_description_content,
.encre-legacy-product .product-description {
  margin-bottom: 1rem;
}

.encre-legacy-product .product_list__item__features {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.encre-legacy-product .product_list__item__features__label {
  color: #909090;
  font-weight: 600;
  margin: 0;
  padding-top: 0.35rem;
}

.encre-legacy-product .product_list__item__features__label::first-letter {
  text-transform: uppercase;
}

.encre-legacy-product .product_list__item__features__value {
  margin: 0 0 0.5rem;
  word-break: break-word;
}

.encre-legacy-product .product_list__item__details {
  margin: 1rem 0;
}

.encre-legacy-product .product_list__item__details .btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #909090;
  background: #fff;
  color: #333;
  text-decoration: none;
  border-radius: 2px;
}

.encre-legacy-product .product_list__item__details .btn:hover {
  background: #f5f5f5;
}

.encre-legacy-product .product_list__item__iso {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
  text-align: left;
}

.encre-legacy-product .product_list__item__iso img {
  max-width: 56px;
  height: auto;
}

.encre-legacy-product .product_list__item__iso__text {
  flex: 1 1 200px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.encre-legacy-product .product_list__item__img {
  text-align: center;
}

.encre-legacy-product .product_list__item__img .images-container,
.encre-legacy-product .product_list__item__img .product-images {
  margin: 0 auto;
}

.encre-legacy-product .box-info-product {
  border: 1px solid #e4e4e4;
  padding: 15px;
  background: #fafafa;
}

.encre-legacy-product .box-info-product .product-prices {
  text-align: center;
}

@media (min-width: 768px) {
  .encre-legacy-product .box-info-product .product-prices {
    text-align: right;
  }
}

.encre-legacy-product .box-info-product .current-price-display,
.encre-legacy-product .box-info-product .current-price .price {
  color: #25a3fa;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
}

.encre-legacy-product .box-info-product .product-discount .regular-price {
  color: #e70290;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: line-through;
}

.encre-legacy-product .box-info-product .discount-percentage,
.encre-legacy-product .box-info-product .discount-amount {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.2rem 0.65rem;
  background: #cc1436;
  color: #fff200;
  font-size: 0.95rem;
  font-weight: 600;
}

.encre-legacy-product .product-add-to-cart .product-quantity-touchspin {
  display: flex;
  align-items: stretch;
  margin-top: 1rem;
  gap: 0;
}

.encre-legacy-product .product-add-to-cart .qty {
  flex: 1 1 auto;
}

.encre-legacy-product .product-add-to-cart .qty .input-group {
  width: 100%;
  text-align: center;
  font-weight: 600;
  border: 1px solid #909090;
  border-radius: 0;
  padding: 0.5rem;
}

.encre-legacy-product .product-add-to-cart .add {
  flex: 0 0 auto;
}

/* Bouton « Ajouter au panier » : ancien .btn--cta (#e70290) */
.encre-legacy-product .product-add-to-cart .btn-add-to-cart {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  background: #e70290;
  color: #fff;
}

.encre-legacy-product .product-add-to-cart .btn-add-to-cart:hover,
.encre-legacy-product .product-add-to-cart .btn-add-to-cart:focus {
  background: #c9007a;
  color: #fff;
}

.encre-legacy-product .product-add-to-cart .buy-now {
  background: #25a3fa;
  color: #fff;
  border: none;
}

.encre-legacy-product .product-add-to-cart .buy-now:hover {
  background: #1a8ddb;
  color: #fff;
}

.encre-legacy-product .printer_main__reinsurance {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  background: #f0f8ff;
  border: 1px solid #d0e8ff;
}

.encre-legacy-product .printer_main__reinsurance__item {
  margin: 0;
  font-size: 0.95rem;
}

.encre-legacy-product .pb-center-column .js-product-availability {
  display: block;
  margin-top: 0.75rem;
}

/* Panier: force l'affichage de l'action de suppression ligne produit */
#cart .cart-line-product-actions .remove-from-cart {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  color: #333;
  opacity: 1 !important;
  visibility: visible !important;
  text-decoration: none;
}

#cart .cart-line-product-actions .remove-from-cart i {
  font-size: 16px;
  line-height: 1;
}

#cart .cart-line-product-actions .remove-from-cart .remove-text {
  font-size: 0.85rem;
  line-height: 1;
}

/* -------------------------------------------------------------------------
   PrestaBlog — intégration thème PRS028 + Creative Elementor (tdelementor)
   ------------------------------------------------------------------------- */

body.module-prestablog-blog #wrapper,
body.module-prestablog-blog #main,
.prestablog-front {
  position: relative;
  z-index: 1;
}

.prestablog-front a,
#blog_list a,
.prestablog-block-lastliste a,
#prestablog_lastliste a {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.prestablog-front {
  padding-bottom: 2rem;
}

#blog_list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

#blog_list > li.blog-grid {
  flex: 1 1 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  #blog_list.two_article > li.blog-grid {
    flex: 1 1 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
  }

  #blog_list.three_article > li.blog-grid {
    flex: 1 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
  }
}

#blog_list .block_cont {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#blog_list .block_top img {
  width: 100%;
  height: auto;
  display: block;
}

#blog_list .block_bas {
  padding: 1rem 1.25rem;
}

#blog_list h3 {
  font-size: 1.05rem;
  line-height: 1.35;
}

#blog_list h3 a {
  color: inherit;
  text-decoration: none;
}

#blog_list h3 a:hover {
  color: #25a3fb;
}

#prestablogfront {
  background: #fff;
}

#prestablog_article {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

#prestablogfont a {
  text-decoration: underline;
}

.prestablog-block-lastliste .title_block {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e8e8e8;
}

.prestablog-lastliste__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.prestablog-lastliste__link:hover {
  color: #25a3fb;
}

.elementor-blogs .blog a,
.elementor-blog-posts .blog a {
  pointer-events: auto;
}
