/* =========================================================
   SLICE & FLAME — SOBREMESAS PREMIUM
   ========================================================= */

:root {
    --fundo: #0f0b0a;
    --fundo-2: #161110;
    --cartao: #1c1614;
    --cartao-2: #241c19;
    --campo: #120e0d;
    --linha: rgba(255, 255, 255, .08);

    --ouro: #f2b84b;
    --ouro-escuro: #d99a2b;
    --brasa: #ff6a2b;
    --verde: #2fbf71;
    --coracao: #ff5a6e;

    --texto: #f6eee6;
    --texto-suave: #a8988c;

    --raio: 20px;
    --sombra: 0 20px 50px rgba(0, 0, 0, .45);

    --fonte-titulo: "Fraunces", Georgia, "Times New Roman", serif;
    --fonte-texto: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ========================= */
/* RESET */
/* ========================= */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--fundo);
    color: var(--texto);
    font-family: var(--fonte-texto);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 96px;
}

body.travado { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* ========================= */
/* BOTÕES */
/* ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform .2s ease, filter .2s ease;
}

.btn:active { transform: scale(.97); }
.btn-largo { width: 100%; }

.btn-ouro {
    background: linear-gradient(180deg, #f7c662, var(--ouro-escuro));
    color: #1a1209;
    box-shadow: 0 10px 30px rgba(242, 184, 75, .25), inset 0 1px 0 rgba(255, 255, 255, .4);
}

.btn-ouro:hover { filter: brightness(1.06); }

.icone-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--linha);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: background .2s ease;
}

.icone-btn:hover { background: rgba(255, 255, 255, .12); }

.link-ouro { color: var(--ouro); font-size: 14px; font-weight: 500; text-decoration: underline; }

.contador {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--ouro);
    color: #1a1209;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}

.contador.visivel { transform: scale(1); }

/* ========================= */
/* TOPO */
/* ========================= */

.topo {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 11, 10, .85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--linha);
}

.topo-inner {
    max-width: 1140px;
    margin: 0 auto;
    height: 64px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.topo-titulo { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topo-titulo strong { font-family: var(--fonte-titulo); font-size: 20px; line-height: 1.1; }
.topo-titulo span { font-size: 12px; color: var(--texto-suave); }

/* ========================= */
/* HERO + CAIXA 3D */
/* ========================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 28px 0 8px;
    background:
        radial-gradient(55% 60% at 80% 40%, rgba(255, 106, 43, .2), transparent 70%),
        var(--fundo);
}

.hero-grid { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.hero-texto { flex: 1; min-width: 0; animation: subir .7s ease both; }

.hero-tag {
    display: inline-block;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(242, 184, 75, .1);
    border: 1px solid rgba(242, 184, 75, .3);
    color: var(--ouro);
    margin-bottom: 12px;
}

.hero h1 {
    font-family: var(--fonte-titulo);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: -.4px;
    margin-bottom: 10px;
}

.hero h1 em {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(90deg, var(--ouro), var(--brasa));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p { color: var(--texto-suave); font-size: 14px; max-width: 420px; }

/* casquinha 3D */
.cena-sorvete {
    position: relative;
    flex: 0 0 130px;
    height: 160px;
    animation: aparecer .8s ease both .1s;
}

.sorvete {
    --w: 64px;
    position: absolute;
    left: 50%;
    top: 4px;
    width: var(--w);
    height: calc(var(--w) * 2.2);
    margin-left: calc(var(--w) / -2);
    transform-origin: 50% 100%;
    animation: balancar 3.2s ease-in-out infinite;
}

.sorvete span { position: absolute; left: 50%; border-radius: 50%; }

.casquinha {
    bottom: 0;
    width: 80%;
    height: 52%;
    margin-left: -40%;
    border-radius: 0 !important;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background:
        repeating-linear-gradient(45deg, transparent 0 7px, rgba(120, 65, 20, .55) 7px 9px),
        repeating-linear-gradient(-45deg, transparent 0 7px, rgba(120, 65, 20, .55) 7px 9px),
        linear-gradient(90deg, #b9782f, #e6ac5c 45%, #a8661f);
}

.bola {
    width: 80%;
    height: 34%;
    margin-left: -40%;
    box-shadow: inset -8px -8px 14px rgba(0, 0, 0, .22), inset 6px 6px 10px rgba(255, 255, 255, .35);
}

.bola-1 { bottom: 42%; background: radial-gradient(circle at 35% 35%, #fff4e0, #f3d9a8 70%); }
.bola-2 { bottom: 60%; width: 74%; margin-left: -37%; background: radial-gradient(circle at 35% 35%, #ffd1dc, #f08aa4 70%); }
.bola-3 { bottom: 77%; width: 64%; height: 28%; margin-left: -32%; background: radial-gradient(circle at 35% 35%, #8a5a3c, #4a2a18 70%); }

.cereja {
    top: 0;
    width: 22%;
    height: 10%;
    margin-left: -11%;
    background: radial-gradient(circle at 35% 35%, #ff6b7a, #b0122a 70%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
    z-index: 2;
}

.cereja::after {
    content: "";
    position: absolute;
    left: 55%;
    top: -70%;
    width: 2px;
    height: 90%;
    background: #3b5e22;
    transform: rotate(20deg);
    border-radius: 2px;
}

@keyframes balancar {
    0%, 100% { transform: translateY(0) rotate(-7deg); }
    50% { transform: translateY(-8px) rotate(7deg); }
}

.caixa-sombra {
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: 8px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent);
    animation: sombra 9s ease-in-out infinite;
}

.vapor { position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }

.vapor i {
    width: 5px;
    height: 24px;
    border-radius: 5px;
    background: linear-gradient(to top, rgba(255, 255, 255, .18), transparent);
    animation: vapor 2.2s ease-in-out infinite;
}

.vapor i:nth-child(2) { animation-delay: .5s; }
.vapor i:nth-child(3) { animation-delay: 1s; }

@keyframes sombra {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(.85); opacity: .7; }
}

@keyframes vapor {
    0% { transform: translateY(8px) scaleY(.6); opacity: 0; }
    40% { opacity: 1; }
    100% { transform: translateY(-14px) scaleY(1.1); opacity: 0; }
}

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

@keyframes aparecer { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }

/* ========================= */
/* BUSCA E FILTROS (grudam no topo) */
/* ========================= */

.ferramentas {
    position: sticky;
    top: 64px;
    z-index: 90;
    background: rgba(15, 11, 10, .92);
    padding: 12px 0 10px;
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease;
}

.ferramentas.grudado { border-bottom-color: var(--linha); }

.busca {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    background: var(--campo);
    border: 1.5px solid var(--linha);
    transition: border-color .2s ease;
}

.busca:focus-within { border-color: var(--ouro); }

.busca i { color: var(--texto-suave); font-size: 15px; }

.busca input {
    flex: 1;
    min-width: 0;
    height: 100%;
    background: none;
    border: none;
    outline: none;
    color: var(--texto);
    font-family: inherit;
    font-size: 16px; /* evita zoom no iPhone */
}

.busca input::placeholder { color: #6e625a; }

.filtros {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 10px -16px 0;
    padding: 0 16px;
    scrollbar-width: none;
}

.filtros::-webkit-scrollbar { display: none; }

.filtro {
    flex-shrink: 0;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--linha);
    color: var(--texto-suave);
    font-size: 14px;
    font-weight: 500;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.filtro:hover { color: var(--texto); }

.filtro.ativo {
    background: var(--ouro);
    border-color: var(--ouro);
    color: #1a1209;
}

/* ========================= */
/* GRADE DE COMBOS */
/* ========================= */

.resultado { font-size: 13px; color: var(--texto-suave); margin: 16px 0 12px; }

.grade { display: flex; flex-direction: column; gap: 16px; perspective: 1200px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.tag {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--linha);
    font-size: 11px;
    color: var(--texto-suave);
}

.detalhe-descricao {
    font-size: 15px;
    line-height: 1.6;
    color: var(--texto-suave);
    margin: 10px 0 18px;
    padding: 14px;
    border-radius: 14px;
    background: var(--campo);
    border: 1px solid var(--linha);
}

.combo {
    position: relative;
    border-radius: var(--raio);
    background: linear-gradient(160deg, var(--cartao-2), var(--cartao));
    border: 1px solid var(--linha);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    transition: transform .4s ease, border-color .3s ease, box-shadow .4s ease;
    animation: subir .5s ease backwards;
}

.combo.tem-itens { border-color: rgba(242, 184, 75, .5); }

.combo-foto {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #2a201c, #1a1412);
    overflow: hidden;
    cursor: pointer;
}

.combo-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }

.combo-foto::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 11, 10, .55), transparent 50%);
    pointer-events: none;
}

.selo {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 11, 10, .78);
    border: 1px solid rgba(242, 184, 75, .4);
    color: var(--ouro);
    font-size: 11px;
    font-weight: 600;
}

.selo:empty { display: none; }

.favorito {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 11, 10, .7);
    border: 1px solid var(--linha);
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, color .2s ease;
}

.favorito.ativo { color: var(--coracao); }

.favorito.pulsar { animation: coracao .45s ease; }

@keyframes coracao {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.combo-corpo { padding: 16px; display: flex; flex-direction: column; flex: 1; }

.combo-corpo h3 {
    font-family: var(--fonte-titulo);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    cursor: pointer;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 12px;
    color: var(--texto-suave);
    margin: 4px 0 10px;
}

.meta .estrela { color: var(--ouro); }

.itens-curto { font-size: 13px; color: var(--texto-suave); margin-bottom: 12px; flex: 1; }

.economia {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(47, 191, 113, .12);
    color: #5fd99a;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 14px;
}

.economia:empty { display: none; }

.combo-rodape { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.preco { font-size: 20px; font-weight: 600; color: var(--ouro); white-space: nowrap; }

.brilho {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, .12), transparent 45%);
    transition: opacity .3s ease;
}

/* controle de quantidade */
.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f7c662, var(--ouro-escuro));
    color: #1a1209;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(242, 184, 75, .2);
    transition: transform .2s ease;
}

.btn-add:active { transform: scale(.94); }

.stepper {
    display: flex;
    align-items: center;
    height: 42px;
    border-radius: 12px;
    background: rgba(242, 184, 75, .12);
    border: 1px solid rgba(242, 184, 75, .35);
    animation: aparecer .25s ease;
}

.stepper button {
    width: 38px;
    height: 100%;
    color: var(--ouro);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stepper span { min-width: 22px; text-align: center; font-weight: 600; font-size: 15px; }

/* nada encontrado */
.nada { text-align: center; padding: 50px 0; color: var(--texto-suave); }
.nada span { font-size: 44px; display: block; margin-bottom: 8px; }
.nada p { margin-bottom: 10px; }

/* ========================= */
/* CAMADA ESCURA */
/* ========================= */

.camada {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(0, 0, 0, .6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.camada.ativo { opacity: 1; visibility: visible; }

/* ========================= */
/* DETALHE DO COMBO (sobe de baixo) */
/* ========================= */

.detalhe {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    max-width: 560px;
    max-height: 92vh;
    margin: 0 auto;
    overflow-y: auto;
    background: var(--fundo-2);
    border: 1px solid var(--linha);
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    transform: translateY(105%);
    visibility: hidden;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility .45s;
}

.detalhe.ativo { transform: translateY(0); visibility: visible; }

.detalhe-fechar {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(15, 11, 10, .75);
}

.detalhe-foto { position: relative; height: 240px; background: #2a201c; }

.detalhe-foto img { width: 100%; height: 100%; object-fit: cover; }

.detalhe-corpo { padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }

.detalhe-corpo h2 { font-family: var(--fonte-titulo); font-size: 26px; line-height: 1.15; }

.detalhe-itens {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 14px;
    padding: 14px;
    border-radius: 14px;
    background: var(--campo);
    border: 1px solid var(--linha);
}

.detalhe-itens li { display: flex; align-items: center; gap: 10px; font-size: 15px; }

.detalhe-itens li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ouro);
    flex-shrink: 0;
}

.detalhe-rodape { display: flex; gap: 10px; margin-top: 4px; }

.detalhe-rodape .btn { flex: 1; }

.qtd-escolha {
    display: flex;
    align-items: center;
    height: 52px;
    border-radius: 14px;
    background: var(--campo);
    border: 1px solid var(--linha);
}

.qtd-escolha button { width: 44px; height: 100%; font-size: 20px; color: var(--ouro); }

.qtd-escolha span { min-width: 24px; text-align: center; font-weight: 600; font-size: 17px; }

/* ========================= */
/* BARRA DO PEDIDO */
/* ========================= */

.barra-pedido {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 150;
    max-width: 520px;
    margin: 0 auto;
    height: 60px;
    padding: 0 10px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f7c662, var(--ouro-escuro));
    color: #1a1209;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .25) inset;
    transform: translateY(calc(100% + 60px));
    visibility: hidden;
    transition: transform .45s cubic-bezier(.2, .9, .3, 1.2), visibility .45s;
}

.barra-pedido.visivel { transform: translateY(0); visibility: visible; }

.barra-pedido.pulo { animation: pulo .45s ease; }

.barra-qtd {
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 12px;
    background: rgba(26, 18, 9, .9);
    color: var(--ouro);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.barra-texto { flex: 1; text-align: left; font-weight: 600; font-size: 16px; }

.barra-total { font-weight: 700; font-size: 16px; padding-right: 6px; }

@keyframes pulo {
    0%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-6px) scale(1.03); }
}

/* ========================= */
/* PAINEL DO PEDIDO */
/* ========================= */

.painel-pedido {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    max-width: 560px;
    margin: 0 auto;
    max-height: 85vh;
    background: var(--fundo-2);
    border: 1px solid var(--linha);
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    transform: translateY(105%);
    visibility: hidden;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility .45s;
}

.painel-pedido.ativo { transform: translateY(0); visibility: visible; }

.painel-alca { width: 42px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); margin: 0 auto 10px; cursor: pointer; }

.painel-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }

.painel-topo h2 { font-family: var(--fonte-titulo); font-size: 24px; }

.pedido-lista { overflow-y: auto; flex: 1; }

.pedido-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linha); }

.pedido-item img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: #2a201c; flex-shrink: 0; }

.pedido-item-info { flex: 1; min-width: 0; }

.pedido-item-info strong { display: block; font-size: 15px; font-weight: 600; }

.pedido-item-info span { font-size: 13px; color: var(--texto-suave); }

.pedido-item .stepper { height: 38px; }

.pedido-item .stepper button { width: 34px; }

.pedido-vazio { display: none; text-align: center; padding: 30px 0 20px; color: var(--texto-suave); }

.pedido-vazio span { font-size: 44px; display: block; margin-bottom: 8px; }

.painel-pedido.vazio .pedido-vazio { display: block; }

.painel-pedido.vazio .painel-rodape { display: none; }

.painel-rodape { padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }

.pedido-total { display: flex; align-items: baseline; justify-content: space-between; font-size: 15px; color: var(--texto-suave); }

.pedido-total strong { font-size: 24px; color: var(--texto); }

.limpar { font-size: 13px; color: var(--texto-suave); padding: 6px; text-decoration: underline; }

/* ========================= */
/* TOAST */
/* ========================= */

.toast {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    z-index: 300;
    max-width: 380px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--cartao-2);
    border: 1px solid var(--linha);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
}

.toast.ativo { opacity: 1; visibility: visible; transform: translateY(0); }

.toast-icone {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--verde);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ========================= */
/* RODAPÉ */
/* ========================= */

.rodape {
    margin-top: 48px;
    padding: 28px 16px;
    border-top: 1px solid var(--linha);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.rodape strong { font-family: var(--fonte-titulo); font-size: 20px; color: var(--ouro); }
.rodape span { font-size: 13px; color: var(--texto-suave); }
.rodape small { font-size: 12px; color: #6e625a; margin-top: 6px; }

/* ========================= */
/* TABLET (≥ 640px) */
/* ========================= */

@media (min-width: 640px) {

    .container { padding: 0 24px; }
    .topo-inner { padding: 0 24px; }

    .hero { padding: 40px 0 16px; }
    .hero h1 { font-size: 44px; }
    .hero p { font-size: 15px; }

    .cena-sorvete { flex-basis: 220px; height: 230px; }
    .sorvete { --w: 92px; top: 6px; }

    .filtros { margin: 10px 0 0; padding: 0; }

    .grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

    .detalhe { bottom: auto; top: 50%; border-radius: 24px; border-bottom: 1px solid var(--linha); transform: translateY(-45%) scale(.96); opacity: 0; transition: transform .35s ease, opacity .35s ease, visibility .35s; }
    .detalhe.ativo { transform: translateY(-50%) scale(1); opacity: 1; }
    .detalhe-foto { height: 280px; }
}

/* ========================= */
/* DESKTOP (≥ 1024px) */
/* ========================= */

@media (min-width: 1024px) {

    body { padding-bottom: 0; }

    .topo-inner { height: 72px; }
    .ferramentas { top: 72px; }

    .hero { padding: 56px 0 24px; }
    .hero h1 { font-size: 58px; }
    .hero p { font-size: 17px; }

    .cena-sorvete { flex-basis: 320px; height: 290px; }
    .sorvete { --w: 118px; top: 6px; }

    .ferramentas .container { display: flex; align-items: center; gap: 16px; }
    .busca { flex: 0 0 340px; }
    .filtros { margin: 0; }

    .grade { grid-template-columns: repeat(3, 1fr); gap: 24px; }

    .combo:hover { box-shadow: var(--sombra); }
    .combo:hover .brilho { opacity: 1; }
    .combo:hover .combo-foto img { transform: scale(1.06); }

    .barra-pedido { left: auto; right: 28px; bottom: 28px; width: 380px; }
}

/* ========================= */
/* CELULAR: CARDS COMPACTOS (foto ao lado) */
/* ========================= */

@media (max-width: 639px) {

    .grade { gap: 12px; }

    .combo { flex-direction: row; border-radius: 18px; }

    .combo-foto { flex: 0 0 112px; height: auto; min-height: 148px; }

    .combo-foto::after { display: none; }

    .selo { top: 8px; left: 8px; padding: 3px 7px; font-size: 9px; }

    .favorito { top: 8px; right: 8px; width: 32px; height: 32px; font-size: 13px; }

    .combo-corpo { padding: 12px 12px 12px 14px; min-width: 0; }

    .combo-corpo h3 { font-size: 17px; padding-right: 34px; }

    .meta { font-size: 11px; gap: 2px 10px; margin: 2px 0 6px; }

    .itens-curto {
        font-size: 12px;
        line-height: 1.45;
        margin-bottom: 8px;
        display: -webkit-box;
       
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .tags { margin-bottom: 10px; }

    .tag { font-size: 10px; padding: 2px 7px; }

    .preco { font-size: 17px; }

    .btn-add { height: 38px; padding: 0 12px; font-size: 13px; gap: 6px; }

    .stepper { height: 38px; }

    .stepper button { width: 34px; }
}