/**
 * @file
 * Product styles
 *
 */

.product {
}
.product__header {
  background-color: var(--color-primary--x-clear);
  padding: 1rem;
}
.product__image img{
  margin: 0 auto 2rem;
}
.product__header h1{
  margin: 0;
}
.product__cta {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(200, 198, 215, 0.5);
  border-bottom: 1px solid rgba(200, 198, 215, 0.5);
}
.product__cta .cta__wrapper:first-child {
  margin-bottom: 2rem;
}
.product__body {
  padding: 2rem 1rem;
}
.product__header + .product__similar {
  padding: 2rem 1rem;
}
.product__description-ext h2 {
  margin-top: 0;
  padding-bottom: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid #D0D0D0;
  font-size: var(--heading-size-small);
}
.product__description-ext p {
  color: var(--color-neutral);
}
.product__stock h3{
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0;
}
.product__stock ul{
  padding: 0;
  margin: 0;
  list-style: none;
}
.product__reassurence {
  padding: 3rem 0;
  overflow-x: scroll;
}
.product__color {
  color: var(--color-primary--dark);
  margin-bottom: 1rem;
}
@media all and (min-width: 800px) {
  .product__header-wrapper {
    display: grid;
    grid-template-columns: repeat(2,calc(50% - 1rem));
    gap: 2rem;
  }
  .product--granit .product__image img{
    margin: 0 0 2rem auto;
  }
}
@media all and (min-width: 1000px) {
  .product__cta {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }
  .product__cta .cta__wrapper:first-child {
    margin-bottom: 0;
  }
  .product__body {
    padding: 4rem 0;
  }
  .product__header + .product__similar {
    padding: 4rem 0;
  }
}
@media all and (min-width: 1450px) {
  .product__reassurence {
    overflow-x: hidden;
  }
}


/**
 * Product Popin
 */

.product__popin {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(47, 45, 63, 0.3);
  align-items: center;
  justify-content: center;
  z-index: 999;
  display: none;
}
.product__popin.active {
  display: flex;
}
.product__popin-wrapper {
  background-color: var(--color-white);
  max-width: 550px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 3rem;
  width: 100%;
  position: relative;
}
.product__popin-title {
  text-align: center;
  font-weight: 700;
}
.product__popin-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.product__popin button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  overflow: hidden;
  width: 14px;
  height: 14px;
  text-indent: -999px;
  background-color: transparent;
  background-image: url("../../images/icons/close.svg");
  background-position: center;
  background-repeat: no-repeat;
  border: none;
}

/**
 * Product Teaser
 */

.product-teaser {
  padding: 0 0.5rem 0;
  min-width: 256px;
  max-width: 356px;
}
.product-teaser__title p {
  font-size: var(--heading-size-small);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}
.product-teaser__image {
  position: relative;

  /**temporary fix **/
  position: relative;
  display: block;
  width: 100%;
  height: 285px;
  /**end of temporary fix*/
}
/* .product-teaser__image::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 226px;
  height: 195px;
  border: 1px solid rgba(200, 198, 215, 0.5);
} */

/* Image Rebillon */
.product-teaser__image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../../images/misc/fancyback.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain; 
  pointer-events: none;
}
.product-teaser__image--small {
  margin-bottom: 1.625rem;
}
.product-teaser__image--small::before {
  width: 147.92px;
  height: 159.2px;
}
.product-teaser__image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.product-teaser__cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0 0;
}


/**
 * Product Stock
 */

.product-stock {
  padding: 1.5rem 0 1.5rem;
  border-bottom: 1px solid rgba(194, 199, 214, 0.5);
}
.product-stock__title p{
  font-weight: 700;
  color: var(--color-primary--dark);
  font-size: var(--heading-size-small);
}
.product-stock__image img {
  margin: 0 auto;
}
.product-stock__content {
  color: var(--color-primary--dark);
  margin: 0.5rem 0;
}
.product-stock__content p {
  color: var(--color-primary--dark);
  margin: 0;
}
.product-stock__content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.product-stock__cta .cta__wrapper:first-child{
  margin: 0 0 0.75rem;
}
@media all and (min-width: 800px) {
  .product-stock {
    display: grid;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    grid-template-columns: 15% 20% 35% 30%;
  }
  .product-stock__content,
  .product-stock__content p {
    font-size: .9rem;
  }
}
@media all and (min-width: 1000px) {
  .product-stock {
    gap: 1rem;
  }
}
@media all and (min-width: 1200px) {
  .product-stock__content,
  .product-stock__content p {
    font-size: 1rem;
  }
}


/**
 * Product conigurator
 */

.product__content,
.product__configurator {
  display: none;
}
.product__content.active,
.product__configurator.active {
  display: block;
}
.product__configurator iframe {
  width: calc(100vw - var(--scrollbar-width, 0px));
  height: 70vh;
}
.product__configurator-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: end;
  padding: 1rem 2rem;
  background-color: var(--color-primary--1);
}
.product__configurator-close {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  color: #000;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
#configurator-trigger {
  cursor: pointer;
}
