diff --git a/app/globals.css b/app/globals.css
index 650f4fd..2b9e092 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -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);
@@ -644,8 +644,8 @@ input:focus-visible {
}
.menu-trigger .icon {
- width: 24px;
- height: 24px;
+ width: 22px;
+ height: 22px;
}
.header-cart {
@@ -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 {
@@ -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;
@@ -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 {
@@ -6238,7 +6261,6 @@ body.modal-open {
}
.home-hero-copy,
-.home-hero-panel,
.home-process-card,
.home-highlight-card,
.home-category-card,
@@ -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;
@@ -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;
}
@@ -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 {
@@ -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 {
@@ -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);
@@ -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));
diff --git a/app/page.js b/app/page.js
index 89894e0..2319987 100644
--- a/app/page.js
+++ b/app/page.js
@@ -27,8 +27,10 @@ export default function HomePage() {
Catálogo Li Rilko
-
Encontre seu produto e finalize pelo WhatsApp.
-
Categorias claras, carrinho rápido e atendimento direto com a loja.
+
+ Novidades Li Rilko para renovar seu estilo.
+
+
Escolhas selecionadas da loja para você comprar com praticidade e atendimento próximo.
@@ -39,32 +41,14 @@ export default function HomePage() {
-
- Categorias organizadas
- Carrinho simples
- Pedido no WhatsApp
-
-
-
-
-
-
-
-
- {publicProducts.length}
- produtos ativos
-
-
- {categories.length}
- categorias organizadas
-
-
- WhatsApp
- atendimento direto
-
-
+
+
@@ -78,11 +62,9 @@ export default function HomePage() {
{categoryCards.map((category) => {
- const capLetter = category.name.charAt(0).toUpperCase();
return (
- {capLetter}
{category.count} itens
diff --git a/app/produto/[id]/page.js b/app/produto/[id]/page.js
index e39444e..9342686 100644
--- a/app/produto/[id]/page.js
+++ b/app/produto/[id]/page.js
@@ -1,7 +1,7 @@
"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";
@@ -9,6 +9,7 @@ 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);
@@ -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 (
@@ -43,6 +53,13 @@ export default function ProductPage() {
return (
+
+
+ ←
+ Voltar
+
+
+
@@ -124,9 +141,6 @@ export default function ProductPage() {
setActiveTab("shipping")}>
Compra e entrega
- setActiveTab("specs")}>
- Diferenciais
-
@@ -138,7 +152,7 @@ export default function ProductPage() {
{activeTab === "shipping" && (
<>
- 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ê.
Confirmação de disponibilidade antes do fechamento
@@ -147,14 +161,6 @@ export default function ProductPage() {
>
)}
- {activeTab === "specs" && (
- <>
-
Principais destaques do produto:
-
- {product.highlights?.map((item) => {item} )}
-
- >
- )}
diff --git a/components/catalog-page-content.js b/components/catalog-page-content.js
index 700f457..951b022 100644
--- a/components/catalog-page-content.js
+++ b/components/catalog-page-content.js
@@ -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" },
@@ -197,7 +196,7 @@ export default function CatalogPageContent({
setSearchTerm(event.target.value)}
/>
@@ -296,9 +295,6 @@ export default function CatalogPageContent({
: `Mostrando itens de ${selectedCategory}${selectedSub ? ` / ${selectedSub}` : ""}.`}
-
- Atendimento
-
{filteredProducts.length === 0 ? (
diff --git a/components/product-card.js b/components/product-card.js
index d497eef..595bef4 100644
--- a/components/product-card.js
+++ b/components/product-card.js
@@ -15,6 +15,10 @@ export default function ProductCard({ product, highlight = false }) {
const isAvailable = product.isAvailable !== false;
const qtyInCart = getItemQty(product.id);
const priceCash = Number(product.priceCash ?? product.price ?? 0);
+ const imageSrc =
+ typeof product.image === "string" && product.image.trim()
+ ? product.image.trim()
+ : "/li-rilko-icon-page.png";
function handleAddToCart() {
const added = addItem(product.id, 1);
@@ -81,7 +85,7 @@ export default function ProductCard({ product, highlight = false }) {
false,
+ openEditModal: () => {},
+ openWhatsAppPicker: () => {},
+ };
}
return context;
}