/* =========================================================================
   fmer-product.css — Product landing page (compact v2)
   Scoped: .fmer-page. Load: page-fullhtml.php on product.
   ========================================================================= */

/* ── Full-width layout fix ───────────────────────────────────────────
   WP dùng .page-template-* cho page, nhưng .product-template-* cho
   product CPT. Cover cả hai trường hợp.                             */
.page-template-page-fullhtml #site-navigation,
.product-template-page-fullhtml #site-navigation { display: none !important; }

.page-template-page-fullhtml #page.site,
.page-template-page-fullhtml #content.site-content,
.page-template-page-fullhtml .fmarket-fullhtml,
.product-template-page-fullhtml #page.site,
.product-template-page-fullhtml #content.site-content,
.product-template-page-fullhtml .fmarket-fullhtml {
  max-width: none !important; width: 100% !important;
  padding: 0 !important; margin: 0 !important;
}

.page-template-page-fullhtml #page.site,
.product-template-page-fullhtml #page.site { display: block !important; }

/* ── Tokens ─────────────────────────────────────────────────────────── */
.fmer-page {
  --deep: #0a1535; --ink: #1a1f3a; --mute: #6b7194; --line: #e5e9f5;
  --acc: #00d4ff; --glow: #7c3aed; --pink: #ff5d8f; --warm: #ffaa3c;
  --g-hero: linear-gradient(135deg, #0a1535 0%, #162250 35%, #1a2a6b 75%, #243d8e 100%);
  --g-acc:  linear-gradient(135deg, #00d4ff, #7c3aed);
  --g-warm: linear-gradient(135deg, #ffaa3c, #ff5d8f);
  --sh:   0 12px 40px rgba(13,27,61,.08);
  --sh-h: 0 22px 60px rgba(13,27,61,.14);
  font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink); line-height: 1.6;
}
.fmer-page *, .fmer-page *::before, .fmer-page *::after { box-sizing: border-box; }
.fmer-page h1,.fmer-page h2,.fmer-page h3,.fmer-page h4 { margin: 0; line-height: 1.2; }
.fmer-page p { margin: 0; }
.fmer-page a { color: inherit; text-decoration: none; }

/* ── Hero — full-bleed, no border-radius ─────────────────────────── */
.fmer-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 80px 6% 100px;
  background: var(--g-hero); color: #fff;
}
.fmer-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(0,212,255,.22), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(255,93,143,.16), transparent 65%);
}
.fmer-hero-orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fmer-orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .45; }
.fmer-orb.o1 { width: 260px; height: 260px; background: #00d4ff; top: -60px; right: -40px; animation: fmer-float 8s ease-in-out infinite; }
.fmer-orb.o2 { width: 200px; height: 200px; background: #ff5d8f; bottom: -40px; left: 30%; animation: fmer-float 11s ease-in-out infinite reverse; }
@keyframes fmer-float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(18px,-26px); } }

.fmer-hero-inner { position: relative; z-index: 2; max-width: 780px; }

/* pill badge */
.fmer-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(0,212,255,.15); border: 1px solid rgba(0,212,255,.35); color: #bcefff;
}
.fmer-pill::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #00d4ff; box-shadow: 0 0 12px #00d4ff;
  animation: fmer-blink 2s ease-in-out infinite;
}
@keyframes fmer-blink { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.5; transform:scale(.75); } }

.fmer-hero h1 { font-size: clamp(30px, 5vw, 54px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; color: #fff; }
.fmer-hero h1 .grad { background: var(--g-acc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fmer-hero p.lead { font-size: 17px; color: rgba(255,255,255,.85); max-width: 580px; margin-bottom: 36px; }

/* stats row */
.fmer-hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
  max-width: 660px; margin-top: 44px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.fmer-stat-num {
  font-size: 26px; font-weight: 800;
  background: var(--g-acc); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fmer-stat-label { font-size: 11px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.fmer-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.fmer-btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s;
}
.fmer-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.fmer-btn-primary {
  background: #fff;
  color: var(--deep) !important;   /* !important: override Dokani theme link color */
  box-shadow: 0 8px 28px rgba(0,212,255,.35);
}
.fmer-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,212,255,.5); color: var(--deep) !important; }

.fmer-btn-secondary {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28);
  color: #fff !important; backdrop-filter: blur(8px);
}
.fmer-btn-secondary:hover { background: rgba(255,255,255,.18); transform: translateY(-3px); }

/* ── Section wrapper — tự căn max-width ──────────────────────────── */
.fmer-section { max-width: 1200px; margin: 60px auto; padding: 0 28px; }
.fmer-section-head { text-align: center; margin-bottom: 40px; }

/* eyebrow label (shared) */
.eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--acc); margin-bottom: 12px;
  padding: 5px 14px; background: rgba(0,212,255,.1); border-radius: 999px;
}
.fmer-section-head h2 { font-size: clamp(24px, 3.5vw, 38px); font-weight: 800; color: var(--deep); }
.fmer-section-head p { color: var(--mute); margin-top: 12px; font-size: 15px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ── USP 4-card ──────────────────────────────────────────────────── */
.fmer-usp { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.fmer-usp-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 20px; position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.fmer-usp-card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--g-acc); opacity: 0; transition: opacity .3s;
}
.fmer-usp-card:hover { transform: translateY(-5px); box-shadow: var(--sh-h); }
.fmer-usp-card:hover::before { opacity: 1; }
.fmer-usp-ico {
  width: 48px; height: 48px; border-radius: 14px; font-size: 24px; margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .3s;
}
.fmer-usp-card:hover .fmer-usp-ico { transform: scale(1.1) rotate(-5deg); }
.fmer-usp-card:nth-child(1) .fmer-usp-ico { background: rgba(0,212,255,.1); }
.fmer-usp-card:nth-child(2) .fmer-usp-ico { background: rgba(255,93,143,.1); }
.fmer-usp-card:nth-child(3) .fmer-usp-ico { background: rgba(255,170,60,.12); }
.fmer-usp-card:nth-child(4) .fmer-usp-ico { background: rgba(124,58,237,.1); }
.fmer-usp-card h3 { font-size: 16px; font-weight: 700; color: var(--deep); margin-bottom: 6px; }
.fmer-usp-card p { font-size: 13px; color: var(--mute); }

/* ── Services grid ───────────────────────────────────────────────── */
.fmer-services { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.fmer-svc {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 16px; text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.fmer-svc:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.fmer-svc-emoji { font-size: 34px; margin-bottom: 10px; display: block; line-height: 1; transition: transform .3s; }
.fmer-svc:hover .fmer-svc-emoji { transform: scale(1.12) rotate(-4deg); }
.fmer-svc-name { font-weight: 700; font-size: 13px; color: var(--deep); }
.fmer-svc-tag { font-size: 11px; color: var(--acc); font-weight: 600; margin-top: 3px; text-transform: uppercase; }

/* ── Process 4-step ──────────────────────────────────────────────── */
.fmer-process {
  background: #f7f9fd; border-radius: 20px; padding: 40px 28px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.fmer-process::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--acc), var(--glow), var(--pink), var(--warm));
}
.fmer-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.fmer-step { text-align: center; }
.fmer-step-num {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff;
  background: var(--g-acc); border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(0,212,255,.28);
}
.fmer-step:nth-child(2) .fmer-step-num { background: linear-gradient(135deg, #7c3aed, #ff5d8f); }
.fmer-step:nth-child(3) .fmer-step-num { background: linear-gradient(135deg, #ff5d8f, #ffaa3c); }
.fmer-step:nth-child(4) .fmer-step-num { background: linear-gradient(135deg, #ffaa3c, #00d4ff); }
.fmer-step h4 { font-size: 15px; font-weight: 700; color: var(--deep); margin-bottom: 6px; }
.fmer-step p { font-size: 13px; color: var(--mute); }

/* ── Address card ────────────────────────────────────────────────── */
.fmer-address {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  background: var(--g-hero); border-radius: 20px; padding: 40px;
  color: #fff; overflow: hidden; position: relative;
}
.fmer-address::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 280px at 90% 10%, rgba(0,212,255,.18), transparent 60%);
}
.fmer-address-info { position: relative; z-index: 2; }
.fmer-address-info .eyebrow { color: var(--acc); background: rgba(0,212,255,.15); }
.fmer-address-info h2 { color: #fff; font-size: 28px; margin-bottom: 14px; }
.fmer-address-info p.tagline { color: rgba(255,255,255,.8); margin-bottom: 22px; }
.fmer-address-detail {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-bottom: 10px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
}
.fmer-address-detail .ico {
  width: 38px; height: 38px; border-radius: 10px; font-size: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,212,255,.18); color: var(--acc);
}
.fmer-address-detail .txt strong { display: block; font-size: 14px; color: #fff; margin-bottom: 2px; }
.fmer-address-detail .txt span { color: rgba(255,255,255,.62); font-size: 12px; }
.fmer-address-map {
  position: relative; z-index: 2; border-radius: 14px; overflow: hidden;
  min-height: 280px; border: 1px solid rgba(255,255,255,.1);
}
.fmer-map-placeholder {
  height: 100%; min-height: 280px; display: flex; align-items: center;
  justify-content: center; flex-direction: column; gap: 12px; position: relative;
  background: linear-gradient(135deg, #1a2a5e, #0d1b3d);
}
.fmer-map-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,212,255,.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,212,255,.07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.fmer-map-pin {
  position: relative; z-index: 2; width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,.32), transparent 70%);
  display: flex; align-items: center; justify-content: center;
  animation: fmer-pulse-pin 2s ease-in-out infinite;
}
.fmer-map-pin svg { width: 38px; height: 38px; color: var(--pink); }
@keyframes fmer-pulse-pin { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.fmer-map-label { position: relative; z-index: 2; color: #fff; font-weight: 600; text-align: center; }
.fmer-map-label span { display: block; color: rgba(255,255,255,.52); font-size: 12px; margin-top: 3px; }
.fmer-map-link {
  position: relative; z-index: 2; margin-top: 14px; padding: 9px 20px;
  background: #fff; color: #0a1535; border-radius: 999px;
  font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px;
}
.fmer-map-link:hover { background: var(--acc); color: #fff; }

/* ── Pricing ─────────────────────────────────────────────────────── */
.fmer-pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.fmer-price-card {
  background: #fff; border: 2px solid var(--line); border-radius: 18px;
  padding: 28px 24px; position: relative; transition: transform .3s, box-shadow .3s;
}
.fmer-price-card.featured {
  border-color: var(--acc);
  background: linear-gradient(180deg, #fff, #f0fbff);
  transform: scale(1.03);
}
.fmer-price-card.featured::before {
  content: '⭐ Phổ biến nhất'; position: absolute; top: -12px;
  left: 50%; transform: translateX(-50%);
  background: var(--g-acc); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.fmer-price-card:not(.featured):hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--acc); }
.fmer-price-name { font-size: 12px; font-weight: 700; color: var(--acc); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.fmer-price-amount { font-size: 28px; font-weight: 800; color: var(--deep); margin-bottom: 6px; }
.fmer-price-amount small { font-size: 13px; font-weight: 500; color: var(--mute); }
.fmer-price-list { list-style: none; padding: 0; margin: 20px 0 0; }
.fmer-price-list li {
  padding: 8px 0; font-size: 13px; color: var(--mute);
  border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: flex-start;
}
.fmer-price-list li::before { content: '✓'; color: #0bb978; font-weight: 800; flex-shrink: 0; }
.fmer-price-list li:last-child { border-bottom: 0; }

/* ── Trust strip ─────────────────────────────────────────────────── */
.fmer-trust {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px;
  background: #fff; padding: 28px; border-radius: 16px; box-shadow: var(--sh);
}
.fmer-trust-item { display: flex; gap: 12px; align-items: center; }
.fmer-trust-item .ti-ico { font-size: 28px; line-height: 1; }
.fmer-trust-item h4 { font-size: 14px; font-weight: 700; color: var(--deep); margin-bottom: 2px; }
.fmer-trust-item p { font-size: 12px; color: var(--mute); }

/* ── Final CTA ───────────────────────────────────────────────────── */
.fmer-cta-final {
  background: var(--g-warm); border-radius: 20px; padding: 56px 40px;
  text-align: center; color: #fff; margin-top: 60px; position: relative; overflow: hidden;
}
.fmer-cta-final::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px at 50% 0%, rgba(255,255,255,.2), transparent 60%);
}
.fmer-cta-final h2 { font-size: clamp(22px, 4vw, 34px); font-weight: 800; margin-bottom: 12px; position: relative; }
.fmer-cta-final p { color: rgba(255,255,255,.9); font-size: 16px; margin-bottom: 24px; position: relative; }
.fmer-cta-final .fmer-cta-row { justify-content: center; position: relative; }
.fmer-cta-final .fmer-btn-primary { background: var(--deep); color: #fff !important; }
.fmer-cta-final .fmer-btn-primary:hover { background: #000; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .fmer-hero { padding: 60px 6% 70px; }
  .fmer-usp, .fmer-pricing, .fmer-trust { grid-template-columns: repeat(2,1fr); }
  .fmer-services { grid-template-columns: repeat(3,1fr); }
  .fmer-steps { grid-template-columns: repeat(2,1fr); gap: 28px; }
  .fmer-address { grid-template-columns: 1fr; padding: 28px 20px; }
  .fmer-price-card.featured { transform: none; }
  .fmer-section { margin: 40px auto; }
}
@media (max-width: 520px) {
  .fmer-hero { padding: 48px 5% 60px; }
  .fmer-services, .fmer-trust { grid-template-columns: repeat(2,1fr); }
  .fmer-trust { padding: 20px; }
  .fmer-hero h1 { font-size: 28px; }
  .fmer-cta-row { flex-direction: column; align-items: stretch; }
  .fmer-btn { justify-content: center; }
  .fmer-section { padding: 0 16px; }
}
