/* LexNova Cart Styles */

/* Cart Icon */
.cart-icon {
  position: relative;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.cart-icon:hover {
  background: rgba(38, 217, 113, 0.1);
}

.cart-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #0f1a13;
}

.dark .cart-icon svg {
  color: #f8fbfa;
}

.cart-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background: #ef4444;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 9999px;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Cart Modal Overlay */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Cart Modal */
.cart-modal {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 100%;
  max-width: 28rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.dark .cart-modal {
  background: rgba(18, 32, 24, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-modal.active {
  transform: translateX(0);
}

/* Cart Header */
.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dark .cart-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #0f1a13;
}

.dark .cart-title {
  color: #f8fbfa;
}

.cart-close {
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.cart-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.dark .cart-close:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Cart Body */
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #64748b;
}

.cart-empty svg {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

/* Cart Item */
.cart-item {
  background: rgba(38, 217, 113, 0.05);
  border: 1px solid rgba(38, 217, 113, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.cart-item-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: #0f1a13;
  margin-bottom: 0.25rem;
}

.dark .cart-item-title {
  color: #f8fbfa;
}

.cart-item-subtitle {
  font-size: 0.875rem;
  color: #64748b;
}

.cart-item-remove {
  padding: 0.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.cart-item-remove:hover {
  background: rgba(239, 68, 68, 0.1);
}

.cart-item-remove svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #94a3b8;
}

/* Cart Features */
.cart-features {
  margin-bottom: 1rem;
}

.cart-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 0.5rem;
}

.dark .cart-feature {
  color: #cbd5e1;
}

.cart-feature svg {
  width: 1rem;
  height: 1rem;
  color: #26d971;
  flex-shrink: 0;
}

/* Cart Price */
.cart-item-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.cart-price-amount {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0f1a13;
}

.dark .cart-price-amount {
  color: #f8fbfa;
}

.cart-price-period {
  font-size: 0.875rem;
  color: #64748b;
}

.cart-price-original {
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-top: 0.25rem;
}

/* Cart Footer */
.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .cart-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cart-total-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: #475569;
}

.dark .cart-total-label {
  color: #cbd5e1;
}

.cart-total-amount {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0f1a13;
}

.dark .cart-total-amount {
  color: #f8fbfa;
}

.cart-checkout-btn {
  width: 100%;
  background: #26d971;
  color: #0f1a13;
  font-weight: bold;
  padding: 1rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.cart-checkout-btn:hover {
  background: #22c766;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(38, 217, 113, 0.3);
}

.cart-checkout-btn:active {
  transform: translateY(0);
}

.cart-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.cart-security svg {
  width: 1rem;
  height: 1rem;
}

/* Responsive */
@media (max-width: 640px) {
  .cart-modal {
    max-width: 100%;
  }
}