/* Aveloz Showroom - Versão Final Limpa */

:root {
    --primary: #E3C053;
    --dark: #0D0D0D;
    --light: #FFFFFF;
    --gray: #F8F9FA;
    --text-muted: #666666;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    padding: 15px 15%;
    display: flex;
    gap: 30px;
    justify-content: space-between;
    align-items: center;
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--light);
}

.nav-links {
    display: flex;
    gap: 50px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.hero {
    margin-bottom: 40px;
}

/* Malha Leila Slider */
.malha-slider {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    /* evita que slides vazem sobre outros blocos */
    max-height: 460px;
    /* limita altura para evitar crescimento excessivo */
    min-height: 360px;
    /* garante altura do contêiner para não colapsar */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #f5f5f5;
}

.malha-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    padding: 12px;
    /* garante espaçamento interno sem overflow */
    box-sizing: border-box;
}

.malha-slide.active {
    opacity: 1;
}

.malha-slide img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .malha-slider {
        max-height: 50vh;
    }
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: white !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.9;
    color: white !important;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: nowrap;
}

.hero-btns a {
    white-space: nowrap;
}

/* Buttons */
.btn-primary,
.hero-btns .btn-outline {
    background: var(--primary);
    color: var(--dark);
    padding: 16px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    border: none;
}

.btn-primary:hover,
.hero-btns .btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(227, 192, 83, 0.25);
    filter: brightness(0.95);
}

.btn-outline {
    padding: 16px 35px;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--dark);
}

/* Sections */
.section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

#malha-leila {
    margin-top: 60px;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--primary);
}

/* Video Player */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    background: #000;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Catalogo Digital */
.search-wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 25px;
    text-align: center;
    padding: 0 10px;
}

.search-wrap .search-bar {
    display: block;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 16px 20px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    background: #fff;
    font-size: 0.95rem;
    color: var(--dark);
}

.search-wrap .search-bar:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(227, 192, 83, 0.15);
}

.filtros {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 30px;
    padding: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06);
    margin: 0 auto 30px;
    max-width: 1100px;
}

.filter-btn {
    cursor: pointer;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f6f6f6;
    color: var(--dark);
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(227, 192, 83, 0.16);
    border-color: rgba(227, 192, 83, 0.35);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    box-shadow: 0 14px 30px rgba(227, 192, 83, 0.18);
}

.grid-catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    justify-items: center;
    gap: 24px;
    margin-top: 30px;
}

.produto-card {
    width: 100%;
    max-width: 340px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.produto-card:hover {
    transform: translateY(-4px);
}

.img-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 280px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   CATÁLOGO NÁTIVO - NAVEGAÇÃO DE ARTIGOS (Filtro)
   ========================================================================== */
.catalogo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 5%;
}

.catalogo-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    overflow-x: auto;
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 22px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.catalogo-nav::-webkit-scrollbar {
    height: 8px;
}

.catalogo-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 999px;
}

.catalogo-nav-btn {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-weight: 700;
    color: var(--dark);
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    scroll-snap-align: center;
}

.catalogo-nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.catalogo-nav-btn.active {
    background: var(--primary);
    color: #000 !important;
    border-color: var(--primary);
    box-shadow: 0 16px 36px rgba(227, 192, 83, 0.16);
    transform: translateY(-4px);
}

@media (min-width: 1100px) {
    .catalogo-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
    }

    .catalogo-nav-btn {
        min-width: 160px;
        text-align: center;
    }
}

.produto-info {
    padding: 22px;
}

.produto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.produto-tag,
.produto-id {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.produto-tag {
    font-weight: 700;
    color: var(--primary);
}

.produto-info h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
}

.artigos-recomendados {
    margin-bottom: 20px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-carrinho {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 999px;
    background: var(--dark);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-carrinho:hover {
    transform: translateY(-2px);
    background: #222;
}

.btn-carrinho.no-carrinho {
    background: #2a8f5d;
}

/* Instagram Placeholder */
.insta-placeholder {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    min-height: 300px;
    background: #fff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #999;
    border: 1px solid #ddd;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    padding: 40px;
    background: var(--light);
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Vendedores Grid */
.vendedores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.vendedor-card {
    background: linear-gradient(135deg, var(--primary) 0%, #ffcf5479 100%);
    border-radius: 20px;
    padding: 40px 30px;
    transition: var(--transition);
    text-align: left;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
}

.vendedor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.footer {
    background: var(--dark);
    color: var(--light);
    text-align: center;
    padding: 20px 5%;
    margin-top: 60px;
}

.footer-logo {
    font-size: 0.8 rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.footer-logo span {
    color: var(--light);
}

/* ==========================================================================
   AJUSTES DE RESPONSIVIDADE (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {

    /* 1. Menu de Navegação */
    nav {
        flex-direction: column;
        /* Coloca o logo em cima e links embaixo */
        gap: 15px;
        padding: 15px 2%;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    /* 2. Hero Section */
    .hero {
        height: 100vh;
        /* Ocupa a tela toda no celular */
    }

    .hero-content {
        padding: 15px;
        width: 95%;
    }

    .hero-title {
        font-size: 2.2rem;
        /* Diminui o título para não quebrar feio */
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-btns {
        flex-direction: column;
        /* Botões um em cima do outro */
        width: 100%;
        gap: 10px;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        /* Botões ocupam a largura toda */
        text-align: center;
        padding: 14px;
    }

    /* 3. Seções de Conteúdo */
    .section-title {
        font-size: 1.8rem;
    }


    /* Ajuste da seção Malha Leila para empilhar no celular */
    #malha-leila>div {
        flex-direction: column !important;
        gap: 30px !important;
        text-align: center;
    }

    #malha-leila ul {
        text-align: left;
        display: inline-block;
    }

    .vendedores-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vendedor-card {
        padding: 25px 20px;
    }

    /* Catalogo Digital */
    .grid-catalogo {
        grid-template-columns: 1fr;
    }

    .img-container {
        max-height: none;
    }
}

/* Estilos do Carrinho Flutuante */
.carrinho-container {
    position: fixed;
    bottom: 20px;
    right: 100px;
    width: 320px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
}

.carrinho-header {
    background: #000;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.carrinho-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

#carrinho-count {
    background: var(--primary);
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.carrinho-body {
    max-height: 0;
    overflow-y: auto;
    transition: max-height 0.3s ease;
    background: #f9f9f9;
}

.carrinho-container.aberto .carrinho-body {
    max-height: 300px;
}

.carrinho-container.aberto #carrinho-icon {
    transform: rotate(180deg);
}

.carrinho-item {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carrinho-item-info span {
    display: block;
    font-size: 0.7rem;
    color: #888;
}

.btn-remover-item {
    color: #ff4444;
    background: none;
    border: none;
    cursor: pointer;
}

.carrinho-footer {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

.btn-enviar-whats {
    width: 100%;
    background: #25D366;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
}

.btn-enviar-whats:hover {
    background: #128C7E;
}

/* Estilo do botão de selecionar no card */
.btn-carrinho {
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: var(--primary);
    color: var(--dark);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 999px;
    margin-top: 15px;
}

.btn-carrinho:hover {
    filter: brightness(0.95);
}

.btn-carrinho.no-carrinho {
    background: #000;
    color: #fff;
}

.carrinho-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.carrinho-item-thumb {
    width: 50px;
    min-width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
}

.carrinho-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-limpar-carrinho {
    width: 100%;
    background: #ff4444;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background 0.3s ease;
}

.btn-limpar-carrinho:hover {
    background: #d13838;
}

/* Ajuste para mobile */
@media (max-width: 480px) {
    .carrinho-container {
        width: 90%;
        right: 5%;
        left: 5%;
    }
}

/* Catalogo */

/* ============================================================================
   CATÁLOGO NATIVO - A'VELOZ TÊXTIL
   ============================================================================ */

.catalogo-nativo {
    width: 100%;
    padding: 60px 20px;
    background: #f8f9fa;
}

.catalogo-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================================
   NAVEGAÇÃO DE ARTIGOS
   ============================================================================ */

.catalogo-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 20px;
}

.catalogo-nav-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.catalogo-nav-btn:hover {
    color: var(--primary, #1e88e5);
}

.catalogo-nav-btn.active {
    color: var(--primary, #1e88e5);
}

.catalogo-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary, #1e88e5);
}

/* ============================================================================
   CONTEÚDO DO ARTIGO
   ============================================================================ */

.catalogo-content {
    position: relative;
}

.catalogo-artigo {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
background: #F8F9FA;
background: linear-gradient(177deg, rgba(248, 249, 250, 1) 0%, rgba(186, 186, 186, 1) 100%);
}

.catalogo-artigo.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   CABEÇALHO DO ARTIGO
   ============================================================================ */

.artigo-header {
    text-align: center;
    margin-bottom: 30px;
}

.artigo-titulo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.artigo-codigo {
    font-size: 14px;
    color: #999;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ============================================================================
   DESCRIÇÃO DO ARTIGO
   ============================================================================ */

.artigo-descricao {
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.artigo-descricao p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* ============================================================================
   SLIDER DE IMAGENS
   ============================================================================ */

.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
}

.slider-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide-img {
    width: 100%;
    height: auto;
    display: block;
    flex-shrink: 0;
    object-fit: cover;
}

/* ============================================================================
   BOTÕES DE NAVEGAÇÃO DO SLIDER
   ============================================================================ */

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary, #1e88e5);
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary, #1e88e5);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: -60px;
}

.slider-next {
    right: -60px;
}

/* ============================================================================
   INDICADORES (DOTS)
   ============================================================================ */

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary, #1e88e5);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--primary, #1e88e5);
}

/* ============================================================================
   RESPONSIVIDADE - TABLET
   ============================================================================ */

@media (max-width: 768px) {
    .catalogo-nativo {
        padding: 40px 15px;
    }

    .catalogo-nav {
        gap: 10px;
        margin-bottom: 35px;
    }

    .catalogo-nav-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .artigo-titulo {
        font-size: 2rem;
    }

    .artigo-descricao p {
        font-size: 15px;
    }

    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
        left: 10px;
        right: auto;
    }

    .slider-next {
        left: auto;
        right: 10px;
    }

    .slider-btn {
        background: rgba(0, 0, 0, 0.5);
        color: white;
    }

    .slider-btn:hover {
        background: var(--primary, #1e88e5);
    }
}

/* ============================================================================
   RESPONSIVIDADE - MOBILE
   ============================================================================ */

@media (max-width: 480px) {
    .catalogo-nativo {
        padding: 30px 10px;
    }

    .catalogo-nav {
        gap: 8px;
        margin-bottom: 30px;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .catalogo-nav-btn {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .artigo-header {
        margin-bottom: 20px;
    }

    .artigo-titulo {
        font-size: 1.5rem;
    }

    .artigo-codigo {
        font-size: 12px;
    }

    .artigo-descricao {
        margin-bottom: 25px;
    }

    .artigo-descricao p {
        font-size: 14px;
    }

    .slider-container {
        max-width: 100%;
    }

    .slider-prev,
    .slider-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
        left: 5px;
    }

    .slider-next {
        left: auto;
        right: 5px;
    }

    .slider-dots {
        gap: 8px;
        margin-top: 15px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

/* ============================================================================
   CSS NOVO PARA FILTRO REORGANIZADO
   ADICIONE ESTE CSS AO FINAL DO SEU style.css
   ============================================================================ */

/* ============================================================================
   HEADER DO FILTRO - BOTÃO TODOS + BUSCADOR
   ============================================================================ */

.catalogo-header {
    background: linear-gradient(135deg, rgba(227, 192, 83, 0.08) 0%, rgba(227, 192, 83, 0.04) 100%);
    border: 1px solid rgba(227, 192, 83, 0.15);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

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

.catalogo-titulo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 25px;
    text-align: center;
}

.catalogo-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================================
   BOTÃO TODOS
   ============================================================================ */

.catalogo-btn-todos {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(227, 192, 83, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.catalogo-btn-todos:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(227, 192, 83, 0.35);
    background: #f0d966;
}

.catalogo-btn-todos i {
    font-size: 1.1rem;
}

/* ============================================================================
   BUSCADOR
   ============================================================================ */

.catalogo-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
    min-width: 250px;
}

.catalogo-search-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.catalogo-search-input {
    width: 100%;
    padding: 14px 18px 14px 45px;
    border: 2px solid rgba(227, 192, 83, 0.3);
    border-radius: 50px;
    font-size: 0.95rem;
    background: var(--light);
    color: var(--dark);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.catalogo-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(227, 192, 83, 0.15);
    background: var(--light);
}

.catalogo-search-input::placeholder {
    color: var(--text-muted);
}

/* ============================================================================
   GRID DE FILTROS
   ============================================================================ */

.catalogo-filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 50px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.catalogo-filtro-btn {
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: var(--light);
    color: var(--dark);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.catalogo-filtro-btn:hover {
    border-color: var(--primary);
    background: rgba(227, 192, 83, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(227, 192, 83, 0.15);
}

.catalogo-filtro-btn.active {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(227, 192, 83, 0.3);
    font-weight: 700;
}

/* ============================================================================
   GRID DE PRODUTOS - OTIMIZADO
   ============================================================================ */

.grid-catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.produto-card {
    background: var(--light);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.produto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.img-container {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.produto-card:hover .img-container img {
    transform: scale(1.05);
}

.produto-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.produto-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.produto-tag {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.produto-id {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.btn-carrinho {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--dark);
    color: var(--light);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: auto;
}

.btn-carrinho:hover {
    background: #222;
    transform: translateY(-2px);
}

.btn-carrinho.no-carrinho {
    background: #2a8f5d;
}

/* ============================================================================
   MENSAGEM DE NENHUM RESULTADO
   ============================================================================ */

.nenhum-resultado {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ============================================================================
   RESPONSIVIDADE - TABLET
   ============================================================================ */

@media (max-width: 1024px) {
    .catalogo-header {
        padding: 25px;
    }

    .catalogo-titulo {
        font-size: 1.7rem;
        margin-bottom: 20px;
    }

    .catalogo-controls {
        gap: 15px;
    }

    .catalogo-search-wrapper {
        max-width: 350px;
    }

    .catalogo-filtros-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        padding: 20px;
    }

    .catalogo-filtro-btn {
        font-size: 0.8rem;
        padding: 10px 14px;
        min-height: 45px;
    }

    .grid-catalogo {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }
}

/* ============================================================================
   RESPONSIVIDADE - MOBILE (768px)
   ============================================================================ */

@media (max-width: 768px) {
    .catalogo-header {
        padding: 20px;
        margin-bottom: 30px;
        border-radius: 16px;
    }

    .catalogo-titulo {
        font-size: 1.5rem;
        margin-bottom: 18px;
    }

    .catalogo-controls {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .catalogo-btn-todos {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .catalogo-search-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }

    .catalogo-filtros-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
        padding: 15px;
        margin-bottom: 30px;
    }

    .catalogo-filtro-btn {
        font-size: 0.75rem;
        padding: 10px 12px;
        min-height: 42px;
    }

    /* Grid 2 colunas no mobile */
    .grid-catalogo {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .produto-info {
        padding: 12px;
    }

    .produto-info h3 {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
        margin-bottom: 6px;
    }

    .btn-carrinho {
        padding: 10px;
        font-size: 0.75rem;
    }
}

/* ============================================================================
   RESPONSIVIDADE - MOBILE PEQUENO (480px)
   ============================================================================ */

@media (max-width: 480px) {
    .catalogo-header {
        padding: 16px;
        margin-bottom: 20px;
    }

    .catalogo-titulo {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .catalogo-controls {
        gap: 10px;
    }

    .catalogo-btn-todos {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .catalogo-search-input {
        padding: 12px 16px 12px 40px;
        font-size: 0.9rem;
    }

    .catalogo-filtros-grid {
        grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
        gap: 6px;
        padding: 12px;
        margin-bottom: 20px;
    }

    .catalogo-filtro-btn {
        font-size: 0.7rem;
        padding: 8px 10px;
        min-height: 38px;
    }

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

    .produto-card {
        border-radius: 10px;
    }

    .produto-info {
        padding: 10px;
    }

    .produto-info h3 {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        margin-bottom: 4px;
    }

    .produto-tag {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .produto-id {
        font-size: 0.7rem;
        margin-bottom: 6px;
    }

    .btn-carrinho {
        padding: 8px;
        font-size: 0.7rem;
    }
}

/* ============================================================================
   FILTRO ATIVO - DESTAQUE
   ============================================================================ */

.catalogo-filtro-btn[data-artigo].active {
    animation: pulse 0.5s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}
html {
  scroll-behavior: smooth; /* Ativa a rolagem suave nativa */
}

.botao-topo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: none; /* Fica escondido inicialmente */
  background-color: var(--primary); /* Cor do botão */
  color: #fff; /* Cor da seta */
  width: 45px;
  height: 45px;
  text-align: center;
  border-radius: 50%;
  line-height: 45px;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.botao-topo:hover {
  background-color: var(--dark)
}
