Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 69 additions & 44 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -633,8 +633,8 @@ input:focus-visible {

.menu-trigger {
display: none;
width: 44px;
height: 44px;
width: 50px;
height: 50px;
border: 0;
background: transparent;
color: var(--text);
Expand All @@ -644,8 +644,8 @@ input:focus-visible {
}

.menu-trigger .icon {
width: 24px;
height: 24px;
width: 22px;
height: 22px;
}

.header-cart {
Expand Down Expand Up @@ -3799,13 +3799,13 @@ body.modal-open {

@media (max-width: 420px) {
.menu-trigger {
width: 44px;
height: 44px;
width: 50px;
height: 50px;
}

.menu-trigger .icon {
width: 16px;
height: 16px;
width: 22px;
height: 22px;
}

.header-cart {
Expand Down Expand Up @@ -4898,6 +4898,23 @@ body.modal-open {
margin-top: 5rem;
}

.vg-product-back-row {
display: none;
}

.vg-product-back-btn {
border: 1px solid rgba(20, 22, 31, 0.14);
border-radius: 999px;
background: #ffffff;
color: var(--ink);
font-weight: 700;
font-size: 0.92rem;
padding: 0.52rem 0.9rem;
display: inline-flex;
align-items: center;
gap: 0.45rem;
}

.vg-product-grid {
display: grid;
grid-template-columns: 1fr;
Expand Down Expand Up @@ -5146,6 +5163,12 @@ body.modal-open {
align-items: center;
justify-content: center;
gap: 0.5rem;
white-space: nowrap;
}

.vg-add-btn .icon {
width: 18px;
height: 18px;
}

.vg-in-cart-msg {
Expand Down Expand Up @@ -6238,7 +6261,6 @@ body.modal-open {
}

.home-hero-copy,
.home-hero-panel,
.home-process-card,
.home-highlight-card,
.home-category-card,
Expand Down Expand Up @@ -6286,6 +6308,10 @@ body.modal-open {
max-width: 11ch;
}

.home-store-name {
white-space: nowrap;
}

.home-hero-copy p {
max-width: 58ch;
color: #586174;
Expand Down Expand Up @@ -6330,28 +6356,15 @@ body.modal-open {
}

.home-hero-panel {
border-radius: 28px;
padding: 1.25rem;
display: grid;
gap: 1rem;
background:
linear-gradient(160deg, #0c1220 0%, #111a2d 52%, #17233b 100%);
}

.home-brand-card {
min-height: 270px;
border-radius: 22px;
display: flex;
align-items: center;
justify-content: center;
background:
radial-gradient(circle at 10% 10%, rgba(227, 25, 55, 0.18), transparent 35%),
rgba(255, 255, 255, 0.98);
padding: 2rem;
padding: 0.5rem;
}

.home-brand-card img {
width: min(100%, 360px);
.home-hero-logo {
width: min(100%, 520px);
max-height: 360px;
object-fit: contain;
}

Expand Down Expand Up @@ -6454,24 +6467,13 @@ body.modal-open {
padding: 1.25rem;
display: grid;
gap: 0.8rem;
position: relative;
}

.home-category-top {
display: flex;
align-items: center;
justify-content: space-between;
}

.home-category-icon {
width: 42px;
height: 42px;
border-radius: 14px;
display: inline-flex;
align-items: center;
justify-content: center;
background: rgba(227, 25, 55, 0.08);
color: var(--brand);
font-weight: 800;
position: absolute;
top: 1.25rem;
right: 1.25rem;
}

.home-category-count {
Expand All @@ -6484,6 +6486,7 @@ body.modal-open {
font-family: var(--font-display), sans-serif;
font-size: 1.35rem;
line-height: 1.02;
padding-right: 5.5rem;
}

.home-category-description {
Expand Down Expand Up @@ -6912,13 +6915,20 @@ body.modal-open {
}

.home-hero-copy,
.home-hero-panel,
.home-process-card,
.cart-summary-card {
padding: 1.25rem;
border-radius: 22px;
}

.home-hero-panel {
padding: 0;
}

.home-hero-logo {
max-height: 260px;
}

.home-hero-copy h1 {
max-width: 9ch;
font-size: clamp(2rem, 12vw, 3rem);
Expand Down Expand Up @@ -6959,15 +6969,30 @@ body.modal-open {
max-height: 360px;
}

.vg-product-back-row {
display: flex;
margin-bottom: 0.9rem;
}

.vg-action-row {
grid-template-columns: 1fr;
display: grid;
grid-template-columns: minmax(124px, 34%) minmax(0, 1fr);
gap: 0.75rem;
align-items: stretch;
}

.vg-qty-selector {
width: 100%;
width: auto;
justify-content: space-between;
}

.vg-add-btn {
min-width: 0;
font-size: 1rem;
gap: 0.42rem;
padding-inline: 0.72rem;
}

.vg-whatsapp-widget {
right: 1rem;
bottom: calc(5.2rem + env(safe-area-inset-bottom));
Expand Down
38 changes: 10 additions & 28 deletions app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ export default function HomePage() {
<div className="shell-container home-hero-grid reveal">
<div className="home-hero-copy">
<span className="home-kicker">Catálogo Li Rilko</span>
<h1>Encontre seu produto e finalize pelo WhatsApp.</h1>
<p>Categorias claras, carrinho rápido e atendimento direto com a loja.</p>
<h1>
Novidades <span className="home-store-name">Li Rilko</span> para renovar seu estilo.
</h1>
<p>Escolhas selecionadas da loja para você comprar com praticidade e atendimento próximo.</p>
Comment on lines +30 to +33

Copilot AI Mar 27, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hero refactor removed the proof list / brand card / metrics markup, but related CSS still exists (e.g., .home-proof-list, .home-metrics-grid, .home-metric-card in app/globals.css). Consider deleting the now-unused styles to avoid dead CSS and make future home hero changes easier.

Copilot uses AI. Check for mistakes.

<div className="home-hero-actions">
<TransitionLink className="btn btn-primary" href="/catalogo">
Expand All @@ -39,32 +41,14 @@ export default function HomePage() {
</TransitionLink>
</div>

<div className="home-proof-list">
<span>Categorias organizadas</span>
<span>Carrinho simples</span>
<span>Pedido no WhatsApp</span>
</div>
</div>

<div className="home-hero-panel">
<div className="home-brand-card">
<img src="/logo-li-rilko-imports.png" alt="Logo Li Rilko Imports" />
</div>

<div className="home-metrics-grid">
<div className="home-metric-card">
<strong>{publicProducts.length}</strong>
<span>produtos ativos</span>
</div>
<div className="home-metric-card">
<strong>{categories.length}</strong>
<span>categorias organizadas</span>
</div>
<div className="home-metric-card">
<strong>WhatsApp</strong>
<span>atendimento direto</span>
</div>
</div>
<div className="home-hero-panel" aria-hidden="true">
<img
className="home-hero-logo"
src="/logo-li-rilko-imports.png"
alt="Logo Li Rilko Imports"

Copilot AI Mar 27, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hero panel is marked aria-hidden="true", but the nested logo image still has a meaningful alt. Because the whole subtree is hidden from assistive tech, that alt will never be exposed (and it’s unclear whether the logo is decorative or informative). Either remove aria-hidden if the logo should be announced, or keep it decorative and set the image alt to an empty string (and/or use presentation semantics).

Suggested change
alt="Logo Li Rilko Imports"
alt=""

Copilot uses AI. Check for mistakes.
/>
</div>
</div>
</section>
Expand All @@ -78,11 +62,9 @@ export default function HomePage() {

<div className="home-category-grid">
{categoryCards.map((category) => {
const capLetter = category.name.charAt(0).toUpperCase();
return (
<article key={category.name} className="home-category-card reveal">
<div className="home-category-top">
<span className="home-category-icon">{capLetter}</span>
<span className="home-category-count">{category.count} itens</span>
</div>
<TransitionLink className="home-category-title" href={buildCatalogLink(category.name)}>
Expand Down
32 changes: 19 additions & 13 deletions app/produto/[id]/page.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
"use client";

import { useEffect, useMemo, useState } from "react";
import { useParams } from "next/navigation";
import { useParams, useRouter } from "next/navigation";
import ProductDetailActions from "@/components/product-detail-actions";
import { useCatalog } from "@/components/providers/catalog-provider";
import TransitionLink from "@/components/transition-link";
import { formatCurrency } from "@/lib/store-utils";

export default function ProductPage() {
const params = useParams();
const router = useRouter();
const { publicProductMap, isAdmin, openEditModal } = useCatalog();
const id = Array.isArray(params?.id) ? params.id[0] : params?.id;
const product = publicProductMap.get(id);
Expand All @@ -24,6 +25,15 @@ export default function ProductPage() {
setSelectedImage(gallery[0] || "");
}, [gallery, product]);

function handleBack() {
if (typeof window !== "undefined" && window.history.length > 1) {
router.back();
return;
}

router.push("/catalogo");
}

if (!product) {
return (
<section className="vg-product-page-empty">
Expand All @@ -43,6 +53,13 @@ export default function ProductPage() {

return (
<section className="vg-product-inner-page">
<div className="shell-container vg-product-back-row">
<button type="button" className="vg-product-back-btn" onClick={handleBack}>
<span aria-hidden="true">&larr;</span>
Voltar
</button>
</div>

<div className="shell-container vg-product-grid">
<div className="vg-product-gallery-col reveal">
<div className="vg-product-main-img" style={{ position: "relative" }}>
Expand Down Expand Up @@ -124,9 +141,6 @@ export default function ProductPage() {
<button className={activeTab === "shipping" ? "active" : ""} onClick={() => setActiveTab("shipping")}>
Compra e entrega
</button>
<button className={activeTab === "specs" ? "active" : ""} onClick={() => setActiveTab("specs")}>
Diferenciais
</button>
</div>

<div className="vg-product-tab-content">
Expand All @@ -138,7 +152,7 @@ export default function ProductPage() {
{activeTab === "shipping" && (
<>
<p className="text-muted">
Finalize pelo WhatsApp. A loja confirma disponibilidade, entrega ou retirada e conclui o pedido com você.
Finalize pelo WhatsApp. A loja confirma disponibilidade e conclui o pedido com você.
</p>
<ul className="vg-product-features">
<li>Confirmação de disponibilidade antes do fechamento</li>
Expand All @@ -147,14 +161,6 @@ export default function ProductPage() {
</ul>
</>
)}
{activeTab === "specs" && (
<>
<p className="text-muted">Principais destaques do produto:</p>
<ul className="vg-product-features">
{product.highlights?.map((item) => <li key={item}>{item}</li>)}
</ul>
</>
)}
</div>

<ProductDetailActions product={product} />
Expand Down
6 changes: 1 addition & 5 deletions components/catalog-page-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { usePathname, useRouter, useSearchParams } from "next/navigation";
import { IconSearch } from "@/components/icons";
import ProductCard from "@/components/product-card";
import { useCatalog } from "@/components/providers/catalog-provider";
import TransitionLink from "@/components/transition-link";

const SORT_OPTIONS = [
{ value: "relevancia", label: "Destaques" },
Expand Down Expand Up @@ -197,7 +196,7 @@ export default function CatalogPageContent({
<IconSearch className="icon" />
<input
type="text"
placeholder="Buscar por produto, categoria ou característica"
placeholder="Buscar"

Copilot AI Mar 27, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The search input relies on the placeholder text for its accessible name. Since placeholders are not a reliable substitute for a label (and the new placeholder is shorter), add an explicit accessible label (e.g., a visually-hidden <label> or an aria-label) so screen readers can identify the field consistently.

Suggested change
placeholder="Buscar"
placeholder="Buscar"
aria-label="Buscar produtos no catálogo"

Copilot uses AI. Check for mistakes.
value={searchTerm}
onChange={(event) => setSearchTerm(event.target.value)}
/>
Expand Down Expand Up @@ -296,9 +295,6 @@ export default function CatalogPageContent({
: `Mostrando itens de ${selectedCategory}${selectedSub ? ` / ${selectedSub}` : ""}.`}
</p>
</div>
<TransitionLink className="catalog-contact-link" href="/contato">
Atendimento
</TransitionLink>
</div>

{filteredProducts.length === 0 ? (
Expand Down
Loading
Loading