/*
 * Tema Divertido — páginas internas (Empresa, Produtos, Catálogo, Multimídia, Contato, Trabalhe conosco).
 * Mesma linguagem da Home: Baloo 2, botões arredondados com "borda" sólida, selos, confetes e onda animada.
 */
.fun-page { overflow-x: hidden; background: #fff; }
.fun-btn-blue { background: var(--fun-blue); color: #fff; }

/* ---------- Menu do topo ---------- */
.fun-topbar { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.05); }
.fun-topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px var(--fun-gut); }
.fun-topbar-logo img { display: block; width: 64px; height: 64px; border-radius: 18px; transform: rotate(-4deg); box-shadow: 0 5px 0 rgba(0,0,0,.12); transition: transform .5s var(--fun-ease); }
.fun-topbar-logo:hover img { transform: rotate(3deg) scale(1.05); }
.fun-topnav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; padding: 0; }
.fun-topnav a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--fun-font); font-weight: 800; font-size: 16px; line-height: 1; color: var(--fun-ink);
  padding: 11px 16px 9px; border-radius: 999px; background: #f1f5fb;
  box-shadow: 0 4px 0 rgba(0,0,0,.06);
  transition: transform .5s var(--fun-ease), background-color .3s, color .3s;
}
.fun-topnav a i { color: var(--fun-blue); transition: color .3s; }
.fun-topnav a:hover { transform: translateY(-2px) rotate(-1deg); background: var(--fun-blue); color: #fff; }
.fun-topnav a:hover i { color: #fff; }
.fun-topnav a.is-current { background: var(--fun-yellow); color: var(--fun-ink); transform: rotate(-2deg); }
.fun-topnav a.is-current i { color: var(--fun-ink); }
.fun-topnav a.fun-topnav-shop { background: var(--fun-blue); color: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.15); }
.fun-topnav a.fun-topnav-shop i { color: #fff; }
.fun-topnav a.fun-topnav-shop:hover { background: var(--fun-yellow); color: var(--fun-ink); }
.fun-topnav a.fun-topnav-shop:hover i { color: var(--fun-ink); }
.fun-burger { display: none; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; background: var(--fun-blue); color: #fff; font-size: 22px; box-shadow: 0 5px 0 rgba(0,0,0,.15); transition: transform .5s var(--fun-ease), background-color .3s; }
@media (min-width: 1800px) {
  .fun-topbar-logo img { width: 80px; height: 80px; }
  .fun-topnav a { font-size: 19px; padding: 13px 20px 11px; }
}
@media (max-width: 1199.98px) {
  .fun-burger { display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
  .fun-topbar-logo { position: relative; z-index: 2; }
  .fun-topbar-logo img { width: 56px; height: 56px; }
  .fun-topnav {
    position: fixed; inset: 0; z-index: 1; padding: 100px 24px 32px; overflow-y: auto;
    background: radial-gradient(circle, rgba(255,255,255,.35) 3px, transparent 4px) 0 0 / 120px 120px, var(--fun-blue);
    clip-path: circle(0 at calc(100% - 50px) 44px); pointer-events: none;
    transition: clip-path .55s cubic-bezier(.65,0,.25,1);
  }
  .fun-topnav ul { flex-direction: column; flex-wrap: nowrap; gap: 12px; }
  .fun-topnav a { width: 100%; font-size: 21px; padding: 14px 22px 12px; background: rgba(255,255,255,.2); color: #fff; opacity: 0; transform: translateX(40px); transition: opacity .3s, transform .45s var(--fun-ease), background-color .2s; }
  .fun-topnav a i { color: #fff; width: 26px; text-align: center; }
  .fun-topnav a.is-current { background: var(--fun-yellow); color: var(--fun-ink); }
  .fun-topnav a.fun-topnav-shop { background: #fff; color: var(--fun-blue); }
  .fun-topnav a.fun-topnav-shop i { color: var(--fun-blue); }
  .fun-topbar.is-open .fun-topnav { clip-path: circle(160% at calc(100% - 50px) 44px); pointer-events: auto; }
  .fun-topbar.is-open .fun-topnav a { opacity: 1; transform: none; }
  .fun-topbar.is-open .fun-topnav li:nth-child(2) a { transition-delay: .04s; }
  .fun-topbar.is-open .fun-topnav li:nth-child(3) a { transition-delay: .08s; }
  .fun-topbar.is-open .fun-topnav li:nth-child(4) a { transition-delay: .12s; }
  .fun-topbar.is-open .fun-topnav li:nth-child(5) a { transition-delay: .16s; }
  .fun-topbar.is-open .fun-topnav li:nth-child(6) a { transition-delay: .2s; }
  .fun-topbar.is-open .fun-topnav li:nth-child(7) a { transition-delay: .24s; }
  .fun-topbar.is-open .fun-topnav li:nth-child(8) a { transition-delay: .28s; }
  .fun-topbar.is-open .fun-burger { background: var(--fun-yellow); color: var(--fun-ink); transform: rotate(90deg); }
}
body.fun-menu-open { overflow: hidden; }

/* ---------- Faixa do topo das páginas ---------- */
.fun-page-hero { --h1: var(--fun-blue); --h2: #5aa7ec; --ink: #fff; position: relative; overflow: hidden; color: var(--ink); padding: clamp(48px, 7vw, 100px) 0 clamp(90px, 9vw, 140px); background: radial-gradient(120% 140% at 20% 20%, var(--h2), var(--h1) 70%); }
.fun-page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.55) 3px, transparent 4px), radial-gradient(circle, rgba(255,255,255,.35) 2px, transparent 3px), radial-gradient(circle, rgba(255,210,63,.7) 3px, transparent 4px);
  background-size: 140px 140px, 90px 90px, 210px 210px; background-position: 0 0, 40px 60px, 120px 30px;
  animation: fun-drift 40s linear infinite;
}
@keyframes fun-drift { to { background-position: 140px 280px, 130px 240px, 330px 450px; } }
.fun-hero-amarelo { --h1: #ffc21a; --h2: #ffe07a; --ink: #3d2a00; }
.fun-hero-rosa { --h1: #e9457a; --h2: #ff8fb1; }
.fun-hero-roxo { --h1: #6a3fc0; --h2: #9b72e6; }
.fun-hero-verde { --h1: #2f9e48; --h2: #6ccf7f; }
.fun-page-hero-in { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.fun-page-hero .fun-kicker { background: rgba(255,255,255,.25); color: inherit; box-shadow: none; }
.fun-hero-amarelo .fun-kicker { background: #fff; }
.fun-page-title { font-family: var(--fun-font); font-weight: 800; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; margin: 16px 0 0; color: inherit; text-shadow: 0 5px 0 rgba(0,0,0,.12); }
.fun-hero-amarelo .fun-page-title { text-shadow: 0 5px 0 rgba(255,255,255,.4); }
.fun-page-lead { margin: 14px 0 0; max-width: 640px; font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.6; opacity: .95; }
.fun-hero-shape { position: absolute; z-index: 1; pointer-events: none; animation: fun-bob 6s ease-in-out infinite; }
.fun-hero-star { font-size: 56px; color: var(--fun-yellow); text-shadow: 0 6px 0 rgba(0,0,0,.12); top: 18%; left: 10%; transform: rotate(-12deg); }
.fun-hero-amarelo .fun-hero-star { color: #fff; }
.fun-hero-ring { width: 90px; height: 90px; border-radius: 50%; border: 14px solid rgba(255,255,255,.35); top: 16%; right: 9%; animation-delay: -2s; }
@keyframes fun-bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.fun-page-wave { position: absolute; z-index: 3; left: 0; bottom: -1px; width: 100%; height: clamp(50px, 5vw, 90px); fill: #fff; pointer-events: none; }
.fun-page-wave path { will-change: transform; }
.fun-page-wave .w-front { animation: fun-wave-l 20s linear infinite; }
.fun-page-wave .w-back { opacity: .45; animation: fun-wave-r 30s linear infinite; }
@keyframes fun-wave-l { from { transform: translateX(0); } to { transform: translateX(-1440px); } }
@keyframes fun-wave-r { from { transform: translateX(-1440px); } to { transform: translateX(0); } }
@media (max-width: 767.98px) { .fun-hero-star { top: 8%; left: 6%; font-size: 40px; } .fun-hero-ring { width: 60px; height: 60px; border-width: 10px; top: 8%; right: 6%; } }

/* ---------- Produtos: busca e filtros ---------- */
.fun-filters { width: 100%; max-width: 760px; margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.fun-search { width: 100%; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 8px 8px 8px 22px; box-shadow: 0 8px 0 rgba(0,0,0,.12); }
.fun-search > i { color: var(--fun-blue); font-size: 18px; }
.fun-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--fun-ink); padding: 10px 4px; }
.fun-search .fun-btn { padding: 13px 22px 11px; box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.fun-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fun-chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.fun-chip-opt span {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--fun-font); font-weight: 800; font-size: 16px; line-height: 1; color: #fff;
  padding: 11px 18px 9px; border-radius: 999px; background: rgba(255,255,255,.2);
  box-shadow: 0 4px 0 rgba(0,0,0,.1); transition: transform .5s var(--fun-ease), background-color .3s, color .3s;
}
.fun-chip-opt span:hover { transform: translateY(-2px); background: rgba(255,255,255,.35); }
.fun-chip-opt input:checked + span { background: var(--fun-yellow); color: var(--fun-ink); transform: rotate(-2deg); }
.fun-chip-opt input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }

.fun-list { padding-top: clamp(20px, 3vw, 40px); }
.fun-list-count { font-family: var(--fun-font); font-weight: 700; color: var(--fun-text); margin: 0 0 18px; }
/* Colunas fixas em 1/2/3/4/6 (divisores de 24 produtos por página): a última linha nunca fica com buraco */
.fun-grid { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2vw, 28px); }
@media (min-width: 540px) { .fun-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 880px) { .fun-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .fun-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }.fun-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 60px 20px; background: #f6f8fb; border-radius: var(--fun-radius); color: var(--fun-text); }
.fun-empty i { font-size: 46px; color: var(--fun-blue); }
.fun-empty strong { font-family: var(--fun-font); font-size: 22px; color: var(--fun-ink); }
.fun-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.fun-pages a, .fun-pages span { min-width: 46px; height: 46px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--fun-font); font-weight: 800; font-size: 17px; text-decoration: none; }
.fun-pages a { background: #f1f5fb; color: var(--fun-ink); box-shadow: 0 4px 0 rgba(0,0,0,.06); transition: transform .5s var(--fun-ease), background-color .3s, color .3s; }
.fun-pages a:hover { transform: translateY(-2px); background: var(--fun-blue); color: #fff; }
.fun-pages .current { background: var(--fun-yellow); color: var(--fun-ink); box-shadow: 0 4px 0 rgba(0,0,0,.1); }
.fun-pages .dots { color: var(--fun-text); }

/* ---------- Empresa ---------- */
.fun-about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.fun-about-text p { font-size: clamp(15px, 1.05vw, 17px); line-height: 1.75; color: var(--fun-text); margin: 16px 0 0; }
.fun-about-text .fun-title { margin-top: 0; }
.fun-about-sign { font-family: var(--fun-font); font-weight: 800; font-size: 20px !important; color: var(--fun-blue) !important; }
.fun-about-photo { position: relative; margin: 0; }
.fun-about-photo::before { content: ""; position: absolute; inset: 0; border-radius: 36px; background: var(--fun-yellow); transform: rotate(4deg) translate(10px, 10px); }
.fun-about-photo img { position: relative; display: block; width: 100%; border-radius: 36px; border: 6px solid #fff; box-shadow: 0 10px 0 rgba(0,0,0,.1); transform: rotate(-2deg); transition: transform .5s var(--fun-ease); }
.fun-about-photo:hover img { transform: rotate(0); }
.fun-about-photo figcaption { position: absolute; left: 20px; bottom: -14px; display: inline-flex; gap: 8px; align-items: center; background: var(--fun-pink); color: #fff; font-family: var(--fun-font); font-weight: 800; padding: 8px 16px 6px; border-radius: 999px; transform: rotate(-4deg); box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.fun-stats { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.fun-stats li { border-radius: 28px; padding: 24px 22px; box-shadow: 0 8px 0 rgba(0,0,0,.1); display: flex; flex-direction: column; gap: 4px; transition: transform .5s var(--fun-ease); }
.fun-stats li:hover { transform: translateY(-4px) rotate(-1deg); }
.fun-stats strong { font-family: var(--fun-font); font-weight: 800; font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: 1; }
.fun-stats span { font-size: 14px; opacity: .9; }
.fun-stats .s-yellow { background: var(--fun-yellow); color: #3d2a00; }
.fun-stats .s-blue { background: var(--fun-blue); color: #fff; }
.fun-stats .s-pink { background: var(--fun-pink); color: #fff; }
.fun-stats .s-green { background: #3fb950; color: #fff; }

/* ---------- Catálogo ---------- */
.fun-cat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 340px)); justify-content: center; gap: clamp(24px, 3vw, 40px); }
.fun-book { --c: var(--fun-yellow); display: flex; flex-direction: column; background: #fff; border-radius: var(--fun-radius); border: 2px solid #eef1f6; box-shadow: var(--fun-ledge); overflow: hidden; }
.fun-book-cover { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; border: 0; padding: 22px; cursor: pointer; background: color-mix(in srgb, var(--c) 30%, #fff); perspective: 900px; }
.fun-book-cover > img, .fun-book-blank { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 6px 16px 16px 6px; box-shadow: -6px 0 0 color-mix(in srgb, var(--c) 70%, #000) inset, 0 12px 20px rgba(0,0,0,.18); transform-origin: left center; transition: transform .6s var(--fun-ease); }
.fun-book-blank { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--c); color: #fff; font-family: var(--fun-font); }
.fun-book-blank img { width: 90px; border-radius: 22px; transform: rotate(-4deg); }
.fun-book-blank strong { font-size: 34px; line-height: 1; }
.fun-book-blank em { font-style: normal; font-weight: 700; font-size: 18px; opacity: .9; }
.fun-book-cover:hover > img, .fun-book-cover:hover .fun-book-blank { transform: rotateY(-14deg); }
.fun-book-hint { position: absolute; left: 50%; bottom: 34px; translate: -50% 0; display: inline-flex; gap: 8px; align-items: center; background: #fff; color: var(--fun-ink); font-family: var(--fun-font); font-weight: 800; padding: 10px 18px 8px; border-radius: 999px; box-shadow: 0 5px 0 rgba(0,0,0,.15); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .5s var(--fun-ease); }
.fun-book-cover:hover .fun-book-hint, .fun-book-cover:focus-visible .fun-book-hint { opacity: 1; transform: none; }
.fun-book-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.fun-book-body h2 { font-family: var(--fun-font); font-weight: 800; font-size: 24px; line-height: 1.1; margin: 0; color: var(--fun-ink); }
.fun-book-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fun-book-actions .fun-btn, .fun-book-actions .fun-pill { font-size: 16px; padding: 12px 18px 10px; text-decoration: none; }

/* Leitor em modo livro */
.fun-reader { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; background: rgba(23, 22, 48, .92); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.fun-reader.is-on { opacity: 1; }
.fun-reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--fun-gut); color: #fff; }
.fun-reader-bar strong { font-family: var(--fun-font); font-weight: 800; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fun-reader-tools { display: flex; gap: 8px; flex: 0 0 auto; }
.fun-reader-tools a, .fun-reader-tools button { width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--fun-ink); font-size: 18px; text-decoration: none; box-shadow: 0 4px 0 rgba(0,0,0,.25); transition: transform .5s var(--fun-ease), background-color .3s; }
.fun-reader-tools a:hover, .fun-reader-tools button:hover { transform: translateY(-2px); background: var(--fun-yellow); }
.fun-reader-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 70px; }
.fun-reader-book { margin: 0 auto; }
.fun-reader-book .stf__item img, .fun-reader-book .page img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.fun-reader-nav { position: absolute; top: 50%; translate: 0 -50%; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; background: var(--fun-yellow); color: var(--fun-ink); font-size: 20px; box-shadow: 0 5px 0 rgba(0,0,0,.25); z-index: 5; transition: transform .5s var(--fun-ease); }
.fun-reader-nav:hover { transform: scale(1.08); }
.fun-reader-prev { left: 10px; } .fun-reader-next { right: 10px; }
.fun-reader-foot { text-align: center; padding: 12px; color: #fff; font-family: var(--fun-font); font-weight: 700; }
.fun-reader-load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #fff; font-family: var(--fun-font); font-weight: 700; font-size: 18px; text-align: center; padding: 20px; }
.fun-reader-load .bar { width: min(320px, 80vw); height: 12px; border-radius: 99px; background: rgba(255,255,255,.2); overflow: hidden; }
.fun-reader-load .bar span { display: block; height: 100%; width: 0; background: var(--fun-yellow); border-radius: 99px; transition: width .2s; }
@media (max-width: 767.98px) { .fun-reader-stage { padding: 0 8px; } .fun-reader-nav { top: auto; bottom: -6px; translate: none; width: 48px; height: 48px; } .fun-reader-prev { left: calc(50% - 60px); } .fun-reader-next { right: calc(50% - 60px); } .fun-reader-foot { padding-top: 54px; } }

/* ---------- Multimídia ---------- */
.fun-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.fun-video-grid .card-youtube-content { position: relative; aspect-ratio: 16 / 9; border-radius: var(--fun-radius); overflow: hidden; background: #000; border: 5px solid #fff; box-shadow: 0 8px 0 rgba(0,0,0,.1), 0 0 0 2px #eef1f6; transition: transform .5s var(--fun-ease); }
.fun-video-grid .card-youtube-content:hover { transform: translateY(-4px); }
.fun-video-grid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fun-more { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- Trabalhe conosco ---------- */
.fun-work-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.fun-work-art { display: flex; justify-content: center; }
.fun-work-art img { max-width: 100%; max-height: 460px; filter: drop-shadow(0 18px 18px rgba(0,0,0,.18)); animation: fun-bob 5s ease-in-out infinite; }
.fun-work-card { background: #fff; border-radius: 32px; border: 2px solid #eef1f6; padding: clamp(24px, 3.4vw, 44px); box-shadow: 0 10px 0 rgba(0,0,0,.08); }
.fun-work-card .fun-title { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.fun-work-card > p { color: var(--fun-text); line-height: 1.7; margin: 14px 0 24px; }
.fun-work-card form { display: flex; flex-direction: column; gap: 16px; }
.fun-drop { display: flex; align-items: center; gap: 16px; cursor: pointer; padding: 18px 20px; border-radius: 24px; border: 3px dashed #c9d8ea; background: #f4f8fd; transition: border-color .3s, background-color .3s, transform .5s var(--fun-ease); }
.fun-drop:hover { border-color: var(--fun-blue); background: #eaf3ff; transform: translateY(-2px); }
.fun-drop-ico { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--fun-blue); color: #fff; font-size: 22px; box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.fun-drop-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fun-drop-text strong { font-family: var(--fun-font); font-weight: 800; font-size: 19px; color: var(--fun-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fun-drop-text small { color: var(--fun-text); }
.fun-work-card .fun-btn { width: 100%; font-size: 18px; padding: 16px 24px 14px; }

/* ---------- Mapa ---------- */
.fun-map { background: #f6f8fb; }
.fun-map-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.fun-map-info .fun-title { margin: 14px 0 22px; }
.fun-map-list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.fun-map-list li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--fun-ink); }
.fun-map-list small { display: block; font-size: 12px; color: var(--fun-text); text-transform: uppercase; letter-spacing: .05em; }
.fun-map-list .fun-ico { background: var(--fun-blue); color: #fff; }
.fun-map-frame { border-radius: 32px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 10px 0 rgba(0,0,0,.08); background: #e8eef5; }
.fun-map-frame iframe { display: block; width: 100%; height: clamp(320px, 50vh, 560px); border: 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 1023px) {
  .fun-about-grid, .fun-work-grid, .fun-map-grid { grid-template-columns: 1fr; }
  .fun-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fun-work-art img { max-height: 280px; }
}
@media (max-width: 575.98px) {
  .fun-search { padding-left: 16px; }
  .fun-search .fun-btn { padding: 12px 16px 10px; }
  .fun-chip-opt span { font-size: 15px; padding: 10px 14px 8px; }
  .fun-video-grid { grid-template-columns: 1fr; }
  .fun-stats { grid-template-columns: 1fr 1fr; }
  .fun-stats li { padding: 18px 16px; }
}
/* Em todos os aparelhos: as ondas das páginas se mexem; confetes e enfeites ficam parados */
.fun-hero-shape, .fun-work-art img { animation: none !important; }
/* Confetes das páginas deslizando devagar (cada movimento termina num ponto igual ao início: sem "pulo") */
.fun-page-hero::before { animation: fun-drift 70s linear infinite !important; }
.fun-work-banner::before { animation: fun-drift-work 70s linear infinite; }
@keyframes fun-drift-work { to { background-position: 120px 240px, 240px 400px; } }
.fun-page-wave .w-front { animation: fun-wave-l 20s linear infinite !important; }
.fun-page-wave .w-back { animation: fun-wave-r 30s linear infinite !important; }
@media (prefers-reduced-motion: reduce) {
}
/* Folhas do livro: fundo branco e "carregando" enquanto a página é desenhada */
.fun-page-leaf { background: #fff; overflow: hidden; }
.fun-page-leaf img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fun-page-leaf.is-loading { background: #fff radial-gradient(circle at 50% 50%, transparent 18px, transparent 19px) ; }
.fun-page-leaf.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 4px solid #d9e4f2; border-top-color: var(--fun-blue); border-radius: 50%; animation: fun-spin .8s linear infinite; }
/* Menu do topo sempre por cima (o Clássico põe os vídeos na camada 999) */
.fun-topbar { z-index: 1000; }
.fun-video-grid .card-youtube-content { isolation: isolate; z-index: 0; }
.fun-video-grid .card-youtube-content iframe { z-index: 1; }

/* Trabalhe conosco: banner com a foto da pessoa */
.fun-work-banner {
  position: relative; overflow: hidden; min-height: 460px; border-radius: 32px;
  background: radial-gradient(120% 120% at 20% 10%, #5aa7ec, var(--fun-blue) 65%);
  box-shadow: 0 10px 0 rgba(0,0,0,.1); display: flex; align-items: flex-end;
}
.fun-work-banner::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(circle, rgba(255,255,255,.55) 3px, transparent 4px), radial-gradient(circle, rgba(255,210,63,.7) 3px, transparent 4px); background-size: 120px 120px, 180px 180px; background-position: 0 0, 60px 40px; }
.fun-work-banner .fun-hero-ring { top: 8%; right: 8%; }
.fun-work-banner-text { position: absolute; z-index: 2; left: clamp(20px, 3vw, 36px); top: clamp(20px, 3vw, 36px); max-width: 52%; color: #fff; }
.fun-work-banner-text strong { display: block; font-family: var(--fun-font); font-weight: 800; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: .95; text-transform: uppercase; text-shadow: 0 5px 0 rgba(0,0,0,.14); }
.fun-work-banner-text p { margin: 14px 0 0; font-size: 15px; line-height: 1.5; background: rgba(255,255,255,.18); padding: 10px 14px; border-radius: 16px; }
.fun-work-person { position: relative; z-index: 1; display: block; margin-left: auto; max-width: 70%; max-height: 440px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); }
@media (max-width: 575.98px) {
  .fun-work-banner { min-height: 380px; }
  .fun-work-banner-text { max-width: 60%; }
  .fun-work-person { max-width: 62%; max-height: 340px; }
}
/* 'clip' corta o que sai pela lateral sem virar área de rolagem (o 'hidden' fazia o menu do topo parar de acompanhar a tela) */
.fun-page { overflow-x: visible; overflow-x: clip; }

/* Menu do topo: vira ☰ antes de quebrar em duas linhas */
.fun-topnav ul { flex-wrap: nowrap; }
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .fun-topnav ul { gap: 6px; }
  .fun-topnav a { font-size: 15px; padding: 10px 12px 8px; gap: 6px; }
}
@media (max-width: 1299.98px) {
  .fun-burger { display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
  .fun-topbar-logo { position: relative; z-index: 2; }
  .fun-topbar-logo img { width: 56px; height: 56px; }
  .fun-topnav {
    position: fixed; inset: 0; z-index: 1; padding: 100px 24px 32px; overflow-y: auto;
    background: radial-gradient(circle, rgba(255,255,255,.35) 3px, transparent 4px) 0 0 / 120px 120px, var(--fun-blue);
    clip-path: circle(0 at calc(100% - 50px) 44px); pointer-events: none;
    transition: clip-path .55s cubic-bezier(.65,0,.25,1);
  }
  .fun-topnav ul { flex-direction: column; gap: 12px; }
  .fun-topnav a { width: 100%; font-size: 21px; padding: 14px 22px 12px; background: rgba(255,255,255,.2); color: #fff; opacity: 0; transform: translateX(40px); transition: opacity .3s, transform .45s var(--fun-ease), background-color .2s; }
  .fun-topnav a i { color: #fff; width: 26px; text-align: center; }
  .fun-topnav a.is-current { background: var(--fun-yellow); color: var(--fun-ink); }
  .fun-topnav a.is-current i { color: var(--fun-ink); }
  .fun-topnav a.fun-topnav-shop { background: #fff; color: var(--fun-blue); }
  .fun-topnav a.fun-topnav-shop i { color: var(--fun-blue); }
  .fun-topbar.is-open .fun-topnav { clip-path: circle(160% at calc(100% - 50px) 44px); pointer-events: auto; }
  .fun-topbar.is-open .fun-topnav a { opacity: 1; transform: none; }
  .fun-topbar.is-open .fun-burger { background: var(--fun-yellow); color: var(--fun-ink); transform: rotate(90deg); }
}

/* ---------- Página do produto ---------- */
.fun-product { --c: #2b83d3; --ink: #fff; --ink-soft: rgba(255,255,255,.92); position: relative; overflow: hidden; color: var(--ink);
  padding: clamp(28px, 4vw, 60px) 0 clamp(100px, 10vw, 150px);
  background: radial-gradient(110% 120% at 75% 30%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 80%, #000) 140%); }
.fun-product.is-light { --ink: color-mix(in srgb, var(--c) 18%, #1d1630); --ink-soft: color-mix(in srgb, var(--ink) 82%, transparent); }
.fun-product::before { content: ""; position: absolute; inset: 0; opacity: .45; pointer-events: none; background-image: radial-gradient(circle, rgba(255,255,255,.55) 3px, transparent 4px), radial-gradient(circle, rgba(255,210,63,.7) 3px, transparent 4px); background-size: 140px 140px, 210px 210px; background-position: 0 0, 120px 30px; animation: fun-drift 40s linear infinite; }
.fun-product .fun-hero-star { top: 10%; left: 46%; }
.fun-product-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.fun-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--fun-font); font-weight: 700; font-size: 15px; }
.fun-crumbs a { color: var(--ink); text-decoration: none; opacity: .85; transition: opacity .2s; }
.fun-crumbs a:hover { opacity: 1; text-decoration: underline; }
.fun-crumbs span { opacity: .5; }
.fun-product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.fun-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--fun-font); font-weight: 800; font-size: 15px; line-height: 1; padding: 8px 14px 6px; border-radius: 999px; background: rgba(255,255,255,.22); color: var(--ink); }
.fun-product.is-light .fun-tag { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.fun-tag-new { background: var(--fun-yellow) !important; color: var(--fun-ink) !important; transform: rotate(-3deg); box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.fun-product-logo { margin: 18px 0 0; }
.fun-product-logo img { display: block; width: min(100%, 460px); height: clamp(110px, 16vw, 200px); object-fit: contain; object-position: left center; filter: drop-shadow(0 5px 0 rgba(0,0,0,.12)); }
.fun-product-title { font-family: var(--fun-font); font-weight: 800; font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1; margin: 16px 0 0; color: var(--ink); text-shadow: 0 5px 0 rgba(0,0,0,.12); }
.fun-product.is-light .fun-product-title { text-shadow: none; }
.fun-product-desc { margin-top: 18px; max-width: 620px; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.7; color: var(--ink-soft); }
.fun-product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.fun-btn-white { background: #fff; color: #128c4a; }
.fun-product.is-light .fun-btn-white { background: var(--ink); color: #fff; }

/* Galeria */
.fun-gallery { display: flex; flex-direction: column; gap: 14px; }
.fun-gallery-main { position: relative; aspect-ratio: 4 / 3; background: #fff; border-radius: 32px; border: 6px solid #fff; box-shadow: 0 12px 0 rgba(0,0,0,.14); overflow: hidden; }
.fun-gallery-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; }
.fun-gallery-zoom img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s, transform .5s var(--fun-ease); }
/* efeito de passar o mouse só em aparelhos com mouse: no celular ele fazia o 1º toque virar "hover"
   e era preciso tocar duas vezes para ampliar */
@media (hover: hover) and (pointer: fine) { .fun-gallery-zoom:hover img { transform: scale(1.03); } }
.fun-gallery-zoom img.is-swapping { opacity: 0; transform: scale(.97); }
.fun-gallery-zoom img { transition: opacity .28s ease, transform .5s var(--fun-ease); }
.fun-gallery-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); color: #fff; font-size: 17px; box-shadow: 0 4px 0 rgba(0,0,0,.15); transition: transform .5s var(--fun-ease); }
.fun-product.is-light .fun-gallery-arrow { background: var(--ink); }
.fun-gallery-arrow:hover { transform: scale(1.08); }
.fun-gallery-arrow.is-prev { left: 12px; } .fun-gallery-arrow.is-next { right: 12px; }
.fun-gallery-count { position: absolute; right: 14px; bottom: 12px; font-family: var(--fun-font); font-weight: 800; font-size: 14px; color: var(--fun-ink); background: #f1f5fb; padding: 6px 12px 4px; border-radius: 999px; }
.fun-gallery-hint { position: absolute; left: 14px; bottom: 12px; font-family: var(--fun-font); font-weight: 700; font-size: 13px; color: var(--fun-text); background: rgba(241,245,251,.92); padding: 6px 12px 4px; border-radius: 999px; opacity: 0; transition: opacity .3s; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .fun-gallery-main:hover .fun-gallery-hint { opacity: 1; } }
/* celular/toque: o aviso de ampliar fica sempre visível */
@media (hover: none), (pointer: coarse) { .fun-gallery-hint { opacity: 1; } .fun-gallery-hint .hint-mouse { display: none; } }
@media (hover: hover) and (pointer: fine) { .fun-gallery-hint .hint-touch { display: none; } }
.fun-gallery-main { touch-action: pan-y; } /* arrastar para o lado troca a foto; rolar a página continua normal */
.fun-gallery-main.is-dragging, .fun-gallery-main.is-dragging * { cursor: grabbing !important; user-select: none; }
.fun-gallery-zoom img { -webkit-user-drag: none; }
/* Celular/tablet: setas e contador saem de cima da foto e ficam logo abaixo dela */
@media (max-width: 1023px) {
  .fun-gallery-main { overflow: visible; margin-bottom: 62px !important; }
  .fun-gallery-main + .fun-gallery-thumbs { margin-top: 6px !important; }
  .fun-gallery-zoom { border-radius: 18px; overflow: hidden; }
  .fun-gallery-arrow { top: auto; bottom: -62px; translate: none; width: 44px; height: 44px; }
  .fun-gallery-arrow.is-prev { left: calc(50% - 100px); } .fun-gallery-arrow.is-next { right: calc(50% - 100px); }
  .fun-gallery-arrow:hover { transform: none; }
  .fun-gallery-count { right: 50%; translate: 50% 0; bottom: -54px; }
  /* no celular, só um ícone pequeno de lupa no canto (o texto ocupava muito da foto) */
  .fun-gallery-hint { left: auto; right: 10px; bottom: 10px; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; font-size: 14px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
  .fun-gallery-hint span { display: none !important; }
}
.fun-gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 10px; scrollbar-width: thin; }
.fun-thumb { flex: 0 0 auto; width: 84px; height: 84px; padding: 6px; border-radius: 20px; border: 3px solid transparent; background: #fff; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.12); opacity: .75; transition: transform .5s var(--fun-ease), opacity .2s, border-color .2s; }
.fun-thumb img { width: 100%; height: 100%; object-fit: contain; }
.fun-thumb:hover { opacity: 1; transform: translateY(-3px); }
.fun-thumb.is-active { opacity: 1; border-color: var(--fun-yellow); transform: translateY(-3px) rotate(-2deg); }

/* Especificações */
.fun-specs { padding-top: clamp(24px, 3vw, 44px); }
.fun-spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(14px, 2vw, 22px); margin: 0; }
.fun-spec { background: #fff; border: 2px solid #eef1f6; border-radius: 24px; padding: 18px 20px; box-shadow: var(--fun-ledge); border-top: 6px solid var(--c); transition: transform .5s var(--fun-ease); }
.fun-spec:hover { transform: translateY(-3px); }
.fun-spec dt { font-family: var(--fun-font); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--fun-text); }
.fun-spec dd { margin: 6px 0 0; font-family: var(--fun-font); font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--fun-ink); }
.fun-related { padding-top: clamp(24px, 3vw, 44px); }

/* Imagem em tela cheia */
.fun-lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(23,22,48,.92); padding: 60px 70px; opacity: 0; transition: opacity .25s; }
.fun-lightbox.is-on { opacity: 1; }
/* Multimídia: card limpo + player grande */
.fun-video-card { display: flex; flex-direction: column; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: var(--fun-ink); }
.fun-video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--fun-radius); overflow: hidden; background: #1c1b33; border: 5px solid #fff; box-shadow: 0 8px 0 rgba(0,0,0,.1), 0 0 0 2px #eef1f6; transition: transform .5s var(--fun-ease), box-shadow .3s; }
.fun-video-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .6s var(--fun-ease); }
.fun-video-time { position: absolute; z-index: 3; right: 10px; bottom: 10px; padding: 3px 7px; border-radius: 6px; background: rgba(0,0,0,.78); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.3; letter-spacing: .02em; }
/* prévia sem som: um pouco maior que a capa para esconder as bordas/marcas do player */
.fun-video-preview { position: absolute; z-index: 2; left: 50%; top: 50%; width: 112%; height: 112%; translate: -50% -50%; border: 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
.fun-video-preview.is-on { opacity: 1; }
.fun-video-name { font-family: var(--fun-font); font-weight: 800; font-size: 18px; line-height: 1.2; padding: 0 6px; }
.fun-video-card:hover .fun-video-thumb, .fun-video-card:focus-visible .fun-video-thumb { transform: translateY(-4px); }
.fun-video-card:hover .fun-video-thumb img { transform: scale(1.07); }
.fun-video-modal { flex-direction: column; gap: 16px; }
.fun-video-frame { width: min(1200px, 100%, (100vh - 190px) * 16 / 9); aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.fun-video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.fun-video-modal-title { color: #fff; font-family: var(--fun-font); font-weight: 800; font-size: clamp(18px, 2vw, 24px); text-align: center; }
.fun-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.fun-lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: #fff; color: var(--fun-ink); font-size: 19px; box-shadow: 0 4px 0 rgba(0,0,0,.25); transition: transform .5s var(--fun-ease), background-color .2s; }
.fun-lightbox button:hover { background: var(--fun-yellow); transform: scale(1.06); }
.fun-lightbox .lb-close { top: 14px; right: 14px; }
.fun-lightbox .lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.fun-lightbox .lb-next { right: 12px; top: 50%; translate: 0 -50%; }

@media (max-width: 1023px) {
  .fun-product-grid { grid-template-columns: 1fr; }
  .fun-product-info { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .fun-product-logo img { object-position: center; margin: 0 auto; }
  .fun-product-actions { justify-content: center; }
  .fun-product .fun-hero-star { left: auto; right: 6%; top: 4%; }
}
@media (max-width: 575.98px) {
  .fun-product-actions .fun-btn { width: 100%; }
  .fun-gallery-main { border-radius: 24px; }
  .fun-thumb { width: 68px; height: 68px; border-radius: 16px; }
  .fun-lightbox { padding: 60px 8px; }
  .fun-lightbox .lb-prev, .fun-lightbox .lb-next { top: auto; bottom: 14px; translate: none; }
  .fun-lightbox .lb-prev { left: calc(50% - 62px); } .fun-lightbox .lb-next { right: calc(50% - 62px); }
}
.fun-product::before { animation: fun-drift-prod 70s linear infinite; }
@keyframes fun-drift-prod { to { background-position: 140px 280px, 330px 450px; } }
/* Barra das miniaturas: fina, arredondada e na cor do tema (no lugar da barra cinza do navegador) */
.fun-gallery-thumbs { scrollbar-width: thin; scrollbar-color: #fff rgba(255,255,255,.28); padding-bottom: 14px; }
.fun-product.is-light .fun-gallery-thumbs { scrollbar-color: var(--ink) color-mix(in srgb, var(--ink) 14%, transparent); }
.fun-gallery-thumbs::-webkit-scrollbar { height: 8px; }
.fun-gallery-thumbs::-webkit-scrollbar-track { background: rgba(255,255,255,.28); border-radius: 99px; margin: 0 6px; }
.fun-gallery-thumbs::-webkit-scrollbar-thumb { background: #fff; border-radius: 99px; }
.fun-gallery-thumbs::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.fun-product.is-light .fun-gallery-thumbs::-webkit-scrollbar-track { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.fun-product.is-light .fun-gallery-thumbs::-webkit-scrollbar-thumb { background: var(--ink); }

/* Especificações: cartões mais largos e cada informação na sua linha */
.fun-spec-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2vw, 26px); }
.fun-spec { padding: 22px 24px 18px; display: flex; flex-direction: column; }
.fun-spec dt { font-size: 15px; color: var(--fun-ink); padding-bottom: 12px; border-bottom: 2px dashed #e6ecf3; }
.fun-spec dd { margin: 0; font-family: inherit; font-weight: 400; font-size: 15px; }
.fun-spec-rows { list-style: none; margin: 0; padding: 0; }
.fun-spec-rows li { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; border-bottom: 1px solid #f0f3f7; }
.fun-spec-rows li:last-child { border-bottom: 0; padding-bottom: 2px; }
.fun-spec-rows small { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--fun-text); }
.fun-spec-rows span { font-family: var(--fun-font); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--fun-ink); word-break: break-word; }
/* Produto no celular/tablet: título → fotos → descrição → "Sou lojista", e a galeria nunca passa da tela */
@media (max-width: 1023px) {
  .fun-product-grid { display: flex; flex-direction: column; align-items: center; gap: 0; }
  .fun-product-info { display: contents; }
  .fun-product-info > * { max-width: 100%; }
  .fun-crumbs { order: 1; justify-content: center; }
  .fun-product-tags { order: 2; justify-content: center; }
  .fun-product-logo, .fun-product-title { order: 3; text-align: center; }
  .fun-gallery { order: 4; width: 100%; max-width: 640px; min-width: 0; margin-top: 22px; }
  .fun-gallery-main { width: 100%; aspect-ratio: 1 / 1; max-height: 62vh; margin: 0 auto; }
  .fun-product-desc { order: 5; text-align: center; margin-top: 22px; }
  .fun-product-actions { order: 6; justify-content: center; }
}