
/*---------------------
  Shopping Cart Sidebar
-----------------------*/
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-sidebar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.cart-sidebar__close {
  font-size: 2rem;
  cursor: pointer;
}

.cart-sidebar__body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.cart-sidebar__footer {
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-sidebar__footer .primary-btn {
  text-align: center;
}
.cart-sidebar__footer .outline-btn {
  text-align: center;
  color: #111111;
  background-color: #f8f8f8;
}

@media (max-width: 400px) {
  .cart-sidebar {
    width: 100vw;
  }
}
/* -------------------------
   Cart panel Styles 
------------------------- */
.cart-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 6px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
}

.cart-item-price {
  color: #888;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-minus,
.qty-plus {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  color: #000;
}

.qty-minus:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: #ccc;
}

.qty-input {
  width: 40px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2px;
}

/* Hide arrows on number inputs */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-input[type=number] {
  -moz-appearance: textfield;
}

.remove-cart-item {
  background: none;
  border: none;
  color: #c00;
  font-size: 18px;
  cursor: pointer;
  padding: 0 5px;
}

.cart-sidebar__total {
  font-weight: 600;
  margin-bottom: 10px;
  text-align: right;
}