/* 
 * Terratorque - Base UI (BUSCA MINIMALISTA - APENAS ÍCONE)
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --tt-green: #0D593C;
    --tt-green-dark: #004D2C;
    --tt-slate: #1e293b;
    --tt-gray-light: #f1f5f9;
    --tt-border: #e2e8f0;
}

.tt-full-layout, .tt-stock-engine, .tt-home-carousel-wrapper, .tt-search-container { 
    font-family: 'Poppins', sans-serif !important; 
    color: var(--tt-slate) !important;
}

/* RESET TOTAL ANTI-ROSA */
.tt-full-layout a, .tt-stock-engine a, .tt-search-container a, .tt-home-carousel-wrapper a,
.tt-full-layout a:visited, .tt-stock-engine a:visited, .tt-search-container a:visited, .tt-home-carousel-wrapper a:visited {
    color: var(--tt-green) !important;
    text-decoration: none !important;
}

/* --- BUSCADOR ULTRA-MINIMALISTA (SEM FUNDO INICIAL) --- */
.tt-search-field-wrapper { display: inline-block !important; vertical-align: middle !important; }
.tt-search-form { 
    display: flex !important; align-items: center !important; 
    background: transparent !important; /* REMOVIDO FUNDO CINZA */
    border: 1px solid transparent !important; /* REMOVIDA BORDA INICIAL */
    border-radius: 40px !important; padding: 0 !important; 
    width: 40px !important; height: 40px !important; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; 
    overflow: hidden !important;
    cursor: pointer;
}

/* Quando expande (hover ou foco) */
.tt-search-form:hover, .tt-search-form:focus-within { 
    width: 220px !important; 
    background: #fff !important; 
    border-color: var(--tt-green) !important;
    padding: 0 10px !important;
    box-shadow: 0 10px 25px rgba(13, 89, 60, 0.1) !important;
}

@media (max-width: 767px) {
    .tt-search-form:hover, .tt-search-form:focus-within { width: 140px !important; }
}

.tt-search-form input { 
    flex-grow: 1 !important; background: none !important; border: none !important; 
    padding: 0 !important; font-size: 13px !important; color: var(--tt-slate) !important; 
    outline: none !important; width: 0; opacity: 0; transition: 0.3s;
}

.tt-search-form:hover input, .tt-search-form:focus-within input { width: 100% !important; opacity: 1 !important; padding-left: 8px !important; }

.tt-search-form button { 
    background: none !important; border: none !important; 
    color: var(--tt-green) !important; 
    cursor: pointer !important; min-width: 40px !important; height: 40px !important; 
    display: flex !important; align-items: center !important; justify-content: center !important;
    padding: 0 !important; margin: 0 !important;
}

.tt-search-form button svg { stroke: var(--tt-green) !important; display: block !important; width: 20px !important; height: 20px !important; }

/* --- DESIGN DA CARD UNIVERSAL (MANTIDO INTACTO) --- */
.tt-stock-card { background: #fff !important; border: 1px solid var(--tt-border) !important; border-radius: 24px !important; overflow: hidden !important; transition: 0.3s !important; position: relative !important; display: flex !important; flex-direction: column !important; height: 100% !important; }
.tt-stock-card:hover { transform: translateY(-10px) !important; border-color: var(--tt-green) !important; }
.tt-card-badge { position: absolute !important; top: 15px !important; left: 15px !important; background: var(--tt-green) !important; color: #ffffff !important; padding: 6px 14px !important; border-radius: 10px !important; font-size: 11px !important; font-weight: 800 !important; text-transform: uppercase !important; z-index: 10 !important; }
.tt-card-img-wrapper { width: 100% !important; height: 220px !important; overflow: hidden !important; }
.tt-card-img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.tt-card-title { font-size: 18px !important; font-weight: 800 !important; color: #0f172a !important; margin: 0 0 15px 0 !important; }
.tt-stock-card:hover .tt-card-title { color: var(--tt-green) !important; }
.tt-card-price { font-size: 20px !important; font-weight: 800 !important; color: var(--tt-green) !important; }

/* Theme Cleanup */
.page-header, .entry-header, .post-header { display: none !important; }
header.elementor-location-header, footer.elementor-location-footer { display: block !important; visibility: visible !important; }

/* OCULTAR TESTEMUNHOS (CLIENTE REQUEST) */
.tt-testimonios-section, 
#testemunhos, 
.section-testemunhos,
.elementor-element-7db00ef { 
    display: none !important; 
}

/* ANIMACIONES DE ÉLITE */
.tt-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.tt-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* EFECTO SHIMMER (CARGA DE ÉLITE) */
.tt-stock-grid.loading .tt-stock-card::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
    z-index: 5;
}

@keyframes shimmer {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* Retrasos secuenciales para grids */

.tt-reveal-1 { transition-delay: 0.1s; }
.tt-reveal-2 { transition-delay: 0.2s; }
.tt-reveal-3 { transition-delay: 0.3s; }
.tt-reveal-4 { transition-delay: 0.4s; }

/* CATEGORY GRID - PÖTTINGER STYLE (v3.3) */
.tt-category-index {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

/* VARIANTE B: 2 COLUMNAS (ELITE) */
.tt-category-index.tt-layout-2col {
    grid-template-columns: repeat(2, 1fr) !important;
}

.tt-category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

.tt-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.tt-category-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #1e293b;
}

.tt-category-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.8;
}

.tt-category-card:hover .tt-category-img-wrapper img {
    transform: scale(1.1);
    opacity: 1;
}

.tt-category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 2;
}

.tt-category-info {
    position: relative;
    z-index: 3;
    padding: 30px;
    text-align: left;
}

.tt-category-title {
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 900 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1.1 !important;
}

/* TARJETA "VER TUDO" (#10) */
.tt-card-view-all .tt-view-all-overlay {
    width: 100%;
    height: 100%;
    background: var(--tt-green); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    gap: 15px;
}

.tt-card-view-all .tt-view-all-overlay span {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tt-card-view-all .tt-view-all-overlay i {
    font-size: 32px;
    transition: transform 0.3s ease;
}

.tt-card-view-all:hover .tt-view-all-overlay i {
    transform: translateX(10px);
}

.tt-card-view-all .tt-category-title {
    color: #fff !important;
}

/* RESPONSIVO MÓVEL */
@media (max-width: 850px) {
    .tt-category-index.tt-layout-2col {
        grid-template-columns: 1fr !important; 
    }
    .tt-category-card {
        height: 280px;
    }
    .tt-category-title {
        font-size: 22px !important;
    }
}

/* CLASES UTILITÁRIAS DINÂMICAS (MARCAS / LOGOS) */
.tt-logo-inverted {
    filter: invert(1) !important;
}
.tt-partner-slide:hover img.tt-logo-inverted,
.partner-item:hover img.tt-logo-inverted,
.eweb-category-partners img.tt-logo-inverted:hover {
    filter: invert(1) !important;
}

