/* ============================================
   CHECKOUT — LA LUIGGI CERÂMICA
   Single-column, underline inputs, green CTA
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-page: #f3f7f2;
  --bg-card: #ffffff;
  --bg-input: transparent;

  --border-light: #e0e0e0;
  --border-input: #ccc;
  --border-focus: #3b5334;

  --text-primary: #222;
  --text-secondary: #555;
  --text-muted: #999;
  --text-label: #333;
  --text-error: #d32f2f;
  --text-success: #2EB034;

  /* Verde principal — La Luiggi */
  --orange: #4a6741;
  --orange-hover: #3b5334;
  --orange-light: #e4ece2;
  --orange-border: #7a9f76;

  --green: #2EB034;
  --green-light: #e6f7e7;
  --green-border: #6dd272;

  --radius: 8px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 4px rgba(0,0,0,0.07);
  --max-width: 620px;

  --transition: 0.2s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* ════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 0 20px;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.header-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.header-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.header-secure-badge {
  display: flex;
  align-items: center;
}

.header-secure-lottie {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  filter: hue-rotate(90deg) saturate(0.8);
}


/* ════════════════════════════════════════════
   MAIN LAYOUT — Two Column on Desktop
   ════════════════════════════════════════════ */
.checkout-container {
  max-width: 960px;
  margin: 24px auto;
  width: 100%;
  padding: 0 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  grid-column: 1;
}

.checkout-social-proof {
  margin-top: 8px;
  grid-column: 1;
}

.checkout-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  grid-column: 2;
  grid-row: 1 / 3;
}

/* On desktop: summary always open, toggle hidden */
.order-summary-toggle {
  display: none !important;
}
.order-summary-content {
  max-height: none !important;
  overflow: visible !important;
}

.order-summary-desktop-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
}

.order-summary-desktop-title img {
  width: 18px;
  height: 18px;
}

.order-summary-desktop-title span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ════════════════════════════════════════════
   STEPPER
   ════════════════════════════════════════════ */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px 0;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stepper-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #999;
  transition: all var(--transition);
  flex-shrink: 0;
}

.stepper-step.active .stepper-dot {
  background: var(--orange);
  color: white;
}

.stepper-step.completed .stepper-dot {
  background: var(--green);
  color: white;
}

.stepper-step.completed .stepper-dot .dot-number { display: none; }
.stepper-step.completed .stepper-dot::after { content: '✓'; font-size: 0.75rem; }

.stepper-text {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.stepper-step.active .stepper-text {
  color: var(--text-primary);
  font-weight: 600;
}

.stepper-step.completed .stepper-text {
  color: var(--green);
}

.stepper-separator {
  width: 40px;
  height: 2px;
  background: #ddd;
  margin: 0 10px;
  flex-shrink: 0;
  transition: background var(--transition);
}

/* ════════════════════════════════════════════
   ORDER SUMMARY — Collapsible
   ════════════════════════════════════════════ */
.order-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.order-summary-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.order-summary-toggle-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-summary-toggle-left .toggle-icon-box {
  font-size: 1rem;
}

.order-summary-toggle-left .toggle-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.order-summary-toggle-left .toggle-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--orange);
}

.order-summary-toggle-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-summary-toggle-right .toggle-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--orange);
}

.order-summary-toggle-right .toggle-chevron {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.order-summary-toggle.open .toggle-chevron {
  transform: rotate(180deg);
}

.order-summary-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.order-summary-content.open {
  max-height: 400px;
}

.order-summary-body {
  padding: 0 18px 16px;
}

/* Product row */
.order-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.order-product-image {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  overflow: hidden;
}

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

.order-product-info { flex: 1; }
.order-product-name { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.order-product-qty { font-size: 0.7rem; color: var(--text-muted); margin-top: 1px; }
.order-product-price { font-size: 0.88rem; font-weight: 700; color: var(--orange); white-space: nowrap; }

/* Totals */
.order-totals {
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
  margin-top: 6px;
}

.order-totals-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.8rem;
}

.order-totals-row .label { color: var(--text-secondary); }
.order-totals-row .value { color: var(--text-primary); font-weight: 500; }
.order-totals-row .value.green { color: var(--green); font-weight: 600; }

.order-totals-total {
  display: flex;
  justify-content: space-between;
  padding: 8px 0 4px;
  font-size: 0.9rem;
  font-weight: 700;
}

.order-secure-note {
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.order-secure-note svg {
  width: 12px; height: 12px;
  stroke: #bbb; fill: none; stroke-width: 2;
}

/* ════════════════════════════════════════════
   SHIPPING BANNER
   ════════════════════════════════════════════ */
.shipping-banner {
  background: #283825;
  border-bottom: 1px solid #3b5334;
  padding: 10px 20px;
}

.shipping-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #f0f0f0;
  line-height: 1.4;
}

.shipping-banner-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.shipping-banner strong {
  color: #c9a96e;
}

/* Cart icon in order summary toggle */
.toggle-icon-box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   FORM CARD
   ════════════════════════════════════════════ */
.checkout-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* ════════════════════════════════════════════
   FORM ELEMENTS — Underline Style
   ════════════════════════════════════════════ */
.form-step {
  display: none;
}

.form-step.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row.three-cols {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
  margin-bottom: 6px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-label);
  margin-bottom: 4px;
}

.form-label .required {
  color: var(--text-error);
}

.form-input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border-input);
  border-radius: 0;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  transition: border-color var(--transition);
  outline: none;
}

.form-input::placeholder { color: #bbb; }

.form-input:focus {
  border-bottom-color: var(--border-focus);
}

.form-input.valid {
  border-bottom-color: var(--green-border);
}

.form-input.invalid {
  border-bottom-color: var(--text-error);
}

.form-input.readonly {
  color: var(--text-secondary);
  cursor: not-allowed;
}

/* Status icon */
.input-status {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.form-input.valid ~ .input-status { opacity: 1; color: var(--green); }
.form-input.valid ~ .input-status::after { content: '✓'; }
.form-input.invalid ~ .input-status { opacity: 1; color: var(--text-error); }
.form-input.invalid ~ .input-status::after { content: '✗'; }

/* CEP success */
.cep-success {
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 600;
  margin-top: 3px;
  display: none;
}

.cep-success.visible { display: block; }

/* Errors */
.form-error {
  display: block;
  font-size: 0.7rem;
  color: var(--text-error);
  margin-top: 3px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all var(--transition);
}

.form-error.visible { opacity: 1; height: auto; }

/* CEP manual fallback link */
.cep-manual-link {
  display: block;
  font-size: 0.75rem;
  color: var(--orange);
  text-decoration: underline;
  margin-top: 4px;
  cursor: pointer;
}

.cep-manual-link:hover {
  color: var(--orange-hover);
}

/* Custom State Select */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1.5px solid var(--border-input);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  transition: border-color var(--transition);
}

.custom-select-trigger:hover {
  border-bottom-color: #999;
}

.custom-select.open .custom-select-trigger {
  border-bottom-color: var(--border-focus);
}

.custom-select-value {
  flex: 1;
}

.custom-select-value.placeholder {
  color: #bbb;
}

.custom-select-arrow {
  font-size: 0.6rem;
  color: #999;
  transition: transform 0.2s ease;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 100;
  margin-top: 4px;
  max-height: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.custom-select.open .custom-select-dropdown {
  display: flex;
}

.custom-select-dropdown {
  display: none;
}

.custom-select-search {
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  outline: none;
  color: var(--text-primary);
  background: #fafafa;
  border-radius: 10px 10px 0 0;
}

.custom-select-search::placeholder {
  color: #bbb;
}

.custom-select-options {
  overflow-y: auto;
  max-height: 220px;
  padding: 4px 0;
}

.custom-select-option {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.custom-select-option:hover {
  background: #f5f5f5;
}

.custom-select-option.selected {
  background: #fff3e6;
  color: var(--orange);
  font-weight: 600;
}

.custom-select-option .state-abbr {
  font-weight: 700;
  min-width: 24px;
  color: var(--orange);
}

.custom-select-option .state-name {
  color: var(--text-secondary);
}

.custom-select-option.selected .state-name {
  color: var(--orange);
}

/* ════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn-primary {
  background: var(--orange);
  color: white;
}

.btn-primary:hover { background: var(--orange-hover); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.82rem;
}

.btn-secondary:hover { background: #f9f9f9; }

.btn-full { width: 100%; }

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

/* CEP buscar button */
.btn-buscar {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 16px;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-buscar:hover { background: var(--orange-hover); }

.form-actions {
  margin-top: 8px;
}

/* Step 2b: Address summary */
.step2b-address-summary {
  padding: 14px 16px;
  background: #f8f8f8;
  border-radius: var(--radius);
  border: 1px solid #eee;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step2b-address-summary strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ════════════════════════════════════════════
   SHIPPING OPTIONS
   ════════════════════════════════════════════ */
.shipping-options { display: none; }
.shipping-options.visible { display: block; animation: fadeIn 0.25s ease; }

.shipping-options-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.shipping-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-card);
}

.shipping-option:hover { border-color: #bbb; }

.shipping-option.selected {
  border-color: var(--orange);
  background: var(--orange-light);
}

.shipping-option-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.shipping-option.selected .shipping-option-radio {
  border-color: var(--orange);
}

.shipping-option.selected .shipping-option-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

.shipping-option-info { flex: 1; }
.shipping-option-name { font-size: 0.85rem; font-weight: 600; }
.shipping-option-time { font-size: 0.7rem; color: var(--text-muted); }
.shipping-option-price { font-size: 0.88rem; font-weight: 700; white-space: nowrap; }
.shipping-option-price.free { color: var(--green); }

.shipping-option-logo {
  width: 56px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.shipping-option-logo-svg {
  width: 32px;
  height: 32px;
  color: var(--orange);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   PIX PAYMENT
   ════════════════════════════════════════════ */
.pix-payment-method {
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f5fbf5;
}

.pix-method-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f0faf8;
  border-bottom: 1px solid #d5f0ec;
}

.pix-method-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pix-radio-selected {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pix-radio-selected::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.pix-method-icon {
  width: 22px;
  height: 22px;
}

.pix-method-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pix-discount-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: linear-gradient(135deg, #fff3e6, #ffe8cc);
  border: 1.5px solid var(--orange);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.3px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pix-discount-badge.visible {
  opacity: 1;
  transform: scale(1);
}

.pix-discount-svg {
  width: 14px;
  height: 14px;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,115,26,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(232,115,26,0); }
}

.pix-discount-badge.pulse {
  animation: badgePulse 1.2s ease 2;
}

/* Price summary inside PIX */
.pix-price-summary {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s ease;
}

.pix-price-summary.open {
  max-height: 300px;
  padding: 14px 16px;
}

.pix-price-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Animated rows */
.pix-anim-row {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.pix-anim-row.show {
  opacity: 1;
  transform: translateX(0);
}

.pix-discount-row {
  color: var(--green);
  font-weight: 600;
}

.pix-discount-row.highlight {
  background: #e8f9f5;
  margin: 2px -8px;
  padding: 6px 8px;
  border-radius: 6px;
  animation: discountFlash 0.6s ease;
}

@keyframes discountFlash {
  0% { background: #ccf5ed; }
  100% { background: #e8f9f5; }
}

.pix-total-row {
  border-top: 1px solid #e0e0e0;
  margin-top: 6px;
  padding-top: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pix-total-value {
  transition: color 0.3s ease;
}

.pix-total-value.highlight {
  color: var(--green);
  animation: totalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes totalPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ════════════════════════════════════════════
   ORDER BUMPS
   ════════════════════════════════════════════ */
.order-bumps {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #e0e0e0;
}

.order-bumps-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.order-bumps-header svg {
  flex-shrink: 0;
}

.order-bump-card {
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.order-bump-card:hover {
  border-color: #ccc;
}

.order-bump-card.selected {
  border-color: var(--green-border);
  box-shadow: 0 0 0 1px var(--green-border);
  background: var(--green-light);
}

.order-bump-main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}

/* Checkbox */
.order-bump-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.order-bump-checkbox input[type="checkbox"] {
  display: none;
}

.bump-checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid #ccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #fff;
}

.bump-checkmark::after {
  content: '';
  display: none;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.bump-checkbox:checked ~ .bump-checkmark {
  background: var(--green);
  border-color: var(--green);
}

.bump-checkbox:checked ~ .bump-checkmark::after {
  display: block;
}

/* Image placeholder */
.order-bump-image {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: #f5f5f5;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-bump-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* Info */
.order-bump-info {
  flex: 1;
  min-width: 0;
}

.order-bump-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.order-bump-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.4;
}

/* Price */
.order-bump-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Details toggle */
.order-bump-details-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
  padding: 6px 16px 10px;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.order-bump-details-toggle:hover {
  color: var(--text-secondary);
}

.bump-chevron {
  font-size: 0.6rem;
  transition: transform 0.2s ease;
}

/* Details content */
.order-bump-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 16px;
  background: #fafafa;
  border-top: 1px solid transparent;
}

.order-bump-details.open {
  max-height: 200px;
  padding: 12px 16px;
  border-top-color: #f0f0f0;
}

.order-bump-details p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* QR Code area */
.pix-qr-area {
  text-align: center;
  padding: 20px 0 8px;
  animation: fadeIn 0.3s ease;
}

.pix-qr-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.pix-qr-code {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.pix-qr-placeholder {
  width: 180px;
  height: 180px;
  border: 2px dashed #d5f0ec;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5fbf5;
}

.pix-copy-area {
  display: flex;
  gap: 0;
  max-width: 400px;
  margin: 0 auto;
}

.pix-copy-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-family: 'Inter', monospace;
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: #f9f9f9;
  outline: none;
  min-width: 0;
}

.btn-copy {
  padding: 10px 16px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.btn-copy:hover { background: #2aa89a; }

.pix-timer {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 12px;
}

#payment-message {
  color: var(--text-error);
  font-size: 0.78rem;
  margin-top: 8px;
  text-align: center;
  display: none;
}
#payment-message.visible { display: block; }

/* ════════════════════════════════════════════
   LOADING
   ════════════════════════════════════════════ */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
}

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

.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(3px);
}

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

.loading-content {
  text-align: center;
  background: white;
  padding: 32px 40px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.loading-spinner-large {
  width: 36px; height: 36px;
  border: 3px solid #eee;
  border-radius: 50%;
  border-top-color: var(--orange);
  animation: spin 0.7s linear infinite;
  margin: 0 auto 14px;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.cep-loading {
  position: absolute; right: 80px; top: 50%; transform: translateY(-50%);
}

.cep-loading .spinner {
  width: 14px; height: 14px;
  border-color: #eee;
  border-top-color: var(--orange);
}

/* ════════════════════════════════════════════
   INLINE ROUTE CALCULATION STEP
   ════════════════════════════════════════════ */
.step-route-card {
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.route-lottie {
  width: 140px;
  height: 140px;
  margin: 0 auto 8px;
  filter: hue-rotate(15deg) saturate(0.85);
}

.route-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* Addresses */
.route-addresses {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
}

.route-address {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 10px;
}

.route-address-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.route-address-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.route-pin {
  width: 16px;
  height: 16px;
  color: var(--orange);
  flex-shrink: 0;
}

.route-pin.destination {
  color: var(--green);
}

.route-address-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  padding-left: 22px;
}

.route-address-connector {
  display: flex;
  justify-content: center;
  padding: 2px 0;
}

/* Carriers */
.route-carriers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.route-carrier {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.35s ease;
}

.route-carrier.visible {
  opacity: 1;
  transform: translateY(0);
}

.route-carrier.done {
  color: var(--green);
  border-color: #d4edda;
  background: #f0faf5;
  font-weight: 500;
}

.route-carrier .rc-spinner {
  width: 18px;
  height: 18px;
  color: #bbb;
  animation: spin 1.5s linear infinite;
  flex-shrink: 0;
}

.route-carrier .rc-check {
  display: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  min-width: 18px;
  text-align: center;
}

.route-carrier.done .rc-spinner {
  display: none;
}

.route-carrier.done .rc-check {
  display: inline;
}

.route-carrier .rc-name {
  flex: 1;
}

/* ════════════════════════════════════════════
   TRUST BADGES
   ════════════════════════════════════════════ */
.trust-badges {
  margin-top: 16px;
}

.trust-badge {
  text-align: center;
  padding: 20px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: opacity 0.4s ease;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.trust-badge.fade-out {
  opacity: 0;
}

.trust-badge-stars {
  color: #f5a623;
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.trust-badge-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.trust-badge-logo img {
  max-width: 140px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.trust-badge-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.trust-badge-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ════════════════════════════════════════════
   CUSTOMER REVIEWS
   ════════════════════════════════════════════ */
.reviews-section {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reviews-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.reviews-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.reviews-count {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px;
  transition: opacity 0.4s ease;
}

.review-card.fade-out {
  opacity: 0;
}

.review-stars {
  color: #f5a623;
  font-size: 0.72rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.review-text {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 12px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-author-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.review-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.review-date {
  font-size: 0.65rem;
  color: var(--green);
  font-weight: 500;
}

/* ════════════════════════════════════════════
   PIX ORDER DETAILS
   ════════════════════════════════════════════ */
.pix-order-details {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pix-order-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.pix-order-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.pix-order-row span:first-child {
  color: var(--text-muted);
  flex-shrink: 0;
}

.pix-order-row span:last-child {
  text-align: right;
  font-weight: 500;
  color: var(--text-primary);
}

.pix-order-total {
  border-top: 1px solid #f0f0f0;
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 700 !important;
}

.pix-order-total span:last-child {
  color: var(--green) !important;
  font-weight: 800 !important;
  font-size: 0.88rem;
}

/* ════════════════════════════════════════════
   PIX PROCESSING OVERLAY
   ════════════════════════════════════════════ */
.pix-processing-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: white;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.pix-processing-overlay.active {
  display: flex;
}

.pix-processing-content {
  text-align: center;
}

.pix-processing-spinner {
  width: 32px;
  height: 32px;
  border: 2.5px solid #e0e0e0;
  border-top-color: #999;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

.pix-processing-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pix-processing-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ════════════════════════════════════════════
   PIX PAYMENT PAGE
   ════════════════════════════════════════════ */
.pix-page {
  display: none;
  position: fixed;
  inset: 0;
  background: #fafafa;
  z-index: 9999;
  overflow-y: auto;
}

.pix-page.active {
  display: block;
}

.pix-page-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.pix-page-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.pix-page-timer {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pix-page-timer strong {
  color: var(--text-primary);
  font-size: 1.1rem;
}

.pix-page-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff8e6;
  border: 1.5px solid #f5c842;
  border-radius: 100px;
}

.pix-status-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c98a00;
}

.pix-status-dots {
  display: flex;
  gap: 4px;
}

.pix-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f5c842;
  animation: dotPulse 1.4s ease-in-out infinite;
}

.pix-dot:nth-child(2) { animation-delay: 0.2s; }
.pix-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

/* QR Card */
.pix-page-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.pix-page-card-title {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.pix-page-qr-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pix-page-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.pix-page-qr canvas {
  border: 4px solid #f0f0f0;
  border-radius: 8px;
}

.pix-page-value {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.pix-page-value strong {
  color: var(--green);
  font-size: 1.1rem;
}

/* Copy Section */
.pix-page-copy-section {
  text-align: center;
  margin-top: 20px;
}

.pix-page-copy-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.pix-page-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: white;
  border: 1.5px solid #333;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pix-page-copy-btn:hover {
  background: #333;
  color: white;
}

.pix-page-copy-btn.copied {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.site-footer {
  background: #ffffff;
  padding: 32px 16px 20px;
  text-align: center;
  margin-top: auto;
  border-top: 1px solid var(--border-light);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.footer-logo-icon {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.footer-logo-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-info {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.65rem;
  color: #bbb;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

/* ════════════════════════════════════════════
   SUCCESS PAGE
   ════════════════════════════════════════════ */
.success-container {
  min-height: calc(100vh - 56px - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.success-card {
  text-align: center;
  max-width: 460px;
  padding: 40px 32px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.success-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem; color: var(--green);
  animation: successPop 0.5s cubic-bezier(0.68,-0.55,0.265,1.55) forwards;
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.success-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.success-message { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 24px; line-height: 1.5; }

.success-details {
  text-align: left;
  padding: 14px;
  background: #f9f9f9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.success-detail-row {
  display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.78rem;
}
.success-detail-row:not(:last-child) { border-bottom: 1px solid #f0f0f0; }
.success-detail-label { color: var(--text-muted); }
.success-detail-value { color: var(--text-primary); font-weight: 500; }

/* ════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 768px)
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pix-page-inner {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 28px;
  }

  .pix-page-title { font-size: 1.5rem; }
  .pix-page-left { text-align: center; }

  .checkout-sidebar {
    position: relative;
    top: 0;
    order: -1;
    gap: 12px;
    margin-bottom: 12px;
    grid-column: 1;
    grid-row: auto;
  }

  .checkout-main {
    order: 0;
    grid-column: 1;
  }

  .checkout-social-proof {
    order: 1;
    grid-column: 1;
  }


  /* Show the toggle, hide content by default */
  .order-summary-toggle {
    display: flex !important;
  }

  .order-summary-desktop-title {
    display: none !important;
  }

  .order-summary-content {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease;
  }

  .order-summary-content.open {
    max-height: 500px !important;
  }

  /* Make sidebar a unified card on mobile */
  .order-summary-card {
    overflow: hidden;
  }

  .checkout-container {
    margin: 12px auto;
    padding: 0 12px;
    gap: 12px;
  }

  .checkout-card { padding: 22px 18px; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — Phone (≤ 640px)
   ════════════════════════════════════════════ */
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-row.three-cols { grid-template-columns: 1fr; gap: 0; }

  .form-input, .form-select { font-size: 16px; padding: 12px 0; }

  .stepper-text { font-size: 0.68rem; }
  .stepper-separator { width: 24px; margin: 0 6px; }

  .order-product-image { width: 48px; height: 48px; }
  .order-product-name { font-size: 0.78rem; }

  .success-card { padding: 28px 16px; }

  .header-inner { height: 50px; }
  .header-logo-img { height: 28px; }
}

@media (max-width: 400px) {
  .stepper-text { display: none; }
  .stepper-dot { width: 24px; height: 24px; font-size: 0.65rem; }
  .header-logo-text { font-size: 0.9rem; }
  .checkout-card { padding: 20px 14px; }
}

/* ════════════════════════════════════════════
   LA LUIGGI — Green Lottie Filters
   ════════════════════════════════════════════ */
#route-lottie,
.route-lottie {
  filter: hue-rotate(90deg) saturate(0.8);
}

#pag-status-lottie {
  filter: hue-rotate(90deg) saturate(0.8);
}

/* Upsell product images */
.order-bump-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
