/*
Theme Name: Julius World Catalog
Theme URI: 
Author: Piloto
Author URI: 
Description: Tema nativo para catálogo de Action Figures, sem Elementor e sem funcoes pesadas de e-commerce. Focado em exibicao de produtos e integracao com WhatsApp.
Version: 1.0
License: 
License URI: 
Text Domain: juliusworld
Tags: custom, catalog, action-figures, whatsapp
*/

/* -------------------------------------------------------------------------
   VARIÁVEIS GLOBAIS & RESET
------------------------------------------------------------------------- */
:root {
    --primary: #6f32b7;
    --secondary: #5BC0DE;
    --accent: #818A91;
    --bg-color: #FFFFFF;
    --text-color: #333333;
    --card-bg: #FFFFFF;
    --border-radius: 24px;
    --pill-radius: 999px;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Nunito Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    font-size: 16.8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.main-headline {
    font-size: clamp(2.7951rem, 5.5902vw, 4.19265rem);
    color: #ffffff;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 48px;
}

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

/* -------------------------------------------------------------------------
   HEADER
------------------------------------------------------------------------- */
.site-header {
    background: #ffffff;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.site-branding {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.site-logo {
    max-height: 60px;
    transition: var(--transition);
}

.site-logo:hover {
    transform: scale(1.05);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.main-navigation li.current-menu-item>a,
.main-navigation li.current-page-item>a,
.main-navigation a:hover {
    color: var(--secondary);
}

.main-navigation li.current-menu-item>a::after,
.main-navigation li.current-page-item>a::after,
.main-navigation a:hover::after {
    width: 100%;
}

.header-actions {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.header-search {
    position: relative;
}

#ajax-search-input {
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
    width: 250px;
}

#ajax-search-input:focus {
    width: 300px;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(111, 50, 183, 0.1);
    background: #fff;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #fdfdfd;
    transform: translateX(5px);
}

.search-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.search-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
}

.search-price {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: bold;
}

.social-icon {
    color: var(--text-color);
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
   HOME - GRID DE CATEGORIAS
------------------------------------------------------------------------- */
.dynamic-catalog-container {
    max-width: 1280px;
    margin: 60px auto;
    padding: 0 20px;
}

/* -------------------------------------------------------------------------
   HOME - BANNER PRINCIPAL
------------------------------------------------------------------------- */
.home-banner-section {
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.home-banner-section a {
    display: block;
    width: 100%;
}

.home-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: var(--transition);
}

.home-banner-section a:hover .home-banner-img {
    transform: scale(1.02);
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
}

.category-card {
    flex: 0 1 calc(25% - 18.75px);
    min-width: 220px;
    max-width: 300px;
    background: rgba(111, 50, 183, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border: 2px solid var(--primary);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.category-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image {
    transform: scale(1.08);
}

.category-title {
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    background: transparent;
    margin: 0;
    color: var(--primary);
    font-weight: 800;
}

/* -------------------------------------------------------------------------
   SUBCATEGORIAS
------------------------------------------------------------------------- */
.subcategory-wrapper {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.subcategory-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.subcategory-card {
    background: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 2px solid var(--primary);
}

.subcategory-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(111, 50, 183, 0.15);
}

/* -------------------------------------------------------------------------
   HISTÓRIA DA CATEGORIA
------------------------------------------------------------------------- */
.category-history {
    background: #fff;
    border-left: 5px solid var(--secondary);
    padding: 30px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
}

/* -------------------------------------------------------------------------
   GRID DE PRODUTOS
------------------------------------------------------------------------- */
.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 15px auto 0;
    border-radius: 3px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    color: #333333;
    border: 2px solid var(--primary);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.product-thumb img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    flex-grow: 1;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
}

.btn-whatsapp,
.btn-whatsapp-loop {
    display: block;
    text-align: center;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 20px;
    border-radius: var(--pill-radius);
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-whatsapp:hover,
.btn-whatsapp-loop:hover {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 5px 15px rgba(111, 50, 183, 0.3);
    transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
   PÁGINA HISTÓRIA
------------------------------------------------------------------------- */
.page-historia {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-historia .page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary);
}

.historia-texto {
    background: #ffffff;
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 60px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.historia-texto p {
    margin-bottom: 20px;
    font-weight: bold;
}

.historia-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.floating-card {
    background: #ffffff;
    border: 6px solid #6f32b7;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(111, 50, 183, 0.15);
    transition: var(--transition);
}

.floating-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.floating-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* -------------------------------------------------------------------------
   RODAPÉ
------------------------------------------------------------------------- */
.site-footer {
    background: rgba(111, 50, 183, 0.4);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 20px 30px;
    margin-top: 0;
    color: #fff;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.footer-navigation a {
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition);
    color: #000000;
}

.footer-navigation a:hover {
    color: var(--primary);
}

.footer-credits {
    color: var(--primary);
    font-size: 0.9rem;
    text-align: center;
}

.footer-credits a {
    color: var(--primary);
}

/* -------------------------------------------------------------------------
   LOADER
------------------------------------------------------------------------- */
.loader {
    text-align: center;
    padding: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* -------------------------------------------------------------------------
   CATÁLOGO DINÂMICO (FILTROS)
------------------------------------------------------------------------- */
.catalog-main-content {
    background: linear-gradient(135deg, #f0f4fd 0%, #ffffff 100%);
    min-height: 80vh;
}

.filter-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.filter-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.filter-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

.macro-filter-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.micro-filter-btn {
    background: transparent;
    border: 2px solid #5BC0DE;
    color: #000000;
    padding: 10px 25px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.macro-filter-btn:hover {
    background: rgba(111, 50, 183, 0.1);
    transform: translateY(-2px);
}

.micro-filter-btn:hover {
    background: rgba(91, 192, 222, 0.1);
    transform: translateY(-2px);
}

.macro-filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(111, 50, 183, 0.3);
}

.micro-filter-btn.active {
    background: #5BC0DE;
    color: #000000;
    box-shadow: 0 6px 15px rgba(91, 192, 222, 0.3);
}

.micro-filters-section {
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    padding-top: 15px;
}

/* ==========================================================================
   CARDS "VOCÊ SABIA?" (HISTÓRIA DAS CATEGORIAS)
   ========================================================================== */
.voce-sabia-container {
    background: linear-gradient(135deg, var(--primary), #6f32b7);
    color: #FFF;
    border-radius: 50px;
    padding: 10px 20px 10px 10px;
    cursor: pointer;
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    border-left: 4px solid #5BC0DE;
    max-width: fit-content;
}

.voce-sabia-container.card-micro {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
    color: #333;
    border-left: 4px solid #6f32b7;
}

.vs-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.5s ease;
}

/* Imagem */
.vs-image-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    flex-shrink: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-micro .vs-image-wrapper {
    background: transparent;
    border: none;
}

.vs-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.1);
}

/* Textos e Conteúdo */
.vs-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.vs-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vs-title {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    white-space: nowrap;
}

/* Indicador Pulsante */
.vs-pulse-indicator {
    width: 10px;
    height: 10px;
    background-color: #5BC0DE;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

.card-micro .vs-pulse-indicator {
    background-color: #6f32b7;
}

@keyframes pulse-dot {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(91, 192, 222, 0.7);
    }

    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(91, 192, 222, 0);
    }

    100% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(91, 192, 222, 0);
    }
}

.history-body-wrapper {
    display: none;
    opacity: 0;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: opacity 0.5s ease;
}

.card-micro .history-body-wrapper {
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.history-body p {
    margin-bottom: 10px;
}

.history-body p:last-child {
    margin-bottom: 0;
}

.vs-toggle-icon {
    font-size: 0.9rem;
    transition: transform 0.3s;
    margin-left: 10px;
    display: none;
    /* Só aparece expandido */
}

/* --------------------------------------
   ESTADO EXPANDIDO
--------------------------------------- */
.voce-sabia-container:not(.collapsed) {
    display: block;
    max-width: 100%;
    width: 100%;
    border-radius: 12px;
    padding: 24px;
    cursor: default;
}

.voce-sabia-container:not(.collapsed) .vs-inner {
    align-items: flex-start;
}

@media (max-width: 768px) {
    .voce-sabia-container:not(.collapsed) .vs-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .voce-sabia-container:not(.collapsed) .vs-image-wrapper {
        align-self: center; /* Mantém a imagem no centro */
        margin-bottom: 35px; /* Adiciona espaço para compensar o scale(1.2) da imagem e não sobrepor o título */
    }
}

.voce-sabia-container:not(.collapsed) .vs-image-wrapper {
    width: 175px;
    height: 175px;
    border-radius: 0;
    margin-left: -10px;
    margin-right: -10px;
    margin-top: 20px;
}

.voce-sabia-container:not(.collapsed) .vs-image {
    transform: scale(1.2);
}

.voce-sabia-container:not(.collapsed) .vs-title {
    font-size: 1.5rem;
    white-space: normal;
}

.voce-sabia-container:not(.collapsed) .vs-pulse-indicator {
    display: none;
}

.voce-sabia-container:not(.collapsed) .history-body-wrapper {
    display: block;
    opacity: 1;
    font-size: 1.05rem;
    /* ~10% maior que 0.95rem original */
    font-weight: bold;
}

.voce-sabia-container:not(.collapsed) .vs-toggle-icon {
    display: block;
    transform: rotate(180deg);
    cursor: pointer;
    align-self: flex-start;
    margin-left: auto;
    font-size: 1.2rem;
}

.voce-sabia-container:not(.collapsed) .vs-header,
.voce-sabia-container:not(.collapsed) .vs-toggle-icon {
    cursor: pointer;
}

/* ==========================================
   SINGLE PRODUCT PAGE
========================================== */
.product-single-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background-color: #f5f5f5;
    border-radius: 20px;
}

.product-single-layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.product-single-gallery {
    flex: 1 1 500px;
    display: flex;
    gap: 20px;
}

.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 80px;
    max-height: 460px;
    /* 5 fotos de 80px + 4 espaços de 15px */
    overflow-y: auto;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.product-thumbnails::-webkit-scrollbar {
    width: 4px;
    display: block;
}

.product-thumbnails::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background-color: #25d366;
    /* Or var(--primary) depending on visual preference, but let's use a subtle gray or primary */
    background-color: rgba(111, 50, 183, 0.5);
    /* Semi-transparent primary */
    border-radius: 4px;
}

.prod-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.prod-thumb:hover,
.prod-thumb.active {
    border-color: var(--primary);
}

.product-main-image-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: transparent;
    position: relative;
}

#product-main-image {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
}

/* Setinhas de Navegação da Galeria */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-arrow:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}

.product-single-info {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
}

.product-single-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.product-single-price {
    font-size: 2rem;
    font-weight: 700;
    color: #00bcd4;
    /* Cor cyan parecida com a imagem */
    margin-bottom: 20px;
}

.product-single-price bdi {
    color: #00bcd4;
}

.product-single-price ins {
    text-decoration: none;
    color: #00bcd4;
}

.product-single-price del {
    font-size: 1.2rem;
    color: #999;
    margin-right: 10px;
}

.btn-whatsapp-single {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: fit-content;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-single:hover {
    background-color: #1ebc59;
    transform: translateY(-2px);
    color: #fff;
}

/* Card Produto (Baseado no Você Sabia) */
.card-product-info {
    max-width: 100%;
}

/* Esconder botão do menu e busca no desktop */
.mobile-menu-toggle,
.mobile-search-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

/* Ocultar setas do carrossel no desktop */
.trust-carousel-arrow {
    display: none;
}

@media (max-width: 768px) {

    /* Regras originais do Woocommerce */
    .product-single-gallery {
        flex-direction: column-reverse;
    }

    .product-thumbnails {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
    }

    .prod-thumb {
        flex: 0 0 80px;
    }

    /* 1. Header Responsivo (Menu Hambúrguer com Transição) */
    .mobile-menu-toggle {
        display: block !important;
        order: 3;
        margin-left: 15px;
    }

    .mobile-search-toggle {
        display: block !important;
    }

    .site-branding {
        flex: none;
    }

    .header-actions {
        flex: none;
        order: 2;
        margin-left: auto;
    }

    .header-search {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 0 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        max-height: 0;
        overflow: hidden;
    }

    .header-search.active-mobile-search {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        padding: 20px;
        max-height: 150px;
    }

    #ajax-search-input {
        width: 100% !important;
    }

    .main-navigation {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 0 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;

        /* Efeito de abertura suave */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        max-height: 0;
        overflow: hidden;
    }

    .main-navigation.active-mobile {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        padding: 20px;
        max-height: 500px;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0;
    }

    .header-container {
        flex-wrap: wrap;
    }

    /* 2. Container e Margens */
    .dynamic-catalog-container {
        padding: 0 15px !important;
        margin-top: 20px !important;
        width: 100%;
    }

    .history-container,
    .turminha-container,
    .trust-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }

    .turminha-container {
        padding: 30px 20px 0 20px !important;
    }

    .trust-container {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .history-section,
    .turminha-section,
    .contact-cta-section {
        padding: 40px 15px !important;
    }

    /* 3. Seção de Cards */

    /* Categorias em Grade (3 colunas, flex-wrap, 100% responsivo) */
    .category-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4vw !important;
        /* Margem dinâmica entre cards baseada na tela */
        padding: 0 0 15px 0 !important;
        /* Margem lateral reduzida */
        width: 100% !important;
    }

    .category-card {
        width: 28% !important;
        flex: 0 0 28% !important;
        max-width: none !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        background: rgba(111, 50, 183, 0.1) !important;
        /* Fundo roxo com transparência */
        padding: 6px 6px 2px 6px !important;
        /* Bordas: topo, dir, base, esq */
        border: 2px solid var(--primary) !important;
        /* Borda roxa de 2px */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
        border-radius: 6px !important;
    }

    .category-image-wrapper {
        margin: 0 !important;
        /* Zera margem pois o card já tem padding */
        border-radius: 2px !important;
        width: 100% !important;
    }

    .category-image {
        width: 100% !important;
        height: auto !important;
        /* Anula os 160px fixos do desktop */
        aspect-ratio: 1/1 !important;
        /* Garante que fique perfeitamente quadrada */
        background-size: cover;
        background-position: center;
    }

    .category-title {
        font-size: 0.75rem !important;
        padding: 8px 2px 4px 2px !important;
        /* Espaço para parecer a legenda da polaroid */
        margin: 0 !important;
        line-height: 1.2;
        text-align: center;
    }

    /* Trust Cards Carousel (Mobile) */
    .trust-carousel-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        margin-top: 30px;
    }

    .trust-cards {
        display: flex !important;
        flex-direction: row !important;
        gap: 15px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
        /* Firefox */
        -ms-overflow-style: none !important;
        /* IE/Edge */
        scroll-behavior: smooth !important;
        padding-bottom: 10px !important;
        margin-top: 0 !important;
    }

    .trust-cards::-webkit-scrollbar {
        display: none !important;
        /* Chrome/Safari */
    }

    .trust-card {
        width: calc(100% - 30px) !important;
        /* Mostra um pedacinho do próximo */
        flex: 0 0 auto !important;
        scroll-snap-align: center !important;
        padding: 25px 20px !important;
        height: auto !important;
        border-radius: 20px !important;
    }

    /* Carousel Arrows (Mobile) */
    .trust-carousel-arrow {
        display: flex;
        /* Override display: none do desktop */
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: var(--primary, #6f32b7);
        color: #fff;
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .trust-carousel-prev {
        left: -10px;
    }

    .trust-carousel-next {
        right: -10px;
    }

    .trust-card .icon {
        font-size: 2.5rem !important;
        margin-bottom: 15px !important;
    }

    .trust-card h3 {
        font-size: 1.15rem !important;
        min-height: auto !important;
        margin-bottom: 10px !important;
        line-height: 1.3 !important;
        padding: 0;
    }

    .trust-card p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        padding: 0;
    }

    /* 4. Ajuste da História e Turminha */
    .history-container,
    .turminha-content {
        flex-direction: column !important;
        text-align: center;
    }

    .history-content h2,
    .turminha-container h2 {
        text-align: center !important;
    }

    .turminha-content {
        flex-direction: column-reverse !important;
        gap: 10px !important;
        /* Original gap 50px - 40px */
    }

    .turminha-text {
        padding-bottom: 20px !important;
        /* Original padding 60px - 40px */
    }

    .turminha-floating-card {
        animation: none !important;
    }

    .turminha-image {
        transform: scale(1) !important;
    }

    .turminha-image img {
        transform: scale(1) !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Mostrar as badges no mobile com posições ajustadas */
    .name-badge {
        display: block !important;
        font-size: 0.8rem !important;
        padding: 4px 12px !important;
    }

    .name-badge.joana {
        top: 50% !important;
        left: 0% !important;
    }

    .name-badge.matheus {
        top: calc(20% + 80px) !important;
        left: 50% !important;
        /* A animação usa a variável --tx para o eixo X, não devemos sobrescrever o transform */
    }

    .name-badge.victor {
        top: 50% !important;
        right: 0% !important;
    }

    /* 5. Tipografia Responsiva e Banner Principal */
    .home-banner-img {
        min-height: 250px !important;
        object-fit: cover !important;
    }

    .home-banner-section>div {
        top: 15% !important;
        transform: none !important;
        padding: 0 20px !important;
    }

    .main-headline {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
        line-height: 1.2;
        max-width: 100% !important;
    }

    p {
        font-size: 1rem !important;
        line-height: 1.5;
        word-break: break-word;
    }

    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 25px !important;
    }

    h2,
    h3 {
        font-size: 1.5rem !important;
    }

    .history-content p {
        font-size: 1rem !important;
    }

    .turminha-text p {
        font-size: 0.95rem !important;
    }

    /* 6. Rodapé (Footer) */
    .footer-navigation ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 0 !important;
    }

    /* 7. Grade de Produtos Mobile */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .product-card {
        padding: 10px !important;
    }
    
    .product-thumb img {
        height: 120px !important;
        margin-bottom: 10px !important;
    }
}