@import url("./navbar.css");

.banner-btn:hover {
  background-color: #caa35c;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Modal content */
.modal-content {
  width: 100%;
  max-width: 700px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90%;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1rem 1rem 0;
}

.modal-header i {
  cursor: pointer;
  color: #000;
  font-size: 24px;
  transform: rotate(45deg);
}

.modal-body {
  padding: 1rem;
  overflow-y: auto;
  flex-grow: 1;
}

/* Close button */
.close-btn {
  background-color: #101f2e;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
}

.close-btn:hover {
  background-color: #caa35c;
}

.openModalBtn {
  cursor: pointer;
}

.product-slider {
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

.main-image {
  width: 100%;
  max-height: 25rem;
  height: auto;
  border: 2px solid #ddd;
  border-radius: 5px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.main-image:hover {
  transform: scale(1.02);
}

.thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.thumbnails img {
  flex: 1 1 auto;
  height: 100px;
  object-fit: cover;
  border: 2px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: border 0.3s ease, transform 0.3s ease;
}

.thumbnails img:hover {
  border-color: #007bff;
  transform: scale(1.05);
}

.thumbnails img.active {
  border-color: #007bff;
}

.text-right {
  text-align: right;
}
