

.cart-page {
  
  
  background-color: #fff;

}


.your-cart{
  position: relative;
  text-align: center;
  font-size: 30px;
  padding-top: 20vh;
  padding-bottom: 3vh;
  color: #222;
  margin-bottom: 0px;
}


#cart-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
  max-width: 800px;
  margin: auto;
}

.cart-item {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: #f2f4ff;
  align-items: center;
  margin-bottom: 1rem;
  box-shadow: rgba(100, 100, 111, 0.05) 0px 7px 29px 0px;
}

.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  background-color: #ffffff;
  
}

.cart-item h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #222;
}

.cart-item p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

.remove-x {
  position: absolute;
  top: 8px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  font-family: "firago-italic";
  color: #303030;
  opacity: 60%;
  cursor: pointer;
}



.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.quantity-controls button {
  padding: 4px 10px;
  font-size: 1rem;
  background-color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.empty {
  font-size: 1.3rem;
  color: #535353;
}


.undo-box {
  padding: 10px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: 60vw;
  background: #F2EFFF;
  border: 1px solid #6B46FF;
  border-radius: 14px;
}

.undo-bar {
  
  margin-top: 1rem;
  padding: 10px;
  
}

.undo-bar button {
  background: transparent;
  border: none;
  font-size: 1rem;
  color: #ec8b4f;
  font-family: "firago-mediumitalic";
  font-feature-settings: "case" on;
  cursor: pointer;
}



#cart-subtotal {
  text-align: right;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 1rem;
  max-width: 800px;
  margin: 1rem auto 0;
  color: #222;
  border-top: 1px solid #e1e1e1;
}

.order-confirm-popup {
  display: none;
  padding: 1rem;
  
  color: #3c763d;
  border-radius: 8px;
  margin-top: 1rem;
}

input, button {
  font-family: "firago-mediumitalic";
}


.form-background {
  background: #dee2f5;
  padding-top: 38px;
  padding-bottom: 50px;
  padding-left: 25px;
  padding-right: 25px;
  border-radius: 25px;
  flex-direction: column;
  align-items: center;
  transition: 0.3s ease;
  text-align: center;
  margin-bottom: 100px;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  width: 42vw;

   
}


#checkout-form {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  gap: 1rem;
  
}

#checkout-form input {
  padding: 1rem;
  font-size: 1.3rem;
  color: #191919;
  border: 0.1rem solid #D0D5FF;
  font-family: "firago-bookitalic";
  margin-bottom: 0px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 18px;
  width: 87%;
  padding: 1rem 1rem;

  
}



.order-btn {
  background-color: #3A0CA3;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  border: none;
  border-radius: 20px;
  font-size: 1.7rem;
  font-family: "firago-mediumitalic";
  cursor: pointer;
  line-height: 1;
  font-feature-settings: "case" on;
  width: 87%;
  padding: 1rem 1rem;
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;
  
}


.order-btn:hover {
  background-color: #391fac;
  
  
}

 .placeholder {
  border-radius: 6px;
  border: none;
  font-feature-settings: "case" on;
 }


.undo-loader {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  
  animation: undo-progress 3s linear forwards;
}

@keyframes undo-progress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

.complete-order {
  margin-bottom: 20px;
  font-size: 2vw;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  
}




/* Undo message animation */
.undo-message {
  padding: 10px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: 60vw;
  background-color: rgba(255, 254, 254, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  border: 1px solid #000000;
  border-radius: 6px;
  text-align: center;
  animation: fadeIn 0.3s ease-out;
  transition: all 0.5s ease-in-out;
  border-radius: 15px;
  opacity: 1;
}

.undo-message.hide {
opacity: 0;
transform: translateY(-20px);
}

/* Loader animation */
.undo-loader {
position: absolute;
bottom: 0;
left: 0;
height: 3px;
width: 100%;

animation: undo-progress 3s linear forwards;
}

@keyframes undo-progress {
from {
  width: 100%;
}
to {
  width: 0%;
}
}

@keyframes fadeIn {
from {
  opacity: 0;
  transform: translateY(10px);
}
to {
  opacity: 1;
  transform: translateY(0);
}
}






/* Order Confirmation */

.order-confirm-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 254, 254, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  text-align: center;
  font-size: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Visible state */
.order-confirm-popup.show {
  opacity: 1;
  pointer-events: auto;
}




@media screen and (max-width: 480px) {

  .cart-page {
  
  
  padding-left: 0;
  padding-right: 0;

}

.your-cart{
  position: relative;
  text-align: center;
  font-size: 23px;
  padding-top: 20vh;
  padding-bottom: 3vh;
  color: #222;
  margin-bottom: 0px;
}


#cart-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0%;
  max-width: 90vw;
  margin-left: auto;
  margin-right: auto;
}

.cart-item {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: #f2f4ff;
  align-items: center;
  margin-bottom: 1rem;
  width: 87vw;
  margin-left: auto;
  margin-right: auto;
  box-shadow: rgba(100, 100, 111, 0.05) 0px 7px 29px 0px;
}

.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  background-color: #ffffff;
  
}

.cart-item h3 {
  margin: 0;
  font-size: 0.97rem;
  color: #222;
}

.cart-item p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

.remove-x {
  position: absolute;
  top: 3px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  font-family: "firago-italic";
  color: #303030;
  opacity: 60%;
  cursor: pointer;
}



.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.quantity-controls button {
  padding: 4px 10px;
  font-size: 1rem;
  background-color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.undo-bar {
  

  margin-top: 1rem;
  padding: 10px;
  width: 100% !important;
  
}

.undo-bar button {
  background: transparent;
  border: none;
  font-size: 1rem;
  color: #ec8b4f;
  font-family: "firago-mediumitalic";
  font-feature-settings: "case" on;
  cursor: pointer;
}



#cart-subtotal {
  text-align: right;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 1rem;
  max-width: 90vw;
  margin: 1rem auto 0;
  color: #222;
  border-top: 1px solid #e1e1e1;
}

.order-confirm-popup {
  display: none;
  padding: 1rem;
  
  color: #3c763d;
  border-radius: 8px;
  margin-top: 1rem;
}

input, button {
  font-family: "firago-mediumitalic";
}


.form-background {
  padding-top: 38px;
  padding-bottom: 38px;
  padding-left: 25px;
  padding-right: 25px;
  border-radius: 21px;
  flex-direction: column;
  align-items: center;
  transition: 0.3s ease;
  text-align: center;
  margin-bottom: 80px;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  width: 87vw;

   
}


#checkout-form {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  gap: 0.7rem;
  
}

#checkout-form input {
  padding: 0.8rem;
  font-size: 1rem;
  font-family: "firago-bookitalic";
  margin-bottom: 0px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 15px;
  width: 100%;
  height: 48px;

  
}


.undo-loader {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  
  animation: undo-progress 3s linear forwards;
}


.complete-order {
  margin-bottom: 20px;
  font-size: 1.5rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  
}


.order-btn {
  background-color: #3a1ac7;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  padding: 0.15rem;
  border: none;
  border-radius: 15px;
  font-size: 1.2rem;
  font-family: "firago-mediumitalic";
  cursor: pointer;
  line-height: 1;
  font-feature-settings: "case" on;
  width: 100%;
  height: 52px;
  margin-left: auto;
  margin-right: auto;
  
}


.order-btn:hover {
  background-color: #391fac;
  
  
}

 .placeholder {
  border-radius: 6px;
  border: none;
  font-feature-settings: "case" on;
 }


/* Undo message animation */
.undo-message {

padding: 1rem;
text-align: center;
position: relative;
animation: fadeIn 0.3s ease-out;
transition: all 0.5s ease-in-out;
opacity: 1;
}

.undo-message.hide {
opacity: 0;
transform: translateY(-20px);
}

/* Loader animation */
.undo-loader {
position: absolute;
bottom: 0;
left: 0;
height: 3px;
width: 100%;

animation: undo-progress 3s linear forwards;
}




/* Order Confirmation */

.order-confirm-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border: 2px solid #28a745;
  padding: 2rem;
  text-align: center;
  font-size: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  z-index: 10001;
  display: none;
}


main {
  padding: 0;
}








}

