/* PRODUIT INFORMATION */
.produit-information {

  .image-cover {
    margin: 0 auto;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;

    .image-couv {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 8px;
      transition: transform 0.5s ease;
    }

    &:hover .image-couv {
      transform: scale(1.5);
    }
  }

  .gamme-section {
    text-align: center;
    color: #666;

    .gamme-img {
      cursor: pointer;
      border-radius: 6px;
      transition: transform 0.2s ease-in-out;
      &:hover {
        transform: scale(1.03);
      }
    }
  }

  .gamme-section {
    text-align: center;
    color: #666;

    .gamme-img {
      cursor: pointer;
      border-radius: 6px;
      transition: transform 0.2s ease-in-out;
      &:hover {
        transform: scale(1.03);
      }
    }
  }
}
.carousel-item img {
  border-radius: 10px;
  max-height: 90vh;
  object-fit: contain;
}

.carousel{
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    filter: invert(1) grayscale(100);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    padding: 10px;

  }
}

.fiche-tech {
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.2s ease-in-out;
  &:hover {
    transform: scale(1.03);
  }
}

/** BOUTONS SELECTION COULEUR */
.btn-couleur-couleur {
    width: 32px;
    height: 32px;
    border: 2px solid #aaa;
    border-radius:50%;
    cursor:pointer;
}

.btn-couleur-filtre-select {
    border: 3px solid #000;
}


/** LISTE PRODUITS */

.produit-cards {
  .card {
    /* box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px; */
    border: none;
    padding: 15px;
    text-align: center;
    align-items: center;
    

    .image {
      // width: 150px;
      // height: 150px;
      margin: 0 auto 5px;
      border-radius: 8px;

      .content {
        font-size: 12px;
        position: absolute;
        left: 5px;
        top: 5px;
      }

      .content-prix {
        font-size: 16px;
        position: absolute;
        right: 5px;
        bottom: 5px;
        display: flex;
        flex-direction: column;
      }

    }

    .card-panier {
      // width: 200px;
      justify-content: start;

      .detail-prix {
        position: absolute;
        right: 5px;
        bottom: 0px;
      }
    }

    .img-thumbnail {
      cursor: pointer;
    }

    &.indisponible {
      overflow: hidden;

      .card-panier {
        display: none;
      }

      &::after {
        content: attr(data-indisponible);
        position: absolute;
        top: 18px;
        right: -28px;
        width: 130px;
        background: #b91c1c;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        text-align: center;
        padding: 5px 0;
        transform: rotate(45deg);
        z-index: 5;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
      }
    }

   

  }
}

/* Panier */
#panier-bottom {
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff8f0;
  padding: 0.65rem 0.7rem 0.65rem 1.4rem;
  width: min(920px, calc(100vw - 2rem));
  position: fixed;
  z-index: 1030;
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;

  .panier-bottom-summary {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 170px;
    padding: 0;
    background: transparent;
    color: #fff8f0;
  }

  .panier-bottom-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 245, 232, 0.45);
    font-weight: 600;
  }

  .panier-bottom-total {
    display: flex;
    align-items: baseline;
    gap: 0.28rem;
    font-size: clamp(1.15rem, 1.7vw, 1.55rem);
    font-weight: 600;
    line-height: 1;
    color: #fff8f0;
    letter-spacing: -0.01em;
  }

  .panier-bottom-currency {
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(255, 245, 232, 0.78);
  }

  .panier-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
  }

  .panier-bottom-cta {
    display: flex;
    align-items: center;
  }

  .panier-bottom-menu {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
  }

  .panier-bottom-menu-toggle {
    background: rgba(255, 245, 232, 0.07);
    border-color: rgba(255, 245, 232, 0.15);
    color: rgba(255, 245, 232, 0.72);
  }

  .panier-bottom-menu-toggle svg:last-child {
    transition: transform 0.18s ease;
  }

  .panier-bottom-menu.is-open .panier-bottom-menu-toggle svg:last-child {
    transform: rotate(180deg);
  }

  .panier-bottom-menu-panel {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.7rem);
    width: min(320px, calc(100vw - 3rem));
    padding: 0.55rem;
    border-radius: 16px;
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 20;
  }

  .panier-bottom-menu.is-open .panier-bottom-menu-panel {
    display: block;
  }

  .panier-bottom-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.56rem;
    padding: 0.56rem 0.75rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 245, 232, 0.85);
    font-size: 0.82rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease;

    &:hover {
      background: rgba(255, 245, 232, 0.07);
    }
  }

  .panier-bottom-menu-item-create {
    color: rgba(255, 245, 232, 0.45);
  }

  .panier-bottom-menu-item-icon {
    width: 13px;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1;
  }

  .panier-bottom-menu-divider {
    height: 1px;
    margin: 0.35rem 0.25rem;
    background: rgba(255, 255, 255, 0.08);
  }

  .panier-bottom-list-existing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.45rem;
    margin-top: 0.45rem;
  }

  .panier-bottom-menu-empty {
    margin: 0.6rem 0 0;
    font-size: 0.8rem;
    color: rgba(255, 245, 232, 0.58);
  }

  .panier-bottom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.62rem 1rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.82rem;
    white-space: nowrap;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    position: relative;

    &:hover {
      transform: translateY(-1px);
    }
  }

  .panier-bottom-btn-main {
    min-width: 168px;
    background: #d4b896;
    border-color: transparent;
    color: #2a1f14;
    box-shadow: none;
  }

  .panier-bottom-btn:not(.panier-bottom-btn-main) {
    background: rgba(255, 245, 232, 0.07);
    border-color: rgba(255, 245, 232, 0.15);
    color: rgba(255, 245, 232, 0.85);
  }

  .panier-bottom-btn-secondary {
    box-shadow: none;
  }

  .panier-bottom-btn-ghost {
    background: rgba(255, 245, 232, 0.04);
    border-color: rgba(255, 245, 232, 0.12);
    color: rgba(255, 245, 232, 0.72);
    opacity: 1;
  }

  .panier-bottom-select {
    width: 100%;
    min-height: 42px;
    border-radius: 999px;
    padding-inline: 0.95rem 2rem;
    border-color: rgba(255, 245, 232, 0.15);
    background-color: rgba(255, 245, 232, 0.08);
    color: #fff8f0;
    font-weight: 500;
    font-size: 0.82rem;
  }
}

.panier-qtt {
  max-width: 50px;
  padding: 4px;
  text-align: center;
}

#view-prix-produit {
  background: #eee;
  border-radius: 30px 0 30px 0;
  padding: 30px 0;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 600;
  height: fit-content;
}

/** IMPORTATION PRODUIT */
.import-produit {
  #json-output {
    height: 55vh;
    margin: 1rem 0px;
    padding: 1rem;
    border: solid 1px black;
  }

  .categories-template {
    height: 65vh;
    overflow-y: scroll;
  }
}

@media screen and (max-width: 765px) {
  .produit-information .image-cover {
    margin-bottom: 20px;
  }

  #panier-bottom {
    width: calc(100vw - 1rem);
    bottom: 0.5rem;
    padding: 0.95rem;
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;

    .panier-bottom-summary {
      min-width: 0;
      padding: 0 0.2rem;
    }

    .panier-bottom-actions {
      justify-content: stretch;
    }

    .panier-bottom-cta,
    .panier-bottom-menu,
    .panier-bottom-menu-panel,
    .panier-bottom-list-existing,
    .panier-bottom-btn,
    .panier-bottom-select {
      width: 100%;
    }

    .panier-bottom-menu {
      align-items: stretch;
    }

    .panier-bottom-menu-panel {
      position: static;
      bottom: auto;
      right: auto;
      padding: 0.75rem;
      border-radius: 18px;
    }

    .panier-bottom-list-existing {
      grid-template-columns: 1fr;
    }

    .panier-bottom-btn-main {
      min-width: 0;
    }
  }
}


