/* Crazy Horse Camisetas — páginas informativas, atendimento e 404 (agente INFO).
   Depende de /css/store.css. Mobile first: tudo funciona a partir de 360 px. */

/* Link "Pular para o conteúdo" e main:focus ficam em store.css. */

/* Cabeçalho das páginas */
.page-head .h1 { color: #fff; max-width: 20ch; margin-top: 10px; }
.page-head .lead { margin: 0; }
.page-head .breadcrumbs a { color: #d6d0c3; }
.breadcrumbs .sep { margin: 0 6px; opacity: .6; }
.page-head .updated { margin: 16px 0 0; font-size: 13px; color: #a9a293; }

/* Layout: índice + texto */
.info-layout { display: grid; gap: 24px; }
.info-main { min-width: 0; }
@media (min-width: 960px) {
  .info-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
  .info-toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; }
}

/* Índice de seções */
.info-toc { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.info-toc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 12px 18px; font: 700 16px/1 var(--font-display); letter-spacing: 1.2px; text-transform: uppercase; }
.info-toc > summary::-webkit-details-marker { display: none; }
.info-toc > summary::after { content: '+'; font: 400 24px/1 var(--font-body); color: var(--gold-deep); }
.info-toc[open] > summary::after { content: '−'; }
.info-toc ol { list-style: none; margin: 0; padding: 0 8px 10px; }
.info-toc li a { display: block; padding: 9px 10px 9px 12px; border-left: 3px solid transparent; border-radius: 0 6px 6px 0; color: var(--muted); font-size: 14px; line-height: 1.35; text-decoration: none; }
.info-toc li a:hover { color: var(--ink); background: var(--paper); }
.info-toc li a[aria-current="true"] { color: var(--ink); font-weight: 600; background: var(--paper); border-left-color: var(--gold); }

/* Texto corrido */
.prose { max-width: 72ch; font-size: 16px; line-height: 1.7; overflow-wrap: break-word; }
.prose > section { scroll-margin-top: 96px; }
.prose > section + section { margin-top: 40px; padding-top: 34px; border-top: 1px solid var(--line); }
.prose h2 { font: 800 clamp(26px, 3vw, 34px)/1 var(--font-display); text-transform: uppercase; margin: 0 0 16px; scroll-margin-top: 96px; }
.prose h3 { font: 700 20px/1.15 var(--font-display); text-transform: uppercase; letter-spacing: .3px; margin: 26px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--gold-deep); font-weight: 700; }
.prose a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose a:not(.btn):hover { color: var(--gold-ink); }
.prose .alert { margin: 0 0 18px; font-size: 15px; line-height: 1.55; }
.prose .alert p:last-child { margin-bottom: 0; }
.prose .small { font-size: 14px; }
.is-fallback { font-style: normal; }

/* Números em destaque (ex.: prazos de troca) */
.info-facts { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); max-width: 72ch; }
.info-facts li { background: var(--ink); color: #fff; border-radius: 10px; padding: 18px 18px 16px; margin: 0; }
.info-facts strong { display: block; font: 900 44px/.9 var(--font-display); color: var(--gold); letter-spacing: -.5px; }
.info-facts strong small { font-size: 20px; letter-spacing: 0; }
.info-facts span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.45; color: #d6d0c3; }
.info-facts a { color: #fff; }

/* Fórmula do prazo total (entrega) */
.formula { display: grid; gap: 8px; margin: 6px 0 22px; }
.formula-part { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.formula-part.is-total { background: var(--ink); color: #fff; border-color: var(--ink); }
.formula-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-ink); }
.formula-part.is-total .formula-label { color: var(--gold); }
.formula-part strong { font: 800 24px/1.05 var(--font-display); text-transform: uppercase; }
.formula-part .small { color: var(--muted); }
.formula-part.is-total .small { color: #c9c3b6; }
.formula-op { text-align: center; font: 800 26px/1 var(--font-display); color: var(--gold-deep); }
@media (min-width: 720px) {
  .formula { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; }
  .formula-op { align-self: center; }
}

/* Passo a passo numerado */
.steps { list-style: none; counter-reset: step; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding: 2px 0 2px 46px; min-height: 34px; }
.steps > li + li { margin-top: 14px !important; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font: 800 17px/1 var(--font-display); }

/* Lista de compromissos / cartões simples */
.info-cards { list-style: none; padding: 0 !important; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.info-cards > li { margin: 0 !important; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; line-height: 1.5; font-size: 15px; }
.info-cards > li strong { display: block; font: 700 19px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 6px; }

/* Tabela que vira cartões no celular */
.info-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 0 0 18px; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.info-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.info-table tbody th { font-weight: 600; }
@media (max-width: 719px) {
  .info-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
  .info-table tr { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin-bottom: 12px; }
  .info-table th, .info-table td { border: 0; padding: 6px 0; }
  .info-table td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
}

/* Contatos em lista */
.contact-list { list-style: none; padding: 0 !important; }
.contact-list li + li { margin-top: 4px !important; }

/* Chamada final e "veja também" */
.info-cta { margin-top: 48px; max-width: 72ch; background: var(--ink); color: #fff; border-radius: 12px; padding: 24px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.info-cta .h3 { color: #fff; margin: 0 0 4px; }
.info-cta p { margin: 0; color: #c9c3b6; font-size: 15px; }
.info-cta .btn { flex-shrink: 0; }
.info-related { margin-top: 36px; max-width: 72ch; }
.info-related h2 { font: 700 15px var(--font-display); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.info-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.info-related a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid #c5c1b7; border-radius: 30px; text-decoration: none; font-size: 14px; font-weight: 600; background: var(--card); }
.info-related a:hover { border-color: var(--gold-deep); }
.info-related a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ------------------------------------------------------------------------- */
/* Atendimento                                                               */
/* ------------------------------------------------------------------------- */
.support-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "channels" "form" "faq"; }
.support-channels { grid-area: channels; }
.support-form { grid-area: form; min-width: 0; }
.support-faq { grid-area: faq; }
@media (min-width: 960px) {
  .support-grid { grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto 1fr; grid-template-areas: "form channels" "form faq"; gap: 24px 40px; align-items: start; }
}
.support-grid .card .h3 { margin-bottom: 12px; }
@media (max-width: 480px) { .support-grid .card { padding: 18px 16px; } }

.channel-skeleton { height: 60px; }
.channel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.channel { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; }
a.channel:hover { border-color: var(--gold-deep); }
.channel-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold); }
.channel-icon.is-wa { background: #1f8f4e; color: #fff; }
.channel-icon svg { width: 22px; height: 22px; }
.channel-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.channel-text strong { font-size: 15px; }
.channel-text span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.channel-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

.faq-links { list-style: none; margin: 0; padding: 0; }
.faq-links li + li { border-top: 1px solid var(--line); }
.faq-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 46px; padding: 8px 0; text-decoration: none; font-size: 14px; font-weight: 600; }
.faq-links a::after { content: '→'; color: var(--gold-deep); }
.faq-links a:hover { color: var(--gold-ink); }

.support-form .form-intro { margin: -4px 0 18px; color: var(--muted); font-size: 14px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field .optional { font-weight: 400; color: var(--muted); }
.field textarea[aria-invalid="true"] { border-color: var(--error); }
.field-foot { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.field-foot .field-error:empty { display: none; }
.counter { margin-left: auto; margin-top: 5px; font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.counter.is-near { color: var(--warn); }
.counter.is-over { color: var(--error); font-weight: 700; }
.type-hint:empty { display: none; }
.form-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.form-actions .btn { width: 100%; }
@media (min-width: 640px) { .form-actions { flex-direction: row; align-items: center; } .form-actions .btn { width: auto; min-width: 220px; } }
.form-privacy { margin: 0; font-size: 12px; color: var(--muted); }
.form-privacy a { color: inherit; }
.btn .spinner { width: 18px; height: 18px; border-width: 2px; }
#form-error { margin-bottom: 16px; }
#form-error:empty { display: none; }
.signed-in { margin: 0 0 16px; font-size: 13px; }

.support-success { outline: none; }
.support-success .protocol { display: inline-block; margin: 4px 0 2px; padding: 6px 14px; border-radius: 8px; background: var(--paper); border: 1px dashed var(--gold-deep); font: 800 28px/1 var(--font-display); letter-spacing: 2px; }
.success-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); margin-bottom: 12px; }
.success-icon svg { width: 26px; height: 26px; }

/* Meus chamados */
.tickets { margin-top: 48px; }
.tickets-head { margin-bottom: 16px; }
.tickets-head .h2 { margin: 0; }
.ticket-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticket { background: var(--card); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.ticket > details > summary { list-style: none; cursor: pointer; display: grid; gap: 6px; padding: 16px 18px; min-height: 48px; }
.ticket > details > summary::-webkit-details-marker { display: none; }
.ticket-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.ticket-title { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ticket-title::before { content: '▸'; color: var(--gold-deep); transition: transform .15s; display: inline-block; }
.ticket > details[open] .ticket-title::before { transform: rotate(90deg); }
.ticket-proto { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.ticket-meta { font-size: 13px; color: var(--muted); }
.ticket-body { padding: 0 18px 18px; display: grid; gap: 10px; }
.msg { padding: 12px 14px; border-radius: 8px; background: var(--paper); min-width: 0; }
.msg-loja { background: #fbf6ea; border-left: 3px solid var(--gold); }
.msg-who { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.msg-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.ticket-foot { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.ticket-skeleton { height: 78px; }
.tickets .empty-state { background: var(--card); border: 1px dashed var(--line); border-radius: 10px; padding: 32px 20px; }

/* ------------------------------------------------------------------------- */
/* 404                                                                       */
/* ------------------------------------------------------------------------- */
.nf { background: var(--ink); color: #fff; display: flex; }
.nf > .wrap { display: grid; gap: 28px; align-items: center; padding-top: 48px; padding-bottom: 64px; }
@media (min-width: 900px) { .nf > .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding-top: 72px; padding-bottom: 90px; } }
.nf-code { margin: 0 0 14px; font: 900 clamp(88px, 24vw, 190px)/.8 var(--font-display); letter-spacing: -2px; color: transparent; -webkit-text-stroke: 2px var(--gold); }
@supports not (-webkit-text-stroke: 2px black) { .nf-code { color: var(--gold); } }
.nf .h1 { color: #fff; max-width: 16ch; margin: 12px 0 14px; }
.nf .lead { color: #c9c3b6; margin: 0 0 24px; }
.nf .row .btn { flex: 1 1 200px; }
@media (min-width: 640px) { .nf .row .btn { flex: 0 0 auto; } }
.nf-help { margin: 22px 0 0; font-size: 14px; color: #a9a293; }
.nf-help a { color: var(--gold); font-weight: 600; }
.nf-art { display: flex; justify-content: center; }
.nf-art svg { width: 100%; max-width: 420px; height: auto; }
