* { box-sizing: border-box; margin: 0; padding: 0; font-family: Arial, sans-serif; }
body { background-color: #f5f5f5; color: #333; }
.container { width: 70vw; max-width: 1400px; margin: 0 auto; background: #fff; min-height: 100vh; padding: 20px; box-shadow: 0 0 10px rgba(0,0,0,0.05); }

/* TOPO DESKTOP */
.site-header { text-align: center; padding: 0px; margin-bottom: 15px; }
.site-header h1 { color: #ee4d2d; font-size: 2.5em; text-transform: uppercase; }

/* BUSCA DESKTOP */
.search-section form { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.search-section input { padding: 10px; width: 400px; border: 2px solid #ee4d2d; border-radius: 4px; outline: none; }
.search-section button { background: #ee4d2d; color: #fff; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-weight: bold; }

/* CATEGORIAS DESKTOP - Alinhamento perfeito com o texto da pílula */
.categories-section { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 30px; border: none; }
.cat-label { 
    font-weight: bold; 
    margin-bottom: 8px; 
    font-size: 0.9em; 
    color: #666; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    width: 100%; 
    text-align: left; 
    padding-left: 18px; /* Alinha exatamente com o padding interno da primeira pílula */
}
.cat-list { display: flex; flex-wrap: wrap; list-style: none; gap: 10px; width: 100%; align-items: center; }
.cat-list li a { 
    text-decoration: none; 
    color: #444; 
    background: #f0f0f0; 
    padding: 8px 18px; 
    border-radius: 20px; 
    font-size: 0.9em; 
    transition: 0.2s; 
    display: inline-block;
}
.cat-list li a:hover { background: #e0e0e0; color: #000; }
.cat-list li a.active { 
    background: #ee4d2d; 
    color: #fff; 
    font-weight: bold; 
    box-shadow: 0 2px 5px rgba(238, 77, 45, 0.3); 
}

/* CARROSSEL E PRODUTOS */
.carousel-container { margin: 20px 0; overflow: hidden; position: relative; width: 100%; }
.carousel-track { display: flex; gap: 15px; justify-content: flex-start; padding-top: 10px; padding-bottom: 15px; }

.product-card { flex: 0 0 calc(20% - 12px); border: 1px solid #ddd; background: #fff; padding: 10px; display: flex; flex-direction: column; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); border-color: #ee4d2d; }
.product-card img { width: 100%; height: 200px; object-fit: contain; margin-bottom: 10px; }
.product-title { font-size: 0.9em; font-weight: bold; text-align: center; margin-bottom: 10px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { color: #ee4d2d; font-size: 1.2em; font-weight: bold; text-align: center; margin-bottom: 15px; }
.btn-buy { background: #ee4d2d; color: #fff; text-decoration: none; text-align: center; padding: 10px; border-radius: 4px; font-weight: bold; display: block; }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 30px; align-items: center; }
.pagination a { text-decoration: none; color: #333; padding: 5px 10px; border: 1px solid #ddd; }
.pagination a.active-page { background: #ee4d2d; color: #fff; border-color: #ee4d2d; }

.whatsapp-btn { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 1000; transition: transform 0.2s; }
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn img { width: 35px; height: 35px; }

/* REGRAS DE RESPONSIVIDADE (TABLET E CELULAR) */
@media (max-width: 1200px) { .container { width: 90vw; } .product-card { flex: 0 0 calc(25% - 12px); } }
@media (max-width: 900px) { .container { width: 95vw; } .product-card { flex: 0 0 calc(33.333% - 10px); } }

@media (max-width: 600px) { 
    .container { width: 100vw; padding: 10px; }
    
    /* TOPO MOBILE */
    .site-header { padding: 5px 0 0 0; margin-bottom: 8px; }
    
    /* BUSCA MOBILE */
    .search-section form { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 5px; width: 100%; margin-bottom: 15px; }
    .search-section input { flex: 1; width: 100%; padding: 10px; font-size: 14px; border-radius: 8px; }
    .search-section button { padding: 10px 15px; border-radius: 8px; font-size: 0.9em; white-space: nowrap; }
    
    /* CATEGORIAS MOBILE - Alinhamento idêntico ao padding da pílula móvel */
    .categories-section { 
        display: flex; 
        flex-direction: column; 
        align-items: flex-start; 
        margin-bottom: 15px; 
    }
    .cat-label { 
        margin-bottom: 6px; 
        font-size: 0.85em; 
        width: 100%;
        padding-left: 14px; /* Alinha com o padding interno do botão de celular */
    }
    .cat-list { 
        display: flex;
        flex-wrap: nowrap; 
        overflow-x: auto; 
        width: 100%;
        padding-bottom: 8px; 
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none; 
        align-items: center;
        gap: 8px;
    }
    .cat-list::-webkit-scrollbar { display: none; } 
    .cat-list li { flex: 0 0 auto; } 
    .cat-list li a { padding: 6px 14px; font-size: 0.8em; }
    
    /* PRODUTOS MOBILE */
    .carousel-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 10px; padding-bottom: 15px; }
    .product-card { flex: 0 0 calc(50% - 7.5px); scroll-snap-align: start; border-radius: 8px; }
    .product-title { font-size: 0.8em; }
    .product-price { font-size: 1.1em; }
    .btn-buy { font-size: 0.8em; padding: 8px; border-radius: 6px; }
}
/* ESTILOS DAS SETAS DO CARROSSEL AUTOMÁTICO */
.carousel-container { position: relative; }
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.carousel-btn:hover { background: #ee4d2d; }
.carousel-prev { left: 5px; }
.carousel-next { right: 5px; }
.carousel-track { scroll-behavior: smooth; }