* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  background: linear-gradient(135deg, #f163fa 0%, #5b0add 100%);
  min-height: 100vh;
  padding: 20px 10px;
  line-height: 1.6;
}

.container {
  max-width: 500px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.product-image {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 25px;
}

.product-title {
  font-size: 28px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 15px;
}

.product-price {
  font-size: 36px;
  font-weight: 800;
  color: #667eea;
  margin-bottom: 15px;
}

.product-description {
  color: #4a5568;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.price-note {
  color: #718096;
  font-size: 13px;
  font-style: italic;
  margin-top: 5px;
}

/* Customer Form */
.customer-form {
  padding: 25px;
  background: #f7fafc;
  border-top: 1px solid #e2e8f0;
}

.customer-form h2 {
  font-size: 20px;
  color: #2d3748;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

/* Payment Options */
.payment-options {
  padding: 25px;
  border-top: 1px solid #e2e8f0;
}

.payment-options h2 {
  font-size: 20px;
  color: #2d3748;
  margin-bottom: 20px;
}

.option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.free-badge {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
}

.stripe-badge {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  color: white;
}

.payment-btn {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  margin-bottom: 20px;
}

.payment-btn:active {
  transform: scale(0.98);
}

.stripe-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.stripe-btn:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.payment-option {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s;
}

.payment-option.featured-option {
  background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
  border: 2px solid #48bb78;
  box-shadow: 0 4px 12px rgba(72, 187, 120, 0.2);
}

.payment-option.stripe-option {
  background: #fafafa;
  border: 2px solid #e0e0e0;
}

.payment-option h3 {
  font-size: 18px;
  color: #2d3748;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-option h3 svg {
  color: #667eea;
}

.featured-option h3 svg {
  color: #48bb78;
}

.bizum-details,
.bank-details {
  margin-top: 10px;
}

.payment-option p {
  color: #4a5568;
  font-size: 14px;
  margin-bottom: 10px;
}

.payment-note {
  font-size: 13px;
  color: #718096;
  font-style: italic;
  margin-top: 5px;
}

.stripe-fee-note {
  color: #a0aec0;
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
}

.payment-info {
  background: white;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  gap: 10px;
}

.payment-info strong {
  color: #2d3748;
  font-size: 16px;
  word-break: break-all;
  flex: 1;
}

.copy-btn {
  padding: 8px 16px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: #5568d3;
}

.copy-btn:active {
  transform: scale(0.95);
}

.payment-note {
  font-size: 13px;
  color: #718096;
  font-style: italic;
  margin-top: 5px;
}

.stripe-fee-note {
    color: #a0aec0;
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
}

/* Payment Button (for Stripe) */
.payment-btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 15px;
}

.payment-btn:active {
    transform: scale(0.98);
}

.stripe-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.stripe-btn:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* WhatsApp Button */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(100% - 50px);
  margin: 0 25px 25px;
  padding: 16px;
  background: #25d366;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-btn:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:active {
  transform: scale(0.98);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
}

.loading-overlay.active {
  display: flex;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-overlay p {
  color: white;
  font-size: 18px;
  font-weight: 600;
}

/* Success Message */
.success-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.success-message.active {
  display: flex;
}

.success-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  margin: 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #48bb78;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  margin: 0 auto 20px;
}

.success-content h2 {
  color: #2d3748;
  margin-bottom: 15px;
  font-size: 28px;
}

.success-content p {
  color: #4a5568;
  font-size: 16px;
  margin-bottom: 10px;
}

.whatsapp-redirect {
  color: #25d366;
  font-weight: 600;
  margin-top: 20px;
}

/* Mobile Optimization */
@media (max-width: 480px) {
  body {
    padding: 10px 5px;
  }

  .product-title {
    font-size: 24px;
  }

  .product-price {
    font-size: 32px;
  }

  .product-description {
    font-size: 15px;
  }

  .payment-btn,
  .whatsapp-btn {
    font-size: 16px;
    padding: 14px;
  }

  .payment-info strong {
    font-size: 14px;
  }

  .copy-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .product-image {
    height: 250px;
  }

  .product-info,
  .customer-form,
  .payment-options {
    padding: 20px;
  }

  .payment-info {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-btn {
    width: 100%;
    margin-top: 8px;
  }
}
