/* ============================================================
   assets/css/cardapio/pages/cardapio.css
   Exclusivo da página de cardápio (menu do restaurante):
   conteúdo da hero, busca, categorias, grade de produtos,
   carrinho (desktop/mobile) e sidebar de informações.
   ============================================================ */
.cd-hero-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Logo / foto do restaurante na hero */
.cd-hero-logo-wrap {
    margin-bottom: 16px;
}

.cd-hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.15);
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
}

.cd-hero-logo-default {
    padding: 14px;
    background: rgba(255,255,255,.18);
}

.cd-hero-info h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.4px;
    margin-bottom: 6px;
    line-height: 1.2;
}

/* Categoria(s) do restaurante */
.cd-hero-categoria {
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255,255,255,.7);
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.cd-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

@media (max-width: 640px) {
    .cd-hero-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding-bottom: 4px;
        /* sangria negativa isolada aqui — NÃO no .cd-hero */
        width: calc(100% + 40px);
        margin-left: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .cd-hero-pills::-webkit-scrollbar {
        display: none;
    }
    .cd-hero-pills .cd-pill:last-child {
        margin-right: 20px;
    }
    .cd-pill {
        flex-shrink: 0;
    }
    /* BUG #1 CORRIGIDO: overflow:visible removido — impedia clipping da página */
}

.cd-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.2);
    padding: 7px 14px;
    border-radius: 30px;
    font-size: .76rem;
    font-weight: 600;
    color: #fff;
}

.cd-pill svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    stroke-width: 1.8;
    fill: none;
    flex-shrink: 0;
}

.cd-pill-green {
    background: rgba(22,163,74,.25);
    border-color: rgba(22,163,74,.4);
}

.cd-pill-red {
    background: rgba(220,38,38,.25);
    border-color: rgba(220,38,38,.4);
}

.cd-hero-icon {
    font-size: 5rem;
    opacity: .25;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.2));
    transform: rotate(-8deg);
}


/* ── LAYOUT ──────────────────────────────────────────────── */
.cd-layout {
    max-width: 1140px;
    margin: 0 auto;
    padding: 28px 20px 60px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

/* ── BUSCA ───────────────────────────────────────────────── */
.cd-search-wrap {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.cd-search-wrap > svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    stroke: var(--text-3);
    stroke-width: 2;
    fill: none;
    pointer-events: none;
}

.cd-search {
    width: 100%;
    max-width: 100%;
    padding: 13px 44px 13px 44px; /* padding-right garantido para o ícone de limpar */
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--bg-card);
    font-size: .88rem;
    font-family: var(--font);
    color: var(--text-1);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}

.cd-search:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(195,50,35,.1);
}

.cd-search::placeholder { color: var(--text-3); }

.cd-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #f0f2f5;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
}
.cd-search-clear:hover { background: #e2e6ec; }
.cd-search-clear svg { width: 14px; height: 14px; stroke: var(--text-2); stroke-width: 2; fill: none; }

/* ── CATEGORIAS ──────────────────────────────────────────── */
.cd-cats {
    position: sticky;
    top: var(--topbar-h);
    background: var(--bg);
    z-index: 50;
    padding: 8px 0 12px;
    margin-bottom: 8px;
    overflow: hidden; /* evita vazamento do scroll interno no Safari iOS */
}

.cd-cats-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.cd-cats-inner::-webkit-scrollbar { display: none; }
.cd-cats-inner { cursor: grab; user-select: none; }
.cd-cats-inner.dragging { cursor: grabbing; }

.cd-cat {
    flex-shrink: 0;
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 30px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    transition: all .18s;
    font-family: var(--font);
    white-space: nowrap;
}
.cd-cat:hover { border-color: var(--brand); color: var(--brand); }
.cd-cat.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 2px 10px rgba(195,50,35,.25);
}

/* ── COLUNA PRINCIPAL ────────────────────────────────────── */
.cd-main {
    min-width: 0;      /* obrigatório em filhos flex/grid para não vazar */
    overflow: hidden;
    width: 100%;
}

/* ── GRADE DE PRODUTOS ───────────────────────────────────── */
.cd-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.cd-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    gap: 16px;
    cursor: pointer;
    transition: all .18s;
    position: relative;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.cd-card:hover {
    border-color: #d0d8e4;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.cd-card.unavailable {
    opacity: .5;
    pointer-events: none;
}

.cd-card-thumb {
    width: 84px;
    height: 84px;
    border-radius: 14px;
    background: #f0f4fe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 2.4rem;
    overflow: hidden;
    position: relative;
}

.cd-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.cd-card-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    width: 100%;
    height: 100%;
}

.cd-card-thumb svg {
    width: 34px;
    height: 34px;
    stroke: var(--brand);
    stroke-width: 1.4;
    fill: none;
    opacity: .4;
}

.cd-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 12px;
    align-items: center;
}

.cd-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cd-card-name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.3;
}

.cd-card-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand);
    margin-top: 6px;
}

.cd-card-desc {
    font-size: .74rem;
    color: var(--text-2);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cd-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef3c7;
    color: #92400e;
    font-size: .62rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    width: fit-content;
}

.cd-card-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
}

/* Linha qty + botão adicionar */
.cd-add-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Seletor de qtd */
.cd-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 30px;
    padding: 3px;
    flex-shrink: 0;
    width: 88px;
}

.cd-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s;
    box-shadow: var(--shadow-sm);
}
.cd-qty-btn svg { width: 12px; height: 12px; stroke: var(--text-2); stroke-width: 2.5; fill: none; }
.cd-qty-btn:hover { background: var(--brand); box-shadow: 0 2px 8px rgba(195,50,35,.2); }
.cd-qty-btn:hover svg { stroke: #fff; }

.cd-qty-val {
    font-size: .88rem;
    font-weight: 700;
    flex: 1;
    text-align: center;
    color: var(--text-1);
}

.cd-btn-add {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    transition: all .18s;
    letter-spacing: .2px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.cd-btn-add:hover { background: var(--brand-dark); box-shadow: 0 3px 12px rgba(195,50,35,.25); }

.cd-btn-add-label {
    font-size: .78rem;
    font-weight: 700;
}

.cd-btn-add-price {
    font-size: .78rem;
    font-weight: 700;
    opacity: .85;
}

/* ── ESTADO VAZIO ────────────────────────────────────────── */
.cd-empty, .cd-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 72px 20px;
    gap: 10px;
    text-align: center;
}
.cd-empty-icon  { font-size: 3rem; margin-bottom: 4px; }
.cd-empty p     { font-size: .9rem; font-weight: 600; color: var(--text-2); }
.cd-empty span,
.cd-no-results span { font-size: .78rem; color: var(--text-3); }
.cd-no-results p { font-size: .9rem; font-weight: 600; color: var(--text-2); }

/* ── CARRINHO (desktop) ──────────────────────────────────── */
.cd-cart-aside {
    position: sticky;
    top: calc(var(--topbar-h) + 20px);
}

/* ── CART WIDGET (shared) ────────────────────────────────── */
.cw-wrap {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.cw-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-2);
}

.cw-header h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 9px;
}

.cw-header h3 svg {
    width: 17px;
    height: 17px;
    stroke: var(--brand);
    stroke-width: 2;
    fill: none;
}

.cw-items {
    max-height: 320px;
    overflow-y: auto;
    padding: 0 20px;
    scrollbar-width: thin;
    scrollbar-color: #e2e6ec transparent;
}
.cw-items::-webkit-scrollbar { width: 3px; }
.cw-items::-webkit-scrollbar-thumb { background: #e2e6ec; border-radius: 8px; }

.cw-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px;
    gap: 6px;
    text-align: center;
}
.cw-empty-icon { font-size: 2.4rem; margin-bottom: 6px; }
.cw-empty p    { font-size: .83rem; font-weight: 600; color: var(--text-2); }
.cw-empty span { font-size: .72rem; color: var(--text-3); }

.cw-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-2);
    align-items: center;
}
.cw-item:last-child { border-bottom: none; }

.cw-item-name { font-size: .83rem; font-weight: 600; color: var(--text-1); }
.cw-item-unit { font-size: .7rem; color: var(--text-3); margin-top: 1px; }

.cw-item-ctrl {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cw-item-ctrl button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}
.cw-item-ctrl button svg { width: 11px; height: 11px; stroke: var(--text-2); stroke-width: 2.5; fill: none; }
.cw-item-ctrl button:hover { background: var(--brand); border-color: var(--brand); }
.cw-item-ctrl button:hover svg { stroke: #fff; }
.cw-item-qty { font-size: .82rem; font-weight: 700; min-width: 18px; text-align: center; }

.cw-item-total { font-size: .82rem; font-weight: 700; color: var(--text-1); text-align: right; }

.cw-summary {
    padding: 16px 20px 20px;
    border-top: 2px solid var(--border-2);
}

.cw-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: .82rem;
    color: var(--text-2);
}

.cw-total {
    font-weight: 700;
    font-size: .95rem;
    color: var(--text-1);
    padding: 10px 0 14px;
    margin-top: 6px;
    border-top: 1px solid var(--border-2);
}

.cw-min-warn {
    background: #fef3c7;
    padding: 6px 10px;
    border-radius: 8px;
    margin: 4px 0;
    font-size: .74rem;
    color: #92400e;
    font-weight: 600;
}

.cw-btn-checkout {
    width: 100%;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 40px;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    transition: all .2s;
    letter-spacing: .2px;
}
.cw-btn-checkout:hover {
    background: var(--brand-dark);
    box-shadow: 0 4px 16px rgba(195,50,35,.3);
    transform: translateY(-1px);
}
.cw-btn-checkout:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cw-btn-clear {
    width: 100%;
    background: transparent;
    color: var(--text-3);
    border: 1px solid var(--border);
    padding: 9px;
    border-radius: 40px;
    font-size: .74rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font);
    transition: all .18s;
    margin-top: 8px;
}
.cw-btn-clear:hover { background: #fef2f2; border-color: #fecaca; color: #dc2626; }

/* Oculta o header duplicado dentro do drawer mobile */
.cd-cart-mobile .cw-header {
    display: none;
}

/* ── CARRINHO MOBILE (drawer) ────────────────────────────── */
.cd-cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 200;
    backdrop-filter: blur(2px);
}
.cd-cart-overlay.open { display: block; }

.cd-cart-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 201;
    background: var(--bg-card);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,.15);
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    max-height: 85vh;
    overflow-y: auto;
}
.cd-cart-mobile.open { transform: translateY(0); }

.cd-cart-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border-2);
    font-weight: 700;
    font-size: .95rem;
}
.cd-cart-mobile-header button {
    background: #f0f2f5;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.cd-cart-mobile-header button svg { width: 16px; height: 16px; stroke: var(--text-2); stroke-width: 2; fill: none; }


/* ── RESPONSIVO (exclusivo do cardápio) ── */
/* ── RESPONSIVO ──────────────────────────────────────────── */
@media (max-width: 980px) {
    .cd-layout {
        grid-template-columns: 1fr;
    }
    .cd-cart-aside  { display: none; }
    .cd-fab-cart    { display: flex; }
}

@media (max-width: 640px) {
    /* Oculta o header completamente no mobile */
    .cd-topbar      { display: none; }

    .cd-hero-inner  { padding: 36px 20px 40px; }
    .cd-hero-info h1 { font-size: 1.55rem; }

    /* Layout: padding lateral contido */
    .cd-layout      { padding: 16px 12px 80px; overflow: hidden; }

    /* Coluna principal contida */
    .cd-main {
        min-width: 0;
        overflow: hidden;
        width: 100%;
    }

    /* Search wrap: garante que não estoure */
    .cd-search-wrap {
        overflow: hidden;
        max-width: 100%;
    }

    /* Categorias: scroll horizontal sem estouro */
    .cd-cats {
        overflow: hidden;
    }
    .cd-cats-inner {
        max-width: 100%;
    }

    /* Grid: nunca ultrapassa a tela */
    .cd-grid {
        width: 100%;
        overflow: hidden;
        min-width: 0;
    }

    /* Card: estrutura horizontal thumbnail + coluna direita */
    .cd-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        padding: 14px 14px 14px 12px;
        gap: 10px;
        width: 100%;
        overflow: hidden;
    }

    /* Thumbnail fixo */
    .cd-card-thumb {
        width: 62px;
        height: 62px;
        font-size: 1.8rem;
        flex-shrink: 0;
        align-self: flex-start;
    }

    /* Coluna direita: DEVE ter min-width:0 para respeitar o flex */
    .cd-card-body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    /* Info: nome, desc, preço */
    .cd-card-info {
        width: 100%;
        min-width: 0;
    }

    .cd-card-price {
        display: none;
    }

    .cd-card-name {
        font-size: .88rem;
        white-space: normal;
        word-break: break-word;
    }

    .cd-card-desc {
        -webkit-line-clamp: 2;
        font-size: .72rem;
    }

    .cd-card-price {
        font-size: .9rem;
        margin-top: 2px;
    }

    /* Ações: alinhadas à direita, sem estourar */
    .cd-card-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        max-width: 100%;
        overflow: hidden;
    }

    /* Qty + botão lado a lado */
    .cd-add-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        max-width: 100%;
        overflow: hidden;
    }

    /* Qty compacto e fixo */
    .cd-qty {
        width: 80px;
        flex-shrink: 0;
    }

    /* Botão tamanho natural, sem esticar */
    .cd-btn-add {
        flex-shrink: 0;
        padding: 9px 14px;
        font-size: .73rem;
        justify-content: center;
        gap: 6px;
        white-space: nowrap;
    }

    .cd-btn-add-label { font-size: .73rem; }
    .cd-btn-add-price { font-size: .73rem; }
}

/* Localização visível apenas no desktop */
@media (max-width: 640px) {
    .cd-topbar-location { display: none; }
}



/* ── SIDEBAR DE INFORMAÇÕES DO RESTAURANTE ── */
/* ── INFO SIDEBAR ────────────────────────────────────────── */

/* Botão de info na hero */
.cd-hero-info-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    flex-shrink: 0;
}
.cd-hero-info-btn:hover {
    background: rgba(255,255,255,.28);
    border-color: rgba(255,255,255,.6);
    transform: scale(1.08);
}
.cd-hero-info-btn svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}

/* Overlay do sidebar */
.cd-info-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.38);
    z-index: 300;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .28s ease;
}
.cd-info-overlay.open {
    display: block;
    opacity: 1;
}

/* Drawer lateral */
.cd-info-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 301;
    width: 380px;
    max-width: 95vw;
    background: var(--bg-card);
    box-shadow: -8px 0 40px rgba(0,0,0,.14);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    border-radius: 20px 0 0 20px;
    overflow: hidden;
}
.cd-info-sidebar.open {
    transform: translateX(0);
}

/* Cabeçalho do sidebar */
.cd-info-sidebar-header {
    background: var(--bg-card);
    border-bottom: 1.5px solid var(--border);
    padding: 24px 20px 22px;
    position: relative;
    flex-shrink: 0;
}
.cd-info-sidebar-header::before {
    display: none;
}
.cd-info-sidebar-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .18s;
    z-index: 1;
}
.cd-info-sidebar-close:hover {
    background: var(--border);
    border-color: var(--text-3);
}
.cd-info-sidebar-close svg {
    width: 15px;
    height: 15px;
    stroke: var(--text-2);
    stroke-width: 2.5;
    fill: none;
}

/* Logo / avatar dentro do sidebar */
.cd-info-sidebar-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255,255,255,.22);
    border: 2px solid rgba(255,255,255,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.cd-info-sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cd-info-sidebar-nome {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-1);
    line-height: 1.2;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}
.cd-info-sidebar-cat {
    font-size: .74rem;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .5px;
    position: relative;
    z-index: 1;
}

/* Linha de horário no header do sidebar */
.cd-info-header-horario {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 30px;
    padding: 8px 8px 8px 14px;
    gap: 8px;
}
.cd-info-header-horario-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-1);
}
.cd-info-header-horario-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}
.cd-info-header-horario-dot.fechado { background: #dc2626; }
.cd-info-header-ver-mais {
    font-size: .72rem;
    font-weight: 700;
    color: var(--brand);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    padding: 4px 10px;
    border-radius: 20px;
    transition: background .15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.cd-info-header-ver-mais:hover { background: rgba(195,50,35,.08); }

/* Aviso de taxa/pedido no rodapé do sidebar */
.cd-info-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #f8f9fb;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 13px 14px;
    margin: 0 22px 20px;
}
.cd-info-notice svg {
    width: 15px;
    height: 15px;
    stroke: var(--text-3);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
    margin-top: 1px;
}
.cd-info-notice p {
    font-size: .73rem;
    color: var(--text-3);
    line-height: 1.55;
    margin: 0;
}

/* Pills de formas de pagamento */
.cd-info-payment-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 4px;
}
.cd-info-payment-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    padding: 5px 11px;
    border-radius: 20px;
    font-size: .74rem;
    font-weight: 600;
    color: var(--text-2);
}
.cd-info-payment-pill svg {
    width: 12px;
    height: 12px;
    stroke: var(--text-3);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}

/* Corpo do sidebar */
.cd-info-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #e2e6ec transparent;
}
.cd-info-sidebar-body::-webkit-scrollbar { width: 4px; }
.cd-info-sidebar-body::-webkit-scrollbar-thumb { background: #e2e6ec; border-radius: 8px; }

/* Seções de info */
.cd-info-section {
    padding: 20px 22px;
    border-bottom: 1px solid var(--border-2);
}
.cd-info-section:last-child {
    border-bottom: none;
}
.cd-info-section-title {
    font-size: .68rem;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
}

/* Linhas de info */
.cd-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.cd-info-row:last-child { margin-bottom: 0; }
.cd-info-row-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cd-info-row-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--brand);
    stroke-width: 2;
    fill: none;
}
.cd-info-row-text {
    flex: 1;
    min-width: 0;
}
.cd-info-row-label {
    font-size: .7rem;
    color: var(--text-3);
    font-weight: 500;
    margin-bottom: 1px;
}
.cd-info-row-value {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.4;
}
.cd-info-row-value a {
    color: var(--brand);
    text-decoration: none;
}
.cd-info-row-value a:hover { text-decoration: underline; }

/* Badge status (aberto/fechado) */
.cd-info-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
}
.cd-info-status-badge.aberto {
    background: var(--green-lt);
    color: var(--green);
}
.cd-info-status-badge.fechado {
    background: #fef2f2;
    color: #dc2626;
}
.cd-info-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

/* Pills de entrega */
.cd-info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.cd-info-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    padding: 7px 13px;
    border-radius: 20px;
    font-size: .76rem;
    font-weight: 600;
    color: var(--text-2);
}
.cd-info-pill svg {
    width: 13px;
    height: 13px;
    stroke: var(--brand);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}

/* Descrição */
.cd-info-desc {
    font-size: .82rem;
    color: var(--text-2);
    line-height: 1.65;
}

@media (max-width: 480px) {
    .cd-info-sidebar {
        width: 100%;
        border-radius: 20px 20px 0 0;
        top: auto;
        height: 90vh;
        transform: translateY(100%);
    }
    .cd-info-sidebar.open {
        transform: translateY(0);
    }
}
