/* Carrinho */

.fo-cart-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  font-family: Inter, Manrope, sans-serif;
}

.fo-cart-page h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 0.35rem;
}

.fo-cart-page .fo-lead {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.fo-cart-empty {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #6b7280;
}

.fo-cart-empty a {
  color: #ff2739;
  font-weight: 700;
}

.fo-cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fo-cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.85rem;
}

.fo-cart-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f9fafb;
  border-radius: 4px;
}

.fo-cart-item__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
  margin: 0 0 0.35rem;
}

.fo-cart-item__price {
  color: #ff2739;
  font-weight: 800;
  font-size: 0.95rem;
}

.fo-cart-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.fo-cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.fo-cart-qty button {
  appearance: none;
  border: none;
  background: #fff;
  width: 32px;
  height: 32px;
  font-weight: 700;
  cursor: pointer;
  color: #374151;
}

.fo-cart-qty button:hover {
  background: #f3f4f6;
}

.fo-cart-qty button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #fff;
  color: #9ca3af;
}

.fo-cart-item__min {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
}

.fo-cart-qty span {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.fo-cart-remove {
  appearance: none;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
}

.fo-cart-remove:hover {
  color: #ff2739;
}

.fo-cart-summary {
  margin-top: 1.25rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem 1.15rem;
}

.fo-cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.fo-cart-summary__row strong {
  font-size: 1.35rem;
  color: #111827;
}

.fo-cart-summary__row--total {
  margin-top: 0.25rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e5e7eb;
}

.fo-cart-summary__row--total strong {
  font-size: 1.45rem;
}

.fo-frete-hint {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 600;
  line-height: 1.35;
}

.fo-btn-primary {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  appearance: none;
  border: none;
  background: #ff2739;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1.05rem 1.5rem;
  min-height: 52px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.15s ease;
}

.fo-btn-primary:hover {
  background: #e01f30;
  color: #fff;
}

.fo-btn-ghost {
  display: inline-block;
  margin-top: 0.85rem;
  color: #6b7280;
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
}

.fo-cadastro-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 2rem 1.75rem;
}

.fo-cadastro-badge {
  display: inline-block;
  background: #fff1f0;
  color: #cf1322;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.fo-tipo-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.fo-tipo-btn {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #4b5563;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.95rem 1rem;
  min-height: 48px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.fo-tipo-btn:hover {
  border-color: #ff2739;
  color: #ff2739;
}

.fo-tipo-btn.is-active {
  background: #fff1f0;
  border-color: #ff2739;
  color: #cf1322;
}

.fo-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 640px) {
  .fo-form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem 1.35rem;
  }
  .fo-form-grid .fo-span-2 {
    grid-column: span 2;
  }
}

.fo-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.45rem;
}

.fo-field input,
.fo-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.9rem 1rem;
  min-height: 50px;
  font-size: 1rem;
  color: #111827;
  background: #fff;
  outline: none;
}

.fo-field input:focus,
.fo-field select:focus {
  border-color: #ff2739;
  box-shadow: 0 0 0 3px rgba(255, 39, 57, 0.12);
}

.fo-field-error {
  color: #cf1322;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.fo-terms {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.45;
}

.fo-terms input {
  margin-top: 0.2rem;
}

.fo-terms a {
  color: #ff2739;
  font-weight: 600;
}

.fo-cadastro-ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.fo-terms-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.5;
  max-height: 140px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
}

.responsive-cart a.fo-cart-link,
a.fo-cart-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.fo-mh-cart a.fo-cart-link {
  color: inherit;
}
