/* Loja online: visual de e-commerce, feito primeiro para celular. */
body.loja {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --dourado: var(--cor-secundaria);
    --sombra-card: 0 2px 10px rgba(60, 35, 15, .08);
}
.loja h1, .loja h2, .loja-marca span { font-family: "Playfair Display", Georgia, serif; }
.loja [hidden] { display: none !important; }

/* Barra do topo: marrom com opacidade, deixa ver o que passa por trás */
.loja-topo {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 16px;
    background: color-mix(in srgb, var(--cor-primaria) 72%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    color: #fff;
}
.loja-marca { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.loja-marca img { width: 44px; height: 44px; border-radius: 50%; }
.loja-marca span { font-size: 1.25rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loja-topo-acoes { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.loja-instalar { border: 1px solid rgba(255,255,255,.7); background: transparent; color: #fff; font: inherit; font-size: .82rem; font-weight: 600; padding: 7px 12px; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.loja-sacola-btn { position: relative; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 1.2rem; cursor: pointer; }
.loja-sacola-btn b { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--dourado); color: #2b1a0c; font-size: .72rem; line-height: 20px; }

/* Banner */
.loja-hero {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
    margin-top: -60px; padding: 92px max(16px, calc((100% - 1160px) / 2)) 40px;
    color: #fff; overflow: hidden;
    background:
        linear-gradient(100deg, color-mix(in srgb, var(--cor-primaria) 88%, transparent) 0%, color-mix(in srgb, var(--cor-primaria) 62%, transparent) 55%, color-mix(in srgb, var(--cor-primaria) 30%, transparent) 100%),
        url("../img/hero-casabela.jpg") center / cover no-repeat;
}
.loja-hero-conteudo { max-width: 560px; }
.loja-hero h1 { font-size: clamp(1.9rem, 5.5vw, 3.2rem); line-height: 1.12; margin: 12px 0 10px; }
.loja-hero p { margin: 0 0 18px; font-size: 1.02rem; opacity: .94; }
.loja-hero-logo { width: 210px; height: 210px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.loja-status { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: .8rem; font-weight: 600; }
.loja-status.aberta { background: #e8f5ee; color: #1f7a4d; }
.loja-status.fechada { background: #fdecea; color: #b3261e; }
.loja-cta { background: var(--dourado); border-color: var(--dourado); color: #2b1a0c; font-weight: 700; padding: 12px 26px; border-radius: 99px; }

.loja-infos { display: flex; gap: 10px; max-width: 1160px; margin: -18px auto 0; padding: 0 16px; list-style: none; overflow-x: auto; position: relative; z-index: 2; scrollbar-width: none; }
.loja-infos::-webkit-scrollbar { display: none; }
.loja-infos li { flex: 1 0 auto; background: #fff; border-radius: 14px; padding: 10px 16px; box-shadow: var(--sombra-card); font-size: .86rem; }
.loja-infos b, .loja-infos span { display: block; }
.loja-infos span { color: var(--sutil); }

/* Vitrine */
.loja-app { max-width: 1160px; margin: 0 auto; padding: 16px 16px 24px; }
.loja-busca { scroll-margin-top: 76px; width: 100%; padding: 12px 16px; border-radius: 99px; border: 1px solid var(--borda); background: #fff; font: inherit; }
.loja .cli-cats { top: 60px; margin: 10px -16px 0; background: var(--cor-fundo); border: 0; }
.loja .cli-cats button { background: #fff; box-shadow: var(--sombra-card); }
.loja .cli-cats button.on { background: var(--cor-primaria); }
.loja-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.loja .cli-secao h2 { font-size: 1.5rem; margin: 22px 0 12px; }
.loja-produtos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.loja-card { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--sombra-card); transition: transform .15s, box-shadow .15s; }
.loja-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(60,35,15,.14); }
.loja-card.esgotado { opacity: .55; }
.loja-foto { aspect-ratio: 4 / 3; background: #f6e9d2 center / cover no-repeat; display: flex; align-items: center; justify-content: center; }
.loja-foto img { width: 100%; height: 100%; object-fit: cover; }
.loja-foto img.marca { width: 46%; height: auto; opacity: .38; }
.loja-card-corpo { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; flex: 1; }
.loja-card-corpo strong { font-size: .98rem; line-height: 1.25; }
.loja-card-corpo p { margin: 0; font-size: .8rem; color: var(--sutil); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.loja-card-base { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; }
.loja-preco { font-weight: 700; font-size: 1.05rem; color: var(--cor-primaria); }
.loja .cli-add { width: 36px; height: 36px; }
.loja .qtd { gap: 6px; }
.loja .qtd button { width: 30px; height: 30px; }

/* Sacola lateral (computador) */
.loja-sacola { position: sticky; top: 76px; background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--sombra-card); margin-top: 22px; }
.loja-sacola h2 { font-size: 1.3rem; margin: 0 0 10px; }
.loja-sacola-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--borda); font-size: .9rem; }
.loja-sacola-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; margin: 12px 0; }
.loja-sacola .btn { width: 100%; padding: 12px; }

/* Checkout e acompanhamento ocupam coluna central */
.loja .cli-corpo { max-width: 680px; padding: 8px 0 170px; }
.loja .cli-rodape .btn { border-radius: 12px; }

.loja-rodape { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px 0; text-align: center; font-size: .9rem; }
.loja-rodape img { width: 74px; height: 74px; border-radius: 50%; }

.loja-aviso-instalar { position: fixed; left: 12px; right: 12px; bottom: 92px; z-index: 25; max-width: 460px; margin: 0 auto; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 8px 30px rgba(0,0,0,.25); font-size: .9rem; }
.loja-aviso-instalar img { width: 42px; height: 42px; border-radius: 10px; }
.loja-aviso-instalar div { flex: 1; }
.loja-aviso-instalar button { border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--sutil); }

@media (min-width: 620px) { .loja-produtos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 901px) {
    .loja .cli-rodape.so-celular { display: none; }
    .credito.cliente { padding-bottom: 24px; }
}
@media (max-width: 900px) {
    .loja-grid { grid-template-columns: minmax(0, 1fr); }
    .loja-sacola { display: none; }
    .loja-app { padding-bottom: 8px; }
}
@media (max-width: 620px) {
    .loja-hero { padding-top: 80px; padding-bottom: 38px; }
    .loja-hero-logo { width: 104px; height: 104px; align-self: flex-start; }
    .loja-hero p { font-size: .92rem; }
}
