:root {
  --green: rgb(0, 166, 160);
  --blue: rgb(50, 50, 195);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #17183b;
  height: 100vh;
}
header {
  overflow: hidden;
}
.cta a {
  color: white;
  text-decoration: none;
}
/*navbar*/
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgb(207, 207, 207);
  height: 80px;
  padding: 0 20px;
  position: relative;
}
.logo p {
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  list-style: none;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
}
nav ul li {
  cursor: pointer;
  font-size: 14px;
  position: relative;
}
nav ul li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #17183b;
  transition: width 0.2s ease-in-out;
}
nav ul li:hover::after {
  width: 100%;
}
/* .searchBar form input {
  padding: 5px 10px;
  border: 1px solid rgba(0, 0, 0, 0.301);
  display: none;
  transition: 0.2s ease-in-out;
} */

i {
  cursor: pointer;
}
.iconsNav {
  display: flex;
  justify-content: center;
  align-items: center;
}
.iconsNav i {
  padding: 20px;
}
.fa-bars {
  display: none;
}
.cart {
  transition: 0.3s ease-in-out;
}
.cartAddContainer {
  width: 400px;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 30px;
  border: 2px solid var(--green);
  padding: 15px;
  position: absolute;
  top: 100px;
  right: 20px;
  z-index: -1;
  /* transform: translateX(450px); */
  transition: 0.3s ease-in-out;
  opacity: 0;
}
.displayCart {
  opacity: 1;
  z-index: 10;
}
.cartAdd {
  color: var(--green);
}
.quantityCartContainer {
  font-weight: bold;
}

/*Page produit*/
.category-return2 {
  display: none;
}
.productPage {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;

  padding: 30px 5vw 0;
}
.fsMin {
  font-size: 0.8rem;
}
.category {
  font-weight: 600;
}
.category span {
  color: rgba(0, 0, 0, 0.301);
}
.product {
  display: flex;
  flex-direction: column;

  gap: 15px;
  width: 40vw;
}
h1 {
  font-size: 44px;
  line-height: 56px;
  font-weight: 700;
}
.price-rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}
.price-rating img {
  height: 20px;
}
/*coloris*/
.coloris {
  display: flex;
  justify-content: start;
  gap: 20px;
}
.coloris div {
  height: 20px;
  width: 20px;
  background: black;
  border-radius: 30px;
}
.coloris div:nth-child(2) {
  background: rgb(50, 50, 195);
}
.coloris div:nth-child(3) {
  background: var(--green);
}
.coloris div:nth-child(4) {
  background: rgb(71, 36, 7);
}

/*cta and quantity*/
.buttonCta {
  display: flex;
  gap: 20px;
}
.buttonCta button,
.buttonCta div {
  font-size: 1rem;
  font-weight: bold;
  padding: 15px 0;
  width: 150px;
}
.quantity {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  border: 1px solid lightgray;
}
.quantity i {
  padding: 5px;
}
.cta {
  color: white;
  background: var(--green);
  border: none;
  transition: 0.2s ease-in-out;
}
.cta:hover {
  transform: scale(1.1);
}
/*wishlist and social medias*/
.wishlist-media {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wishlist,
.medias {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.medias {
  gap: 20px;
}
a {
  color: #17183b;
}
.wishlist {
  color: var(--green);
  cursor: pointer;
  font-weight: 500;
}
/* .emptyHearth {
  display: block;
}
.fullHearth {
  display: none;
} */

/*Right Part : Image*/
.switchImgContainer {
  position: absolute;
  right: 10vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.switchImg {
  width: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.switchImg i {
  padding: 10px;
}
.imgNumberContainer {
  font-weight: bold;
  font-size: 1.3rem;
}
.imgNumberContainer span {
  font-weight: normal;
  color: rgb(156, 156, 156);
}
.rightPart {
  display: flex;
  flex-direction: column;
}
.productImage {
  overflow: hidden;
}
.mainImage {
  height: 350px;
  position: relative;
  transition: opacity 1s ease-in-out;
}
/*mainImage opacity animation*/
@keyframes displayImg {
  0% {
    opacity: 0;
    transform: translateX(300px);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
.displayImg {
  animation: displayImg 0.4s ease-in-out;
}
.imagesContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.imagesContainer div {
  height: 80px;
  width: 80px;
  border: 1px solid lightgray;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}
.clickedImg {
  border: 2px solid var(--green);
}

.imagesContainer div img {
  object-fit: cover;
  height: 65px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*responsive*/
.iconsNav .burgerLogo {
  display: none;
}
.navBurger {
  width: 190px;
  /* box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
    rgba(0, 0, 0, 0.3) 0px 30px 60px -30px,
    rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset; */
  box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
  background: white;
  position: absolute;
  top: 80px;
  right: 20px;
  text-align: center;
  z-index: 100;
  display: none;
  transition: 0.4s ease-in-out;
}
.navBurger ul li {
  font-size: 1.5rem;
  font-weight: 400;
  list-style: none;
  width: 100%;
  transition: 0.3s ease-in-out;
  padding: 5px;
  cursor: pointer;
  /* border-bottom: 2px solid var(--green); */
}
/* .navBurger ul :nth-child(5) {
  border-bottom: none;
} */
.navBurger ul li:hover {
  background: var(--green);
  color: white;
}
.displayBurger {
  display: block;
}
@media screen and (max-width: 1207px) {
  .productPage {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding-bottom: 50px;
  }
  .product {
    width: 80%;
    margin: 0 auto;
  }
  .category-return {
    display: none;
  }
  .category-return2 {
    display: block;
    padding: 30px;
  }
  .category-return2 i {
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 850px) {
  .iconsNav .burgerLogo {
    display: block;
  }
  nav ul {
    display: none;
  }

  .fa-bars {
    display: flex;
  }
  .cartAddContainer {
    width: 340px;
    position: absolute;

    right: 10px;
    gap: 10px;
  }
}

@media screen and (max-width: 750px) {
  /* modifier taille d'image pour responsive */
  .mainImage {
    height: 250px;
  }
}
@media screen and (max-width: 750px) {
  h1 {
    font-size: 32px;
    line-height: 46px;
  }
  .mainImage {
    height: 200px;
  }
}
@media screen and (max-width: 470px) {
  h1 {
    font-size: 25px;
    line-height: 36px;
  }
}
