/***CART***/
.cart-box {
  position: fixed;
  right: 10%;
  top: 5%;
  z-index: 2000;
  background-color: #FAF7F1;
  height: 5rem;
  width: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 3rem;
  cursor: pointer;
}

.cart-box img {
  height: 3rem;
}

.cart {
  -webkit-user-drag: none;
  user-select: none;
}

.cart-digits {
  position: absolute;
  background-color: black;
  color: #FAF7F1;
  top: 0;
  font-weight: 700;
  font-size: 1.2rem;
  right: -1rem;
  padding: .4rem .7rem;
  border-radius: 3rem;
}

/* === CART DRAWER === */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 38rem;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 4001;
  display: flex;
  flex-direction: column;
  border-top-left-radius: 1.6rem;
  border-bottom-left-radius: 1.6rem;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header button {
  background: none;
  color: black;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-name {
  font-size: 2.5rem;
}

#closeCart {
  font-size: 4rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  background: #f5f5f5;
  border-radius: 1.2rem;
  padding: 0.5rem;
}

.cart-item img {
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  border-radius: .8rem;
  margin-right: 1rem;
}

.cart-item button {
  margin-left: auto;
  color: #68655F;
  border: none;
  padding: 0.3rem 0.9rem;
  border-radius: .6rem;
  cursor: pointer;
  font-size: 2.5rem;
}

.cart-footer {
  padding: 2rem;
  border-top: .1rem solid #eee;
  background: #fff;
}

.cart-footer button {
  width: 100%;
  background: #68655F;
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 3rem;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
  transition: background 0.2s;
}

.cart-footer button:hover {
  background: #f57faa;
}

.cart-footer button:active {
  background: #f57faa;
}