/* v2 — folheio por família + pedido rápido. Carrega depois de orc.css e sobrepõe o que for preciso. */
:root { --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace; --hair: #d9dde0; --marca: #eaf6f9; }
.v2 .orc-hero .wrap { padding-block: clamp(1.4rem, 3vw, 2.2rem); }
.v2 .orc-hero h1 { font-size: var(--step-3); max-width: 26ch; }
.v2 .hero-linha { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.v2 .busca { flex: 1 1 380px; }
.btn-rapido { border: 1.5px solid rgba(255,255,255,.45); background: transparent; color: #fff; border-radius: 8px; padding: .95rem 1.1rem; font: 700 .9rem var(--f-ui); cursor: pointer; white-space: nowrap; }
.btn-rapido:hover, .btn-rapido[aria-expanded="true"] { background: #fff; color: var(--deep); }

/* pedido rápido (C) */
.rapido { background: var(--tile); border-bottom: 1px solid var(--hair); }
.rapido[hidden] { display: none; }
.rapido .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; padding-block: 1.4rem; }
.rapido h2 { font: 700 1.15rem var(--f-display); margin-bottom: .2rem; }
.rapido p.dica { color: var(--muted); font-size: .88rem; margin-bottom: .6rem; }
.rapido textarea { width: 100%; min-height: 150px; border: 1.5px solid var(--hair); border-radius: 6px; padding: .8rem; font: 500 .95rem/1.5 var(--mono); resize: vertical; background: #fff; }
.rapido .previa { background: #fff; border: 1px solid var(--hair); border-radius: 6px; min-height: 150px; padding: .3rem .8rem; font-size: .9rem; }
.rapido .previa .ln { display: grid; grid-template-columns: 1.4rem 5.2rem 1fr auto; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.rapido .previa .ln:last-child { border-bottom: 0; }
.rapido .previa .ok { color: #1c7a47; font-weight: 700; }
.rapido .previa .nao { color: #b4531a; font-weight: 700; }
.rapido .previa code { font: 600 .8rem var(--mono); color: var(--pool); }
.rapido .previa .sug { grid-column: 2 / -1; font-size: .8rem; color: var(--muted); }
.rapido .previa .sug button { border: 0; background: none; color: var(--pool); text-decoration: underline; cursor: pointer; font: inherit; padding: 0 .2rem; }
.rapido .acoes { display: flex; gap: .6rem; margin-top: .6rem; align-items: center; flex-wrap: wrap; }
.rapido .vazio-previa { color: var(--muted); padding: 1.2rem 0; }

/* mercados */
.mercados { background: var(--paper); border-bottom: 1px solid var(--hair); }
.mercados .wrap { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding-block: .75rem; }
.mercados .lbl { font: 700 .72rem var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: .2rem; }
.mercados .chip { border-color: var(--hair); color: var(--deep); font-size: .84rem; padding: .4rem .8rem; }
.mercados .chip:hover { border-color: var(--pool); }
.mercados .chip[aria-pressed="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }
.mercados .nota-m { font-size: .8rem; color: var(--muted); margin-left: auto; }

/* corpo */
.v2 .orc-main .wrap { grid-template-columns: 250px minmax(0, 1fr); padding-top: 1.6rem; }
.indice { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; padding-right: .4rem; }
.indice h2 { font: 700 .72rem var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.indice a { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: baseline; padding: .42rem .6rem; border-left: 2px solid var(--hair); color: #34424b; text-decoration: none; font: 600 .88rem/1.25 var(--f-read); }
.indice a:hover { background: var(--tile); }
.indice a.on { border-left-color: var(--pool); color: var(--deep); background: var(--marca); }
.indice a .c { font: 600 .74rem var(--mono); color: var(--muted); }
.indice a .m { background: var(--float); color: var(--deep); border-radius: 999px; padding: 0 .4rem; font: 700 .72rem var(--f-ui); margin-left: .3rem; }
.indice a.sug::after { content: "indicado"; font: 700 .62rem var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--pool); grid-column: 1 / -1; }
.cat-intro { border-left: 3px solid var(--aqua); padding: .2rem 0 .2rem 1rem; margin-bottom: 2rem; max-width: 74ch; color: #28363f; }
.cat-intro small { display: block; margin-top: .4rem; color: var(--muted); font-size: .8rem; }
.resumo-busca { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }

.fam { padding-block: 2rem 1.4rem; border-top: 2px solid var(--deep); scroll-margin-top: 84px; }
.fam:first-of-type { border-top: 0; padding-top: .4rem; }
.fam[hidden] { display: none; }
.fam-topo { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.6rem; align-items: start; margin-bottom: 1.1rem; }
.fam-topo.sem-foto { grid-template-columns: minmax(0, 1fr); }
.fam-foto { width: 200px; aspect-ratio: 1/1; background: #fff; border: 1px solid var(--hair); border-radius: 4px; display: grid; place-items: center; overflow: hidden; }
.fam-foto img { width: 100%; height: 100%; object-fit: contain; }
.fam-eyebrow { font: 700 .72rem var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--pool); }
.fam h2 { font: 700 var(--step-3)/1.1 var(--f-display); margin: .3rem 0 .6rem; }
.fam .intro { color: #28363f; max-width: 70ch; }

.tab { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tab thead th { text-align: left; font: 700 .68rem var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .5rem .6rem; border-bottom: 1px solid var(--deep); background: transparent; }
.tab td { padding: .45rem .6rem; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.tab tr.marcado td { background: var(--marca); }
.tab .c-marca { width: 2.6rem; }
.tab .c-foto { width: 3.4rem; }
.tab .c-cod { width: 5.6rem; font: 600 .8rem var(--mono); color: var(--pool); letter-spacing: .02em; }
.tab .c-num { font-variant-numeric: tabular-nums; white-space: nowrap; color: #34424b; }
.tab .c-qtd { width: 6.8rem; text-align: right; }
@media (min-width: 641px) { .tab .c-sub { display: none; } }
.tab .miniatura { width: 44px; height: 44px; border: 1px solid var(--hair); border-radius: 4px; background: #fff; padding: 0; cursor: pointer; display: grid; place-items: center; overflow: hidden; }
.tab .miniatura img { width: 100%; height: 100%; object-fit: contain; }
.tab .miniatura.sem { background: var(--pool); color: #fff; font: 700 .55rem var(--mono); }
.tab .nome { background: none; border: 0; padding: 0; font: 700 .95rem/1.25 var(--f-display); color: var(--deep); text-align: left; cursor: pointer; }
.tab .nome:hover { color: var(--pool); text-decoration: underline; }
.tab .sub { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; }
.chk { appearance: none; width: 1.55rem; height: 1.55rem; border: 2px solid #8a98a2; border-radius: 4px; background: #fff; cursor: pointer; display: grid; place-items: center; margin: 0; }
.chk:checked { background: var(--pool); border-color: var(--pool); }
.chk:checked::after { content: ""; width: .8rem; height: .45rem; border-left: 3px solid #fff; border-bottom: 3px solid #fff; rotate: -45deg; translate: 0 -2px; }
.chk:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }
.qin { width: 4.4rem; border: 1.5px solid var(--hair); border-radius: 4px; padding: .4rem .3rem; text-align: center; font: 700 .95rem var(--f-ui); font-variant-numeric: tabular-nums; background: #fff; }
.qin:disabled { background: transparent; border-color: transparent; color: #aab4bb; }
.qin:not(:disabled) { border-color: var(--pool); }

.rodape-sel { position: sticky; bottom: 0; z-index: 45; background: var(--deep); color: #fff; }
.rodape-sel .wrap { display: flex; align-items: center; gap: 1rem; padding-block: .7rem; }
.rodape-sel .res { flex: 1; font-size: .92rem; color: rgba(255,255,255,.85); }
.rodape-sel .res b { color: #fff; font-size: 1.05rem; }
.btn-pedir { border: 0; border-radius: 6px; background: #fff; color: var(--deep); padding: .8rem 1.3rem; font: 700 .95rem var(--f-ui); cursor: pointer; }
.btn-pedir:disabled { opacity: .4; cursor: not-allowed; }
.btn-pedir:not(:disabled):hover { background: var(--aqua); }

/* confirmação no painel */
#lista .confirma { background: #eaf6ee; border: 1px solid #b6dcc2; border-radius: 6px; padding: .8rem .9rem; font-size: .9rem; color: #14532d; }
#lista .confirma b { font-family: var(--mono); }
#lista .confirma[hidden] { display: none; }
#lista .btn-env { display: flex; align-items: center; justify-content: center; gap: .6rem; background: var(--deep); color: #fff; border: 0; border-radius: 6px; padding: .9rem 1rem; font: 700 .95rem var(--f-ui); cursor: pointer; }
#lista .btn-env:hover { background: #000; }
#lista .btn-env:disabled { opacity: .4; cursor: not-allowed; }

@media (max-width: 960px) {
  .v2 .orc-main .wrap { grid-template-columns: minmax(0, 1fr); }
  .indice { position: static; max-height: none; display: flex; overflow-x: auto; gap: .35rem; padding: 0 0 .5rem; }
  .indice h2 { display: none; }
  .indice a { white-space: nowrap; border: 1px solid var(--hair); border-left-width: 1px; border-radius: 999px; padding: .4rem .8rem; grid-template-columns: auto auto; }
  .indice a.on { border-color: var(--pool); }
  .indice a.sug::after { display: none; }
  .rapido .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .fam-topo { grid-template-columns: 96px minmax(0, 1fr); gap: .9rem; }
  .fam-foto { width: 96px; }
  .fam .intro { font-size: .92rem; }
  .tab thead { display: none; }
  .tab, .tab tbody { display: block; }
  .tab tr { display: grid; grid-template-columns: 2rem 44px minmax(0, 1fr) auto; grid-template-areas: "m f n q" "m f s q"; gap: .1rem .6rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--hair); }
  .tab tr.marcado { background: var(--marca); }
  .tab td { display: block; padding: 0; border: 0; }
  .tab tr.marcado td { background: transparent; }
  .tab .c-marca { grid-area: m; width: auto; } .tab .c-foto { grid-area: f; width: auto; } .tab .c-nome { grid-area: n; }
  .tab .c-cod, .tab .c-med, .tab .c-peso { display: none; }
  .tab .c-sub { grid-area: s; font-size: .76rem; color: var(--muted); }
  .tab .c-qtd { grid-area: q; width: auto; }
  .qin { width: 3.6rem; }
  .rodape-sel .res { font-size: .84rem; }
  .btn-pedir { padding: .75rem 1rem; }
  .barra-mov { display: none !important; }
  .mercados .nota-m { margin-left: 0; width: 100%; }
}

.cat-intro .ci-t { font: 700 1.35rem/1.2 var(--f-display); margin-bottom: .5rem; color: var(--deep); }
.cat-intro p + p { margin-top: .6rem; }

@media (max-width: 960px) {
  .mercados .wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .mercados .chip, .mercados .lbl { flex: none; white-space: nowrap; }
  .mercados .nota-m { display: none; }
}
