.cart {
  position: fixed;
  right: 0;
  top: 0;
  width: min(480px, 90%);
  height: 100%;
  margin-top:30px;
backdrop-filter: blur(20px) saturate(70%) brightness(1.5);;
z-index: 5001;
  transition: transform 0.3s ease-in-out;
  transform: translateX(calc(100%)); /* Hide the cart off-screen */
  border-top: 1.5px solid black;
  border-bottom: 1.5px solid black;
  border-left: 1.5px solid black;
}
.cart-visible {
  transform: translateX(0); /* Bring the cart on-screen */
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
.overlay-visible {
  opacity: 1;
  pointer-events: all;
}
.cart-toggle-btn {
  background-color: transparent;
  border: none;
  height: 36px;
  color: black;
  cursor: pointer;
  position: absolute;
  right: 20px; /* Adjust this to move the button further left or right */
  top: 15px;
  z-index: 1001;
}
/* Ensure the cart items container has a maximum height and becomes scrollable */
#cart-items {
  max-height: calc(134px * 3); /* Adjust based on the height of 3 items */
  overflow-y: auto;
  padding: 15px;
  margin: 0;
}

/* Optional: Add a custom scrollbar style for the cart */
#cart-items::-webkit-scrollbar {
  width: 8px;
}
#cart-items::-webkit-scrollbar-thumb {
  background-color: #999;
  border-radius: 10px;
}
#cart-items::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}
.cart-item {
  border-top: 1.5px solid black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 130px;
  padding: 0;
}

.cart-item img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  padding: 0;
}

.cart-item-details {
  flex-grow: 1;
  display: flex;
  height: 130px;
  padding: 10px;
  font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
}

.cart-item-name {
  top: 0;
  margin: 0;
  padding: 0;
  width: calc(100% - 64px);
}
.cart-item-name h2 {
  font-weight: 800;
  font-size: 15px;
  margin: 0;
  padding: 0;
}
.cart-item-name h3 {
  font-weight: 400;
  font-size: 11px;
  margin: 0;
  padding: 0;
}
.cart-item-price {
  position: absolute;
  font-weight: bold;
  font-size: 15px;
  top: 10px;
  right: 10px;
  margin: 0;
  padding: 0;
  display: block;
}
.product-id {
  font-size: 0.9em;
  color: #666;
  margin-top: 5px;
}

.quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.quantity button {
  padding: 0;
  cursor: pointer;
  font-size: 40px;
  background: none;
  border: none;
  line-height: 50%;
  -webkit-text-fill-color: white;
  font-family: "Roboto Mono";
  -webkit-text-stroke-width: 3px;
  -webkit-text-stroke-color: black;
  paint-order: stroke fill;
  overflow-y: hidden;
  bottom: 15px;
}

.quantity-minus {
  position: absolute;
  bottom: 10px;
  left: 140px;
}

.quantity-plus {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.quantitynumber {
  position: absolute;
  bottom: 10px;
  font-size: 0.9em;
  margin: 0;
  padding: 0;
  left: calc(50% + 65px);
}

.cart-item .remove-item {
  position: absolute;
  background: none;
  top: 30px;
  right: 10px;
  border: none;
  padding: 5px;
  cursor: pointer;
  font-size: 11px;
  opacity: 0.8;
  text-transform: uppercase;
  font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
}
.almostcheckout {
  border-top: 1.5px solid black;
  height: 100%;
  font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
  font-size: 12px;
      margin-left:14px;
}
.almostcheckout select{
  width: 226px;
  height: 30px;
  background-color: #fff;
  border-radius: 4px;
  cursor: pointer;
margin-bottom: 10px;
  font-family: "Roboto Mono", monospace;
}
.close-btn {
  position: absolute;
  right: 26px;
  top: 14px;
  font-size: 50px;
  font-family: "New Amsterdam", sans-serif;
  cursor: pointer;
}
.cart-header {
  padding-top: 14px;
  padding-bottom: 14px;
  padding-left: 26px;
  margin: 0;

}
.cart-header h1 {
font-family: "Futura", sans-serif;
font-weight: 800; /* For Extra Bold */
  font-size: 50px;
  text-transform: uppercase;
  margin: 0;
}
.checkout-button {
    width: min(450px, calc(90% - 30px));
    margin-left: auto;
        margin-right: auto;

  font-family: "Roboto Mono", monospace;
font-optical-sizing: auto;
font-size: 15px;
font-stretch: 100%;
font-weight: 400;
border: 1.5px solid black;
height: 70px;
cursor: pointer;
animation: pulse 5s infinite;
}

@keyframes pulse {
  0% {
    background-color: #ed1c2426;
  }
  14% {
    background-color: #2baeed26;
  }
 28% {
    background-color: #36a95226;
  }
   42% {
    background-color: #3753a226;
  }
   56% {
    background-color: #00000026;
  }
   70% {
    background-color: #ec008c26;
  }
   84% {
    background-color: #fff20026;
  }
  100% {
    background-color: #ed1c2426;
  }

}
