/* ===================================== Products Pages ===================================== */

.product-name {
  font-family: "Figtree", sans-serif;
  color: #707070;
  font-weight: 300;
  font-size: 1.8em;
  padding-left: 1.2rem;
}

.productBox a {
  text-decoration: none !important;
}
.product {
  height: 65px;
  background-color: #fff;
  transition: all 0.5s ease;
  border-radius: 0 0 5px 5px;
  display: flex;
}
.product-Lside {
  width: calc(100% - 50px);
  display: flex;
  align-items: center;
  height: 100%;
  background-color: white;
  border-radius: 0 0 0px 5px;
  transition: all 0.5s ease;
}
.product-Rside {
  width: calc(15% + 10px);
  height: 100%;
  background-color: #616161a1;
  border-left: 47px solid white;
  border-bottom: 65px solid transparent;
  border-radius: 0 0 5px 0px;
  transition: all 0.5s ease;
}

.productBox:hover .product-Lside {
  background-color: gray;
}
.productBox:hover .product-Rside {
  background-color: gray;
  border-left: 47px solid gray;
}
.productBox:hover .product-name {
  color: white;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
}

.card:before {
  position: absolute;
  content: "";
  width: 80%;
  height: 220%;
  background: linear-gradient(
    135deg,
    rgba(20, 25, 30, 0.95) 0%,
    rgba(30, 35, 40, 0.95) 30%,
    rgba(56, 66, 76, 0.95) 50%,
    rgba(30, 35, 40, 0.95) 70%,
    rgba(20, 25, 30, 0.95) 100%
  );

  top: -60%;
  left: -100%;
  z-index: 1;
  transform: rotate(25deg);
  transform-origin: center top 0;
  transition: 1s;
}

.card:hover:before {
  left: 10%;
  border-radius: 0 !important;
}

.card img {
  height: 300px;
  width: 100%;
  object-fit: cover;
  transform-origin: center center;
  border-radius: 0 !important;
}
.card-description {
  width: 100%;
  padding: 0 30px;
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 2;
  transition: 1.1s;
}
.card-description .description {
  width: 60%;
  font-size: 0.9rem;
  color: #fff;
}

.card-btn {
  width: 100%;
  padding: 0 30px;
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 2;
  transition: 1.1s;
}
.card-btn .btn {
  font-family: "Figtree", sans-serif;
  background-color: #fa55aa;
  border-radius: 1000px;
  padding: 6px 12px;
  color: white;
}
.card:hover .card-description {
  top: 15%;
}
.card:hover .card-btn {
  top: 70%;
}
.card-btn .btn:hover {
  background: none;
  border: 1px solid #fa55aa;
  color: white;
}

/* ===================================== Product Detail Pages ===================================== */

.product-detail-heading {
  text-align: center;
  font-weight: 600;
  padding-top: 3rem;
  padding-bottom: 1.5rem;
  margin-bottom: 0;
}

.product-description {
  padding-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 3rem;
}

.product-description p {
  opacity: 75%;
  margin-bottom: 0;
  padding-inline: 0;
}

.product-description h3 {
  letter-spacing: -0.3px;
  padding-bottom: 0.8rem;
  padding-inline: 0;
  margin-bottom: 0;
}

.product-contact {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.image-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  padding-top: 1rem;
}

.image-slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.image-slider img.active {
  opacity: 1;
  z-index: 1;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.project-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0;
}

.project-content p {
  opacity: 70%;
  font-style: italic;
}

.check-icon {
  width: 40px;
  height: 40px;
  padding: 0.5rem;
  background: linear-gradient(
    135deg,
    #1d2329 0%,
    #252a30 30%,
    #32383f 50%,
    #252a30 70%,
    #1d2329 100%
  );
}

.image-block {
  width: 100%;
  height: 100%;
}

.image-grid {
  padding-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
}

.image-container {
  background: linear-gradient(
    135deg,
    #2a3037 0%,
    #353c45 30%,
    #454d58 50%,
    #353c45 70%,
    #2a3037 100%
  );
}

/* ===================================== Responsive ===================================== */

@media (max-width: 992px) {
  .product-detail-heading {
    padding-top: 1.5rem;
  }

  .product-description {
    padding-top: 1.5rem;
  }

  .image-grid {
    padding-top: 1.5rem;
  }

  .card:before {
    width: 100%;
  }

  .card-description .description {
    width: 50%;
    font-size: 0.8rem;
    color: #fff;
  }

  .product-name {
    font-size: 1.2em;
  }

  .card:before {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .image-slider {
    height: 350px;
    padding-top: 0rem;
  }

  .product-contact {
    flex-direction: column;
  }

  .product-description {
    grid-template-columns: 1fr;
  }

  .product-description p {
    padding-inline: 10px;
  }

  .product-description h3 {
    padding-inline: 10px;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .project-content {
    padding: 1.2rem;
  }
}
