/* Right panel */

.cart-panel {
  position: fixed;
  top: 40px;
  bottom: 40px;
  right: 20px;
  width: 360px;
  background: white;
  border-radius: 10px;
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.18);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  z-index: 3000;
  display: flex;
  flex-direction: column;
}

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

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.cart-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.cart-header {
  padding:  20px;
  border-bottom: 1px solid #ddd;
}

.cart-header h4 {
  margin: 0;
  font-size: 2rem;
  padding: 20px 0px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 20px;
  width: 100%;
}

.cart-item {
  width: 100%;
  display: flex;
  border-bottom: 1px solid #ddd;
  padding: 10px;
}

.cart-items p {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cart-image-container {
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 6px;
  flex-shrink: 0;
}

.cart-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cart-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-info button {
  border: 0px;
}

.cart-delete {
  width: 20px;
  height: 20px;
  background: none;
}

.cart-qty-control {
  display: flex;
  gap: 16px;
  font-size: 24px;
}

.cart-qty-btn {
  background: none;
}

.cart-qty-btn:hover {
  box-shadow: 2px 2px #f2f2f2;
}

.cart-qty-container {
  display: flex;
  justify-content: space-between;
}

.cart-footer {
  background: #f2f2f2;
  padding: 20px;
  border-radius: 20px 20px 0 0;
  border-top: 1px solid #ddd;
}

.cart-info {
  padding: 0px 20px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: bold;
}

.checkout-btn {
  width: 100%;
  padding: 12px;
  background: white;
  border: 2px solid black;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.checkout-btn:hover {
  border: 2px solid rgb(5, 160, 39);
  color: rgb(5, 160, 39);
}

.vertical-stroke {
  border-left: 4px solid black;
  height: 400px;
}

.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#cart-category-filter {
  padding: 5px;
  border: 1px solid;
  border-radius: 5px;
}

#cart-search {
  border-radius: 5px;
  border: 1px solid;
  text-align: center;
  padding: 5px;
  width: 100%;
}

.cart-controls {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}