/* RESET E GERAL */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* CABEÇALHO */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    margin: 0 15px;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff6600;
}

.social-links a {
    color: #333;
    margin-left: 15px;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: #ff6600;
    transform: translateY(-3px);
}

/* HERO */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #ff9900, #ff6600);
    color: white;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.3);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* BARRA DE BUSCA E ORDENAÇÃO (NOVO) */
.secao-busca {
    display: flex;
    justify-content: center;
    padding: 30px 20px 0 20px;
}

.container-busca-ordenacao {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

.barra-busca {
    position: relative;
    flex: 1 1 500px; /* Permite crescer e encolher */
    display: flex;
    align-items: center;
}

.barra-busca input {
    width: 100%;
    padding: 15px 45px;
    border: 2px solid rgba(255, 102, 0, 0.2);
    border-radius: 50px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.barra-busca input:focus {
    border-color: #ff6600;
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.2);
}

.icone-busca {
    position: absolute;
    left: 20px;
    color: #ff6600;
    font-size: 1.2rem;
}

#btn-limpar-busca {
    position: absolute;
    right: 15px;
    background: #ccc;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

#btn-limpar-busca:hover {
    background: #ff6600;
}

.seletor-ordenacao {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 102, 0, 0.2);
    border-radius: 50px;
    padding: 0 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.seletor-ordenacao:focus-within {
    border-color: #ff6600;
}

.seletor-ordenacao label {
    font-size: 0.9rem;
    color: #666;
    margin-right: 10px;
    white-space: nowrap;
}

.seletor-ordenacao select {
    background: transparent;
    border: none;
    font-size: 1rem;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    padding: 15px 0;
}

/* CATEGORIAS */
.categorias {
    padding: 40px 5%;
    text-align: center;
}

.categorias h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #444;
}

.botoes-categoria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.botoes-categoria button {
    padding: 10px 25px;
    border: 2px solid #ff6600;
    background: rgba(255, 255, 255, 0.7);
    color: #ff6600;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.botoes-categoria button:hover,
.botoes-categoria button.ativo {
    background: #ff6600;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

/* CONTADOR DE PRODUTOS */
.contador-produtos {
    margin-top: 20px;
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.contador-produtos strong {
    color: #ff6600;
    font-size: 1.1rem;
}

/* GRID DE OFERTAS */
.ofertas {
    padding: 40px 5%;
}

.ofertas h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: #333;
}

.grid-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* CARD COM GLASSMORPHISM */
.card-produto {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.card-produto:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.badge-categoria {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    backdrop-filter: blur(5px);
}

.card-produto img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    margin-top: 15px;
    transition: transform 0.3s;
}

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

.card-produto h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.preco {
    font-size: 1.6rem;
    font-weight: 800;
    color: #28a745;
    display: block;
    margin: 15px 0;
}

.btn-comprar {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff9900, #ff6600);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-comprar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.5);
}

/* SOBRE E RODAPÉ */
.sobre {
    padding: 60px 10%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    text-align: center;
    margin-top: 60px;
    border-radius: 30px 30px 0 0;
}

.sobre h2 {
    margin-bottom: 20px;
    color: #ff6600;
    font-size: 2rem;
}

footer {
    text-align: center;
    padding: 40px 20px;
    background: #222;
    color: #ccc;
}

footer a {
    color: #ff9900;
    text-decoration: none;
}

/* RESPONSIVIDADE PARA CELULARES */
@media (max-width: 768px) {
    .container-busca-ordenacao {
        flex-direction: column;
    }
    .seletor-ordenacao {
        justify-content: space-between;
    }
    .seletor-ordenacao select {
        width: 100%;
        text-align: right;
    }
}
/* Esconde o botão "Open WhatsApp" do widget do SendHub */
.sendhub-widget .whatsapp-button,
.sendhub-widget [data-testid="whatsapp-button"],
.sendhub-widget a[href*="wa.me"] {
    display: none !important;
}
