
.selector{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: fit-content;
  height: fit-content;
  margin: 10px auto;
  background-color: black;
  border-radius: 30px;
}
.selector p{
  display: inline;
  margin:2vw;
  padding:10px;
  font-size: 20px;
  cursor: pointer;
  color: white;
}
.active{
  color: black;
  background-color: gold;
  border-radius:10%;

}

body{
  background-color: white;
}






.catalogue {
  padding: 50px 20px;
  text-align: center;
  background-color: #fff;
}

.catalogue h2 {
  color: #111;
  font-size: 2.5rem;
  margin-bottom: 30px;
  font-family: serif;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  justify-items: center;
}

.product-card {
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  width: 100%;
  max-width: 280px;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  aspect-ratio: 3 / 4; /* ✅ Forces portrait orientation */
  object-fit: cover;
}

.product-card h3 {
  font-size: 1.2rem;
  color: #222;
  margin: 10px 0 5px;
}

.product-card p {
  color: green;
  font-size: 1rem;
  margin-bottom: 15px;
}

/* ===== Modal Overlay ===== */
.product-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}



.product-modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 15px;
  max-width: 400px;
  width: 90%;
  padding: 20px;
  text-align: center;
  position: relative;
}

.modal-content img {
  width: 60%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}

.modal-content h3 {
  margin: 15px 0 5px;
}

.modal-content p {
  color: #444;
}
.modal-content .price{
    color: green;
}

.modal-buttons {
  display: flex;
  justify-content: space-around;
  margin: 15px 10px;
}

.modal-buttons a {
  padding: 5px 10px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

#saveBtn {
  background: rgb(15, 15, 15);
  color: gold;
}

#whatsappBtn {
  background: #25D366;
  color: white;
}

.modal-buttons a:hover {
  opacity: 0.85;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 15px;
  font-size: 25px;
  color: #333;
  cursor: pointer;
}

@media (max-width: 600px) {
  .product-card img {
    aspect-ratio: 2.5 / 3.5;
  }

  .modal-content {
    max-width: 90%;
  }
  .selector p{
  display: inline;
  margin:2vw;
  padding: 2vw;
  font-size: 5vw;
  cursor: pointer;
  color: white;
  }
}
@media (max-width: 400px) {
  .selector{
     position: fixed;
  left:15%;
  top: 10px;
  }
}