/* ============================================================
   DELIVERY ONLINE — CSS Premium v3
   • Cor primária dinâmica via --dlv-p (definida no index.php)
   • Dark header + cards premium + animações fluidas
   • Fonte: Plus Jakarta Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500&display=swap');

/* ── CSS Tokens ─────────────────────────────────────────────── */
:root {
  /* --dlv-p é injetado pelo PHP (cor do sistema) */
  --dlv-p:          #f97316;
  --dlv-p-dk:       #ea580c;
  --dlv-p-glow:     rgba(249,115,22,.22);
  --dlv-p-glow-sm:  rgba(249,115,22,.10);

  --dlv-dark:       #06060e;
  --dlv-dark2:      #0e0e1a;
  --dlv-dark3:      #12121f;
  --dlv-dark4:      #181828;
  --dlv-bg:         #f2f2f5;
  --dlv-card:       #ffffff;
  --dlv-border:     #e8e8f0;
  --dlv-text:       #0f172a;
  --dlv-muted:      #64748b;
  --dlv-green:      #22c55e;
  --dlv-green-bg:   #f0fdf4;
  --dlv-red:        #ef4444;
  --dlv-amber:      #eab308;

  --dlv-radius-sm:  8px;
  --dlv-radius:     14px;
  --dlv-radius-lg:  20px;
  --dlv-shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --dlv-shadow:     0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --dlv-shadow-lg:  0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.05);

  --dlv-font:       'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
::selection { background: var(--dlv-p-glow); color: var(--dlv-p); }

.dlv-body {
  font-family: var(--dlv-font);
  background: var(--dlv-bg);
  margin: 0;
  padding: 0 0 120px;
  color: var(--dlv-text);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════ */
.dlv-header {
  background: var(--dlv-dark);
  color: #fff;
  padding: 0;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 24px rgba(0,0,0,.5);
}

/* Arve Tech: busca + categorias + subcategorias fixas como um bloco unico.
   Antes cada uma era sticky com 'top' proprio, e o cabecalho (mais alto)
   cobria a barra de categorias ao rolar -> "menu nao navegavel". */
.dlv-stickybar {
  position: sticky;
  top: 0;
  z-index: 95;
  background: var(--dlv-bg);
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.18);
}

.dlv-header-banner {
  width: 100%;
  height: 130px;
  background: linear-gradient(135deg, #06060e 0%, #0f0f20 50%, #06060e 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* Glow dinâmico com a cor do sistema */
.dlv-header-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 120%, var(--dlv-p-glow) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 85% 15%, rgba(168,85,247,.08) 0%, transparent 60%);
}

/* Grid pattern sutil */
.dlv-header-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--dlv-p-glow-sm) 1px, transparent 1px),
    linear-gradient(90deg, var(--dlv-p-glow-sm) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .5;
}

.dlv-header-banner-content {
  position: relative;
  z-index: 1;
  padding: 0 18px 14px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

/* Logo */
.dlv-header-logo-wrap {
  flex-shrink: 0;
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.12);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.dlv-header-logo-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.dlv-header-logo-placeholder { font-size: 1.6rem; }

.dlv-header-info-block { flex: 1; min-width: 0; }
.dlv-header-name {
  font-weight: 900;
  font-size: clamp(.95rem, 3.5vw, 1.2rem);
  letter-spacing: -.03em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dlv-header-meta {
  font-size: .7rem;
  color: rgba(255,255,255,.55);
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  margin-top: 3px;
}

/* Header stats bar */
.dlv-header-bar {
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dlv-header-stats {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.dlv-header-stat {
  display: flex; align-items: center; gap: 4px;
  font-size: .7rem; color: rgba(255,255,255,.6);
}
.dlv-header-stat strong { color: rgba(255,255,255,.9); font-weight: 700; }
.dlv-header-stat i { font-size: .72rem; }

/* Badges status */
.dlv-badge-open {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.3);
  color: #4ade80;
  font-size: .65rem; font-weight: 800;
  padding: 3px 9px; border-radius: 99px;
  letter-spacing: .04em;
}
.dlv-badge-open::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: dlvPulse 2s ease-out infinite;
}
.dlv-badge-closed {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.25);
  color: #fca5a5;
  font-size: .65rem; font-weight: 800;
  padding: 3px 9px; border-radius: 99px;
}

@keyframes dlvPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
  70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Cart icon in header */
#dlvHeaderCart {
  position: relative; cursor: pointer; padding: 4px 8px;
}
#dlvHeaderCartBadge {
  position: absolute; top: 0; right: 0;
  background: var(--dlv-p);
  color: #fff; font-size: .6rem; font-weight: 800;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Aviso fechado */
.dlv-aviso-fechado {
  display: flex; align-items: center; gap: 14px;
  background: rgba(234,179,8,.08);
  border: 1px solid rgba(234,179,8,.25);
  border-radius: var(--dlv-radius);
  margin: 12px 14px;
  padding: 14px;
}
.dlv-aviso-fechado-icon { font-size: 1.8rem; flex-shrink: 0; }
.dlv-aviso-fechado h4 { font-size: .88rem; font-weight: 800; color: var(--dlv-text); margin: 0 0 3px; }
.dlv-aviso-fechado p  { font-size: .75rem; color: var(--dlv-muted); margin: 0; }

/* ══════════════════════════════════════════════════════════════
   BUSCA & CATEGORIAS
══════════════════════════════════════════════════════════════ */
.dlv-search {
  background: var(--dlv-bg);
  padding: 10px 14px 6px;
}
.dlv-search-wrap { position: relative; }
.dlv-search-icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--dlv-p); font-size: .9rem;
  pointer-events: none;
}
#dlvSearchInput {
  width: 100%;
  border: 1.5px solid var(--dlv-border);
  border-radius: 99px;
  padding: 10px 16px 10px 36px;
  font-size: .85rem; font-weight: 600;
  font-family: var(--dlv-font);
  background: #fff;
  color: var(--dlv-text);
  transition: all .15s;
  outline: none;
  box-shadow: var(--dlv-shadow-sm);
}
#dlvSearchInput:focus {
  border-color: var(--dlv-p);
  box-shadow: 0 0 0 3px var(--dlv-p-glow-sm);
}
#dlvSearchInput::placeholder { color: #aaa; font-weight: 400; }

/* Pills categorias */
.dlv-cats {
  display: flex; gap: 7px;
  padding: 8px 14px 6px;
  overflow-x: auto; scrollbar-width: none;
  background: var(--dlv-bg);
}
.dlv-cats::-webkit-scrollbar { display: none; }
.dlv-cpill {
  flex-shrink: 0;
  border: 1.5px solid var(--dlv-border);
  border-radius: 99px;
  padding: 5px 13px;
  font-weight: 700; font-size: .72rem;
  background: #fff;
  cursor: pointer; white-space: nowrap;
  color: var(--dlv-muted);
  transition: all .15s;
  box-shadow: var(--dlv-shadow-sm);
}
.dlv-cpill i { margin-right: 3px; font-size: .68rem; }
.dlv-cpill.dlv-on { background: var(--dlv-p); color: #fff; border-color: var(--dlv-p); }

/* Subcategorias */
.dlv-subs { display: flex; gap: 6px; padding: 0 14px 8px; overflow-x: auto; scrollbar-width: none; }
.dlv-subs::-webkit-scrollbar { display: none; }
.dlv-spill {
  flex-shrink: 0;
  border: 1.5px solid var(--dlv-border);
  border-radius: 99px;
  padding: 4px 11px;
  font-size: .7rem; font-weight: 600;
  background: #fff; cursor: pointer;
  color: var(--dlv-muted); white-space: nowrap;
}
.dlv-spill.dlv-on { background: var(--dlv-p); color: #fff; border-color: var(--dlv-p); }

/* ══════════════════════════════════════════════════════════════
   GRID DE PRODUTOS
══════════════════════════════════════════════════════════════ */
.dlv-sec-title {
  grid-column: 1 / -1;
  padding: 12px 0 5px;
  font-weight: 900; font-size: .88rem;
  display: flex; align-items: center; gap: 7px;
  color: var(--dlv-text); letter-spacing: -.01em;
}
.dlv-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--dlv-p); flex-shrink: 0;
}

.dlv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 6px 14px 16px;
}

/* Card produto */
.dlv-pcard {
  background: var(--dlv-card);
  border-radius: var(--dlv-radius);
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid var(--dlv-border);
  display: flex; flex-direction: column;
  box-shadow: var(--dlv-shadow-sm);
  transition: transform .13s, border-color .13s, box-shadow .13s;
  animation: dlvFadeIn .35s ease both;
}
.dlv-pcard:hover { transform: translateY(-2px); box-shadow: var(--dlv-shadow); border-color: var(--dlv-p); }
.dlv-pcard:active { transform: scale(.97); }

@keyframes dlvFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Destaque */
.dlv-pcard[data-destaque="1"] {
  border-color: var(--dlv-p);
  box-shadow: 0 0 0 1px var(--dlv-p-glow-sm), var(--dlv-shadow-sm);
}

.dlv-pimg {
  width: 100%; aspect-ratio: 4/3;
  background: #f1f5f9; overflow: hidden;
  position: relative; flex-shrink: 0;
}
.dlv-pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.dlv-pcard:hover .dlv-pimg img { transform: scale(1.04); }
.dlv-noimg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}
.dlv-noimg-initial {
  font-size: 2rem; font-weight: 900;
  color: var(--dlv-p); opacity: .4;
}

/* Badge destaque */
.dlv-pcard[data-destaque="1"]::before {
  content: '⭐ Destaque';
  position: absolute;
  top: 8px; left: 8px; z-index: 2;
  background: var(--dlv-p);
  color: #fff;
  font-size: .58rem; font-weight: 800;
  padding: 2px 7px; border-radius: 99px;
  letter-spacing: .04em;
}
.dlv-pcard { position: relative; }

.dlv-pbody {
  padding: 9px 10px 11px;
  display: flex; flex-direction: column; flex: 1;
}
.dlv-ptext-wrap { flex: 1; margin-bottom: 6px; }
.dlv-pname {
  font-weight: 700; font-size: .78rem;
  color: var(--dlv-text); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.dlv-pdesc {
  font-size: .65rem; color: var(--dlv-muted);
  margin-top: 3px; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.dlv-pbot {
  display: flex; align-items: center;
  justify-content: space-between;
}
.dlv-pprice {
  font-weight: 900; font-size: .85rem;
  color: var(--dlv-p); letter-spacing: -.01em;
}
.dlv-stag {
  font-size: .6rem; font-weight: 700;
  color: var(--dlv-muted);
  background: #f1f5f9;
  padding: 1px 5px; border-radius: 4px;
}
.dlv-addbtn {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--dlv-p); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 900;
  flex-shrink: 0; transition: transform .15s;
}
.dlv-pcard:hover .dlv-addbtn { transform: scale(1.12) rotate(90deg); }

/* Layout lista */
.dlv-layout-lista .dlv-grid { grid-template-columns: 1fr; }
.dlv-layout-lista .dlv-pcard { flex-direction: row; max-height: 90px; }
.dlv-layout-lista .dlv-pimg { width: 90px; height: 90px; aspect-ratio: unset; flex-shrink: 0; }
.dlv-layout-lista .dlv-pimg img { aspect-ratio: unset; }
.dlv-layout-lista .dlv-pname { -webkit-line-clamp: 1; }
.dlv-layout-lista .dlv-pbody { padding: 8px 10px; }

/* ══════════════════════════════════════════════════════════════
   BARRA DO CARRINHO
══════════════════════════════════════════════════════════════ */
.dlv-cartbar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 500; padding: 10px 14px;
  background: rgba(6,6,14,.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.06);
}
.dlv-cartbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--dlv-p);
  border-radius: 14px; padding: 13px 18px;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--dlv-p-glow);
  transition: transform .15s;
}
.dlv-cartbar-inner:active { transform: scale(.98); }
.dlv-cartbar-left { display: flex; align-items: center; gap: 8px; }
.dlv-cart-count {
  background: rgba(255,255,255,.25);
  color: #fff; font-weight: 900;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
}
.dlv-cartbar-label { font-weight: 700; font-size: .88rem; color: #fff; }
.dlv-cartbar-right { font-weight: 900; font-size: 1rem; color: #fff; letter-spacing: -.02em; }

/* Toast */
#dlvToast {
  position: fixed; bottom: 90px; left: 50%;
  transform: translateX(-50%);
  z-index: 9999; pointer-events: none;
}
.dlv-toast-item {
  background: var(--dlv-dark3);
  border: 1px solid rgba(249,115,22,.3);
  border-radius: 10px; padding: 9px 16px;
  font-size: .78rem; font-weight: 700;
  color: #fff; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  animation: dlvToastIn .2s ease;
}
@keyframes dlvToastIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   MODAIS
══════════════════════════════════════════════════════════════ */
.modal-content {
  background: #fff !important;
  border: none !important;
  border-radius: var(--dlv-radius-lg) !important;
}

/* Modal produto */
.dlv-mpimg {
  width: 100%; aspect-ratio: 16/9;
  background: #f1f5f9; overflow: hidden; position: relative;
}
.dlv-mpimg img { width: 100%; height: 100%; object-fit: cover; }
.dlv-mpimg-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; font-weight: 900;
  color: var(--dlv-p); opacity: .25;
}
.dlv-mpbody { padding: 16px 18px 20px; }
.dlv-mpname { font-weight: 900; font-size: 1.05rem; color: var(--dlv-text); letter-spacing: -.02em; margin-bottom: 3px; }
.dlv-mpdesc { font-size: .78rem; color: var(--dlv-muted); margin-bottom: 8px; line-height: 1.45; }
.dlv-mpprice { font-weight: 900; font-size: 1.2rem; color: var(--dlv-p); letter-spacing: -.02em; margin-bottom: 12px; }

/* Qty */
.dlv-qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.dlv-qty-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--dlv-border);
  background: #f8fafc; color: var(--dlv-text);
  font-size: 1.2rem; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.dlv-qty-btn:hover { border-color: var(--dlv-p); color: var(--dlv-p); background: #fff; }
.dlv-qty-val { font-weight: 900; font-size: 1.3rem; color: var(--dlv-text); min-width: 30px; text-align: center; }

/* Seções ingredientes/adicionais */
.dlv-sec-label {
  font-weight: 800; font-size: .78rem; color: var(--dlv-text);
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.dlv-sec-opt { color: var(--dlv-muted); font-weight: 400; font-size: .7rem; }

/* ── Opções em CAIXAS (Arve Tech) ─────────────────────────────
   Antes .dlv-ing-row / .dlv-adic-row nao tinham CSS -> opcoes
   apareciam amontoadas. Agora cada opcao e um quadradinho. */
.dlv-ing-list,
#dlvMPQueijoList {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 200px; overflow-y: auto;
  padding: 2px;
}
.dlv-ing-row {
  display: flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--dlv-border);
  border-radius: 11px;
  padding: 9px 11px;
  background: #fff;
  cursor: pointer;
  transition: border-color .13s, background .13s, box-shadow .13s;
}
.dlv-ing-row:hover { border-color: var(--dlv-p); }
.dlv-ing-row label {
  flex: 1; cursor: pointer; margin: 0;
  font-size: .82rem; font-weight: 600; color: var(--dlv-text);
  line-height: 1.25;
}
.dlv-ing-row input[type="checkbox"] { flex-shrink: 0; margin: 0; width: 18px; height: 18px; }
/* destaca a caixa quando marcada (navegadores modernos) */
.dlv-ing-row:has(input:checked) {
  border-color: var(--dlv-p);
  background: var(--dlv-p-glow-sm, rgba(249,115,22,.07));
  box-shadow: 0 0 0 1.5px var(--dlv-p) inset;
}

/* Adicionais: caixa em largura cheia (preco fica a direita) */
#dlvMPAdicList { display: grid; grid-template-columns: 1fr; gap: 8px; }
.dlv-adic-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1.5px solid var(--dlv-border);
  border-radius: 11px;
  padding: 9px 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .13s, background .13s, box-shadow .13s;
}
.dlv-adic-row:hover { border-color: var(--dlv-p); }
.dlv-adic-row:has(input:checked) {
  border-color: var(--dlv-p);
  background: var(--dlv-p-glow-sm, rgba(249,115,22,.07));
  box-shadow: 0 0 0 1.5px var(--dlv-p) inset;
}
.dlv-adic-price {
  flex-shrink: 0; font-weight: 800; font-size: .82rem;
  color: var(--dlv-green, #16a34a); white-space: nowrap;
}
@media (max-width: 360px) {
  .dlv-ing-list, #dlvMPQueijoList { grid-template-columns: 1fr; }
}
/* ───────────────────────────────────────────────────────────── */
.dlv-ing-list-legacy { max-height: 130px; overflow-y: auto; }
.form-check-label { font-size: .85rem; cursor: pointer; }
.form-check-input:checked { background-color: var(--dlv-p) !important; border-color: var(--dlv-p) !important; }

/* Obs input */
.dlv-obs-input {
  width: 100%;
  border: 1.5px solid var(--dlv-border);
  border-radius: 9px; padding: 9px 12px;
  font-size: .83rem; font-family: var(--dlv-font);
  background: #fafafa; color: var(--dlv-text);
  outline: none; transition: all .15s;
}
.dlv-obs-input:focus { border-color: var(--dlv-p); background: #fff; }

/* Subtotal row */
.dlv-sub-row {
  display: flex; justify-content: space-between; align-items: center;
  margin: 12px 0;
}
.dlv-sub-label { font-size: .8rem; color: var(--dlv-muted); font-weight: 600; }
.dlv-sub-val { font-weight: 900; font-size: 1.05rem; color: var(--dlv-p); }

/* Botão adicionar */
.dlv-add-btn {
  width: 100%;
  background: var(--dlv-p); color: #fff;
  border: none; border-radius: 12px; padding: 13px;
  font-size: .9rem; font-weight: 800;
  font-family: var(--dlv-font); cursor: pointer;
  transition: all .15s;
  box-shadow: 0 4px 16px var(--dlv-p-glow);
}
.dlv-add-btn:hover { opacity: .92; transform: translateY(-1px); }

/* ── Modal Checkout ─────────────────────────────────────────── */
.dlv-chk-sec {
  background: #fff;
  border: 1px solid var(--dlv-border);
  border-radius: var(--dlv-radius);
  padding: 13px 14px;
  margin-bottom: 10px;
}
.dlv-chk-title {
  font-weight: 800; font-size: .76rem;
  color: var(--dlv-text);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.dlv-chk-title i { color: var(--dlv-p); }

.dlv-chk-input {
  width: 100%;
  border: 1.5px solid var(--dlv-border);
  border-radius: 9px; padding: 9px 12px;
  font-size: .85rem; font-weight: 500;
  font-family: var(--dlv-font);
  background: #fafafa; color: var(--dlv-text);
  transition: all .15s; outline: none;
  appearance: none;
}
.dlv-chk-input:focus { border-color: var(--dlv-p); box-shadow: 0 0 0 3px var(--dlv-p-glow-sm); background: #fff; }
.dlv-chk-input::placeholder { color: #aaa; font-weight: 400; }

/* Pagamento */
.dlv-pgto-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.dlv-pgto-opt {
  border: 2px solid var(--dlv-border);
  border-radius: 10px; padding: 10px 6px;
  text-align: center; cursor: pointer;
  font-weight: 700; font-size: .72rem;
  color: var(--dlv-muted); background: #fafafa;
  transition: all .15s; user-select: none;
}
.dlv-pgto-opt i { font-size: 1.1rem; display: block; margin-bottom: 4px; }
.dlv-pgto-opt.dlv-on { border-color: var(--dlv-p); background: var(--dlv-bg); color: var(--dlv-p); }

/* PIX box */
.dlv-pix-box {
  background: linear-gradient(135deg, #eff6ff, #f5f0ff);
  border: 1.5px solid rgba(59,130,246,.3);
  border-radius: 12px; padding: 14px;
}
.dlv-pix-box code {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: .88rem;
  color: #2563eb; word-break: break-all;
}
.dlv-pix-copy {
  background: #2563eb; color: #fff; border: none;
  border-radius: 9px; padding: 9px 13px;
  font-weight: 800; font-size: .75rem;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  font-family: var(--dlv-font);
}

/* Cart items no checkout */
.dlv-chk-item {
  display: flex; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px solid var(--dlv-border);
  font-size: .82rem; gap: 8px;
}
.dlv-chk-item:last-child { border-bottom: none; }
.dlv-chk-item-name { font-weight: 700; color: var(--dlv-text); }
.dlv-chk-item-obs  { font-size: .7rem; color: var(--dlv-muted); margin-top: 2px; }
.dlv-chk-item-price { font-weight: 900; color: var(--dlv-p); white-space: nowrap; }

/* Botão finalizar */
.dlv-finalizar-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--dlv-green), #16a34a);
  color: #fff; border: none; border-radius: 12px; padding: 15px;
  font-size: .95rem; font-weight: 900;
  font-family: var(--dlv-font); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(34,197,94,.3);
  transition: all .15s; margin-top: 8px;
}
.dlv-finalizar-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(34,197,94,.4); }
.dlv-finalizar-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* WhatsApp btn */
.dlv-wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25D366; color: #fff; text-decoration: none;
  border-radius: 12px; padding: 14px 24px;
  font-size: .92rem; font-weight: 800;
  font-family: var(--dlv-font);
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
  transition: all .15s; margin-bottom: 10px;
}
.dlv-wa-btn:hover { transform: translateY(-2px); opacity: .93; }

/* ══════════════════════════════════════════════════════════════
   TELA DE SUCESSO
══════════════════════════════════════════════════════════════ */
.dlv-success {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 20px; text-align: center;
  background: linear-gradient(180deg, var(--dlv-dark) 0%, #0a0a1a 100%);
}
.dlv-success-icon {
  font-size: 4rem; margin-bottom: 16px;
  animation: dlvBounce .6s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes dlvBounce {
  0%  { transform: scale(0) rotate(-10deg); opacity: 0; }
  80% { transform: scale(1.1) rotate(3deg); }
  100%{ transform: scale(1) rotate(0); opacity: 1; }
}
.dlv-success-title {
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  font-weight: 900; color: #fff; letter-spacing: -.03em; margin-bottom: 6px;
}
.dlv-success-sub { font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: 12px; }
.dlv-success-num {
  font-size: 2rem; font-weight: 900; color: var(--dlv-p);
  letter-spacing: -.04em; margin-bottom: 20px;
}
.dlv-success-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; padding: 20px;
  width: 100%; max-width: 360px;
  margin-bottom: 24px; text-align: left;
}
.dlv-success-step {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.dlv-success-step:last-child { border-bottom: none; }
.dlv-success-step-icon { font-size: 1.4rem; width: 36px; text-align: center; flex-shrink: 0; }
.dlv-success-step-text { display: flex; flex-direction: column; gap: 2px; }
.dlv-success-step-text strong { font-size: .82rem; color: #fff; font-weight: 700; }
.dlv-success-step-text span   { font-size: .72rem; color: rgba(255,255,255,.5); }
.dlv-success-new-btn {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.5); text-decoration: none;
  font-size: .8rem; font-weight: 600; margin-top: 8px;
  padding: 8px 16px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.1);
  transition: all .15s;
}
.dlv-success-new-btn:hover { color: #fff; border-color: rgba(255,255,255,.25); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVO
══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .dlv-header-banner { height: 100px; }
  .dlv-header-logo-wrap { width: 50px; height: 50px; border-radius: 12px; }
  .dlv-grid { padding: 6px 12px 12px; gap: 8px; }
}

@media (min-width: 768px) {
  .dlv-grid { max-width: 680px; margin: 0 auto; }
}





/* ══════════════════════════════════════════════════════════════
   MODAIS — estilo mínimo, sem tocar em estrutura Bootstrap
══════════════════════════════════════════════════════════════ */
.modal-backdrop.show { opacity: .5 !important; }

#dlvModalChk .modal-content,
#dlvModalProd .modal-content {
  border: none !important;
  box-shadow: 0 8px 40px rgba(0,0,0,.18) !important;
}

@media (min-width: 640px) {
  #dlvModalChk .modal-dialog  { max-width: 520px !important; }
  #dlvModalProd .modal-dialog { max-width: 420px !important; }
}
