/*
Theme Name: VivaFone Store
Theme URI: https://vivafone.com.br/
Author: VivaFone
Description: Tema inicial da loja VivaFone para celulares Realme e notebooks ThinkPad.
Version: 1.1.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: vivafone-store
*/

:root {
  --ink: #090b0f;
  --graphite: #171a1f;
  --muted: #69727d;
  --line: rgba(9, 11, 15, .12);
  --paper: #f6f4ef;
  --white: #fff;
  --yellow: #ffcf19;
  --amber: #ff9e0d;
  --orange: #ff5a1f;
  --blue: #dff4ff;
  --shadow: 0 26px 90px rgba(9, 11, 15, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

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

.vf-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  padding: 0 clamp(18px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(246, 244, 239, .82);
  border-bottom: 1px solid rgba(9, 11, 15, .08);
  backdrop-filter: blur(18px);
}

.vf-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
}

.vf-logo span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 26px;
  transform: skew(-8deg);
}

.vf-logo strong {
  font-size: 24px;
  line-height: 1;
  letter-spacing: .4px;
}

.vf-logo em {
  color: var(--yellow);
  font-style: normal;
  text-shadow: 0 1px 0 var(--ink);
}

.vf-site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #333941;
  font-size: 14px;
  font-weight: 800;
}

.vf-site-nav a:hover { color: var(--orange); }

.vf-pill,
.vf-button,
.vf-product-card button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  font-weight: 900;
}

.vf-pill {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.vf-button.primary,
.vf-product-card button {
  background: var(--yellow);
  color: var(--ink);
}

.vf-button.ghost {
  border: 1px solid rgba(9,11,15,.14);
  background: rgba(255,255,255,.62);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.vf-hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  padding: clamp(68px, 9vw, 112px) clamp(22px, 6vw, 88px) 34px;
  display: grid;
  grid-template-columns: minmax(320px, 570px) 1fr;
  align-items: center;
  gap: 36px;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 207, 25, .56), transparent 24%),
    radial-gradient(circle at 88% 74%, rgba(131, 198, 255, .28), transparent 30%),
    linear-gradient(135deg, #fffaf0 0%, #eef8ff 48%, #f7f3e8 100%);
  color: var(--ink);
}

.vf-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(transparent, rgba(246,244,239,.96));
  pointer-events: none;
}

.vf-eyebrow {
  margin: 0 0 16px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.vf-hero h1 {
  margin: 0;
  font-size: clamp(66px, 13vw, 178px);
  line-height: .82;
  font-weight: 950;
  letter-spacing: 0;
}

.vf-hero-subtitle {
  max-width: 560px;
  margin: 26px 0 0;
  color: #4d5863;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  font-weight: 650;
}

.vf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.vf-hero-visual {
  position: relative;
  min-height: 610px;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.vf-c85-rotator {
  position: relative;
  width: min(680px, 48vw);
  animation: floatDevice 6s ease-in-out infinite;
}

.vf-c85-rotator::before {
  content: "";
  position: absolute;
  inset: 9% -7% 8%;
  border-radius: 48px;
  background: radial-gradient(circle at 50% 36%, rgba(255,255,255,.74), rgba(255,255,255,.18) 64%, transparent 72%);
  box-shadow: 0 36px 110px rgba(69, 98, 130, .18);
  backdrop-filter: blur(18px);
}

.vf-c85-frame {
  position: relative;
  height: min(650px, 68vh);
  min-height: 520px;
  overflow: visible;
  border: 0;
  border-radius: 46px;
  background: transparent;
  box-shadow: none;
  transform-style: preserve-3d;
}

.vf-c85-frame.is-spinning-forward {
  animation: colorSpinForward .74s cubic-bezier(.22,.74,.23,1);
}

.vf-c85-frame.is-spinning-back {
  animation: colorSpinBack .74s cubic-bezier(.22,.74,.23,1);
}

.vf-c85-phone {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(330px, 48vw);
  height: min(560px, 62vh);
  min-height: 460px;
  border-radius: 42px;
  transform: translate(-50%, -50%) rotate(-11deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 42px 58px rgba(25, 58, 93, .24));
  animation: phoneVideoMove 5.2s ease-in-out infinite;
  transition: filter .34s ease;
}

.vf-c85-phone::before,
.vf-c85-phone::after {
  content: "";
  position: absolute;
  z-index: -2;
  pointer-events: none;
}

.vf-c85-phone::before {
  width: 210px;
  height: 78px;
  left: -118px;
  top: 74px;
  border-radius: 999px 999px 999px 22px;
  background: linear-gradient(90deg, transparent 0 10%, rgba(75, 137, 232, .2), rgba(28, 64, 104, .82));
  filter: blur(.2px);
  transform: rotate(-24deg);
  opacity: .7;
}

.vf-c85-phone::after {
  width: 250px;
  height: 92px;
  right: -130px;
  bottom: 112px;
  border-radius: 999px 999px 22px 999px;
  background: linear-gradient(90deg, rgba(26, 55, 84, .72), rgba(110, 172, 255, .18), transparent);
  transform: rotate(-34deg);
  opacity: .72;
}

.vf-phone-side {
  position: absolute;
  inset: 12px -12px 12px auto;
  width: 34px;
  border-radius: 26px 42px 42px 26px;
  background: linear-gradient(90deg, rgba(255,255,255,.35), rgba(0,0,0,.38));
  transform: translateZ(-22px);
}

.vf-phone-body {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.52);
  border-radius: inherit;
  box-shadow:
    inset 16px 0 24px rgba(255,255,255,.18),
    inset -20px -18px 34px rgba(0,0,0,.18);
}

.vf-phone-body::before,
.vf-phone-body::after {
  content: "";
  position: absolute;
  inset: 0;
}

.vf-phone-body::before {
  background:
    repeating-linear-gradient(116deg, transparent 0 22px, rgba(255,255,255,.11) 23px, transparent 25px),
    radial-gradient(circle at 26% 12%, rgba(255,255,255,.42), transparent 28%),
    linear-gradient(145deg, var(--phone-top), var(--phone-bottom));
}

.vf-phone-body::after {
  opacity: .72;
  background:
    radial-gradient(ellipse at 28% 20%, rgba(255,255,255,.38), transparent 30%),
    repeating-radial-gradient(ellipse at 44% 74%, transparent 0 18px, rgba(255,255,255,.14) 19px 20px, transparent 21px 26px);
  mix-blend-mode: screen;
}

.vf-c85-phone.is-blue {
  --phone-top: #d9ecff;
  --phone-bottom: #5f8fe8;
  --camera-accent: #35d7f6;
  --lens-glow: rgba(59, 180, 255, .44);
}

.vf-c85-phone.is-black {
  --phone-top: #5b5b4f;
  --phone-bottom: #151511;
  --camera-accent: #f4d422;
  --lens-glow: rgba(255, 219, 38, .38);
}

.vf-phone-camera {
  position: absolute;
  z-index: 3;
  top: 34px;
  left: 34px;
  width: 118px;
  height: 194px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.52), rgba(0,0,0,.18)), color-mix(in srgb, var(--phone-top) 72%, #101010);
  box-shadow: 0 16px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.48);
}

.vf-phone-camera i,
.vf-phone-camera em,
.vf-phone-camera b {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.vf-phone-camera i {
  left: 18px;
  width: 42px;
  height: 42px;
  background: radial-gradient(circle at 35% 30%, #5da6e9 0 8%, #0b141e 32%, #030506 68%);
  box-shadow: 0 0 0 5px rgba(0,0,0,.36), inset 0 0 0 1px rgba(255,255,255,.12), 0 0 26px var(--lens-glow);
}

.vf-phone-camera i:nth-child(1) { top: 20px; }
.vf-phone-camera i:nth-child(2) { top: 78px; }
.vf-phone-camera i:nth-child(3) { top: 136px; }

.vf-phone-camera em {
  right: 16px;
  top: 20px;
  width: 36px;
  height: 36px;
  border: 7px solid var(--camera-accent);
  background: rgba(255,255,255,.18);
}

.vf-phone-camera b {
  right: 24px;
  top: 88px;
  width: 22px;
  height: 22px;
  background: radial-gradient(circle, #fff, #efe7d8 56%, #bcae91);
  box-shadow: 0 0 16px rgba(255,255,255,.54);
}

.vf-phone-mark {
  position: absolute;
  z-index: 3;
  left: 42px;
  bottom: 44px;
  color: rgba(255,255,255,.7);
  font-size: 26px;
  font-weight: 950;
  transform: rotate(-90deg);
  letter-spacing: 1px;
}

.vf-color-picker {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  min-width: 148px;
  min-height: 66px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 48px rgba(26, 52, 78, .18);
  backdrop-filter: blur(16px);
}

.vf-color-picker button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
}

.vf-color-picker button.is-active {
  border-color: #6da7ff;
}

.vf-color-picker span {
  width: 29px;
  height: 29px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 4px 12px rgba(0,0,0,.18);
}

.vf-color-picker .blue {
  background: radial-gradient(circle at 32% 30%, #d9ecff 0 14%, #77a7f1 46%, #4777d7 100%);
}

.vf-color-picker .black {
  background: radial-gradient(circle at 32% 30%, #7d7f73 0 8%, #34342e 52%, #11120f 100%);
}

.vf-spec-strip {
  position: absolute;
  z-index: 3;
  left: clamp(22px, 6vw, 88px);
  right: clamp(22px, 6vw, 88px);
  bottom: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(9,11,15,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px);
}

.vf-spec-strip span {
  min-height: 96px;
  padding: 22px;
  display: grid;
  gap: 4px;
  background: rgba(255,255,255,.38);
  color: #66737f;
  font-size: 13px;
  font-weight: 750;
}

.vf-spec-strip b {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.vf-category-bar {
  max-width: 1180px;
  margin: -8px auto 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  position: relative;
  z-index: 4;
}

.vf-category-bar a {
  min-height: 104px;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(9,11,15,.08);
  box-shadow: var(--shadow);
}

.vf-category-bar span {
  display: block;
  font-size: 22px;
  font-weight: 950;
}

.vf-category-bar small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.vf-feature-grid,
.vf-showcase,
.vf-notebook-panel,
.vf-products,
.vf-closing {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) clamp(22px, 5vw, 60px);
}

.vf-feature-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
}

.vf-feature-card {
  min-height: 640px;
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}

.vf-feature-card.big {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
}

.vf-feature-card.big div {
  padding: clamp(32px, 5vw, 62px);
}

.vf-feature-card h2,
.vf-section-title h2,
.vf-notebook-copy h2,
.vf-closing h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .96;
  font-weight: 950;
}

.vf-feature-card p:not(.vf-eyebrow),
.vf-notebook-copy p,
.vf-closing p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 650;
}

.vf-feature-card.big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vf-feature-card.dark {
  display: grid;
  background: #050608;
  color: #fff;
}

.vf-feature-card.dark img {
  width: 100%;
  height: 370px;
  object-fit: cover;
}

.vf-feature-card.dark div {
  padding: 34px;
}

.vf-feature-card.dark p:not(.vf-eyebrow) { color: rgba(255,255,255,.66); }

.vf-section-title {
  max-width: 880px;
  margin-bottom: 34px;
}

.vf-phone-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.vf-phone-line article {
  min-height: 250px;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(9,11,15,.08);
}

.vf-phone-line strong {
  display: block;
  font-size: 28px;
  font-weight: 950;
}

.vf-phone-line span {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
}

.vf-phone-line article:first-child {
  background: linear-gradient(150deg, var(--yellow), var(--amber));
}

.vf-phone-line article:first-child span { color: rgba(9,11,15,.72); }

.vf-notebook-panel {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 28px;
  align-items: center;
  border-radius: 0;
}

.vf-laptop-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.vf-laptop-stack article {
  min-height: 360px;
  padding: 24px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(150deg, #1a1f26, #050608);
  color: #fff;
  box-shadow: var(--shadow);
}

.vf-laptop-stack img {
  margin: auto 0 34px;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.45));
}

.vf-laptop-stack strong {
  font-size: 28px;
  font-weight: 950;
}

.vf-laptop-stack span {
  margin-top: 5px;
  color: rgba(255,255,255,.62);
  font-weight: 750;
}

.vf-products { padding-top: 52px; }

.vf-product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 360px);
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scrollbar-color: var(--yellow) rgba(9,11,15,.1);
}

.vf-product-card {
  min-height: 520px;
  padding: 18px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(9,11,15,.08);
  box-shadow: 0 22px 70px rgba(9,11,15,.08);
}

.vf-product-image {
  height: 240px;
  overflow: hidden;
  border-radius: 22px;
  background: #f0f1f2;
}

.vf-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vf-product-image.placeholder {
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 34% 22%, rgba(255,207,25,.58), transparent 22%),
    linear-gradient(145deg, #12161d, #050608);
}

.vf-product-image.placeholder::before {
  content: "";
  width: 82px;
  height: 150px;
  border: 6px solid rgba(255,255,255,.82);
  border-radius: 24px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), 0 18px 40px rgba(0,0,0,.28);
}

.vf-product-image.placeholder span {
  position: absolute;
  left: 22px;
  bottom: 20px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.vf-product-card small,
.vf-product-card span {
  display: block;
  color: var(--muted);
  font-weight: 850;
}

.vf-product-card small {
  margin-top: 20px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
}

.vf-product-card h3 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1;
}

.vf-product-card p {
  min-height: 76px;
  color: #414850;
  line-height: 1.45;
  font-weight: 700;
}

.vf-product-card button {
  width: 100%;
  margin-top: 18px;
}

.vf-closing {
  max-width: 1120px;
  margin-bottom: 56px;
  border-radius: 36px;
  background: linear-gradient(135deg, #fff, #fff8db);
  box-shadow: var(--shadow);
  text-align: center;
}

.vf-closing p:not(.vf-eyebrow) {
  max-width: 720px;
  margin: 20px auto 0;
}

.vf-footer {
  min-height: 110px;
  padding: 28px clamp(22px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #050608;
  color: rgba(255,255,255,.68);
  font-weight: 700;
}

.vf-footer strong {
  color: #fff;
  font-size: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatDevice {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}

@keyframes colorSpinForward {
  0% { transform: rotateY(0) scale(1); }
  47% { transform: rotateY(88deg) scale(.96); }
  100% { transform: rotateY(0) scale(1); }
}

@keyframes colorSpinBack {
  0% { transform: rotateY(0) scale(1); }
  47% { transform: rotateY(-88deg) scale(.96); }
  100% { transform: rotateY(0) scale(1); }
}

@keyframes phoneVideoMove {
  0%, 100% { transform: translate(-50%, -50%) translate3d(0, 0, 0) rotate(-11deg) scale(1); }
  35% { transform: translate(-50%, -50%) translate3d(10px, -14px, 0) rotate(-8.8deg) scale(1.018); }
  70% { transform: translate(-50%, -50%) translate3d(-8px, -5px, 0) rotate(-12.2deg) scale(1.006); }
}

@media (max-width: 980px) {
  .vf-site-header { height: auto; min-height: 70px; flex-wrap: wrap; padding-block: 14px; }
  .vf-site-nav { order: 3; width: 100%; overflow-x: auto; gap: 20px; padding-bottom: 2px; }
  .vf-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 56px; }
  .vf-hero-visual { min-height: 560px; }
  .vf-c85-rotator { width: min(620px, 90vw); }
  .vf-c85-frame { min-height: 500px; height: 560px; border-radius: 38px; }
  .vf-spec-strip { position: relative; left: auto; right: auto; bottom: auto; margin-top: 22px; grid-template-columns: repeat(2, 1fr); }
  .vf-category-bar,
  .vf-feature-grid,
  .vf-notebook-panel,
  .vf-laptop-stack,
  .vf-phone-line { grid-template-columns: 1fr; }
  .vf-feature-card.big { grid-template-columns: 1fr; }
  .vf-feature-card { min-height: auto; }
  .vf-notebook-panel { padding-top: 48px; }
}

@media (max-width: 620px) {
  .vf-pill { display: none; }
  .vf-hero { padding-inline: 18px; }
  .vf-hero h1 { font-size: clamp(58px, 21vw, 92px); }
  .vf-hero-visual { min-height: 480px; }
  .vf-c85-rotator { width: min(440px, 94vw); }
  .vf-c85-frame { min-height: 430px; height: 470px; border-radius: 32px; }
  .vf-color-picker { bottom: 24px; min-width: 132px; min-height: 58px; gap: 12px; }
  .vf-spec-strip { grid-template-columns: 1fr; }
  .vf-category-bar { grid-template-columns: 1fr; padding-inline: 18px; }
  .vf-feature-grid,
  .vf-showcase,
  .vf-notebook-panel,
  .vf-products,
  .vf-closing { padding-inline: 18px; }
  .vf-feature-card h2,
  .vf-section-title h2,
  .vf-notebook-copy h2,
  .vf-closing h2 { font-size: 38px; }
  .vf-footer { align-items: flex-start; flex-direction: column; }
}
