.page {
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
    padding-bottom: 2rem;
}

/* ── Pills de categoria ───────────────────────── */
.pillRow {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pillRow::-webkit-scrollbar {
    display: none;
}

.pill {
    flex-shrink: 0;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: rgba(245, 240, 238, 0.7);
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
}

.pill:hover {
    background: var(--accent);
    color: var(--text-light);
}

.pillActive {
    background: var(--primary) !important;
    border-color: var(--secondary) !important;
    color: var(--secondary) !important;
}

/* ── Search ───────────────────────────────────── */
.searchWrapper {
    position: relative;
    padding: 0.75rem 1rem 0;
    display: flex;
    align-items: center;
}

.searchWrapper>i {
    position: absolute;
    left: 1.85rem;
    color: rgba(245, 240, 238, 0.4);
    font-size: 0.9rem;
    pointer-events: none;
}

.searchInput {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
    color: var(--text-light);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.searchInput::placeholder {
    color: rgba(245, 240, 238, 0.35);
}

.searchInput:focus {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
}

.clearBtn {
    position: absolute;
    right: 1.75rem;
    color: rgba(245, 240, 238, 0.5);
    font-size: 0.85rem;
    padding: 0.25rem;
    cursor: pointer;
}

.clearBtn:hover {
    color: var(--secondary);
}

/* ── Conteúdo ─────────────────────────────────── */
.content {
    padding: 1.25rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    margin-bottom: 2rem;
}

.catTitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.85rem;
}

/* ── Card ─────────────────────────────────────── */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.card:active {
    transform: scale(0.98);
}

.cardImgWrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.cardImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .cardImg {
    transform: scale(1.06);
}

.cardBody {
    padding: 0.75rem;
}

.cardName {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.3;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cardDesc {
    font-size: 0.75rem;
    color: rgba(245, 240, 238, 0.55);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.cardFooter {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cardPrice {
    font-size: 1rem;
    font-weight: 800;
    color: var(--secondary);
}

.empty {
    text-align: center;
    color: rgba(245, 240, 238, 0.5);
    margin-top: 3rem;
    font-size: 1rem;
}

/* Tablet+ */
@media (min-width: 640px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (min-width: 1024px) {
    .page {
        padding-left: 1rem;
    }
}