


/* =============================== */
/* === GalleryPro COLLECTION VIEW (ultra-simplifié, design et boutons conservés) === */
/* =============================== */
.collection-products-mode-collection .product-slider__content {
  display: flex;
  gap: 2rem;
}
.collection-products-mode-collection .product-slider__left,
.collection-products-mode-collection .product-slider__right {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}
.collection-products-mode-collection .product-slider__right {
  align-items: flex-start;
  position: relative;
}
.collection-products-mode-collection .collection-slider-cards {
  min-width: 320px;
  max-width: 320px;
  position: relative;
}
.collection-products-mode-collection .collection-slider-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}
.collection-products-mode-collection .collection-slider-card.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 2;
  align-self: center;
}
.collection-products-mode-collection .collection-slider-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
.collection-products-mode-collection .product-placeholder {
  width: 100%;
  height: 220px;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1.1rem;
}
.collection-products-mode-collection .card-extended-information {
  margin-top: auto;
  padding: 1rem;
  text-align: center;
}
.collection-products-mode-collection .subtitle {
  font-size: 1rem;
  color: #6a6764;
}
/* ...existing code... */
/* === Commun / Fullwidth / Container === */
/* =============================== */
.collection-products-root {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: visible;
  scrollbar-width: none;
  padding-top:20px;
  padding-bottom:20px
}


.gallerypro-fullwidth {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: visible;
  scrollbar-width: none;
}


.gallerypro-fullwidth .product-slider__content {
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: visible;
}


.gallerypro-fullwidth .collection-slider-cards-wrapper {
  justify-content: center;
  padding-right: 0;
  overflow-x: hidden;
  overflow-y: visible;
}


.gallerypro-fullwidth .collection-slider-card.active {
  margin-right: 0;
  align-self: center;
}
.collection-products-mode-grid .product-grid {
  max-width: 100vw;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 15px!important;
  width: 100%;
}

.collection-products-mode-filmstrip {
  max-width: 100vw;
  overflow-x: hidden;
}


.collection-products-mode-grid {
  display: grid;
  gap: calc(var(--gap, 18) * 1px);
}
/* Fix Filmstrip Swiper scrollbar position */
.collection-products-grid.is-filmstrip {
  position: relative;
}
.gallerypro-grid.gallerypro-is-filmstrip .gallerypro-swiper-scrollbar {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto !important;
  width: 100% !important;
  z-index: 50;
}

.collection-product-item .product-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    background: #f2f2f2;
}

.swiper {
    width: 100%;
    height: 100%;
}

.collection-products-mode-filmstrip .swiper-slide {
    width: auto !important;
}

.alignfull {
    /* Pleine largeur WP/Gutenberg, force le bloc GalleryPro à s'extraire du conteneur */
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: visible !important;
}
/* Spécialisation pour GalleryPro : assure la largeur sur toutes racines pertinentes */
.product-grid-root.alignfull,
.collection-products-root.alignfull,
.product-slider-section.alignfull {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: visible !important;
}



/* Surcharge explicit fullwidth dans container */
.container .collection-products-root.gallerypro-fullwidth {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}
/* Fix : sortir le bloc GalleryPro pleine largeur de la contrainte .entry-content {max-width, padding} même en front.
   Reprend la logique alignfull WP dédiée (largeur viewport, centrage négatif) */
.page .entry-content > .product-grid-root.gallerypro-fullwidth {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* =======================
   GalleryPro GRID responsif
   ======================= */

/* ROOT: padding appliqué inline, largeur controlée par fullWidth/container */

.product-grid-root {
  width: 100%;
}

/* GRID principale */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap, 18px);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  padding-left: var(--gap, 18px);
  padding-right: var(--gap, 18px);
  margin: 0 auto;
  overflow-x: hidden;
}

.collection-products-root.alignfull .product-grid {
  width: 100vw !important;
  max-width: 100vw !important;
  left: 50%;
  transform: translateX(-50%);
  padding-left: var(--gap, 18px);
  padding-right: var(--gap, 18px);
  box-sizing: border-box;
  overflow-x: hidden;
}


/* Breakpoints : 2 colonnes sous 900px, 1 colonne sous 600px */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* CARTE PRODUIT (Grid) */
.card-extended-wrapper {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 10px rgba(0,0,0,0.12);
  overflow: hidden;
  position: relative;
  padding-bottom: 0.2rem;
  transition: transform 0.18s;
  display: flex;
  flex-direction: column;
  min-height: 340px;
    
}

.card-extended-wrapper:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.card-extended-wrapper img {
  width: 100%;
  display: block;
  height: 400px;
  object-fit: cover;
}

/* Quick view */
.quick-view {
  position: absolute;
  top: 1rem; left: 1rem;
  background: #fff;
  border-radius: 1.2rem;
  padding: 0.3rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
  border: none;
  z-index: 2;
  visibility: hidden;
}

/* Infos produit en bas de la carte */
.card-extended-information {
  margin-top: auto;
  background: #fff;
  border-radius: 0 0 1.2rem 1.2rem;
  padding: 0.7rem 1rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem;
}
.card-extended-information.simple {
  padding: 0.5rem 0.8rem;
  font-size: 1rem;
  background: #fff;
  border-radius: 0 0 1.2rem 1.2rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem;
}


.card-extended-information .subtitle {
  color: #666;
  font-size: 0.95rem;
  font-weight: 700;
  margin-right: 1.2rem;
}

.card-extended__title {
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  margin: 0 1.2rem 0 0;
}

.price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
}

/* === COLLECTION GALLERYPRO SLIDER CSS (remplace Swiper) === */
.product-slider-section {
  background-size: cover;
  background-position: center;
  transition: background-image 0.7s cubic-bezier(0.4,0,0.2,1);
  min-height: 60vh;
  color: #fff;
}
.collection-slider-cards {
  position: relative;
  min-height: 400px;
  overflow-x: hidden;
  overflow-y: visible;
  scrollbar-width: none;
  z-index: 20;
}

.collection-slider-card {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow: hidden;
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: scale(0.96) translateY(30px);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  outline: none;
}
.collection-slider-card.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  transform: scale(1) translateY(0);
  z-index: 2;
  margin-right: 24px; /* espace à droite de la tuile */
  align-self: center; /* centrage vertical dans le wrapper */
}

.quick-view {
  position: absolute;
  top: 1rem; left: 1rem;
  background: #fff;
  border-radius: 1.2rem;
  padding: 0.3rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
  border: none;
  z-index: 2;
}
.card-extended-information {
  margin-top: auto;
  background: #fff;
  border-radius: 0 0 1.2rem 1.2rem;
  padding: 1rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.collection-slider-pagination {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.7rem;
  justify-content: center;
}
.collection-slider-pagination span {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #bbb;
  opacity: 0.6;
  cursor: pointer;
  transition: background .2s, opacity .2s;
}
.collection-slider-pagination .active {
  background: #333;
  opacity: 1;
}
.collection-slider-arrow {
  background: #fff;
  border-radius: 50%;
  width: 2.8rem; height: 2.8rem;
  border: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
  cursor: pointer;
  z-index: 10;
}
.collection-products-root.collection-freemode .collection-slider-arrow {
  display: none !important;
}
.collection-slider-arrow.prev { left: -1.6rem; }
.collection-slider-arrow.next { right: 14.6rem; }
.collection-slider-arrow::after {
  content: '';
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  border: solid #333;
  border-width: 0 0.22rem 0.22rem 0;
  padding: 0.18rem;
}
.collection-slider-arrow.prev::after { transform: rotate(135deg); margin-left: 0.38rem; }
.collection-slider-arrow.next::after { transform: rotate(-45deg); margin-left: 0.6rem; }
@media (max-width: 900px) {
  .product-slider__content { flex-direction: column; gap: 2.5rem; }
  .product-slider__right { max-width: 98vw; }
  .collection-slider-arrow.prev { left: 0; }
  .collection-slider-arrow.next { right: 0; }
}
@media (max-width: 500px) {
  .product-slider__title { font-size: 1.7rem; }
  .product-slider__content { padding: 4rem 0.5rem; }
  .collection-slider-card img { height: 150px; }
}

.product-title , .card-extended__title {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: italic;
  font-size:20px;
  margin-left:5px;
}

.swiper-scrollbar-horizontal  {
        bottom:  -3px!important;
}


html :where(.wp-block) {

    max-width: 1400px;
}