/* Carol Modas · página de produto, checkout e confirmação (usa as variáveis e botões do style.css) */
.pg { background: var(--papel); min-height: 100vh; display: flex; flex-direction: column; }
.pg > main { flex: 1; width: 100%; }
.pg-header { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px var(--pad); background: #FFFBEEE6; backdrop-filter: blur(14px); border-bottom: 1px solid #1C161114; }
.pg-voltar { text-decoration: none; font-size: 15px; justify-self: start; }
.pg-voltar:hover { color: var(--ambar-txt); }
.pg-header .brand-palavra { width: 190px; }
.pg-header .brand-flor { width: 34px; height: 34px; }
.pg-header .bag-open { justify-self: end; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 99px; border: 1px solid #1C161126; text-decoration: none; }
.pg-header .bag-open b { min-width: 20px; height: 20px; border-radius: 99px; background: var(--sol); font-size: 12px; display: inline-grid; place-items: center; font-family: Bidua; font-weight: 400; }
.pg-seguro { justify-self: end; font-size: 13px; color: var(--verde); letter-spacing: .04em; }
.pg-footer { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; padding: 34px var(--pad); background: var(--cafe); color: #FEF6DAb0; font-size: 13px; letter-spacing: .08em; }
.pg-footer a { text-decoration: none; }
.pg-footer a:hover { color: var(--sol); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-linha-cafe { border: 1.5px solid var(--cafe); background: transparent; color: var(--cafe); }
.btn-linha-cafe:hover { background: var(--cafe); color: var(--creme); }

/* ---------- produto ---------- */
.pd { padding: 22px var(--pad) 80px; }
.pd-trilha { font-size: 13px; color: var(--cafe-3); margin-bottom: 22px; letter-spacing: .03em; }
.pd-trilha a { text-decoration: none; }
.pd-trilha a:hover { color: var(--ambar-txt); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.pd-foto { position: sticky; top: 92px; margin: 0; }
.pd-foto img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 40%; border-radius: var(--raio); background: var(--creme-2); cursor: zoom-in; box-shadow: 0 30px 60px #1C16111f; }
.pd-foto .vt-selo { position: absolute; z-index: 2; top: 16px; left: 16px; }
.pd-foto figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--cafe-3); }
.pd-foto figcaption a { color: var(--ambar-txt); text-decoration: none; }
.pd-info h1 { font-size: clamp(40px, 4.6vw, 68px); line-height: .95; }
.pd-preco { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 26px; }
.pd-preco strong { font-family: Bidua; font-weight: 400; font-size: clamp(32px, 3vw, 42px); color: var(--ambar-txt); }
.pd-preco small { color: var(--cafe-3); font-size: 15px; }
.pd-obs { margin: -12px 0 24px; padding-left: 14px; border-left: 3px solid var(--sol); font-size: 15px; color: var(--cafe-3); }
.pd-cor-lista { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-cor-lista button { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 10px; border-radius: 99px; border: 1.5px solid #1C161130; background: var(--papel); cursor: pointer; font-size: 15px; transition: background .2s, border-color .2s; }
.pd-cor-lista button i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #1C161140; flex: none; }
.pd-cor-lista button:hover { border-color: var(--cafe); }
.pd-cor-lista button[aria-checked="true"] { background: var(--cafe); color: var(--creme); border-color: var(--cafe); }
.pd-cor-lista button[aria-checked="true"] i { border-color: var(--creme); }
.pd-cores.erro .pd-cor-lista button { border-color: #c2410c; }
.pd-cor-nota { margin: 10px 0 0; font-size: 13px; color: var(--cafe-3); }
.pd-cor-nota a { color: var(--ambar-txt); }
.pd-pecas { border: 0; padding: 0; margin: 0 0 18px; }
.pd-pecas legend { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--cafe-3); margin-bottom: 12px; padding: 0; }
.pd-peca { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; padding: 16px 18px; border-radius: 18px; background: var(--creme); border: 1.5px solid transparent; margin-bottom: 10px; transition: opacity .25s, border-color .25s; }
.pd-peca.off { opacity: .45; }
.pd-peca.off .pd-tams { pointer-events: none; }
.pd-peca.erro { border-color: #c2410c; }
.pd-check { grid-row: span 2; align-self: start; cursor: pointer; padding-top: 2px; }
.pd-check[hidden] { display: none; }
.pd-check input { position: absolute; opacity: 0; }
.pd-check span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--cafe); }
.pd-check input:checked + span { background: var(--cafe); }
.pd-check input:checked + span::after { content: "✓"; color: var(--sol); font-family: Arial; font-size: 15px; }
.pd-check input:focus-visible + span { outline: 2px solid var(--ambar); outline-offset: 2px; }
.pd-peca-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pd-check[hidden] ~ .pd-peca-top, .pd-check[hidden] ~ .pd-tams, .pd-check[hidden] ~ .pd-cor-peca { grid-column: 1 / -1; }
.pd-cor-peca, .pd-cor-peca ~ .pd-tams { grid-column: 2; }
.pd-peca:has(.pd-cor-peca) .pd-check { grid-row: span 3; }
.pd-cor-peca button { height: 38px; font-size: 14px; padding: 0 14px 0 8px; }
.pd-cor-peca button i { width: 20px; height: 20px; }
.pd-peca.erro .pd-cor-peca button[aria-checked="false"] { border-color: #c2410c66; }
.pd-peca-top b { font-family: Bidua; font-weight: 400; font-size: 20px; }
.pd-peca-top em { font-style: normal; color: var(--ambar-txt); }
.pd-tams { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-tams button { min-width: 46px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1.5px solid #1C161130; background: var(--papel); cursor: pointer; font-family: Bidua; font-size: 16px; transition: background .2s, border-color .2s; }
.pd-tams button:hover { border-color: var(--cafe); }
.pd-tams button[aria-checked="true"] { background: var(--cafe); color: var(--sol); border-color: var(--cafe); }
.pd-qtd-linha { display: flex; justify-content: space-between; align-items: center; padding: 6px 4px 18px; }
.pd-qtd-linha > span { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--cafe-3); }
.pd-qtd { display: flex; align-items: center; gap: 4px; border: 1.5px solid #1C161130; border-radius: 99px; padding: 4px; }
.pd-qtd button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; cursor: pointer; font-size: 18px; }
.pd-qtd button:hover { background: var(--creme); }
.pd-qtd output { min-width: 26px; text-align: center; font-family: Bidua; font-size: 18px; }
.pd-aviso { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #fde7d8; color: #9a3412; font-size: 15px; }
.pd-botoes { display: grid; gap: 10px; }
.pd-botoes .btn { width: 100%; padding: 18px 26px; font-size: 18px; }
.pd-duvida { display: block; text-align: center; margin: 14px 0 26px; font-size: 14px; color: #1f8f4e; text-decoration: none; }
.pd-selos { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pd-selos li { padding: 14px; border-radius: 16px; border: 1px solid #1C161118; font-size: 13px; color: var(--cafe-3); line-height: 1.35; }
.pd-selos b { display: block; font-family: Bidua; font-weight: 400; font-size: 16px; color: var(--cafe); margin-bottom: 4px; }
.pd-faq details { border-color: #1C161118; }
.pd-mais { margin-top: clamp(70px, 9vw, 120px); }
.pd-mais h2 { font-size: clamp(36px, 4.4vw, 60px); }
.pd-rel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pd-rel-card { text-decoration: none; }
.pd-rel-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 40%; border-radius: 18px; margin-bottom: 10px; transition: transform .4s; }
.pd-rel-card:hover img { transform: translateY(-4px); }
.pd-rel-card b { display: block; font-family: Bidua; font-weight: 400; font-size: 18px; line-height: 1.1; }
.pd-rel-card span { color: var(--ambar-txt); font-size: 15px; }
.pd-zoom { border: 0; padding: 0; background: none; max-width: 96vw; max-height: 96vh; }
.pd-zoom::backdrop { background: #1C1611e6; }
.pd-zoom img { max-height: 94vh; width: auto; border-radius: 14px; cursor: zoom-out; }
.pd-zoom button { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--creme); font-size: 26px; cursor: pointer; }
.pd-barra { display: none; }

/* ---------- checkout ---------- */
.co { padding: 26px var(--pad) 90px; max-width: 1280px; margin: 0 auto; }
.co-passos { list-style: none; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0 0 34px; font-size: 13px; letter-spacing: .06em; color: var(--cafe-3); }
.co-passos[hidden] { display: none; }
.co-passos li { display: flex; align-items: center; gap: 8px; }
.co-passos li + li::before { content: ""; width: 28px; height: 1.5px; background: #1C161126; }
.co-passos i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #1C161130; font-style: normal; font-family: Bidua; }
.co-passos li.on { color: var(--cafe); }
.co-passos li.on i { background: var(--cafe); color: var(--sol); border-color: var(--cafe); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.co-grid[hidden] { display: none; }
.co-etapas { display: grid; gap: 18px; }
.co-box { padding: clamp(22px, 2.6vw, 34px); border-radius: var(--raio); background: #fff; border: 1px solid #1C161112; }
.co-box h2, .co-resumo h2 { font-size: 28px; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.co-box h2 i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sol); font-style: normal; font-size: 18px; }
.co-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.co-campos:first-of-type { margin-top: 0; }
.co-campos[hidden], .co-lojas[hidden], .co-troco[hidden] { display: none; }
.campo { display: grid; gap: 6px; font-size: 14px; color: var(--cafe-2); }
.campo.largo { grid-column: 1 / -1; }
.campo small { color: var(--cafe-3); }
.campo input, .campo textarea, .co-tam select { font: inherit; font-size: 16px; color: var(--cafe); padding: 13px 15px; border-radius: 12px; border: 1.5px solid #1C161126; background: var(--papel); width: 100%; transition: border-color .2s, box-shadow .2s; }
.campo textarea { resize: vertical; }
.campo input:focus, .campo textarea:focus, .co-tam select:focus { outline: 0; border-color: var(--ambar); box-shadow: 0 0 0 4px #F6B61633; }
.campo.erro input { border-color: #c2410c; background: #fff6f1; }
.co-box > .campo { margin-top: 16px; }
.co-opcoes { display: grid; gap: 10px; }
.opcao { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1.5px solid #1C161120; cursor: pointer; transition: border-color .2s, background .2s; }
.opcao:hover { border-color: #1C161150; }
.opcao input { width: 20px; height: 20px; accent-color: var(--cafe); flex: none; margin: 0; }
.opcao span { flex: 1; display: grid; }
.opcao b { font-family: Bidua; font-weight: 400; font-size: 18px; }
.opcao small { color: var(--cafe-3); font-size: 13px; }
.opcao em { font-style: normal; font-size: 13px; color: var(--ambar-txt); white-space: nowrap; }
.opcao:has(input:checked) { border-color: var(--cafe); background: var(--creme); }
.opcao .pag-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--cafe); color: var(--sol); font-family: Arial; font-size: 16px; }
.opcao .tag-verde { color: var(--verde); background: #2C5C3D18; padding: 4px 10px; border-radius: 99px; }
.co-lojas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.co-mini { grid-column: 1 / -1; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--cafe-3); }
.opcao.mini { padding: 12px 14px; }
.co-resumo { position: sticky; top: 92px; padding: clamp(22px, 2.6vw, 30px); border-radius: var(--raio); background: var(--creme); }
.co-resumo h2 em { font-style: normal; color: var(--ambar); }
.co-itens { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow-y: auto; }
.co-itens li { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #1C161114; }
.co-itens img { width: 62px; height: 78px; border-radius: 10px; object-fit: cover; object-position: 50% 30%; }
.co-itens b { display: block; font-family: Bidua; font-weight: 400; font-size: 17px; line-height: 1.1; }
.co-itens small { display: block; color: var(--cafe-3); font-size: 13px; }
.co-itens span { display: block; color: var(--ambar-txt); font-size: 15px; }
.co-tam { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cafe-3); margin: 4px 0; }
.co-tam select { width: auto; padding: 5px 8px; font-size: 14px; border-radius: 8px; }
.co-tam.falta select { border-color: #c2410c; background: #fff6f1; }
.co-contas { margin: 16px 0; display: grid; gap: 8px; }
.co-contas div { display: flex; justify-content: space-between; gap: 10px; }
.co-contas dt { color: var(--cafe-3); }
.co-contas dd { margin: 0; text-align: right; }
.co-total { padding-top: 12px; border-top: 1.5px solid #1C161126; align-items: baseline; }
.co-total dt { color: var(--cafe); font-family: Bidua; font-size: 20px; }
.co-total dd { font-family: Bidua; font-size: 30px; }
.co-total dd small { font-family: Resolve, sans-serif; font-size: 14px; color: var(--cafe-3); }
.co-fechar { width: 100%; padding: 19px; font-size: 19px; }
.co-nota { font-size: 13px; color: var(--cafe-3); margin: 12px 0 0; line-height: 1.45; }
.co-vazio { text-align: center; padding: 60px 0 40px; display: grid; justify-items: center; gap: 12px; }
.co-vazio[hidden] { display: none; }
.co-vazio h1, .pe h1 { font-size: clamp(40px, 5vw, 72px); }
.co-vazio h1 em, .pe h1 em { font-style: normal; color: var(--ambar); }
.co-vazio p { color: var(--cafe-3); margin: 0 0 10px; }

/* ---------- confirmação ---------- */
.pe-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.pe-grid[hidden] { display: none; }
.pe-flor { animation: gira 22s linear infinite; margin-bottom: 18px; }
.pe-ok .eyebrow b { font-weight: 400; color: var(--cafe); background: var(--sol); padding: 3px 10px; border-radius: 99px; letter-spacing: .1em; }
.pe-sub { font-size: 18px; color: var(--cafe-2); max-width: 520px; margin: 18px 0 26px; }
.pe-whats { width: auto; padding: 20px 34px; font-size: 19px; box-shadow: 0 14px 34px #1f8f4e44; animation: chama 2.4s ease-in-out infinite; }
@keyframes chama { 50% { box-shadow: 0 14px 44px #1f8f4e88; } }
.pe-linha { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; max-width: 460px; }
.pe-linha li { position: relative; padding: 0 0 22px 40px; color: var(--cafe-3); }
.pe-linha li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #1C161130; background: var(--papel); z-index: 1; }
.pe-linha li:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: #1C161118; translate: -1px 0; }
.pe-linha b { display: block; font-family: Bidua; font-weight: 400; font-size: 18px; color: var(--cafe-2); }
.pe-linha small { font-size: 13px; }
.pe-linha li.feito::before { background: var(--verde); border-color: var(--verde); }
.pe-linha li.feito::after { background: var(--verde); }
.pe-linha li.agora::before { background: var(--sol); border-color: var(--cafe); box-shadow: 0 0 0 6px #F6B61640; }
.pe-linha li.agora b { color: var(--cafe); }
.pe-pag { padding: 20px; border-radius: 18px; background: var(--cafe); color: var(--creme); margin-bottom: 24px; display: grid; gap: 10px; justify-items: start; }
.pe-pag:empty { display: none; }
.pe-pag .eyebrow { color: var(--sol); margin: 0; }
.pe-pag h3 { font-size: 36px; }
.pe-pag .co-nota { color: #FEF6DAb0; margin: 0; }
.pe-pag .campo { color: #FEF6DAb0; width: 100%; }
.pe-pag textarea { font-size: 12px; font-family: Consolas, monospace; background: #FEF6DA14; color: var(--creme); border-color: #FEF6DA33; word-break: break-all; }
.pe-pag .btn-cafe { background: var(--sol); color: var(--cafe); }
.pe-qr { width: 190px; padding: 10px; border-radius: 14px; background: #fff; }
.pe-qr:empty { display: none; }
.pe-qr svg { display: block; width: 100%; height: auto; }
.pe-itens li { grid-template-columns: 52px 1fr; }
.pe-itens img { width: 52px; height: 66px; }
.pe-dados { margin: 18px 0 0; padding-top: 16px; border-top: 1px dashed #1C161130; display: grid; gap: 8px; font-size: 14px; }
.pe-dados div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; }
.pe-dados dt { color: var(--cafe-3); }
.pe-dados dd { margin: 0; }

/* ---------- celular ---------- */
@media (max-width: 900px) {
  .pd-grid, .co-grid, .pe-grid { grid-template-columns: 1fr; }
  .pd-foto, .co-resumo { position: static; }
  .pd-rel { grid-template-columns: repeat(2, 1fr); }
  .pd-barra { display: flex; position: fixed; z-index: 45; left: 12px; right: 12px; bottom: 12px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 99px; background: var(--cafe); color: var(--creme); box-shadow: 0 16px 40px #00000055; translate: 0 140%; transition: translate .35s; }
  .pd-barra-on .pd-barra { translate: 0 0; }
  .pd-barra div { display: grid; line-height: 1.15; min-width: 0; }
  .pd-barra b { font-weight: 400; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pd-barra em { font-style: normal; font-family: Bidua; color: var(--sol); }
  .pg-voltar { font-size: 0; } .pg-voltar::first-letter { font-size: 22px; }
}
@media (max-width: 560px) {
  .pg-header { grid-template-columns: auto 1fr auto; }
  .pg-header .brand-palavra { width: 130px; }
  .pg-header .bag-open span { display: none; }
  .pg-seguro { display: none; }
  .pd-selos { grid-template-columns: 1fr; }
  .co-campos, .co-lojas { grid-template-columns: 1fr; }
  .co-passos { font-size: 0; gap: 4px; } .co-passos i { font-size: 13px; }
  .co-passos li.on:last-child, .co-passos li.on:not(:has(~ li.on)) { font-size: 12px; }
  .opcao em { display: none; }
  .opcao .tag-verde { display: none; }
  .pe-whats { width: 100%; }
}

/* ---------- páginas legais ---------- */
.lg { padding: 30px var(--pad) 90px; }
.lg-abas { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.lg-abas a { padding: 8px 18px; border-radius: 99px; border: 1px solid #1C161126; text-decoration: none; font-size: 15px; }
.lg-abas a[aria-current="page"] { background: var(--cafe); color: var(--creme); border-color: var(--cafe); }
.lg-texto { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.65; }
.lg-texto h1 { font-size: clamp(42px, 5.4vw, 76px); margin-bottom: 22px; }
.lg-texto h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 44px 0 12px; }
.lg-texto p, .lg-texto li { color: var(--cafe-2); }
.lg-texto li { margin-bottom: 8px; }
.lg-texto ul, .lg-texto ol { padding-left: 22px; }
.lg-texto b { color: var(--cafe); font-weight: 700; }
.lg-texto a { color: var(--ambar-txt); }
.lg-lead { font-size: 20px; color: var(--cafe) !important; }
.lg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 10px; }
.lg-cards div { padding: 20px; border-radius: 18px; background: var(--creme); display: grid; gap: 6px; line-height: 1.35; }
.lg-cards b { font-family: Bidua; font-weight: 400 !important; font-size: 30px; color: var(--ambar-txt) !important; }
.lg-cards span { font-size: 14px; color: var(--cafe-2); }
.lg-apagar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border-radius: 18px; background: var(--creme); margin: 22px 0; }
.lg-apagar div { display: grid; gap: 4px; line-height: 1.35; }
.lg-apagar small { color: var(--cafe-3); font-size: 14px; }
.lg-empresa { margin-top: 56px; padding-top: 22px; border-top: 1px dashed #1C161130; display: grid; gap: 4px; font-size: 14px; color: var(--cafe-3); }
.lg-empresa b { font-family: Bidua; font-weight: 400 !important; font-size: 20px; }
@media (max-width: 640px) { .lg-cards { grid-template-columns: 1fr; } .lg-apagar { flex-direction: column; align-items: stretch; } }

/* consentimento no checkout */
.co-aceite { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--cafe-2); margin: 4px 0 14px; cursor: pointer; line-height: 1.4; }
.co-aceite input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--cafe); flex: none; }
.co-aceite a { color: var(--ambar-txt); }
.co-aceite.erro { color: #9a3412; }
.co-lgpd { font-size: 13px; color: var(--cafe-3); margin: 14px 0 0; }
.co-lgpd a { color: var(--ambar-txt); }
