/* ==========================================
   BRAND / HOMEPAGE LINK
========================================== */

.brand {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.brand:hover {
  text-decoration: none;
}

.footer-logo {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}


/* ==========================================
   PRODUCT IMAGE
========================================== */

.product-image {
  cursor: zoom-in;
}


/* ==========================================
   IMAGE ZOOM MODAL
========================================== */

.image-modal {
  position: fixed;
  inset: 0;

  z-index: 9999;

  background: rgba(0, 0, 0, 0.94);

  display: flex;

  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.image-modal.hidden {
  display: none;
}


/* ==========================================
   IMAGE CONTAINER
========================================== */

.zoom-image-container {

  width: 100%;
  height: 100%;

  display: flex;

  align-items: center;
  justify-content: center;

  overflow: auto;

  padding: 40px 90px;

  box-sizing: border-box;

}


/* ==========================================
   ZOOMED IMAGE
========================================== */

.zoomed-image {

  max-width: 90vw;
  max-height: 90vh;

  width: auto;
  height: auto;

  object-fit: contain;

  transition:
    transform 0.2s ease;

  cursor: zoom-in;

  user-select: none;

}


/* ==========================================
   CLOSE BUTTON
========================================== */

.zoom-close {

  position: absolute;

  top: 20px;
  right: 25px;

  width: 45px;
  height: 45px;

  border: none;

  border-radius: 50%;

  background: rgba(
    255,
    255,
    255,
    0.95
  );

  color: #333;

  font-size: 30px;

  cursor: pointer;

  z-index: 10001;

}


/* ==========================================
   ZOOM CONTROLS
========================================== */

.zoom-controls {

  position: absolute;

  right: 25px;
  bottom: 30px;

  display: flex;

  flex-direction: column;

  gap: 10px;

  z-index: 10001;

}


.zoom-control {

  width: 45px;
  height: 45px;

  border: none;

  border-radius: 50%;

  background: rgba(
    255,
    255,
    255,
    0.95
  );

  color: #333;

  font-size: 28px;

  cursor: pointer;

}


.zoom-control:hover,
.zoom-close:hover {

  background: #ffffff;

}


/* ==========================================
   MODAL PREVIOUS / NEXT
========================================== */

.modal-nav {

  position: absolute;

  top: 50%;

  transform:
    translateY(-50%);

  width: 50px;
  height: 50px;

  border: none;

  border-radius: 50%;

  background: rgba(
    255,
    255,
    255,
    0.92
  );

  color: #333;

  font-size: 40px;

  line-height: 1;

  cursor: pointer;

  z-index: 10001;

  display: flex;

  align-items: center;
  justify-content: center;

}


.modal-prev {
  left: 20px;
}


.modal-next {
  right: 20px;
}


.modal-nav:hover {

  background: #ffffff;

}


/* ==========================================
   PRICE
========================================== */

.price-row {

  display: flex;

  align-items: center;

  gap: 10px;

  margin-top: 8px;

}


.old-price {

  color: #888;

  text-decoration: line-through;

  font-size: 14px;

}


.discount {

  color: #c52b63;

  font-size: 12px;

  font-weight: 700;

  background: #fff0f5;

  padding: 4px 7px;

  border-radius: 5px;

}


.selling-price {

  font-size: 23px;

  font-weight: 800;

  margin: 5px 0 8px;

}


.size-info {

  color: #555;

  font-size: 14px;

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 650px) {

  .zoom-image-container {

    padding: 50px 55px;

  }


  .zoomed-image {

    max-width: 96vw;

    max-height: 85vh;

  }


  .zoom-close {

    top: 12px;

    right: 12px;

  }


  .zoom-controls {

    right: 12px;

    bottom: 20px;

  }


  .modal-nav {

    width: 40px;
    height: 40px;

    font-size: 32px;

  }


  .modal-prev {

    left: 8px;

  }


  .modal-next {

    right: 8px;

  }

}


@media (max-width: 380px) {

  .modal-nav {

    width: 35px;
    height: 35px;

    font-size: 28px;

  }

}
