/* ==========================================================================
   BORA — CARDÁPIO DIGITAL (página pública do restaurante)
   Escopo: tudo abaixo só se aplica dentro de body.bo-rest
   Tokens de cor/medida: bora-tokens.css (carregado antes deste arquivo)
   ========================================================================== */

body.bo-rest .bo-scope a {
    text-decoration: none;
}

body.bo-rest .bo-scope button {
    font-family: inherit;
}

/* ---------- Shell / grid ------------------------------------------------- */

.bo-scope {
    padding-bottom: 40px;
}

.bo-shell {
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 16px;
}

.bo-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.bo-main {
    min-width: 0;
}

/* O carrinho é uma gaveta flutuante em qualquer largura, então o cardápio
   ocupa a página inteira e não sobra coluna vazia quando ele está vazio. */

/* ---------- Capa + cabeçalho da loja ------------------------------------ */

.bo-cover {
    position: relative;
    height: 240px;
    border-radius: 0 0 var(--bo-r-lg) var(--bo-r-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
}

@media (max-width: 767px) {
    .bo-cover {
        height: 168px;
        border-radius: 0;
    }
}

.bo-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.bo-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .28) 0%, rgba(15, 23, 42, .55) 55%, rgba(15, 23, 42, .82) 100%);
}

.bo-store {
    position: relative;
    z-index: 2;
    margin-top: -68px;
    background: var(--bo-surface);
    border: 1px solid var(--bo-line);
    border-radius: var(--bo-r-lg);
    box-shadow: var(--bo-sh-2);
    padding: 20px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

@media (max-width: 767px) {
    .bo-store {
        margin-top: -52px;
        padding: 16px;
        gap: 14px;
        flex-direction: column;
        align-items: stretch;
    }
}

.bo-store-logo {
    flex-shrink: 0;
    width: 104px;
    height: 104px;
    border-radius: 22px;
    overflow: hidden;
    background: var(--bo-line-2);
    border: 3px solid #fff;
    box-shadow: var(--bo-sh-2);
    margin-top: -46px;
}

.bo-store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .bo-store-logo {
        width: 76px;
        height: 76px;
        border-radius: 18px;
        margin-top: -46px;
    }
}

.bo-store-main {
    flex: 1;
    min-width: 0;
}

.bo-store-name {
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--bo-ink);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .bo-store-name {
        font-size: 21px;
    }
}

.bo-store-tags {
    font-size: 13px;
    color: var(--bo-muted);
    margin: 0 0 10px;
}

.bo-store-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    font-size: 13px;
    color: var(--bo-ink-2);
}

.bo-store-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bo-store-meta svg {
    flex-shrink: 0;
    opacity: .75;
}

.bo-store-meta .bo-stars {
    color: #F59E0B;
    letter-spacing: 1px;
}

/* Descrição da loja, agora visível na página em vez de escondida no modal. */
.bo-store-desc {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--bo-line-2);
    font-size: 14px;
    line-height: 1.6;
    color: var(--bo-ink-2);
    max-width: 78ch;
}

.bo-store-desc p {
    margin: 0 0 8px;
}

.bo-store-desc p:last-child {
    margin-bottom: 0;
}

/* A nota abre as avaliações: parece texto, funciona como botão. */
.bo-store-reviews {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    margin-left: -10px;
    border: 0;
    border-radius: var(--bo-r-full);
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: background-color .18s ease;
}

.bo-store-reviews:hover {
    background: var(--bo-line-2);
}

.bo-store-reviews .bo-stars {
    color: #F59E0B;
    letter-spacing: 1px;
}

/* Selo aberto / fechado */
.bo-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 11px 4px 8px;
    border-radius: var(--bo-r-full);
    white-space: nowrap;
}

.bo-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    display: block;
}

.bo-status.is-open {
    color: var(--bo-green);
    background: var(--bo-green-soft);
}

.bo-status.is-open i {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, .6);
    animation: bo-pulse 2s infinite;
}

.bo-status.is-closed {
    color: var(--bo-muted);
    background: var(--bo-line-2);
}

@keyframes bo-pulse {
    70% {
        box-shadow: 0 0 0 7px rgba(22, 163, 74, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

/* ---------- Botões ------------------------------------------------------- */

.bo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--bo-r-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
    white-space: nowrap;
}

.bo-btn:active {
    transform: translateY(1px);
}

.bo-btn-primary {
    background: linear-gradient(135deg, var(--bo-accent) 0%, var(--bo-accent-2) 100%);
    color: #fff;
    box-shadow: 0 8px 20px var(--bo-accent-ring);
}

.bo-btn-primary:hover {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 12px 26px var(--bo-accent-ring);
}

.bo-btn-ghost {
    background: var(--bo-surface);
    color: var(--bo-ink);
    border: 1px solid var(--bo-line);
}

.bo-btn-ghost:hover {
    color: var(--bo-ink);
    background: var(--bo-line-2);
    border-color: #DDE3EA;
}

.bo-btn-icon {
    width: 42px;
    padding: 0;
    justify-content: center;
}

.bo-btn[disabled],
.bo-btn.is-disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

/* ---------- Carrinho na appbar ------------------------------------------ */

/* A appbar do template não era fixa (a regra .header.active está comentada no
   style.css), então a barra de categorias, que gruda em top:76px, ficava
   flutuando sem nada acima. Fixando aqui, o ícone do carrinho fica sempre à
   mão e a barra de categorias passa a encostar nela. */
/* O sticky vai no wrapper, não no .header: o .header tem exatamente a altura
   do pai, e sticky não gruda em elemento que preenche o próprio container.
   O padding-bottom de 70px do wrapper era o espaçador de um header fixo que
   nunca chegou a existir (a regra .header.active está comentada). */
body.bo-rest header.heder-padding {
    position: sticky;
    top: 0;
    padding-bottom: 0;
    /* Abaixo do backdrop (1070) e da gaveta (1080): ao abrir o carrinho, a
       appbar escurece junto com o resto da página. */
    z-index: 1040;
}

/* O ícone vira um botão-pílula com quantidade e total. */
body.bo-rest .header-cart {
    width: auto;
    height: 40px;
    padding: 0 16px 0 13px;
    gap: 9px;
    border-radius: var(--bo-r-full);
    background: linear-gradient(135deg, var(--bo-accent) 0%, var(--bo-accent-2) 100%);
    box-shadow: 0 8px 20px var(--bo-accent-ring);
    transition: filter .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.bo-rest .header-cart:hover {
    filter: brightness(1.07);
    box-shadow: 0 12px 26px var(--bo-accent-ring);
}

body.bo-rest .header-cart:active {
    transform: translateY(1px);
}

/* O contador deixa de ser um balãozinho no canto e entra na linha. */
body.bo-rest .header-cart sup {
    position: static;
    width: auto;
    min-width: 21px;
    height: 21px;
    line-height: 21px;
    padding: 0 7px;
    border: 0;
    border-radius: var(--bo-r-full);
    background: rgba(255, 255, 255, .26);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.header-cart-total {
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
}

/* Carrinho vazio: sem total e em tom neutro, para não gritar à toa. */
body.bo-rest .header-cart.is-empty {
    background: var(--bo-ink);
    box-shadow: none;
    padding: 0 13px;
}

body.bo-rest .header-cart.is-empty .header-cart-total {
    display: none;
}

@media (max-width: 767px) {
    body.bo-rest {
        --bo-sticky-top: 61px;
    }
}

@media (max-width: 575px) {
    .header-cart-total {
        display: none;
    }

    body.bo-rest .header-cart {
        padding: 0 12px;
    }
}

/* ---------- Faixa de informações rápidas -------------------------------- */

.bo-info-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.bo-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 13px;
    background: var(--bo-surface);
    border: 1px solid var(--bo-line);
    border-radius: var(--bo-r-full);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--bo-ink-2);
    white-space: nowrap;
}

.bo-chip svg {
    opacity: .7;
}

.bo-chip strong {
    font-weight: 700;
    color: var(--bo-ink);
}

.bo-chip.bo-chip-accent {
    background: var(--bo-accent-soft);
    border-color: rgba(var(--bo-accent-rgb), .28);
    color: var(--bo-accent-2);
}

.bo-chip.bo-chip-accent strong {
    color: var(--bo-accent-2);
}

/* Cupons */
.bo-coupons {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.bo-coupons::-webkit-scrollbar {
    display: none;
}

.bo-coupon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--bo-r);
    background: linear-gradient(135deg, #FFF5F5 0%, #FDE7E7 100%);
    border: 1px dashed rgba(var(--bo-accent-rgb), .45);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.bo-coupon:hover {
    transform: translateY(-2px);
    box-shadow: var(--bo-sh-2);
}

.bo-coupon-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--bo-accent-2);
}

.bo-coupon-code {
    font-size: 14px;
    font-weight: 800;
    color: var(--bo-ink);
    letter-spacing: .02em;
}

.bo-coupon-hint {
    font-size: 11px;
    color: var(--bo-muted);
}

/* ---------- Barra fixa: busca + categorias ------------------------------ */

.bo-navbar {
    position: sticky;
    top: var(--bo-sticky-top);
    z-index: 40;
    margin: 18px 0 4px;
    background: rgba(246, 247, 249, .88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    border-radius: var(--bo-r);
    transition: box-shadow .2s ease;
}

.bo-navbar.is-stuck {
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.bo-search {
    position: relative;
    margin-bottom: 10px;
}

.bo-search > svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .5;
    pointer-events: none;
}

.bo-search input {
    width: 100%;
    height: 46px;
    padding: 0 44px;
    border-radius: var(--bo-r-full);
    border: 1px solid var(--bo-line);
    background: var(--bo-surface);
    font-size: 14px;
    color: var(--bo-ink);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.bo-search input::placeholder {
    color: var(--bo-faint);
}

.bo-search input:focus {
    border-color: var(--bo-accent);
    box-shadow: 0 0 0 4px var(--bo-accent-ring);
}

.bo-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: var(--bo-line-2);
    color: var(--bo-muted);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.bo-search.has-value .bo-search-clear {
    display: flex;
}

.bo-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2px 0;
}

.bo-tabs::-webkit-scrollbar {
    display: none;
}

.bo-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: var(--bo-r-full);
    background: var(--bo-surface);
    border: 1px solid var(--bo-line);
    color: var(--bo-ink-2);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: all .18s ease;
}

.bo-tab:hover {
    color: var(--bo-ink);
    border-color: #D7DEE6;
}

.bo-tab.is-active {
    background: var(--bo-ink);
    border-color: var(--bo-ink);
    color: #fff;
}

/* ---------- Lista de produtos ------------------------------------------- */

.bo-section {
    scroll-margin-top: calc(var(--bo-sticky-top) + 110px);
    margin-top: 40px;
}

.bo-section-title {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--bo-ink);
    margin: 0 0 6px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.bo-section-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--bo-faint);
}

.bo-section-rule {
    height: 4px;
    width: 56px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--bo-accent), var(--bo-accent-2));
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .bo-section-title {
        font-size: 22px;
    }
}

/* Duas colunas fixas: com auto-fill a largura útil oscila entre 772px (com a
   barra do carrinho) e ~1160px (sem ela), o que gerava ora 1, ora 3 colunas. */
.bo-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 767px) {
    .bo-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1199px) {
    .bo-item {
        gap: 18px;
        padding: 18px;
        min-height: 164px;
    }

    .bo-item-media {
        width: 138px;
        height: 138px;
    }

    .bo-item-name {
        font-size: 18px;
    }
}

.bo-item {
    position: relative;
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--bo-surface);
    border: 1px solid var(--bo-line);
    border-radius: var(--bo-r-lg);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    min-height: 196px;
}

.bo-item:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--bo-accent-rgb), .4);
    box-shadow: var(--bo-sh-3);
}

@media (max-width: 575px) {
    .bo-item {
        gap: 14px;
        padding: 14px;
        min-height: 132px;
    }
}

.bo-item.is-unavailable {
    opacity: .62;
}

.bo-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.bo-item-name {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -.015em;
    color: var(--bo-ink);
    margin: 0 0 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bo-item-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--bo-muted);
    margin: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bo-item-price {
    display: flex;
    align-items: baseline;
    gap: 9px;
    flex-wrap: wrap;
    padding-top: 14px;
}

/* "a partir de", para itens cujo preço depende da variação escolhida */
.bo-item-price .bo-from {
    font-size: 13px;
    font-weight: 500;
    color: var(--bo-muted);
}

.bo-item-price .bo-now {
    font-size: 23px;
    font-weight: 800;
    color: var(--bo-ink);
    letter-spacing: -.02em;
}

.bo-item-price .bo-was {
    font-size: 14px;
    font-weight: 500;
    color: var(--bo-faint);
    text-decoration: line-through;
}

@media (max-width: 575px) {
    .bo-item-name {
        font-size: 16px;
    }

    .bo-item-desc {
        font-size: 13px;
    }

    .bo-item-price .bo-now {
        font-size: 17px;
    }
}

.bo-item-media {
    position: relative;
    flex-shrink: 0;
    width: 176px;
    height: 176px;
    border-radius: var(--bo-r);
    overflow: hidden;
    background: var(--bo-line-2);
    align-self: center;
}

@media (max-width: 575px) {
    .bo-item-media {
        width: 104px;
        height: 104px;
    }
}

.bo-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.bo-item:hover .bo-item-media img {
    transform: scale(1.06);
}

.bo-item-add {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--bo-surface);
    background: linear-gradient(135deg, var(--bo-accent) 0%, var(--bo-accent-2) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(var(--bo-accent-rgb), .45);
    transition: transform .18s ease;
    padding: 0;
    z-index: 2;
}

.bo-item:hover .bo-item-add {
    transform: scale(1.1);
}

.bo-off-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    color: #fff;
    background: var(--bo-accent);
    padding: 3px 8px;
    border-radius: var(--bo-r-full);
    box-shadow: 0 4px 10px var(--bo-accent-ring);
}

/* Estado vazio da busca */
.bo-empty-search {
    display: none;
    text-align: center;
    padding: 56px 20px;
    color: var(--bo-muted);
}

.bo-empty-search.is-visible {
    display: block;
}

.bo-empty-search h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--bo-ink);
    margin: 12px 0 4px;
}

.bo-empty-search p {
    font-size: 13.5px;
    margin: 0;
}

/* ---------- Carrinho ----------------------------------------------------- */

.bo-cart {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100%;
    z-index: 1080;
    background: var(--bo-surface);
    border-left: 1px solid var(--bo-line);
    box-shadow: var(--bo-sh-pop);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

body.bo-cart-open .bo-cart {
    transform: translateX(0);
}

@media (max-width: 575px) {
    .bo-cart {
        width: 100%;
        border-left: 0;
    }
}

.bo-cart-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.bo-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--bo-line);
    flex-shrink: 0;
}

.bo-cart-head h2 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    color: var(--bo-ink);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bo-cart-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: var(--bo-r-full);
    background: var(--bo-accent);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bo-cart-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: var(--bo-line-2);
    color: var(--bo-ink-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.bo-cart-close:hover {
    background: var(--bo-line);
    color: var(--bo-ink);
}

.bo-cart-scroll {
    overflow-y: auto;
    padding: 16px 18px;
    flex: 1;
    min-height: 0;
}

.bo-cart-scroll::-webkit-scrollbar {
    width: 6px;
}

.bo-cart-scroll::-webkit-scrollbar-thumb {
    background: #DDE3EA;
    border-radius: 6px;
}

/* Alternador entrega / retirada */
.bo-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    background: var(--bo-line-2);
    border-radius: var(--bo-r-full);
    margin-bottom: 16px;
    position: relative;
}

.bo-switch label {
    margin: 0;
    height: 36px;
    border-radius: var(--bo-r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bo-muted);
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
}

.bo-switch label.is-active {
    background: var(--bo-surface);
    color: var(--bo-ink);
    box-shadow: var(--bo-sh-1);
}

.bo-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bo-mode-note {
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--bo-ink-2);
    background: var(--bo-line-2);
    border-radius: var(--bo-r-full);
    padding: 8px;
    margin-bottom: 16px;
}

.bo-cart-from {
    font-size: 12px;
    color: var(--bo-muted);
    margin: 0 0 12px;
}

.bo-cart-from strong {
    color: var(--bo-ink);
    font-weight: 700;
}

.bo-cart-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.bo-cart-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bo-line-2);
}

.bo-cart-item:first-child {
    padding-top: 0;
}

.bo-cart-item:last-child {
    border-bottom: 0;
}

.bo-cart-item-body {
    flex: 1;
    min-width: 0;
}

.bo-cart-item-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--bo-ink);
    margin: 0 0 3px;
    line-height: 1.35;
}

.bo-cart-item-sub {
    font-size: 11.5px;
    color: var(--bo-muted);
    margin: 0;
    line-height: 1.5;
}

.bo-cart-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
}

.bo-cart-item-price {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--bo-ink);
    white-space: nowrap;
}

.bo-cart-remove {
    border: 0;
    background: transparent;
    color: var(--bo-faint);
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
    transition: color .18s ease;
}

.bo-cart-remove:hover {
    color: var(--bo-red);
}

/* Stepper de quantidade */
.bo-stepper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--bo-line-2);
    border-radius: var(--bo-r-full);
    padding: 3px;
}

.bo-stepper button {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: var(--bo-surface);
    color: var(--bo-ink);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--bo-sh-1);
    transition: background-color .18s ease, color .18s ease;
}

.bo-stepper button:hover {
    background: var(--bo-accent);
    color: #fff;
}

.bo-stepper input {
    width: 30px;
    border: 0;
    background: transparent;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--bo-ink);
    outline: none;
    -moz-appearance: textfield;
}

.bo-stepper input::-webkit-outer-spin-button,
.bo-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bo-stepper.bo-stepper-lg button {
    width: 34px;
    height: 34px;
    font-size: 12px;
}

.bo-stepper.bo-stepper-lg input {
    width: 40px;
    font-size: 15px;
}

/* Cupom */
.bo-coupon-field {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.bo-coupon-field input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border: 1px dashed var(--bo-line);
    border-radius: var(--bo-r-sm);
    background: var(--bo-line-2);
    font-size: 13px;
    outline: none;
    color: var(--bo-ink);
    transition: border-color .18s ease;
}

.bo-coupon-field input:focus {
    border-color: var(--bo-accent);
    background: var(--bo-surface);
}

.bo-coupon-field button {
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--bo-r-sm);
    background: var(--bo-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .18s ease;
}

.bo-coupon-field button:hover {
    background: var(--bo-accent);
}

.bo-coupon-msg {
    display: block;
    font-size: 11.5px;
    color: var(--bo-red);
    margin-bottom: 12px;
    min-height: 14px;
}

/* Totais */
.bo-totals {
    list-style: none;
    margin: 0;
    padding: 14px 0 0;
    border-top: 1px dashed var(--bo-line);
}

.bo-totals li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--bo-muted);
    padding: 5px 0;
}

.bo-totals li span:last-child {
    font-weight: 600;
    color: var(--bo-ink-2);
}

.bo-totals li.bo-total-free span:last-child {
    color: var(--bo-green);
    font-weight: 700;
}

.bo-totals li.bo-total-grand {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--bo-line);
    font-size: 15px;
    color: var(--bo-ink);
    font-weight: 700;
}

.bo-totals li.bo-total-grand span:last-child {
    font-size: 19px;
    font-weight: 800;
    color: var(--bo-ink);
    letter-spacing: -.02em;
}

.bo-cart-foot {
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--bo-line);
    background: var(--bo-surface);
    flex-shrink: 0;
}

.bo-cart-cta {
    width: 100%;
    height: 50px;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}

/* Carrinho vazio */
.bo-cart-empty {
    text-align: center;
    padding: 44px 24px 52px;
}

.bo-cart-empty img {
    width: 128px;
    height: auto;
    opacity: .9;
    margin-bottom: 14px;
}

.bo-cart-empty h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--bo-ink);
    margin: 0 0 6px;
}

.bo-cart-empty p {
    font-size: 13px;
    color: var(--bo-muted);
    margin: 0;
    line-height: 1.55;
}

/* Barra flutuante do carrinho (mobile) */
.bo-cart-bar {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 1050;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 56px;
    padding: 0 8px 0 18px;
    border: 0;
    border-radius: var(--bo-r-full);
    background: linear-gradient(135deg, var(--bo-accent) 0%, var(--bo-accent-2) 100%);
    color: #fff;
    box-shadow: 0 14px 34px rgba(var(--bo-accent-2-rgb), .38);
    cursor: pointer;
    animation: bo-rise .3s ease;
}

@keyframes bo-rise {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* No celular o cabeçalho da loja já rolou para fora, então a barra flutuante
   segue como CTA fixo. No desktop o botão do cabeçalho e o ícone do header
   fixo dão conta, e a barra só atrapalharia. */
@media (max-width: 991px) {
    body.bo-rest.bo-has-cart .bo-cart-bar {
        display: flex;
    }

    body.bo-rest.bo-has-cart .bo-scope {
        padding-bottom: 92px;
    }
}

.bo-cart-bar-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: var(--bo-r-full);
    background: rgba(255, 255, 255, .22);
    font-size: 12.5px;
    font-weight: 800;
}

.bo-cart-bar-label {
    flex: 1;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
}

.bo-cart-bar-total {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: var(--bo-r-full);
    background: rgba(255, 255, 255, .18);
    font-size: 14.5px;
    font-weight: 800;
}

.bo-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    z-index: 1070;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

body.bo-cart-open .bo-backdrop {
    opacity: 1;
    visibility: visible;
}



/* ---------- Modais (produto / info / reserva) ---------------------------- */

body.bo-rest .bo-modal .modal-dialog {
    max-width: 520px;
    margin: 1.75rem auto;
}

body.bo-rest .bo-modal .modal-content {
    border: 0;
    border-radius: var(--bo-r-lg);
    overflow: hidden;
    box-shadow: var(--bo-sh-pop);
    background: var(--bo-surface);
}

@media (max-width: 575px) {
    body.bo-rest .bo-modal .modal-dialog {
        margin: 0;
        max-width: none;
        min-height: 100%;
        display: flex;
        align-items: flex-end;
    }

    body.bo-rest .bo-modal .modal-content {
        border-radius: var(--bo-r-lg) var(--bo-r-lg) 0 0;
        width: 100%;
        max-height: 94vh;
    }
}

.bo-modal-hero {
    position: relative;
    height: 220px;
    background: var(--bo-line-2);
}

.bo-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bo-modal-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--bo-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--bo-sh-2);
    z-index: 3;
    font-size: 13px;
}

.bo-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 52vh;
}

@media (max-width: 575px) {
    .bo-modal-body {
        max-height: 46vh;
    }
}

.bo-modal-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--bo-ink);
    margin: 0 0 6px;
}

.bo-modal-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--bo-muted);
    margin: 0;
}

.bo-group {
    margin-top: 20px;
}

.bo-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.bo-group-head h4 {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--bo-ink);
    margin: 0;
}

.bo-group-head small {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--bo-muted);
    margin-top: 2px;
}

.bo-tag {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 4px 9px;
    border-radius: var(--bo-r-full);
    white-space: nowrap;
}

.bo-tag-required {
    color: var(--bo-accent-2);
    background: var(--bo-accent-soft);
}

.bo-tag-optional {
    color: var(--bo-muted);
    background: var(--bo-line-2);
}

.bo-options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bo-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--bo-line);
    border-radius: var(--bo-r-sm);
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
    margin: 0;
}

.bo-option:hover {
    border-color: #D7DEE6;
    background: #FBFCFD;
}

.bo-option input {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    accent-color: var(--bo-accent);
    cursor: pointer;
    margin: 0;
}

.bo-option .bo-option-name {
    flex: 1;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--bo-ink);
}

.bo-option .bo-option-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--bo-accent-2);
    white-space: nowrap;
}

.bo-option.is-checked {
    border-color: var(--bo-accent);
    background: var(--bo-accent-soft);
}

.bo-price-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 14px;
    border-radius: var(--bo-r-sm);
    background: var(--bo-line-2);
}

.bo-price-box .bo-now {
    font-size: 22px;
    font-weight: 800;
    color: var(--bo-ink);
    letter-spacing: -.02em;
}

.bo-price-box .bo-was {
    font-size: 14px;
    color: var(--bo-faint);
    text-decoration: line-through;
}

.bo-note {
    width: 100%;
    min-height: 84px;
    padding: 12px 14px;
    border: 1px solid var(--bo-line);
    border-radius: var(--bo-r-sm);
    font-size: 13.5px;
    font-family: inherit;
    color: var(--bo-ink);
    outline: none;
    resize: vertical;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.bo-note::placeholder {
    color: var(--bo-faint);
}

.bo-note:focus {
    border-color: var(--bo-accent);
    box-shadow: 0 0 0 4px var(--bo-accent-ring);
}

.bo-modal-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--bo-line);
    background: var(--bo-surface);
}

.bo-modal-foot .bo-btn {
    flex: 1;
    justify-content: center;
    height: 48px;
}

/* Modal de informações da loja */
.bo-info-hero {
    position: relative;
    height: 170px;
    background: var(--bo-line-2);
}

.bo-info-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bo-info-head {
    padding: 16px 20px 12px;
}

.bo-info-head h3 {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--bo-ink);
}

.bo-info-head p {
    font-size: 13px;
    color: var(--bo-muted);
    margin: 0 0 10px;
}

body.bo-rest .bo-modal .nav-tabs {
    border-bottom: 1px solid var(--bo-line);
    padding: 0 20px;
    gap: 4px;
}

body.bo-rest .bo-modal .nav-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 13px 4px;
    margin-right: 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--bo-muted);
    background: transparent;
}

body.bo-rest .bo-modal .nav-tabs .nav-link.active {
    color: var(--bo-ink);
    border-bottom-color: var(--bo-accent);
}

.bo-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bo-facts li h5 {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--bo-faint);
    margin: 0 0 4px;
}

.bo-facts li p {
    font-size: 14px;
    color: var(--bo-ink);
    margin: 0;
    line-height: 1.5;
}

.bo-pays {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bo-pay {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bo-ink-2);
    background: var(--bo-line-2);
    border-radius: var(--bo-r-full);
    padding: 6px 12px;
}

.bo-qr {
    margin-top: 20px;
    text-align: center;
    padding: 18px;
    background: var(--bo-line-2);
    border-radius: var(--bo-r);
}

.bo-qr img {
    width: 148px;
    height: 148px;
    border-radius: var(--bo-r-sm);
    background: #fff;
    padding: 8px;
}

.bo-qr p {
    font-size: 11.5px;
    color: var(--bo-muted);
    margin: 10px 0 0;
}

/* Avaliações */
.bo-reviews {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bo-review {
    padding: 14px;
    border: 1px solid var(--bo-line);
    border-radius: var(--bo-r-sm);
}

.bo-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.bo-review-stars {
    color: #F59E0B;
    font-size: 12px;
    letter-spacing: 1px;
}

.bo-review-date {
    font-size: 11px;
    color: var(--bo-faint);
}

.bo-review p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--bo-ink-2);
    margin: 0;
}

/* Formulário de avaliação */
.bo-rate {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.bo-rate input {
    display: none;
}

.bo-rate label {
    font-size: 24px;
    color: #E2E8F0;
    cursor: pointer;
    margin: 0;
    transition: color .15s ease;
}

.bo-rate input:checked ~ label,
.bo-rate label:hover,
.bo-rate label:hover ~ label {
    color: #F59E0B;
}

.bo-alert {
    font-size: 12.5px;
    color: var(--bo-red);
    background: var(--bo-red-soft);
    border-radius: var(--bo-r-sm);
    padding: 10px 12px;
    margin-bottom: 14px;
}

.bo-alert ul {
    margin: 0;
    padding-left: 18px;
}

/* ---------- Rodapé ------------------------------------------------------- */

.bo-footer-slot {
    margin-top: 40px;
}

/* ---------- Ajustes do template base ------------------------------------ */

body.bo-rest .header.fixed {
    box-shadow: 0 1px 0 var(--bo-line);
}

/* Impede o carrinho antigo (style.css) de vazar na página nova */
body.bo-rest .cart-sidebar {
    display: none !important;
}

/* ---------- Ajustes finais ---------------------------------------------- */

/* A raiz do componente Livewire do carrinho não deve criar caixa: seus dois
   filhos (a gaveta e a barra flutuante) são position:fixed. */
.bo-cart-wrap {
    display: contents;
}

.bo-switch label i {
    font-size: 12px;
    opacity: .8;
}

.bo-cart-item-sub i {
    opacity: .6;
    margin-right: 3px;
}

.bo-modal-foot .bo-btn span + span {
    opacity: .85;
    font-weight: 800;
}

/* Formulario de avaliacao dentro do modal de informacoes */
.bo-modal-body .bo-note {
    min-height: 76px;
}
