/*
Theme Name: TopWooCommerce
Theme URI: https://seusite.com.br
Author: Seu Nome
Author URI: https://seusite.com.br
Description: Tema profissional para loja de suplementos com WooCommerce e Elementor. Design responsivo, integração WhatsApp via UAZAPI, calculadora de frete (API Correios v2), checkout customizado com preenchimento progressivo, desconto progressivo no carrinho, carrinho abandonado, remarketing e muito mais.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: topwoocommerce
Tags: woocommerce, elementor, ecommerce, suplementos, whatsapp, responsivo, correios

== Palette de Cores ==
Primária (Amarelo): #f5a623 / #FFC107
Destaque (Verde WhatsApp): #25D366
Texto links: #1a6db5
Botão comprar: #f5a623
Fundo top bar: #f5a623
Texto: #333333
Fundo: #ffffff
Borda: #e0e0e0
*/

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    background-color: #f5f5f5;
}

a {
    color: #1a6db5;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0d4a80;
    text-decoration: underline;
}

/* Reset de <button>: navegadores aplicam padding/border/font próprios que
   não existem em <a>. Sem isso, botões e links com a mesma classe CSS
   podem parecer com tamanhos diferentes. */
button {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 100%;
    line-height: inherit;
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 15px;
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin: 0 0 15px;
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* =========================================
   TOP BAR - FRETE GRÁTIS
   ========================================= */
.now-top-bar {
    background-color: var(--topwoo-primary, #f5a623);
    color: #fff;
    text-align: center;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.now-top-bar a {
    color: #fff;
    text-decoration: underline;
}

/* =========================================
   FAIXA ROTATIVA (MARQUEE) — shortcode [now_marquee]
   Substitui o plugin "Marquee Addons for Elementor".
   ========================================= */
.now-marquee-wrap {
    background: var(--now-marquee-bg, #f5a623);
    color: var(--now-marquee-color, #fff);
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
}

.now-marquee-track {
    display: flex;
    width: max-content;
    animation: now-marquee-scroll var(--now-marquee-duration, 25s) linear infinite;
}

.now-marquee-wrap--rtl .now-marquee-track {
    animation-direction: reverse;
}

.now-marquee-wrap--pause-hover:hover .now-marquee-track {
    animation-play-state: paused;
}

.now-marquee-half {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.now-marquee-item {
    display: inline-block;
    font-size: var(--now-marquee-font-size, 13px);
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--now-marquee-color, #fff);
    padding: 0 24px;
}

.now-marquee-sep {
    opacity: 0.6;
}

@keyframes now-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (max-width: 600px) {
    .now-marquee-item { font-size: calc(var(--now-marquee-font-size, 13px) - 1px); padding: 0 16px; }
}

/* =========================================
   HEADER PRINCIPAL
   ========================================= */
.now-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.now-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}

/* Logo */
.now-logo {
    flex-shrink: 0;
    max-width: 200px;
}

.now-logo img {
    max-height: 60px;
    width: auto;
}

/* Search Bar */
.now-search-form {
    flex: 1;
    max-width: 520px;
    position: relative;
}

.now-search-form input[type="search"] {
    width: 100%;
    height: 44px;
    padding: 0 50px 0 18px;
    border: 2px solid #e0e0e0;
    border-radius: 22px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: #f9f9f9;
}

.now-search-form input[type="search"]:focus {
    border-color: var(--topwoo-primary, #f5a623);
    background: #fff;
}

.now-search-form button {
    position: absolute;
    right: 0;
    top: 0;
    height: 44px;
    width: 50px;
    background: var(--topwoo-primary, #f5a623);
    border: none;
    border-radius: 0 22px 22px 0;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.now-search-form button:hover {
    background: var(--topwoo-primary-dk, #e09510);
}

/* ── Hamburguer (mobile only) ─────────────────── */
.now-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background 0.2s;
}
.now-hamburger:hover { background: #f5f5f5; }
.now-hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

/* ── Header Actions ───────────────────────────── */
.now-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.now-header-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
.now-header-action-item:hover { color: var(--topwoo-primary, #f5a623); text-decoration: none; }

.now-header-action-item .action-icon {
    font-size: 22px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
}
.now-header-action-item .action-labels {
    display: flex;
    flex-direction: column;
}
.now-header-action-item .action-label-top {
    font-size: 11px;
    color: #888;
    line-height: 1;
}
.now-header-action-item .action-label-main {
    font-weight: 700;
    font-size: 13px;
    color: #222;
    line-height: 1.3;
}
.now-header-action-item:hover .action-label-main { color: var(--topwoo-primary, #f5a623); }

/* Ícone WhatsApp verde */
.now-header-wa .action-icon i { color: #25D366; }

/* ── Cart badge ───────────────────────────────── */
.now-cart-icon-wrap { position: relative; }
.now-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--topwoo-primary, #f5a623);
    color: #fff;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    padding: 0 3px;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #fff;
    transition: transform 0.2s;
}
.now-cart-count.has-items { transform: scale(1); }

/* Botão busca mobile (oculto no desktop) */
.now-mobile-search-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    padding: 6px;
}

/* Barra de busca mobile expansível */
.now-mobile-search-bar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 10px 16px;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.25s, opacity 0.25s;
}
.now-mobile-search-bar.open {
    transform: translateY(0);
    opacity: 1;
}
.now-mobile-search-bar form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.now-mobile-search-bar input[type="search"] {
    flex: 1;
    height: 40px;
    padding: 0 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}
.now-mobile-search-bar input[type="search"]:focus { border-color: var(--topwoo-primary, #f5a623); }
.now-mobile-search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #555;
    padding: 6px;
}

/* ════════════════════════════════════════════════
   MENU MOBILE DRAWER
════════════════════════════════════════════════ */

/* Overlay escuro */
.now-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}
.now-menu-overlay.visible {
    display: block;
    opacity: 1;
}

/* Drawer */
.now-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #fff;
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}
.now-mobile-menu.open { transform: translateX(0); }

/* Cabeçalho do drawer */
.now-mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.now-mobile-menu-logo img,
.now-mobile-menu-logo .now-logo-text {
    max-height: 40px;
    font-size: 18px;
    font-weight: 800;
    color: #333;
}
.now-mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #555;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.now-mobile-menu-close:hover { background: #f5f5f5; }

/* Perfil do usuário */
.now-mobile-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #f9fafc;
    border-bottom: 1px solid #eee;
}
.now-mobile-user i { font-size: 30px; color: #aaa; }
.now-mobile-user-greet {
    display: block;
    font-size: 11px;
    color: #888;
    line-height: 1;
    margin-bottom: 3px;
}
.now-mobile-user a {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary, #f5a623);
    text-decoration: none;
}
.now-mobile-user a:hover { text-decoration: underline; }

/* Navegação do drawer */
.now-mobile-menu-nav {
    flex: 1;
}
.now-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.now-mobile-nav li {
    border-bottom: 1px solid #f5f5f5;
}
.now-mobile-nav li > a {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.now-mobile-nav li > a:hover,
.now-mobile-nav li.current-menu-item > a {
    background: #fff8ef;
    color: var(--color-primary, #f5a623);
}
/* Seta de expansão do submenu */
.now-mobile-nav li.menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.now-mobile-nav li.menu-item-has-children > a {
    flex: 1;
}
.now-mobile-submenu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    color: #888;
    font-size: 13px;
    transition: color 0.2s, transform 0.2s;
}
.now-mobile-nav li.submenu-open > .now-mobile-submenu-toggle {
    transform: rotate(180deg);
    color: var(--color-primary, #f5a623);
}
/* Submenu */
.now-mobile-nav .sub-menu {
    display: none;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fafafa;
    border-top: 1px solid #eee;
}
.now-mobile-nav .sub-menu li > a {
    padding: 11px 20px 11px 36px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}
.now-mobile-nav .sub-menu li > a::before {
    content: '–';
    margin-right: 8px;
    color: #ccc;
}
.now-mobile-nav .sub-menu li > a:hover { color: var(--color-primary, #f5a623); }

/* Rodapé do drawer */
.now-mobile-menu-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}
.now-mobile-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: #25D366;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 14px;
    transition: background 0.2s;
}
.now-mobile-wa-btn i { font-size: 18px; }
.now-mobile-wa-btn:hover { background: #1da851; color: #fff; text-decoration: none; }

.now-mobile-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.now-mobile-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.now-mobile-social a:hover { background: var(--topwoo-primary, #f5a623); color: #fff; }

/* =========================================
   NAVIGATION MENU
   ========================================= */
.now-nav {
    background-color: #ffffff;
    border-bottom: 3px solid var(--topwoo-primary, #f5a623);
}

.now-nav-inner {
    display: flex;
    align-items: stretch;
}

.now-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.now-nav ul li {
    position: relative;
}

.now-nav ul li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    /* Indicador de hover via border-bottom animado */
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    top: 3px; /* compensar o border-bottom da .now-nav para não duplicar */
}

/* Hover e item ativo: apenas cor + underline laranja */
.now-nav ul li a:hover,
.now-nav ul li:hover > a {
    background-color: transparent !important;
    color: var(--topwoo-primary, #f5a623) !important;
    border-bottom-color: var(--topwoo-primary, #f5a623);
}
.now-nav ul li.current-menu-item > a,
.now-nav ul li.current_page_item > a,
.now-nav ul li.current-menu-ancestor > a {
    background-color: transparent !important;
    color: var(--topwoo-primary, #f5a623) !important;
    border-bottom-color: var(--topwoo-primary, #f5a623);
}

/* Dropdown */
.now-nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 999;
    border-top: 3px solid var(--topwoo-primary, #f5a623);
    flex-direction: column;
    flex-wrap: nowrap;
}

.now-nav ul li:hover > ul {
    display: flex;
}

.now-nav ul li ul li a {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    border-bottom: 1px solid #f5f5f5;
}

.now-nav ul li ul li a:hover {
    background: #fff8ef;
    color: var(--topwoo-primary, #f5a623);
}

/* =========================================
   MAIN CONTENT AREA
   ========================================= */
#content {
    background: #f5f5f5;
    min-height: 400px;
    padding: 25px 0;
}

/* =========================================
   WOOCOMMERCE PRODUCT GRID (Responsividade perfeita)
   ========================================= */
.now-shop-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.now-shop-sidebar {
    width: 230px;
    min-width: 230px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.now-shop-main {
    flex: 1;
    min-width: 0;
}

/* Grid principal: 3 colunas fluídas e compactas */
.woocommerce ul.products,
ul.products,
.now-shop-main ul.products,
.now-shop-main.has-sidebar ul.products,
.woocommerce .now-shop-main ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* IMPORTANTE: o WooCommerce injeta um clearfix legado
   (ul.products::before/::after { content:" "; display:table; })
   pensado para layouts antigos baseados em float. Com o container
   em CSS Grid, esse pseudo-elemento passa a contar como um item real
   do grid e ocupa a primeira célula, empurrando todos os produtos
   uma posição adiante (2 produtos na 1ª linha em vez de 3). Neutralizamos
   aqui para que o grid funcione com a contagem exata de produtos. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after {
    display: none !important;
    content: none !important;
}

/* Loja sem sidebar (Full width): 4 colunas */
.now-shop-main.full-width ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* Tablets e telas intermediárias (< 850px): 2 colunas */
@media (max-width: 850px) {
    .woocommerce ul.products,
    ul.products,
    .now-shop-main ul.products,
    .now-shop-main.has-sidebar ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

/* Celulares (< 550px): 1 coluna.
   minmax(0, 1fr) — evita que o card "estoure" a largura da tela por causa
   do tamanho intrínseco de imagens de produto (mesmo bug do grid da
   página de produto, ver comentário em "SINGLE PRODUCT PAGE" mais acima). */
@media (max-width: 550px) {
    .woocommerce ul.products,
    ul.products,
    .now-shop-main ul.products,
    .now-shop-main.has-sidebar ul.products {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }
}

/* Reset de largura/float legado do WooCommerce — garante que os itens
   sigam o grid do tema e não "quebrem a linha" antes da hora */
.woocommerce ul.products li.product,
ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products li.first,
.woocommerce ul.products li.last,
.woocommerce-page ul.products li.first,
.woocommerce-page ul.products li.last {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
}

/* Related / Upsells / Cross-sells: sempre ocupar 100% do container pai */
.related.products,
.up-sells.products,
.cross-sells.products,
.woocommerce .related,
.woocommerce .up-sells,
.woocommerce .cross-sells {
    width: 100% !important;
    float: none !important;
    clear: both;
}

/* Related / Upsells / Cross-sells: forçar SEMPRE uma única linha,
   nunca quebrar para a linha de baixo. Se não houver espaço,
   os cards encolhem até o mínimo e depois habilita scroll horizontal. */
.related.products ul.products,
.up-sells.products ul.products,
.cross-sells.products ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
}
.related.products ul.products li.product,
.up-sells.products ul.products li.product,
.cross-sells.products ul.products li.product {
    flex: 1 1 0 !important;
    min-width: 220px;
    scroll-snap-align: start;
}
@media (max-width: 600px) {
    .related.products ul.products li.product,
    .up-sells.products ul.products li.product,
    .cross-sells.products ul.products li.product {
        min-width: 170px;
    }
}

/* =========================================
   PRODUCT CARD
   ========================================= */
.woocommerce ul.products li.product,
ul.products li.product {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex !important;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce ul.products li.product:hover,
ul.products li.product:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Badge destaque / oferta */
.now-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: var(--topwoo-primary, #f5a623);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.now-badge-sale {
    background: #e53935;
}

.now-badge-destaque {
    background: var(--topwoo-primary, #f5a623);
}

.now-badge-novo {
    background: #43a047;
}

/* Product Image */
.now-product-image {
    position: relative;
    overflow: hidden;
    background: #fafafa;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}

.now-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}

ul.products li.product:hover .now-product-image img {
    transform: scale(1.05);
}

/* Product Info */
.now-product-info {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Product Title */
.now-product-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a6db5;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.now-product-title:hover {
    color: var(--topwoo-primary, #f5a623);
    text-decoration: underline;
}

/* Stars Rating */
.now-product-rating {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.now-stars {
    color: #ffc107;
    font-size: 13px;
    letter-spacing: 1px;
}

.now-review-count {
    font-size: 11px;
    color: #777;
}

/* Price */
.now-product-price {
    margin-bottom: 4px;
}

.now-price-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    display: block;
}

.now-price-main {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    display: block;
    line-height: 1.2;
}

.now-price-main .currency {
    font-size: 13px;
    font-weight: 600;
    vertical-align: top;
    margin-top: 4px;
    display: inline-block;
}

/* Installments */
.now-installments {
    font-size: 11px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 8px;
    flex: 1;
}

.now-installments strong {
    color: #333;
}

.now-installments .pix-price {
    color: #43a047;
    font-weight: 600;
}

/* Quantity + Add to Cart */
.now-product-actions {
    margin-top: auto;
    padding-top: 8px;
}

.now-qty-cart {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
}

.now-qty-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.now-qty-input button {
    width: 28px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #555;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.now-qty-input button:hover {
    background: #e0e0e0;
}

.now-qty-input input[type="number"] {
    width: 36px;
    height: 36px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
}

.now-qty-input input[type="number"]::-webkit-inner-spin-button,
.now-qty-input input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Add to Cart Button
   Reset explícito de padding/border/box-sizing/font: sem isso, o <button>
   ("Comprar") herda o padding padrão do navegador enquanto o <a>
   ("Ver Opções" / "Ver Produto") não tem nenhum — fazendo os dois
   parecerem com tamanhos diferentes mesmo usando a mesma classe. */
.now-btn-comprar {
    flex: 1;
    height: 36px;
    padding: 0 14px;
    margin: 0;
    background: var(--topwoo-primary, #f5a623);
    color: #fff !important;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    line-height: 1;
}

.now-btn-comprar:hover {
    background: var(--topwoo-primary-dk, #e09510);
    transform: scale(1.02);
    color: #fff !important;
    text-decoration: none !important;
}

.now-btn-comprar.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 6px;
}

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

/* WhatsApp Button */
.now-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 32px;
    background: transparent;
    border: 1.5px solid #25D366;
    border-radius: 4px;
    color: #25D366 !important;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

.now-btn-whatsapp:hover {
    background: #25D366;
    color: #fff !important;
    text-decoration: none !important;
}

.now-btn-whatsapp svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* =========================================
   WooCommerce BUTTONS OVERRIDE
   ========================================= */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background-color: var(--topwoo-primary, #f5a623) !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    padding: 10px 20px !important;
    transition: background 0.2s !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: var(--topwoo-primary-dk, #e09510) !important;
    color: #fff !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
    background-color: var(--topwoo-primary, #f5a623) !important;
}

/* =========================================
   FLOATING WHATSAPP BUTTON
   ========================================= */
.now-whatsapp-float {
    position: fixed;
    bottom: 28px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
    transition: transform 0.2s, box-shadow 0.2s, width 0.2s;
    text-decoration: none !important;
    animation: pulse-whatsapp 2.5s infinite;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
}

/* Com legenda de texto: vira um "pill" ao invés de círculo perfeito */
.now-whatsapp-float:has(.now-whatsapp-float__label) {
    width: auto;
    padding: 0 20px 0 16px;
    border-radius: 30px;
}

.now-whatsapp-float--bottom-right { right: 28px; }
.now-whatsapp-float--bottom-left  { left: 28px; }

.now-whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
    text-decoration: none !important;
    color: #fff;
}

.now-whatsapp-float svg {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.now-whatsapp-float__label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 4px 16px rgba(37,211,102,0.5); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.8), 0 0 0 8px rgba(37,211,102,0.15); }
    100% { box-shadow: 0 4px 16px rgba(37,211,102,0.5); }
}

/* =========================================
   BOTÃO FLUTUANTE "VOLTAR AO TOPO"
   Fica no canto inferior esquerdo por padrão. Se o botão do WhatsApp
   também estiver configurado para a esquerda, empilha acima dele
   (ver classe .now-wa-float-left aplicada ao <body>).
   ========================================= */
.now-scroll-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--topwoo-primary, #f5a623);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s;
}
.now-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.now-scroll-top:hover {
    background: var(--topwoo-primary-dk, #e09510);
}

/* Se o botão do WhatsApp também estiver no canto esquerdo, empilha o
   "voltar ao topo" acima dele para não sobrepor. */
body.now-wa-float-left .now-scroll-top {
    bottom: 92px;
}

@media (max-width: 768px) {
    .now-scroll-top {
        bottom: 16px;
        left: 16px;
        width: 42px;
        height: 42px;
    }
    body.now-wa-float-left .now-scroll-top {
        bottom: 76px;
    }
}

/* =========================================
   FOOTER
   ========================================= */
.now-footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 50px 0 20px;
}

.now-footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .now-footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .now-footer-widgets {
        grid-template-columns: 1fr;
    }
}

.now-footer-widget h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--topwoo-primary, #f5a623);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.now-footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.now-footer-widget ul li {
    margin-bottom: 8px;
}

.now-footer-widget ul li a {
    color: #aaa;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.now-footer-widget ul li a:hover {
    color: var(--topwoo-primary, #f5a623);
    text-decoration: none;
}

.now-footer-widget p {
    font-size: 13px;
    line-height: 1.7;
    color: #aaa;
    margin-bottom: 12px;
}

.now-footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #777;
}

.now-footer-bottom a {
    color: #aaa;
}

.now-footer-bottom a:hover {
    color: var(--topwoo-primary, #f5a623);
}

/* Payment icons in footer */
.now-payment-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.now-payment-icon {
    background: #fff;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #333;
}

/* Social icons */
.now-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.now-social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: background 0.2s;
    text-decoration: none;
}

.now-social-icons a:hover {
    background: var(--topwoo-primary, #f5a623);
    text-decoration: none;
}

/* =========================================
   WOOCOMMERCE CHECKOUT / CART
   ========================================= */

/* Botões gerais do WooCommerce */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
    background: var(--topwoo-primary, #f5a623) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 22px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    letter-spacing: 0.3px;
}
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover {
    background: var(--topwoo-primary-dk, #e09510) !important;
    color: #fff !important;
}

/* Botão "Continuar para finalização" / "Finalizar pedido" — destaque maior */
.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.woocommerce-checkout #place_order {
    font-size: 16px !important;
    padding: 15px 30px !important;
    width: 100% !important;
}

/* Botão alternativo / secundário (ex.: "Atualizar carrinho") */
.woocommerce-cart .actions > .button[name="update_cart"] {
    background: transparent !important;
    color: var(--topwoo-primary, #f5a623) !important;
    border: 2px solid var(--topwoo-primary, #f5a623) !important;
}
.woocommerce-cart .actions > .button[name="update_cart"]:hover {
    background: var(--topwoo-primary, #f5a623) !important;
    color: #fff !important;
}

/* Cupom no carrinho */
.woocommerce-cart .coupon {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.woocommerce-cart .coupon #coupon_code {
    min-width: 280px;
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.woocommerce-cart .coupon #coupon_code:focus {
    border-color: var(--topwoo-primary, #f5a623);
    outline: none;
}

/* Order Totals */
.woocommerce .cart_totals,
.woocommerce-cart .cart_totals {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

/* =========================================
   SINGLE PRODUCT PAGE
   ========================================= */

/* Layout 2 colunas: galeria de imagens + resumo (preço/comprar)
   Substitui o antigo woocommerce-layout.css (desativado para não
   quebrar o grid de produtos da loja em 3 colunas). */
.woocommerce div.product {
    display: grid !important;
    /* Coluna da imagem com largura máxima controlada (não ocupa metade da
       tela em telas largas) — o resumo (preço/comprar) ganha mais espaço,
       como em referências profissionais de e-commerce. */
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr) !important;
    gap: 48px;
    position: relative;
    align-items: start;
}
.woocommerce div.product div.images,
.woocommerce div.product div.summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    /* Item de grid não encolhe abaixo do tamanho intrínseco do conteúdo
       por padrão (min-width:auto do CSS Grid) — como a imagem do produto
       é grande, isso fazia a coluna/tela inteira "estourar" a largura no
       mobile mesmo com grid-template-columns:1fr aplicado. */
    min-width: 0 !important;
}
/* Elementos fora do grid de 2 colunas (abas, relacionados, etc.)
   devem ocupar a largura total abaixo */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .up-sells {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .woocommerce div.product {
        /* minmax(0, 1fr) — não pode ser só "1fr": uma track "1fr" pura
           equivale a minmax(auto, 1fr), cujo mínimo "auto" respeita o
           tamanho intrínseco do conteúdo (a imagem grande do produto),
           fazendo a coluna/tela "estourar" a largura no mobile mesmo
           com uma única coluna definida. */
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 20px;
    }
}

.woocommerce div.product .woocommerce-product-gallery {
    position: relative;
}

/* ────────────────────────────────────────────────────────────────
   CAIXA DE PROPORÇÃO FIXA (1:1) PARA A IMAGEM DO PRODUTO
   Técnica clássica via padding-bottom + position:absolute (não depende
   de "aspect-ratio" nem do comportamento padrão de largura de blocos,
   funciona em qualquer navegador). Tudo com !important para não ser
   sobrescrito por WooCommerce/Elementor/plugins.

   IMPORTANTE: quando há mais de uma imagem, o WooCommerce usa a
   biblioteca "flexslider" (JS) para o slider, que define a LARGURA de
   cada slide via inline style para o cálculo da rolagem horizontal.
   Por isso a caixa de proporção fixa é aplicada no ".flex-viewport"
   (criado pelo JS, cuja largura/altura NÃO são controladas pelo
   slider) e nunca na LARGURA de ".woocommerce-product-gallery__image"
   nesse caso — só a altura, que o slider não mexe.
   ──────────────────────────────────────────────────────────────── */

/* Caso COM slider (2+ imagens): a caixa fica no .flex-viewport */
.woocommerce div.product .woocommerce-product-gallery .flex-viewport {
    position: relative !important;
    height: 0 !important;
    padding-bottom: 100% !important;
    overflow: hidden !important;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}
.woocommerce div.product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
}
.woocommerce div.product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image {
    height: 100% !important;
}

/* Caso SEM slider (1 imagem só): a caixa fica na própria __image,
   incluindo a largura (não existe JS de slider para conflitar aqui). */
.woocommerce div.product .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 100% !important;
    overflow: hidden !important;
    background: #fff !important;
    float: none !important;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* Em ambos os casos, a imagem (e o link que a envolve) preenche a
   caixa via position:absolute + object-fit, mantendo a proporção
   original sem cortar nem distorcer. */
.woocommerce div.product .woocommerce-product-gallery__image > a {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
}
.woocommerce div.product .woocommerce-product-gallery__image img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 0 !important;
}

/* Miniaturas abaixo da imagem principal (geradas pelo próprio slider) */
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li {
    width: auto;
    flex: 1;
    float: none;
}
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li img:hover {
    border-color: var(--topwoo-primary, #f5a623);
}

/* Proteção contra HTML colado de fontes externas (ex.: Google Tradutor)
   na descrição do produto — tags como <pre> não quebram linha por padrão
   e "estouram" a largura do container. Isso corrige a exibição mesmo
   sem precisar editar o conteúdo de cada produto. */
.woocommerce div.product .summary,
.woocommerce div.product .woocommerce-Tabs-panel {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}
.woocommerce div.product .summary pre,
.woocommerce div.product .woocommerce-Tabs-panel pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: inherit;
    font-size: inherit;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #333 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
}

.now-single-installments {
    background: #fff8ef;
    border: 1px solid var(--topwoo-primary, #f5a623);
    border-radius: 6px;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.7;
}

.now-single-installments .installment-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Descrição curta do produto: textos curtos (tipo bullet/ficha técnica)
   não precisam do espaçamento generoso padrão de parágrafos (15px) —
   deixa a distância entre o preço/parcelamento e o fim da descrição
   mais compacta e profissional. */
.woocommerce div.product .woocommerce-product-details__short-description {
    margin-top: 4px;
}
.woocommerce div.product .woocommerce-product-details__short-description p {
    margin: 0 0 8px;
}
.woocommerce div.product .woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0;
}

/* =========================================
   NOTICES & ALERTS (Mensagens do WooCommerce)
   ========================================= */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    position: relative !important;
    border-top: 3px solid var(--topwoo-primary, #f5a623) !important;
    background: #fff8ef !important;
    color: #333 !important;
    padding: 16px 20px 16px 52px !important;
    border-radius: 6px !important;
    margin-bottom: 20px !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    list-style: none !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    position: absolute !important;
    top: 50% !important;
    left: 18px !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.woocommerce-message {
    border-top-color: #27ae60 !important;
    background: #f4faf6 !important;
}
.woocommerce-message::before {
    color: #27ae60 !important;
}

.woocommerce-info {
    border-top-color: var(--topwoo-primary, #f5a623) !important;
    background: #fffbf4 !important;
}
.woocommerce-info::before {
    color: var(--topwoo-primary, #f5a623) !important;
}

.woocommerce-error {
    border-top-color: #e53935 !important;
    background: #fff5f5 !important;
}
.woocommerce-error::before {
    color: #e53935 !important;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
    float: right !important;
    margin: -4px 0 0 15px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
}

/* =========================================
   BREADCRUMBS
   ========================================= */
.woocommerce-breadcrumb {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
}

.woocommerce-breadcrumb a {
    color: #1a6db5;
}

.woocommerce-breadcrumb a:hover {
    color: var(--topwoo-primary, #f5a623);
}

/* =========================================
   PAGINATION
   ========================================= */
.woocommerce-pagination ul.page-numbers {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 30px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.woocommerce-pagination ul.page-numbers li {
    margin: 0;
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.woocommerce-pagination ul.page-numbers li a:hover {
    background: var(--topwoo-primary, #f5a623);
    border-color: var(--topwoo-primary, #f5a623);
    color: #fff;
}

.woocommerce-pagination ul.page-numbers li span.current {
    background: var(--topwoo-primary, #f5a623);
    border-color: var(--topwoo-primary, #f5a623);
    color: #fff;
}

/* =========================================
   SIDEBAR / FILTERS
   ========================================= */
.now-sidebar {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.now-sidebar .widget-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--topwoo-primary, #f5a623);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .now-header-inner {
        flex-wrap: wrap;
        gap: 12px;
    }

    .now-search-form {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .now-footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    /* Ocultar textos das ações no header (exceto carrinho) */
    .now-header-action-item .action-labels { display: none; }
    .now-header-actions { gap: 12px; }

    /* WhatsApp do header: oculto, fica só no drawer */
    .now-header-wa { display: none; }

    /* Nav desktop: reduzir padding */
    .now-nav ul li a { padding: 10px 10px; font-size: 12px; }
}

@media (max-width: 768px) {
    /* HEADER */
    .now-hamburger { display: flex; }
    .now-mobile-search-btn { display: flex; }
    .now-header-inner { justify-content: space-between; }

    /* Ocultar busca desktop e nav desktop */
    .now-search-form { display: none; }
    #site-navigation { display: none; }

    /* Busca mobile: visível como bloco (controlada por classe .open) */
    .now-mobile-search-bar { display: flex; position: absolute; }
    .now-mobile-search-bar:not(.open) { pointer-events: none; }

    /* Ações: só ícone conta e carrinho */
    .now-header-action-item .action-labels { display: none; }

    /* Footer */
    .now-footer-widgets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .now-footer-widgets {
        grid-template-columns: 1fr;
    }

    .now-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .now-whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
}

/* ── Bloco de filtro (categoria / preço) ── */
.now-filter-block {
    margin-bottom: 28px;
}
.now-filter-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--topwoo-primary, #f5a623);
    display: inline-block;
}

/* ── Lista de categorias ── */
.now-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.now-cat-item {
    border-bottom: 1px solid #f0f0f0;
}
.now-cat-item:last-child { border-bottom: none; }
.now-cat-item > a {
    display: block;
    padding: 10px 0;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.now-cat-item > a:hover,
.now-cat-item.active > a {
    color: var(--topwoo-primary, #f5a623);
    font-weight: 600;
}
.now-cat-item.has-children {
    position: relative;
}
.now-cat-toggle {
    position: absolute;
    right: 0;
    top: 10px;
    cursor: pointer;
    color: #999;
    padding: 4px 6px;
    transition: transform 0.2s, color 0.2s;
}
.now-cat-item.open .now-cat-toggle {
    transform: rotate(180deg);
    color: var(--topwoo-primary, #f5a623);
}
.now-cat-toggle:hover { color: var(--topwoo-primary, #f5a623); }

/* Subcategorias */
.now-cat-children {
    list-style: none;
    margin: 0;
    padding: 0 0 8px 16px;
    display: none;
}
.now-cat-item.open .now-cat-children {
    display: block;
}
.now-cat-children li a {
    display: block;
    padding: 6px 0;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}
.now-cat-children li a:hover,
.now-cat-children li.active a {
    color: var(--topwoo-primary, #f5a623);
    font-weight: 600;
}

/* ── Filtro de preço ── */
.now-price-filter {
    padding: 0;
}
.now-price-slider-wrap {
    padding: 8px 6px 16px;
}
.now-price-slider {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    position: relative;
}
.now-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.now-price-inputs label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.now-price-inputs label span {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.now-price-inputs input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}
.now-price-inputs input::-webkit-inner-spin-button,
.now-price-inputs input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.now-price-inputs input:focus {
    border-color: var(--topwoo-primary, #f5a623);
}
.now-price-sep {
    color: #ccc;
    font-size: 14px;
    padding-top: 18px;
}
.now-price-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.now-filter-btn {
    background: var(--topwoo-primary, #f5a623);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.now-filter-btn:hover {
    background: var(--topwoo-primary-dk, #e09510);
}
.now-price-display {
    font-size: 12px;
    color: #777;
}
.now-price-display strong {
    color: #333;
}

/* ── Botão mobile para abrir filtros ── */
.now-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: var(--topwoo-primary, #f5a623);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    align-items: center;
    gap: 8px;
}

/* Ordenação e contagem de produtos */
.woocommerce-result-count {
    font-size: 13px;
    color: #777;
    margin-bottom: 12px;
}

.woocommerce-ordering select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
}
.woocommerce-ordering select:focus {
    border-color: var(--topwoo-primary, #f5a623);
    outline: none;
}

.woocommerce-products-header__title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

/* ── Mobile: sidebar off-canvas ── */
@media (max-width: 900px) {
    .now-shop-layout {
        flex-direction: column;
    }
    .now-shop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        max-width: 85vw;
        z-index: 100001;
        background: #fff;
        padding: 20px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 30px rgba(0,0,0,0.15);
    }
    .now-shop-sidebar.open {
        transform: translateX(0);
    }
    .now-sidebar-toggle {
        display: flex;
    }
    .now-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 100000;
        display: none;
    }
    .now-sidebar-overlay.open {
        display: block;
    }
}

/* =========================================
   MINI-CART DRAWER (deslizante lateral)
   ========================================= */
.topwoo-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 100000;
    pointer-events: none;
}
.topwoo-cart-drawer.open {
    pointer-events: all;
}
.topwoo-cart-drawer-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s;
}
.topwoo-cart-drawer.open .topwoo-cart-drawer-overlay {
    opacity: 1;
}
.topwoo-cart-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 100vw;
    background: #fff;
    display: flex;
    flex-direction: column;
    z-index: 2;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.topwoo-cart-drawer.open .topwoo-cart-drawer-panel {
    transform: translateX(0);
}
.topwoo-cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 2px solid var(--topwoo-primary, #f5a623);
    flex-shrink: 0;
}
.topwoo-cart-drawer-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #333;
}
.topwoo-cart-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
    display: flex;
    align-items: center;
}
.topwoo-cart-close:hover { color: var(--topwoo-primary, #f5a623); }

.topwoo-cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Rodapé do drawer — botões de ação lado a lado */
.topwoo-cart-drawer-footer,
.topwoo-cart-drawer-panel-footer {
    padding: 14px 16px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-shrink: 0;
    background: #fafafa;
}
.topwoo-drawer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    border: none;
}
.topwoo-drawer-btn--primary {
    background: var(--topwoo-primary, #f5a623);
    color: #fff;
}
.topwoo-drawer-btn--primary:hover { background: var(--topwoo-primary-dk, #e09510); color: #fff; text-decoration: none; }
.topwoo-drawer-btn--secondary {
    background: transparent;
    color: #333;
    border: 2px solid #ddd;
}
.topwoo-drawer-btn--secondary:hover { border-color: var(--topwoo-primary, #f5a623); color: var(--topwoo-primary, #f5a623); text-decoration: none; }

/* Badge de frete grátis / desconto */
.topwoo-minicart-badge {
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
}
.topwoo-minicart-badge.success {
    background: #e8f5e9;
    color: #2e7d32;
}
.topwoo-minicart-badge.info {
    background: #fff8ef;
    color: #e65100;
}

/* Barra de progresso */
.topwoo-progress-track {
    height: 6px;
    background: #eee;
    border-radius: 99px;
    overflow: hidden;
    margin: 4px 0;
}
.topwoo-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--topwoo-primary, #f5a623), #43a047);
    border-radius: 99px;
    transition: width 0.5s ease;
}

/* Item do mini-cart */
.now-minicart-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}
.minicart-thumb img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 6px;
}
.minicart-info {
    flex: 1;
    min-width: 0;
}
.minicart-name {
    font-size: 13px;
    color: #1a6db5;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    line-height: 1.3;
}
.minicart-qty-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.minicart-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}
.minicart-qty-btn {
    background: #f5f5f5;
    border: none;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: #555;
}
.minicart-qty-btn:hover { background: var(--topwoo-primary, #f5a623); color: #fff; }
.minicart-qty-val {
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}
.minicart-price {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}
.minicart-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #bbb;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}
.minicart-remove:hover { color: #e53935; }

/* Subtotal */
.woocommerce-mini-cart__total {
    padding: 14px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}
.minicart-subtotal-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}

/* Botões do mini-cart */
.woocommerce-mini-cart__buttons {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #eee;
}
.now-btn-minicart-checkout {
    background: var(--topwoo-primary, #f5a623) !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-align: center !important;
    padding: 14px !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    letter-spacing: 0.5px;
    text-decoration: none !important;
}
.now-btn-minicart-checkout:hover { background: #e09515 !important; }
.now-btn-minicart-cart {
    background: #fff !important;
    color: #555 !important;
    border: 1px solid #ddd !important;
    text-align: center !important;
    padding: 10px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    text-decoration: none !important;
}
.now-btn-minicart-whatsapp {
    background: #25D366 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

body.cart-drawer-open { overflow: hidden; }

/* =========================================
   PRODUTO SINGLE — BLOCO DE PREÇO
   ========================================= */
.topwoo-product-meta-row {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    display: flex;
    gap: 16px;
}
.topwoo-single-price-block {
    margin-bottom: 16px;
}
.topwoo-price-original {
    font-size: 14px;
    color: #aaa;
    text-decoration: line-through;
    display: inline-block;
    margin-right: 8px;
}
.topwoo-price-discount-badge {
    background: #e53935;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
}
.topwoo-price-main {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    margin: 6px 0 4px;
}
.topwoo-price-parcel {
    display: block;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}
.topwoo-price-pix {
    display: block;
    font-size: 13px;
    color: #2e7d32;
    font-weight: 700;
}

/* ATC row */
.topwoo-atc-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 10px;
}
.topwoo-atc-row .now-btn-comprar {
    flex: 1;
    padding: 13px 24px;
    font-size: 15px;
}

/* Badge seguro */
.topwoo-secure-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
    margin: 10px 0 14px;
}

/* ─── CALCULADORA DE FRETE ──────── */
.topwoo-shipping-calculator {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 16px;
    background: #fafafa;
}
.topwoo-shipping-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}
.topwoo-shipping-form {
    display: flex;
    gap: 8px;
}
.topwoo-cep-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
}
.topwoo-cep-input:focus { border-color: var(--topwoo-primary, #f5a623); }
.topwoo-cep-input.topwoo-input-error { border-color: #e53935; }
.topwoo-btn-calc {
    background: var(--color-primary, #f5a623);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.topwoo-btn-calc:hover { opacity: 0.9; }
.topwoo-link-cep {
    display: block;
    font-size: 11px;
    color: #1a6db5;
    margin-top: 4px;
    text-decoration: none;
}
.topwoo-link-cep:hover { text-decoration: underline; }
.topwoo-shipping-results { margin-top: 12px; }
.topwoo-frete-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.topwoo-frete-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    gap: 8px;
    flex-wrap: wrap;
}
.topwoo-frete-option.frete-gratis { border-color: #43a047; background: #f1f8f1; }
.frete-nome { font-size: 13px; font-weight: 600; color: #333; }
.frete-prazo { font-size: 12px; color: #888; }
.frete-preco { font-size: 14px; font-weight: 700; color: #333; }
.frete-preco.gratis { color: #2e7d32; }
.topwoo-frete-loading, .topwoo-frete-error { font-size: 13px; color: #777; }
.topwoo-frete-error { color: #e53935; }

/* ─── ABA FORMAS DE PAGAMENTO ─────────── */
.topwoo-payment-tab { display: flex; flex-direction: column; gap: 12px; }
.payment-method-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
}
.payment-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 50px;
    font-size: 12px;
    color: #555;
}
.payment-detail { flex: 1; font-size: 13px; line-height: 1.6; }
.pix-price { font-size: 18px; font-weight: 800; color: #2e7d32; display: block; }
.pix-savings { font-size: 12px; color: #43a047; }
.installment-highlight { color: #1a6db5; font-weight: 600; }
.installment-line { margin-bottom: 2px; }
.topwoo-installments-table { width: 100%; font-size: 12px; margin-top: 8px; border-collapse: collapse; }
.topwoo-installments-table th,
.topwoo-installments-table td { padding: 5px 8px; border-bottom: 1px solid #eee; text-align: left; }
.topwoo-installments-table th { background: #f5f5f5; font-weight: 700; }
.topwoo-installments-table .highlight-row { background: #fff8ef; font-weight: 600; }

/* =========================================
   DESCONTO PROGRESSIVO
   ========================================= */
.topwoo-discount-bar {
    background: #fff8ef;
    border: 1px solid var(--topwoo-primary, #f5a623);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}
.topwoo-discount-achieved {
    color: #2e7d32;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.topwoo-discount-progress { display: flex; flex-direction: column; gap: 6px; }
.topwoo-progress-text { color: #555; }
.topwoo-discount-max { color: var(--topwoo-primary, #f5a623); font-weight: 700; }
.topwoo-next-tier-hint {
    text-align: center;
    font-size: 13px;
    color: #555;
    padding: 8px;
    background: #fff8ef;
    border-radius: 6px;
    margin-top: 10px;
}

/* =========================================
   CHECKOUT PROGRESSIVO
   ========================================= */
.topwoo-checkout-header {
    margin-bottom: 24px;
}
.topwoo-checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
.topwoo-checkout-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.topwoo-checkout-steps .step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ddd;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
}
.topwoo-checkout-steps .step.active .step-num {
    background: var(--topwoo-primary, #f5a623);
    color: #fff;
}
.topwoo-checkout-steps .step.done .step-num {
    background: #43a047;
    color: #fff;
}
.topwoo-checkout-steps .step-label {
    font-size: 11px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.topwoo-checkout-steps .step.active .step-label { color: var(--topwoo-primary, #f5a623); }
.topwoo-checkout-steps .step-divider {
    width: 60px;
    height: 2px;
    background: #ddd;
    margin: 0 8px;
    margin-bottom: 18px;
}

/* Campo progressivo */
.topwoo-progressive-field {
    transition: all 0.4s ease;
}
.topwoo-revealing {
    animation: slideDown 0.4s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Loading no campo de CEP */
.form-row.topwoo-loading input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%23f5a623' stroke-width='2' fill='none' stroke-dasharray='31.4' stroke-dashoffset='10'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}
.topwoo-field-hint {
    font-size: 11px;
    margin-top: 4px;
    display: block;
}
.topwoo-field-hint.error { color: #e53935; }
.form-row.topwoo-field-error input { border-color: #e53935 !important; }

/* Botão de checkout */
#place_order {
    background: var(--topwoo-primary, #f5a623) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 16px !important;
    border-radius: 8px !important;
    width: 100%;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}
#place_order:hover { background: #e09515 !important; }

/* Badges de segurança */
.topwoo-secure-badge {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-top: 14px;
}
.badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
    font-weight: 600;
}
.topwoo-hidden-field { display: none !important; }

/* =========================================
   ELEMENTOR COMPATIBILITY
   ========================================= */
.elementor-section {
    width: 100%;
}

.elementor-widget-now-products .products {
    display: grid;
    grid-template-columns: repeat(var(--columns, 4), 1fr);
    gap: 18px;
}

/* =========================================
   UTILITIES
   ========================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.mt-auto { margin-top: auto; }
.fw-bold { font-weight: 700; }
.text-primary { color: var(--topwoo-primary, #f5a623); }
.text-success { color: #25D366; }
.text-muted { color: #777; }

/* Screen reader only */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* =========================================
   WOOCOMMERCE WRAPPERS (shop / produto /
   checkout — inseridos pelo hook)
   ========================================= */
.now-woocommerce-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.now-shop-content { padding: 16px 0 48px; }

@media (max-width: 600px) {
    .now-woocommerce-wrapper { padding: 0 14px; }
}

/* =========================================
   PÁGINA PADRÃO (page.php)
   Usada por páginas sem template do Elementor
   Theme Builder (ex.: Política de Reembolso,
   Termos de Uso, Política de Privacidade).
   ========================================= */
.now-page-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 50px auto;
    padding: 0 24px;
    box-sizing: border-box;
}
.now-page-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #222;
    margin: 0 0 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--topwoo-primary, #f5a623);
}
.now-page-wrapper .entry-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    background: #fff;
    border-radius: 8px;
    padding: 44px 60px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.now-page-wrapper .entry-content p {
    margin: 0 0 16px;
}
.now-page-wrapper .entry-content h1,
.now-page-wrapper .entry-content h2,
.now-page-wrapper .entry-content h3,
.now-page-wrapper .entry-content h4 {
    color: #222;
    font-weight: 700;
    margin: 28px 0 12px;
    line-height: 1.4;
}
.now-page-wrapper .entry-content h1:first-child,
.now-page-wrapper .entry-content h2:first-child,
.now-page-wrapper .entry-content h3:first-child {
    margin-top: 0;
}
.now-page-wrapper .entry-content ul,
.now-page-wrapper .entry-content ol {
    margin: 0 0 16px;
    padding-left: 22px;
}
.now-page-wrapper .entry-content li {
    margin-bottom: 6px;
}
.now-page-wrapper .entry-content a {
    color: var(--topwoo-secondary, #1a6db5);
    text-decoration: underline;
}
.now-page-wrapper .entry-content a:hover {
    color: var(--topwoo-primary, #f5a623);
}
/* Exceção: páginas do WooCommerce (Minha Conta, pedidos, etc.) também usam
   este template como fallback, mas seus menus/links não devem herdar o
   sublinhado pensado para textos corridos (política de privacidade, termos...). */
.now-page-wrapper .entry-content .woocommerce-MyAccount-navigation a,
.now-page-wrapper .entry-content .woocommerce a.button,
.now-page-wrapper .entry-content .woocommerce a.woocommerce-Button {
    text-decoration: none;
}
.now-page-wrapper .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

@media (max-width: 900px) {
    .now-page-wrapper .entry-content {
        padding: 32px 36px;
    }
}

@media (max-width: 600px) {
    .now-page-wrapper {
        margin: 30px auto;
        padding: 0 14px;
    }
    .now-page-title {
        font-size: 22px;
        margin-bottom: 26px;
    }
    .now-page-wrapper .entry-content {
        padding: 22px 18px;
    }
}

/* =========================================
   MINHA CONTA — 2 COLUNAS
   Regra de alta especificidade no CSS
   principal, para não depender do arquivo
   myaccount.css ser carregado corretamente.
   ========================================= */
body.woocommerce-account .entry-content > .woocommerce,
body.woocommerce-account .now-shop-content > .woocommerce,
body.woocommerce-account .woocommerce {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
    align-items: flex-start !important;
    padding-top: 20px;
}
body.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation {
    flex: 0 0 260px !important;
    max-width: 260px !important;
    min-width: 0;
}
body.woocommerce-account .woocommerce > .woocommerce-MyAccount-content {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 100%;
}
@media (max-width: 768px) {
    body.woocommerce-account .entry-content > .woocommerce,
    body.woocommerce-account .woocommerce {
        flex-direction: column !important;
        gap: 16px !important;
    }
    body.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation {
        flex: none !important;
        width: 100% !important;
        max-width: none !important;
    }
}

/* =========================================
   SHORTCODE [topwoo_products]
   ========================================= */
.topwoo-products-shortcode { margin: 16px 0; }
.topwoo-products-shortcode ul.products { display: grid !important; }
.topwoo-products-cols-1 ul.products  { grid-template-columns: minmax(0, 1fr) !important; }
.topwoo-products-cols-2 ul.products  { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.topwoo-products-cols-3 ul.products  { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.topwoo-products-cols-4 ul.products  { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.topwoo-products-cols-5 ul.products  { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.topwoo-products-cols-6 ul.products  { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
@media (max-width: 768px) {
    .topwoo-products-shortcode ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 480px) {
    .topwoo-products-shortcode ul.products { grid-template-columns: minmax(0, 1fr) !important; }
}

/* =========================================
   POLIMENTO: PRODUCT CARD
   ========================================= */
.woocommerce ul.products li.product,
ul.products li.product {
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.woocommerce ul.products li.product:hover,
ul.products li.product:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}
.now-product-info { padding: 14px 14px 12px; }
.now-price-main { font-size: 19px; }
.now-installments { font-size: 11.5px; }

/* =========================================
   POLIMENTO: BOTÃO COMPRAR
   ========================================= */
.now-btn-comprar {
    letter-spacing: 0.3px;
    transition: filter 0.18s, transform 0.12s;
}
.now-btn-comprar:hover  { filter: brightness(1.08); transform: scale(1.02); }
.now-btn-comprar:active { transform: scale(0.97); }

/* =========================================
   FIX: Cart badge — sempre visível
   ========================================= */
.now-cart-icon-wrap { overflow: visible !important; }

/* =========================================
   POLIMENTO: HEADER
   ========================================= */
.now-header { box-shadow: 0 1px 6px rgba(0,0,0,0.07); }
.now-nav     { box-shadow: 0 2px 6px rgba(0,0,0,0.04); }

/* =========================================
   POLIMENTO: BOTÃO WHATSAPP
   ========================================= */
.now-btn-whatsapp {
    transition: filter 0.18s, transform 0.12s;
}
.now-btn-whatsapp:hover  { filter: brightness(1.08); transform: scale(1.02); }
.now-btn-whatsapp:active { transform: scale(0.97); }

/* =========================================
   POLIMENTO: CHECKOUT — Campos mais limpos
   ========================================= */
.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    border: 1.5px solid #d8d8d8 !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    transition: border-color 0.2s !important;
}
.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus {
    border-color: var(--topwoo-primary, #f5a623) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(245,166,35,.12) !important;
}

/* =========================================
   POLIMENTO: PAGINAÇÃO
   ========================================= */
.woocommerce-pagination ul {
    display: flex !important;
    gap: 6px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 !important;
    justify-content: center;
    flex-wrap: wrap;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 10px !important;
    border: 1.5px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-decoration: none !important;
    transition: all 0.18s !important;
}
.woocommerce-pagination ul li a:hover { border-color: var(--topwoo-primary, #f5a623) !important; color: var(--topwoo-primary, #f5a623) !important; }
.woocommerce-pagination ul li span.current {
    background: var(--topwoo-primary, #f5a623) !important;
    border-color: var(--topwoo-primary, #f5a623) !important;
    color: #fff !important;
}

/* =========================================
   POLIMENTO: BREADCRUMB
   ========================================= */
.woocommerce-breadcrumb {
    font-size: 12px !important;
    color: #999 !important;
    padding: 10px 0 4px !important;
    margin-bottom: 8px !important;
}
.woocommerce-breadcrumb a { color: #777 !important; }
.woocommerce-breadcrumb a:hover { color: var(--topwoo-primary, #f5a623) !important; }

/* =========================================
   GRID ELEMENTOR — Cards com altura uniforme
   Garante que ul.products dentro do widget
   nativo do Elementor use CSS Grid e cards
   estiquem até a mesma altura por linha.
   ========================================= */
.elementor-widget-woocommerce-products ul.products,
.elementor-widget-products ul.products,
.elementor-section ul.products,
.elementor ul.products {
    display: grid !important;
    align-items: stretch !important;
}
/* Cada <li> ocupa altura total do item de grid */
.elementor ul.products li.product,
.elementor-widget-woocommerce-products ul.products li.product {
    height: auto !important;
    align-self: stretch !important;
}

/* =========================================
   HEADER MOBILE — Sem overflow / itens
   não saem da tela em viewports < 400px
   ========================================= */
@media (max-width: 768px) {
    .now-header-inner {
        overflow: visible;
        padding: 10px 0;
    }
    .now-header-actions {
        flex-wrap: nowrap;
        overflow: visible;
        gap: 4px;
    }
    .now-header-action-item {
        flex-shrink: 0;
        padding: 4px 6px;
    }
    /* Logo: limitar largura para não empurrar ícones */
    .now-logo {
        flex: 0 0 auto;
        max-width: 120px;
        overflow: hidden;
    }
    .now-logo img {
        max-height: 36px;
        max-width: 100%;
        width: auto;
    }
    .now-logo-text {
        font-size: 14px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 110px;
    }
    /* Hamburger: garantir espaço fixo */
    .now-hamburger {
        flex-shrink: 0;
        margin-right: 6px;
    }
}
@media (max-width: 400px) {
    .now-header-actions {
        gap: 2px;
    }
    .now-header-action-item {
        padding: 4px 4px;
    }
    /* Ação WhatsApp: ocultar no mobile muito estreito */
    .now-header-action-item:first-child {
        display: none;
    }
}

/* =========================================
   CHECKOUT MOBILE
   Layout completo (colunas + ordem) definido em checkout.css
   (.twp-checkout-wrap / .twp-checkout-sidebar). Aqui só o padding extra.
   ========================================= */
@media (max-width: 480px) {
    .twp-checkout-wrap {
        padding: 0 8px;
    }
}
