:root{
--max-width:90%;
--gap:18px;
--thumb-size:100px;
}


/* Modal Styles */
.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto; /* allow scrolling if content is long */
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background: #fff;
  margin: 50px auto;
  padding: 20px 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;
  position: relative;
}

.modal-content h3 {
  margin-top: 0;
  text-align: center;
  color: #333;
}

.modal-content label {
  font-size: 14px;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: #444;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.modal-content button {
  width: 100%;
  background: #007bff;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-content button:hover {
  background: #0056b3;
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 20px;
  color: #333;
  cursor: pointer;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}


/* Gallery Items */

.gallery-item.hide {
    display: none;
}

.product-details {
    padding: 10px 0;
}

.product-details p {
    margin: 4px 0;
}

.product-details p.price {
    color: #333;
}

.buy-now-btn {
	display: inline-block;
	background: #007bff;
	color: #fff;
	padding: 10px 23px;
	border-radius: 5px;
	text-decoration: none;
	font-size: 16px;
}

/* Success Popup */
#successPopup {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 20px;
    border-radius: 5px;
    z-index: 10000;
}
