/* ==========================================================================
   TUA HOME — estilos
   ========================================================================== */

:root {
  /* Paleta oficial */
  --marrom: #4a3426;
  --off-white: #f3eee7;
  --areia: #ddd2c5;
  --cafe: #2e241d;

  /* Derivadas */
  --branco: #ffffff;
  --texto: var(--cafe);
  --texto-suave: #6b5a4d;
  --linha: #e2d8cc;
  --areia-clara: #ebe3d9;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --raio: 18px;
  --raio-sm: 10px;
  --sombra: 0 10px 30px -12px rgba(46, 36, 29, 0.25);
  --sombra-sm: 0 4px 14px -6px rgba(46, 36, 29, 0.2);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--texto);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--marrom);
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--marrom);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--marrom);
  color: var(--off-white);
  padding: 10px 16px;
  border-radius: var(--raio-sm);
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 10vw, 120px);
}

.section--areia {
  background: var(--areia-clara);
}

.section__head {
  max-width: 640px;
  margin: 0 auto clamp(36px, 6vw, 56px);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(2rem, 5vw, 3rem);
}

.section__lead {
  margin-top: 16px;
  color: var(--texto-suave);
  font-size: 1.02rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn--primary {
  background: var(--marrom);
  color: var(--off-white);
}
.btn--primary:hover {
  background: var(--cafe);
  transform: translateY(-1px);
  box-shadow: var(--sombra-sm);
}

.btn--ghost {
  border-color: var(--marrom);
  color: var(--marrom);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--marrom);
  color: var(--off-white);
}

.btn--light {
  background: var(--off-white);
  color: var(--marrom);
}
.btn--light:hover {
  background: var(--branco);
  transform: translateY(-1px);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.header.is-scrolled,
.header.is-open {
  background: rgba(243, 238, 231, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--linha);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo img {
  height: 34px;
  width: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--marrom);
  padding-block: 6px;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--marrom);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.header.is-open .menu-toggle span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.header.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}
.header.is-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-h));
    background: var(--off-white);
    padding: 24px var(--gutter) 40px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    overflow-y: auto;
  }

  .header.is-open .nav {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    font-family: var(--serif);
    font-size: 1.6rem;
    padding: 14px 0;
    border-bottom: 1px solid var(--linha);
  }

  .nav__link::after {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 32px) 0 72px;
  background: var(--areia) url("../assets/img/background/fundo-catalogo.webp") center / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--off-white));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: min(420px, 80vw);
  height: auto;
  margin-bottom: clamp(40px, 7vw, 64px);
}

.hero__kicker {
  font-size: 0.78rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--marrom);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(1.7rem, 4.5vw, 2.7rem);
  max-width: 18ch;
}

.hero__subtitle {
  margin-top: 26px;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: var(--cafe);
  max-width: 42ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero__scroll {
  position: absolute;
  z-index: 1;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--marrom);
  border-radius: 999px;
  opacity: 0.6;
}

.hero__scroll::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--marrom);
  animation: scroll-dot 1.8s infinite;
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Conceito ---------- */
.conceito {
  display: grid;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

@media (min-width: 860px) {
  .conceito {
    grid-template-columns: 1fr 1fr;
  }
}

.conceito__media {
  position: relative;
}

.conceito__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 200px 200px var(--raio) var(--raio);
  box-shadow: var(--sombra);
}

.conceito__badge {
  position: absolute;
  right: -8px;
  bottom: 28px;
  background: var(--off-white);
  border-radius: var(--raio);
  padding: 16px 20px;
  box-shadow: var(--sombra);
  font-family: var(--serif);
  color: var(--marrom);
  font-size: 1.05rem;
  line-height: 1.3;
  max-width: 220px;
}

@media (min-width: 860px) {
  .conceito__badge {
    right: -28px;
  }
}

.conceito__text .section__title {
  margin-bottom: 20px;
}

.conceito__text p + p {
  margin-top: 14px;
}

.conceito__text > p {
  color: var(--texto-suave);
}

.pilares {
  display: grid;
  gap: 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.pilar {
  display: flex;
  gap: 16px;
  align-items: center;
}

.pilar__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--areia);
  color: var(--marrom);
}

.pilar__icon svg {
  width: 22px;
  height: 22px;
}

.pilar h3 {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--cafe);
}

.pilar h3 + p {
  margin-top: 2px;
}

.pilar p {
  font-size: 0.92rem;
  color: var(--texto-suave);
}

/* ---------- Linhas ---------- */
.linhas {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .linhas {
    grid-template-columns: repeat(3, 1fr);
  }
}

.linha {
  display: flex;
  flex-direction: column;
  background: var(--branco);
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra-sm);
  transition: transform 0.35s, box-shadow 0.35s;
}

.linha:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra);
}

.linha__media {
  background: var(--branco);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

@media (min-width: 760px) {
  .linha__media {
    aspect-ratio: 4 / 3;
  }
}

.linha__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

.linha__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 28px;
  border-top: 1px solid var(--linha);
}

.linha__name {
  font-size: 1.9rem;
}

.linha__tagline {
  font-family: var(--serif);
  color: var(--texto-suave);
  margin-top: 2px;
}

.linha__spec {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 20px 0 16px;
  padding: 14px 0;
  border-block: 1px solid var(--linha);
}

.linha__gramatura {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--marrom);
  line-height: 1;
}

.linha__material {
  font-size: 0.85rem;
  color: var(--texto-suave);
}

.linha__attrs {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.93rem;
}

.linha__attrs li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.linha__attrs li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--marrom);
  flex: none;
}

.linha__cores {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.85rem;
  color: var(--texto-suave);
}

.linha__cores .dot {
  width: 18px;
  height: 18px;
}

.linha__body .btn {
  margin-top: auto;
}

.dot {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(46, 36, 29, 0.18);
  flex: none;
}

/* ---------- Catálogo ---------- */
.filtros {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin: 0 calc(var(--gutter) * -1) 24px;
  padding-inline: var(--gutter);
  scrollbar-width: none;
}

.filtros::-webkit-scrollbar {
  display: none;
}

@media (min-width: 760px) {
  .filtros {
    justify-content: center;
    flex-wrap: wrap;
    margin-inline: 0;
    padding-inline: 0;
  }
}

.chip {
  flex: none;
  min-height: 42px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--linha);
  background: var(--branco);
  color: var(--marrom);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover {
  border-color: var(--marrom);
}

.chip[aria-pressed="true"] {
  background: var(--marrom);
  border-color: var(--marrom);
  color: var(--off-white);
}

.produtos {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

@media (max-width: 539px) {
  .produtos {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

.produto {
  display: flex;
  flex-direction: column;
  background: var(--branco);
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra-sm);
}

.produto[hidden] {
  display: none;
}

.produto__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: var(--branco);
  cursor: zoom-in;
  overflow: hidden;
}

.produto__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s, opacity 0.25s;
}

.produto__media:hover img {
  transform: scale(1.04);
}

.produto__media img.is-loading {
  opacity: 0.2;
}

.produto__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--off-white);
  color: var(--marrom);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.produto__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--linha);
}

.produto__name {
  font-size: 1.22rem;
}

.produto__desc {
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--texto-suave);
}

.seletor {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.seletor legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texto-suave);
}

.seletor legend b {
  font-weight: 500;
  color: var(--cafe);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.85rem;
  margin-left: 4px;
}

.seletor__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.swatch {
  width: 32px;
  height: 32px;
  padding: 3px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.swatch .dot {
  width: 100%;
  height: 100%;
  display: block;
}

.swatch[aria-checked="true"] {
  border-color: var(--marrom);
}

.opcao {
  min-height: 34px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--linha);
  background: transparent;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.opcao:hover {
  border-color: var(--marrom);
}

.opcao[aria-checked="true"] {
  background: var(--marrom);
  border-color: var(--marrom);
  color: var(--off-white);
}

.produto__footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.preco {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--marrom);
  line-height: 1.2;
}

.preco small {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--texto-suave);
  margin-right: 4px;
}

.catalogo__aviso {
  margin-top: 28px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--texto-suave);
}

@media (max-width: 539px) {
  .produto__body {
    padding: 12px 12px 14px;
    gap: 10px;
  }
  .produto__name {
    font-size: 1.05rem;
  }
  .preco {
    font-size: 1.15rem;
  }
  .hide-xs {
    display: none;
  }
  .opcao {
    padding: 4px 10px;
    font-size: 0.78rem;
  }
}

/* ---------- Personalize ---------- */
.bordados {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (min-width: 760px) {
  .bordados {
    grid-template-columns: repeat(6, 1fr);
  }
}

.bordado {
  margin: 0;
  text-align: center;
}

.bordado__img {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--branco);
  box-shadow: var(--sombra-sm);
  border: 4px solid var(--branco);
}

.bordado__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(2.6);
  transform-origin: 52% 49%;
}

.bordado figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.88rem;
}

.bordado figcaption .dot {
  width: 12px;
  height: 12px;
}

.galeria {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 68%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: clamp(40px, 6vw, 64px) calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter) 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--areia) transparent;
}

@media (min-width: 640px) {
  .galeria {
    grid-auto-columns: 40%;
  }
}

@media (min-width: 1000px) {
  /* 1 destaque 2x2 + 4 fotos + 2 fotos largas = grade 4x3 completa (7 fotos) */
  .galeria {
    grid-auto-flow: row dense;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    grid-auto-rows: 250px;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  .galeria__item img {
    aspect-ratio: auto;
  }

  .galeria__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .galeria__item:nth-child(6),
  .galeria__item:nth-child(7) {
    grid-column: span 2;
  }

  .galeria__item:nth-child(6) img {
    object-position: center 30%;
  }
}

.galeria__item {
  scroll-snap-align: start;
  padding: 0;
  border: 0;
  border-radius: var(--raio);
  overflow: hidden;
  background: var(--areia);
  cursor: zoom-in;
}

.galeria__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s;
}

.galeria__item:hover img {
  transform: scale(1.04);
}

/* ---------- Embalagens ---------- */
.embalagens {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

@media (max-width: 539px) {
  .embalagens {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

.embalagem {
  display: flex;
  flex-direction: column;
  background: var(--branco);
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra-sm);
}

.embalagem__media {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  background: var(--areia);
  cursor: zoom-in;
  overflow: hidden;
}

.embalagem__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.embalagem__media:hover img {
  transform: scale(1.04);
}

.embalagem__count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(46, 36, 29, 0.6);
  color: var(--off-white);
  font-size: 0.72rem;
}

.embalagem__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 20px;
}

/* preço logo abaixo da linha/seletor; botão sempre no rodapé do card */
.embalagem__acoes {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
}

.embalagem__acoes .btn {
  margin-top: auto;
}

.embalagem__name {
  font-size: 1.15rem;
}

.embalagem__desc {
  font-size: 0.85rem;
  color: var(--texto-suave);
  margin-top: 4px;
}

.embalagem__divisor {
  width: 100%;
  margin: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--linha);
}

.embalagem__seletor {
  margin-top: 12px;
}

/* Quando no lugar do preço há um texto (ex.: "Consulte disponibilidade") */
.preco.preco--texto {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Linha "Tamanho único — Cortesia" */
.preco.preco--linha {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--texto);
}

.preco.preco--linha span:last-child {
  font-weight: 500;
  color: var(--marrom);
}

@media (max-width: 539px) {
  .embalagem .preco.preco--linha {
    font-size: 0.8rem;
  }
}

@media (max-width: 539px) {
  .embalagem__body {
    padding: 12px;
  }
  .embalagem__name {
    font-size: 1rem;
  }
  .embalagem__desc {
    display: none;
  }
  .embalagem .preco {
    font-size: 1.15rem;
  }
  .embalagem .preco.preco--texto {
    font-size: 0.8rem;
  }
}

/* ---------- Como pedir ---------- */
.passos {
  display: grid;
  gap: 16px;
  counter-reset: passo;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 760px) {
  .passos {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.passo {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--raio);
  background: var(--off-white);
  border: 1px solid var(--linha);
}

.passo::before {
  counter-increment: passo;
  content: "0" counter(passo);
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--areia);
  -webkit-text-stroke: 1px var(--marrom);
  margin-bottom: 14px;
}

.passo h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.passo p {
  font-size: 0.93rem;
  color: var(--texto-suave);
}

/* ---------- CTA final ---------- */
.cta {
  background: var(--marrom);
  color: var(--off-white);
  text-align: center;
  padding-block: clamp(64px, 10vw, 104px);
  position: relative;
  overflow: hidden;
}

.cta__flor {
  position: absolute;
  width: 360px;
  right: -60px;
  bottom: -40px;
  opacity: 0.08;
  pointer-events: none;
}

.cta h2 {
  color: var(--off-white);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  max-width: 20ch;
  margin-inline: auto;
}

.cta p {
  margin: 16px auto 32px;
  max-width: 48ch;
  color: var(--areia);
}

/* ---------- Rodapé ---------- */
.footer {
  background: var(--cafe);
  color: var(--areia);
  padding: 56px 0 28px;
  font-size: 0.92rem;
}

.footer__grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer__logo {
  width: 150px;
  margin-bottom: 16px;
}

.footer__tagline {
  font-family: var(--serif);
  color: var(--off-white);
}

.footer h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 16px;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer__list a:hover {
  color: var(--off-white);
}

.footer__list svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.footer__bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(221, 210, 197, 0.15);
  font-size: 0.8rem;
  text-align: center;
  color: rgba(221, 210, 197, 0.7);
}

/* ---------- Botão "Minha lista" (cabeçalho) ---------- */
.lista-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--marrom);
  border-radius: 999px;
  background: transparent;
  color: var(--marrom);
  font-size: 0.88rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.lista-btn:hover {
  background: var(--marrom);
  color: var(--off-white);
}

.lista-btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.lista-btn__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--marrom);
  color: var(--off-white);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}

.lista-btn:hover .lista-btn__count {
  background: var(--off-white);
  color: var(--marrom);
}

@media (min-width: 961px) {
  .nav {
    margin-left: auto;
  }
}

@media (max-width: 960px) {
  .lista-btn {
    margin-left: auto;
    width: 44px;
    height: 44px;
    min-height: 0;
    padding: 0;
    justify-content: center;
    border: 0;
  }

  .lista-btn:hover {
    background: transparent;
    color: var(--marrom);
  }

  .lista-btn svg {
    width: 24px;
    height: 24px;
  }

  .lista-btn__label {
    display: none;
  }

  .lista-btn__count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.66rem;
  }

  .lista-btn:hover .lista-btn__count {
    background: var(--marrom);
    color: var(--off-white);
  }

  .header__inner {
    gap: 8px;
  }
}

/* ---------- Painel "Minha lista" ---------- */
.lista {
  position: fixed;
  inset: 0;
  margin: 0 0 0 auto;
  width: min(440px, 100vw);
  max-width: 100vw;
  height: 100%;
  max-height: 100%;
  padding: 0;
  border: 0;
  background: var(--off-white);
  color: var(--texto);
  box-shadow: -12px 0 40px -12px rgba(46, 36, 29, 0.35);
}

.lista[open] {
  animation: lista-entrar 0.3s ease;
}

@keyframes lista-entrar {
  from {
    transform: translateX(100%);
  }
  to {
    transform: none;
  }
}

.lista::backdrop {
  background: rgba(46, 36, 29, 0.55);
  backdrop-filter: blur(2px);
}

.lista__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lista__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--linha);
}

.lista__head h2 {
  font-size: 1.6rem;
}

.lista__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--marrom);
  cursor: pointer;
}

.lista__close:hover {
  background: var(--areia-clara);
}

.lista__close svg {
  width: 22px;
  height: 22px;
}

.lista__vazia {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 24px;
  text-align: center;
  color: var(--texto-suave);
  font-size: 0.92rem;
}

.lista__vazia svg {
  width: 48px;
  height: 48px;
  color: var(--areia);
  margin-bottom: 8px;
}

.lista__vazia-titulo {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--marrom);
}

.lista__vazia .btn {
  margin-top: 16px;
}

.lista__conteudo {
  flex: 1;
  overflow-y: auto;
  padding: 4px 24px 24px;
}

.lista__itens {
  list-style: none;
  margin: 0;
  padding: 0;
}

.item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--linha);
}

.item__img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--raio-sm);
  background: var(--branco);
}

.item__nome {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--marrom);
}

.item__detalhe,
.item__unit {
  font-size: 0.8rem;
  color: var(--texto-suave);
  line-height: 1.5;
}

.item__acoes {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.item__subtotal {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--marrom);
}

.item__remover {
  margin-left: auto;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--texto-suave);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
}

.qtd {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--linha);
  border-radius: 999px;
  background: var(--branco);
}

.qtd button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--marrom);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.qtd button:hover {
  background: var(--areia-clara);
}

.qtd span {
  min-width: 22px;
  text-align: center;
  font-size: 0.9rem;
}

.lista__extra {
  margin-top: 24px;
}

.item__perso {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--cafe);
}

.item__editar {
  padding: 0;
  border: 0;
  background: none;
  color: var(--texto-suave);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
}

.campo {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--cafe);
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--linha);
  border-radius: var(--raio-sm);
  background: var(--branco);
  color: var(--texto);
  font: inherit;
  font-size: 16px; /* evita zoom automático no iPhone */
}

.campo textarea {
  min-height: 76px;
  resize: vertical;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: 2px solid var(--marrom);
  outline-offset: 0;
  border-color: transparent;
}

.lista__footer {
  display: grid;
  gap: 10px;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linha);
  background: var(--branco);
}

.lista__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--texto-suave);
}

.lista__total strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--marrom);
}

.lista__total-nota {
  margin-top: -8px;
  text-align: right;
  font-size: 0.78rem;
  color: var(--texto-suave);
}

.lista__limpar {
  justify-self: center;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: var(--texto-suave);
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Personalizar toalha (janela ao adicionar) ---------- */
.perso {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--raio);
  background: var(--off-white);
  color: var(--texto);
  box-shadow: var(--sombra);
  overflow: auto;
}

.perso::backdrop {
  background: rgba(46, 36, 29, 0.55);
  backdrop-filter: blur(2px);
}

.perso__head {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--linha);
}

.perso__img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--raio-sm);
  background: var(--branco);
}

.perso__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--texto-suave);
}

.perso__titulo {
  font-size: 1.25rem;
}

.perso__detalhe {
  font-size: 0.82rem;
  color: var(--texto-suave);
}

.perso__head .lista__close {
  align-self: start;
}

.perso__body {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.perso__cores {
  gap: 8px;
}

.perso .swatch {
  width: 38px;
  height: 38px;
}

/* opção "Sem bordado": círculo branco riscado */
.swatch--nenhum .dot {
  position: relative;
  overflow: hidden;
  background: var(--branco);
}

.swatch--nenhum .dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -20%;
  width: 1.5px;
  height: 140%;
  margin-left: -0.75px;
  background: var(--texto-suave);
  transform: rotate(45deg);
}

.campo .campo__iniciais {
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.campo .campo__iniciais::placeholder {
  letter-spacing: normal;
  text-transform: none;
}

.campo__ajuda {
  font-size: 0.75rem;
  color: var(--texto-suave);
}

.perso__qtd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--cafe);
}

.perso__footer {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linha);
  background: var(--branco);
}

/* no celular abre como uma gaveta de baixo para cima */
@media (max-width: 539px) {
  .perso {
    width: 100vw;
    max-width: 100vw;
    max-height: 90dvh;
    margin: auto 0 0;
    border-radius: var(--raio) var(--raio) 0 0;
  }

  .perso[open] {
    animation: perso-subir 0.25s ease;
  }
}

@keyframes perso-subir {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}

/* ---------- Aviso de item adicionado ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: var(--cafe);
  color: var(--off-white);
  font-size: 0.86rem;
  box-shadow: var(--sombra);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.toast span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast button {
  flex: none;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--off-white);
  color: var(--marrom);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

/* ---------- Modal (lightbox) ---------- */
.lightbox {
  width: min(92vw, 900px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--raio);
  background: var(--branco);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(46, 36, 29, 0.75);
  backdrop-filter: blur(4px);
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: var(--branco);
}

.lightbox__caption {
  padding: 12px 56px 14px 20px;
  font-family: var(--serif);
  color: var(--marrom);
  border-top: 1px solid var(--linha);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(243, 238, 231, 0.92);
  color: var(--marrom);
  cursor: pointer;
  box-shadow: var(--sombra-sm);
}

.lightbox__close {
  top: 12px;
  right: 12px;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: 12px;
}

.lightbox__nav--next {
  right: 12px;
}

.lightbox__nav[hidden] {
  display: none;
}

.lightbox svg {
  width: 20px;
  height: 20px;
}

/* ---------- Animações de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Página Cuidados (cuidados.html)
   ========================================================================== */
.cuidados-hero {
  padding: calc(var(--header-h) + clamp(40px, 7vw, 80px)) 0 clamp(56px, 8vw, 96px);
}

.cuidados-hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 860px) {
  .cuidados-hero__grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

.cuidados-hero__titulo {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin-bottom: 12px;
}

.cuidados-hero__subtitulo {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  color: var(--marrom);
  margin-bottom: 20px;
}

.cuidados-hero__texto > p:not(.cuidados-hero__subtitulo) {
  color: var(--texto-suave);
}

.cuidados-hero__texto > p + p:not(.cuidados-hero__subtitulo) {
  margin-top: 14px;
}

.cuidados-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--raio);
  box-shadow: var(--sombra);
}

/* no celular a foto vem antes do texto */
@media (max-width: 859px) {
  .cuidados-hero__media {
    order: -1;
  }
}

.dicas {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: dica;
}

@media (min-width: 760px) {
  .dicas {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.dica {
  counter-increment: dica;
  padding: 28px 24px;
  border-radius: var(--raio);
  background: var(--branco);
  box-shadow: var(--sombra-sm);
}

.dica::before {
  content: "0" counter(dica);
  display: block;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--areia);
  -webkit-text-stroke: 1px var(--marrom);
}

.dica h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.dica p {
  font-size: 0.93rem;
  color: var(--texto-suave);
}

.dica p + p {
  margin-top: 10px;
}

.cuidados-fechamento p.cuidados-assinatura {
  margin: -12px auto 28px;
  font-family: var(--serif);
  color: var(--off-white);
}

.cuidados-assinatura strong {
  font-weight: 600;
}

.cuidados-nota {
  padding: 28px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--texto-suave);
}

.cuidados-nota p {
  max-width: 720px;
  margin: 0 auto;
}

/* bloco com QR Code: só na impressão */
.cuidados-qr {
  display: none;
}

/* ---------- Impressão (cartão de cuidados em A4) ---------- */
@media print {
  @page {
    size: A4;
    margin: 12mm 14mm;
  }

  .pagina-cuidados {
    background: #fff;
    font-size: 10pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .pagina-cuidados .header,
  .pagina-cuidados .footer,
  .pagina-cuidados .skip-link,
  .pagina-cuidados .cta__flor,
  #imprimir {
    display: none !important;
  }

  .pagina-cuidados .container {
    max-width: none;
    padding: 0;
  }

  .cuidados-hero {
    padding: 0 0 5mm;
  }

  .cuidados-hero__grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 7mm;
  }

  .cuidados-hero__media {
    order: 0;
  }

  .cuidados-hero__media img {
    aspect-ratio: auto;
    max-height: 58mm;
    box-shadow: none;
  }

  .cuidados-hero__titulo {
    font-size: 22pt;
    margin-bottom: 1mm;
  }

  .cuidados-hero__subtitulo {
    font-size: 12pt;
    margin-bottom: 3mm;
  }

  .cuidados-hero__texto > p:not(.cuidados-hero__subtitulo) {
    font-size: 9pt;
    line-height: 1.45;
  }

  .cuidados-hero__texto > p + p:not(.cuidados-hero__subtitulo) {
    margin-top: 2mm;
  }

  .pagina-cuidados .section {
    padding: 0;
    background: none;
  }

  .dicas {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5mm;
  }

  .dica {
    padding: 3.5mm 4.5mm;
    border: 0.3mm solid var(--linha);
    box-shadow: none;
    break-inside: avoid;
  }

  .dica::before {
    margin-bottom: 1.5mm;
    font-size: 16pt;
  }

  .dica h3 {
    font-size: 11pt;
    margin-bottom: 1.5mm;
  }

  .dica p {
    font-size: 8.5pt;
    line-height: 1.4;
  }

  .dica p + p {
    margin-top: 1.5mm;
  }

  .cuidados-fechamento {
    padding: 5mm 0 0;
    background: none;
    color: var(--marrom);
    break-inside: avoid;
  }

  .cuidados-fechamento h2 {
    font-size: 14pt;
    color: var(--marrom);
    max-width: none;
  }

  .cuidados-fechamento p,
  .cuidados-fechamento p.cuidados-assinatura {
    margin: 2mm auto;
    max-width: none;
    font-size: 9pt;
    color: var(--texto);
  }

  .cuidados-nota {
    padding: 2mm 0 0;
    font-size: 7.5pt;
  }

  .cuidados-qr {
    display: flex;
    align-items: center;
    gap: 5mm;
    margin-top: 4mm;
    padding-top: 4mm;
    border-top: 0.3mm solid var(--linha);
    font-size: 8.5pt;
    color: var(--texto);
    break-inside: avoid;
  }

  .cuidados-qr img:first-child {
    width: 22mm;
    height: 22mm;
  }

  .cuidados-qr .cuidados-qr__logo {
    width: 28mm;
    height: auto;
    margin-left: auto;
  }
}
