/* Ceramicah — site público */
:root {
    --paper: #fbf8f3;
    --cream: #f3ece2;
    --sand: #e8dccb;
    --line: #e2d6c5;
    --clay: #a8714a;
    --clay-dark: #7c5233;
    --sage: #8aa486;
    --sage-dark: #56704f;
    --cobalt: #22466c;
    --ink: #2b2521;
    --muted: #6f6359;
    --white: #fff;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(43, 37, 33, .05), 0 12px 32px -12px rgba(43, 37, 33, .18);
    --serif: "Fraunces", Georgia, serif;
    --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--paper);
    /* grés salpicado */
    background-image:
        radial-gradient(rgba(124, 82, 51, .10) 1px, transparent 1.4px),
        radial-gradient(rgba(43, 37, 33, .06) 1px, transparent 1.2px);
    background-size: 23px 23px, 37px 37px;
    background-position: 0 0, 11px 17px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--sage-dark); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--clay); font-weight: 700; margin-bottom: .8rem; display: block; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* logo */
.logo { height: 50px; width: auto; color: var(--sage-dark); }
.logo-word { font-family: var(--sans); font-weight: 800; font-size: 25px; letter-spacing: .06em; fill: currentColor; }

/* botões */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .9em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
    font: 700 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
    transition: transform .15s ease, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--sage-dark); color: var(--white); }
.btn-primary:hover { background: #48603f; }
.btn-whats { background: #1f8f54; color: #fff; }
.btn-whats:hover { background: #18784a; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(251, 248, 243, .88); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.site-header a.brand { display: flex; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav .btn { color: #fff; padding: .7em 1.2em; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

/* hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 30em; margin-bottom: 2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .proof { display: flex; gap: 26px; margin-top: 2.4rem; flex-wrap: wrap; }
.hero .proof div { font-size: .88rem; color: var(--muted); line-height: 1.3; }
.hero .proof strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--ink); font-weight: 500; }
.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; height: 560px; }
.collage img { min-height: 0; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.collage img:first-child { grid-row: span 2; border-radius: 200px 200px var(--radius) var(--radius); }
.collage .stamp {
    position: absolute; left: -26px; bottom: 34px; width: 116px; height: 116px; border-radius: 50%;
    background: var(--clay); color: #fff; display: grid; place-items: center; text-align: center;
    font: italic 500 1rem/1.15 var(--serif); padding: 14px; box-shadow: var(--shadow); transform: rotate(-10deg);
}

/* faixa */
.ribbon { background: var(--sage-dark); color: #f3efe6; overflow: hidden; }
.ribbon ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 46px; list-style: none; margin: 0; padding: 18px 20px; font-weight: 600; font-size: .95rem; }
.ribbon li { display: flex; align-items: center; gap: 10px; }
.ribbon svg { width: 20px; height: 20px; opacity: .9; }

/* seções */
.section { padding: 96px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 0; }
.section-head p { max-width: 34em; margin: .6rem 0 0; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--sage-dark); white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* cards de produto */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
.card { position: relative; text-decoration: none; display: flex; flex-direction: column; }
.card .photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .4s; }
.card .photo img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .photo img { transform: scale(1.04); }
.card:hover .photo img.alt { opacity: 1; }
.card .tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--paper); color: var(--ink); font-size: .74rem; font-weight: 700; padding: .35em .8em; border-radius: 999px; }
.card .tag.promo { background: var(--clay); color: #fff; }
.card .tag.out { background: var(--ink); color: #fff; }
.card h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 2px 0 4px; line-height: 1.35; }
.card .photo + h3 { margin-top: 14px; }
.card .cat { display: block; margin-top: 14px; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.price { font-weight: 700; color: var(--ink); }
.price s { color: var(--muted); font-weight: 500; margin-right: 6px; font-size: .9em; }
.card.soldout .photo img { filter: grayscale(.5); opacity: .75; }
.no-photo { width: 100%; height: 100%; display: grid; place-items: center; color: var(--sand); }
.no-photo svg { width: 40%; color: var(--sand); }

/* categorias */
.grid-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 24, 20, .72), rgba(30, 24, 20, 0) 58%); }
.cat-card div { position: absolute; left: 22px; bottom: 18px; z-index: 1; }
.cat-card h3 { font-size: 1.7rem; margin: 0; }
.cat-card span { font-size: .85rem; opacity: .85; }

/* ateliê */
.atelie { background: var(--cream); }
.atelie .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.atelie .pics { position: relative; }
.atelie .pics img { border-radius: var(--radius); box-shadow: var(--shadow); }
.atelie .pics img:first-child { width: 82%; aspect-ratio: 4 / 5; object-fit: cover; }
.atelie .pics img:last-child { position: absolute; right: 0; bottom: -40px; width: 48%; aspect-ratio: 1; object-fit: cover; border: 8px solid var(--cream); }
.atelie h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.quote { border-left: 3px solid var(--sage); padding: 6px 0 6px 22px; margin: 28px 0; font: italic 1.25rem/1.45 var(--serif); }
.quote small { display: block; font: 600 .85rem var(--sans); color: var(--muted); margin-top: 8px; font-style: normal; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 28px; }
.features div { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.features svg { flex: none; width: 24px; height: 24px; color: var(--clay); margin-top: 2px; }
.features strong { display: block; }

/* como comprar */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; position: relative; }
.step::before { counter-increment: s; content: counter(s); font: italic 500 3rem/1 var(--serif); color: var(--sage); display: block; margin-bottom: 14px; }
.step h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }
.step.highlight { background: var(--sage-dark); color: #f4f0e8; border-color: var(--sage-dark); }
.step.highlight p { color: #dfe7da; }
.step.highlight::before { color: #c9d8c3; }

/* presente */
.gift { display: grid; grid-template-columns: 1fr 1fr; border-radius: 28px; overflow: hidden; background: var(--clay-dark); color: #f7efe6; }
.gift .text { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.gift h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.gift h2 em { color: #f1d3b8; }
.gift p { color: #ead9c8; }
.gift .imgs { display: grid; grid-template-columns: 1fr 1fr; }
.gift .imgs img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.gift .btn-ghost { border-color: #f7efe6; color: #f7efe6; align-self: flex-start; }
.gift .btn-ghost:hover { background: #f7efe6; color: var(--clay-dark); }

/* instagram */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.insta-grid a { aspect-ratio: 1; overflow: hidden; border-radius: 12px; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.insta-grid a:hover img { transform: scale(1.06); }

/* footer */
.site-footer { background: var(--ink); color: #d8cfc5; padding: 64px 0 28px; margin-top: 40px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #c9d8c3; height: 52px; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font: 700 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 16px; }
.site-footer a { color: #d8cfc5; text-decoration: none; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .bottom { grid-column: 1 / -1; border-top: 1px solid #443b35; padding-top: 22px; font-size: .85rem; color: #9b8f84; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* botão flutuante */
.float-whats { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: #1f8f54; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px -6px rgba(31, 143, 84, .6); transition: transform .2s; }
.float-whats:hover { transform: scale(1.07); }
.float-whats svg { width: 30px; height: 30px; }

/* catálogo */
.page-head { padding: 48px 0 18px; }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: .5em 1.05em; border-radius: 999px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--muted); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search { display: flex; gap: 8px; }
.search input, .search select { font: inherit; font-size: .92rem; padding: .6em 1em; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); min-width: 0; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }

/* paginação */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; background: var(--white); }
.pagination .on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .off { opacity: .4; }

/* página da peça */
.breadcrumb { font-size: .88rem; color: var(--muted); padding: 26px 0 0; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 26px 0 80px; align-items: start; }
.gallery .main { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery .thumbs button { width: 78px; height: 78px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.gallery .thumbs button.on { border-color: var(--sage-dark); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { position: sticky; top: 100px; }
.product-info h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.product-info .price { font-size: 1.6rem; font-family: var(--serif); font-weight: 500; }
.product-info .badge { display: inline-block; margin-left: 10px; font: 700 .78rem var(--sans); padding: .35em .8em; border-radius: 999px; background: var(--cream); vertical-align: middle; }
.product-info .badge.out { background: var(--ink); color: #fff; }
.product-info .desc { color: var(--muted); font-size: 1.04rem; margin: 18px 0 22px; }
.points { list-style: none; padding: 0; margin: 0 0 26px; }
.points li { display: flex; gap: 10px; margin-bottom: 8px; }
.points svg { flex: none; width: 20px; height: 20px; color: var(--sage-dark); margin-top: 3px; }
.specs { width: 100%; border-collapse: collapse; margin: 0 0 28px; font-size: .94rem; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 600; color: var(--muted); width: 42%; text-transform: capitalize; }
.cta-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cta-box p { font-size: .92rem; color: var(--muted); margin: 12px 0 0; }
.handmade-note { display: flex; gap: 12px; margin-top: 22px; font-size: .9rem; color: var(--muted); }
.handmade-note svg { flex: none; width: 22px; height: 22px; color: var(--clay); }

/* entrada suave */
/* só esconde se o JS estiver rodando (sem JS, tudo aparece normalmente) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* responsivo */
@media (max-width: 1024px) {
    .grid-products { grid-template-columns: repeat(3, 1fr); }
    .hero .wrap, .atelie .wrap { gap: 40px; }
    .collage { height: 460px; }
}
@media (max-width: 820px) {
    .nav { position: fixed; inset: 76px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 22px; border-bottom: 1px solid var(--line); display: none; }
    .nav.open { display: flex; }
    .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .nav .btn { margin-top: 16px; border: 0; }
    .menu-toggle { display: block; }
    .hero { padding: 28px 0 56px; }
    .hero .wrap, .atelie .wrap, .product, .gift { grid-template-columns: 1fr; }
    .collage { height: 380px; }
    .collage .stamp { left: 10px; bottom: -20px; width: 96px; height: 96px; font-size: .88rem; }
    .grid-products { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
    .grid-cats { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .section { padding: 68px 0; }
    .atelie .pics { margin-bottom: 40px; }
    .gift .text { padding: 44px 26px; }
    .insta-grid { grid-template-columns: repeat(3, 1fr); }
    .site-footer .wrap { grid-template-columns: 1fr; gap: 26px; }
    .product-info { position: static; }
    .product { gap: 30px; }
    .features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .grid-cats { grid-template-columns: 1fr; }
    .cat-card { aspect-ratio: 16 / 9; }
    .search { width: 100%; }
    .search input { flex: 1; }
    .collage { height: 320px; gap: 10px; }
    .card h3 { font-size: .92rem; }
}
