@charset "utf-8";
/* conta_cliente.css — compras_historico, compras_detalhe, avaliar_produtos, relatar_problema, favoritos, meus_dados
   Carregar DEPOIS de index.css e loja_carrinho.css (usa as variáveis e classes ct-*, ck-*, pd-* deles) */

/* ---------- pedidos ---------- */
.cc-pedidos { display: flex; flex-direction: column; gap: 18px; }
.cc-pedido, .cc-prod { display: block; }
.cc-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cc-topo h2 { margin: 0 0 2px; }
.cc-status { display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.cc-andamento { background: var(--azul-claro, #eaf4ff); color: var(--azul, #0b6cf0); }
.cc-entregue { background: #dcfce7; color: #166534; }
.cc-cancelado { background: #fee2e2; color: #991b1b; }

.cc-dados { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; margin: 0 0 16px; padding: 14px 0; border-top: 1px solid #eef2f8; border-bottom: 1px solid #eef2f8; }
.cc-dados > div { min-width: 0; }
.cc-dados dt { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--cinza, #5b6785); margin-bottom: 3px; }
.cc-dados dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.cc-dados .cc-largo { grid-column: 1 / -1; }
.cc-total { font-size: 20px !important; font-weight: 700; color: var(--azul, #0b6cf0); }

.cc-acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-acoes .ct-btn { min-height: 42px; font-size: 14px; }
.cc-confirma { margin-top: 14px; }
.cc-aviso { margin-top: 14px; }
.cc-paginacao { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 24px 0 0; }
.cc-off { opacity: .4; cursor: not-allowed; }

/* ---------- avaliação ---------- */
.cc-prod-topo { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.cc-prod-topo .ct-foto { width: 90px; height: 90px; flex: none; }
.cc-estrelas { display: flex; align-items: center; gap: 4px; margin: 6px 0 4px; }
.cc-estrela { border: 0; background: none; padding: 0 2px; font-size: 34px; line-height: 1; color: #cbd5e1; cursor: pointer; transition: color .12s, transform .1s; }
.cc-estrela:hover { transform: scale(1.12); }
.cc-estrela.on { color: #f5a623; }
.cc-estrela:focus-visible { outline: 3px solid #38bffd; outline-offset: 2px; border-radius: 6px; }
.cc-nota-texto { margin-left: 10px; font-size: 14px; color: var(--cinza, #5b6785); }
.cc-prod .pv-textarea, .cc-reclamacao .pv-textarea, #formReclamacao .pv-textarea { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; font-size: 15px; resize: vertical; }

/* ---------- solicitar produto ---------- */
#formSolicitar .pv-textarea { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; font-size: 15px; resize: vertical; box-sizing: border-box; }
.sp-outro { margin: 8px 0 0; }
.sp-link { background: none; border: 0; padding: 0; font: inherit; color: var(--azul, #0b6cf0); text-decoration: underline; cursor: pointer; }

/* ---------- reclamação ---------- */
.cc-reclamacao h3 { margin: 18px 0 8px; font-size: 16px; }
#formReclamacao select.ck-input { max-width: 420px; }

/* ---------- favoritos ---------- */
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.fav-item { position: relative; display: flex; }
.fav-item .produto-card, .fav-grid .produto-card { width: 100%; height: 100%; }
.fav-remover { position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; padding: 0; border: 1px solid #fecaca; border-radius: 50%; background: #fff; color: #e5484d; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 6px rgba(20, 40, 90, .15); transition: background .15s, color .15s; }
.fav-remover:hover:not(:disabled) { background: #e5484d; color: #fff; }
.fav-remover:disabled { opacity: .5; cursor: wait; }
.fav-remover:focus-visible { outline: 3px solid #38bffd; outline-offset: 2px; }

/* ---------- meus dados ---------- */
.cc-abas { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.cc-abas a { padding: 8px 16px; border-radius: 999px; background: var(--azul-claro, #eaf4ff); color: var(--azul, #0b6cf0); font-size: 14px; font-weight: 600; text-decoration: none; }
.cc-abas a:hover { background: var(--azul, #0b6cf0); color: #fff; }
.ct-card[id] { scroll-margin-top: 14px; }
.cc-foto-linha { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 6px; }
.cc-foto { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--azul-borda, #d6e8fb); background: #fff; }
.cc-foto-linha label.ct-btn { cursor: pointer; }
.cc-foto-linha p { margin: 6px 0 0; }
.cc-fixo { min-height: 44px; display: flex; align-items: center; max-width: 420px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f1f5f9; color: var(--texto, #1b2540); overflow-wrap: anywhere; }
.ck-duas .cc-fixo { max-width: none; }
.cc-end { margin-bottom: 12px; }
.cc-end .ck-botoes { margin-top: 12px; }
.cc-end .ct-btn { min-height: 40px; font-size: 14px; }
.cc-end .cc-confirma-end { margin-top: 12px; }
select.ck-input { background: #fff; }

/* ---------- responsivo ---------- */
@media screen and (max-width: 960px) {
    .cc-dados { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 560px) {
    .cc-dados { grid-template-columns: 1fr; }
    .cc-topo { flex-direction: column; }
    .cc-prod-topo .ct-foto { width: 72px; height: 72px; }
    .cc-estrela { font-size: 30px; }
    .fav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cc-acoes .ct-btn { width: 100%; }
}

/* Minhas perguntas */
.mp-lista { display: flex; flex-direction: column; gap: 14px; }
.mp-card { display: flex; gap: 18px; align-items: flex-start; }
.mp-produto { flex: 0 0 150px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; color: inherit; font-size: 14px; font-weight: 600; }
.mp-produto img { width: 130px; height: 130px; object-fit: contain; border-radius: 8px; background: #fff; }
.mp-produto:hover span { text-decoration: underline; }
.mp-conteudo { flex: 1; min-width: 0; }
.mp-linha { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-top: 4px; }
.mp-pergunta, .mp-resposta { margin: 4px 0 12px; line-height: 1.45; word-break: break-word; }
.mp-resposta { padding: 10px 12px; background: #eef5ff; border-left: 4px solid #0b6cf0; border-radius: 6px; }
.mp-aguardando { margin: 4px 0 12px; color: #8a6d00; font-style: italic; }
@media (max-width: 600px) { .mp-card { flex-direction: column; } .mp-produto { flex-basis: auto; flex-direction: row; text-align: left; } .mp-produto img { width: 70px; height: 70px; } }
