/* ===========================================================
   Neckora — Neck & Shoulder Massage Specialists
   Standalone theme: indigo / rose / lavender
   (distinct from the lovenest teal/amber site)
   =========================================================== */

:root {
  --color-primary: #4F46E5;
  --color-primary-dark: #4338CA;
  --color-primary-light: #818CF8;
  --color-accent: #FB7185;
  --color-accent-dark: #F43F5E;
  --color-accent-soft: #FFE4E9;
  --color-bg: #ffffff;
  --color-surface: #F5F3FF;
  --color-surface-2: #EDE9FE;
  --color-text: #1E1B4B;
  --color-text-secondary: #4B5563;
  --color-text-muted: #6B7280;
  --color-border: #E5E1F0;
  --color-success: #16A34A;
  --color-error: #DC2626;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px 0 rgb(30 27 75 / 0.06);
  --shadow-md: 0 10px 24px -8px rgb(79 70 229 / 0.22);
  --shadow-lg: 0 24px 48px -16px rgb(79 70 229 / 0.30);

  --maxw: 1180px;
  --font-sans: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.97rem; border: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 10px 24px -8px rgb(251 113 133 / .5); }
.btn-accent:hover { background: var(--color-accent-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-primary-light); }
.btn-ghost:hover { background: var(--color-surface); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Top announcement bar ---------- */
.topbar {
  background: var(--color-text); color: #fff; font-size: .82rem;
  text-align: center; padding: 7px 12px; letter-spacing: .2px;
}
.topbar b { color: var(--color-accent-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--color-text); }
.brand .logo-mark { width: 38px; height: 38px; flex: none; }
.brand .brand-name { letter-spacing: -.5px; }
.brand .brand-name span { color: var(--color-primary); }

.main-nav ul { display: flex; gap: 26px; align-items: center; }
.main-nav a { font-weight: 500; font-size: .95rem; color: var(--color-text-secondary); position: relative; padding: 6px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--color-primary); transition: width .25s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--color-primary); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-link { position: relative; display: flex; align-items: center; color: var(--color-text); }
.cart-link svg { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px;
  background: var(--color-accent); color: #fff; border-radius: var(--radius-pill);
  font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--color-surface-2), transparent 60%),
    linear-gradient(180deg, var(--color-surface) 0%, #fff 100%);
  padding: 70px 0 60px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--color-border); color: var(--color-primary);
  padding: 7px 14px; border-radius: var(--radius-pill); font-size: .82rem; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: 3rem; line-height: 1.1; letter-spacing: -1px; margin-bottom: 18px; }
.hero h1 .hl { color: var(--color-primary); }
.hero p.lead { font-size: 1.12rem; color: var(--color-text-secondary); max-width: 520px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stat .num { font-size: 1.7rem; font-weight: 800; color: var(--color-primary); line-height: 1; }
.hero-stat .lbl { font-size: .85rem; color: var(--color-text-muted); margin-top: 4px; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero-badge {
  position: absolute; left: -14px; bottom: 24px; background: #fff; border-radius: var(--radius-md);
  padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px;
}
.hero-badge .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--color-accent-soft); color: var(--color-accent-dark); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.hero-badge .t { font-size: .82rem; color: var(--color-text-muted); }
.hero-badge .s { font-weight: 700; color: var(--color-text); font-size: .98rem; }

/* ---------- Section primitives ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--color-surface); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 46px; }
.section-head .eyebrow { color: var(--color-accent-dark); font-weight: 700; font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; }
.section-head h2 { font-size: 2.2rem; letter-spacing: -.5px; margin: 10px 0 12px; }
.section-head p { color: var(--color-text-secondary); font-size: 1.05rem; }

/* ---------- Pain points strip ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pain-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 24px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pain-card .emoji { font-size: 1.9rem; }
.pain-card h3 { font-size: 1.02rem; margin: 12px 0 6px; }
.pain-card p { font-size: .9rem; color: var(--color-text-muted); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card .badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--color-accent); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 5px 11px; border-radius: var(--radius-pill); letter-spacing: .3px;
}
.product-card .badge.new { background: var(--color-primary); }
.product-card .badge.popular { background: var(--color-accent-dark); }
.product-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--color-surface); }
.product-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card .cat { font-size: .76rem; color: var(--color-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.product-card h3 { font-size: 1.02rem; margin: 6px 0 8px; line-height: 1.35; }
.product-card .rating { font-size: .85rem; color: var(--color-text-muted); margin-bottom: 8px; }
.product-card .rating .stars { color: #F59E0B; letter-spacing: 1px; }
.product-card .desc { font-size: .88rem; color: var(--color-text-secondary); flex: 1; margin-bottom: 14px; }
.product-card .price-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.product-card .price { font-size: 1.3rem; font-weight: 800; color: var(--color-text); }
.product-card .price .cur { font-size: .9rem; color: var(--color-text-muted); font-weight: 600; }
.product-card .price .old { font-size: .9rem; color: var(--color-text-muted); text-decoration: line-through; margin-left: 8px; font-weight: 500; }
.product-card .actions { display: flex; gap: 10px; }
.product-card .actions .btn { flex: 1; padding: 11px 0; font-size: .9rem; }
.icon-btn {
  width: 42px; flex: none; border: 1px solid var(--color-border); background: #fff; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; color: var(--color-primary); transition: background .2s;
}
.icon-btn:hover { background: var(--color-surface); }

/* ---------- Feature / "Difference" comparison ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-col { border-radius: var(--radius-lg); padding: 30px; }
.compare-col.us { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-md); }
.compare-col.them { background: #fff; border: 1px solid var(--color-border); }
.compare-col h3 { font-size: 1.25rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.compare-col.us h3 .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--color-accent); }
.compare-col.them h3 .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--color-border); }
.compare-list li { display: flex; gap: 12px; padding: 11px 0; font-size: .96rem; border-bottom: 1px dashed rgba(255,255,255,.18); }
.compare-col.them .compare-list li { border-bottom: 1px dashed var(--color-border); }
.compare-list li:last-child { border-bottom: none; }
.compare-list .mk { flex: none; font-weight: 800; }
.compare-col.us .mk { color: var(--color-accent-soft); }
.compare-col.them .mk { color: var(--color-text-muted); }

/* ---------- Scenarios / who it's for ---------- */
.scenario-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.scenario {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 24px; text-align: center; transition: transform .2s, box-shadow .2s;
}
.scenario:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.scenario .ic { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; background: var(--color-surface-2); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.scenario h3 { font-size: 1.02rem; margin-bottom: 6px; }
.scenario p { font-size: .88rem; color: var(--color-text-muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-dark));
  color: #fff; border-radius: var(--radius-lg); padding: 48px; text-align: center; margin: 0 20px;
}
.cta-banner h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-banner p { opacity: .9; max-width: 520px; margin: 0 auto 22px; }
.cta-banner .btn-accent { background: #fff; color: var(--color-primary-dark); }
.cta-banner .btn-accent:hover { background: var(--color-accent-soft); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--color-surface); padding: 56px 0 44px; text-align: center; }
.page-hero h1 { font-size: 2.4rem; letter-spacing: -.5px; margin-bottom: 10px; }
.page-hero p { color: var(--color-text-secondary); max-width: 600px; margin: 0 auto; }
.breadcrumb { font-size: .85rem; color: var(--color-text-muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--color-primary); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.pd-gallery img { width: 100%; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-md); }
.pd-info h1 { font-size: 2rem; letter-spacing: -.5px; margin: 6px 0 10px; }
.pd-info .cat { color: var(--color-primary); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .6px; }
.pd-info .rating { color: var(--color-text-muted); margin-bottom: 16px; }
.pd-info .rating .stars { color: #F59E0B; }
.pd-info .price { font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.pd-info .price .old { font-size: 1.1rem; color: var(--color-text-muted); text-decoration: line-through; margin-left: 12px; font-weight: 500; }
.pd-info .short { color: var(--color-text-secondary); font-size: 1.05rem; margin: 16px 0 18px; }
.pd-info .features { margin: 18px 0 24px; }
.pd-info .features li { display: flex; gap: 10px; padding: 7px 0; }
.pd-info .features .ck { color: var(--color-success); font-weight: 800; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-pill); overflow: hidden; }
.qty button { width: 42px; height: 42px; background: #fff; border: none; font-size: 1.2rem; color: var(--color-primary); }
.qty button:hover { background: var(--color-surface); }
.qty input { width: 46px; text-align: center; border: none; font-size: 1rem; font-weight: 700; color: var(--color-text); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-meta { margin-top: 26px; border-top: 1px solid var(--color-border); padding-top: 18px; font-size: .9rem; color: var(--color-text-muted); display: grid; gap: 8px; }
.pd-meta .row { display: flex; gap: 10px; }
.pd-meta .row b { color: var(--color-text); min-width: 92px; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--color-border); align-items: center; }
.cart-item img { width: 90px; height: 90px; object-fit: cover; border-radius: var(--radius-md); background: var(--color-surface); }
.cart-item h4 { font-size: 1rem; margin-bottom: 4px; }
.cart-item .ci-price { color: var(--color-text-muted); font-size: .9rem; }
.cart-item .ci-right { text-align: right; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.cart-item .line-total { font-weight: 800; font-size: 1.05rem; }
.cart-item .remove { background: none; border: none; color: var(--color-error); font-size: .82rem; }
.cart-item .remove:hover { text-decoration: underline; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--color-text-muted); }
.cart-empty h2 { color: var(--color-text); margin-bottom: 10px; }
.summary-card { background: var(--color-surface); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: 96px; }
.summary-card h3 { margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: .95rem; color: var(--color-text-secondary); }
.summary-row.total { border-top: 1px solid var(--color-border); margin-top: 8px; padding-top: 14px; font-size: 1.2rem; font-weight: 800; color: var(--color-text); }
.summary-card .note { font-size: .8rem; color: var(--color-text-muted); margin-top: 14px; line-height: 1.5; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--color-text); }
.field input, .field textarea, .field select {
  padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  font-size: .95rem; font-family: inherit; color: var(--color-text); background: #fff; transition: border .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-surface-2); }
.field textarea { min-height: 130px; resize: vertical; }
.form-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.form-note { font-size: .85rem; color: var(--color-success); margin-top: 10px; display: none; }
.form-note.show { display: block; }

/* ---------- Contact / info cards ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.info-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 26px; text-align: center; }
.info-card .ic { width: 50px; height: 50px; margin: 0 auto 14px; border-radius: 14px; background: var(--color-surface-2); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.info-card p, .info-card a { color: var(--color-text-secondary); font-size: .93rem; }
.info-card a:hover { color: var(--color-primary); }

/* ---------- Content (legal/about) ---------- */
.content-prose { max-width: 820px; margin: 0 auto; }
.content-prose h2 { font-size: 1.5rem; margin: 34px 0 12px; color: var(--color-primary-dark); }
.content-prose h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.content-prose p, .content-prose li { color: var(--color-text-secondary); margin-bottom: 12px; }
.content-prose ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.content-prose ul li { margin-bottom: 8px; }
.content-prose strong { color: var(--color-text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-text); color: #C7C5E8; padding: 56px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: .9rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: .98rem; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col a { font-size: .9rem; color: #C7C5E8; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-news input { width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); border: none; margin-bottom: 10px; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--color-text); color: #fff;
  padding: 14px 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  font-size: .92rem; transform: translateY(120%); transition: transform .3s ease; z-index: 100;
}
.toast.show { transform: translateY(0); }
.toast b { color: var(--color-accent-soft); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-grid, .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 20px; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md); }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 4px; width: 100%; }
  .main-nav a { display: block; padding: 10px 0; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 2.2rem; }
  .section-head h2 { font-size: 1.7rem; }
  .product-grid, .pain-grid, .scenario-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 32px 22px; }
  .info-grid { grid-template-columns: 1fr; }
}
