/*
Theme Name: Hub Ofertas WP
Theme URI: https://example.com/hub-ofertas-wp
Author: HostStorm / ChatGPT
Description: Tema WordPress convertido do site Hub Ofertas, com layout responsivo, seções de ofertas, redirecionamento afiliado e API REST de ingestão.
Version: 2.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: hub-ofertas-wp
*/

    :root{
      --brand:#ee4d2d;
      --brand2:#ff7337;
      --bg:#f6f6f6;
      --card:#ffffff;
      --text:#1f2937;
      --muted:#6b7280;
      --shadow:0 10px 26px rgba(0,0,0,.08);
      --shadow2:0 14px 34px rgba(0,0,0,.12);
      --radius:16px;
      --ring:0 0 0 4px rgba(238,77,45,.15);
    }
    
    *{box-sizing:border-box}
    
    body{
      margin:0;
      font-family: "TT Norms Pro", "Open Sans", Roboto, Arial, Helvetica, sans-serif;
      background:var(--bg);
      color:var(--text);
      font-weight: 400;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    
    a{color:inherit}
    img{max-width:100%}

    /* Topbar */
    .topbar{
      background:linear-gradient(90deg,var(--brand),var(--brand2));
      color:#fff;
      font-size:12px;
    }
    .topbar .wrap{
      max-width:1220px;margin:0 auto;padding:8px 14px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      flex-wrap:nowrap;
      gap:8px;
    }
    .topbar .left{
      display:flex;
      gap:6px;
      align-items:center;
      overflow-x:auto;
      white-space:nowrap;
      -webkit-overflow-scrolling:touch;
      scrollbar-width:none;
      flex:1;
      padding-bottom:2px;
    }
    .topbar .left::-webkit-scrollbar{display:none}
    
    .pill{
      background:rgba(255,255,255,.18);
      padding:4px 8px;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      gap:4px;
      backdrop-filter: blur(6px);
      font-size:11px;
      flex-shrink:0;
    }
    .topbar .right{
      flex-shrink:0;
      font-size:11px;
      white-space:nowrap;
    }
    .topbar .right span{
      display:flex;
      align-items:center;
      gap:4px;
    }

    /* Header */
    header{
      position:sticky;top:0;z-index:80;
      background:linear-gradient(90deg,var(--brand),var(--brand2));
      box-shadow:0 10px 22px rgba(0,0,0,.14);
    }
    .headerwrap{
      max-width:1220px;margin:0 auto;padding:10px 14px;
      display:flex;
      flex-direction:column;
      gap:10px;
    }
    @media(min-width:860px){
      .headerwrap{
        flex-direction:row;
        align-items:center;
        padding:14px;
      }
    }
    
    .logo{
      display:flex;align-items:center;gap:8px;color:#fff;
      font-weight:600;font-size:18px;letter-spacing:.2px;text-decoration:none;
      flex-shrink:0;
    }
    .logo .mark{
      width:34px;height:34px;border-radius:10px;background:rgba(255,255,255,.18);
      display:grid;place-items:center;font-weight:600;
      transform:translateZ(0);
      animation: pop 1.6s ease-in-out infinite;
    }
    @keyframes pop{ 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }

    .search{
      display:flex;gap:8px;align-items:center;
      background:#fff;border-radius:999px;padding:6px 8px;
      box-shadow:0 10px 25px rgba(0,0,0,.12);
      flex:1;
    }
    .search input{
      border:0;outline:0;width:100%;font-size:14px;background:transparent;
      min-width:0;
    }
    .search button{
      border:0;cursor:pointer;
      background:var(--brand);color:#fff;font-weight:600;
      padding:8px 12px;border-radius:999px;
      transition:.15s;
      font-size:13px;
      white-space:nowrap;
    }
    .search button:hover{filter:brightness(.95)}

    /* Nav */
    .nav{
      max-width:1220px;margin:0 auto;padding:0 14px 10px;
      display:flex;gap:6px;flex-wrap:nowrap;
      overflow-x:auto;
      -webkit-overflow-scrolling:touch;
      scrollbar-width:none;
    }
    .nav::-webkit-scrollbar{display:none}
    .nav a{
      text-decoration:none;background:rgba(255,255,255,.16);color:#fff;
      font-weight:500;font-size:12px;padding:7px 10px;border-radius:999px;transition:.15s;
      white-space:nowrap;display:inline-flex;align-items:center;gap:6px;
      flex-shrink:0;
    }
    .nav a:hover{transform:translateY(-1px);background:rgba(255,255,255,.22)}
    .nav .hot{background:rgba(0,0,0,.18)}

    /* Main container */
    .container{max-width:1220px;margin:0 auto;padding:0 10px}



    /* Hero principal - botões Ver destaques / Pechinchas */
    .hero{
      margin:18px 0 10px;
      padding:0;
    }

    .hero-text{
      max-width:860px;
    }

    .hero h1{
      margin:0 0 8px;
      color:#111827;
      font-size:clamp(24px,3.2vw,38px);
      line-height:1.08;
      letter-spacing:-.8px;
      font-weight:900;
    }

    .hero p{
      margin:0;
      color:var(--muted);
      font-size:15px;
      line-height:1.5;
      font-weight:500;
    }

    .hero-actions{
      display:flex;
      align-items:center;
      gap:10px;
      flex-wrap:wrap;
      margin-top:12px;
    }

    .hero-actions a,
    .hero-actions .primary,
    .hero-actions .secondary{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:6px;
      min-height:34px;
      padding:9px 14px;
      border-radius:999px;
      font-size:13px;
      font-weight:800;
      line-height:1;
      text-decoration:none!important;
      transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
      border:1px solid transparent;
      white-space:nowrap;
    }

    .hero-actions .primary{
      background:linear-gradient(135deg,var(--brand),var(--brand2));
      color:#fff!important;
      box-shadow:0 10px 24px rgba(238,77,45,.22);
    }

    .hero-actions .secondary{
      background:#fff;
      color:var(--brand)!important;
      border-color:#ffd6c9;
      box-shadow:0 8px 20px rgba(17,24,39,.06);
    }

    .hero-actions a:hover{
      transform:translateY(-1px);
      box-shadow:0 12px 26px rgba(238,77,45,.18);
    }

    .hero-actions .primary:focus,
    .hero-actions .secondary:focus{
      outline:none;
      box-shadow:var(--ring);
    }

    @media(max-width:520px){
      .hero-actions{gap:8px}
      .hero-actions a{width:100%;}
    }

    /* HERO - cards de categorias */
    .hero-grid{
      display:grid;
      grid-template-columns:1fr;
      gap:12px;
      margin:15px 0;
    }
    
    @media(min-width:640px){
      .hero-grid{
        grid-template-columns:repeat(2,1fr);
      }
    }
    
    @media(min-width:1024px){
      .hero-grid{
        grid-template-columns:2fr 1fr 1fr;
      }
    }
    
    .hero-card{
      background:var(--card);
      border-radius:var(--radius);
      box-shadow:var(--shadow);
      overflow:hidden;
      position:relative;
      transition:transform 0.2s;
      text-decoration:none;
      color:inherit;
      display:flex;
      flex-direction:column;
    }
    
    .hero-card:hover{
      transform:translateY(-4px);
      box-shadow:var(--shadow2);
    }
    
    .hero-card.featured{
      background:linear-gradient(135deg,var(--brand),var(--brand2));
      color:white;
    }
    
    .hero-card.featured .hero-title,
    .hero-card.featured .hero-subtitle{
      color:white;
    }
    
    .hero-card-content{
      padding:20px;
      position:relative;
      z-index:2;
    }
    
    .hero-card-image{
      position:absolute;
      right:10px;
      bottom:10px;
      width:100px;
      height:100px;
      opacity:0.2;
      z-index:1;
    }
    
    .hero-card.featured .hero-card-image{
      opacity:0.3;
    }
    
    .hero-card-image svg{
      width:100%;
      height:100%;
    }
    
    .hero-tag{
      display:inline-block;
      background:rgba(255,255,255,0.2);
      padding:4px 10px;
      border-radius:999px;
      font-size:11px;
      font-weight:500;
      margin-bottom:12px;
      backdrop-filter:blur(4px);
    }
    
    .hero-card.featured .hero-tag{
      background:rgba(0,0,0,0.2);
    }
    
    .hero-title{
      font-size:24px;
      font-weight:600;
      margin:0 0 8px 0;
      line-height:1.1;
    }
    
    .hero-subtitle{
      font-size:14px;
      margin:0 0 16px 0;
      opacity:0.9;
      font-weight:400;
      max-width:70%;
    }
    
    .hero-cta{
      display:inline-flex;
      align-items:center;
      gap:6px;
      font-weight:600;
      font-size:14px;
      background:rgba(255,255,255,0.2);
      padding:8px 16px;
      border-radius:999px;
      backdrop-filter:blur(4px);
    }
    
    .hero-card.featured .hero-cta{
      background:rgba(0,0,0,0.2);
    }
    
    .hero-stats{
      display:flex;
      gap:16px;
      margin-top:16px;
    }
    
    .hero-stat{
      display:flex;
      flex-direction:column;
    }
    
    .hero-stat-value{
      font-size:20px;
      font-weight:600;
    }
    
    .hero-stat-label{
      font-size:11px;
      opacity:0.8;
    }
    
    /* Hero cards secundários */
    .hero-card.secondary{
      background:white;
    }
    
    .hero-card.secondary .hero-title{
      font-size:20px;
    }
    
    .hero-card.secondary .hero-subtitle{
      font-size:13px;
    }

    /* Sections */
    .section{margin:15px auto 0}
    .sectionhead{
      display:flex;
      flex-direction:column;
      align-items:flex-start;
      gap:6px;
      margin:8px 0 8px;
    }
    @media(min-width:560px){
      .sectionhead{
        flex-direction:row;
        justify-content:space-between;
        align-items:center;
      }
    }
    .sectionhead h2{
        margin:0;
        font-size:20px;
        font-weight:600;
        color:#1f2937;
        letter-spacing:-0.3px;
    }
    .hint{
        color:var(--brand);
        font-weight:500;
        font-size:12px;
        border-bottom:1px solid var(--brand);
        padding-bottom:2px;
    }

    .grid{
      display:grid;
      grid-template-columns:repeat(2,1fr);
      gap:8px;
    }
    @media(min-width:560px){
      .grid{grid-template-columns:repeat(3,1fr);}
    }
    @media(min-width:860px){
      .grid{grid-template-columns:repeat(4,1fr);}
    }
    @media(min-width:1100px){
      .grid{grid-template-columns:repeat(6,1fr);gap:12px;}
    }
    
    /* CARDS COM EFEITO ZOOM IGUAL SHOPEE */
    .card {
        background: var(--card);
        border-radius: 18px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        overflow: hidden;
        transition: all 0.2s ease;
        display: flex;
        flex-direction: column;
        min-height: unset;
        position: relative;
        border: 1px solid rgba(0,0,0,0.03);
    }

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    }

    /* Container da imagem com overflow hidden para efeito zoom */
    .card .imgwrap {
        display: block;
        background: #fafafa;
        overflow: hidden;
        height: 170px;
        width: 100%;
    }

    /* Imagem com efeito zoom */
    .card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        padding: 0;
        transition: transform 0.3s ease;
    }

    /* Zoom no hover */
    .card:hover img {
        transform: scale(1.08);
    }

    .card .title {
        margin: 8px 12px 4px 12px;
        font-size: 13px;
        line-height: 1.4;
        min-height: 2.8em;
        overflow: hidden;
        font-weight: 500;
        color: #2d2d2d;
        letter-spacing: -0.01em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        word-break: break-word;
    }

    .card .cat {
        margin: 0 12px;
        font-size: 11px;
        color: #666;
        font-weight: 500;
        text-transform: uppercase;
        background: #f5f5f5;
        padding: 3px 8px;
        border-radius: 20px;
        display: inline-block;
        width: fit-content;
        margin-bottom: 4px;
    }

    .card .price {
        margin: 0 12px;
        color: var(--brand);
        font-size: 18px;
        font-weight: 700;
        letter-spacing: -0.02em;
        display: block;
        line-height: 1.2;
        white-space: nowrap;
    }

    .card .price br {
        display: none;
    }

    .card .btn {
        background: var(--brand);
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        padding: 8px 10px;
        border-radius: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 75px;
        font-size: 12px;
        box-shadow: 0 4px 10px rgba(238,77,45,0.15);
        transition: all 0.2s;
    }

    .card .btn:hover {
        background: #d43d1f;
        transform: scale(1.02);
    }

    .card .row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 8px 12px 12px 12px;
        padding-top: 8px;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    .card .price {
        flex: 1 1 auto;
        min-width: 0;
    }

    .card .meta {
        padding-bottom: 12px;
    }

    /* AJUSTES PARA CELULAR */
    @media (max-width: 768px) {
        .grid {
            gap: 10px;
        }
        
        .card {
            min-height: unset;
            border-radius: 20px;
        }
        
        .card .imgwrap {
            height: 200px;
        }
        
        .card img {
            height: 200px;
        }
        
        .card:hover img {
            transform: scale(1.1);
        }
        
        .card .title {
            margin: 8px 10px 4px 10px;
            font-size: 14px;
            font-weight: 500;
            -webkit-line-clamp: 2;
        }
        
        .card .price {
            margin: 0 10px;
            font-size: 19px;
            font-weight: 700;
        }
        
        .card .cat {
            margin: 0 10px;
            font-size: 11px;
            padding: 4px 8px;
        }
        
        .card .btn {
            padding: 8px 12px;
            min-width: 80px;
            font-size: 12px;
            font-weight: 600;
        }
        
        .card .row {
            margin: 8px 10px 12px 10px;
        }
    }

    /* PARA TELAS MUITO PEQUENAS */
    @media (max-width: 480px) {
        .card .imgwrap {
            height: 180px;
        }
        
        .card img {
            height: 180px;
        }
        
        .card .price {
            font-size: 17px;
        }
        
        .card .btn {
            padding: 7px 8px;
            min-width: 70px;
            font-size: 11px;
        }
    }

    /* Paginação */
    .pagination{
      display:flex;
      justify-content:center;
      align-items:center;
      gap:6px;
      margin:20px 0 10px;
      flex-wrap:wrap;
    }
    .page-link{
      text-decoration:none;
      background:#fff;
      color:var(--text);
      padding:8px 12px;
      border-radius:8px;
      font-weight:500;
      font-size:13px;
      box-shadow:0 4px 10px rgba(0,0,0,.04);
      border:1px solid rgba(0,0,0,.06);
      transition:.15s;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-width:36px;
    }
    .page-link:hover{
      background:var(--brand);
      color:#fff;
      border-color:transparent;
    }
    .page-link.active{
      background:var(--brand);
      color:#fff;
      border-color:transparent;
      cursor:default;
    }
    .page-link.prev, .page-link.next{
      padding:8px 14px;
    }
    .page-dots{
      color:var(--muted);
      font-weight:500;
      padding:0 4px;
    }
    
    /* Flash deals strip */
    .flashWrap{
      background:linear-gradient(90deg,var(--brand),var(--brand2));
      color:#fff;
      border-radius:16px;
      padding:12px;
      box-shadow:var(--shadow);
      display:flex;
      flex-direction:column;
      gap:8px;
      overflow:hidden;
      position:relative;
      margin-bottom:10px;
    }
    @media(min-width:560px){
      .flashWrap{
        flex-direction:row;
        justify-content:space-between;
        align-items:center;
      }
    }
    .flashWrap:before{
      content:"";
      position:absolute;inset:-80px auto auto -80px;
      width:220px;height:220px;border-radius:50%;
      background:rgba(255,255,255,.16);
      filter:blur(0px);
    }
    .flashLeft{
      display:flex;
      flex-direction:column;
      gap:8px;
      align-items:flex-start;
    }
    @media(min-width:560px){
      .flashLeft{
        flex-direction:row;
        align-items:center;
      }
    }
    .flashTitle{font-weight:600;font-size:15px}
    .timer{
      display:inline-flex;gap:6px;align-items:center;
      background:rgba(0,0,0,.16);
      padding:6px 8px;border-radius:12px;
      font-weight:500;
      font-size:13px;
    }
    .timer b{font-variant-numeric:tabular-nums}
    .flashRight{opacity:.95;font-weight:500;font-size:12px}

    /* Cheap filters */
    .filters{
      display:flex;
      gap:6px;
      flex-wrap:wrap;
    }
    .chip{
      text-decoration:none;background:#fff;border:1px solid rgba(0,0,0,.08);
      padding:6px 10px;border-radius:999px;font-weight:500;font-size:12px;
      box-shadow:0 8px 18px rgba(0,0,0,.06);
    }
    .chip.active{background:var(--brand);color:#fff;border-color:transparent}

    /* Newsletter */
    .newsletter{margin:20px auto 0;padding-bottom:8px}
    .newsbox{
      background:linear-gradient(135deg,#fff, #fff2ee);
      border-radius:16px;
      box-shadow:var(--shadow);
      padding:14px;
      display:flex;
      flex-direction:column;
      gap:12px;
    }
    @media(min-width:560px){
      .newsbox{
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
      }
    }
    .newsbox strong{font-size:15px;font-weight:600}
    .newsbox form{
      display:flex;
      flex-direction:column;
      gap:8px;
      width:100%;
    }
    @media(min-width:560px){
      .newsbox form{
        flex-direction:row;
        width:auto;
      }
    }
    .newsbox input{
      border:1px solid #eee;border-radius:12px;padding:10px 12px;
      outline:0;font-size:14px;
      width:100%;
    }
    @media(min-width:560px){
      .newsbox input{min-width:240px;}
    }
    .newsbox button{
      border:0;border-radius:12px;padding:10px 12px;
      background:var(--brand);color:#fff;font-weight:600;cursor:pointer;
      box-shadow:0 10px 22px rgba(238,77,45,.18);
      font-size:14px;
    }

    /* Footer - NOVO DESIGN COMBINANDO COM O SITE */
    footer {
        margin-top: 40px;
        background: linear-gradient(135deg, #f8f9fa, #ffffff);
        color: var(--text);
        padding: 40px 0 30px;
        border-top: 3px solid var(--brand);
        box-shadow: 0 -5px 20px rgba(0,0,0,0.03);
    }

    .footerwrap {
        max-width: 1220px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    @media (min-width: 760px) {
        .footerwrap {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 40px;
        }
    }

    .footer-col {
        width: 100%;
    }

    .footer-col h3, .footer-col h4 {
        color: var(--brand);
        margin: 0 0 15px 0;
        font-size: 18px;
        font-weight: 600;
        position: relative;
        padding-bottom: 8px;
    }

    .footer-col h3:after, .footer-col h4:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 3px;
        background: var(--brand);
        border-radius: 3px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .footer-links a {
        color: #4b5563;
        text-decoration: none;
        font-size: 14px;
        font-weight: 400;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .footer-links a:hover {
        color: var(--brand);
        transform: translateX(5px);
    }

    .footer-links a:before {
        content: "›";
        color: var(--brand);
        font-weight: bold;
        font-size: 18px;
        opacity: 0;
        transition: opacity 0.2s;
    }

    .footer-links a:hover:before {
        opacity: 1;
    }

    .footer-desc {
        color: #6b7280;
        font-weight: 400;
        line-height: 1.6;
        font-size: 14px;
        margin-bottom: 20px;
    }

    .footer-social {
        display: flex;
        gap: 15px;
        margin-top: 15px;
    }

    .footer-social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: #f1f5f9;
        border-radius: 50%;
        color: var(--brand);
        font-size: 18px;
        transition: all 0.2s;
        text-decoration: none;
    }

    .footer-social a:hover {
        background: var(--brand);
        color: white;
        transform: translateY(-3px);
    }

    .footer-tip {
        color: #4b5563;
        font-weight: 400;
        font-size: 13px;
        background: #f1f5f9;
        padding: 15px;
        border-radius: 12px;
        border-left: 3px solid var(--brand);
        margin-top: 15px;
    }

    .copy {
        max-width: 1220px;
        margin: 30px auto 0;
        padding: 20px 20px 0;
        color: #94a3b8;
        font-size: 13px;
        text-align: center;
        border-top: 1px solid #e2e8f0;
        font-weight: 400;
    }

    .copy a {
        color: var(--brand);
        text-decoration: none;
        font-weight: 500;
    }

    .copy a:hover {
        text-decoration: underline;
    }

    /* Bottom nav (mobile) */
    .bottomnav{
      display:block;
      position:fixed;
      left:0;right:0;bottom:0;
      background:rgba(255,255,255,.96);
      border-top:1px solid rgba(0,0,0,.08);
      padding:8px 8px calc(8px + env(safe-area-inset-bottom));
      z-index:120;
      backdrop-filter: blur(10px);
    }
    .bottomnav .bnwrap{
      max-width:1220px;margin:0 auto;
      display:grid;grid-template-columns:repeat(5,1fr);gap:4px;
    }
    .bn{
      text-decoration:none;
      display:grid;place-items:center;
      gap:2px;
      font-weight:500;
      color:#111827;
      font-size:10px;
      padding:6px 4px;border-radius:10px;
    }
    .bn span{font-size:16px;line-height:1}
    .bn.active{background:rgba(238,77,45,.10);box-shadow:var(--ring)}

    /* Motion */
    @media (prefers-reduced-motion: reduce){
      .slides{transition:none}
      .logo .mark{animation:none}
      .card:hover{transform:none}
    }

    @media(max-width:360px){
      .topbar .right span b{display:none}
    }
        
    /* ESTILOS PARA SEÇÃO ATIVA */
    .section-banner{
        background:linear-gradient(135deg,var(--brand),var(--brand2));
        color:white;
        border-radius:20px;
        padding:25px 20px;
        margin:20px 0;
        position:relative;
        overflow:hidden;
    }
    .section-banner:before{
        content:"🛒";
        position:absolute;
        right:10px;
        bottom:-10px;
        font-size:120px;
        opacity:0.1;
    }
    .section-title{
        font-size:32px;
        font-weight:600;
        margin:0 0 8px 0;
    }
    .section-desc{
        font-size:16px;
        opacity:0.9;
        max-width:70%;
    }
    .section-stats{
        display:flex;
        gap:30px;
        margin-top:20px;
    }
    .section-stat{
        display:flex;
        flex-direction:column;
    }
    .section-stat-value{
        font-size:24px;
        font-weight:600;
    }
    .section-stat-label{
        font-size:12px;
        opacity:0.8;
    }
    .back-link{
        margin:15px 0 5px;
    }
    .back-link a{
        color:var(--brand);
        text-decoration:none;
        font-weight:500;
        font-size:14px;
        display:inline-flex;
        align-items:center;
        gap:5px;
    }
    .nav a.active{
        background:rgba(255,255,255,.3);
        box-shadow:0 0 0 2px rgba(255,255,255,.3);
    }
    
    /* BOTTOM NAV MELHORADO */
    .bottomnav {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding: 12px 8px calc(12px + env(safe-area-inset-bottom));
        z-index: 120;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    }

    .bottomnav .bnwrap {
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        gap: 4px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        scroll-snap-type: x mandatory;
    }

    .bottomnav .bnwrap::-webkit-scrollbar {
        display: none;
    }

    .bn {
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-weight: 500;
        color: #64748b;
        font-size: 11px;
        padding: 10px 16px;
        border-radius: 30px;
        min-width: 70px;
        transition: all 0.2s ease;
        scroll-snap-align: start;
        background: transparent;
        border: 1px solid transparent;
    }

    .bn .bn-icon {
        font-size: 22px;
        line-height: 1;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }

    .bn .bn-label {
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }

    .bn.active {
        background: linear-gradient(135deg, var(--brand), var(--brand2));
        color: white;
        border-color: transparent;
        box-shadow: 0 8px 16px rgba(238, 77, 45, 0.25);
        transform: translateY(-2px);
    }

    .bn.active .bn-icon {
        filter: brightness(0) invert(1);
    }

    @media (hover: hover) {
        .bn:hover {
            background: rgba(238, 77, 45, 0.1);
            color: var(--brand);
        }
    }

    .bn-scroll-hint {
        text-align: center;
        font-size: 10px;
        color: var(--muted);
        margin-top: 6px;
        opacity: 0.7;
        animation: fadePulse 2s infinite;
        letter-spacing: 0.5px;
        display: none;
    }

    @keyframes fadePulse {
        0%, 100% { opacity: 0.3; }
        50% { opacity: 0.8; }
    }

    .bottomnav.scrollable .bn-scroll-hint {
        display: block;
    }

    @media (max-width: 380px) {
        .bn {
            min-width: 60px;
            padding: 8px 10px;
        }
        .bn .bn-icon {
            font-size: 20px;
        }
        .bn .bn-label {
            font-size: 10px;
        }
    }

    body {
        padding-bottom: 90px;
    }

    @media (min-width: 768px) {
        body {
            padding-bottom: 0;
        }
        .bottomnav {
            display: none;
        }
    }

    /* --- ESTILO PARA OS CONTAINERS DE ANÚNCIO --- */
    .ad-container {
        background: #ffffff;
        border-radius: 16px;
        box-shadow: var(--shadow);
        padding: 20px 10px;
        margin: 25px 0;
        text-align: center;
        overflow: hidden;
        transition: box-shadow 0.2s;
        border: 1px solid rgba(0,0,0,0.03);
    }

    .ad-container:hover {
        box-shadow: var(--shadow2);
    }

    .ad-label {
        font-size: 10px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
        text-align: left;
    }


/* WordPress compatibility */
body.admin-bar .bottomnav{bottom:0}.screen-reader-text{position:absolute!important;left:-9999px}.wp-site-blocks{padding:0}.page-template-default main.container{max-width:1220px}.content-card{background:#fff;border-radius:22px;box-shadow:0 14px 40px rgba(17,24,39,.08);padding:22px;margin:24px 0}.page-header{background:linear-gradient(135deg,#fff,#fff7f3);border:1px solid #ffe1d5;border-radius:22px;padding:24px;margin:22px 0}.page-header h1{margin:0;font-size:clamp(28px,4vw,44px);font-weight:800;color:#111827}.breadcrumb{margin-top:8px;color:#6b7280;font-weight:500}.breadcrumb a{color:var(--brand);text-decoration:none}.about-section{display:grid;gap:24px;align-items:center}.about-text h2,.content-card h2{font-size:28px;margin-top:0}.about-text h2 span{color:var(--brand)}.about-highlight{background:#fff7ed;border-left:4px solid var(--brand);border-radius:16px;padding:16px;font-weight:700}.stats-grid,.values-grid,.steps-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin:24px 0}.stat-item,.value-card,.step-card,.info-card{background:#f8fafc;border:1px solid #eef2f7;border-radius:18px;padding:18px}.stat-value{font-size:30px;font-weight:900;color:var(--brand)}.stat-label{color:#64748b;font-weight:700}.value-icon,.step-number{font-size:32px}.cta-section{background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;border-radius:22px;padding:28px;text-align:center;margin-top:24px}.cta-section h2{color:#fff;margin:0 0 8px}.cta-button,.submit-btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;background:#fff;color:var(--brand);font-weight:900;text-decoration:none;padding:12px 22px;box-shadow:0 10px 24px rgba(0,0,0,.12);cursor:pointer}.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.contact-form{display:grid;gap:12px;margin-top:18px}.contact-form input,.contact-form textarea{width:100%;border:1px solid #e5e7eb;border-radius:14px;padding:12px;font:inherit}.submit-btn{background:var(--brand);color:#fff}.legal-content h2{margin-top:26px;color:#111827}.empty-offers{background:#fff;border:1px dashed #f2b8a6;border-radius:18px;padding:26px;text-align:center;color:#6b7280}.admin-warning{background:#fff7ed;border:1px solid #fed7aa;border-radius:16px;padding:14px;margin:18px 0;color:#9a3412}.bn-scroll-hint{text-align:center;font-size:10px;color:#94a3b8;margin-top:3px}.ad-container{min-height:90px}


/* Storm Ad Rotator blocks inside Hub Ofertas */
.hub-storm-ad-wrap{
  width:100%;
  margin:18px 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  clear:both;
}
.hub-storm-ad-inner{
  width:100%;
  min-height:60px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:14px;
}
.hub-storm-ad-label{
  width:100%;
  max-width:970px;
  margin:0 auto 6px;
  text-align:left;
  color:#9ca3af;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.hub-storm-ad-wrap-header,
.hub-storm-ad-wrap-content,
.hub-storm-ad-wrap-footer{
  background:#fff;
  border-radius:16px;
  box-shadow:0 8px 22px rgba(17,24,39,.06);
  padding:10px;
}
.hub-storm-ad-wrap-header{ margin-top:14px; margin-bottom:18px; }
.hub-storm-ad-wrap-content{ margin-top:22px; margin-bottom:22px; }
.hub-storm-ad-wrap-footer{ margin-top:24px; margin-bottom:18px; }
.hub-storm-ad-inner .storm-ad-wrapper,
.hub-storm-ad-inner .storm-ad-container,
.hub-storm-ad-inner iframe,
.hub-storm-ad-inner img{
  max-width:100%!important;
}
@media (max-width: 768px){
  .hub-storm-ad-wrap{ margin:14px 0; }
  .hub-storm-ad-wrap-header,
  .hub-storm-ad-wrap-content,
  .hub-storm-ad-wrap-footer{ border-radius:12px; padding:8px; }
  .hub-storm-ad-inner{ min-height:50px; }
}

/* Hub Ofertas V2 SEO */
.card .title a{color:inherit;text-decoration:none}.card .title a:hover{color:var(--brand)}
.offer-actions{display:grid;grid-template-columns:1fr;gap:7px;margin-top:10px}.offer-btn{display:flex;align-items:center;justify-content:center;min-height:32px;padding:8px 10px;border-radius:10px;font-size:12px;font-weight:900;text-decoration:none!important;line-height:1}.offer-btn-primary{background:linear-gradient(135deg,#ee4d2d,#ff7337);color:#fff!important;box-shadow:0 8px 18px rgba(238,77,45,.18)}.offer-btn-group{background:#eafff0;color:#098b35!important;border:1px solid #bdf0cc}.offer-btn:hover{transform:translateY(-1px)}
.single-offer{display:grid;grid-template-columns:minmax(260px,420px) 1fr;gap:28px;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:24px;margin:18px 0}.single-offer-media{background:#f8fafc;border-radius:18px;display:flex;align-items:center;justify-content:center;min-height:360px;overflow:hidden}.single-offer-media img{width:100%;height:100%;max-height:420px;object-fit:contain}.single-offer-info h1{font-size:30px;line-height:1.15;margin:8px 0 14px;color:var(--text)}.single-offer-cat{display:inline-flex;align-items:center;gap:6px;background:#fff4ef;color:var(--brand);border:1px solid #ffd8cb;border-radius:999px;font-weight:900;font-size:12px;padding:7px 12px}.single-offer-price{font-size:34px;font-weight:1000;color:var(--brand);margin:8px 0 14px}.single-offer-desc{font-size:15px;line-height:1.7;color:var(--muted);margin-bottom:16px}.single-offer-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.single-buy,.single-group{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 18px;border-radius:999px;font-weight:1000;text-decoration:none!important}.single-buy{background:linear-gradient(135deg,#ee4d2d,#ff7337);color:#fff!important;box-shadow:0 12px 26px rgba(238,77,45,.22)}.single-group{background:#eafff0;color:#098b35!important;border:1px solid #bdf0cc}.single-offer-note{font-size:12px;color:var(--muted);background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:10px 12px}.seo-block{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:22px;margin:18px 0}.seo-block h2{font-size:22px;margin:0 0 10px}.seo-block h3{font-size:17px;margin:14px 0 8px}.seo-block p,.seo-block li{font-size:14px;line-height:1.75;color:var(--muted)}.seo-block ul{margin:0 0 0 18px;padding:0}
@media(max-width:820px){.single-offer{grid-template-columns:1fr;padding:16px;gap:16px}.single-offer-media{min-height:260px}.single-offer-info h1{font-size:23px}.single-offer-price{font-size:28px}.single-offer-actions{display:grid}.single-buy,.single-group{width:100%}.offer-actions{gap:6px}.offer-btn{font-size:11px;padding:7px 8px}}


/* Hub Ofertas V3 Blog SEO */
.blog-hero{background:linear-gradient(135deg,#fff,#fff7f3);border:1px solid #ffe0d5;border-radius:24px;padding:26px;margin:22px 0;box-shadow:var(--shadow)}
.blog-hero h1{margin:0 0 8px;font-size:clamp(28px,4vw,46px);line-height:1.05;color:var(--text)}
.blog-hero p{margin:0;color:var(--muted);font-size:15px;max-width:760px;line-height:1.7}
.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0 28px}.blog-card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column}.blog-card-img{height:180px;background:#f8fafc;display:flex;align-items:center;justify-content:center;overflow:hidden}.blog-card-img img{width:100%;height:100%;object-fit:cover}.blog-card-body{padding:16px}.blog-card-body h2{font-size:18px;line-height:1.25;margin:0 0 10px}.blog-card-body h2 a{color:var(--text);text-decoration:none}.blog-card-body h2 a:hover{color:var(--brand)}.blog-excerpt{font-size:13px;color:var(--muted);line-height:1.65;margin:0 0 12px}.blog-read{display:inline-flex;background:#fff4ef;color:var(--brand);font-weight:900;text-decoration:none;border:1px solid #ffd8cb;border-radius:999px;padding:8px 12px;font-size:12px}.blog-meta{font-size:11px;color:#94a3b8;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px}.single-blog-wrap{max-width:980px;margin:22px auto}.single-blog-article{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);overflow:hidden}.single-blog-cover{max-height:430px;background:#f8fafc;overflow:hidden}.single-blog-cover img{width:100%;height:100%;max-height:430px;object-fit:cover;display:block}.single-blog-content{padding:clamp(18px,4vw,36px)}.single-blog-content h1{font-size:clamp(30px,5vw,48px);line-height:1.08;margin:0 0 12px;color:var(--text)}.single-blog-content .entry-content{font-size:16px;line-height:1.82;color:#334155}.single-blog-content .entry-content h2{font-size:26px;margin:30px 0 12px;color:#111827}.single-blog-content .entry-content h3{font-size:20px;margin:22px 0 10px;color:#111827}.single-blog-content .entry-content p{margin:0 0 18px}.single-blog-content .entry-content ul,.single-blog-content .entry-content ol{margin:0 0 20px 22px}.single-blog-content .entry-content a{color:var(--brand);font-weight:800}.product-cta-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin:24px 0}.product-cta-card{border:1px solid #ffe0d5;background:#fff7f3;border-radius:18px;padding:12px;display:grid;gap:10px}.product-cta-card img{width:100%;height:150px;object-fit:contain;background:#fff;border-radius:14px}.product-cta-card strong{font-size:13px;line-height:1.35}.product-cta-price{font-weight:1000;color:var(--brand);font-size:18px}.product-cta-actions{display:grid;grid-template-columns:1fr;gap:8px}.product-cta-actions a{display:flex;align-items:center;justify-content:center;border-radius:999px;text-decoration:none!important;font-weight:1000;font-size:12px;min-height:34px}.product-cta-buy{background:linear-gradient(135deg,#ee4d2d,#ff7337);color:#fff!important}.product-cta-offer{background:#fff;color:var(--brand)!important;border:1px solid #ffd8cb}.blog-sidebar-cta{background:linear-gradient(135deg,#fff7ed,#fff);border:1px solid #fed7aa;border-radius:18px;padding:16px;margin:22px 0}.blog-sidebar-cta h3{margin:0 0 6px;color:#9a3412}.blog-sidebar-cta p{margin:0 0 12px;color:#92400e;font-size:14px}.blog-empty{background:#fff;border:1px dashed #f2b8a6;border-radius:18px;padding:28px;text-align:center;color:var(--muted);margin:20px 0}
@media(max-width:900px){.blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.blog-grid{grid-template-columns:1fr}.blog-card-img{height:210px}.single-blog-content{padding:18px}.single-blog-content .entry-content{font-size:15px}.product-cta-grid{grid-template-columns:1fr}}
