/* ============================================
   DELIVERY ONLINE — CSS Premium v2
   Design: dark header + cards com imagem grande
   Fonte: Syne (display) + DM Sans (corpo)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;0,9..40,900;1,9..40,400&family=Inter:wght@700;800;900&display=swap');

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
    --dlv-red:        #C41E3A;
    --dlv-red-dark:   #9e1730;
    --dlv-red-glow:   rgba(196,30,58,0.35);
    --dlv-amber:      #F59E0B;
    --dlv-dark:       #0f0f0f;
    --dlv-dark2:      #1a1a1a;
    --dlv-dark3:      #242424;
    --dlv-bg:         #f2f2f0;
    --dlv-card:       #ffffff;
    --dlv-border:     #e8e8e6;
    --dlv-text:       #1a1a1a;
    --dlv-muted:      #7a7a78;
    --dlv-green:      #16a34a;
    --dlv-green-bg:   #dcfce7;
    --dlv-radius-sm:  10px;
    --dlv-radius:     16px;
    --dlv-radius-lg:  22px;
    --dlv-shadow-sm:  0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
    --dlv-shadow:     0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    --dlv-shadow-lg:  0 12px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.06);
}

/* ── Reset base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

.dlv-body {
    font-family: 'DM Sans', sans-serif;
    background: var(--dlv-bg);
    margin: 0;
    padding: 0 0 100px;
    color: var(--dlv-text);
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════════════════
   HEADER — identidade visual premium
   ══════════════════════════════════════════════════════════════ */
.dlv-header {
    background: var(--dlv-dark);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

/* Banner/capa do restaurante */
.dlv-header-banner {
    width: 100%;
    height: 130px;
    background: linear-gradient(135deg, #1a0a0e 0%, #2d0f18 40%, #1a0a0e 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.dlv-header-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 120%, rgba(196,30,58,0.5) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 20%, rgba(245,158,11,0.12) 0%, transparent 60%);
}

/* Padrão de textura sutil */
.dlv-header-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20.5V18H0v5h5v5H0v5h20v-2.5h-5v-5h5zM40 0H25v5h5v5h-5v5h15V0zm0 30h-5v-5h5v5zm0 5h-20v5H40v-5z'/%3E%3C/g%3E%3C/svg%3E");
}

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

/* Logo no banner */
.dlv-header-logo-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--dlv-dark3);
    border: 2px solid rgba(255,255,255,0.12);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,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.8rem;
    opacity: 0.3;
}

.dlv-header-info-block {
    flex: 1;
    min-width: 0;
}

.dlv-header-name {
    font-family: 'Syne', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    color: #fff;
    margin: 0 0 3px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dlv-header-meta {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dlv-header-meta i { font-size: 0.65rem; }

/* Barra inferior do header: entrega + status + carrinho */
.dlv-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: var(--dlv-dark2);
    border-top: 1px solid rgba(255,255,255,0.06);
    gap: 12px;
}

.dlv-header-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.dlv-header-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

.dlv-header-stat i { color: var(--dlv-amber); font-size: 0.8rem; }

.dlv-header-stat strong {
    color: #fff;
    font-weight: 800;
}

/* Badge ABERTO / FECHADO */
.dlv-badge-open {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--dlv-green);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dlv-badge-open::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    animation: dlvPulse 1.8s ease-in-out infinite;
}

.dlv-badge-closed {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Ícone do carrinho no header */
#dlvHeaderCart {
    cursor: pointer;
    position: relative;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    transition: background 0.2s;
}

#dlvHeaderCart:active { background: rgba(255,255,255,0.15); }

#dlvHeaderCartBadge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--dlv-red);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 900;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dlv-dark2);
}

@keyframes dlvPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* ══════════════════════════════════════════════════════════════
   AVISO FECHADO
   ══════════════════════════════════════════════════════════════ */
.dlv-aviso-fechado {
    margin: 14px 16px;
    background: #fff;
    border: 1.5px solid #fde68a;
    border-radius: var(--dlv-radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--dlv-shadow-sm);
}

.dlv-aviso-fechado-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.dlv-aviso-fechado h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    margin: 0 0 2px;
    color: var(--dlv-text);
}

.dlv-aviso-fechado p {
    font-size: 0.78rem;
    color: var(--dlv-muted);
    margin: 0;
    line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════
   BUSCA
   ══════════════════════════════════════════════════════════════ */
.dlv-search {
    padding: 14px 16px 8px;
    background: var(--dlv-bg);
}

.dlv-search-wrap { position: relative; }

.dlv-search input {
    width: 100%;
    border: 2px solid var(--dlv-border);
    border-radius: 14px;
    padding: 13px 16px 13px 44px;
    font-size: 0.92rem;
    font-weight: 600;
    background: var(--dlv-card);
    font-family: 'DM Sans', sans-serif;
    color: var(--dlv-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.dlv-search input:focus {
    outline: none;
    border-color: var(--dlv-red);
    box-shadow: 0 0 0 3px var(--dlv-red-glow);
}

.dlv-search input::placeholder {
    color: #aaa;
    font-weight: 500;
}

.dlv-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dlv-red);
    font-size: 1.05rem;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   CATEGORIAS (pills)
   ══════════════════════════════════════════════════════════════ */
.dlv-cats {
    display: flex;
    gap: 8px;
    padding: 4px 16px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.dlv-cats::-webkit-scrollbar { display: none; }

.dlv-cpill {
    flex-shrink: 0;
    border: 1.5px solid var(--dlv-border);
    border-radius: 50px;
    padding: 7px 16px;
    font-weight: 700;
    font-size: 0.82rem;
    background: var(--dlv-card);
    cursor: pointer;
    transition: all 0.18s cubic-bezier(.34,1.56,.64,1);
    color: var(--dlv-muted);
    white-space: nowrap;
    box-shadow: var(--dlv-shadow-sm);
    letter-spacing: -0.01em;
}

.dlv-cpill i { margin-right: 4px; font-size: 0.75rem; }

.dlv-cpill.dlv-on {
    background: var(--dlv-dark);
    color: #fff;
    border-color: var(--dlv-dark);
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dlv-cpill:not(.dlv-on):active {
    transform: scale(0.96);
    background: var(--dlv-bg);
}

/* Subcategorias */
.dlv-subs {
    display: flex;
    gap: 6px;
    padding: 0 16px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.dlv-subs::-webkit-scrollbar { display: none; }

.dlv-spill {
    flex-shrink: 0;
    border: 1.5px solid var(--dlv-border);
    border-radius: 20px;
    padding: 5px 14px;
    font-weight: 600;
    font-size: 0.75rem;
    background: var(--dlv-card);
    cursor: pointer;
    transition: all 0.15s;
    color: var(--dlv-muted);
    white-space: nowrap;
}

.dlv-spill.dlv-on {
    background: var(--dlv-red);
    color: #fff;
    border-color: var(--dlv-red);
}

/* ══════════════════════════════════════════════════════════════
   SEÇÕES (títulos de categoria)
   ══════════════════════════════════════════════════════════════ */
.dlv-sec-title {
    padding: 16px 16px 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--dlv-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
}

.dlv-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dlv-red);
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   CARDS DE PRODUTO — layout redesenhado com imagem grande
   ══════════════════════════════════════════════════════════════ */
.dlv-grid {
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(var(--dlv-cols, 2), 1fr);
    gap: 10px;
}

/* Mobile padrão: 2 colunas */
@media (max-width: 480px) {
    .dlv-grid {
        grid-template-columns: repeat(var(--dlv-cols-mobile, 2), 1fr);
        gap: 8px;
        padding: 0 12px;
    }
}

/* Mobile pequeno: forçar 1 coluna se configurado */
@media (max-width: 360px) {
    .dlv-grid {
        grid-template-columns: repeat(var(--dlv-cols-xs, 1), 1fr);
    }
}

/* Quando o card tem imagem: layout vertical (coluna) */
.dlv-pcard {
    background: var(--dlv-card);
    border-radius: var(--dlv-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--dlv-shadow-sm);
    border: 1.5px solid transparent;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s cubic-bezier(.34,1.56,.64,1),
                box-shadow 0.15s ease,
                border-color 0.15s ease;
    position: relative;
    /* Animação de entrada */
    opacity: 0;
    animation: dlvCardIn 0.4s ease forwards;
}

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

/* Delays escalonados nos primeiros cards */
.dlv-pcard:nth-child(1) { animation-delay: 0.05s; }
.dlv-pcard:nth-child(2) { animation-delay: 0.10s; }
.dlv-pcard:nth-child(3) { animation-delay: 0.15s; }
.dlv-pcard:nth-child(4) { animation-delay: 0.18s; }
.dlv-pcard:nth-child(5) { animation-delay: 0.21s; }
.dlv-pcard:nth-child(6) { animation-delay: 0.24s; }
.dlv-pcard:nth-child(n+7) { animation-delay: 0.27s; }

.dlv-pcard:active {
    transform: scale(0.96);
    border-color: var(--dlv-red);
    box-shadow: 0 0 0 3px var(--dlv-red-glow);
}

/* Imagem: ocupa toda a largura, proporção 4:3 */
.dlv-pimg {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f0efed;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.dlv-pimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dlv-pcard:active .dlv-pimg img { transform: scale(1.03); }

/* Placeholder sem imagem — gradiente com inicial do nome */
.dlv-noimg {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: rgba(255,255,255,0.2);
    font-size: 2.5rem;
}

.dlv-noimg-initial {
    font-family: 'Syne', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    color: rgba(255,255,255,0.12);
    line-height: 1;
    letter-spacing: -0.03em;
}

/* Destaque (produto em destaque) */
.dlv-pcard[data-destaque="1"] .dlv-pimg::after {
    content: '⭐ Destaque';
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--dlv-amber);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.03em;
}

/* Corpo do card */
.dlv-pbody {
    flex: 1;
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}

.dlv-pname {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--dlv-dark);
    line-height: 1.25;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dlv-pdesc {
    font-size: 0.7rem;
    color: var(--dlv-muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.dlv-pbot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
}

.dlv-pprice {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    color: var(--dlv-red);
    font-size: 0.95rem;
    letter-spacing: 0;
}

.dlv-addbtn {
    background: var(--dlv-dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s;
}

.dlv-pcard:active .dlv-addbtn {
    background: var(--dlv-red);
    transform: rotate(90deg);
}

.dlv-stag {
    font-size: 0.58rem;
    background: #ecfdf5;
    color: #15803d;
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Título de seção ocupa largura completa */
.dlv-sec-title {
    grid-column: 1 / -1;
}

/* ══════════════════════════════════════════════════════════════
   BARRA DO CARRINHO (bottom)
   ══════════════════════════════════════════════════════════════ */
.dlv-cartbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 12px 16px 16px;
    display: none;
    background: linear-gradient(to top, var(--dlv-bg) 60%, transparent);
}

.dlv-cartbar-inner {
    background: var(--dlv-dark);
    color: #fff;
    border-radius: var(--dlv-radius);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
    max-width: 500px;
    margin: 0 auto;
    transition: transform 0.15s cubic-bezier(.34,1.56,.64,1);
    gap: 12px;
}

.dlv-cartbar-inner:active { transform: scale(0.97); }

.dlv-cartbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dlv-cart-count {
    background: var(--dlv-red);
    color: #fff;
    font-weight: 900;
    border-radius: 8px;
    padding: 3px 10px;
    font-size: 0.82rem;
    min-width: 28px;
    text-align: center;
}

.dlv-cartbar-label {
    font-weight: 700;
    font-size: 0.92rem;
}

.dlv-cartbar-right {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 0;
}

/* Animação de "pop" ao adicionar item */
@keyframes dlvCartPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.08); }
    70%  { transform: scale(0.96); }
    100% { transform: scale(1); }
}

.dlv-cartbar-inner.dlv-pop { animation: dlvCartPop 0.35s ease; }

/* ══════════════════════════════════════════════════════════════
   TOAST — feedback ao adicionar produto
   ══════════════════════════════════════════════════════════════ */
#dlvToast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--dlv-dark);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
    box-shadow: var(--dlv-shadow-lg);
    display: flex;
    align-items: center;
    gap: 7px;
}

#dlvToast.dlv-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#dlvToast i { color: var(--dlv-green); font-size: 0.9rem; }

/* ══════════════════════════════════════════════════════════════
   MODAL DE PRODUTO — redesenhado
   ══════════════════════════════════════════════════════════════ */
.dlv-mpimg {
    width: 100%;
    height: 210px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border-radius: var(--dlv-radius-lg) var(--dlv-radius-lg) 0 0;
}

.dlv-mpimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder do modal sem imagem — degradê escuro com nome */
.dlv-mpimg-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #1a1a1a 0%, #2d0f18 60%, #1a0a0e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.dlv-mpimg-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(196,30,58,0.35) 0%, transparent 70%);
}

.dlv-mpimg-placeholder-initial {
    font-family: 'Syne', sans-serif;
    font-weight: 900;
    font-size: 4rem;
    color: rgba(255,255,255,0.08);
    position: relative;
    letter-spacing: -0.04em;
    line-height: 1;
}

.dlv-mpimg-placeholder-icon {
    font-size: 2.5rem;
    position: relative;
    opacity: 0.25;
}

/* Gradiente sobre a imagem no modal */
.dlv-mpimg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

.dlv-mpbody {
    padding: 18px 20px 20px;
}

.dlv-mpname {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--dlv-dark);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 4px;
}

.dlv-mpdesc {
    font-size: 0.82rem;
    color: var(--dlv-muted);
    line-height: 1.5;
    margin-bottom: 2px;
}

.dlv-mpprice {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--dlv-red);
    letter-spacing: 0;
    margin-top: 6px;
}

.dlv-qty-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 14px 0;
    background: var(--dlv-bg);
    border-radius: 14px;
    padding: 8px;
}

.dlv-qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: var(--dlv-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dlv-dark);
    box-shadow: var(--dlv-shadow-sm);
    transition: all 0.15s;
    user-select: none;
}

.dlv-qty-btn:active {
    background: var(--dlv-dark);
    color: #fff;
    transform: scale(0.92);
}

.dlv-qty-val {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    min-width: 44px;
    text-align: center;
    color: var(--dlv-dark);
    letter-spacing: -0.03em;
}

.dlv-sec-label {
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--dlv-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dlv-sec-opt {
    font-weight: 500;
    color: var(--dlv-muted);
    font-size: 0.7rem;
}

.dlv-ing-list { max-height: 130px; overflow-y: auto; }

.dlv-ing-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--dlv-border);
}

.dlv-ing-row:last-child { border: none; }

.dlv-ing-row input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--dlv-red);
}

.dlv-ing-row label {
    flex: 1;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--dlv-text);
}

.dlv-adic-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--dlv-border);
    gap: 10px;
}

.dlv-adic-row:last-child { border: none; }

.dlv-adic-price {
    color: var(--dlv-green);
    font-weight: 800;
    font-size: 0.82rem;
    white-space: nowrap;
}

.dlv-obs-input {
    border: 1.5px solid var(--dlv-border);
    border-radius: 12px;
    padding: 10px 14px;
    width: 100%;
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--dlv-text);
    background: var(--dlv-bg);
    transition: border-color 0.2s;
}

.dlv-obs-input:focus {
    outline: none;
    border-color: var(--dlv-red);
}

.dlv-sub-row {
    background: #fff5f7;
    border: 1.5px solid #fecdd3;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 14px 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dlv-sub-label { font-size: 0.8rem; color: var(--dlv-muted); font-weight: 600; }

.dlv-sub-val {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--dlv-red);
    letter-spacing: 0;
}

.dlv-add-btn {
    width: 100%;
    border: none;
    background: var(--dlv-dark);
    color: #fff;
    border-radius: var(--dlv-radius-sm);
    padding: 15px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: -0.01em;
}

.dlv-add-btn:active {
    transform: scale(0.97);
    background: var(--dlv-red);
}

/* Animação de "shake" no botão quando clicado */
@keyframes dlvBtnShake {
    0%, 100% { transform: translateX(0); }
    20%  { transform: translateX(-3px); }
    40%  { transform: translateX(3px); }
    60%  { transform: translateX(-2px); }
    80%  { transform: translateX(2px); }
}

/* ══════════════════════════════════════════════════════════════
   CHECKOUT MODAL
   ══════════════════════════════════════════════════════════════ */
.dlv-chk-sec {
    background: var(--dlv-card);
    border-radius: var(--dlv-radius);
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: var(--dlv-shadow-sm);
    border: 1px solid var(--dlv-border);
}

.dlv-chk-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--dlv-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.01em;
}

.dlv-chk-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--dlv-border);
    gap: 8px;
}

.dlv-chk-item:last-child { border: none; }

.dlv-chk-item-name {
    font-weight: 700;
    font-size: 0.83rem;
    color: var(--dlv-dark);
}

.dlv-chk-item-obs {
    font-size: 0.7rem;
    color: var(--dlv-muted);
    margin-top: 2px;
    line-height: 1.3;
}

.dlv-chk-item-price {
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--dlv-dark);
    white-space: nowrap;
}

.dlv-chk-input {
    border: 1.5px solid var(--dlv-border);
    border-radius: var(--dlv-radius-sm);
    padding: 11px 14px;
    width: 100%;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    color: var(--dlv-text);
    background: var(--dlv-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dlv-chk-input:focus {
    outline: none;
    border-color: var(--dlv-red);
    box-shadow: 0 0 0 3px var(--dlv-red-glow);
    background: var(--dlv-card);
}

.dlv-pgto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.dlv-pgto-opt {
    border: 1.5px solid var(--dlv-border);
    border-radius: var(--dlv-radius-sm);
    padding: 11px 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--dlv-muted);
    background: var(--dlv-bg);
    transition: all 0.15s;
}

.dlv-pgto-opt i {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 4px;
    transition: transform 0.2s;
}

.dlv-pgto-opt.dlv-on {
    border-color: var(--dlv-dark);
    background: var(--dlv-dark);
    color: #fff;
}

.dlv-pgto-opt.dlv-on i { transform: scale(1.1); }

.dlv-cl-found {
    background: var(--dlv-green-bg);
    border-radius: var(--dlv-radius-sm);
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #15803d;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
}

/* v26: lista de multiplos clientes com mesmo telefone */
.dlv-cl-multi {
    background: #fff7ed;
    border: 2px solid #fdba74;
    border-radius: var(--dlv-radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dlv-cl-multi-titulo {
    font-size: 0.85rem;
    font-weight: 700;
    color: #9a3412;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dlv-cl-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dlv-cl-card:hover {
    border-color: var(--dlv-green);
    background: var(--dlv-green-bg);
    transform: translateY(-1px);
}
.dlv-cl-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.dlv-cl-card-nome {
    font-weight: 700;
    color: #111827;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dlv-cl-card-tot {
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.dlv-cl-card-end {
    font-size: 0.78rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.3;
}
.dlv-cl-novo {
    background: #fff;
    border: 2px dashed #94a3b8;
    color: #475569;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}
.dlv-cl-novo:hover {
    border-color: var(--dlv-green);
    color: var(--dlv-green);
    background: var(--dlv-green-bg);
}
.dlv-cl-trocar {
    background: transparent;
    border: 1px solid #15803d;
    color: #15803d;
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: auto;
}
.dlv-cl-trocar:hover {
    background: #15803d;
    color: #fff;
}

/* Botão enviar pedido */
.dlv-send-btn {
    width: 100%;
    border: none;
    background: var(--dlv-green);
    color: #fff;
    border-radius: var(--dlv-radius-sm);
    padding: 16px;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(22,163,74,0.35);
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
    letter-spacing: -0.01em;
}

.dlv-send-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(22,163,74,0.3);
}

.dlv-send-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ══════════════════════════════════════════════════════════════
   TELA DE SUCESSO — redesenhada
   ══════════════════════════════════════════════════════════════ */
.dlv-success {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: var(--dlv-bg);
    text-align: center;
}

.dlv-success-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--dlv-green-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: dlvSuccessIn 0.5s cubic-bezier(.34,1.56,.64,1) both;
    position: relative;
}

.dlv-success-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--dlv-green);
    opacity: 0.3;
    animation: dlvSuccessRing 1.5s ease-out 0.3s both;
}

@keyframes dlvSuccessIn {
    from { transform: scale(0.3) rotate(-15deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}

@keyframes dlvSuccessRing {
    from { transform: scale(0.8); opacity: 0.5; }
    to   { transform: scale(1.4); opacity: 0; }
}

.dlv-success-title {
    font-family: 'Syne', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--dlv-dark);
    margin: 0 0 6px;
    letter-spacing: -0.03em;
    animation: dlvFadeUp 0.4s ease 0.2s both;
}

.dlv-success-sub {
    color: var(--dlv-muted);
    font-size: 0.88rem;
    margin-bottom: 24px;
    animation: dlvFadeUp 0.4s ease 0.3s both;
}

.dlv-success-num {
    background: var(--dlv-dark);
    color: #fff;
    display: inline-block;
    padding: 7px 24px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    animation: dlvFadeUp 0.4s ease 0.25s both;
}

.dlv-success-card {
    background: var(--dlv-card);
    border-radius: var(--dlv-radius-lg);
    box-shadow: var(--dlv-shadow);
    border: 1px solid var(--dlv-border);
    padding: 0;
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    margin-bottom: 20px;
    animation: dlvFadeUp 0.4s ease 0.35s both;
}

.dlv-success-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--dlv-border);
}

.dlv-success-step:last-child { border: none; }

.dlv-success-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--dlv-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dlv-success-step-text strong {
    display: block;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--dlv-dark);
}

.dlv-success-step-text span {
    font-size: 0.75rem;
    color: var(--dlv-muted);
}

.dlv-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 14px 32px;
    border-radius: var(--dlv-radius-sm);
    font-weight: 800;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
    transition: transform 0.15s;
    animation: dlvFadeUp 0.4s ease 0.45s both;
    width: 100%;
    max-width: 380px;
    justify-content: center;
}

.dlv-wa-btn:active { transform: scale(0.97); color: #fff; }

.dlv-success-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    background: transparent;
    color: var(--dlv-muted);
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    animation: dlvFadeUp 0.4s ease 0.5s both;
    border: 1.5px solid var(--dlv-border);
}

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

/* Responsivo: telas grandes */
@media (min-width: 480px) {
    .dlv-grid {
        max-width: 680px;
        margin: 0 auto;
    }
    .dlv-cartbar-inner,
    .dlv-search,
    .dlv-cats {
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Cards 3 colunas: imagem menor */
.dlv-grid[style*="--dlv-cols-mobile: 3"] .dlv-pname,
:root[style*="--dlv-cols-mobile: 3"] .dlv-pname {
    font-size: 0.75rem;
}

.dlv-grid[style*="--dlv-cols-mobile: 3"] .dlv-pprice,
:root[style*="--dlv-cols-mobile: 3"] .dlv-pprice {
    font-size: 0.82rem;
}

/* ══════════════════════════════════════════════════════════════
   LAYOUT LISTA — estilo foto (imagem pequena + texto à direita)
   Ativado quando o <body> tem classe .dlv-layout-lista
   ══════════════════════════════════════════════════════════════ */

/* No modo lista o grid vira coluna única */
.dlv-layout-lista .dlv-grid {
    grid-template-columns: 1fr !important;
    gap: 0;
    padding: 0 12px 24px;
}

/* Título de seção no modo lista */
.dlv-layout-lista .dlv-sec-title {
    padding: 16px 4px 8px;
    font-size: 1rem;
}

/* Card no modo lista: horizontal, sem borda externa, separador sutil */
.dlv-layout-lista .dlv-pcard {
    flex-direction: row;
    align-items: center;
    border-radius: 14px;
    margin-bottom: 8px;
    border: 1.5px solid var(--dlv-border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    gap: 0;
    overflow: hidden;
    animation: dlvCardIn 0.3s ease both;
}

/* Imagem: quadrado fixo à esquerda */
.dlv-layout-lista .dlv-pimg {
    width: 90px;
    min-width: 90px;
    height: 90px;
    aspect-ratio: unset;
    border-radius: 0;
    flex-shrink: 0;
}

/* Placeholder inicial: tamanho menor */
.dlv-layout-lista .dlv-noimg {
    font-size: 1.8rem;
}

/* Corpo: flex horizontal com nome/preço/botão */
.dlv-layout-lista .dlv-pbody {
    flex: 1;
    flex-direction: row;
    align-items: center;
    padding: 0 12px 0 14px;
    gap: 10px;
    min-width: 0;
}

/* Textos lado esquerdo do corpo */
.dlv-layout-lista .dlv-ptext-wrap {
    flex: 1;
    min-width: 0;
}

.dlv-layout-lista .dlv-pname {
    font-size: 0.88rem;
    font-weight: 800;
    -webkit-line-clamp: 2;
    margin-bottom: 2px;
}

.dlv-layout-lista .dlv-pdesc {
    -webkit-line-clamp: 1;
    font-size: 0.72rem;
}

.dlv-layout-lista .dlv-pbot {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    margin-top: 0;
}

.dlv-layout-lista .dlv-pprice {
    font-size: 0.92rem;
    white-space: nowrap;
}

.dlv-layout-lista .dlv-addbtn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--dlv-red);
    font-size: 1rem;
}

/* Destaque badge no modo lista */
.dlv-layout-lista .dlv-pcard[data-destaque="1"] .dlv-pimg::after {
    font-size: 0.55rem;
    padding: 2px 6px;
}

/* Hover/active no modo lista */
.dlv-layout-lista .dlv-pcard:active {
    transform: scale(0.98);
    box-shadow: 0 0 0 2px var(--dlv-red-glow);
}
