.cart-btn {
  /* style as needed */
}

.stock-label {
  font-weight: bold;
  color: red;
  font-size: 10px;
}

/* === Overlay === */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 10000;
}

/* === Drawer === */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  z-index: 10000;
  display: flex;
  flex-direction: column;

  /* ✅ Hidden by default */
  transform: translateX(100%);
  visibility: hidden;
}

/* ✅ Active / Opened State */
.cart-drawer.active {
  transform: translateX(0);
  visibility: visible;
}

/* === Header === */
.cart-header {
  padding: 15px;
  font-weight: bold;
  background: #fff;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  color: var(--cartList_header_text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header .close-cart {
  cursor: pointer;
  color: var(--cartList_header_text);
}

/* === Content === */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-right: 10px;
}

.cart-item img.disabled {
  opacity: 0.5;
}

.cart-item-details {
  flex: 1;
  margin-right: 10px;
}

.cart-item-title {
  font-size: 12px;
  margin-bottom: 5px;
  color: var(--cartList_product_name);
  font-weight: bold;
}

.cart-item-title.disabled {
  opacity: 0.5;
}

.cart-item-price {
  font-size: 13px;
  font-weight: bold;
  color: var(--cartList_product_price);
  word-break: break-word;
}

.cart-item-price.disabled {
  opacity: 0.5;
}

.cart-item-price-old {
  font-size: 9px;
  text-decoration: line-through;
  font-weight: normal;
  color: var(--cartList_product_price_old);
  word-break: break-word;
}

/* === Actions === */
.cart-item-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.qty-box {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.qty-box.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.qty-box button {
  width: 28px;
  height: 28px;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
}

.qty-box span {
  display: inline-block;
  width: 30px;
  text-align: center;
  font-size: 14px;
}

.remove-item {
  cursor: pointer;
  font-size: 18px;
  color: #d00;
}

/* === Footer === */
.cart-footer {
  padding: 15px;
  border-top: 1px solid #ddd;
}

.checkout-btn {
  width: 100%;
  padding: 5px;
  background: var(--carList_checkoutBtn);
  color: var(--carList_checkoutBtn_text);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

/* === Empty Cart === */
.emptyCartList {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.emptyCartList img {
  max-width: 80px;
  width: 100%;
}

/* === Misc === */
.select-all-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid #eee;
}

.cart-item-select {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.cart-total-bar {
  padding: 12px;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

/* === Responsive === */
@media(max-width:600px) {
  .cart-drawer {
    width: 100% !important;
  }
}
