:root {
  --cd-primary: #E86B1F;
  --cd-primary-d: #C45A18;
  --cd-accent: #F5A66A;
  --cd-bg: #F7F7F8;
  --cd-surface: #ffffff;
  --cd-text: #1F2937;
  --cd-muted: #6B7280;
  --cd-line: #E5E7EB;
  --cd-success: #16A34A;
  --cd-radius: 14px;
  --cd-safe-b: env(safe-area-inset-bottom, 0px);
  --cd-logo-size: 88px;
  --cd-header-mt: 0px;
  --cd-header-mb: 0px;
  --cd-header-mx: 0px;
  --cd-header-py: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--cd-bg); color: var(--cd-text); }
body { min-height: 100dvh; }
.hidden { display: none !important; }
.cd-view { min-height: 100dvh; padding-bottom: calc(88px + var(--cd-safe-b)); }
.cd-view.hidden { display: none !important; }

/* ===== Capa com logo + info centralizados DENTRO da capa ===== */
.cd-profile {
  background: var(--cd-surface);
  margin: var(--cd-header-mt) var(--cd-header-mx) var(--cd-header-mb);
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  overflow: hidden;
  position: relative;
  z-index: 30;
}
.cd-cover {
  position: relative;
  width: 100%;
  min-height: clamp(200px, 42vw, 280px);
  background: linear-gradient(135deg, var(--cd-primary), var(--cd-primary-d));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cd-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.cd-cover-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.25) 0%,
    rgba(0,0,0,.45) 55%,
    rgba(0,0,0,.6) 100%
  );
  pointer-events: none;
}
.cd-cover-actions {
  position: absolute;
  top: .65rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  z-index: 4;
}
.cd-cover-actions-left {
  left: .65rem;
  right: auto;
}
.cd-cover-actions-right {
  right: .65rem;
  left: auto;
}
.cd-icon-btn-light {
  background: rgba(0,0,0,.4) !important;
  color: #fff !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cd-cart-btn-oncover {
  background: rgba(0,0,0,.45) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cd-profile-body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .65rem;
  padding: 2.25rem 1.25rem 1.5rem;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.cd-avatar-wrap {
  flex-shrink: 0;
}
.cd-avatar {
  width: var(--cd-logo-size, 88px);
  height: var(--cd-logo-size, 88px);
  min-width: 64px;
  min-height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 3px solid rgba(255,255,255,.95);
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
  display: block;
  margin: 0 auto;
}
.cd-profile-info {
  min-width: 0;
  width: 100%;
}
.cd-profile-info h1 {
  font-size: 1.35rem;
  margin: 0;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.cd-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .4rem;
}
.cd-badge {
  font-size: .7rem;
  font-weight: 800;
  border-radius: 999px;
  padding: .18rem .6rem;
  background: rgba(255,255,255,.22);
  color: #fff;
}
.cd-badge.open { background: #16a34a; color: #fff; }
.cd-badge.closed { background: #dc2626; color: #fff; }
.cd-profile-info small {
  font-size: .82rem;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
/* Endereço na capa */
.cd-cover .cd-sub-endereco {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-top: .55rem;
  font-size: .8rem;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  max-width: 100%;
  line-height: 1.35;
  padding: 0 .25rem;
}
.cd-cover .cd-sub-endereco i {
  flex-shrink: 0;
  opacity: .95;
}
.cd-cover .cd-sub-endereco span {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cd-cover .cd-sub-endereco:empty {
  display: none !important;
}
@media (max-width: 480px) {
  .cd-cover { min-height: 210px; }
  .cd-profile-body { padding: 2rem 1rem 1.25rem; gap: .5rem; }
  .cd-profile-info h1 { font-size: 1.15rem; }
  .cd-cart-btn-meta { display: none; }
}

.cd-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.2);
  color: #fff;
  border-radius: 12px;
  padding: .35rem .55rem .35rem .4rem;
  min-height: 44px;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
  transition: background .15s, transform .12s;
}
.cd-cart-btn:hover { background: rgba(255,255,255,.28); }
.cd-cart-btn:active { transform: scale(.97); }
.cd-cart-btn:disabled {
  opacity: .55;
  cursor: default;
}
.cd-cart-btn-icon {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.cd-cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(255,255,255,.35);
}
.cd-cart-badge.is-empty { display: none; }
.cd-cart-btn-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  min-width: 0;
}
.cd-cart-btn-label {
  font-size: .65rem;
  font-weight: 600;
  opacity: .9;
  white-space: nowrap;
}
.cd-cart-btn-tot {
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}
@media (max-width: 380px) {
  .cd-cart-btn-meta { display: none; }
  .cd-cart-btn { padding: .4rem; border-radius: 50%; width: 44px; height: 44px; justify-content: center; }
  .cd-cart-btn-icon { width: 28px; height: 28px; }
}
.cd-icon-btn {
  width: 42px; height: 42px; border: 0; border-radius: 12px;
  background: rgba(255,255,255,.2); color: #fff; font-size: 1.2rem; cursor: pointer;
}
.cd-icon-btn:hover { background: rgba(255,255,255,.3); color: #fff; }
.cd-page-bar {
  background: var(--cd-primary);
  color: #fff; padding: .75rem 1rem; position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: .5rem;
  border-radius: 0;
  border-bottom: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.cd-page-bar h1 { color: #fff; }
.cd-page-bar .cd-icon-btn,
.cd-page-bar button.cd-icon-btn {
  background: rgba(255,255,255,.2); color: #fff; border: 0;
}
.cd-page-bar h1 { font-size: 1rem; margin: 0; font-weight: 800; flex: 1; }
.cd-page-body { padding: 1rem; }

/* Tabs — leve, só borda (sem fundo bruto) */
.cd-tabs {
  display: flex; gap: .4rem; padding: .55rem 1rem .35rem;
  position: sticky; top: 0; z-index: 35; background: var(--cd-bg); box-shadow: 0 1px 0 var(--cd-line);
}
.cd-tabs button {
  flex: 1;
  border-radius: 12px;
  padding: .5rem .35rem;
  font-weight: 700;
  font-size: .8rem;
  background: transparent;
  color: var(--cd-text);
  border: 1.5px solid var(--cd-line);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .12rem;
  transition: border-color .15s, color .15s, background .15s;
}
.cd-tabs button i { font-size: 1.2rem; opacity: .85; color: inherit; }
.cd-tabs button:hover {
  border-color: #D1D5DB;
  color: var(--cd-text);
  background: transparent;
}
.cd-tabs button.active {
  background: transparent;
  border-color: var(--cd-primary);
  color: var(--cd-primary);
  font-weight: 800;
}
.cd-tabs button.active i { opacity: 1; color: var(--cd-primary); }

/* Categories — larger */
/* Aviso */
/* Aviso — abaixo das tabs */
.cd-aviso {
  margin: .5rem 1rem 0;
  padding: .7rem .9rem .7rem .85rem;
  border-radius: 12px;
  background: #FAFAFA;
  border: 1px solid var(--cd-line);
  border-left: 3px solid var(--cd-primary);
  color: var(--cd-text);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .01em;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.cd-aviso::before {
  content: "\F4E2"; /* bi-megaphone */
  font-family: "bootstrap-icons";
  font-weight: normal;
  font-size: 1rem;
  color: var(--cd-primary-d);
  flex-shrink: 0;
  line-height: 1.4;
}
.cd-aviso.hidden { display: none !important; }

/* Subheader loja — info compacta sob o header */
.cd-subheader {
  margin: .5rem .85rem 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.cd-sub-main {
  background: var(--cd-surface);
  border: 1px solid var(--cd-line);
  border-radius: 16px;
  padding: .7rem .85rem .65rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.cd-sub-row {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  font-size: .82rem;
  color: var(--cd-text);
  line-height: 1.35;
  min-width: 0;
}
.cd-sub-row > span,
.cd-sub-row > strong {
  min-width: 0;
  flex: 1;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.cd-sub-row i {
  color: var(--cd-primary-d);
  flex-shrink: 0;
  width: 1.15em;
  text-align: center;
  margin-top: .1rem;
  font-size: .95rem;
}
.cd-sub-row .muted { color: var(--cd-muted); font-weight: 500; }
.cd-sub-endereco {
  font-size: .84rem;
  font-weight: 650;
  color: var(--cd-text);
  letter-spacing: .01em;
}
.cd-sub-endereco i {
  color: var(--cd-primary);
  font-size: 1rem;
}
/* Chips em linha: horário · tempo · serviços */
.cd-sub-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}
.cd-sub-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .32rem .65rem;
  border-radius: 999px;
  background: #faf7f3;
  border: 1px solid var(--cd-line);
  font-size: .75rem;
  color: var(--cd-muted);
  line-height: 1.25;
  max-width: 100%;
}
.cd-sub-chip i {
  color: var(--cd-primary-d);
  font-size: .88rem;
  flex-shrink: 0;
}
.cd-sub-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cd-sub-chip strong {
  color: var(--cd-primary-d);
  font-weight: 800;
}
.cd-sub-chip.cd-sub-horario.is-closed {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.cd-sub-chip.cd-sub-horario.is-closed i { color: #dc2626; }
.cd-sub-chip.cd-sub-horario.is-open {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.cd-sub-chip.cd-sub-horario.is-open i,
.cd-sub-chip.cd-sub-horario.is-open strong { color: #059669; }
.cd-sub-services {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}
.cd-svc-pill {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .32rem .65rem;
  border-radius: 999px;
  background: #F9FAFB;
  color: var(--cd-muted);
  font-weight: 650;
  font-size: .72rem;
  white-space: nowrap;
  border: 1px solid var(--cd-line);
}
.cd-svc-pill i { color: var(--cd-primary); }
.cd-svc-pill i { font-size: .85rem; }
/* esconde chips vazios */
.cd-sub-chip:empty,
.cd-sub-services:empty { display: none !important; }
@media (max-width: 400px) {
  .cd-sub-main { padding: .65rem .75rem; border-radius: 14px; }
  .cd-sub-chip span { white-space: normal; }
}

/* Categorias + botão menu */
.cd-cats-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem .75rem .35rem 1rem;
}
.cd-cats-menu-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--cd-line);
  background: var(--cd-surface);
  color: var(--cd-primary-d);
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cd-cats-menu-btn:active { transform: scale(.96); }
.cd-cats {
  display: flex; gap: .5rem; overflow-x: auto; padding: .15rem 0;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  flex: 1; min-width: 0;
}
.cd-cats::-webkit-scrollbar { display: none; }
.cd-cats button {
  flex: 0 0 auto; border-radius: 16px; border: 2px solid var(--cd-line);
  background: var(--cd-surface); color: var(--cd-text); font-weight: 800;
  font-size: .9rem; padding: .65rem 1.1rem; cursor: pointer; min-height: 44px;
}
.cd-cats button.active {
  background: transparent;
  border-color: var(--cd-primary);
  color: var(--cd-primary);
}

.cd-sec { padding: 0 1rem 1rem; }
.cd-sec h2 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--cd-text);
  margin: 1rem 0 .65rem;
  font-weight: 800;
  border-bottom: none;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.cd-sec h2::before {
  content: '';
  width: 4px;
  height: 1em;
  border-radius: 4px;
  background: var(--cd-primary);
  flex-shrink: 0;
}

/* Lista vertical: texto à esquerda, foto à direita */
.cd-list { display: flex; flex-direction: column; gap: .75rem; }

.cd-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: .85rem;
  background: var(--cd-surface);
  border: 1px solid var(--cd-line);
  border-radius: 16px;
  padding: .85rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 14px rgba(15, 23, 42, .04);
  position: relative;
  overflow: hidden;
}
.cd-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .04);
  border-color: var(--cd-primary);
}
.cd-card:active { transform: scale(.985); }
.cd-card:focus-visible {
  outline: 2px solid var(--cd-primary);
  outline-offset: 2px;
}
.cd-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .1rem 0;
}
.cd-card .nome {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--cd-text);
}
.cd-card .desc {
  font-size: .8rem;
  color: var(--cd-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.cd-card-footer {
  display: flex;
  align-items: center;
  margin-top: .45rem;
}
.cd-card .preco {
  font-size: .98rem;
  font-weight: 800;
  color: var(--cd-success);
  letter-spacing: -.01em;
  margin: 0;
  padding: .22rem .6rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, .1);
  display: inline-block;
  line-height: 1.3;
}
.cd-card .preco.hint {
  font-size: .78rem;
  font-weight: 700;
  color: var(--cd-muted);
  background: rgba(107, 114, 128, .12);
}
.cd-card-media {
  position: relative;
  width: 104px;
  height: 104px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.cd-card .thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.cd-card:hover .thumb { transform: scale(1.05); }
/* Botão + sobre a imagem (canto inferior direito) */
.cd-card-add {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cd-primary);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.22);
  transition: transform .15s ease, background .15s ease;
  pointer-events: none; /* clique vai no card inteiro */
}
.cd-card-add i { font-size: .85rem; line-height: 1; }
.cd-card:hover .cd-card-add {
  transform: scale(1.08);
  background: var(--cd-primary-d);
}
@media (max-width: 380px) {
  .cd-card-media { width: 88px; height: 88px; border-radius: 12px; }
  .cd-card-add { width: 28px; height: 28px; right: 5px; bottom: 5px; }
  .cd-card .nome { font-size: .95rem; }
  .cd-card { padding: .7rem; gap: .65rem; }
}

.cd-loading { text-align: center; color: #94a3b8; padding: 2rem; }

/* Modal categorias */
.cd-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
}
.cd-modal.hidden { display: none !important; }
.cd-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
}
.cd-modal-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 75dvh;
  background: var(--cd-surface);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 30px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  padding-bottom: var(--cd-safe-b);
  animation: cdSheetUp .22s ease-out;
}
@keyframes cdSheetUp {
  from { transform: translateY(24px); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}
.cd-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1rem; border-bottom: 1px solid var(--cd-line);
}
.cd-modal-head h2 {
  margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--cd-primary-d);
  display: flex; align-items: center; gap: .4rem;
}
.cd-modal-body {
  overflow-y: auto; padding: .5rem .75rem 1rem;
}
.cd-modal-cat {
  display: flex; align-items: center; gap: .65rem;
  width: 100%; border: 0; background: transparent;
  padding: .85rem .6rem; border-radius: 12px;
  font-size: 1rem; font-weight: 700; color: var(--cd-text);
  cursor: pointer; text-align: left;
}
.cd-modal-cat:active, .cd-modal-cat.active {
  background: #F9FAFB; color: var(--cd-text);
}
.cd-modal-cat i { color: var(--cd-primary); font-size: 1.15rem; }

/* Info cards */
.cd-info-card { margin: .75rem 1rem 1.5rem; background: var(--cd-surface); border-radius: 16px; border: 1.5px solid var(--cd-line); padding: 1rem; }
.cd-info-card h3 { margin: 0 0 .75rem; font-size: 1rem; color: var(--cd-primary-d); }
.cd-info-row { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px dashed var(--cd-line); font-size: .9rem; }
.cd-info-row:last-child { border-bottom: 0; }
.cd-info-row .hoje { font-weight: 800; color: var(--cd-primary-d); }
.cd-social { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.cd-social a {
  display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .85rem;
  border-radius: 999px; background: #F3F4F6; color: var(--cd-muted); font-weight: 700;
  text-decoration: none; font-size: .85rem;
}

/* Footer */
.cd-foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--cd-surface); border-top: 2px solid var(--cd-line);
  padding: .65rem 1rem calc(.65rem + var(--cd-safe-b));
  display: flex; gap: .6rem; align-items: center;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.cd-foot .info { flex: 1; min-width: 0; }
.cd-foot .qtd { font-size: .75rem; color: var(--cd-muted); font-weight: 600; }
.cd-foot .tot { font-size: 1.15rem; font-weight: 900; color: var(--cd-primary-d); }
.cd-foot .btn, .btn {
  background: var(--cd-primary);
  color: #fff; border: 0; border-radius: 12px; font-weight: 800; padding: .75rem 1.1rem;
  font-size: .95rem; cursor: pointer; white-space: nowrap;
}
.btn:disabled, .cd-foot .btn:disabled { opacity: .45; }
.btn-block { width: 100%; }
.btn-outline {
  background: transparent; color: var(--cd-primary-d); border: 2px solid var(--cd-primary);
  margin-top: .5rem;
}
.cd-foot-prod { gap: .75rem; }
.cd-qty-ctrl {
  display: flex; align-items: center; gap: .35rem; background: #F3F4F6;
  border-radius: 12px; padding: .25rem;
}
.cd-qty-ctrl button {
  width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: var(--cd-primary); color: #fff; font-size: 1.2rem; font-weight: 800; cursor: pointer;
}
.cd-qty-ctrl span { min-width: 28px; text-align: center; font-weight: 800; }

/* Product page */
.cd-prod-scroll { padding-bottom: 1rem; }
.cd-prod-hero { width: 100%; max-height: 220px; object-fit: cover; background: #F3F4F6; }
.cd-prod-head { padding: 1rem; }
.cd-prod-head h2 { margin: 0; font-size: 1.2rem; }
.cd-prod-head .desc { color: var(--cd-muted); font-size: .9rem; margin-top: .35rem; }
.cd-prod-head .preco { color: var(--cd-success); font-weight: 900; font-size: 1.25rem; margin-top: .4rem; }
.cd-grupo {
  margin: 0 1rem .85rem; border: 1.5px solid var(--cd-line); border-radius: 14px;
  padding: .85rem; background: var(--cd-surface); scroll-margin-top: 80px;
}
.cd-grupo.done { border-color: #86efac; background: #f0fdf4; }
.cd-grupo-t { font-weight: 800; color: var(--cd-primary-d); margin-bottom: .2rem; }
.cd-grupo-sub { font-size: .75rem; color: var(--cd-muted); margin-bottom: .45rem; }
.cd-op {
  display: flex; gap: .55rem; align-items: center; padding: .55rem .4rem;
  border-radius: 10px; cursor: pointer; border-bottom: 1px solid #f8f1e8;
}
.cd-op:last-child { border-bottom: 0; }
.cd-op:hover { background: #F3F4F6; }
.cd-op input { accent-color: var(--cd-primary); width: 20px; height: 20px; flex-shrink: 0; }
.cd-op .lbl { flex: 1; font-size: .9rem; font-weight: 600; }
.cd-op .pr { font-size: .8rem; color: var(--cd-muted); font-weight: 700; }

/* Cart lines */
.cd-cart-line { display: flex; gap: .5rem; padding: .65rem 0; border-bottom: 1px dashed var(--cd-line); }
.cd-cart-line .nm { flex: 1; font-weight: 700; font-size: .9rem; }
.cd-cart-line .ads { font-size: .75rem; color: var(--cd-muted); font-weight: 500; }
.cd-qty { display: flex; align-items: center; gap: .25rem; }
.cd-qty button {
  width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: #F3F4F6; color: var(--cd-muted); font-weight: 800; cursor: pointer;
}

/* Progress */
.cd-progress {
  display: flex; gap: .35rem; padding: .65rem 1rem; font-size: .72rem; font-weight: 800;
  color: var(--cd-muted);
}
.cd-progress span { flex: 1; text-align: center; padding: .35rem; border-radius: 8px; background: #f1f5f9; }
.cd-progress span.on { background: #F3F4F6; color: var(--cd-muted); }
.cd-progress span.done { background: #dcfce7; color: #166534; }

.cd-field { margin-bottom: .75rem; }
.cd-field label { display: block; font-size: .75rem; font-weight: 700; margin-bottom: .25rem; color: var(--cd-muted); }
.cd-field input, .cd-field select, .cd-field textarea {
  width: 100%; border: 1.5px solid var(--cd-line); border-radius: 12px; padding: .7rem .8rem; font-size: 1rem;
  background: #fff;
}
.cd-field input:focus, .cd-field select:focus { outline: 2px solid var(--cd-primary); border-color: var(--cd-primary); }
.cd-hint { font-size: .8rem; color: var(--cd-muted); }
.cd-erro { color: #dc2626; font-size: .85rem; font-weight: 700; margin-top: .5rem; }
.cd-section-t { font-weight: 800; color: var(--cd-primary-d); margin: .5rem 0 .5rem; }

.cd-seg {
  display: flex; gap: .4rem; margin-bottom: 1rem;
}
.cd-seg button {
  flex: 1; border: 2px solid var(--cd-line); border-radius: 12px; padding: .7rem;
  font-weight: 800; background: #fff; color: var(--cd-muted); cursor: pointer;
}
.cd-seg button.active { border-color: var(--cd-primary); background: #F3F4F6; color: var(--cd-muted); }

.cd-pay-opts { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1rem; }
.cd-pay-card {
  display: flex; gap: .75rem; align-items: flex-start; padding: .85rem;
  border: 2px solid var(--cd-line); border-radius: 14px; cursor: pointer; background: #fff;
}
.cd-pay-card:has(input:checked) { border-color: var(--cd-primary); background: #F3F4F6; }
.cd-pay-card input { margin-top: .2rem; accent-color: var(--cd-primary); }
.cd-pay-card strong { display: block; font-size: .95rem; }
.cd-pay-card small { color: var(--cd-muted); font-size: .8rem; }
.cd-pay-card.disabled { opacity: .55; pointer-events: none; }

.cd-forma {
  display: flex; align-items: center; gap: .55rem; padding: .65rem .5rem;
  border-bottom: 1px solid var(--cd-line); cursor: pointer;
}
.cd-forma input { accent-color: var(--cd-primary); }
.cd-summary {
  background: #F3F4F6; border-radius: 12px; padding: .75rem; margin-top: .75rem;
  font-size: .9rem; font-weight: 600;
}

.cd-ok { text-align: center; padding: 3rem 1.25rem; }
.cd-ok i { font-size: 3.5rem; color: #16a34a; }
.cd-ok h2 { margin: .75rem 0 .35rem; }
.cd-ok .btn { margin-top: 1rem; }

.cd-track-card {
  background: #fff; border: 1.5px solid var(--cd-line); border-radius: 14px;
  padding: .85rem; margin-top: .75rem;
}
.cd-track-card .st {
  display: inline-block; font-size: .75rem; font-weight: 800; padding: .2rem .55rem;
  border-radius: 999px; background: #F3F4F6; color: var(--cd-muted);
}
.cd-track-card ul { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .85rem; color: var(--cd-muted); }

#mpBrickWrap { margin-top: .75rem; }
#paymentBrick_container { min-height: 120px; margin: .5rem 0 1rem; }

#mpTransparentWrap { margin-top: .75rem; }
.cd-mp-tabs { display: flex; gap: .4rem; margin: .75rem 0; }
.cd-mp-tab {
  flex: 1; border: 1.5px solid var(--cd-border, #e8dfd4); background: #fff;
  border-radius: 12px; padding: .55rem; font-weight: 700; cursor: pointer;
}
.cd-mp-tab.active { border-color: #FDBA74; background: #FFF7ED; color: var(--cd-primary-d); }
.cd-mp-form .cd-field { margin-bottom: .65rem; }
.cd-mp-row { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.cd-mp-secure {
  min-height: 48px; height: 48px;
  border: 1.5px solid var(--cd-border, #e8dfd4);
  border-radius: 12px; background: #fff; padding: 0 .5rem;
  display: flex; align-items: center; overflow: hidden;
}
.cd-mp-secure iframe {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  border: 0 !important;
}
.cd-mp-form input,
.cd-mp-form select,
.cd-mp-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--cd-border, #e8dfd4);
  border-radius: 12px;
  padding: .65rem .8rem;
  font-size: 1rem;
  background: #fff;
  color: inherit;
  box-sizing: border-box;
  line-height: 1.25;
}
.cd-mp-form input {
  height: 48px;
}
.cd-mp-form select {
  height: auto;
  min-height: 48px;
  appearance: auto;
  -webkit-appearance: menulist;
  background-color: #fff;
}
.cd-mp-form textarea {
  height: auto;
  min-height: 72px;
}
.cd-mp-form .cd-field input {
  min-height: 48px;
  height: 48px;
}
.cd-mp-form .cd-field select {
  min-height: 48px;
  height: auto;
}
#form-checkout__installments,
#form-checkout__issuer,
#form-checkout__identificationType {
  min-height: 48px !important;
  height: auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  background: #fff !important;
  color: inherit !important;
}
.cd-mp-qr { display: block; width: 220px; max-width: 100%; margin: .75rem auto; border-radius: 12px; }
.cd-mp-copy {
  width: 100%; font-size: .8rem; border-radius: 12px; border: 1.5px solid var(--cd-border, #e8dfd4);
  padding: .65rem; margin-bottom: .5rem; min-height: 72px; resize: vertical;
}


/* Observação do item */
.cd-obs-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: .65rem .85rem;
  font-size: .95rem;
  resize: vertical;
  min-height: 64px;
  font-family: inherit;
  margin-top: .35rem;
}
.cd-obs-input:focus {
  outline: none;
  border-color: var(--cd-primary, #f08000);
  box-shadow: 0 0 0 3px rgba(240,128,0,.15);
}

.cd-input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .15);
}


/* Resumo pagamento / cupom */
.cd-resumo-linhas { display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.cd-resumo-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cd-resumo-total { margin-top: 6px; padding-top: 8px; border-top: 1px dashed rgba(0,0,0,.12); font-size: 1.05rem; }
