#cartPage {
  font-family: 'Nohemi', sans-serif;
  background: #fceee6;
  padding: 40px;
  margin: 0;
}
#cartPage #cartContainer {
  max-width: 900px;
  margin: auto;
}
#cartPage .cart-card {
  display: flex;
  background: #fff;
  border: 3px dashed #e0a87a;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  gap: 20px;
}
#cartPage .cart-card img {
  width: 160px;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}
#cartPage .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#cartPage .info h3 {
  margin: 0;
  font-size: 2em;
  color: #E6BDBC;
}
#cartPage .price {
  font-size: 1.1em;
  color: black;
  font-weight: 600;
  margin: 20px 0px;
}
#cartPage .detail-section {
  background-color: #fff6ee;
  border: 2px dashed #e0a87a;
  border-radius: 15px;
  padding: 15px 20px;
  margin-top: 10px;

  /* Add these: */
  width: 100%;
  box-sizing: border-box;
}

#cartPage .detail-section ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
#cartPage .detail-section li {
  font-size: 0.95em;
}

#cartPage button {
  margin-top: 15px;
  padding: 10px 16px;
  background: #e6bdbc;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  align-self: flex-start;
  transition: 0.2s ease-in-out;
}
#cartPage button:hover {
  background: #d99c91;
}

@media (max-width: 768px) {
  #cartPage {
    padding: 20px;
  }

  #cartPage .cart-card {
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }

  #cartPage .cart-card img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  #cartPage .info {
    width: 100%;
    align-items: flex-start;
  }

  #cartPage .info h3 {
    font-size: 1.5em;
    text-align: left;
    margin-top: 15px;
  }

  #cartPage .price {
    margin: 10px 0;
    font-size: 1em;
  }

  #cartPage .detail-section {
    padding: 12px;
    margin-top: 10px;
    width: 100%;
  }

  #cartPage .detail-section ul {
    grid-template-columns: 1fr; /* stack details vertically */
    gap: 12px;
  }

  #cartPage .detail-section li {
    font-size: 0.95em;
  }

  #cartPage button {
    width: 100%;
    text-align: center;
    align-self: center;
    margin-top: 20px;
  }
}








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

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: #fff6ee;
  border: 3px dashed #e0a87a;
  border-radius: 18px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  font-family: 'Nohemi', sans-serif;
}

.modal-content h2 {
  margin-top: 0;
  color: #E6BDBC;
  font-size: 1.8em;
  margin-bottom: 20px;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px 15px;
  border: 2px solid #e0a87a;
  border-radius: 10px;
  font-size: 1em;
  box-sizing: border-box;
  background: #fff;
}

.modal-content .form-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.modal-content button {
  flex: 1;
  padding: 10px 16px;
  background: #e6bdbc;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s ease-in-out;
}

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




/* ================= Razorpay Summary Box ================= */

#checkoutSummary {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin-inline: auto;
}

#summaryBox {
  background: #fff6ee;
  border: 3px dashed #e0a87a;
  border-radius: 18px;
  padding: 20px 25px;
  width: 300px;
  font-family: 'Nohemi', sans-serif;
  box-shadow: 0 10px 20px rgba(230, 188, 188, 0.3);
  text-align: center;
}

#summaryBox h3 {
  margin: 0 0 15px 0;
  font-size: 1.5em;
  color: #E6BDBC;
}

#summaryBox button {
  width: 100%;
  padding: 12px 16px;
  background: #e6bdbc;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

#summaryBox button:hover {
  background: #d99c91;
}

/* ================= Responsive Mobile Bottom Checkout ================= */

@media (max-width: 768px) {
  #checkoutSummary {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 95%;
    margin: 0;
    z-index: 9999;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    padding: 10px 15px;
  }

  #summaryBox {
    width: 100%;
    padding: 12px 0;
    border-radius: 12px;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(230, 188, 188, 0.3);
  }

  #summaryBox h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
  }

  #summaryBox button {
    font-size: 1em;
    padding: 10px 14px;
  }
}


#checkoutBox {
  background: #fff;
  border: 3px dashed #e0a87a;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  max-width: 280px;
  margin-top: 30px;
}

#checkoutBox h3 {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: #E6BDBC;
}

#checkoutBox button {
  width: 100%;
  padding: 12px;
  background-color: #E6BDBC;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

#checkoutBox button:hover {
  background-color: #d99c91;
}

@media (min-width: 768px) {
  #cartContainer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
  }

  #cartDetails {
    flex: 3;
  }

  #checkoutBox {
    flex: 1;
    position: sticky;
    top: 100px;
  }
}

.hidden {
  display: none !important;
}


#cartPage .detail-section .mini-upload{
  width: 100px;
}
img.mini-upload {
  max-width: 100px !important;
  display: block !important;
  height: auto !important;
  border-radius: 8px;
  margin-top: 6px;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.mini-upload:hover {
  transform: scale(1.1);
}



.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}
.modal-overlay.show {
  display: flex;
}
.modal-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
}
