/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  min-width: 300px;
  padding: 16px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease;
}

.toast.toast--success {
  border-left: 4px solid #10b981;
}

.toast.toast--error {
  border-left: 4px solid #ef4444;
}

.toast.toast--info {
  border-left: 4px solid #3b82f6;
}

.toast.toast--warning {
  border-left: 4px solid #f59e0b;
}

.toast__icon {
  font-size: 24px;
}

.toast__message {
  flex: 1;
  font-size: 14px;
  color: #14142b;
}

.toast__close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast__close:hover {
  color: #374151;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(61, 49, 138, 0.2);
  border-top-color: #3d318a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-spinner--large {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 5, 27, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   BUTTONS
   ======================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.button--primary {
  background: #3d318a;
  color: white;
}

.button--primary:hover {
  background: #2d2465;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(61, 49, 138, 0.3);
}

.button--secondary {
  background: #eff0f7;
  color: #14142b;
}

.button--secondary:hover {
  background: #e0e1ed;
}

.button--outline {
  background: transparent;
  border: 2px solid #3d318a;
  color: #3d318a;
}

.button--outline:hover {
  background: #3d318a;
  color: white;
}

.button--full {
  width: 100%;
}

.button--large {
  padding: 16px 32px;
  font-size: 18px;
}

.button--small {
  padding: 8px 16px;
  font-size: 14px;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.button--loading {
  position: relative;
  color: transparent;
}

.button--loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ========================================
   WHATSAPP CHAT WIDGET
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
  }
}

/* ========================================
   PRODUCT CARD
   ======================================== */
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card__image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: #f9fafb;
}

.product-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card__image {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card__badge--discount {
  background: #ef4444;
  color: white;
}

.product-card__badge--condition {
  background: #f59e0b;
  color: white;
  top: 50px;
}

.product-card__badge--out-of-stock {
  background: #6b7280;
  color: white;
}

.product-card__content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #14142b;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__description {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.product-card__price-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.product-card__price {
  font-size: 24px;
  font-weight: 700;
  color: #3d318a;
}

.product-card__price-old {
  font-size: 16px;
  color: #9ca3af;
  text-decoration: line-through;
}

.product-card__stock-warning {
  font-size: 13px;
  color: #ef4444;
  margin: 0 0 12px 0;
  font-weight: 500;
}

.product-card__footer {
  margin-top: auto;
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 14px;
  color: #6b7280;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__link {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb__link:hover {
  color: #3d318a;
}

.breadcrumb__separator {
  color: #d1d5db;
}

.breadcrumb__current {
  color: #14142b;
  font-weight: 500;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #14142b;
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  color: #14142b;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #3d318a;
  box-shadow: 0 0 0 3px rgba(61, 49, 138, 0.1);
}

.form-input--error,
.form-textarea--error,
.form-select--error {
  border-color: #ef4444;
}

.form-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #ef4444;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ========================================
   MODAL
   ======================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 5, 27, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal.modal--active {
  display: flex;
}

.modal__content {
  background: white;
  border-radius: 12px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__close:hover {
  color: #374151;
}

.modal__title {
  font-size: 24px;
  font-weight: 700;
  color: #14142b;
  margin: 0 0 24px 0;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========================================
   BADGE
   ======================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge--success {
  background: #d1fae5;
  color: #065f46;
}

.badge--error {
  background: #fee2e2;
  color: #991b1b;
}

.badge--warning {
  background: #fef3c7;
  color: #92400e;
}

.badge--info {
  background: #dbeafe;
  color: #1e40af;
}

.badge--neutral {
  background: #f3f4f6;
  color: #374151;
}
