  :root {
    --cream:   #FAF6E8;
    --brown:   #5C3317;
    --brown-l: #8B5E3C;
    --rose:    #F2C4CE;
    --rose-d:  #C47A8A;
    --sage:    #8FA98A;
    --sage-l:  #C9DBC7;
    --sage-d:  #5A7A55;
    --blue-mist: #C5D8E8;
    --beige:   #E8DDD0;
    --beige-d: #B5A898;
    --white:   #FFFFFF;
    --text:    #3D2B1F;
    --text-m:  #7A6055;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'Lato', sans-serif;
    background: var(--cream);
    color: var(--text);
    min-height: 100vh;
  }

  /* Largura máxima no desktop — celular continua em tela cheia dentro do #app */
  #app {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 0 1px rgba(92, 51, 23, 0.04);
  }

  h1, h2, h3, .script {
    font-family: 'Klee One', cursive;
  }

  /* ── SCREENS ── */
  .screen { display: none; }
  .screen.active { display: block; animation: fadeUp .3s ease; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── NAV ── */
  .nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--beige);
    position: sticky; top: 0; z-index: 200;
  }
  .nav-brand {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer;
  }
  .nav-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
  .nav-name {
    font-family: 'Klee One', cursive;
    font-size: 17px; color: var(--brown);
    line-height: 1.1;
  }
  .nav-name small { display: block; font-size: 10px; color: var(--brown-l); letter-spacing: .08em; }
  .nav-links { display: flex; gap: 18px; }
  .nav-link {
    font-size: 12px; color: var(--text-m); cursor: pointer;
    padding-bottom: 2px;
    border-bottom: 1.5px solid transparent;
    transition: all .15s;
  }
  .nav-link:hover { color: var(--sage-d); border-color: var(--sage-d); }

  /* ── HERO ── */
  .hero {
    position: relative; overflow: hidden;
    padding: 40px 24px 36px;
    text-align: center;
    background: linear-gradient(160deg, #FDF0D5 0%, #F5E8F0 50%, #E8EFF8 100%);
  }
  .hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px;
    box-shadow: 0 6px 18px rgba(92,51,23,.08);
  }
  .hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.6);
    border: 1px solid var(--rose);
    color: var(--rose-d);
    font-size: 11px; font-weight: 400; letter-spacing: .05em;
    padding: 4px 14px; border-radius: 20px;
    margin-bottom: 18px;
  }
  .hero-slogan {
    font-size: 18px;
    line-height: 1.35;
    color: var(--brown);
    max-width: 360px;
    margin: 0 auto 10px;
  }
  .hero-illus {
    width: min(340px, 78vw);
    margin: 0 auto 8px;
  }
  .hero-illus img { width: 100%; height: auto; display: block; }
  .hero p {
    font-size: 14px; color: var(--text-m); line-height: 1.65;
    max-width: 310px; margin: 0 auto 10px;
  }
  .hero-note {
    font-size: 12px; color: var(--sage-d);
    font-style: italic; margin-bottom: 24px;
  }
  .btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
  .btn {
    display: inline-block; cursor: pointer; border: none;
    font-family: 'Lato', sans-serif;
    font-size: 13px; padding: 10px 22px; border-radius: 24px;
    transition: all .15s;
  }
  .btn-main { background: var(--sage); color: var(--sage-d); }
  .btn-main:hover { background: var(--sage-d); color: white; }
  .btn-alt { background: transparent; color: var(--brown-l); border: 1px solid var(--rose); }
  .btn-alt:hover { background: var(--rose); color: var(--rose-d); }

  /* ── VALORES ── */
  .valores {
    display: flex; gap: 0;
    border-top: 1px solid var(--beige);
    border-bottom: 1px solid var(--beige);
    background: var(--white);
  }
  .valor-item {
    flex: 1; text-align: center;
    padding: 6px 6px;
    border-right: 1px solid var(--beige);
  }
  .valor-item:last-child { border-right: none; }
  .valor-icon { font-size: 18px; margin-bottom: 4px; }
  .valor-label {
    font-size: 10px;
    color: var(--text-m);
    line-height: 1.2;
  }

  /* ── MOBILE-FIRST: compactar a 1ª dobra ── */
  @media (max-width: 420px) {
    .nav { padding: 10px 14px; }
    .nav-links { gap: 14px; }
    .nav-link { font-size: 12px; }

    .hero { padding: 22px 14px 18px; }
    .hero-logo { width: 88px; height: 88px; margin-bottom: 8px; }
    .hero-slogan { font-size: 17px; margin-bottom: 8px; }
    .hero-illus { width: min(300px, 84vw); margin-bottom: 6px; }

    .valor-item { padding: 10px 6px; }
    .valor-icon { font-size: 18px; margin-bottom: 4px; }
    .valor-label { font-size: 10px; line-height: 1.3; }

    .btn-row { gap: 8px; }
    .btn { font-size: 13px; padding: 10px 18px; }
  }

  /* ── SECTIONS ── */
  .section { padding: 28px 20px; }
  .section-head { margin-bottom: 18px; }
  .section-title { font-size: 20px; color: var(--brown); margin-bottom: 3px; }
  .section-sub { font-size: 13px; color: var(--text-m); font-style: italic; }
  .section-cta { margin-top: 16px; }

  /* ── ESTAMPAS GRID ── */
  .estampas-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  }
  @media (min-width: 600px) {
    .estampas-grid { grid-template-columns: repeat(3, 1fr); }
  }
  .col-group-title {
    grid-column: 1 / -1;
    font-family: 'Klee One', cursive;
    font-size: 15px; color: var(--brown-l);
    padding: 10px 0 2px;
    border-bottom: 1px solid var(--beige);
    margin-bottom: 2px;
  }
  .estampa-card {
    background: var(--white);
    border: 1px solid var(--beige);
    border-radius: 12px; overflow: hidden;
    cursor: pointer; transition: all .15s;
    box-shadow: 0 1px 4px rgba(92,51,23,.04);
  }
  .estampa-card:hover { border-color: var(--sage); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(92,51,23,.08); }
  .estampa-img { width: 100%; height: 110px; object-fit: cover; display: block; }
  .estampa-info { padding: 8px 10px 10px; }
  .estampa-col { font-size: 9px; font-weight: 400; color: var(--sage-d); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
  .estampa-name { font-family: 'Klee One', cursive; font-size: 13px; color: var(--brown); }

  /* ── PRODUTOS GRID ── */
  .produtos-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  }
  @media (min-width: 600px) {
    .produtos-grid { grid-template-columns: repeat(3, 1fr); }
  }
  .prod-card {
    background: var(--white);
    border: 1px solid var(--beige);
    border-radius: 12px; overflow: hidden;
    cursor: pointer; transition: all .15s;
    box-shadow: 0 1px 4px rgba(92,51,23,.04);
  }
  .prod-card:hover { border-color: var(--rose); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(92,51,23,.08); }
  /* Foto quadrada como a do trocador: área 1:1, imagem inteira (sem crop) */
  .prod-img {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: var(--cream);
    padding: 6px;
    box-sizing: border-box;
    display: block;
  }
  .prod-img--empty {
    background: var(--cream);
  }
  .prod-info { padding: 8px 10px 10px; }
  .prod-cat-badge {
    display: inline-block;
    background: var(--sage-l); color: var(--sage-d);
    font-size: 9px; letter-spacing: .05em;
    padding: 2px 8px; border-radius: 10px;
    margin-bottom: 4px;
  }
  .prod-name { font-family: 'Klee One', cursive; font-size: 13px; color: var(--brown); margin-bottom: 4px; }
  .prod-price { font-size: 14px; color: var(--sage-d); font-weight: 400; margin-bottom: 4px; }
  .prod-size { font-size: 10px; color: var(--text-m); line-height: 1.3; margin-bottom: 3px; }
  .prod-material {
    font-size: 10px; color: var(--text-m); line-height: 1.3; margin-bottom: 4px;
  }
  .prod-handmade {
    font-size: 10px; color: var(--rose-d);
    font-style: italic; margin-top: 0;
  }

  /* ── DIVIDER ── */
  .divider { height: 1px; background: var(--beige); margin: 0 20px; }

  /* ── CAROUSEL (HOME) ── */
  .carousel {
    position: relative;
  }
  .car-track--horizontal {
    display: flex !important;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 34px; /* espaço para botões */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .car-track--horizontal::-webkit-scrollbar { height: 8px; }
  .car-track--horizontal::-webkit-scrollbar-thumb {
    background: var(--beige);
    border-radius: 999px;
  }
  .car-track--horizontal .col-group-title { display: none; }
  .car-track--horizontal .estampa-card,
  .car-track--horizontal .prod-card {
    scroll-snap-align: start;
    flex: 0 0 165px;
  }
  @media (min-width: 600px) {
    .car-track--horizontal .estampa-card,
    .car-track--horizontal .prod-card {
      flex-basis: 190px;
    }
  }
  /* Carrossel da home: mesma largura base que os cards de estampa → quadrado alinhado ao trocador */
  .car-track--horizontal .prod-card--compact {
    flex-basis: 165px;
  }
  @media (min-width: 600px) {
    .car-track--horizontal .prod-card--compact {
      flex-basis: 190px;
    }
  }
  .prod-card--compact .prod-info { padding: 5px 7px 6px; }
  .prod-card--compact .prod-name {
    margin-bottom: 2px;
    font-size: 12px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .prod-card--compact .prod-price { font-size: 13px; margin-bottom: 3px; }
  .prod-card--compact .prod-size,
  .prod-card--compact .prod-material {
    font-size: 9px;
    line-height: 1.25;
    margin-bottom: 2px;
  }
  .prod-card--compact .prod-material {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .car-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--beige);
    background: rgba(255,255,255,.86);
    color: var(--brown-l);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .12s, transform .12s;
  }
  .car-btn:hover { background: #fff; transform: translateY(-50%) scale(1.03); }
  .car-btn.prev { left: 6px; }
  .car-btn.next { right: 6px; }

  /* ── HOME ILLUSTRAÇÕES ── */
  .section-illus { padding-top: 22px; }
  .illus-row { margin-top: 10px; }
  .illus-card {
    background: var(--white);
    border: 1px solid var(--beige);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(92,51,23,.04);
    margin: 0;
  }
  .illus-card img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Desktop: 3 lado a lado */
  .illus-row--desktop {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .illus-row--mobile { display: none; }

  @media (max-width: 720px) {
    .illus-row--desktop { display: none; }
    .illus-row--mobile { display: block; }
    #home-illus .illus-card { flex: 0 0 320px; scroll-snap-align: start; }
    #home-illus { padding-inline: 34px; }
  }

  /* ── CATEGORY PAGE ── */
  .cat-header {
    padding: 16px 20px 14px;
    background: linear-gradient(135deg, #F5EDD8, #F5E4EC);
    border-bottom: 1px solid var(--beige);
  }
  .back-btn {
    display: inline-flex; align-items: center; gap: 4px;
    background: none; border: none; cursor: pointer;
    font-size: 12px; color: var(--text-m);
    padding: 0; margin-bottom: 8px;
    font-family: 'Lato', sans-serif;
  }
  .back-btn:hover { color: var(--brown); }
  .cat-header h2 { font-size: 22px; color: var(--brown); margin-bottom: 2px; }
  .cat-header p { font-size: 12px; color: var(--text-m); font-style: italic; }
  .cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 20px; }
  @media (min-width: 600px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
  }

  /* ── PRODUCT PAGE ── */
  .prod-page-img-wrap {
    position: relative; background: var(--beige);
    cursor: pointer;
  }
  .prod-page-img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    object-position: center;
    background: var(--cream);
    display: block;
  }
  .prod-page-img.prod-page-img--contain {
    object-fit: contain;
    background: var(--cream);
  }
  .carr-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.82); border: 1px solid var(--beige);
    border-radius: 50%; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px; color: var(--brown-l);
    transition: background .12s;
  }
  .carr-btn:hover { background: white; }
  .carr-btn.prev { left: 12px; }
  .carr-btn.next { right: 12px; }
  .carr-dots { display: flex; gap: 6px; justify-content: center; padding: 10px 0 4px; }
  .c-dot {
    width: 7px; height: 7px; border-radius: 50%; border: none;
    background: var(--beige); cursor: pointer; transition: background .15s;
  }
  .c-dot.on { background: var(--sage); }
  .click-hint {
    margin: 6px 20px 0;
    font-size: 10px;
    color: rgba(92, 51, 23, 0.6);
    font-style: italic;
    text-align: right;
  }

  .prod-detail { padding: 16px 20px 32px; }
  .pd-cat { display: inline-block; background: var(--rose); color: var(--rose-d); font-size: 10px; padding: 3px 10px; border-radius: 10px; margin-bottom: 8px; }
  .pd-name { font-size: 22px; color: var(--brown); margin-bottom: 6px; }
  .pd-price { font-size: 24px; color: var(--sage-d); margin-bottom: 6px; }
  .pd-price:empty { display: none; }
  .pd-size,
  .pd-material {
    font-size: 12px; color: var(--text-m); line-height: 1.45; margin: 0 0 4px;
  }
  .pd-size:empty,
  .pd-material:empty { display: none; margin: 0; }
  .pd-handmade {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--sage-l); color: var(--sage-d);
    font-size: 11px; padding: 4px 12px; border-radius: 10px;
    margin-bottom: 14px;
    margin-top: 4px;
    font-style: italic;
  }
  .pd-desc { font-size: 13px; color: var(--text-m); line-height: 1.7; margin-bottom: 8px; }
  .btn-wpp {
    width: 100%; padding: 14px; border-radius: 24px; border: none; cursor: pointer;
    background: var(--sage); color: var(--sage-d);
    font-size: 14px; font-family: 'Lato', sans-serif;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .15s;
  }
  .btn-wpp:hover { background: var(--sage-d); color: white; }

  /* ── LIGHTBOX ── */
  .lightbox {
    display: none; position: fixed;
    inset: 0; background: rgba(30,15,5,.9);
    z-index: 200; align-items: center; justify-content: center;
    flex-direction: column;
  }
  .lightbox.open { display: flex; }
  .lb-img { max-width: 92vw; max-height: 70vh; object-fit: contain; border-radius: 8px; }
  .lb-close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; color: rgba(255,255,255,.7);
    font-size: 24px; cursor: pointer;
  }
  .lb-close:hover { color: white; }
  .lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15); border: none;
    color: white; font-size: 22px; cursor: pointer;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }
  .lb-nav:hover { background: rgba(255,255,255,.25); }
  .lb-nav.prev { left: 10px; }
  .lb-nav.next { right: 10px; }
  .lb-dots { display: flex; gap: 8px; margin-top: 14px; }
  .lb-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.35); cursor: pointer; }
  .lb-dot.on { background: white; }

  /* ── FOOTER ── */
  .footer {
    background: var(--brown); color: rgba(255,255,255,.7);
    text-align: center; padding: 28px 20px;
  }
  .footer .script { font-size: 20px; color: white; margin-bottom: 6px; }
  .footer p { font-size: 12px; line-height: 1.6; }
  .footer-note { margin-top: 14px; font-size: 11px; color: rgba(255,255,255,.4); }

  /* ── HOW IT WORKS ── */
  .como-funciona {
    background: var(--white);
    padding: 18px 16px;
  }
  .como-funciona .section-head { margin-bottom: 8px; }
  .como-funciona .section-sub { margin-top: 2px; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 0; }
  .step {
    padding: 8px 10px; border-radius: 8px;
    background: var(--cream); border: 1px solid var(--beige);
  }
  .step-text {
    margin: 0;
    font-size: 11px; color: var(--text-m); line-height: 1.35;
    text-align: left;
  }
  .step-label {
    font-family: 'Klee One', cursive;
    color: var(--sage-d);
    font-size: 12px;
    margin-right: 2px;
  }
  .step-text strong {
    color: var(--brown); font-weight: 400; font-family: 'Klee One', cursive;
    font-size: 12px;
  }
  .como-funciona-cta {
    margin-top: 14px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  @media (max-width: 720px) {
    .steps { grid-template-columns: 1fr; }
    .valores { flex-wrap: wrap; }
    .valor-item { flex: 1 1 42%; min-width: 70px; border-bottom: 1px solid var(--beige); }
  }

  /* ── DESKTOP (tablet largo + PC): mais respiro, cards e carrosséis maiores ── */
  @media (min-width: 768px) {
    .nav { padding: 14px 28px; }
    .nav-logo { width: 42px; height: 42px; }
    .nav-name { font-size: 18px; }
    .nav-link { font-size: 13px; }

    .hero { padding: 48px 32px 44px; }
    .hero-logo { width: 108px; height: 108px; }
    .hero-slogan {
      font-size: 22px;
      max-width: 520px;
    }
    .hero-illus { width: min(420px, 55vw); }
    .hero p { font-size: 15px; max-width: 440px; }
    .btn { font-size: 14px; padding: 11px 26px; }

    .section { padding: 36px 32px; }
    .section-title { font-size: 22px; }
    .section-sub { font-size: 14px; }

    .estampa-img { height: 130px; }
    .estampa-name { font-size: 14px; }
    .prod-name { font-size: 14px; }

    .cat-header { padding: 22px 32px 18px; }
    .cat-header h2 { font-size: 24px; }
    .cat-header p { font-size: 13px; }
    .cat-grid { padding: 28px 32px; gap: 14px; }

    .car-track--horizontal { gap: 14px; padding: 4px 40px; }
    .car-track--horizontal .estampa-card,
    .car-track--horizontal .prod-card:not(.prod-card--compact) {
      flex-basis: 210px;
    }
    .car-track--horizontal .prod-card--compact { flex-basis: 188px; }
    .car-btn { width: 34px; height: 34px; }

    .como-funciona { padding: 24px 28px; }
    .steps { gap: 10px; }
    .step { padding: 10px 12px; }
    .step-text { font-size: 12px; }
    .step-text strong { font-size: 13px; }

    .footer { padding: 32px 28px; }
  }

  @media (min-width: 1024px) {
    .nav { padding: 16px 40px; }
    .nav-links { gap: 28px; }

    .hero { padding: 56px 48px 48px; }
    .hero-slogan { font-size: 24px; max-width: 560px; }
    .hero-illus { width: min(480px, 48vw); }

    .section { padding: 44px 48px; }
    .section-title { font-size: 24px; }

    .estampas-grid:not(.car-track--horizontal),
    .produtos-grid:not(.car-track--horizontal) {
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
    }
    .cat-grid {
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      padding: 32px 48px;
    }

    .estampa-img { height: 150px; }

    .car-track--horizontal .estampa-card,
    .car-track--horizontal .prod-card:not(.prod-card--compact) {
      flex-basis: 236px;
    }
    .car-track--horizontal .prod-card--compact { flex-basis: 208px; }
    /* Só quando a tela está ativa — senão #screen-product ganhava display:grid e vencia o .screen { display:none } */
    #screen-product.screen.active {
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
      grid-template-rows: auto auto;
      gap: 0 48px;
      align-items: start;
      max-width: 1100px;
      margin: 0 auto;
      padding: 32px 48px 56px;
    }
    #screen-product.screen.active .prod-page-img-wrap {
      grid-column: 1;
      grid-row: 1;
      border-radius: 12px;
      overflow: hidden;
    }
    #screen-product.screen.active .prod-page-img {
      height: min(420px, 52vh);
      object-fit: contain;
      object-position: center;
      background: var(--cream);
    }
    #screen-product.screen.active .prod-page-img.prod-page-img--contain {
      object-fit: contain;
    }
    #screen-product.screen.active .carr-dots {
      grid-column: 1;
      grid-row: 2;
      padding: 12px 0 8px;
    }
    #screen-product.screen.active .prod-detail {
      grid-column: 2;
      grid-row: 1 / span 2;
      padding: 8px 0 32px;
      max-width: 480px;
    }
    #screen-product.screen.active .pd-name { font-size: 26px; }
    #screen-product.screen.active .pd-desc { font-size: 14px; }

    .lb-img { max-height: 78vh; max-width: min(92vw, 1000px); }

    .como-funciona-cta { max-width: 380px; }
  }

  @media (min-width: 768px) and (max-width: 1023px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
  }
