
    .cart-items-wrapper {
      max-height: 70vh;
      overflow-y: auto;
      padding-right: 8px;
    }
    .cart-items-wrapper::-webkit-scrollbar {
      width: 6px;
    }
    .cart-items-wrapper::-webkit-scrollbar-track {
      background: #f1f1f1;
    }
    .cart-items-wrapper::-webkit-scrollbar-thumb {
      background: #ccc;
      border-radius: 3px;
    }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bounceIncrease {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes pulseProblem {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(255, 193, 7, 0); }
}

@keyframes flashGreen {
  0%, 100% { background-color: transparent; }
  50% { background-color: #e8f5e9; }
}

@keyframes flashYellow {
  0%, 100% { background-color: transparent; }
  50% { background-color: #fff8e1; }
}

.cart-item.new-arrival {
  animation: fadeInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.cart-item.increase-anim {
  animation: bounceIncrease 0.4s, flashGreen 0.6s;
}

.cart-item.decrease-anim {
  animation: flashYellow 0.4s;
}

.item-alert.alert-stock-limit,
.item-alert.alert-no-disponible {
  animation: pulseProblem 2s infinite;
}

.item-alert.alert-stock-renovado i {
  animation: spin 1.2s ease-in-out infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cart-items-wrapper {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 12px;
  scroll-behavior: smooth;
}

.cart-items-wrapper::-webkit-scrollbar {
  width: 8px;
}
.cart-items-wrapper::-webkit-scrollbar-track {
  background: #f3f3f3;
  border-radius: 4px;
}
.cart-items-wrapper::-webkit-scrollbar-thumb {
  background: #b0d9b0;
  border-radius: 4px;
}
.cart-items-wrapper::-webkit-scrollbar-thumb:hover {
  background: #8dc63f;
}

.cart-items-wrapper {
  scrollbar-width: thin;
  scrollbar-color: #b0d9b0 #f3f3f3;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  align-items: center;
}

.filter-btn {
  font-size: 0.85rem;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: #e9ecef;
  color: #495057;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: #dcdcdc;
}

.filter-btn.active {
  background: #23A6A6;
  color: white;
}

.filter-btn.problems {
  background: #fff3cd;
  color: #856404;
}

.filter-btn.problems.active {
  background: #ffc107;
  color: #212529;
}

.sort-select {
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ced4da;
}

header {
  background-color: #32CF61;
  border-bottom: 2px solid #b9d6b0;
  padding: 10px 30px;
  font-family: 'Poppins', sans-serif;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.cart-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; width: 4px;
  background: #23A6A6;
  opacity: 0;
  transition: opacity 0.3s;
}

.cart-item.stock-issue::after {
  background: #ffc107;
  opacity: 1;
}

.cart-item.no-stock::after {
  background: #dc3545;
  opacity: 1;
}

.cart-img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.2s;
}

.cart-img:hover {
  transform: scale(1.03);
}

.description {
  font-size: 14px;
  color: #555;
  margin: 4px 0;
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  background: #23A6A6;
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: #1d8a8a;
  transform: scale(1.05);
}

.qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.delete-btn {
  background: #d9534f;
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}

.delete-btn:hover {
  background: #c9302c;
  transform: translateY(-1px);
}

.item-alert {
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.alert-no-disponible {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-stock-limit {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.alert-stock-renovado {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.summary-box {
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

.footer-btn {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.back-btn { background: #6c757d; color: white; }
.buy-btn { background: #23A6A6; color: white; }
.clear-btn { background: #d9534f; color: white; }

.back-btn:hover { background: #5a6268; }
.buy-btn:hover { background: #1d8a8a; }
.clear-btn:hover { background: #c9302c; }

.buy-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
}

main {
  flex: 1;
  padding: 40px 20px;
}

.cart-container {
  display: flex;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.cart-items-wrapper {
  flex: 1;
  min-width: 0;
}

.summary-wrapper {
  width: 350px;
  flex-shrink: 0;
}

.cart-item .ms-3 {
  flex: 1;
  min-width: 0;
}

.cart-item .delete-btn-container {
  margin-left: 16px;
  align-self: center;
}

.cart-container .summary-box p {
  margin-bottom: 0.4rem;
}

@media (max-width: 992px) {
  .cart-container {
    flex-direction: column;
  }

  .summary-wrapper {
    width: 100%;
    position: static;
  }

  .summary-box {
    position: static;
  }

  .filter-bar {
    justify-content: center;
  }
}