/*
 * Rei do Celular — Editorial Product Page
 * Landing page exclusiva por produto (inspiração Apple/Samsung).
 * 3 seções: Hero Editorial, Spec Sheet, Teaser Cinematográfico.
 *
 * @since 1.8.0
 */

/* ── RESET & BASE ──────────────────────────────────────── */
.rdc-editorial { --accent: #FFD60A; --dark: #0a0a0a; --dark2: #1a1a1a; --beige: #f4f1ea; --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace; --display: 'Inter Tight', 'Inter', -apple-system, sans-serif; }
.rdc-editorial *, .rdc-editorial *::before, .rdc-editorial *::after { box-sizing: border-box; margin: 0; padding: 0; }
.rdc-editorial img { max-width: 100%; height: auto; display: block; }
.rdc-editorial section { width: 100%; overflow: hidden; position: relative; }

/* Noise overlay reusável */
.rdc-editorial__noise { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.06; mix-blend-mode: overlay; pointer-events: none; }
.rdc-editorial__noise filter { color-interpolation-filters: sRGB; }

/* ── SECTION 1: EDITORIAL DARK (hero) ──────────────────── */
.rdc-ed-hero { min-height: 100vh; min-height: 100dvh; background: radial-gradient(ellipse at 75% 50%, #1a1a1a 0%, #050505 65%); color: #fff; display: flex; align-items: stretch; position: relative; }

/* Accent rings */
.rdc-ed-hero__ring { position: absolute; top: 50%; right: -200px; transform: translateY(-50%); border-radius: 50%; border: 1px solid; pointer-events: none; }
.rdc-ed-hero__ring--outer { width: 700px; height: 700px; border-color: rgba(255,214,10,0.25); }
.rdc-ed-hero__ring--inner { width: 500px; height: 500px; right: -100px; border-color: rgba(255,214,10,0.13); }

/* Left content */
.rdc-ed-hero__content { flex: 1; padding: 56px 0 56px 72px; display: flex; flex-direction: column; justify-content: space-between; position: relative; z-index: 2; max-width: 780px; }

/* Top bar */
.rdc-ed-hero__topbar { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 14px; letter-spacing: 0.15em; color: rgba(255,255,255,0.55); text-transform: uppercase; padding-right: 40px; }
.rdc-ed-hero__badge { display: flex; gap: 8px; align-items: center; }
.rdc-ed-hero__badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Model tag */
.rdc-ed-hero__model { font-family: var(--mono); font-size: 14px; color: var(--accent); letter-spacing: 0.25em; margin-bottom: 12px; text-transform: uppercase; }

/* Headline */
.rdc-ed-hero__headline { font-family: var(--display); font-size: clamp(64px, 8vw, 116px); line-height: 0.86; font-weight: 900; letter-spacing: -0.045em; text-transform: uppercase; text-wrap: balance; }
.rdc-ed-hero__headline-accent { color: var(--accent); }

/* Spec strip */
.rdc-ed-hero__specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,0.15); border-bottom: 1px solid rgba(255,255,255,0.15); padding: 20px 0; margin-right: 40px; }
.rdc-ed-hero__spec { padding: 0 14px; border-right: 1px solid rgba(255,255,255,0.1); }
.rdc-ed-hero__spec:last-child { border-right: none; }
.rdc-ed-hero__spec-value { font-family: var(--display); font-size: clamp(24px, 2.5vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.rdc-ed-hero__spec-label { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.1em; }

/* Footer (price + CTA) */
.rdc-ed-hero__footer { display: flex; align-items: flex-end; justify-content: space-between; padding-right: 40px; }
.rdc-ed-hero__price-label { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.18em; }
.rdc-ed-hero__price { font-family: var(--display); font-size: clamp(36px, 3.6vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; margin-top: 4px; }
.rdc-ed-hero__price .amount { color: var(--accent); }
.rdc-ed-hero__cta { display: inline-block; padding: 14px 24px; background: var(--accent); color: #000; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s; white-space: nowrap; }
.rdc-ed-hero__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,214,10,0.3); color: #000; }

/* Phone */
.rdc-ed-hero__phone { flex: 0 0 clamp(360px, 44vw, 620px); position: relative; display: flex; align-items: center; justify-content: center; }
.rdc-ed-hero__phone-img { width: clamp(320px, 40vw, 580px); height: clamp(320px, 40vw, 580px); object-fit: contain; filter: drop-shadow(0 40px 60px rgba(255,214,10,0.19)) drop-shadow(0 20px 30px rgba(0,0,0,0.7)); }


/* ── SECTION 2: SPEC SHEET (beige editorial) ───────────── */
.rdc-ed-specs { background: var(--beige); color: var(--dark); display: flex; flex-direction: column; }

/* Top bar */
.rdc-ed-specs__topbar { padding: 20px 56px; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid var(--dark); }
.rdc-ed-specs__new { color: #c4a000; font-weight: 700; }

/* Body */
.rdc-ed-specs__body { flex: 1; display: flex; position: relative; min-height: 580px; }

/* Big type */
.rdc-ed-specs__bigtype { flex: 1; padding: 40px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.rdc-ed-specs__brand { font-family: var(--display); font-size: clamp(80px, 12vw, 180px); font-weight: 900; letter-spacing: -0.07em; line-height: 0.82; }
.rdc-ed-specs__brand-accent { color: #c4a000; }
.rdc-ed-specs__brand-sub { font-size: 0.61em; letter-spacing: -0.05em; }

/* Manchete */
.rdc-ed-specs__manchete { border-top: 2px solid var(--dark); padding-top: 14px; max-width: 540px; }
.rdc-ed-specs__manchete-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: #666; }
.rdc-ed-specs__manchete-text { font-family: var(--display); font-size: clamp(28px, 3vw, 42px); font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; margin-top: 6px; text-transform: uppercase; }

/* Center phone */
.rdc-ed-specs__phone { position: absolute; top: 50%; left: 52%; transform: translate(-50%, -50%); width: clamp(280px, 30vw, 440px); height: clamp(280px, 30vw, 440px); filter: drop-shadow(0 30px 40px rgba(0,0,0,0.25)); z-index: 2; }
.rdc-ed-specs__phone img { width: 100%; height: 100%; object-fit: contain; }

/* Spec table */
.rdc-ed-specs__table { flex: 0 0 clamp(300px, 33vw, 460px); padding: 40px 56px 40px 24px; font-family: var(--mono); font-size: 13px; display: flex; flex-direction: column; justify-content: center; }
.rdc-ed-specs__table-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: #666; margin-bottom: 14px; }
.rdc-ed-specs__row { display: grid; grid-template-columns: 110px 1fr; padding: 9px 0; border-bottom: 1px solid rgba(10,10,10,0.15); }
.rdc-ed-specs__row:last-child { border-bottom: none; }
.rdc-ed-specs__row-key { color: #888; text-transform: uppercase; letter-spacing: 0.1em; }
.rdc-ed-specs__row-val { font-weight: 500; }
.rdc-ed-specs__row-sub { display: block; margin-top: 4px; font-size: 11px; font-weight: 400; color: #888; letter-spacing: 0.02em; line-height: 1.4; text-transform: none; }

/* Subhead que aparece na S1 (cine) entre o headline e o footer */
.rdc-ed-cine__subhead { font-family: var(--mono); font-size: clamp(13px, 1.2vw, 16px); line-height: 1.5; color: rgba(255,255,255,0.62); text-align: center; max-width: 580px; margin: 18px auto 0; text-wrap: balance; }

/* Subhead que aparece na S3 (hero) entre o headline e a faixa de specs */
.rdc-ed-hero__subhead { font-family: var(--mono); font-size: clamp(13px, 1.2vw, 16px); line-height: 1.5; color: rgba(255,255,255,0.62); margin-top: 18px; max-width: 520px; text-wrap: balance; }

/* Footer bar */
.rdc-ed-specs__footer { background: var(--dark); color: #fff; padding: 18px 56px; display: flex; justify-content: space-between; align-items: center; }
.rdc-ed-specs__footer-price { display: flex; align-items: baseline; gap: 14px; }
.rdc-ed-specs__footer-price-label { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.18em; }
.rdc-ed-specs__footer-price-value { font-family: var(--display); font-size: clamp(24px, 2.5vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.rdc-ed-specs__footer-price-value .amount { color: var(--accent); }
.rdc-ed-specs__footer-cta { display: inline-block; padding: 12px 22px; background: var(--accent); color: #000; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border: 0; cursor: pointer; transition: transform 0.2s; }
.rdc-ed-specs__footer-cta:hover { transform: translateY(-1px); }


/* ── SECTION 3: CINEMATIC (dark dramatic) ──────────────── */
.rdc-ed-cine { min-height: 100vh; min-height: 100dvh; background: #000; color: #fff; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }

/* Radial glow */
.rdc-ed-cine__glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(255,214,10,0.15) 0%, transparent 55%), linear-gradient(180deg, #0a0a0a 0%, #000 60%, #1a1a1a 100%); }

/* Light streak */
.rdc-ed-cine__streak { position: absolute; top: 0; left: 50%; transform: translateX(-50%) rotate(8deg); width: 3px; height: 70%; background: linear-gradient(180deg, var(--accent), transparent); filter: blur(2px); opacity: 0.5; }

/* Top bar */
.rdc-ed-cine__topbar { position: absolute; top: 28px; left: 56px; right: 56px; display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 13px; letter-spacing: 0.15em; color: rgba(255,255,255,0.55); text-transform: uppercase; z-index: 4; }

/* Giant MAX */
.rdc-ed-cine__max { position: absolute; top: clamp(60px, 12vh, 90px); left: 0; right: 0; text-align: center; overflow: hidden; pointer-events: none; z-index: 1; }
.rdc-ed-cine__max-text { font-family: var(--display); font-size: clamp(180px, 25vw, 360px); font-weight: 900; letter-spacing: -0.08em; line-height: 0.85; color: transparent; -webkit-text-stroke: 2px rgba(255,214,10,0.33); text-transform: uppercase; }

/* Phone */
.rdc-ed-cine__phone { position: relative; z-index: 2; width: clamp(300px, 33vw, 460px); height: clamp(380px, 40vw, 580px); margin-top: auto; filter: drop-shadow(0 25px 50px rgba(255,214,10,0.25)) drop-shadow(0 50px 80px rgba(0,0,0,0.9)); }
.rdc-ed-cine__phone img { width: 100%; height: 100%; object-fit: contain; }

/* Light beam */
.rdc-ed-cine__beam { position: relative; width: clamp(400px, 50vw, 700px); height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); filter: blur(1px); z-index: 3; margin-top: -20px; }

/* Bottom content */
.rdc-ed-cine__bottom { position: relative; z-index: 3; width: 100%; padding: 28px 56px 36px; }
.rdc-ed-cine__model { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.35em; text-align: center; text-transform: uppercase; margin-bottom: 14px; }
.rdc-ed-cine__headline { font-family: var(--display); font-size: clamp(40px, 5.3vw, 76px); font-weight: 900; line-height: 0.92; letter-spacing: -0.045em; text-align: center; text-transform: uppercase; text-wrap: balance; }
.rdc-ed-cine__footer { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid rgba(255,214,10,0.25); }
.rdc-ed-cine__footer-left { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.18em; }
.rdc-ed-cine__footer-right { text-align: right; }
.rdc-ed-cine__footer-since { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.18em; }
.rdc-ed-cine__footer-price { font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--accent); }


/* ── ADD TO CART (sticky mobile) ───────────────────────── */
.rdc-ed-cart-sticky { display: none; }


/* ── MOBILE ≤768px ─────────────────────────────────────── */
@media (max-width: 768px) {

  /* Hero → vertical */
  .rdc-ed-hero { flex-direction: column; min-height: auto; padding: 0; }
  .rdc-ed-hero__ring { display: none; }
  .rdc-ed-hero__content { padding: 40px 28px; max-width: 100%; }
  .rdc-ed-hero__topbar { font-size: 11px; padding-right: 0; }
  .rdc-ed-hero__specs { grid-template-columns: repeat(2, 1fr); margin-right: 0; gap: 16px 0; }
  .rdc-ed-hero__spec { padding: 8px 12px; }
  .rdc-ed-hero__spec:nth-child(2) { border-right: none; }
  .rdc-ed-hero__footer { flex-direction: column; gap: 20px; align-items: flex-start; padding-right: 0; }
  .rdc-ed-hero__phone { flex: none; width: 100%; min-height: 400px; justify-content: center; padding: 20px 0 40px; }
  .rdc-ed-hero__phone-img { width: 70vw; height: 70vw; max-width: 400px; max-height: 400px; }

  /* Spec Sheet → stack */
  .rdc-ed-specs__topbar { padding: 16px 20px; font-size: 11px; flex-wrap: wrap; gap: 8px; }
  .rdc-ed-specs__body { flex-direction: column; min-height: auto; }
  .rdc-ed-specs__bigtype { padding: 28px 20px; }
  .rdc-ed-specs__phone { position: relative; top: auto; left: auto; transform: none; width: 60vw; height: 60vw; max-width: 320px; max-height: 320px; margin: 0 auto; }
  .rdc-ed-specs__table { flex: none; padding: 20px; }
  .rdc-ed-specs__footer { padding: 16px 20px; flex-direction: column; gap: 14px; }
  .rdc-ed-specs__footer-price { flex-direction: column; gap: 4px; }

  /* Cinematic */
  .rdc-ed-cine { min-height: auto; padding-top: 80px; }
  .rdc-ed-cine__topbar { top: 16px; left: 20px; right: 20px; font-size: 11px; }
  .rdc-ed-cine__bottom { padding: 20px 20px 28px; }
  .rdc-ed-cine__footer { flex-direction: column; gap: 12px; align-items: center; }

  /* Sticky cart bar mobile */
  .rdc-ed-cart-sticky { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: var(--dark); padding: 12px 20px; align-items: center; justify-content: space-between; box-shadow: 0 -4px 20px rgba(0,0,0,0.5); }
  .rdc-ed-cart-sticky__price { font-family: var(--display); font-size: 22px; font-weight: 800; color: #fff; }
  .rdc-ed-cart-sticky__price .amount { color: var(--accent); }
  .rdc-ed-cart-sticky__btn { padding: 12px 20px; background: var(--accent); color: #000; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; }
}

/* Fix pontual: tema sobrescreve h1 com preto */
.rdc-ed-hero__headline{color:#fff!important}
.rdc-ed-cine__headline{color:#fff!important}
