/* Página do item /c/<id> (P-288 fatia 3, layout Mistura): duas colunas (imagem + galeria | informações), "você também pode gostar" e aviso legal. Usa os tokens de /home.css. Sem inline (CSP). */
body.mx { min-height: 100vh; }
.px-back { font-size: .95rem; font-weight: 500; color: #C9C3E0; padding: 12px 0; }
.mx-top .mx-wrap { justify-content: space-between; }
.mx-top .mx-logo { margin-right: 0; }
.px { max-width: 1100px; padding-top: 8px; padding-bottom: 24px; text-align: left; }
.px-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .px-grid { grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; } .px-media { max-width: 440px; } }
.px-media .c-art { width: 100%; max-width: none; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; border: 1px solid var(--mx-blue-line); background: #1b1438; display: block; margin: 0 0 14px; }
.px-media .c-thumbs { justify-content: flex-start; margin: 0; }
.px-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.px-info .c-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: clamp(1.7rem, 3.8vw, 2.4rem); line-height: 1.1; margin: 0; color: var(--mx-text); }
.px-info .c-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.px-info .c-price b { font-size: clamp(1.6rem, 3.6vw, 2.1rem); font-weight: 600; color: var(--mx-text); }
.px-info .c-price span { display: inline; font-size: .95rem; color: #A9A3C2; margin: 0; }
.px-info .c-desc { margin: 0; font-size: 1rem; line-height: 1.65; color: #C9C3E0; }
.px-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; max-width: 480px; }
.mx-btn-xl { min-height: 50px; font-size: 1rem; border-radius: 14px; }
.px-actions .mx-btn-lg { border-radius: 14px; }
.px-info .c-secure { margin: 0; font-size: .9rem; color: #A9A3C2; line-height: 1.6; max-width: 480px; }
.px-info .w-hint { margin: 0; font-size: .85rem; color: #A9A3C2; }
.px-info .c-off { color: #F6C667; }
.px-msg { text-align: center; padding: 56px 0; }
.px-msg .w-msg { font-size: 1.15rem; margin: 0 0 18px; }
.px-also { padding-top: 48px; }
.px-also h2 { margin: 0; font-size: clamp(1.4rem, 3.2vw, 1.75rem); }
.px-also-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; max-width: 720px; }
@media (max-width: 599px) { .px-also-grid { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .px-also-name { font-size: .95rem !important; } }
.px-also-card { background: #2A1B26; border: 1px solid var(--mx-blue-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; }
.px-also-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #1b1438; }
.px-also-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.15rem; font-weight: 600; line-height: 1.2; padding: 10px 14px 0; }
.px-also-card b { padding: 0 14px; font-size: 1.1rem; }
.px-foot { max-width: 1100px; padding-top: 12px; padding-bottom: 48px; color: #A9A3C2; font-size: .85rem; line-height: 1.6; }
.px-foot p { margin: 6px 0; max-width: 760px; }
.px-foot .c-ai { margin: 6px 0; font-size: .85rem; color: #A9A3C2; }
.px-foot a { color: inherit; text-decoration: underline; }

/* galeria (P-290): duas miniaturas sob a imagem; alvo de toque >= 56px */
.c-thumbs { display: flex; gap: 10px; }
.c-thumb { width: 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 10px; background: #1b1438; cursor: pointer; overflow: hidden; }
.c-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-thumb.on { border-color: var(--mx-gold); }
.c-thumb:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.px-also-note { font-size: .8rem !important; font-weight: 500 !important; color: #A9A3C2; }

/* ===== P-317: página do item no tema "Noite azul" (layout aprovado pelo dono) ===== */
body.px-page {
  --mx-blue: #0d1130; --mx-blue2: #171a3f; --mx-blue-card: #22275a; --mx-blue-line: #3a3570; --mx-gold: #e8cb8a; --mx-on-gold: #1a1230;
  background: #0d1130; padding-bottom: 0;
}
.px-page .mx-top .mx-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.px-page .px-back { margin-left: auto; padding: 8px 0; font-size: .9rem; }
.px-enter { display: inline-flex; align-items: center; font-size: .9rem; font-weight: 600; border: 1.5px solid #4a4478; border-radius: 999px; padding: 8px 16px; white-space: nowrap; color: #eeeaf8; }
@media (max-width: 520px) { .px-page .px-back { display: none; } .px-enter { margin-left: auto; } }
/* imagem BAIXA: o preço e o botão ficam acima da dobra mesmo no celular */
.px-page .px-media .c-art { aspect-ratio: 2 / 1; max-height: 220px; border-radius: 18px; }
@media (min-width: 900px) { .px-page .px-media .c-art { aspect-ratio: 16 / 10; max-height: 320px; } .px-page .px-media { max-width: 520px; } }
.px-page .px-grid { gap: 18px; }
@media (min-width: 900px) { .px-page .px-grid { gap: 44px; } }
.px-page .px-info .c-title { font-size: clamp(1.6rem, 6vw, 2.4rem); overflow-wrap: anywhere; }
.px-page .px-info .c-price b { white-space: nowrap; }
.px-page .px-also-card { background: #22275a; }
/* barra de compra fixa (só no celular) */
.px-bar { display: none; }
@media (max-width: 899px) {
  .px-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #171a3f; border-top: 1px solid #3a3570; }
  .px-bar-price { font-size: .9rem; color: #c9c3e0; min-width: 0; }
  .px-bar-price b { display: block; font-size: 1.2rem; color: #eeeaf8; white-space: nowrap; }
  .px-bar-btn { flex: none; min-height: 48px; padding: 12px 22px; border-radius: 14px; }
  body.px-page { padding-bottom: 84px; } /* o rodapé nunca fica atrás da barra */
}
.px-page .px-cart { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
.px-page .px-cart .mx-btn { background: transparent; color: #eeeaf8; border: 1.5px solid #4a4478; border-radius: 14px; }
.px-page .px-cart a { color: var(--mx-gold); font-weight: 600; }

/* ===== compacto (pedido do dono, 16/11): imagem pequena, preço e DOIS botões acima da dobra ===== */
.px-page .px-media .c-art { aspect-ratio: 3 / 1; max-height: 120px; }
@media (min-width: 900px) { .px-page .px-media .c-art { aspect-ratio: 16 / 10; max-height: 320px; } }
.px-page .px-actions { gap: 10px; margin-top: 4px; }
.px-page .px-cart-btn { background: transparent; color: #eeeaf8; border: 1.5px solid #4a4478; border-radius: 14px; min-height: 50px; }
.px-page .px-wa-alt { text-align: center; font-size: .92rem; color: #c9c3e0; padding: 6px 0; text-decoration: underline; }
.px-page .px-wa-alt svg { width: 16px; height: 16px; vertical-align: -3px; }
.px-cart-view { color: var(--mx-gold); font-weight: 600; font-size: .92rem; }
/* barra clara depois de adicionar ao carrinho: Continuar comprando | Pagar (cobre a barra de compra) */
.px-added { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #f3eefc; color: #1a1230; box-shadow: 0 -6px 24px rgba(0,0,0,.35); }
.px-added[hidden] { display: none; }
.px-added-msg { font-weight: 700; flex: 1 1 100%; }
.px-added .mx-btn { flex: 1 1 140px; min-height: 48px; border-radius: 14px; border: 1.5px solid #1a1230; color: #1a1230; background: transparent; }
.px-added .mx-btn-gold { background: #e8cb8a; border-color: #e8cb8a; }
@media (min-width: 900px) { .px-added { left: auto; right: 24px; bottom: 24px; max-width: 420px; border-radius: 18px; } }

/* ===== P-317 fatia 2/3: imagem sem cortar o motivo e descrição colapsada ===== */
/* a arte é 1:1 com o título embutido embaixo: mostramos o TOPO (o desenho), alinhado em cima, nunca o centro/rodapé */
.px-page .px-media .c-art { aspect-ratio: auto; height: 170px; max-height: none; object-fit: cover; object-position: 50% 0%; }
@media (min-width: 900px) { .px-page .px-media .c-art { height: auto; aspect-ratio: 16 / 10; max-height: 320px; object-position: 50% 0%; } }
.px-desc { display: flex; flex-direction: column; gap: 6px; }
.px-more { position: absolute; opacity: 0; pointer-events: none; }
.px-page .c-desc-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .95rem; margin: 0; }
.px-more:checked ~ .c-desc-clamp { -webkit-line-clamp: unset; display: block; }
.px-morelabel { font-size: .9rem; color: var(--mx-gold); font-weight: 600; cursor: pointer; text-decoration: underline; }
.px-more:focus-visible ~ .px-morelabel { outline: 2px solid #fff; outline-offset: 3px; }

.px-morebody { display: none; flex-direction: column; gap: 8px; }
.px-more:checked ~ .px-morebody { display: flex; }
.px-morebody .c-secure { margin: 0; }

/* ===== P-317 fatia 4: mais opções de compra (cartões compactos, 2 colunas) ===== */
.px-opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
@media (min-width: 900px) { .px-opt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.px-opt { background: #22275a; border: 1px solid #3a3570; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.px-opt-rec { border: 2px solid var(--mx-gold); }
.px-opt-art { display: block; height: 84px; background: #171a3f; }
.px-opt-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; display: block; }
.px-opt-body { padding: 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.px-opt-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.1rem; line-height: 1.15; font-weight: 600; overflow-wrap: anywhere; }
.px-opt-price { font-size: 1.05rem; white-space: nowrap; }
.px-opt-note { font-size: .78rem; color: #a9a3c2; }
.px-opt-acts { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 6px; }
.px-opt .mx-btn { min-height: 40px; padding: 8px 10px; font-size: .9rem; border-radius: 12px; }
.px-opt-cart, .px-opt-see { background: transparent; color: #eeeaf8; border: 1.5px solid #4a4478; }

.px-topcart { margin-left: auto; font-size: .9rem; font-weight: 600; color: #e8cb8a; padding: 8px 0; white-space: nowrap; }
.px-topcart + .px-enter { margin-left: 12px; }
@media (max-width: 520px) { .px-topcart { margin-left: auto; } }
