/* Cabeçalho compacto, aviso fechável, secção da coleção, guia de aromas e formulário em passos. */

/* ---- aviso e cabeçalho ---- */
.announce { position: relative; padding: 6px 44px; font-size: .98rem; }
.announce-x { all: unset; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); cursor: pointer; font-size: 1.4rem; line-height: 1; padding: 6px 10px; color: var(--bordo); }
.announce-x:focus-visible { outline: 2px solid var(--focus); }
.bar { min-height: 54px; }
.mark { width: 128px; }
.search, .search-ico { display: none !important; }
.cart-link { min-height: 40px; }
.hero { height: calc(100svh - 92px); }
@media (min-width: 1020px) {
  .bar { padding-top: 8px; row-gap: 0; }
  .mark { width: 150px; }
  .nav { padding: 2px 0 8px; gap: 30px; }
}

/* ---- coleção: mais baixa, com fundo aconchegante ---- */
.collection-story { position: relative; padding: 40px 0 !important; background: var(--beige); overflow: hidden; }
.collection-story::before { content: ""; position: absolute; inset: 0; opacity: .22; filter: saturate(.85); }
.collection-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(244, 237, 227, .92), rgba(244, 237, 227, .6)); }
.collection-story > .wrap { position: relative; z-index: 1; }
.collection-story .collection-layout { gap: 28px; align-items: center; }
.collection-story .collection-cover { max-height: 360px; overflow: hidden; }
.collection-story .collection-cover img { max-height: 360px; width: 100%; object-fit: cover; }
.collection-story h2 { margin-bottom: .2em; }
.collection-story .prose { font-size: .9rem; margin-bottom: .8em; }
.collection-story .collection-details { margin-top: 16px; }
.collection-story .collection-details img { max-height: 110px; object-fit: cover; }

/* ---- guia de aromas: uma linha por aroma ---- */
.aroma-page { padding-top: 24px; }
.aroma-top { text-align: center; margin-bottom: 18px; }
.aroma-top h1 { margin-bottom: .4em; }
.aroma-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; position: sticky; top: 70px; background: var(--bg); padding: 10px 0; z-index: 5; border-bottom: 1px solid var(--line); }
.aroma-jump a { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid transparent; padding: 4px 0; }
.aroma-jump a:hover { border-bottom-color: var(--bordo); color: var(--bordo); }
.aroma-row { display: grid; gap: 18px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: center; scroll-margin-top: 130px; }
@media (min-width: 760px) { .aroma-row { grid-template-columns: 5fr 7fr; gap: 44px; } .aroma-row.flip .aroma-pic { order: 2; } }
.aroma-pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--beige); }
.aroma-pic img { width: 100%; height: 100%; object-fit: cover; }
.aroma-text h2 { margin-bottom: .2em; }
.aroma-text .eyebrow { color: var(--bordo); margin-bottom: 8px; }
.aroma-text p { max-width: 52ch; margin-bottom: .8em; }
.aroma-prods { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.aroma-prods a { display: inline-block; border: 1px solid var(--rose); background: var(--rose-soft); color: var(--bordo); font-size: .72rem; letter-spacing: .06em; padding: 6px 14px; }
.aroma-prods a:hover { background: var(--bordo); color: #fff; border-color: var(--bordo); }

/* ---- eventos: formulário em passos ---- */
.event-page { padding-top: 20px; padding-bottom: 40px; }
.event-intro { display: block !important; margin-bottom: 14px; }
.event-intro img { display: none; }
.event-intro h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: .2em; }
.event-intro p { margin-bottom: .4em; max-width: 60ch; }
.event-form[data-steps] { max-width: 640px; margin: 0 auto; padding: 22px 26px; }
.steps-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.steps-bar span { flex: 1; height: 2px; background: var(--line); }
.steps-bar span.on { background: var(--bordo); }
.steps-label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.event-form.is-stepped .form-heading { display: none; }
.event-form.is-stepped .form-section { display: none; border: 0; padding: 0; margin: 0; }
.event-form.is-stepped .form-section legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.event-form.is-stepped .form-section.on { display: block; }
.event-form.is-stepped .event-consent, .event-form.is-stepped .form-submit { display: none; }
.event-form.is-stepped.last .event-consent { display: flex; }
.event-form.is-stepped.last .form-submit { display: block; }
.event-form.is-stepped.last .step-nav [data-next] { display: none; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.event-form .field { margin-bottom: 14px; }
.event-form textarea { min-height: 84px; }

.foot a.ig-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.foot a.ig-link:hover span { text-decoration: underline; }
.ig-ico { flex-shrink: 0; color: var(--bordo); }

/* Coleção compacta: texto e uma imagem baixa, sem miniaturas */
.collection-story { padding: 28px 0 !important; }
.collection-story .collection-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; }
@media (min-width: 860px) { .collection-story .collection-layout { grid-template-columns: 5fr 6fr; gap: 40px; } }
.collection-story .collection-cover { display: block; width: 100%; height: 230px; max-height: none; position: relative; overflow: hidden; }
.collection-story .collection-cover img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center 40%; }
.collection-story h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.collection-story .collection-copy p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 48ch; }

/* Coleção: fundo rosa velho suave e imagem centrada */
.collection-story { background: #ecd9d2; }
.collection-story::before { opacity: .14; }
.collection-story::after { background: linear-gradient(90deg, rgba(236, 217, 210, .94), rgba(236, 217, 210, .78)); }
.collection-story .collection-cover { align-self: center; }
.collection-story .collection-cover img { object-position: 50% 50%; }
.collection-story .collection-copy { align-self: center; }

/* ===== Cabeçalho simples: Loja, Aromas, logo, Eventos, Sobre ===== */
.hbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 56px; }
.hbar .logo { grid-column: 2; grid-row: 1; justify-self: center; }
.hbar .menu { grid-column: 1; grid-row: 1; justify-self: start; }
.hbar .hnav { display: none; }
.hbar .hright { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 24px; }
.htools { display: flex; align-items: center; }
.hnav a { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.hnav a:hover, .hnav a[aria-current="page"] { border-bottom-color: var(--ink); }
@media (min-width: 900px) {
  .hbar { min-height: 64px; }
  .hbar .menu { display: none; }
  .hbar .hnav { display: flex; gap: 34px; }
  .hbar .hnav.l { grid-column: 1; grid-row: 1; justify-self: end; padding-right: 20px; }
  .hbar .hright { justify-self: start; padding-left: 20px; gap: 34px; }
  .hbar .hright .htools { margin-left: 0; }
  .mark { width: 150px; }
  .hero { height: calc(100svh - 96px); }
}

/* ===== Navbar editorial: itens nas pontas, logo ao centro; no topo só o logo, os itens surgem ao descer ===== */
@media (min-width: 900px) {
  .site-header .hbar { max-width: none; padding: 0 44px; min-height: 76px; }
  .hbar .hnav.l { justify-self: start; padding-right: 0; }
  .hbar .hright { justify-self: end; padding-left: 0; width: 100%; justify-content: flex-end; }
  .mark { width: 168px; }
  .hnav a { font-size: .72rem; letter-spacing: .24em; }
}
.site-header .hnav, .site-header .htools { transition: opacity .45s ease, visibility .45s; }
.site-header.at-top .hnav, .site-header.at-top .htools { opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .site-header .hnav, .site-header .htools { transition: none; } }

/* ===== Coleção: grelha de produtos em fundo claro e texto centrado ===== */
.collection-story { position: relative; padding: 0 !important; background: var(--paper); overflow: hidden; min-height: 340px; display: grid; align-items: center; }
.collection-story::before, .collection-story::after { content: none; }
.collection-bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 6px; }
@media (min-width: 760px) { .collection-bg { grid-template-columns: repeat(4, 1fr); } }
.collection-bg img { width: 100%; height: 100%; object-fit: cover; }
.collection-bg::after { content: ""; position: absolute; inset: 0; background: rgba(250, 246, 239, .86); }
.collection-center { position: relative; z-index: 2; text-align: center; padding-top: 56px; padding-bottom: 56px; max-width: 760px; }
.collection-center h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: .25em; }
.collection-center .prose { margin: 0 auto 1.2em; max-width: 52ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.collection-center .eyebrow { color: var(--muted); }
@media (max-width: 759px) { .collection-bg img:nth-child(n+5) { display: none; } }

/* Imagens da coleção bem visíveis; o texto assenta num cartão creme */
.collection-bg::after { background: rgba(250, 246, 239, .12); }
.collection-bg img { filter: saturate(.95); }
.collection-story { min-height: 440px; padding: 40px 0 !important; }
.collection-center { background: rgba(250, 246, 239, .93); padding: 40px 44px; max-width: 640px; box-shadow: 0 10px 40px rgba(67, 52, 42, .12); margin: 0 var(--gutter); }
@media (min-width: 720px) { .collection-center { margin: 0 auto; } }
@media (max-width: 759px) { .collection-story { min-height: 520px; } .collection-center { padding: 28px 22px; } }

/* ===== Guia de aromas: cabeçalho curto com textura subtil, sem filtros ===== */
.aroma-jump { display: none; }
.aroma-page { padding-top: 0; }
.aroma-top { position: relative; margin: 0 calc(var(--gutter) * -1) 8px; padding: 34px var(--gutter) 30px; text-align: center; overflow: hidden; background: var(--beige); }
.aroma-top::before { content: ""; position: absolute; inset: 0; background: url(/media/ig/DeIDwiIDv1h_04-960.webp) center 40% / cover; opacity: .16; }
.aroma-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244, 237, 227, .55), rgba(244, 237, 227, .9)); }
.aroma-top > * { position: relative; z-index: 1; }
.aroma-top h1 { margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.aroma-top .eyebrow { margin-bottom: 6px; }
@media (min-width: 1380px) { .aroma-top { margin-left: 0; margin-right: 0; } }
.page.aroma-page { padding-top: 0 !important; }
.aroma-top { margin-top: 0; }

/* ===== Navbar, aviso e rodapé: amarelos suaves, beges e cremes (sem rosa nem bordô) ===== */
:root { --butter: #f4ebd0; --butter-2: #efe3bf; --cream-y: #faf5e6; }
.announce { background: var(--butter-2); color: var(--brown); }
.announce-x { color: var(--brown); }
.site-header { background: var(--cream-y); border-bottom-color: #eadfc0; }
.cart-count { background: var(--brown); color: #fffaf0; }
.site-footer { background: var(--butter); border-top: 1px solid #eadfc0; }
.site-footer .ig-ico { color: var(--brown); }
.site-footer .foot h3, .site-footer .legal, .brand p { color: #8a7b5c; }
.hnav a:hover, .hnav a[aria-current="page"] { border-bottom-color: var(--brown); }

/* Grelha da coleção a subir devagar, mostrando imagens diferentes */
.collection-bg { overflow: hidden; display: block; }
.collection-track { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; gap: 6px; animation: subir 60s linear infinite; will-change: transform; }
@media (min-width: 760px) { .collection-track { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; } }
.collection-track img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes subir { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 3px)); } }
@media (prefers-reduced-motion: reduce) { .collection-track { animation: none; } }
@media (max-width: 759px) { .collection-bg img:nth-child(n+5) { display: block; } }

/* ===== Hero como chamada para ação: várias imagens, logo, uma frase e um botão ===== */
.hero .caption { display: none; }
.hero .slide::after { background: rgba(48, 36, 29, .38); }
.hero-cta { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 0 var(--gutter) 40px; gap: 18px; }
.hero-logo { display: block; width: min(300px, 70vw); aspect-ratio: 237 / 59.8; background: #fff; -webkit-mask: url(/img/logo-full.svg) center / contain no-repeat; mask: url(/img/logo-full.svg) center / contain no-repeat; }
.hero-cta p { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 300; margin: 0; max-width: 24ch; text-shadow: 0 1px 18px rgba(0, 0, 0, .25); }
.hero-cta .btn { background: #fff; color: var(--ink); border-color: #fff; }
.hero-cta .btn:hover { background: var(--butter); color: var(--ink); border-color: var(--butter); }
.hero .hero-cta p { display: block; }
.hero .slide::after { background: rgba(48, 36, 29, .46); }

/* ===== Página inicial: o cabeçalho só surge depois de descer; hero com logo grande ===== */
.is-home .site-header { position: fixed; top: 0; left: 0; right: 0; transition: opacity .4s ease, visibility .4s, background .3s; }
.is-home .site-header.at-top { opacity: 0; visibility: hidden; pointer-events: none; }
.is-home .hero { height: calc(100svh - 40px); min-height: 520px; }
.hero-logo { width: min(620px, 82vw); }
.hero-cta { gap: 26px; }
.hero-cta p { max-width: 30ch; font-size: clamp(1.35rem, 5vw, 1.7rem); line-height: 1.25; }
@media (min-width: 900px) { .hero-cta p { max-width: none; white-space: nowrap; font-size: 2rem; } .hero-logo { width: min(720px, 60vw); } }
/* Telemóvel: o menu e o cesto ficam sempre acessíveis, em branco por cima da foto */
@media (max-width: 899px) {
  .is-home .site-header.at-top { opacity: 1; visibility: visible; pointer-events: auto; background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
  .is-home .site-header.at-top .logo { opacity: 0; visibility: hidden; }
  .is-home .site-header.at-top .menu, .is-home .site-header.at-top .htools { opacity: 1; visibility: visible; color: #fff; }
  .is-home .site-header.at-top summary svg, .is-home .site-header.at-top .cart-link svg { filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .35)); }
}
@media (max-width: 899px) {
  .announce { font-size: .86rem; padding: 7px 38px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .is-home.has-ann .site-header.at-top { top: 34px; }
  .is-home .hero { height: calc(100svh - 34px); }
}

/* Hero mais discreto */
.hero-logo { width: min(300px, 62vw); }
.hero-cta { gap: 18px; }
.hero-cta p { font-size: clamp(1.1rem, 4.2vw, 1.3rem); }
@media (min-width: 900px) { .hero-logo { width: min(440px, 40vw); } .hero-cta p { font-size: 1.5rem; } }

/* ===== Instagram: chamada para seguir ===== */
.insta-cta { padding: 56px 0 64px; text-align: center; background: var(--cream-y); }
.insta-cta h2 { margin-bottom: 22px; }
.insta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 0 auto 26px; max-width: 980px; }
@media (min-width: 760px) { .insta-grid { grid-template-columns: repeat(4, 1fr); } }
.insta-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .3s; }
.insta-grid:hover img { opacity: .85; }
.insta-cta .btn { gap: 10px; }
.insta-cta .btn svg { flex-shrink: 0; }
.insta-grid img { height: auto; aspect-ratio: 1 / 1; }

/* Fora da página inicial a navegação está sempre visível */
body:not(.is-home) .site-header.at-top .hnav, body:not(.is-home) .site-header.at-top .htools { opacity: 1; visibility: visible; pointer-events: auto; }

/* ===== Guia de aromas: todos os aromas à vista numa grelha; o detalhe aparece por baixo ===== */
.aroma-top { padding: 22px var(--gutter) 18px; }
.aroma-sub { margin: .5em 0 0; color: var(--muted); }
.aroma-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px auto 0; max-width: 1100px; }
@media (min-width: 760px) { .aroma-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
.aroma-tile { all: unset; cursor: pointer; display: block; text-align: center; }
.aroma-tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.aroma-thumb { display: block; aspect-ratio: 1; overflow: hidden; background: var(--beige); border: 2px solid transparent; transition: border-color .25s; }
.aroma-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.aroma-tile:hover img { transform: scale(1.04); }
.aroma-tile.on .aroma-thumb { border-color: var(--brown); }
.aroma-name { display: block; font-family: var(--serif); font-size: 1.15rem; margin-top: 8px; color: var(--muted); }
.aroma-tile.on .aroma-name { color: var(--ink); }
.aroma-details { max-width: 1100px; margin: 22px auto 40px; }
.aroma-detail { display: grid; gap: 14px 40px; padding: 24px; background: var(--paper); border: 1px solid var(--line); }
@media (min-width: 760px) { .aroma-detail { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 28px 34px; } }
.aroma-detail h2 { margin: 0 0 .2em; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.aroma-detail p { margin: 0; max-width: 52ch; }
.aroma-detail .eyebrow { color: var(--brown); }
.js .aroma-detail { display: none; }
.js .aroma-detail.on { display: grid; }

/* ===== Paleta revista: marfim, areia, taupe quente, castanho, com bordô só em destaques ===== */
:root {
  --bg: #f7f2ea;
  --paper: #fcf9f4;
  --beige: #eee5d8;
  --sand: #eee5d8;
  --beige-2: #e4d8c6;
  --line: #e3d9c9;
  --ink: #3a2f28;
  --brown: #5d4a3d;
  --muted: #85766a;
  --rose-soft: #efe0d9;
  --butter: #ece2d3;
  --butter-2: #efe6d8;
  --cream-y: #faf6ef;
}
.announce { background: var(--butter-2); color: var(--brown); }
.site-header { background: var(--cream-y); border-bottom: 1px solid var(--line); }
.site-footer { background: var(--butter); border-top: 1px solid var(--line); }
.site-footer .foot h3, .site-footer .legal, .brand p { color: var(--muted); }
.insta-cta { background: var(--paper); }
.collection-story { background: var(--beige); }
