/* ---------- Cart Panel (Always Visible, Smart Height) ---------- */

#cartPanel {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 360px;
  max-width: calc(100% - 32px);
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  padding: 14px 14px 10px;
  z-index: 1200;
  box-sizing: border-box;
  font-family: 'Lato';
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Scroll aesthetics */

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  #cartPanel {
    top: 8px;
    right: 8px;
    left: 8px;
    width: auto;
    max-height: 72vh;
    border-radius: 10px;
    padding: 12px;
  }
}

/* ---------- Header Controls ---------- */

#cartPanel .btn {
  margin-left: 6px;
}

#checkoutBtn {
  background: linear-gradient(90deg, #0ea5a4, #06b6d4);
  color: #fff;
  border: none;
  background-size: 200% 200%;
  box-shadow: 0 10px 30px rgba(14, 165, 164, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

#checkoutBtn:hover, #checkoutBtn:focus {
  transform: translateY(-2px);
  filter: brightness(0.98);
  box-shadow: 0 14px 36px rgba(14, 165, 164, 0.16);
}

/* ---------- Cart Items ---------- */

#cartSummary {
  font-size: 13px;
  color: #333;
}

/* each item card */

/* subtle lift on hover */

/* visual divider between multiple items */

/* left column */

/* right column */

/* quantity control row */

/* quantity buttons */

/* remove link */

/* price flash animation */

/* discount badge */

/* layout stability */

html {
  scrollbar-gutter: stable;
}

body, html {
  overflow-x: hidden;
}

