/* ============================================
   SLIDE CART - Carrinho Lateral Deslizante
   ============================================ */

.slide-cart {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-cart.active {
  right: 0;
}

.slide-cart__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.slide-cart__overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Header */
.slide-cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #e9ecef;
  background: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);
  color: #fff;
}

.slide-cart__header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.slide-cart__close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
}

.slide-cart__close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Items Container */
.slide-cart__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.slide-cart__items::-webkit-scrollbar {
  width: 6px;
}

.slide-cart__items::-webkit-scrollbar-track {
  background: #f1f3f5;
}

.slide-cart__items::-webkit-scrollbar-thumb {
  background: #adb5bd;
  border-radius: 3px;
}

.slide-cart__items::-webkit-scrollbar-thumb:hover {
  background: #6c757d;
}

/* Empty State */
.slide-cart__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #6c757d;
  text-align: center;
}

.slide-cart__empty i {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.slide-cart__empty p {
  font-size: 1.125rem;
  margin: 0;
}

/* Cart Item */
.slide-cart__item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 12px;
  position: relative;
  transition: all 0.3s ease;
}

.slide-cart__item:hover {
  background: #e9ecef;
  transform: translateX(-4px);
}

.slide-cart__item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}

.slide-cart__item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slide-cart__item-info h4 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #212529;
  line-height: 1.3;
}

.slide-cart__item-quantity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slide-cart__item-quantity button {
  width: 28px;
  height: 28px;
  border: 1px solid #dee2e6;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #495057;
}

.slide-cart__item-quantity button:hover {
  background: #0066FF;
  border-color: #0066FF;
  color: #fff;
}

.slide-cart__item-quantity span {
  font-weight: 600;
  color: #212529;
  min-width: 24px;
  text-align: center;
}

.slide-cart__item-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0066FF;
  margin: 0;
}

.slide-cart__item-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.75rem;
}

.slide-cart__item-remove:hover {
  background: #dc3545;
  color: #fff;
  transform: scale(1.1);
}

/* Footer */
.slide-cart__footer {
  padding: 20px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
}

.slide-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.slide-cart__total span:first-child {
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
}

.slide-cart__total .cart-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0066FF;
}

.slide-cart__footer .btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.slide-cart__footer .btn:last-child {
  margin-bottom: 0;
}

.slide-cart__footer .btn-primary {
  background: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);
  border: none;
  color: #fff;
}

.slide-cart__footer .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.slide-cart__footer .btn-success {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  border: none;
  color: #fff;
}

.slide-cart__footer .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .slide-cart {
    width: 100%;
    right: -100%;
  }

  .slide-cart.active {
    right: 0;
  }

  .slide-cart__item img {
    width: 60px;
    height: 60px;
  }

  .slide-cart__item-info h4 {
    font-size: 0.875rem;
  }

  .slide-cart__item-price {
    font-size: 1rem;
  }

  .slide-cart__total .cart-total {
    font-size: 1.25rem;
  }
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 300px;
  max-width: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  z-index: 10000;
  animation: notificationSlide 0.4s ease-out;
}

.notification--success {
  border-left: 4px solid #28a745;
}

.notification--info {
  border-left: 4px solid #17a2b8;
}

.notification--warning {
  border-left: 4px solid #ffc107;
}

.notification--danger {
  border-left: 4px solid #dc3545;
}

.notification__icon {
  font-size: 1.5rem;
}

.notification--success .notification__icon {
  color: #28a745;
}

.notification--info .notification__icon {
  color: #17a2b8;
}

.notification--warning .notification__icon {
  color: #ffc107;
}

.notification--danger .notification__icon {
  color: #dc3545;
}

.notification__message {
  flex: 1;
  font-size: 0.9375rem;
  color: #212529;
}

.notification__close {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.notification__close:hover {
  color: #212529;
}

@media (max-width: 768px) {
  .notification {
    right: 10px;
    left: 10px;
    min-width: auto;
  }
}
