:root {
    --cor-loja-hover: color-mix(in srgb, var(--cor-loja) 80%, black);
    --sf-bg: #f8f9fa;
    --sf-muted: #717171;
    --sf-text: #1a1a1a;
    --sf-border: #e6e6e6;
    --sf-surface: #eef0f2;
    --sf-discount: #00a355;
    --sf-radius-img: 12px;
    --sf-radius-pill: 999px;
    --sf-nav-h: 56px;
    --sf-max-w: 100%;
    --sf-pad-x: 16px;
}

body {
    background-color: var(--sf-bg);
    padding-bottom: 100px;
    scroll-behavior: smooth;
    color: var(--sf-text);
    width: 100%;
    max-width: 100%;
}

.sf-toolbar,
.sf-content,
.sf-closed-banner,
.storefront-banner-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.storefront-banner-wrap .carousel-item > a { line-height: 0; }

/* ── Hero: laterais sempre no tom do banner sem imagem ── */
.sf-hero-bleed {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(
        160deg,
        color-mix(in srgb, var(--cor-loja) 82%, #fff),
        color-mix(in srgb, var(--cor-loja) 68%, #111827)
    );
    box-sizing: border-box;
}
.sf-hero {
    position: relative;
    margin-bottom: 0;
    width: 100%;
    max-width: var(--sf-max-w);
    margin-left: auto;
    margin-right: auto;
    /* Padding horizontal só nos filhos — evita desalinhamento com a lista */
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}
.sf-hero-cover {
    position: relative;
    height: auto;
    min-height: clamp(120px, 20vw, 180px);
    background: linear-gradient(
        160deg,
        color-mix(in srgb, var(--cor-loja) 82%, #fff),
        color-mix(in srgb, var(--cor-loja) 68%, #111827)
    );
    overflow: hidden;
    border-radius: 0;
    width: 100%;
    line-height: 0;
}
/* Banner com imagem: mantém o tom por baixo (laterais / letterbox) */
.sf-hero-cover:has(img) {
    min-height: 0;
}
.sf-hero-cover img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.sf-hero-sheet {
    position: relative;
    background: #fff;
    border-radius: 0;
    margin-top: 0;
    padding: 14px var(--sf-pad-x) 12px;
    z-index: 1;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    box-shadow: none;
}
.sf-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.sf-hero-info {
    text-align: left;
    padding-top: 0;
    min-width: 0;
    flex: 1 1 auto;
}
.sf-hero-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--sf-text);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.sf-hero-meta {
    font-size: .85rem;
    color: var(--sf-muted);
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.sf-hero-meta-sep { color: var(--sf-muted); }
.sf-hero-btn-group {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}
.sf-hero-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e8e8e8;
    background: #fff;
    color: var(--sf-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: background .2s, border-color .2s, color .2s;
}
.sf-hero-btn:hover {
    background: color-mix(in srgb, var(--cor-loja) 10%, #fff);
    border-color: color-mix(in srgb, var(--cor-loja) 35%, #e8e8e8);
    color: var(--cor-loja);
}
.status-badge {
    font-size: .7rem;
    padding: 4px 10px;
    border-radius: var(--sf-radius-pill);
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.status-aberto { background-color: #d1e7dd; color: #0f5132; }
.status-fechado { background-color: #f8d7da; color: #842029; }

.sf-closed-banner {
    background: var(--cor-loja);
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    font-size: .8rem;
    font-weight: 700;
}

/* ── Busca + abas de categoria (sempre full-bleed no sticky) ── */
.sf-toolbar {
    background: #fff;
    position: sticky;
    top: var(--sf-nav-h, 56px);
    z-index: 1020;
    border-bottom: 1px solid var(--sf-border);
    padding: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    left: 0;
    right: 0;
}
.sf-toolbar-inner {
    width: 100%;
    max-width: var(--sf-max-w);
    margin-left: auto;
    margin-right: auto;
}
.sf-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--sf-surface);
    border-radius: var(--sf-radius-pill);
    padding: 10px 16px;
    margin: 0 var(--sf-pad-x) 10px;
}
.sf-search i { color: var(--sf-muted); font-size: 1.05rem; }
.sf-search input {
    border: none;
    background: transparent;
    flex: 1;
    outline: none;
    font-size: .95rem;
    font-weight: 500;
    color: var(--sf-text);
    min-width: 0;
}
.sf-search input::placeholder { color: #9a9a9a; font-weight: 500; }

.sf-tabs-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--sf-pad-x) 0 calc(var(--sf-pad-x) - 4px);
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}
.sf-tabs-menu-btn {
    flex-shrink: 0;
    width: 40px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--sf-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sf-tabs-arrow {
    display: none;
    flex-shrink: 0;
    width: 36px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--sf-text);
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: opacity .15s, color .15s;
}
.sf-tabs-arrow:hover:not(:disabled) { color: var(--cor-loja); }
.sf-tabs-arrow:disabled {
    opacity: .28;
    cursor: default;
}
.sf-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    min-width: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
    overscroll-behavior-x: contain;
}
.sf-tabs::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}
.sf-tab {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--sf-muted);
    font-weight: 600;
    font-size: .9rem;
    padding: 10px 12px 12px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color .15s, border-color .15s;
    position: relative;
}
.sf-tab:hover { color: var(--sf-text); }
.sf-tab.is-active {
    color: var(--sf-text);
    font-weight: 800;
    border-bottom-color: var(--cor-loja, var(--sf-text));
}

/* ── Banner carousel — capa do hero, borda a borda ── */
.storefront-banner-carousel {
    line-height: 0;
    overflow: hidden;
}
#carouselPromo .carousel-item,
#carouselPromo .carousel-item > a { display: block; width: 100%; }
.storefront-banner-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    object-fit: cover;
    object-position: center;
}
#carouselPromo .carousel-control-prev,
#carouselPromo .carousel-control-next { width: 12%; }
#carouselPromo .carousel-indicators [data-bs-target] {
    width: 8px; height: 8px; border-radius: 50%;
}

/* ── Seções / títulos ── */
.sf-content {
    padding: 8px 0 24px;
    width: 100%;
    max-width: var(--sf-max-w);
    margin-left: auto;
    margin-right: auto;
}
.categoria-section { padding: 8px 0 4px; }
.categoria-section .sf-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--sf-text);
    margin: 16px var(--sf-pad-x) 8px;
    letter-spacing: -0.02em;
}
.home-title-section { padding: 24px var(--sf-pad-x) 8px; text-align: left; }
.home-title-section h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.home-image-section,
.home-youtube-section,
.home-text-section { padding: 8px var(--sf-pad-x) 20px; }
.home-text-section {
    margin: 8px var(--sf-pad-x) 20px;
    padding: 16px;
    background: var(--sf-surface);
    border-radius: 16px;
    border: none;
    box-shadow: none;
}

/* ── Lista de produtos (estilo iFood) ── */
.prod-grid { display: flex; flex-direction: column; gap: 0; margin: 0; width: 100%; }
.prod-grid--list {
    width: 100%;
    max-width: 100%;
}
.prod-grid--list.row { --bs-gutter-x: 0; --bs-gutter-y: 0; margin-left: 0; margin-right: 0; }
.prod-grid--list .prod-item {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
    box-sizing: border-box;
}
.prod-grid--list .prod-item.col,
.prod-grid--list .prod-item[class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}
.prod-grid--list .card-food,
.prod-grid--list .card-food--list {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: var(--sf-pad-x);
    padding-right: var(--sf-pad-x);
    border-bottom: 1px solid #e9ecef;
    height: 100%;
    background: #fff;
}
.prod-grid--list .prod-item:last-child .card-food {
    border-bottom-color: transparent;
}

.prod-grid--grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
    padding: 0 calc(var(--sf-pad-x) - 8px) 8px;
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}
.prod-grid--grid > .prod-item {
    display: flex;
    margin-top: 0;
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    margin-bottom: var(--bs-gutter-y);
}
.prod-grid--grid .card-food--grid {
    flex-direction: column;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
    padding: 0;
    height: 100%;
    width: 100%;
    gap: 0;
    border-bottom: none;
}
.prod-grid--grid .card-food--grid:hover {
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}
.prod-grid--grid .card-food-media {
    order: -1;
    width: 100%;
    height: auto;
}
.prod-grid--grid .img-food-box {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 0;
}
.prod-grid--grid .card-food-body {
    padding: 12px 14px 16px;
    order: 0;
}
.prod-grid--grid .product-title {
    min-height: 2.5em;
    font-size: .95rem;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.prod-grid--grid .product-desc { display: none; }


.card-food {
    background: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--sf-border);
    box-shadow: none;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    padding: 16px var(--sf-pad-x);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: auto;
    cursor: pointer;
    transition: background .15s;
    position: relative;
    overflow: visible;
}
.card-food:hover {
    transform: none;
    box-shadow: none;
    background: #fafafa;
}
.card-food:active { transform: none; background: #f1f3f5; }

.card-food-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    order: 1;
}
.card-food-media {
    order: 2;
    flex-shrink: 0;
    width: 104px;
    height: 104px;
    position: relative;
}
.img-food-box {
    width: 104px;
    height: 104px;
    aspect-ratio: 1;
    background: var(--sf-surface);
    border-radius: var(--sf-radius-img);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    position: relative;
}
.img-food-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s;
}
.card-food:hover .img-food-box img { transform: scale(1.04); }

.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sf-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 0;
    margin: 0 0 2px;
}
.product-desc {
    font-size: .8rem;
    color: var(--sf-muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 8px;
}
.price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}
.price-tag {
    color: var(--cor-loja);
    font-weight: 800;
    font-size: 1.22rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.prod-grid--list .price-tag {
    font-size: 1.3rem;
}
.price-old {
    color: #a3a3a3;
    font-size: .85rem;
    text-decoration: line-through;
    font-weight: 500;
}
.price-from {
    font-size: .78rem;
    color: var(--sf-muted);
    font-weight: 600;
    width: 100%;
}
.discount-badge {
    display: inline-flex;
    align-items: center;
    background: var(--sf-discount);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: .02em;
}

/* Fica na linha do preço, fora da imagem: encostado à direita da price-row. */
.btn-add-mini {
    position: static;
    margin-left: auto;
    align-self: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cor-loja);
    color: #fff;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    transition: transform .15s, background .15s;
    flex-shrink: 0;
    z-index: 2;
    padding: 0;
}
.btn-add-mini:hover { background: var(--cor-loja-hover); transform: scale(1.08); color: #fff; }
.btn-add-mini.disabled { background: #ccc; cursor: not-allowed; box-shadow: none; transform: none; }

.card-esgotado { opacity: .55; filter: grayscale(100%); pointer-events: none; }
.badge-esgotado {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.55); color: #fff;
    font-weight: 800; font-size: .7rem; letter-spacing: .04em;
    border-radius: var(--sf-radius-img); z-index: 2;
}

.btn-ver-mais {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: var(--cor-loja);
    font-weight: 700;
    font-size: .9rem;
    padding: 12px 16px;
}

/* ── Destaques (carrossel clean) ── */
.destaque-showcase-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 8px 0 16px;
    box-shadow: none;
}
.destaque-showcase-header { padding: 8px var(--sf-pad-x) 4px; }
.destaque-showcase-label {
    display: none;
}
.destaque-showcase-header h4 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.destaque-showcase-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px var(--sf-pad-x) 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
}
.destaque-showcase-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

.destaque-showcase-item {
    flex: 0 0 132px;
    scroll-snap-align: start;
}
.destaque-showcase-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    height: 100%;
    box-shadow: none;
    cursor: pointer;
    transition: opacity .15s;
}
.destaque-showcase-card:hover {
    transform: none;
    box-shadow: none;
    opacity: .92;
}
.destaque-showcase-img {
    position: relative;
    aspect-ratio: 1;
    background: var(--sf-surface);
    border-radius: var(--sf-radius-img);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.destaque-showcase-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}
.destaque-showcase-star {
    position: absolute;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    border-radius: 4px;
    background: #3f3f46;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 3px 6px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.destaque-showcase-body { padding: 8px 2px 0; }
.destaque-showcase-name {
    font-weight: 600;
    color: var(--sf-text);
    font-size: .82rem;
    line-height: 1.3;
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.destaque-showcase-price {
    margin-top: 4px;
    font-size: .88rem;
    color: var(--sf-text);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.destaque-showcase-price strong { font-weight: 800; }
.destaque-showcase-price .price-old { font-size: .72rem; }

/* ── FAB sacola ── */
.fab-cart-right {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 1050;
    display: none;
    flex-direction: column;
    align-items: stretch;
    animation: popIn .35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: auto;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}
@keyframes popIn {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.btn-smart-cart {
    background-color: var(--cor-loja);
    color: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 8px 28px color-mix(in srgb, var(--cor-loja) 35%, transparent);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    border: none;
}
.btn-smart-cart:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--cor-loja) 45%, transparent);
}
.cart-icon-wrapper { font-size: 1.25rem; position: relative; display: flex; align-items: center; gap: 10px; }
.cart-badge-count {
    position: static;
    background: rgba(255,255,255,.25);
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    min-width: 24px;
    height: 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: none;
}
.cart-total-text { font-weight: 800; font-size: 1.05rem; }
.cart-fab-label { font-weight: 700; font-size: .95rem; opacity: .95; }

/* ── Toast / empty ── */
.app-toast {
    position: fixed;
    bottom: -100px;
    left: 16px;
    right: 16px;
    transform: none;
    background: #111;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--sf-radius-pill);
    box-shadow: 0 5px 20px rgba(0,0,0,.3);
    z-index: 1060;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: bottom .4s;
    white-space: normal;
    text-align: center;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    box-sizing: border-box;
}
.app-toast.show { bottom: 90px; }

.sf-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--sf-muted);
}
.sf-empty i { font-size: 2.5rem; opacity: .3; }

/* ── Modais ── */
.modal-content.sf-modal {
    border: none;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,.12);
}

@media (min-width: 992px) {
    :root {
        --sf-max-w: 1100px;
        --sf-pad-x: 20px;
    }
    body.sf-layout-grid,
    body.sf-layout-list {
        --sf-max-w: 1100px;
    }
    .sf-hero-cover {
        height: auto;
        border-radius: 0;
    }
    .sf-hero-cover:not(:has(img)) {
        min-height: 220px;
    }
    .sf-hero-sheet {
        padding: 24px var(--sf-pad-x) 16px;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
        box-sizing: border-box;
    }
    /* Header, banner, toolbar e produtos na mesma coluna central */
    body.store-body .sv-navbar > .container.sv-navbar-inner,
    body.store-body .sv-navbar-inner {
        max-width: var(--sf-max-w) !important;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: var(--sf-pad-x);
        padding-right: var(--sf-pad-x);
        box-sizing: border-box;
    }
    .sf-hero,
    .sf-content,
    .sf-toolbar-inner {
        max-width: var(--sf-max-w);
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        box-sizing: border-box;
    }
    .sf-search {
        margin-left: var(--sf-pad-x);
        margin-right: var(--sf-pad-x);
    }
    /* Categorias: scrollbar + setas só no desktop */
    .sf-tabs-arrow {
        display: inline-flex;
    }
    .sf-tabs {
        scrollbar-width: thin;
        scrollbar-color: color-mix(in srgb, var(--cor-loja) 55%, #c4c4c4) #f0f0f0;
        padding-bottom: 4px;
    }
    .sf-tabs::-webkit-scrollbar {
        display: block;
        width: auto;
        height: 6px;
        background: #f0f0f0;
    }
    .sf-tabs::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 999px;
    }
    .sf-tabs::-webkit-scrollbar-thumb {
        background: color-mix(in srgb, var(--cor-loja) 55%, #c4c4c4);
        border-radius: 999px;
    }
    .sf-tabs::-webkit-scrollbar-thumb:hover {
        background: var(--cor-loja);
    }
    .destaque-showcase-item { flex-basis: 148px; }
    .card-food-media, .img-food-box { width: 120px; height: 120px; }
    .card-food { padding-top: 18px; padding-bottom: 18px; }
    /* Lista em 2 colunas, mantendo o card horizontal */
    .prod-grid--list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        padding-left: calc(var(--sf-pad-x) * 0.5);
        padding-right: calc(var(--sf-pad-x) * 0.5);
    }
    .prod-grid--list .prod-item,
    .prod-grid--list .prod-item.col,
    .prod-grid--list .prod-item[class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        display: flex;
    }
    .prod-grid--list .card-food,
    .prod-grid--list .card-food--list {
        padding-left: calc(var(--sf-pad-x) * 0.75);
        padding-right: calc(var(--sf-pad-x) * 0.75);
        border-bottom: 1px solid #dadada;
        border-right: 1px solid #dadada;
    }
    .prod-grid--list .prod-item:nth-child(even) .card-food {
        border-right-color: transparent;
    }
    .prod-grid--list .prod-item:last-child .card-food,
    .prod-grid--list .prod-item:nth-last-child(2):nth-child(odd) .card-food {
        border-bottom-color: #dadada;
    }
    .prod-grid--list .card-food-media,
    .prod-grid--list .img-food-box {
        width: 104px;
        height: 104px;
    }
    .prod-grid--list .product-title {
        font-size: .95rem;
    }
    .prod-grid--list .product-desc {
        -webkit-line-clamp: 2;
        font-size: .76rem;
    }
    .prod-grid--list .price-tag {
        font-size: 1.18rem;
    }
    .prod-grid--grid .card-food-media,
    .prod-grid--grid .img-food-box {
        width: 100%;
        height: auto;
    }
    .fab-cart-right {
        left: max(16px, calc(50% - (var(--sf-max-w) / 2)));
        right: max(16px, calc(50% - (var(--sf-max-w) / 2)));
        width: auto;
        max-width: var(--sf-max-w);
        margin-inline: auto;
        transform: none;
        padding-left: var(--sf-pad-x);
        padding-right: var(--sf-pad-x);
        box-sizing: border-box;
    }
}

@media (max-width: 991.98px) {
    :root {
        --sf-pad-x: 12px;
    }
    /* Banner full-bleed no mobile; laterais (se houver) mantêm o tom do hero */
    .sf-hero {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }
    .sf-hero-sheet {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
        padding-top: 14px;
        padding-left: var(--sf-pad-x);
        padding-right: var(--sf-pad-x);
    }
    .sf-hero-cover {
        border-radius: 0;
        width: 100%;
    }
    .sf-hero-info { padding-top: 0; }
    .sf-content,
    .sf-toolbar-inner {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        box-sizing: border-box;
    }
    .sf-search {
        margin-left: var(--sf-pad-x);
        margin-right: var(--sf-pad-x);
    }
    .prod-grid {
        width: 100%;
    }
    /* Espaço do FAB fica no body/sf-content — não entre cada categoria */
    body.sf-layout-list .prod-grid--list {
        padding-bottom: 0;
    }
    body.sf-layout-list .categoria-section {
        padding-top: 4px;
        padding-bottom: 0;
    }
    body.sf-layout-list .categoria-section .sf-section-title {
        margin-top: 12px;
        margin-bottom: 4px;
    }
    body.sf-layout-list .btn-container-mais {
        padding-top: 4px;
        padding-bottom: 8px;
    }
    .prod-grid--list .prod-item,
    .prod-grid--list .card-food,
    .prod-grid--list .card-food--list {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        border-right: none;
    }
    .prod-grid--list .prod-item:last-child .card-food {
        border-bottom-color: transparent;
    }
    .prod-grid--grid {
        padding-left: var(--sf-pad-x);
        padding-right: var(--sf-pad-x);
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
    .prod-grid--grid > .prod-item {
        flex: 0 0 50%;
        max-width: 50%;
        width: 50%;
    }
    body.store-body .store-wa-fab {
        bottom: max(96px, calc(80px + env(safe-area-inset-bottom, 0px)));
        z-index: 1040;
    }
    .sf-content {
        padding-bottom: 24px;
    }
}

/* Card da vitrine de catalogo (loja_online) */
/* Home da loja catalogo: a grade usa .prod-grid (busca e "ver mais"), mas precisa ser linha com quebra
   como a .row do Bootstrap; sem isto o flex-direction: column do .prod-grid empilha os cards. */
.prod-grid.catalog-grid {
    flex-direction: row;
    flex-wrap: wrap;
    /* Alinha a borda dos cards com o titulo da secao (mesmo recuo lateral da vitrine). */
    padding: 0 calc(var(--sf-pad-x) - .5 * var(--bs-gutter-x));
}
.catalog-subcats { padding: 0 var(--sf-pad-x); scrollbar-width: none; }
.catalog-subcats::-webkit-scrollbar { display: none; }
.catalog-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; }
.catalog-card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #f6f6f6; }
.catalog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.catalog-card-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.7); font-weight: 800; color: #555; }
.catalog-card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px; flex: 1; }
.catalog-card-marca { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--sf-muted); font-weight: 700; }
.catalog-card-nome { color: inherit; text-decoration: none; font-weight: 600; font-size: .9rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.catalog-card-preco { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: auto; }
.catalog-card--esgotado .catalog-card-media img { filter: grayscale(100%); opacity: .6; }
.qty-card { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.qty-card button { width: 34px; height: 34px; border: 0; background: #f3f3f3; font-size: 1.1rem; line-height: 1; }
.qty-card .qty-input { flex: 1; min-width: 0; width: 100%; height: 34px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty-card .qty-input::-webkit-outer-spin-button, .qty-card .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-comprar { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: var(--cor-loja); color: #fff; font-weight: 700; text-align: center; text-decoration: none; }
.btn-comprar:hover { background: var(--cor-loja-hover); color: #fff; }
.btn-comprar:disabled { background: #ccc; cursor: not-allowed; }
.btn-comprar--escolher { background: #fff; color: var(--cor-loja); border: 2px solid var(--cor-loja); }
.btn-comprar--escolher:hover { background: var(--cor-loja); }
