/* ===========================
   LP – FILTRE PRODUITS
   =========================== */

/* Reset utile */
.lp-products-grid *,
#lp-drawer * {
    box-sizing: border-box;
}

/* ===========================
   MENU FILTRABLE
   =========================== */
.lp-menu-wrapper {
  position: sticky;
  top: 00px;
  background: #fff;
  z-index: 999;
  padding: 6px 0;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.lp-menu-filtrable {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.lp-menu-filtrable a {
  padding: 8px 16px;
  background: #f5f5f5;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: #333 !important;
  transition: all 0.2s ease;
}

.lp-menu-filtrable a:hover,
.lp-menu-filtrable a.active {
  background: #ec7da2;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* =========================
   GRID
   ========================= */
.lp-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 40px 0;
}

@media (max-width: 1024px) {
  .lp-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* =========================
   CARD
   ========================= */
.lp-product-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ececec;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.lp-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* =========================
   IMAGE
   ========================= */
.lp-product-image {
  background: transparent;
  /*padding: 0px;*/
  text-align: center;
}

.lp-product-image img {
  max-width: 100%;
  height: auto;
  /*border-radius: 0px 0px 0px 0px;*/
  object-fit: cover;
}

/* =========================
   INFO
   ========================= */
.lp-product-info {
  padding: 18px;
  text-align: center;
}

.lp-product-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #3d3a44;
  padding-left: 15px;
}

.lp-product-price {
  font-size: 18px;
  font-weight: 700;
  color: #ec7da2;
  margin-bottom: 10px;
  padding-left: 15px;   
}

/* =========================
   CTA
   ========================= */
.lp-product-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #ff6699;
}

/* =========================
   DRAWER
   ========================= */
.lp-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.lp-drawer.active {
  display: block;
}

.lp-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,5);
}

.lp-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90%;
  height: 100%;
  background: #fff;
  padding: 24px;
  overflow-y: auto;
  animation: slideIn .35s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.lp-drawer-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  background-color: none;
  border: none;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .lp-drawer-panel {
    width: 100%;
  }
}

/* Drawer global */
.lp-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

/* Overlay */
.lp-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.99);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Panneau */
.lp-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90%;
  height: 100%;
  background: #fff;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

/* Ouvert */
.lp-drawer.open {
  pointer-events: auto;
}

.lp-drawer.open .lp-drawer-overlay {
  opacity: 1;
}

.lp-drawer.open .lp-drawer-panel {
  transform: translateX(0);
}

/* Bouton fermeture */
.lp-drawer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ec7da2;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.lp-product-card {
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
	text-align:center;
	padding-bottom:15px;
}

#lp-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    z-index: 9998;
}

#lp-drawer-overlay.open {
    opacity: 1;
    pointer-events: all;
}

#lp-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: right .3s;
    padding: 20px;
}

#lp-drawer.open {
    right: 0;
}

#lp-drawer-close {
	background-color: #fff !important;
    color: #3d3a44;
    font-size: 56px;
    padding: 0;
	border:none;
}

.lp-drawer-product img {
    max-width: 100%;
    border-radius: 12px;
}

.lp-drawer-price {
    font-size: 20px;
    font-weight: 600;
    margin: 12px 0;
}

.lp-drawer-desc {
    margin-bottom: 16px;
}

