/* body {
  margin: 0;
  font-family: "Playfair Display", serif;
} */

.product-section {
  padding: 0px 20px 20px;
  max-width: 1200px;
  margin: auto;
}

.breadcrumb {
  font-size: 16px;
  color: #555;
  margin-bottom: 10px;
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.product-card {
  position: relative;
  height: 320px;
  background-color: #000;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 5px #000;
  cursor: pointer;
  overflow: hidden;
}

.product-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: start;
  justify-content: start;
  background: #231F20;
  color: white;
  opacity: 0;
  transition: 0.5s;
  text-align: left;
  padding: 20px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

/* 🟡 Overlay aate hi neeche ka info chhup jaye */
.product-card:hover .card-base-info {
  display: none;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 100%;
}

.overlay-content h4 {
  font-size: 20px;
  margin: 0;
}

.sub-title {
  font-size: 12px;
  color: #DBA63B; /* Link color */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.description {
  font-size: 14px;
  line-height: 1.4;
  overflow: visible;
  max-height: none;
  text-overflow: unset;
}

.detail-btn {
  margin-top: 5px;
  border: none;
  padding: 5px 0px;
  font-weight: bold;
  color:#ddd;
  cursor: pointer;
  border-radius: 2px solid white;
  transition: 0.3s;
  text-decoration: none;
}

.detail-btn:hover {
  background: #231F20;
  color: #DBA63B;
  border: 2px solid #DBA63B;
}

.card-base-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  /* background: rgba(255, 255, 255, 0.95); */
  padding: 10px;
  z-index: 2;
}

.card-base-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: #000;
}

.card-base-info .sub-title {
  font-size: 12px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
}

/* Modal Image */
.modal-content {
  width: auto;
  max-width: 60vw;   /* smaller image width */
  max-height: 60vh;  /* smaller image height */
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}


/* Close Button */
.close-button {
  position: absolute;
  top: 90px;           /* 👈 moved down */
  right: 20px;
  color: white;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1001;
}

.close-button:hover {
  color: #f1c40f;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .modal-content {
    max-width: 90vw;
    max-height: 50vh;
  }

  .close-button {
    font-size: 28px;
    top: 90px;
    right: 23px;
  }

 
}

/* Fullscreen Modal Background */
.custom-modal {
  display: none;
  position: fixed;
  z-index: 1050;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 40px 20px;
}

/* Modal Content */
.custom-modal-content {
  background-color: #fff;
  width: 100%;
  max-width: 700px;
  margin: auto;
  padding: 30px;
  border-radius: 8px;
  position: relative;
}

/* Header */
.custom-modal-header h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
}

/* Close Button */
.custom-close-button {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #000;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.custom-close-button:hover {
  color: #DBA63B;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .custom-modal-content {
    padding: 20px;
  }

  .custom-modal-header h2 {
    font-size: 20px;
  }
}

