/* Cart Modal Styles */
.cart-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  max-width: 95vw;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 24px #007bff22;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
.cart-modal.open {
  transform: translateX(0);
}
.cart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 10px 20px;
  border-bottom: 1.5px solid #b3d1ff;
  background: #f1f7ff;
}
.cart-modal-header h2 {
  font-size: 1.3rem;
  color: #222;
  font-weight: 700;
}
.cart-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #222;
  cursor: pointer;
}
.cart-items {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 20px;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: #f1f7ff;
}
.cart-item-info {
  flex: 1 1 auto;
}
.cart-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
}
.cart-item-price {
  font-size: 0.95rem;
  color: #333;
}
.cart-item-remove {
  background: none;
  border: none;
  color: #ff3b3b;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 8px;
  transition: color 0.2s;
}
.cart-item-remove:hover {
  color: #b30000;
}
.cart-modal-footer {
  padding: 18px 20px 20px 20px;
  border-top: 1.5px solid #b3d1ff;
  background: #f1f7ff;
}
.cart-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}
.cart-empty {
  text-align: center;
  color: #888;
  font-size: 1rem;
  margin-top: 40px;
}
@media (max-width: 600px) {
  .cart-modal {
    width: 100vw;
    max-width: 100vw;
  }
  .cart-modal-header, .cart-modal-footer {
    padding: 14px 10px;
  }
  .cart-items {
    padding: 10px 10px;
  }
}
