:root {
    --whatsapp: #22c55e;
    --whatsapp-dark: #16a34a;
    --dark: #222222;
    --light: #f4f6f8;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --border: #d1d5db;
    --primary: #2563eb;
    --header-green: #0f766e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.5;
    padding-bottom: 2rem;
}

/* Cabeçalho */
header {
    background: var(--header-green);
    padding: 0.85rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 1.15rem;
    color: #ffffff;
}

header a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}

header a:hover {
    opacity: 1;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

/* Barra de Busca Superior */
.search-bar-container {
    background: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
}

.search-bar-container span {
    padding-left: 0.5rem;
    color: var(--gray);
    font-size: 1rem;
}

.search-bar-container input {
    width: 100%;
    border: none;
    outline: none;
    padding: 0.5rem;
    font-size: 0.95rem;
    background: transparent;
}

/* Filtros em Pílulas */
.filter-row {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    scrollbar-width: none;
}
.filter-row::-webkit-scrollbar {
    display: none;
}

.pill-btn {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.pill-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Categorias Populares */
.section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray);
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.categories-row {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    scrollbar-width: none;
}
.categories-row::-webkit-scrollbar {
    display: none;
}

.category-pill {
    background: #fff;
    border: 1px solid var(--border);
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--dark);
    text-decoration: none;
    white-space: nowrap;
}

/* Info Bar */
.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.85rem;
    font-weight: 500;
}

.verified-badge {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* Cards Estilizados */
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
}

/* Container de Imagem Padronizado */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    background: #e9ecef;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantém a proporção sem distorcer nem cortar de forma errada */
}

.badge-floating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #b8860b;
    border-radius: 50px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.card-body {
    padding: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.35rem;
}

.card-text {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gray);
    border-top: 1px solid var(--gray-light);
    padding-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.badge-24h {
    background: #e2fcd9;
    color: #16a34a;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Botão do WhatsApp Moderno */
.btn-whatsapp-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: var(--whatsapp);
    color: #fff;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.25);
    transition: background 0.2s;
}

.btn-whatsapp-modern i {
    font-size: 1.25rem;
}

.btn-whatsapp-modern:hover {
    background: var(--whatsapp-dark);
}