  :root {
    --branco: #FFFFFF;
    --rosa-50: #FFF6FA;
    --rosa-100: #FCE8F0;
    --rosa-200: #F5D0DF;
    --rosa-300: #EBAFC7;
    --framboesa: #A3305C;
    --framboesa-escura: #86234A;
    --ameixa: #3B1F2C;
    --ameixa-suave: #6E5562;
    --linha: rgba(59, 31, 44, .14);
    --serif: "Marcellus", "Iowan Old Style", Georgia, serif;
    --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    --raio: 18px;
    --largura: 1180px;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 88px; }
  body {
    margin: 0;
    background: var(--branco);
    color: var(--ameixa);
    font: 400 17px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  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: 400; margin: 0; letter-spacing: -.005em; }
  p { margin: 0; }
  .wrap { width: min(var(--largura), 100% - 32px); margin-inline: auto; }
  :focus-visible { outline: 3px solid var(--framboesa); outline-offset: 3px; border-radius: 6px; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  /* pesponto: a linha de costura que acompanha a marca */
  .pesponto {
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--framboesa) 0 9px, transparent 9px 16px);
    opacity: .55;
  }

  /* ---------- botões ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 22px;
    border-radius: 999px; border: 1.5px solid transparent;
    font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  }
  .btn svg { width: 20px; height: 20px; flex: none; }
  .btn-principal { background: var(--framboesa); color: var(--branco); }
  .btn-principal:hover { background: var(--framboesa-escura); }
  .btn-contorno { border-color: var(--ameixa); color: var(--ameixa); background: transparent; }
  .btn-contorno:hover { background: var(--ameixa); color: var(--branco); }

  /* ---------- topo ---------- */
  .aviso {
    background: var(--ameixa); color: var(--rosa-100);
    font-size: .875rem; text-align: center; padding: 8px 16px;
  }
  .aviso a { color: var(--branco); font-weight: 600; text-underline-offset: 3px; }
  .cabecalho {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--linha);
  }
  .cabecalho .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
  .marca img { height: 50px; width: auto; }
  .menu { display: flex; align-items: center; gap: 28px; }
  .menu a { text-decoration: none; font-weight: 500; }
  .menu a:not(.btn):hover { color: var(--framboesa); }
  .menu .btn { min-height: 42px; padding: 9px 18px; }
  @media (max-width: 760px) {
    .menu a:not(.btn) { display: none; }
    .menu .btn span { display: none; }
    .menu .btn { padding: 9px 12px; }
    .marca img { height: 40px; }
  }

  /* ---------- abertura ---------- */
  .abertura { background: var(--rosa-100); padding: 64px 0 72px; overflow: hidden; }
  .abertura .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
  .abertura h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); line-height: 1.06; max-width: 13ch; }
  .abertura .texto > p { margin-top: 22px; font-size: 1.125rem; max-width: 46ch; color: var(--ameixa); }
  .acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
  .retrato { margin: 0; justify-self: center; position: relative; width: min(100%, 360px); }
  .retrato .moldura { position: relative; }
  .retrato .moldura::before {
    content: ""; position: absolute; inset: -14px;
    border: 2px dashed rgba(163, 48, 92, .6);
    border-radius: 999px 999px 30px 30px;
    pointer-events: none;
  }
  .retrato img {
    width: 100%; aspect-ratio: 3 / 4.2; object-fit: cover; object-position: 50% 20%;
    border-radius: 999px 999px 18px 18px; background: var(--rosa-200);
  }
  .retrato figcaption { margin-top: 26px; text-align: center; font-size: .95rem; color: var(--ameixa-suave); }
  .retrato figcaption strong { display: block; font: 400 1.35rem/1.2 var(--serif); color: var(--ameixa); }
  @media (max-width: 860px) {
    .abertura { padding: 36px 0 44px; }
    .abertura .wrap { grid-template-columns: 1fr; gap: 30px; }
    .retrato { justify-self: start; display: flex; align-items: center; gap: 18px; width: auto; }
    .retrato .moldura { width: 92px; flex: none; }
    .retrato .moldura::before { inset: -6px; border-width: 1.5px; }
    .retrato img { border-radius: 999px 999px 12px 12px; }
    .retrato figcaption { margin: 0; text-align: left; }
  }

  /* ---------- vitrine ---------- */
  .secao { padding: 72px 0; }
  .secao-topo { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 24px; margin-bottom: 30px; }
  .secao h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; }
  .filtros { display: flex; flex-wrap: wrap; gap: 8px; }
  .filtros button {
    border: 1.5px solid var(--rosa-300); background: var(--branco); border-radius: 999px;
    padding: 8px 16px; min-height: 42px; font-weight: 500; cursor: pointer;
  }
  .filtros button:hover { border-color: var(--framboesa); }
  .filtros button[aria-pressed="true"] { background: var(--ameixa); border-color: var(--ameixa); color: var(--branco); }
  .grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; }
  @media (max-width: 560px) {
    .secao { padding: 48px 0; }
    .grade { grid-template-columns: 1fr 1fr; gap: 14px; }
  }

  .peca { display: flex; flex-direction: column; background: var(--branco); border: 1px solid var(--rosa-200); border-radius: var(--raio); overflow: hidden; }
  .peca-foto { position: relative; display: block; padding: 0; border: 0; background: var(--rosa-100); cursor: pointer; }
  .peca-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
  .peca-foto .sem-foto { aspect-ratio: 4 / 5; display: grid; place-items: center; }
  .peca-foto .sem-foto img { width: 46%; aspect-ratio: auto; opacity: .5; }
  .selo {
    position: absolute; left: 10px; top: 10px;
    background: var(--branco); color: var(--ameixa);
    border-radius: 999px; padding: 4px 11px; font-size: .8rem; font-weight: 600;
  }
  .selo.destaque { background: var(--framboesa); color: var(--branco); }
  .peca-info { position: relative; flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 16px; background: var(--rosa-50); }
  .peca-info::before {
    content: ""; position: absolute; left: 12px; right: 12px; top: 7px; height: 1.5px;
    background: repeating-linear-gradient(90deg, rgba(163, 48, 92, .45) 0 7px, transparent 7px 12px);
  }
  .peca h3 { font-size: 1.2rem; line-height: 1.25; }
  .peca h3 button { all: unset; cursor: pointer; }
  .peca h3 button:hover { color: var(--framboesa); }
  .peca h3 button:focus-visible { outline: 3px solid var(--framboesa); outline-offset: 2px; }
  .preco { font-weight: 700; font-size: 1.05rem; }
  .preco.consulta { font-weight: 500; color: var(--ameixa-suave); font-size: .95rem; }
  .peca .btn { margin-top: auto; width: 100%; min-height: 46px; padding: 10px 14px; }
  .peca .preco { margin-bottom: 10px; }
  .peca.esgotada .peca-foto img { filter: saturate(.6); opacity: .8; }
  @media (max-width: 560px) {
    .peca h3 { font-size: 1.02rem; }
    .peca-info { padding: 16px 12px 12px; }
    .peca .btn { font-size: .92rem; gap: 7px; }
    .peca .btn svg { width: 17px; height: 17px; }
  }

  .estado { grid-column: 1 / -1; background: var(--rosa-50); border: 1px dashed var(--rosa-300); border-radius: var(--raio); padding: 40px 24px; text-align: center; }
  .estado img { width: 84px; margin: 0 auto 14px; opacity: .7; }
  .estado h3 { font-size: 1.5rem; margin-bottom: 8px; }
  .estado p { color: var(--ameixa-suave); max-width: 46ch; margin: 0 auto 20px; }
  .carregando { background: var(--rosa-100); border-radius: var(--raio); aspect-ratio: 4 / 6.3; animation: pulsar 1.4s ease-in-out infinite alternate; }
  @keyframes pulsar { from { opacity: .55; } to { opacity: 1; } }

  /* ---------- como comprar ---------- */
  .como { background: var(--rosa-50); border-block: 1px solid var(--rosa-200); }
  .passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: passo; }
  .passos li { counter-increment: passo; position: relative; padding-top: 58px; }
  .passos li::before {
    content: counter(passo); position: absolute; top: 0; left: 0;
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    font: 400 1.35rem/1 var(--serif); color: var(--framboesa);
    border: 1.5px dashed var(--framboesa); background: var(--branco);
  }
  .passos h3 { font-size: 1.3rem; margin-bottom: 6px; }
  .passos p { color: var(--ameixa-suave); max-width: 34ch; }
  .nota-personalizado { margin-top: 36px; padding: 18px 22px; border-radius: 14px; background: var(--branco); border: 1px solid var(--rosa-200); max-width: 70ch; }
  @media (max-width: 760px) { .passos { grid-template-columns: 1fr; gap: 26px; } }

  /* ---------- sobre ---------- */
  .sobre .wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: center; }
  .sobre .flor { width: min(260px, 70%); justify-self: center; opacity: .9; }
  .sobre h2 { margin-bottom: 18px; }
  .sobre .carta p + p { margin-top: 14px; }
  .sobre .carta { font-size: 1.08rem; max-width: 60ch; }
  .assinatura { margin-top: 22px; font: 400 1.6rem/1 var(--serif); color: var(--framboesa); }
  @media (max-width: 760px) {
    .sobre .wrap { grid-template-columns: 1fr; gap: 24px; }
    .sobre .flor { width: 130px; justify-self: start; }
  }

  /* ---------- rodapé ---------- */
  .rodape { background: var(--rosa-100); padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); }
  .rodape .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
  .rodape img { height: 52px; width: auto; }
  .contatos { display: flex; flex-wrap: wrap; gap: 12px; }
  .rodape small { flex-basis: 100%; color: var(--ameixa-suave); font-size: .85rem; }

  /* botão flutuante */
  .flutuante {
    position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30;
    width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--framboesa); color: var(--branco);
    box-shadow: 0 6px 18px rgba(134, 35, 74, .35);
  }
  .flutuante svg { width: 28px; height: 28px; }
  .flutuante:hover { background: var(--framboesa-escura); }

  /* ---------- detalhe da peça ---------- */
  dialog.detalhe {
    width: min(980px, 100% - 32px); max-height: min(92vh, 860px);
    padding: 0; border: 0; border-radius: 22px; color: var(--ameixa); background: var(--branco);
    overflow: auto;
  }
  dialog.detalhe::backdrop { background: rgba(59, 31, 44, .55); }
  .det { display: grid; grid-template-columns: 1.05fr 1fr; }
  .det-galeria { background: var(--rosa-100); padding: 16px; }
  .det-principal { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--rosa-200); }
  .miniaturas { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
  .miniaturas button { padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; flex: none; }
  .miniaturas button[aria-current="true"] { border-color: var(--framboesa); }
  .miniaturas img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
  .det-texto { position: relative; padding: 34px 30px 28px; display: flex; flex-direction: column; gap: 14px; }
  .det-texto h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.12; padding-right: 40px; }
  .det-cat { color: var(--ameixa-suave); font-size: .95rem; }
  .det-preco { font-size: 1.4rem; font-weight: 700; }
  .det-preco.consulta { font-size: 1.05rem; font-weight: 500; color: var(--ameixa-suave); }
  .det-desc { white-space: pre-line; color: var(--ameixa); }
  .det-texto h2:focus { outline: none; }
  .fechar {
    position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--linha); background: var(--branco); cursor: pointer; font-size: 1.5rem; line-height: 1;
    box-shadow: 0 2px 8px rgba(59, 31, 44, .12);
  }
  .det-acao { display: flex; flex-direction: column; gap: 10px; }
  .fechar:hover { background: var(--rosa-100); }
  .campo label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
  .quantidade { display: inline-flex; align-items: center; border: 1.5px solid var(--rosa-300); border-radius: 999px; }
  .quantidade button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; border-radius: 50%; }
  .quantidade output { min-width: 32px; text-align: center; font-weight: 600; }
  .campo textarea {
    width: 100%; font: inherit; color: inherit; padding: 12px 14px; resize: vertical; min-height: 76px;
    border: 1.5px solid var(--rosa-300); border-radius: 12px; background: var(--rosa-50);
  }
  .campo textarea:focus { outline: none; border-color: var(--framboesa); background: var(--branco); }
  .det .btn-principal { width: 100%; min-height: 54px; font-size: 1.05rem; margin-top: 4px; }
  .det-nota { font-size: .9rem; color: var(--ameixa-suave); text-align: center; }
  @media (max-width: 760px) {
    dialog.detalhe { width: 100%; max-width: 100%; max-height: 94vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
    .det { grid-template-columns: 1fr; }
    .det-galeria { padding: 12px 12px 10px; }
    .det-principal { aspect-ratio: 4 / 3.4; max-height: 44vh; }
    .miniaturas img { width: 54px; height: 54px; }
    .det-texto { padding: 20px 18px 0; gap: 12px; }
    .det-texto h2 { padding-right: 0; }
    .det-acao {
      position: sticky; bottom: 0; margin: 4px -18px 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
      background: var(--branco); border-top: 1px solid var(--rosa-200);
    }
    .det .btn-principal { margin-top: 0; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .carregando { animation: none; }
    * { transition: none !important; }
  }
