.zoomCard {
  transition: transform 0.3s ease;
}

.zoomCard:hover {
  transform: scale(1.05);
}

.product-qty {
  text-align: center;
}

#whatsappCart button {
  font-size: 16px;
}

.shake-cart {
  animation: shake 0.5s;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-3px);
  }
  30% {
    transform: translateX(3px);
  }
  45% {
    transform: translateX(-3px);
  }
  60% {
    transform: translateX(3px);
  }
  75% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 9998;
}

.cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 360px;
  max-width: 90%;
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 15px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f1f1f1;
  font-size: 14px;
}

.cart-item button {
  border: none;
  background: none;
  color: red;
  font-size: 14px;
}

.cart-footer {
  padding: 15px;
  border-top: 1px solid #eee;
}

/* Mobile slide up */

@media (max-width: 576px) {
  .cart-panel {
    width: 100%;
    height: 70%;
    bottom: 0;
    top: auto;
    transform: translateY(100%);
  }
}

@media (max-width: 576px) {
  .cart-panel.open {
    transform: translateY(0);
  }
}

/* Overlay */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: none;
  z-index: 9998;
}

/* Cart panel */

.cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #fff;
  transform: translateX(100%);
  transition: .3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

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

.cart-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
}

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

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

.qty-control button {
  width: 32px;
  height: 32px;
}

.remove-item {
  color: red;
  background: none;
  border: none;
  font-size: 18px;
}

.cart-footer {
  padding: 15px;
  border-top: 1px solid #eee;
}

/* Sticky cart button */

.sticky-cart-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #198754;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 18px;
  z-index: 9997;
}

body.cart-open {
  overflow: hidden;
}

