/* Carrinho do catálogo da empresa (perfil): janela do produto, barra fixa do pedido e finalização */
body.pdc-aberto { overflow: hidden; }
body.pdc-aberto .whatsapp-float, body.pdc-aberto #cookie-banner, body.pdc-aberto .cookie-banner { display: none !important; }

.pdc-fundo { position: fixed; inset: 0; z-index: 100002; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pdc-fundo[hidden] { display: none; }
.pdc-janela { width: 100%; max-width: 520px; max-height: min(92vh, 860px); background: #fff; border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 50px rgba(15, 23, 42, .3); }
@media (max-width: 640px) {
    .pdc-fundo { align-items: flex-end; padding: 0; }
    .pdc-janela { max-width: none; max-height: 94vh; border-radius: 18px 18px 0 0; }
}
.pdc-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #eef2f7; }
.pdc-topo h2 { margin: 0; font-size: 1.0625rem; font-weight: 800; color: #0f172a; }
.pdc-fechar { width: 44px; height: 44px; border: 0; border-radius: 12px; background: #f1f5f9; color: #0f172a; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.pdc-fechar:focus-visible, .pdc-btn:focus-visible, .pdc-btn-sec:focus-visible, .pdc-qtd button:focus-visible, .pdc-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary, #2d2b52) 45%, #fff); outline-offset: 2px; }
.pdc-corpo { padding: 14px 16px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.pdc-pe { display: flex; gap: 10px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #eef2f7; background: #fff; }

.pdc-foto { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 10px; background: #f1f5f9; }
.pdc-desc { color: #475569; font-size: .9375rem; line-height: 1.5; margin: 0 0 10px; }
.pdc-opc-txt { margin: 0 0 10px; padding-left: 18px; color: #475569; font-size: .875rem; }
.pdc-grupo { border: 0; margin: 0 0 12px; padding: 0; }
.pdc-grupo legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; background: #f8fafc; border-radius: 10px; padding: 10px 12px; margin-bottom: 4px; font-size: .9375rem; }
.pdc-grupo legend span { font-weight: 800; color: #0f172a; }
.pdc-grupo legend small { color: #64748b; }
.pdc-obr { margin-left: auto; background: #0f172a; color: #fff; font-size: .6875rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.pdc-opcao { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.pdc-opcao input { width: 20px; height: 20px; accent-color: var(--primary, #2d2b52); flex: none; }
.pdc-opcao span { flex: 1; color: #0f172a; }
.pdc-opcao em { font-style: normal; color: #475569; font-size: .875rem; white-space: nowrap; }
.pdc-erro { color: #b42318; font-size: .875rem; font-weight: 600; margin: 6px 0 0; }
.pdc-erro-geral { background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 10px 12px; }

.pdc-rotulo { display: block; font-weight: 700; font-size: .875rem; color: #0f172a; margin: 12px 0 4px; }
.pdc-rotulo small { font-weight: 400; color: #64748b; }
.pdc-campo { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #cbd5e1; border-radius: 12px; font-size: 16px; color: #0f172a; background: #fff; }
textarea.pdc-campo { min-height: 64px; resize: vertical; }
.pdc-campo:focus { outline: 3px solid color-mix(in srgb, var(--primary, #2d2b52) 30%, #fff); border-color: var(--primary, #2d2b52); }
.pdc-campo:disabled { background: #f1f5f9; color: #94a3b8; }
.pdc-linha { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.pdc-check { display: flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; color: #0f172a; cursor: pointer; white-space: nowrap; }
.pdc-check input { width: 20px; height: 20px; accent-color: var(--primary, #2d2b52); }
.pdc-reais { display: flex; align-items: center; gap: 8px; }
.pdc-reais span { font-weight: 700; color: #475569; }

.pdc-escolha { border: 0; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pdc-escolha legend { font-weight: 700; font-size: .875rem; color: #0f172a; margin-bottom: 6px; width: 100%; }
.pdc-escolha label { cursor: pointer; }
.pdc-escolha input { position: absolute; opacity: 0; pointer-events: none; }
.pdc-escolha span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid #cbd5e1; border-radius: 12px; font-weight: 700; font-size: .9375rem; color: #334155; background: #fff; }
.pdc-escolha input:checked + span { border-color: var(--primary, #2d2b52); background: var(--primary, #2d2b52); color: #fff; }
.pdc-escolha input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary, #2d2b52) 45%, #fff); outline-offset: 2px; }

.pdc-endereco { margin-top: 10px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fafcff; }
.pdc-endereco .pdc-rotulo:first-of-type { margin-top: 10px; }
.pdc-gps-msg { font-size: .8125rem; color: #475569; margin: 6px 0 0; min-height: 1em; }
.pdc-troco { margin-top: 4px; }

.pdc-itens { list-style: none; padding: 0; margin: 0; }
.pdc-itens li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.pdc-item-info { display: flex; flex-direction: column; min-width: 0; }
.pdc-item-info strong { color: #0f172a; }
.pdc-item-info small { color: #64748b; font-size: .8125rem; line-height: 1.35; }
.pdc-item-acoes { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.pdc-item-acoes b { color: #0f172a; white-space: nowrap; }
.pdc-link { border: 0; background: none; color: var(--primary, #2d2b52); font-weight: 700; padding: 10px 0; min-height: 44px; cursor: pointer; }

.pdc-totais { margin: 14px 0 0; padding: 12px; border-radius: 12px; background: #f8fafc; }
.pdc-totais div { display: flex; justify-content: space-between; padding: 3px 0; }
.pdc-totais dt { font-weight: 500; color: #475569; }
.pdc-totais dd { margin: 0; color: #0f172a; font-weight: 700; }
.pdc-total-l { border-top: 1px solid #e2e8f0; margin-top: 4px; padding-top: 8px !important; }
.pdc-total-l dt, .pdc-total-l dd { font-size: 1.0625rem; font-weight: 900; color: #0f172a; }
.pdc-tempo { display: flex; align-items: center; gap: 6px; color: #475569; font-size: .875rem; margin: 10px 0 0; }
.pdc-tempo .ic { width: 16px; height: 16px; }

.pdc-qtd { display: inline-flex; align-items: center; border: 1.5px solid #cbd5e1; border-radius: 12px; overflow: hidden; flex: none; }
.pdc-qtd button { width: 44px; height: 48px; border: 0; background: #fff; font-size: 1.25rem; font-weight: 700; color: #0f172a; cursor: pointer; }
.pdc-qtd output { min-width: 32px; text-align: center; font-weight: 800; color: #0f172a; }
.pdc-qtd-p button { width: 40px; height: 40px; }
.pdc-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--primary, #2d2b52); color: #fff; font-weight: 800; font-size: 1rem; cursor: pointer; }
.pdc-btn:hover { filter: brightness(1.08); }
.pdc-enviar { background: #0f7a41; }
.pdc-enviar .marca { font-size: 20px; }
.pdc-btn-sec { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--primary, #2d2b52); border-radius: 12px; background: #fff; color: var(--primary, #2d2b52); font-weight: 700; cursor: pointer; }
.pdc-btn-sec .ic { width: 18px; height: 18px; }

/* barra fixa "Ver pedido" */
.pdc-barra { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 100001; width: min(560px, calc(100% - 24px)); }
.pdc-barra[hidden] { display: none; }
.pdc-barra-btn { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 16px; border: 0; border-radius: 16px; background: #0f7a41; color: #fff; font-weight: 800; font-size: 1rem; box-shadow: 0 10px 30px rgba(15, 23, 42, .3); cursor: pointer; }
.pdc-barra-btn strong { margin-left: auto; }
.pdc-barra-qtd { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 9px; background: #fff; color: #0f7a41; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
.pdc-barra-btn:focus-visible { outline: 3px solid #86efac; outline-offset: 3px; }
@media (max-width: 991px) { .pdc-barra { bottom: calc(84px + env(safe-area-inset-bottom)); } }
body.pdc-com-barra .whatsapp-float { display: none !important; }

.pdc-aviso { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: 100003; background: #0f172a; color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: .9375rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center; }
.pdc-aviso-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 991px) { .pdc-aviso { bottom: 160px; } }
@media (prefers-reduced-motion: reduce) { .pdc-aviso { transition: none; } }
.pdc-fechado { flex: 1; margin: 0; padding: 12px; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-weight: 700; font-size: .9375rem; text-align: center; }
.pdc-itens-acoes { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.pdc-limpar { color: #b42318; display: inline-flex; align-items: center; gap: 6px; }
.pdc-limpar .ic { width: 16px; height: 16px; }
.pdc-lgpd { font-size: .75rem; color: #64748b; margin: 10px 0 0; line-height: 1.4; }
.pdc-enviar:disabled { opacity: .6; cursor: wait; }

/* produto para ver, sob consulta, pedido de informações */
.pdc-preco-ver { margin: 0 0 10px; font-size: 1.125rem; color: #0f172a; }
.pdc-preco-ver s { color: #6b7280; font-size: .9375rem; }
.pdc-preco-consulta { display: inline-block; font-size: .875rem; font-weight: 700; color: #0f7a41; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 4px 10px; }
.pdc-perguntar { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; background: #0f7a41; color: #fff; }
.pdc-perguntar:hover { color: #fff; filter: brightness(1.08); }
.pdc-pe.pdc-pe-coluna { flex-direction: column; align-items: stretch; }
.pdc-pe.pdc-pe-coluna .pdc-fechado { flex: none; }
.pdc-consulta-txt { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #f0fdf4; color: #14532d; font-size: .875rem; }

/* Selos, esgotado, compartilhar, mínimo, peça também, bairros e mapa */
.pdc-selos { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.pdc-selos span { font-size: .75rem; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: #fef3c7; color: #92400e; }
.pdc-esgotado { display: inline-block; margin: 0 0 8px; font-size: .875rem; font-weight: 800; color: #fff; background: #334155; border-radius: 8px; padding: 4px 10px; }
.pdc-qtd-desc { margin: 0 0 6px; font-weight: 700; color: #0f7a41; }
.pdc-ultimas { margin: 0 0 6px; font-weight: 700; color: #b45309; }
.pdc-compartilhar { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; }
.pdc-compartilhar .ic { width: 16px; height: 16px; }
.pdc-barra-min { margin: 0 0 6px; padding: 7px 12px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: .875rem; font-weight: 700; text-align: center; box-shadow: 0 6px 18px rgba(15, 23, 42, .15); }
.pdc-barra-min[hidden] { display: none; }
.pdc-sugestoes { margin: 4px 0 16px; }
.pdc-sugestoes h3 { font-size: .9375rem; font-weight: 800; margin: 0 0 8px; color: #0f172a; }
.pdc-sugestoes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pdc-sugestoes button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 10px 6px 6px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; text-align: left; cursor: pointer; }
.pdc-sugestoes button:hover { border-color: #0f7a41; }
.pdc-sugestoes button:focus-visible { outline: 3px solid var(--primary, #2d2b52); outline-offset: 2px; }
.pdc-sugestoes img, .pdc-sug-sem { flex: none; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #f1f5f9; display: inline-flex; align-items: center; justify-content: center; color: #94a3b8; }
.pdc-sugestoes button > span:not(.pdc-sug-sem) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pdc-sugestoes strong { font-size: .875rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdc-sugestoes small { font-size: .8125rem; color: #0f7a41; font-weight: 700; }
.pdc-sugestoes small s { color: #6b7280; font-weight: 400; }
.pdc-sugestoes button > .ic { flex: none; width: 32px; height: 32px; padding: 6px; border-radius: 8px; background: #0f7a41; color: #fff; }
.pdc-loc-botoes { display: flex; flex-wrap: wrap; gap: 8px; }
.pdc-mapa-box { margin: 10px 0 0; }
.pdc-mapa { height: 240px; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; }
.pdc-mapa-dica { margin: 6px 0 0; font-size: .8125rem; color: #475569; }
select.pdc-campo { appearance: auto; }
