/*
Theme Name: Brothers Ofertas
Theme URI: https://brothersofertas.com.br
Author: Lucas
Description: Tema customizado de altíssima performance, sem Elementor. HTML5, CSS puro e Vanilla JS.
Version: 2.0
*/

:root {
    --cor-fundo: #f4f5f7;
    --cor-branco: #ffffff;
    --cor-texto: #333333;
    --cor-texto-mutado: #777777;
    --cor-laranja: #ff7b00;
    --cor-verde: #00a650;
    --cor-verde-escuro: #01AD00;
    --cor-verde-hover: #029300;
    --borda-suave: 1px solid #eaeaea;
    --borda-card: 1px solid #e6e6e6;
    --raio-borda: 10px;
    --raio-borda-card: 10px;
    --sombra-card: 0 2px 8px rgba(0,0,0,0.04);
    --sombra-card-hover: 0px 0px 10px 0px rgba(0, 0, 0, 0.13);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    --mobile-header-h: 62px; /* altura do header mobile para posicionar o menu */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button, input, select, textarea {
    font-family: inherit;
}

body {
    font-family: var(--font-family);
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.5;
    padding-top: 105px; /* header + gap 15px + sombra 10px */
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   CONTAINER GERAL
========================================= */
.container-principal {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   HEADER (TOPO) - STICKY
========================================= */
.site-header {
    background-color: var(--cor-branco);
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.09);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Menu (Esquerda) --- */
.main-nav {
    flex: 1;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 26px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-list a {
    font-size: 14px;
    color: #2A2A2A;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-list a:hover {
    color: var(--cor-laranja);
}

/* Menu ativo - laranja */
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .current-menu-ancestor > a,
.nav-list .current-page-ancestor > a {
    color: var(--cor-laranja) !important;
    font-weight: 600;
}

/* --- Logo (Centro) --- */
.site-logo {
    width: 33%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-logo img {
    height: 72px;
    width: auto;
    display: block;
}

/* --- Busca (Direita) --- */
.site-search {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.site-search form {
    display: flex;
    width: 100%;
    max-width: 400px;
}

.search-field {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--raio-borda-card) 0 0 var(--raio-borda-card);
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-field:focus {
    border-color: var(--cor-laranja);
    border-right-color: var(--cor-laranja);
}

.search-submit {
    background: linear-gradient(180deg, #FFDD00 0%, #FD6500 100%);
    color: var(--cor-branco);
    border: none;
    padding: 10px 13px;
    border-radius: 0 var(--raio-borda-card) var(--raio-borda-card) 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    opacity: 0.9;
}

/* --- Dropdown (Submenus) --- */
.nav-list li {
    position: relative;
}

.nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--cor-branco);
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 100;
    list-style: none;
}

.nav-list .sub-menu li {
    list-style: none;
}

.nav-list li:hover > .sub-menu {
    display: block;
}

.nav-list .sub-menu li {
    width: 100%;
}

.nav-list .sub-menu a {
    padding: 8px 20px;
    display: block;
    font-size: 0.9rem;
    font-weight: normal;
    white-space: nowrap;
}

.nav-list .sub-menu a:hover {
    background-color: #f4f5f7;
    color: var(--cor-laranja);
}

.nav-list .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    margin-left: 6px;
    margin-bottom: 2px;
    transition: transform 0.25s ease;
}

.nav-list .menu-item-has-children:hover > a::after {
    transform: rotate(-135deg);
    margin-bottom: 0;
    margin-top: 2px;
}

/* =========================================
   MOBILE HEADER
========================================= */
.mobile-header {
    display: none;
    background-color: var(--cor-branco);
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.14);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 15px;
    max-width: 1300px;
    margin: 0 auto;
    min-height: 52px;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle svg {
    display: block;
}

.mobile-menu-toggle .hamburger-lines {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform-origin: center;
}

.mobile-menu-toggle .close-lines {
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-lines {
    opacity: 0;
    transform: scale(0.6);
}

.mobile-menu-toggle.active .close-lines {
    opacity: 1;
    transform: scale(1);
}

.mobile-search-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
}

.mobile-logo img {
    height: 80px;
    width: auto;
    display: block;
}

/* Menu mobile overlay - reformulado */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: var(--mobile-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-overlay.active {
    display: flex;
    flex-direction: column;
    animation: mobileMenuIn 0.2s ease-out;
}

@keyframes mobileMenuIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lista principal do menu */
.mobile-nav-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    flex: 1;
}

.mobile-nav-list > li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-list > li:last-child {
    border-bottom: none;
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: #2A2A2A;
    text-decoration: none;
    transition: all 0.15s ease;
}

.mobile-nav-list a:active {
    background: #f5f5f5;
}

/* Primeiro item (Últimas Ofertas) — sem destaque no mobile */
.mobile-nav-list > li:first-child > a {
    font-size: 1rem;
}

/* Submenu (accordion) com fonte mais fina */
.mobile-nav-list .sub-menu {
    list-style: none;
    display: none;
    padding: 0;
    margin: 0;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.mobile-nav-list .sub-menu.open {
    display: block;
}

.mobile-nav-list .sub-menu a {
    padding: 13px 24px 13px 44px;
    font-size: 0.92rem;
    font-weight: 300;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
    justify-content: flex-start;
    gap: 10px;
}

.mobile-nav-list .sub-menu a:last-child {
    border-bottom: none;
}

.mobile-nav-list .sub-menu a:active {
    background: #f0f0f0;
}

/* Indicador de accordion — chevron animado */
.mobile-has-children > a::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-top: -4px;
}

.mobile-has-children.open > a::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.mobile-has-children.open > a {
    background: #f7f7f7;
}

/* Mini ícones nos submenus (bolinhas decorativas) */
.mobile-nav-list .sub-menu a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--cor-laranja);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.5;
}

/* Search bar no topo do overlay */
.mobile-overlay-search {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.mobile-overlay-search form {
    display: flex;
    position: relative;
}

.mobile-overlay-search .search-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: var(--raio-borda-card);
    font-size: 15px;
    outline: none;
    background: #f8f8f8;
    transition: border-color 0.2s, background 0.2s;
}

.mobile-overlay-search .search-field:focus {
    border-color: var(--cor-laranja);
    background: #fff;
}

.mobile-overlay-search .search-submit {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    background: var(--cor-laranja);
    border: none;
    border-radius: var(--raio-borda-card);
    padding: 0 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.mobile-overlay-search .search-submit:hover {
    opacity: 0.9;
}

/* Mobile search bar */
.mobile-search-bar {
    display: none;
    padding: 10px 15px;
    background: var(--cor-branco);
    border-top: 1px solid #eee;
}

.mobile-search-bar.active {
    display: block;
}

.mobile-search-bar form {
    display: flex;
}

.mobile-search-bar .search-field {
    border-radius: 4px 0 0 4px;
}

/* =========================================
   GRID DE OFERTAS (HOME)
========================================= */
.ofertas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    margin: 0 0 40px;
    justify-items: stretch;
}

/* =========================================
   CARD DE PRODUTO - ESTILO ELEMENTOR
========================================= */
.card-oferta {
    background: var(--cor-branco);
    border: var(--borda-card);
    border-radius: var(--raio-borda-card);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: box-shadow 0.3s ease;
}

.card-oferta:hover {
    box-shadow: var(--sombra-card-hover);
}

.card-imagem {
    text-align: center;
    margin-bottom: 0;
}

.card-imagem img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    border-radius: 5px;
    transition: opacity 0.3s;
    display: block;
}

.card-imagem a:hover img {
    opacity: 0.85;
}

.card-conteudo {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 6px;
}

/* Logo da loja + tempo relativo na mesma linha */
.card-loja {
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.card-loja a {
    flex-shrink: 0;
}

.card-loja img {
    max-width: 21px;
    height: auto;
    display: block;
}

.card-loja-nome {
    font-size: 12px;
    color: var(--cor-texto-mutado, #777);
}

.card-tempo {
    font-size: 12px;
    font-weight: 300;
    color: var(--cor-texto-mutado, #888);
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* Preço */
.card-preco {
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--cor-texto);
    line-height: 1.2;
}

.card-preco ins {
    text-decoration: none;
}

.card-preco del {
    font-size: 0.9rem;
    color: #999;
    margin-right: 5px;
    font-weight: normal;
}

/* Parcelamento */
.card-parcelamento {
    font-size: 13px;
    font-weight: 500;
    color: var(--cor-verde-escuro);
    line-height: 1.1;
}

.card-parcelamento p {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
}

/* Título do produto - clamp 2 linhas */
.card-titulo {
    font-size: 15px;
    font-weight: 500;
    color: var(--cor-texto);
    line-height: 17px;
}

.card-titulo a {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 17px;
    max-height: 34px;
}

.card-titulo a:hover {
    color: var(--cor-laranja);
}

/* =========================================
   BOTÃO CARREGAR MAIS
========================================= */
.carregar-mais-wrap {
    text-align: center;
    margin-bottom: 50px;
}

.btn-primario {
    background-color: var(--cor-laranja);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: var(--raio-borda);
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primario:hover {
    background-color: #e66a00;
}

.btn-primario:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================
   RODAPÉ
========================================= */
.site-footer {
    background-color: #000;
    color: #fff;
    padding: 50px 20px 40px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-disclaimer p {
    font-size: 0.8rem;
    color: #999;
    max-width: 800px;
    margin: 0 auto 10px auto;
    text-align: center;
    line-height: 1.6;
}

.footer-cnpj {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    margin: 20px 0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.footer-social a,
.footer-social .social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 0.9rem;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-social a:hover {
    color: var(--cor-laranja);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* =========================================
   BANNER WHATSAPP
========================================= */
.whatsapp-banner {
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
    color: var(--cor-texto);
    max-width: 900px;
    margin: 0 auto 50px auto;
    padding: 30px 35px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(0, 166, 80, 0.1);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 20px;
}

.wa-icon {
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
}

.banner-text h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.banner-text p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 2px;
}

.banner-text small {
    font-size: 0.78rem;
    color: #888;
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--cor-verde) 0%, #028a40 100%);
    color: white;
    padding: 14px 28px;
    border-radius: var(--raio-borda);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: opacity 0.3s, transform 0.2s;
    display: inline-block;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.btn-whatsapp:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-whatsapp:hover {
    opacity: 0.9;
}

/* =========================================
   PÁGINA DO PRODUTO (SINGLE)
========================================= */

/* Breadcrumb */
.produto-breadcrumb {
    margin: 15px 0;
    font-size: 0.85rem;
    color: var(--cor-texto-mutado);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    white-space: nowrap;
}
.produto-breadcrumb a {
    color: var(--cor-laranja);
    font-weight: 500;
    flex-shrink: 0;
}
.produto-breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb-sep {
    color: #ccc;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.breadcrumb-current {
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.produto-single-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--cor-branco);
    padding: 30px;
    border-radius: var(--raio-borda);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 30px;
}

.produto-imagem-col .imagem-destaque {
    display: flex;
    justify-content: center;
}

.produto-imagem-col .imagem-destaque img {
    width: 100%;
    max-width: min(600px, 100%);
    height: auto;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 5px;
}

.produto-meta-inferior {
    margin-top: 16px;
    font-size: 0.78rem;
    color: var(--cor-texto-mutado);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.produto-data {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--cor-texto-mutado);
    line-height: 1;
}
.produto-data svg {
    display: block;
}
.hora-icone {
    margin-left: 10px;
}

.loja-parceira {
    font-size: 0.78rem;
}
.loja-parceira strong a {
    color: var(--cor-laranja);
    font-weight: 600;
}

.produto-detalhes-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preco-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.produto-titulo-single {
    font-size: 1.6rem;
    line-height: 1.2;
    margin: 0;
    font-weight: 600;
    color: #222;
}

.preco-label {
    display: block;
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--cor-texto-mutado);
    margin: 0;
}

.produto-preco-single {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    color: var(--cor-texto);
}

.produto-preco-single ins {
    text-decoration: none;
}

.produto-preco-single del {
    font-size: 0.9rem;
    color: #999;
    margin-right: 5px;
    font-weight: normal;
}

.aviso-preco {
    background: rgba(253, 101, 0, 0.08);
    color: var(--cor-laranja);
    padding: 10px 15px;
    border-radius: var(--raio-borda-card);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    border: 1px solid rgba(253, 101, 0, 0.15);
}

/* Botão VER OFERTA (mesmo estilo do live) */
.offer-link {
    display: block;
    width: 100%;
    background: var(--cor-verde-escuro);
    color: #fff;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--raio-borda-card);
    margin: 0;
    transition: background 0.2s;
}

.offer-link:hover {
    background: var(--cor-verde-hover);
}


/* Loja parceira no mobile */
.produto-meta-mobile {
    display: none;
    margin: 0;
    font-size: 0.85rem;
    color: var(--cor-texto-mutado);
}

.produto-meta-mobile .posted_in a {
    color: var(--cor-laranja);
    font-weight: 600;
}

/* Compartilhar */
.compartilhar-oferta {
    padding-top: 0;
}

.compartilhar-titulo {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cor-texto);
    margin-bottom: 5px;
}

.compartilhar-divider {
    border: none;
    border-top: 2px solid var(--cor-laranja);
    margin: 10px 0 15px;
    width: 60px;
}

.btn-share {
    display: block;
    text-align: center;
    color: white;
    padding: 12px;
    border-radius: var(--raio-borda-card);
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
    letter-spacing: 0.3px;
}

.btn-share:hover {
    opacity: 0.85;
}

.btn-share.whatsapp { background-color: #25d366; }
.btn-share.telegram { background-color: #0088cc; }

/* Parcelamento no single product */
.produto-parcelamento {
    font-size: 0.9rem;
}

/* =========================================
   BARRA DE AÇÕES DO PRODUTO
========================================= */
.produto-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    grid-column: 1 / -1;
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 10px;
}

/* Botão "+ ofertas desse produto" */
.btn-busca-produto {
    color: var(--cor-texto-mutado);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    transition: color 0.2s;
}

.btn-busca-produto:hover {
    color: var(--cor-laranja);
}

/* Botão "REPORTAR OFERTA EXPIRADA" (vem do shortcode) */
#report-expired-btn {
    color: var(--cor-texto-mutado);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
}

#report-expired-btn:hover {
    color: #e53935;
}

/* =========================================
   CUPOM DE DESCONTO (SINGLE PRODUCT)
   Estilo replicado do App Flutter
========================================= */
.coupon-container {
    margin: 0;
}

.coupon-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px dashed #FD6500;
    border-radius: 10px;
    padding: 14px 16px;
    background: rgba(253, 101, 0, 0.08);
}

.coupon-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.coupon-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.coupon-label-text {
    font-size: 10px;
    color: #888;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}

.coupon-code-text {
    font-size: 15px;
    color: #333;
    font-weight: bold;
    line-height: 1;
    word-break: break-all;
}

.copy-button {
    background: #01AD00;
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: bold;
    border-radius: var(--raio-borda-card);
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    line-height: 1.4;
    border-radius: 50px;
}

.copy-button:hover {
    background: #029300;
}

@media (max-width: 480px) {
    .coupon-icon {
        align-self: center;
        margin-top: 0;
    }

    .coupon-info {
        flex: 1;
        min-width: 0;
    }

    .copy-button {
        flex-shrink: 0;
        padding: 8px 14px;
    }
}

/* =========================================
   SEÇÃO VEJA OUTRAS OFERTAS (PRODUTOS RELACIONADOS)
========================================= */
.related-products-section {
    margin: 30px 0;
}

.related-products-section .titulo-secao {
    font-size: 1.15rem;
    color: var(--cor-texto);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.related-products-section .titulo-secao::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--cor-laranja);
    border-radius: 2px;
}

.related-products-placeholder {
    min-height: 502px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--cor-texto-mutado);
    font-size: 0.9rem;
}

.related-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--cor-laranja);
    border-radius: 50%;
    animation: related-spin 0.7s linear infinite;
}

@keyframes related-spin {
    to { transform: rotate(360deg); }
}

/* =========================================
   CARROSSEL DE PRODUTOS RELACIONADOS
========================================= */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 5px 0;
}

@media (max-width: 992px) {
    .carousel-track {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .carousel-track {
        gap: 8px;
    }
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cor-branco);
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--cor-texto);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    opacity: 0;
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--cor-laranja);
    color: var(--cor-branco);
    border-color: var(--cor-laranja);
}

.carousel-prev {
    left: 5px;
}

.carousel-next {
    right: 5px;
}

@media (max-width: 768px) {
    .related-products-placeholder {
        min-height: 345px;
    }

    .carousel-card {
        flex: 0 0 200px;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
        opacity: 1;
        background: rgba(255,255,255,0.9);
    }
}

@media (max-width: 480px) {
    .carousel-card {
        flex: 0 0 170px;
    }
}

/* =========================================
   PÁGINA GRUPOS DE OFERTAS
========================================= */
.page-grupos-dark {
    background-color: #000;
    --cor-fundo: #000;
}
.grupos-hero {
    max-width: 55%;
    margin: 25px auto 30px;
    background: #505050;
    border-radius: 20px;
    padding: 50px 50px 30px;
    text-align: center;
}

.grupos-hero-inner {
    max-width: 50%;
    margin: 0 auto 30px;
}

.grupos-hero-logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.grupos-hero-title {
    font-size: 28px;
    color: #FFF;
    font-weight: bold;
    margin-bottom: 8px;
}

.grupos-hero-subtitle {
    font-size: 14px;
    color: #FFF;
}

/* Lista de grupos */
.grupos-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.grupo-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    background: #FFF;
    border: 4px solid #303030;
    border-right-width: 9px;
    border-bottom-width: 10px;
    border-radius: 16px;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--cor-texto);
    transition: background 0.3s;
}

.grupo-card:hover {
    background: #E9E9E9;
    color: var(--cor-texto);
}

.grupo-card-icon {
    width: 9%;
    max-width: 50px;
    flex-shrink: 0;
    align-self: flex-start;
}

.grupo-card-icon img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.grupo-card-title-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grupo-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2A2A2A;
    margin: 0;
    text-align: center;
}

/* Benefícios */
.grupos-beneficios {
    margin: 0 auto 50px;
    max-width: 1000px;
}

.grupos-beneficios-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFF;
    text-align: center;
    margin-bottom: 30px;
    line-height: 36px;
}

.grupos-beneficios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.beneficio-card {
    background: #363636;
    border-radius: 1px;
    padding: 35px 20px;
    text-align: center;
    min-height: 114px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.beneficio-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beneficio-icon svg {
    width: 100%;
    height: 100%;
    fill: #FFF;
}

.beneficio-text {
    font-size: 0.95rem;
    color: #FFF;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .grupos-hero {
        max-width: 100%;
        padding: 15px 15px 10px;
        margin: 15px 0 20px;
    }

    .grupos-hero-inner {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .grupos-hero-logo {
        max-width: 66%;
    }

    .grupos-hero-title {
        font-size: 22px;
    }

    .grupo-card {
        padding: 12px 15px;
        border-width: 3px;
        border-right-width: 6px;
        border-bottom-width: 7px;
    }

    .grupo-card-icon {
        width: 13%;
        align-self: center;
    }

    .grupo-card-title-wrap {
        width: 75%;
    }

    .grupo-card-title {
        font-size: 14px;
    }

    .grupos-beneficios-title {
        font-size: 21px;
        line-height: 1.3;
    }

    .grupos-beneficios-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grupos-hero {
        max-width: 90%;
    }

    .grupos-hero-inner {
        max-width: 70%;
    }
}

/* =========================================
   PÁGINAS GENÉRICAS (PAGE) - TUTORIAIS
========================================= */
.page-wrapper {
    background: none;
    padding: 30px 20px 50px;
    max-width: 1300px;
    margin: 0 auto;
}

.page-card {
    width: auto;
    max-width: 650px;
    margin: 0 auto;
    background: #FFF;
    border-radius: var(--raio-borda-card);
    padding: 35px;
    align-self: center;
}

.page-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    color: #2A2A2A;
    text-align: center;
    margin-bottom: 20px;
}

.page-thumbnail {
    margin-bottom: 25px;
}

.page-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: var(--raio-borda);
}

.page-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--cor-texto);
}

.page-content p {
    margin-bottom: 1.2em;
}

.page-content iframe,
.page-content video {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 0 6px 4px rgba(0,0,0,0.5);
}

.page-content .wp-block-embed {
    margin: 25px 0;
    text-align: center;
}

.page-content .wp-block-embed__wrapper {
    display: flex;
    justify-content: center;
}

.page-content .wp-block-embed__wrapper iframe {
    box-shadow: 0 0 6px 4px rgba(0,0,0,0.5);
    border-radius: 4px;
}

/* Listas no conteúdo */
.page-content ul,
.page-content ol {
    margin: 0 0 1.2em 1.5em;
}

.page-content li {
    margin-bottom: 0.5em;
}

@media (max-width: 1024px) {
    .page-wrapper {
        padding: 40px 20px;
    }

    .page-card {
        max-width: 550px;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 25px 15px;
    }

    .page-card {
        max-width: 100%;
        padding: 25px;
    }

    .page-title {
        font-size: 16px;
    }
}

/* =========================================
   ARQUIVO / CATEGORIA (WooCommerce)
========================================= */
.archive-header {
    margin: 20px 0;
    padding: 20px;
    background: var(--cor-branco);
    border-radius: var(--raio-borda);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.archive-header h1 {
    font-size: 1.5rem;
    color: var(--cor-laranja);
}

.archive-header .archive-description {
    font-size: 0.9rem;
    color: var(--cor-texto-mutado);
    margin-top: 10px;
}

/* =========================================
   PÁGINA DE BUSCA
========================================= */
.search-header {
    margin: 20px 0;
    padding: 20px;
    background: var(--cor-branco);
    border-radius: var(--raio-borda);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.search-header h1 {
    font-size: 1.3rem;
    color: var(--cor-texto);
}

.search-header span {
    color: var(--cor-laranja);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--cor-branco);
    border-radius: var(--raio-borda);
    margin: 20px 0;
}

.no-results h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--cor-texto);
}

.no-results p {
    color: var(--cor-texto-mutado);
    margin-bottom: 20px;
}

/* =========================================
   PÁGINA 404
========================================= */
.error-404 {
    text-align: center;
    padding: 100px 20px;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--cor-laranja);
    margin-bottom: 10px;
}

.error-404 h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.error-404 p {
    color: var(--cor-texto-mutado);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* =========================================
   LOADING SPINNER
========================================= */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================================
   RESPONSIVO
========================================= */
/* Tablet */
@media (max-width: 992px) {
    body {
        padding-top: 72px;
    }

    .mobile-header-inner {
        min-height: 52px;
    }

    .mobile-logo img {
        height: 42px;
    }

    .site-header {
        display: none;
    }

    .mobile-header {
        display: block;
    }

    .ofertas-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
    }

    .card-oferta {
        padding: 10px;
    }

    .card-oferta .offer-link {
        padding: 12px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .produto-single-wrap {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 25px;
    }

    .produto-imagem-col .imagem-destaque img {
        width: 100%;
        max-height: 450px;
    }

    body {
        padding-top: 108px;
    }

    .mobile-header {
        min-height: 90px;
    }

    .mobile-header-inner {
        min-height: 90px;
    }

    :root {
        --mobile-header-h: 90px;
    }

    .mobile-logo img {
        height: 80px;
    }

    .produto-titulo-single {
        font-size: 1.3rem;
    }

    .produto-preco-single {
        font-size: 2rem;
    }

    .produto-meta-mobile {
        display: block;
    }

    /* Mobile: esconde "mais ofertas" e centraliza "reportar expirada" */
    .produto-actions-bar .botao-busca-container {
        display: none;
    }

    .produto-actions-bar {
        justify-content: center;
    }

    .ofertas-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 8px;
    }

    .card-oferta {
        width: 100%;
        min-width: 0;
    }

    .card-preco {
        font-size: 1.3rem;
    }

    .card-titulo {
        font-size: 14px;
    }

    .card-parcelamento {
        font-size: 13px;
        font-weight: 500;
    }

    .card-tempo {
        font-size: 12px;
    }

    .whatsapp-banner {
        margin: 0 10px 30px;
        padding: 25px 20px;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .banner-text h2 {
        font-size: 1.1rem;
    }

    .btn-whatsapp {
        width: 100%;
        text-align: center;
    }

    .footer-social {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }

    .card-loja img {
        max-width: 18px;
        display: block;
    }
}

/* =========================================
   DESCRIÇÃO COMPLETA DO PRODUTO (SINGLE)
========================================= */
.produto-descricao-completa {
    margin: 0;
    padding: 18px 20px;
    background: #fafafa;
    border-left: 3px solid var(--cor-laranja);
    border-radius: 0 6px 6px 0;
}
.produto-descricao-completa .descricao-conteudo {
    font-family: var(--font-family);
    font-size: 0.9rem;
    line-height: 1.7;
    color: #444;
    white-space: pre-line;
}

.produto-descricao-completa .descricao-conteudo p {
    margin-bottom: 10px;
}

.produto-descricao-completa .descricao-conteudo p:last-child {
    margin-bottom: 0;
}

.produto-descricao-completa .descricao-conteudo ul,
.produto-descricao-completa .descricao-conteudo ol {
    margin: 8px 0 12px 18px;
}

.produto-descricao-completa .descricao-conteudo li {
    margin-bottom: 4px;
}

.produto-descricao-completa .descricao-conteudo img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 12px 0;
}

/* Links na descrição do produto — laranja */
.produto-descricao-completa .descricao-conteudo a {
    color: var(--cor-laranja);
    font-weight: 600;
    text-decoration: underline;
}

.produto-descricao-completa .descricao-conteudo a:hover {
    color: #e66a00;
}

/* Mobile pequeno */
@media (max-width: 480px) {
    .container-principal {
        padding: 0 10px;
    }

    .ofertas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .card-oferta {
        padding: 10px;
    }
}
