/* =========================
   CATEGORIES (panneau gauche)
   ========================= */

.qp-catbox__title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.qp-catlist,
.qp-sublist{
  list-style:none;
  margin:0;
  padding:0;
}

.qp-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 0;
}

.qp-item{ margin:0; }

.qp-toggle{
    background: none !important;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    width: 15px;
    height: 15px;
    margin: 5px 5px 0px 0px;
    border: none !important;
    color: black !important;
    font-weight: 600 !important;
    font-size: 17px !important;
}

.qp-toggle--empty{
  opacity:0;
  pointer-events:none;
  width:24px;
  height:24px;
}

.qp-link{
  text-decoration:none;
  color:inherit;
    font-weight: 500;
    flex: 1;
    line-height: 1.2em;
    font-size: 14px;
}

.qp-link:hover{ text-decoration:underline; }

.qp-count{
    color: black;
    font-weight: 500;
    font-size: 11px;
}

.qp-sublist{
  padding-left:10px;
  margin-top:2px;
  border-left:2px solid rgba(0,0,0,.06);
}
.woocommerce ul.products li.product a.woocommerce-loop-product__link {
    display: block;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.08);
    background: white;
    border-radius: 10px;
    text-align: center;
    padding: 7px;
    transition: .2s ease;
}
.woocommerce ul.products li.product a.woocommerce-loop-product__link:hover {
    transform: scale(1.06);
}
.woocommerce ul.products li.product .button {
    display: none;
}
.woocommerce ul.products li.product a img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 0em !important;
    box-shadow: none;
}
.qp-title-price {
    padding: 20px 0px;
    height: 8rem;
}

h2.woocommerce-loop-product__title {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.5em;
    letter-spacing: 0.6px;
}
/* =========================
   PRODUITS (zone droite) + LOADER local
   ========================= */
.qp-products-area{
  position: relative;
}

.qp-products-area__content{
  position: relative;
  z-index: 1;
}

/* Overlay uniquement sur la zone produits */
.qp-products-loader{
  position:absolute;
  inset: 0;
  background: rgba(255,255,255,.70);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 5;
  border-radius: 14px; /* si ta zone produits est en carte */
}

.qp-products-area.is-loading .qp-products-loader{
  display:flex;
}

.qp-products-loader__box{
  background:#fff;
  border-radius:14px;
  padding:14px 18px;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:600;
}

.qp-products-loader__spinner{
  width:18px;
  height:18px;
  border:2px solid rgba(0,0,0,.18);
  border-top-color: rgba(0,0,0,.65);
  border-radius:999px;
  animation: qpSpin .8s linear infinite;
}

@keyframes qpSpin{
  to { transform: rotate(360deg); }
}



.woocommerce .woocommerce-ordering, .woocommerce-page .woocommerce-ordering, .woocommerce .woocommerce-result-count, .woocommerce-page .woocommerce-result-count {
    display: none !important;
}


/* --- Tes réglages Woo (tu peux garder) --- */
.woocommerce div.product form.cart .variations tbody tr {
  display: flex;
  flex-direction: column;
}

.woocommerce div.product form.cart .reset_variations {
    position: absolute;
    right: 0;
    background: #2b4c5d;
    color: white;
    padding: 2px 10px;
    margin-left: 0 !important;
    top: -30px;
    text-transform: uppercase;
    font-size: 12px;
}
.woocommerce-variation.single_variation {
    display: none !important;
}
.woocommerce div.product form.cart table td {
    padding-left: 15px !important;
}

.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th {
    background: white;
}
.cfvsw-label-none table.variations tr th.label {
  display: block !important;
  padding-bottom: 0;
  padding-top: 0;
}

/* --- Slider swatches (version SAFE) --- */
.qp-swatch-host {
  position: relative !important;
}
.qp-swatch-arrow--prev {
    left: 6px !important;
    margin-left: 0 !important;
}

/* zone scroll (le conteneur CFVSW lui-même) */
.qp-swatch-scroll {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;

  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;

  padding:40px 0px 6px !important; /* espace pour les flèches */
  scroll-behavior: smooth !important;
}

.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th {
    background: white;
    text-align: left;
    padding: 0;
}
.qp-swatch-scroll::-webkit-scrollbar { height: 0 !important; }

/* items */
.qp-swatch-scroll .cfvsw-swatches-option {
  flex: 0 0 auto !important;
}

/* flèches */
.qp-swatch-arrow {
    position: absolute !important;
    top: 60% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(0, 0, 0, .15) !important;
    background: #fff !important;
    color: #000 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important
}

.qp-swatch-arrow--prev { left: 6px !important; }
.qp-swatch-arrow--next { right: 6px !important; }

.qp-swatch-arrow:disabled {
  opacity: .35 !important;
  cursor: default !important;
}



.cfvsw_variations_form.variations_form.cfvsw_shop_align_left.variation-function-added {
    display: none !important;
}

/* Mobile: réduit padding flèches */
@media (max-width: 768px){
  .qp-swatch-scroll{
    padding: 6px 44px !important;
  }
}


/* ✅ Force une zone visible plus courte pour créer du scroll */
.qp-swatch-host{
  width: 100% !important;
}

/* Le conteneur scroll (celui où il y a les drapeaux) */
.qp-swatch-scroll{
    width: calc(100% - 115px) !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-wrap: nowrap !important;
}

/* Empêche les miniatures de se réduire */
.qp-swatch-scroll .cfvsw-swatches-option{
  flex: 0 0 auto !important;
}

/* Flèches bien centrées et au-dessus */
.qp-swatch-arrow{
  z-index: 999999 !important;
}

/*.elementor-element.elementor-element-16f5ebc.e-con-full.e-flex.e-con.e-child {*/
/*    display: none;*/
/*}*/








/* === WooCommerce thumbnails: 1 ligne (slide) === */
.woocommerce div.product div.images ol.flex-control-nav.flex-control-thumbs{
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 10px;
  padding: 8px 0;
  margin: 10px 0 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
	width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* annule le style WooCommerce par défaut (float + width 25%) */
.woocommerce div.product div.images .flex-control-thumbs li{
  float: none !important;
  width: auto !important;
  flex: 0 0 auto !important;
  scroll-snap-align: start;
}
.wc-thumbs-arrow.next, .wc-thumbs-arrow.prev {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(0, 0, 0, .15) !important;
    background: #fff !important;
    color: #000 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}
/* taille des vignettes (ajuste 70-110 selon ton design) */
.woocommerce div.product div.images .flex-control-thumbs li img{
  width: 90px !important;
  height: 90px !important;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* optionnel: rendre la barre de défilement discrète */
.woocommerce div.product div.images ol.flex-control-nav.flex-control-thumbs::-webkit-scrollbar{
  height: 6px;
}
.woocommerce div.product div.images ol.flex-control-nav.flex-control-thumbs::-webkit-scrollbar-thumb{
  border-radius: 10px;
}
.woocommerce div.product div.images .flex-control-thumbs li{
  flex: 0 0 calc((100% - 30px)/4) !important; /* 4 vignettes visibles */
}
.woocommerce div.product div.images .flex-control-thumbs li img{
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}


/* === Wrapper thumbnails + flèches === */
.wc-thumbs-wrap {
  position: relative;
}

/* Flèches */
.wc-thumbs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(255,255,255,.92);
  cursor: pointer;
  display: none; /* affichées via JS si overflow */
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 18px;
  user-select: none;
}

.wc-thumbs-arrow:hover {
  background: #fff;
}

/* Position gauche/droite */
.wc-thumbs-arrow.prev { left: 6px; }
.wc-thumbs-arrow.next { right: 6px; }

/* Pour éviter que la flèche masque la 1ère/dernière vignette */
.woocommerce div.product div.images ol.flex-control-nav.flex-control-thumbs {
  padding-left: 44px !important;
  padding-right: 44px !important;
}

/* Optionnel : flèche inactive */
.wc-thumbs-arrow.is-disabled {
  opacity: .35;
  cursor: default;
}

/* =========================
   Accordéon catégories : animation (slide)
   ========================= */

/* Sous-listes (fermées par défaut) */
.qp-sublist{
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height .28s ease, opacity .2s ease, transform .2s ease;
  will-change: max-height, opacity, transform;

  /* optionnel : indentation + trait */
  margin-left: 14px;
  padding-left: 10px;
  border-left: 2px solid rgba(0,0,0,.06);
}

/* Sous-liste ouverte (animable) */
.qp-sublist.is-open{
  opacity: 1;
  transform: translateY(0);
}
.second-bloc-produit table.variations.cfvsw-variation-disable-logic {
    display: none;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) ul.products li.product .price {
    color: black;
}

/* Optionnel : animation légère du bouton */
.qp-toggle{
  transition: transform .2s ease;
}
.qp-toggle[aria-expanded="true"]{
  transform: rotate(180deg);
}


@media(max-width: 1024px) {
    .qp-swatch-scroll {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
	gap: 7px !important;
}
.qp-swatch-arrow--prev, .qp-swatch-arrow--next {
    display: none !important;
}
.woocommerce div.product form.cart table td {
    padding-left: 0px !important;
    padding-top: 20px !important;
}
}

@media(max-width: 767px) {
.woocommerce div.product div.images ol.flex-control-nav.flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow-x: initial !important;
    overflow-y: initial !important;
    gap: 7px;
    padding: initial !important;
    margin: 10px 0 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
	.wc-thumbs-wrap ol.flex-control-nav.flex-control-thumbs {
    padding: 0 !important;
}
	.wc-thumbs-arrow.next, .wc-thumbs-arrow.prev {
    display: none !important;
}
}


/* Cache le bloc sur les produits non-personnalisables */
body.single-product:not(.is-personnalisable) #fpd-block {
  display: none !important;
}

/* =========================
   Confirmation commande
   ========================= */
body.woocommerce-order-received,
body.woocommerce-order-received .site-main,
body.woocommerce-order-received .elementor,
body.woocommerce-order-received .elementor-section,
body.woocommerce-order-received .elementor-widget-container {
  background: #fff !important;
}

body.woocommerce-order-received .woocommerce {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  color: #123243;
}

body.woocommerce-order-received .woocommerce-order {
  background: #fff;
}

body.woocommerce-order-received h1,
body.woocommerce-order-received h2,
body.woocommerce-order-received h3,
body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-order-received .woocommerce-column__title {
  color: #123243;
  letter-spacing: 0;
}

body.woocommerce-order-received .woocommerce-order-details__title {
  margin: 0 0 26px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  font-weight: 700;
}

body.woocommerce-order-received .woocommerce-notice,
body.woocommerce-order-received .woocommerce-thankyou-order-received {
  margin: 0 0 24px;
  padding: 18px 22px;
  border: 1px solid #dce7ec;
  border-left: 4px solid #2b4c5d;
  border-radius: 8px;
  background: #f8fbfc;
  color: #123243;
  font-weight: 600;
}

body.woocommerce-order-received ul.woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 34px;
  padding: 0;
}

body.woocommerce-order-received ul.woocommerce-order-overview li {
  float: none;
  width: auto;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e1e8ec;
  border-radius: 8px;
  background: #fff;
  color: #667684;
  font-size: 12px;
  line-height: 1.35;
}

body.woocommerce-order-received ul.woocommerce-order-overview li strong {
  display: block;
  margin-top: 5px;
  color: #123243;
  font-size: 14px;
  font-weight: 700;
}

body.woocommerce-order-received table.shop_table,
body.woocommerce-order-received .woocommerce-table--order-details {
  overflow: hidden;
  width: 100%;
  margin: 0 0 30px;
  border: 1px solid #dde7ec !important;
  border-radius: 8px;
  border-collapse: separate !important;
  border-spacing: 0;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 50, 67, .08);
}

body.woocommerce-order-received table.shop_table thead th {
  padding: 16px 20px;
  border: 0 !important;
  border-bottom: 1px solid #dde7ec !important;
  background: #f7fafb;
  color: #516575;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

body.woocommerce-order-received table.shop_table td,
body.woocommerce-order-received table.shop_table th,
body.woocommerce-order-received table.shop_table tfoot td,
body.woocommerce-order-received table.shop_table tfoot th {
  padding: 18px 20px;
  border: 0 !important;
  border-bottom: 1px solid #edf2f5 !important;
  background: #fff;
  vertical-align: top;
}

body.woocommerce-order-received table.shop_table tr:last-child td,
body.woocommerce-order-received table.shop_table tr:last-child th {
  border-bottom: 0 !important;
}

body.woocommerce-order-received table.shop_table .product-total,
body.woocommerce-order-received table.shop_table tfoot td {
  width: 240px;
  text-align: right;
  white-space: nowrap;
  color: #123243;
  font-weight: 700;
}

body.woocommerce-order-received table.shop_table .product-name {
  position: relative;
  min-height: 132px;
  padding-left: 132px !important;
  color: #123243;
}

body.woocommerce-order-received table.shop_table .product-name img,
body.woocommerce-order-received table.shop_table .product-name > div[style*="background"] {
  position: absolute !important;
  top: 18px;
  left: 20px;
  width: 96px !important;
  max-width: 96px !important;
  min-height: 112px !important;
  margin: 0 !important;
  float: none !important;
  border: 1px solid #e4ecef;
  border-radius: 8px;
  background-color: #f8fafb;
  background-size: contain !important;
  background-position: center !important;
  cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
}

body.woocommerce-order-received table.shop_table .product-name img:hover,
body.woocommerce-order-received table.shop_table .product-name > div[style*="background"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 50, 67, .16);
}

.melocotone-order-preview-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(18, 50, 67, .72);
  backdrop-filter: blur(3px);
}

.melocotone-order-preview-lightbox.is-open {
  display: flex;
}

.melocotone-order-preview-lightbox__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 620px);
  min-height: min(78vh, 620px);
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.melocotone-order-preview-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.melocotone-order-preview-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #d7e2e7;
  border-radius: 50%;
  background: #fff;
  color: #123243;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.melocotone-order-preview-lightbox__close:hover {
  background: #f3f7f9;
}

body.woocommerce-order-received table.shop_table .product-name a {
  color: #123243;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

body.woocommerce-order-received table.shop_table .product-name a:hover {
  text-decoration: underline;
}

body.woocommerce-order-received table.shop_table .product-name br {
  display: block;
  content: "";
  margin: 0;
}

body.woocommerce-order-received table.shop_table .product-name > p,
body.woocommerce-order-received table.shop_table .product-name > strong,
body.woocommerce-order-received table.shop_table .product-name > a {
  display: inline-block;
  margin: 0 0 8px;
}

body.woocommerce-order-received table.shop_table .product-name > div:not([style*="background"]) {
  display: block;
  width: min(100%, 676px);
  margin: 16px 0 0 !important;
  padding: 14px 16px;
  border: 1px solid #e3ebef;
  border-radius: 8px;
  background: #fbfcfd;
}

body.woocommerce-order-received table.shop_table .product-name > div:not([style*="background"]) p {
  max-width: none !important;
  margin: 0 0 8px !important;
  color: #123243;
  font-size: 13px !important;
  line-height: 1.35;
  white-space: normal !important;
  text-overflow: initial !important;
}

body.woocommerce-order-received table.shop_table .product-name span[style*="background"] {
  display: inline-flex !important;
  align-items: center;
  min-height: 24px;
  margin: 3px 6px 3px 0 !important;
  padding: 4px 8px !important;
  border: 1px solid #d8e1e5 !important;
  border-radius: 5px !important;
  font-size: 11px;
  line-height: 1.2;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}

body.woocommerce-order-received table.shop_table tfoot th {
  color: #516575;
  font-weight: 700;
}

body.woocommerce-order-received table.shop_table tfoot tr:last-child th,
body.woocommerce-order-received table.shop_table tfoot tr:last-child td {
  background: #f7fafb;
  color: #123243;
  font-size: 16px;
}

body.woocommerce-order-received .woocommerce-customer-details,
body.woocommerce-order-received .woocommerce-order-details {
  margin-bottom: 34px;
}

body.woocommerce-order-received .woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.woocommerce-order-received .woocommerce-column {
  float: none;
  width: auto;
  padding: 20px;
  border: 1px solid #dde7ec;
  border-radius: 8px;
  background: #fff;
}

body.woocommerce-order-received address {
  margin: 0;
  color: #516575;
  line-height: 1.7;
}

@media (max-width: 900px) {
  body.woocommerce-order-received ul.woocommerce-order-overview,
  body.woocommerce-order-received .woocommerce-columns--addresses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.woocommerce-order-received table.shop_table .product-total,
  body.woocommerce-order-received table.shop_table tfoot td {
    width: 180px;
  }
}

@media (max-width: 640px) {
  body.woocommerce-order-received .woocommerce {
    padding: 32px 16px 56px;
  }

  body.woocommerce-order-received ul.woocommerce-order-overview,
  body.woocommerce-order-received .woocommerce-columns--addresses {
    grid-template-columns: 1fr;
  }

  body.woocommerce-order-received table.shop_table .product-name {
    min-height: 106px;
    padding-left: 98px !important;
  }

  body.woocommerce-order-received table.shop_table .product-name img,
  body.woocommerce-order-received table.shop_table .product-name > div[style*="background"] {
    top: 14px;
    left: 12px;
    width: 72px !important;
    max-width: 72px !important;
    min-height: 86px !important;
  }

  body.woocommerce-order-received table.shop_table td,
  body.woocommerce-order-received table.shop_table th,
  body.woocommerce-order-received table.shop_table tfoot td,
  body.woocommerce-order-received table.shop_table tfoot th {
    padding: 14px 12px;
  }
}
