/* VetCuritiba — Diretório de Tóxicos para Cães e Gatos. Mobile primeiro, visual sóbrio: fundo branco, linhas finas e ilustrações. */
body[data-page="diretorio-toxicos"] { --dx-planta: #5c9247; --dx-alimento: #eb8223; --dx-limpeza: #1b3b64; --dx-medicamento: #2f8f9d; --dx-line: #dde3ea; --dx-tile: #eef1f5; --dx-muted: #667085; --dx-text: #1f2937}
.dx-main { padding-bottom: 110px}
.dx-intro, .dx-alert, .dx-find, .dx-filters, .dx-quick, .dx-results-h, .dx-list, .dx-empty, .dx-tips, .dx-foot { max-width: 860px; margin-left: auto; margin-right: auto}
.dx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap}
.dx-h { margin: 0 0 12px; font-size: 17px; line-height: 1.3; color: #0b1220; font-weight: 800}
.dx-lbl { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--dx-muted)}

/* abertura */
.dx-intro { background: #ffffff; border: 1px solid var(--dx-line); border-radius: 14px; padding: 22px 20px 20px; margin-bottom: 16px}
.dx-over { margin: 0 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #1f7a37}
.dx-intro h2 { margin: 0 0 10px; font-size: 23px; line-height: 1.25; color: #0b1220; letter-spacing: -.2px}
.dx-intro p:last-child { margin: 0; font-size: 15px; line-height: 1.65; color: #566883}

/* emergência */
.dx-alert { background: #ffffff; border: 1px solid var(--dx-line); border-radius: 14px; overflow: hidden; margin-bottom: 22px}
.dx-alert-h { margin: 0; padding: 13px 20px; background: #8f1f1f; color: #ffffff; font-size: 15.5px; line-height: 1.35; font-weight: 800}
.dx-alert-b { padding: 18px 20px 6px}
.dx-alert-b > p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: #0b1220}
.dx-alert-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px}
.dx-alert-b .dx-alert-small { font-size: 12.5px; line-height: 1.6; color: var(--dx-muted); margin-bottom: 6px}
.dx-do { border-top: 1px solid var(--dx-line); margin-top: 8px}
.dx-do summary { cursor: pointer; font-weight: 800; color: #0b1220; font-size: 14.5px; padding: 16px 28px 16px 0; position: relative; list-style: none}
.dx-do summary::-webkit-details-marker { display: none}
.dx-do summary::after, .dx-tips summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #0b1220; border-bottom: 2px solid #0b1220; transform: translateY(-70%) rotate(45deg); transition: transform .2s}
.dx-do[open] summary::after, .dx-tips details[open] summary::after { transform: translateY(-30%) rotate(-135deg)}
.dx-do-cols { display: grid; grid-template-columns: 1fr; gap: 4px; padding-bottom: 14px}
.dx-do h3 { margin: 6px 0 8px; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: #0b1220}
.dx-do ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px}
.dx-do li { font-size: 14px; line-height: 1.6; color: #0b1220}

/* busca (fica fixa ao rolar) */
.dx-find { position: sticky; top: 0; z-index: 30; background: #e7ecf6; padding: 8px 0 10px}
.dx-search { position: relative; display: flex; align-items: center}
.dx-input { width: 100%; box-sizing: border-box; min-height: 54px; padding: 12px 84px 12px 18px; font: inherit; font-size: 16px; color: var(--dx-text); background: #ffffff; border: 1px solid #d8dfee; border-radius: 12px; outline: none; -webkit-appearance: none; appearance: none}
.dx-input:focus { border-color: #0b1220; box-shadow: 0 0 0 3px rgba(11,18,32,0.14)}
.dx-input::placeholder { color: #566883}
.dx-input::-webkit-search-cancel-button { display: none}
.dx-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 1px solid var(--dx-line); background: #ffffff; color: #0b1220; font: inherit; font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 8px; cursor: pointer}
.dx-clear[hidden] { display: none}

/* filtros */
.dx-filters { background: #ffffff; border: 1px solid var(--dx-line); border-radius: 14px; margin: 6px auto 26px; overflow: hidden}
.dx-tabs { display: flex; gap: 0; overflow-x: auto; padding: 0 16px; border-bottom: 1px solid var(--dx-line); scrollbar-width: none; -webkit-overflow-scrolling: touch}
.dx-tabs::-webkit-scrollbar { display: none}
.dx-tabs .vp-chip { flex: 0 0 auto; white-space: nowrap; background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; box-shadow: none; margin: 0 20px -1px 0; padding: 15px 0 12px; font-size: 14.5px; font-weight: 700; color: var(--dx-muted)}
.dx-tabs .vp-chip:last-child { margin-right: 0}
.dx-tabs .vp-chip small { font-weight: 700; margin-left: 5px; font-size: 12px; opacity: .75}
.dx-tabs .vp-chip.is-on { color: #0b1220; border-bottom-color: #0b1220; background: none}
.dx-signs { padding: 16px 16px 18px}
.dx-chips { display: flex; flex-wrap: wrap; gap: 8px}
.dx-chips .vp-chip { flex: 0 0 auto; background: #ffffff; border: 1px solid #d8dfee; color: #0b1220; box-shadow: none; font-size: 13.5px; font-weight: 600; padding: 9px 14px; border-radius: 999px}
.dx-chips .vp-chip.is-on { background: #17233f; border-color: #0b1220; color: #ffffff}

/* faixas de itens (mais procurados / recentes / relacionados) */
.dx-quick { margin-bottom: 26px}
.dx-quick[hidden] { display: none}
.dx-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch}
.dx-mini { flex: 0 0 104px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: left; font: inherit; color: inherit; background: #ffffff; border: 1px solid var(--dx-line); border-radius: 12px; padding: 8px 8px 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .15s}
.dx-mini:hover, .dx-mini:focus-visible { border-color: #0b1220; outline: none}
.dx-mini-img { display: block; aspect-ratio: 1 / 1; background: var(--dx-tile); border-radius: 8px; overflow: hidden; border: 1px solid #d8dfee; box-sizing: border-box}
.dx-mini-img img { display: block; width: 100%; height: 100%; object-fit: cover}
.dx-mini-n { font-size: 13px; line-height: 1.3; font-weight: 700; color: #0b1220; overflow-wrap: anywhere; min-height: 34px}

/* resultados */
.dx-results-h { scroll-margin-top: 84px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px}
.dx-results-h .dx-h { margin: 0; font-size: 19px}
.dx-count { margin: 0; font-size: 13px; font-weight: 700; color: var(--dx-muted); text-align: right}
.dx-sec + .dx-sec { margin-top: 32px}
.dx-sec-h { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--dx-line); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline}
.dx-sec-h h2 { margin: 0; font-size: 18px; color: #0b1220}
.dx-sec-h span { font-size: 12.5px; font-weight: 700; color: var(--dx-muted)}
.dx-sec-h p { grid-column: 1 / -1; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--dx-muted)}
.dx-grid { display: grid; grid-template-columns: 1fr; gap: 12px}

.dx-card { display: grid; grid-template-columns: 80px 1fr 12px; gap: 14px; align-items: center; text-decoration: none; background: #ffffff; border: 1px solid var(--dx-line); border-radius: 14px; padding: 12px 14px 12px 12px; color: inherit; transition: border-color .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent}
.dx-card:hover, .dx-card:focus-visible { border-color: #0b1220; box-shadow: 0 4px 14px rgba(11,18,32,0.08); outline: none}
.dx-card:active { background: #f8f9fd}
.dx-card-img { display: block; width: 80px; height: 80px; background: var(--dx-tile); border-radius: 10px; overflow: hidden; border: 1px solid #d8dfee; box-sizing: border-box}
.dx-card-img img { display: block; width: 100%; height: 100%; object-fit: cover}
.dx-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0}
.dx-card-top { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center}
.dx-gl { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--dx-muted)}
.dx-gl::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #17233f}
[data-g="planta"] .dx-gl::before { background: var(--dx-planta)}
[data-g="alimento"] .dx-gl::before { background: var(--dx-alimento)}
[data-g="limpeza"] .dx-gl::before { background: var(--dx-limpeza)}
[data-g="medicamento"] .dx-gl::before { background: var(--dx-medicamento)}
.dx-flag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .3px; border-radius: 4px; padding: 2px 7px; background: #8f1f1f; color: #ffffff}
.dx-flag--sp { background: #ffffff; color: #8f1f1f; border: 1px solid #c98a8a; padding: 1px 6px}
.dx-card-n { font-size: 17px; font-weight: 800; line-height: 1.25; color: #0b1220; overflow-wrap: anywhere}
.dx-card-sub { font-size: 12.5px; color: var(--dx-muted); font-style: italic; overflow-wrap: anywhere; line-height: 1.35}
.dx-card-s { font-size: 13.5px; line-height: 1.5; color: #566883; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden}
.dx-card-go { width: 9px; height: 9px; border-right: 2px solid #98a3b0; border-top: 2px solid #98a3b0; transform: rotate(45deg); justify-self: end; margin-right: 2px}
.dx-card:hover .dx-card-go { border-color: #0b1220}
.dx-card mark, .dx-sheet mark { background: rgba(232,185,35,0.24); color: inherit; border-radius: 2px; padding: 0 1px}

.dx-empty { text-align: center; background: #ffffff; border: 1px solid var(--dx-line); border-radius: 14px; padding: 28px 20px}
.dx-empty[hidden] { display: none}
.dx-empty p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: #566883; overflow-wrap: anywhere}
.dx-empty-btns { display: flex; flex-direction: column; gap: 10px}

/* dicas e notas */
.dx-tips { margin-top: 40px}
.dx-tips details { background: #ffffff; border: 1px solid var(--dx-line); border-bottom-width: 0; padding: 0 18px}
.dx-tips details:first-of-type { border-radius: 14px 14px 0 0}
.dx-tips details:last-of-type { border-bottom-width: 1px; border-radius: 0 0 14px 14px}
.dx-tips summary { cursor: pointer; font-weight: 700; color: #0b1220; font-size: 15px; padding: 17px 28px 17px 0; position: relative; list-style: none}
.dx-tips summary::-webkit-details-marker { display: none}
.dx-tips details p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.7; color: #566883}
.dx-foot { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--dx-line)}
.dx-note { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--dx-muted)}
.dx-note + .dx-note { margin-top: 10px}
.dx-note strong { color: #0b1220}
.dx-note a { color: #0b1220; font-weight: 700}

/* detalhe (folha deslizante no celular, janela no PC) */
html.dx-lock, html.dx-lock body { overflow: hidden}
.dx-modal { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: flex-end; justify-content: center}
.dx-modal[hidden] { display: none}
.dx-backdrop { position: absolute; inset: 0; background: rgba(11,18,32,0.6); animation: dxFade .2s ease-out}
.dx-sheet { position: relative; width: 100%; max-height: 94vh; max-height: 94dvh; background: #ffffff; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(11,18,32,0.25); animation: dxUp .26s cubic-bezier(.2, .8, .2, 1); outline: none}
.dx-sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 12px 16px; border-bottom: 1px solid var(--dx-line); flex-shrink: 0}
.dx-nav { display: flex; gap: 6px}
.dx-navbtn { border: 1px solid #d8dfee; background: #ffffff; color: #0b1220; font: inherit; font-size: 13px; font-weight: 700; padding: 9px 13px; border-radius: 8px; cursor: pointer}
.dx-navbtn[hidden] { display: none}
.dx-x { border: 0; background: #17233f; color: #ffffff; font: inherit; font-size: 13.5px; font-weight: 800; padding: 10px 18px; border-radius: 8px; cursor: pointer}
.dx-sheet-body { padding: 22px 20px calc(30px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain}

.dx-m-head { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center}
.dx-m-img { display: block; width: 96px; height: 96px; background: var(--dx-tile); border-radius: 14px; overflow: hidden; border: 1px solid #d8dfee; box-sizing: border-box}
.dx-m-img img { display: block; width: 100%; height: 100%; object-fit: cover}
.dx-m-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 8px}
.dx-m-title { margin: 0; font-size: 24px; line-height: 1.2; color: #0b1220; overflow-wrap: anywhere; letter-spacing: -.2px}
.dx-m-sub { margin: 5px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--dx-muted)}
.dx-m-sub.is-sci { font-style: italic}
.dx-m-sum { margin: 20px 0 0; font-size: 16px; line-height: 1.65; color: var(--dx-text); font-weight: 600}
.dx-sp { margin: 18px 0 0; background: #ffffff; border: 1px solid #b42318; color: #8f1f1f; font-weight: 700; font-size: 14.5px; line-height: 1.55; border-radius: 10px; padding: 12px 14px}
.dx-m-sec { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--dx-line)}
.dx-m-sec h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: .9px; text-transform: uppercase; color: #0b1220; font-weight: 800}
.dx-m-sec p { margin: 0; font-size: 15.5px; line-height: 1.75; color: #0b1220; overflow-wrap: anywhere}
.dx-m-sec--sg { border-top: 3px solid #0b1220}
.dx-m-sec--sg h3 { font-size: 13px}
.dx-m-sec--sg p { font-size: 16px; color: var(--dx-text)}
.dx-m-cta { margin-top: 28px; background: #17233f; border-radius: 14px; padding: 20px 18px}
.dx-m-cta p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.65; color: #e3ecf7}
.dx-m-cta p b { color: #ffffff}
.dx-m-rel { margin-top: 28px}
.dx-m-rel h3 { margin: 0 0 12px; font-size: 17px; color: #0b1220; font-weight: 800}
.dx-m-rel .dx-strip { margin-bottom: 0}
.dx-m-actions { display: flex; gap: 10px; margin-top: 22px}
.dx-m-actions .vp-btn { flex: 1}
.dx-m-src { margin: 20px 0 0; font-size: 12px; line-height: 1.6; color: #566883}

.dx-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 6000; background: #0b1220; color: #ffffff; font-size: 14px; font-weight: 600; padding: 12px 18px; border-radius: 10px; box-shadow: 0 8px 24px rgba(11,18,32,0.3); max-width: 90vw; text-align: center}
.dx-toast[hidden] { display: none}

@keyframes dxFade { from { opacity: 0} to { opacity: 1} }
@keyframes dxUp { from { transform: translateY(40px); opacity: .4} to { transform: translateY(0); opacity: 1} }
@keyframes dxPop { from { transform: scale(.97); opacity: .4} to { transform: scale(1); opacity: 1} }
@media (prefers-reduced-motion: reduce) { .dx-backdrop, .dx-sheet, .dx-card, .dx-mini { animation: none !important; transition: none !important} }

@media (max-width: 380px) {
  .dx-card { grid-template-columns: 68px 1fr 10px; gap: 12px}
  .dx-card-img { width: 68px; height: 68px}
  .dx-m-head { grid-template-columns: 80px 1fr; gap: 14px}
  .dx-m-img { width: 80px; height: 80px}
  .dx-m-title { font-size: 22px}
}

@media (min-width: 720px) {
  .dx-intro { padding: 30px 32px 28px}
  .dx-intro h2 { font-size: 28px}
  .dx-alert-b { padding: 22px 32px 8px}
  .dx-alert-h { padding: 14px 32px}
  .dx-alert-btns { flex-direction: row}
  .dx-do-cols { grid-template-columns: 1fr 1fr; gap: 32px}
  .dx-signs { padding: 18px 24px 22px}
  .dx-tabs { padding: 0 24px}
  .dx-grid { grid-template-columns: 1fr 1fr; gap: 14px}
  .dx-mini { flex-basis: 128px}
  .dx-empty-btns { flex-direction: row; justify-content: center}
  .dx-modal { align-items: center; padding: 24px}
  .dx-sheet { max-width: 720px; max-height: 90vh; border-radius: 20px; animation-name: dxPop}
  .dx-sheet-body { padding: 28px 36px 34px}
  .dx-m-head { grid-template-columns: 132px 1fr; gap: 22px}
  .dx-m-img { width: 132px; height: 132px}
  .dx-m-title { font-size: 30px}
  .dx-tips details { padding: 0 24px}
}

/* permite que a barra de busca fique fixa ao rolar (o container do app corta o excesso lateral com "hidden", o que impede o sticky) */
body[data-page="diretorio-toxicos"] .app-container { overflow-x: clip}
