/*---------------------------------added info--------------------------------- */
.added-label {
  margin-top: 0.4vw;
  font-weight: 700;
  font-size: 0.9vw;
  color: #FF0000;
}

/*---------------------------------cart drawer--------------------------------- */
.cart-panel {
  overflow-y: auto;
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 85vw);
  background: #fff;
  border-left: 0.2vw solid black;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1.2vw;
  padding: 1.5vw;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-panel__close {
   cursor: pointer;
    padding-top: 2vw;
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2vw;
}

.cart-panel__title {
  margin: 0;
  font-weight: 700;
}

.cart-panel__items {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
/*---------------------------------product per line--------------------------------- */
.cart-item {
    display: flex;
    align-items: center;
    gap: 0.6vw;
    padding: 0.8vw 0;
    border-bottom: 0.2vw solid black;
    font-weight: 700;
    font-size: 1vw;
}

.cart-item--empty {
  justify-content: center;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 0.5vw;
}

.qty-btn {
  width: 1.7vw;
  height: 1.7vw;
  padding: 0;
  background: white;
  color: black;
  border: 1px solid black;
  font-family: inherit;
  font-weight: 700;
  font-size: 1vw;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.qty-btn:hover {
  background: black;
  color: white;
}

.qty-num {
  min-width: 1.4vw;
  text-align: center;
}

/*---------------------------------checkout buttton--------------------------------- */
#cart-checkout {
  background: white;
  color: black;
  border: 1px solid black;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9vw;
  padding: 0.5vw 1.5vw;
  width: fit-content;
  align-self: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

#cart-checkout:hover {
  background: black;
  color: white;
}

@media (max-width: 1024px) {
  .cart-panel {
    top: 56px;
    height: calc(100% - 56px);
    gap: 16px;
    padding: 16px;
  }

  .cart-panel__close {
    padding-top: 0;
    font-size: 36px;
  }

  .cart-panel__title {
    font-size: 20px;
  }

  .cart-item {
    gap: 8px;
    font-size: 16px;
  }

  .qty-btn {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .qty-num {
    min-width: 28px;
  }

  #cart-checkout {
    font-size: 16px;
    padding: 10px 20px;
  }

  .added-label {
    font-size: 14px;
  }
}
