.product-section {
  padding-top: 6rem;
}
.product {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.product-img-box {
  overflow: hidden;
  border-radius: 30px;
}

.product-info {
  line-height: 2;
}

.describe {
  line-height: 1.5;
}

.product-info h1 {
  font-weight: 600;
  font-size: 2rem;
}

.product-info hr {
  width: 550px;
  border: solid 1px var(--primary-color-tints-3);
}

.product-img {
  width: 100%;
  height: 100%;
}

/* QUANTITY SELECTOR */
.product-input {
  margin: 2rem 0;
}

.form-control {
  padding: 0 3rem;
  height: 30px;
  width: 70px;
  font-size: 1.8rem;
}

.quantity-input {
  border-radius: 50px !important;
  padding: 0.5rem;
}

.quantity-input button {
  height: 30px !important;
  font-size: 1.8rem;
  border-radius: 50px;
}

.quantity-input button:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-wrapper {
  position: relative;
  display: inline-block;
}

.view-cart-btn {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 0;
}

.view-cart-transition {
  opacity: 0;
  transform: translateX(-10px) scale(0.9);
  transition: all 0.4s ease;
  pointer-events: none;
}

.view-cart-transition.show {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

/* When active, reveal the View Cart button */
.btn-wrapper.show-view .view-cart-btn {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.btn-wrapper.show-view .btn-action {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* PRODUCT DESCRIPTION */
.delivery,
.product-description h3 {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 1.8rem;
}

.product-description {
  margin-top: 2rem;
  text-align: justify;
}

.customer-reviews {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sort-reveiews {
  height: 20px;
}

/*  PRODUCTS */
.related-section {
  margin: 6rem 0;
}
.sub-sections h2 {
  font-size: 2rem;
  padding: 2rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

#viewCartBtn {
  border-radius: 50px !important;
}

.related-products-list {
  display: flex;
  gap: 2rem;
}
.related-products-list .product-info h1 {
  font-size: 1.6rem;
}

.related-products-list .col-md-3 {
  width: 270px !important;
}

/* @ */
@media (max-width: 640px) {
  .product {
    display: flex;
    flex-direction: column;
  }

  .product-info h1 {
    font-size: 2rem;
  }

  .product-info p {
    font-size: 1.6rem;
  }

  .sub-sections h2 {
    font-size: 2.4rem;
    padding: 0;
    font-weight: 600;
    margin-bottom: 4rem;
    text-align: center;
  }
}

@media (max-width: 30em) {
  .product-section {
    padding: 6rem 2rem 0;
  }
  .product-section h1 {
    font-size: 2rem !important;
  }

  .related-section {
    margin: 2rem 0 3rem !important;
  }
}
@media (max-width: 29em) {
  .product-section h1 {
    font-size: 2rem !important;
  }
}
@media (max-width: 22.5em) {
  .product-section h1 {
    font-size: 2rem !important;
  }
}
