:root { color: var(--tinta); font-family: var(--texto); background: var(--rosa-papel); scroll-behavior: smooth }
* { box-sizing: border-box }
body { margin: 0; font-size: 1.02rem }
button, a { font: inherit }
a { color: inherit; text-decoration: none }
button { cursor: pointer }
[hidden] { display: none !important }
.shell { width: min(1240px, 94%); margin-inline: auto }

/* Cabeçalho */
.mast { display: flex; align-items: center; justify-content: space-between; gap: 1rem }
.brand { display: flex; align-items: center; gap: 14px }
.about img { border-radius: 50%; object-fit: cover }

/* Títulos */
.eyebrow, .tiny, .category { font: 800 .76rem/1.4 var(--texto); letter-spacing: .16em; color: var(--dourado-texto); margin: 0; text-transform: uppercase }
.pin { display: inline-block; vertical-align: -3px; width: 1.05rem; height: 1.05rem; margin-right: 6px; background: var(--tachinha) center / contain no-repeat }
h1, h2, h3 { font-family: var(--titulo); font-weight: 500 }
h1 { font-size: clamp(3.4rem, 6.5vw, 6.9rem); line-height: .94; letter-spacing: -.04em; margin: 1.25rem 0; color: var(--vinho) }
h1 em { color: var(--vermelho) }
h2 { font-size: clamp(2.1rem, 3.3vw, 3.4rem); line-height: 1.06; letter-spacing: -.03em; margin: 0; color: var(--vinho) }
h3 { letter-spacing: -.01em; font-size: clamp(1.2rem, 1.6vw, 1.5rem); margin: .25rem 0; color: var(--tinta) }

.cta {
  display: inline-block; border: 0; border-radius: 30px; background: var(--vermelho); color: white;
  padding: .9rem 1.6rem; font-weight: 800; box-shadow: 0 4px 0 var(--vermelho-forte); transition: transform .15s, box-shadow .15s;
}
.cta:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--vermelho-forte) }

/* Catálogo */
.catalogo { margin-top: .5rem }
.catalogo-topo { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem }
.catalogo-topo h2 { margin-top: .4rem }
.filters { display: flex; flex-wrap: wrap; gap: .5rem }
.filters button {
  padding: .55rem 1.1rem; border: 1px solid var(--linha); border-radius: 25px;
  background: var(--folha); color: var(--tinta); font-size: .95rem; font-weight: 700;
}
.filters button:hover { border-color: #e7aeb0 }
.filters button[aria-pressed=true] { background: var(--piscina-claro); color: var(--piscina-tinta); border-color: #8fd8df }
/* Cada coleção é um caderno de espiral, como os da logo: rosa (Clássico) e amarelo (Luxo) */
.collection {
  --capa: #ffb1b1;
  position: relative; margin: clamp(2rem, 3.5vw, 2.6rem) 0 clamp(1.2rem, 2.5vw, 2rem);
  padding: calc(clamp(1.1rem, 3vw, 2.3rem) + 10px) clamp(1.1rem, 3vw, 2.3rem) clamp(1.1rem, 3vw, 2.3rem);
  border: 1px solid var(--linha); border-top: 8px solid var(--capa); border-radius: var(--raio);
  background: var(--folha); box-shadow: var(--sombra);
}
.collection::before {
  content: ""; position: absolute; top: -22px; left: 26px; right: 26px; height: 32px;
  background: var(--espiral) 0 0 / 26px 32px space no-repeat;
  background-repeat: space no-repeat;
}
/* Capas alternadas para coleções novas cadastradas no painel */
.collection:nth-child(3n+2) { --capa: #fbd75b }
.collection:nth-child(3n) { --capa: #9fe3d0 }
.collection-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .9rem; margin: 0 0 1.5rem }
.collection-heading h2 { font-size: clamp(1.9rem, 2.8vw, 2.7rem) }
.collection-heading small { font-weight: 700; color: var(--tinta-suave) }
/* Cada coleção ocupa uma linha inteira: 3 modelos viram 3 colunas, 4 viram 4. */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(.9rem, 2vw, 1.6rem) }
.grid:has(> [hidden]) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)) }
.item { display: block; padding: 0; border: 0; text-align: left; background: transparent; width: 100%; color: inherit }
.item .foto-modelo, .item .art { transition: transform .25s ease, box-shadow .25s ease }
.item:hover .foto-modelo, .item:hover .art { transform: translateY(-4px); box-shadow: 0 10px 22px #a0484226 }
.item:hover h3 { color: var(--vermelho) }
.category { display: block; margin-top: .95rem; font-size: .72rem }
.price { font-weight: 800; color: var(--vermelho) }

/* Fotos e ilustrações dos modelos: mesma superfície, luz e cantos */
.foto-modelo, .art { display: block; width: 100%; aspect-ratio: 1.27; border-radius: 14px; box-shadow: 0 3px 10px #a0484214 }
.foto-modelo { object-fit: cover }
.art {
  position: relative; overflow: hidden; isolation: isolate; display: grid; place-items: center; container-type: inline-size;
  background:
    radial-gradient(ellipse at 22% 12%, #ffffffa6, transparent 55%),
    linear-gradient(180deg, transparent 66%, #a0484212 66.3%, #a048420a),
    var(--art-bg);
}
.art-topo { --art-bg: #ffd9d8 }
.art-kit { --art-bg: var(--menta) }
.art-cartao { --art-bg: var(--amarelo-claro) }
.art-tags { --art-bg: #cdf0f3 }
.mini {
  position: relative; display: grid; align-content: center; justify-items: center; text-align: center;
  font-family: var(--titulo); width: 62%; height: 60%; transform: rotate(-8deg);
  background: #fffaf0; color: var(--vermelho); box-shadow: 4px 8px 12px #6e2a3a2e;
}
.mini strong { font-size: clamp(1.15rem, 9cqw, 2.3rem); font-weight: 500; font-style: italic }
.mini small { font: 800 clamp(.55rem, 3cqw, .72rem) var(--texto); letter-spacing: .14em; color: var(--dourado-texto) }
.art-topo .mini { border-radius: 50% 50% 38% 38%; border: 5px double #f2a4a8 }
.art-topo .mini::before { content: ""; position: absolute; background: #c99a63; width: 3%; height: 46%; top: 100%; left: 50%; z-index: -1 }
.art-kit .mini { background: repeating-linear-gradient(90deg, #ffb1b1 0 10%, #fffaf0 10% 20%); border-radius: 5px 5px 14px 14px; transform: rotate(6deg); height: 54% }
.art-kit .mini::before { content: ""; position: absolute; left: 27%; right: 27%; bottom: 94%; height: 30%; border: 4px solid #f4d38c; border-bottom: 0; border-radius: 30px 30px 0 0 }
.art-kit .mini strong, .art-kit .mini small { background: #fffaf0; padding-inline: .3em }
.art-cartao .mini { height: 51%; border: 3px double #f2a4a8; box-shadow: 3px 3px #fffaf0, 4px 4px #f0c6c4, 7px 7px #fffaf0, 8px 8px #f0c6c4, 10px 14px 12px #6e2a3a2e }
.art-tags .mini { width: 44%; height: 65%; transform: rotate(14deg); border-radius: 38% 38% 4px 4px; background: var(--vermelho); color: #fff6e8; box-shadow: -13px 7px #ffc9cb, 6px 10px 12px #6e2a3a33 }
.art-tags .mini small { color: var(--amarelo) }
.art-tags .mini::before { content: ""; position: absolute; width: 23%; height: 42%; bottom: 85%; border: 2px solid #b08a5c; border-radius: 60%; transform: rotate(-17deg) }

/* O ateliê */
.about {
  position: relative; display: flex; align-items: center; gap: 1.6rem; padding: 2.2rem clamp(1.2rem, 4vw, 3rem);
  border-radius: var(--raio); background: var(--rosa-bebe); border: 1px solid var(--linha);
}
.about > div { flex: 1 }
/* Bloquinho amarelo com coração menta, como na logo */
.bilhete {
  position: relative; flex: none; width: 190px; margin: 0 .6rem 0 auto; padding: 2.1rem 1.1rem 1.2rem; rotate: 4deg;
  background:
    linear-gradient(90deg, transparent 22px, #ffb1b1 22px 23px, transparent 23px),
    repeating-linear-gradient(180deg, transparent 0 25px, #f3d98c 25px 26px) 0 14px,
    #fff3b8;
  box-shadow: 2px 3px 0 #f6dc8a, 0 10px 18px #a0484222;
  font: italic 500 1.2rem/1.3 var(--titulo); color: var(--vinho); text-align: center;
}
.bilhete::before { content: ""; position: absolute; left: 50%; top: -13px; width: 22px; height: 34px; translate: -50% 0; background: var(--tachinha) center / contain no-repeat; rotate: -14deg }
.bilhete::after { content: ""; display: block; width: 30px; height: 27px; margin: .6rem auto 0; background: var(--coracao) center / contain no-repeat }
.bilhete small { display: block; margin-top: .35rem; font: 800 .7rem/1.3 var(--texto); letter-spacing: .12em; color: var(--dourado-texto); font-style: normal; text-transform: uppercase }
.about img { flex: none; box-shadow: 0 0 0 6px #fff8, 0 6px 18px #a0484222 }
.about h2 { font-size: 2.1rem; margin: .35rem 0; color: var(--vermelho) }
.about h2 i { color: var(--dourado-texto); font-weight: 400 }
.about p:not(.eyebrow) { margin: .5rem 0 0; max-width: 60ch; line-height: 1.6 }

/* Detalhes do modelo */
dialog { border: 0; border-radius: var(--raio); max-width: min(440px, 92vw); background: var(--folha); color: var(--tinta); padding: 22px }
dialog::backdrop { background: #3f2e33b3 }
.close { position: absolute; right: 12px; top: 12px; z-index: 2; border: 0; border-radius: 50%; width: 2.4rem; height: 2.4rem; font-size: 1.6rem; background: white; color: var(--vinho) }
dialog h2 { font-size: 2rem; margin: .35rem 0 }
dialog p { line-height: 1.55 }

@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem } }
@media (max-width: 620px) {
  .shell { width: 92% }
  .catalogo-topo { align-items: start; flex-direction: column }
  .about { align-items: flex-start; flex-direction: column; gap: 1rem }
  .about img { width: 64px; height: 64px }
  .bilhete { margin: .8rem auto .2rem; width: 175px }
  .collection::before { left: 14px; right: 14px }
  .filters button { padding: .5rem .9rem }
  .grid { gap: .8rem; row-gap: 1.3rem }
  h3 { font-size: 1.05rem }
  .category { font-size: .62rem; letter-spacing: .1em }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto } .item * { transition: none !important } }
