/* =========================================================
   PRODUCT DETAILS MODAL
========================================================= */

.product-details-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.product-details-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(74, 25, 50, 0.58);
  backdrop-filter: blur(7px);
}

.product-details-card {
  position: relative;
  width: min(900px, 96vw);
  height: min(540px, 90vh);

  display: grid;
  grid-template-columns: 50% 50%;

  overflow: hidden;

  border-radius: 28px;

  background: #fff8fb;

  box-shadow:
    0 25px 70px rgba(52, 16, 36, 0.32);

  transform: scale(0.96);
  opacity: 0;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.product-details-modal.show
.product-details-card {
  transform: scale(1);
  opacity: 1;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.product-details-close {
  position: absolute;

  top: 14px;
  right: 14px;

  z-index: 10;

  width: 42px;
  height: 42px;

  border: 0;
  border-radius: 50%;

  background: #ffffff;

  color: #4a1932;

  font-size: 28px;
  font-weight: 700;

  line-height: 1;

  cursor: pointer;

  box-shadow:
    0 7px 20px rgba(74, 25, 50, 0.12);

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.product-details-close:hover {
  transform: rotate(90deg);
  background: #ffeaf1;
}


/* =========================================================
   LEFT IMAGE AREA
========================================================= */

.product-details-image {
  position: relative;

  min-width: 0;
  min-height: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 22px;

  background: #ffe7f0;

  overflow: hidden;
}


/* =========================================================
   MAIN IMAGE
========================================================= */

.product-details-gallery {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 12px;
}


.product-details-main-image {
  width: 100%;
  flex: 1;

  min-height: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}


.product-details-main-image img {
  display: block;

  width: 100%;
  height: 100%;

  /*
    IMPORTANT:
    contain = show the COMPLETE product image
    without cropping.
  */

  object-fit: contain;

  object-position: center;

  max-width: 100%;
  max-height: 100%;
}


/* =========================================================
   THUMBNAILS
========================================================= */

.product-details-thumbnails {
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  gap: 9px;

  flex-shrink: 0;
}


.product-details-thumbnail {
  width: 58px;
  height: 58px;

  padding: 3px;

  border: 2px solid transparent;

  border-radius: 10px;

  background: #ffffff;

  overflow: hidden;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}


.product-details-thumbnail:hover {
  transform: translateY(-2px);
}


.product-details-thumbnail.active {
  border-color: #f16099;
}


.product-details-thumbnail img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;

  object-position: center;
}


/* =========================================================
   NO IMAGE
========================================================= */

.details-image-fallback {
  width: 100%;
  height: 100%;

  display: grid;
  place-items: center;

  font-size: 90px;
}


/* =========================================================
   RIGHT CONTENT
========================================================= */

.product-details-content {
  min-width: 0;

  padding: 55px 42px 35px;

  overflow-y: auto;

  background: #fff8fb;
}


.product-details-content .product-tag {
  display: block;

  margin-bottom: 8px;

  color: #d94882;

  font-size: 10px;

  letter-spacing: 0.12em;

  font-weight: 900;

  text-transform: uppercase;
}


.product-details-content h2 {
  margin: 0 0 20px;

  max-width: 480px;

  color: #4a1932;

  font:
    800 clamp(32px, 4vw, 48px) / 1.02
    "Baloo 2",
    sans-serif;

  letter-spacing: -0.035em;
}


.product-full-description {
  margin: 0 0 18px;

  color: #765b6c;

  font-size: 13px;

  line-height: 1.55;
}


/* =========================================================
   DETAILS
========================================================= */

.product-detail-list {
  border-top: 1px solid #f3cbdc;
}


.detail-row {
  min-height: 42px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  border-bottom: 1px solid #f3cbdc;
}


.detail-row span {
  color: #765b6c;

  font-size: 11px;

  font-weight: 700;
}


.detail-row strong {
  color: #4a1932;

  font-size: 12px;

  text-align: right;
}


/* =========================================================
   CARTON QUANTITY
========================================================= */

.enquiry-quantity-box {
  margin-top: 22px;
}


.enquiry-quantity-box > label {
  display: block;

  margin-bottom: 7px;

  color: #4a1932;

  font-size: 13px;

  font-weight: 700;
}


.quantity-control {
  display: inline-flex;

  align-items: center;

  border: 1px solid #efc5d8;

  border-radius: 10px;

  overflow: hidden;

  background: #ffffff;
}


.quantity-control button {
  width: 38px;
  height: 34px;

  border: 0;

  background: #fff1f6;

  color: #4a1932;

  font-size: 18px;

  cursor: pointer;
}


.quantity-control button:hover {
  background: #ffe0eb;
}


.quantity-control input {
  width: 80px;
  height: 34px;

  border: 0;

  border-left: 1px solid #efc5d8;
  border-right: 1px solid #efc5d8;

  outline: none;

  text-align: center;

  font-family: inherit;

  color: #4a1932;
}


.enquiry-total-pcs {
  margin: 8px 0 0;

  color: #765b6c;

  font-size: 12px;
}


/* =========================================================
   ADD TO ENQUIRY BUTTON
========================================================= */

.add-to-enquiry-button {
  margin-top: 20px;

  border: 0;

  cursor: pointer;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 750px) {

  .product-details-overlay {
    padding: 12px;
  }


  .product-details-card {

    width: 100%;

    height: 94vh;

    max-height: 700px;

    grid-template-columns: 1fr;

    grid-template-rows: 52% 48%;

    border-radius: 22px;
  }


  .product-details-image {

    padding: 15px;
  }


  .product-details-content {

    padding: 28px 24px 25px;
  }


  .product-details-content h2 {

    font-size: 32px;

    margin-bottom: 14px;
  }


  .product-details-main-image {

    min-height: 0;
  }


  .product-details-thumbnail {

    width: 52px;
    height: 52px;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

  .product-details-card {

    grid-template-rows: 48% 52%;

    height: 95vh;

    border-radius: 20px;
  }


  .product-details-image {

    padding: 10px;
  }


  .product-details-content {

    padding: 23px 18px;
  }


  .product-details-content h2 {

    font-size: 29px;
  }


  .detail-row {

    min-height: 38px;
  }


  .detail-row span,
  .detail-row strong {

    font-size: 10px;
  }

}