/* funnel-page.css — shared minimal styling for cart/checkout/policies/contact pages.
 * Created 2026-04-26. Mammotion-inspired green/dark theme, mobile-first.
 */
:root {
  --brand: #1e8b3e;
  --brand-dark: #166b30;
  --brand-light: #e8f5ed;
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #555;
  --border: #e0e0e0;
  --danger: #c62828;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.funnel-wrap { max-width: 880px; margin: 0 auto; padding: 24px 16px 80px; }
.funnel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.funnel-header a.logo { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: 0.02em; }
.funnel-header a.logo:hover { color: var(--brand); }
.funnel-header nav a { color: var(--text-muted); text-decoration: none; margin-left: 16px; font-size: 14px; }
.funnel-header nav a:hover { color: var(--brand); }

h1 { font-size: 28px; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 20px; font-weight: 600; margin: 24px 0 12px; }
p { margin: 0 0 12px; color: var(--text); }
a { color: var(--brand); }
small, .muted { color: var(--text-muted); font-size: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 6px; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Cart-specific */
.cart-empty { text-align: center; padding: 48px 16px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 24px; }
.cart-line { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-line img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; background: #f5f5f5; }
.cart-line .info h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.cart-line .info .variant { font-size: 13px; color: var(--text-muted); }
.cart-line .qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.cart-line .qty button { background: transparent; border: 0; width: 28px; height: 28px; cursor: pointer; font-size: 18px; line-height: 1; color: var(--text); }
.cart-line .qty button:hover { background: var(--brand-light); }
.cart-line .qty span { display: inline-block; min-width: 28px; text-align: center; font-weight: 600; }
.cart-line .price { font-weight: 600; font-size: 16px; text-align: right; white-space: nowrap; }
.cart-line .remove { background: transparent; border: 0; color: var(--danger); cursor: pointer; font-size: 13px; padding: 0; margin-top: 6px; text-align: right; display: block; }
.cart-line .remove:hover { text-decoration: underline; }

.cart-summary { margin-top: 24px; padding: 20px; background: var(--brand-light); border-radius: 8px; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.cart-summary .row.total { font-size: 20px; font-weight: 700; padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.1); margin-top: 12px; }
.cart-summary .checkout-cta { margin-top: 16px; }

/* Policies / Contact / generic content pages */
.content-page { max-width: 720px; }
.content-page h2 { border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.content-page ul { padding-left: 20px; }
.content-page li { margin-bottom: 6px; }
.last-updated { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }

/* Contact form */
.contact-form { display: grid; gap: 16px; max-width: 520px; }
.contact-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; font-family: inherit; font-size: 15px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand); outline: 0; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .btn { justify-self: start; }
.contact-success, .contact-error { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; }
.contact-success { background: var(--brand-light); color: var(--brand-dark); border: 1px solid var(--brand); }
.contact-error { background: #fdecea; color: var(--danger); border: 1px solid var(--danger); }

/* Checkout transition page */
.checkout-redirect { text-align: center; padding: 80px 16px; }
.checkout-redirect .spinner { display: inline-block; width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 404 page */
.error-page { text-align: center; padding: 80px 16px; }
.error-page .code { font-size: 64px; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 8px; }
.error-page h1 { font-size: 24px; margin-bottom: 16px; }
.error-page p { color: var(--text-muted); margin-bottom: 24px; }

footer.funnel-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 24px 0; color: var(--text-muted); font-size: 14px; text-align: center; }
footer.funnel-footer a { color: var(--text-muted); margin: 0 8px; }
footer.funnel-footer a:hover { color: var(--brand); }
