/**
 * Vitrine — identidade azul (confiança / tecnologia), mobile-first
 */
:root {
    --loja-bg: #f0f4fb;
    --loja-bg-elevated: #f8fafc;
    --loja-surface: #ffffff;
    --loja-border: #e2e8f0;
    --loja-text: #0f172a;
    --loja-muted: #64748b;
    --loja-price: #0c4a6e;
    --loja-accent: #2563eb;
    --loja-accent-soft: rgba(37, 99, 235, 0.12);
    --loja-accent-hover: #1d4ed8;
    --loja-accent-ring: rgba(37, 99, 235, 0.28);
    --loja-warm: #ea580c;
    --loja-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
    --loja-shadow-hover: 0 8px 28px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
    --loja-radius: 12px;
    --loja-radius-sm: 10px;
    --loja-safe-bottom: env(safe-area-inset-bottom, 0);
    --font: "DM Sans", system-ui, -apple-system, sans-serif;
    --loja-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.12);
}

.loja-page {
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--loja-bg);
    font-family: var(--font);
    color: var(--loja-text);
    padding-bottom: calc(2rem + var(--loja-safe-bottom));
}

/* ——— Loader inicial (logo animada) ——— */
.loja-app-loader {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    background: linear-gradient(165deg, #f8fafc 0%, #e8f0fe 45%, #dbeafe 100%);
    transition: opacity 0.45s var(--loja-ease-out), visibility 0.45s;
}

.loja-app-loader[hidden] {
    display: none !important;
}

.loja-app-loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loja-app-loader__logo-wrap {
    position: relative;
    width: min(200px, 52vw);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loja-app-loader__logo {
    max-height: 64px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(37, 99, 235, 0.2));
    animation: loja-loader-pulse 2s ease-in-out infinite;
}

@keyframes loja-loader-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.04);
        opacity: 0.92;
    }
}

.loja-app-loader__ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--loja-accent);
    border-right-color: rgba(37, 99, 235, 0.25);
    animation: loja-loader-spin 1.1s linear infinite;
    pointer-events: none;
    opacity: 0.55;
}

@keyframes loja-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.loja-app-loader__text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--loja-muted);
}

/* WhatsApp flutuante (acima da barra inferior) */
.loja-wa-fab {
    position: fixed;
    z-index: 70;
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.loja-wa-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

.loja-wa-fab[hidden] {
    display: none !important;
}

/* Visitante: pilha flex com gap fixo (evita sobreposição de position:fixed) */
.loja-fab-stack {
    position: fixed;
    z-index: 1000;
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    bottom: calc(1.65rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
    align-items: center;
    pointer-events: none;
}

.loja-fab-stack > * {
    pointer-events: auto;
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    flex-shrink: 0;
}

.loja-pedido-fab {
    position: fixed;
    z-index: 1000;
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: calc(5.35rem + env(safe-area-inset-bottom, 0px));
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: linear-gradient(145deg, #fb7185 0%, #e11d48 55%, #be123c 100%);
    color: #fff;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 6px 22px rgba(225, 29, 72, 0.45),
        0 0 0 3px rgba(255, 255, 255, 0.95);
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.loja-pedido-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 28px rgba(225, 29, 72, 0.55);
}

.loja-pedido-fab:active {
    transform: scale(0.98);
}

.loja-pedido-fab-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #fff;
    color: #be123c;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.35rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.95);
}

.loja-pedido-fab-badge[hidden] {
    display: none !important;
}

.loja-pedido-fab-ico {
    width: 28px;
    height: 28px;
    display: block;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

.loja-wa-ico {
    width: 30px;
    height: 30px;
}

.loja-produtos-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 0.3rem;
}

.loja-grid-ordenar-btn {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.28rem 0.55rem;
    font-family: var(--font);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--loja-muted);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 999px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

.loja-grid-ordenar-btn:hover {
    color: var(--loja-accent);
    border-color: rgba(37, 99, 235, 0.35);
    background: #fff;
}

.loja-grid-ordenar-btn:active {
    transform: scale(0.98);
}

.loja-grid-ordenar-btn.is-active {
    color: var(--loja-accent);
    border-color: rgba(37, 99, 235, 0.4);
    background: var(--loja-accent-soft);
}

/* ——— Header + marca central ——— */
.loja-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: var(--loja-shadow);
    /* Safe-area + mínimo absoluto (Chrome/Android muitas vezes reporta inset 0) */
    padding-top: max(1.15rem, calc(env(safe-area-inset-top, 0px) + 1rem));
    box-sizing: border-box;
}

.loja-header-brand-row {
    border-bottom: 1px solid rgba(37, 99, 235, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.98) 100%);
}

.loja-header-inner--brand {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.45rem max(0.55rem, env(safe-area-inset-left, 0px)) 0.5rem max(0.55rem, env(safe-area-inset-right, 0px));
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.loja-logo-link--corner {
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
}

.loja-logo--header {
    height: 32px;
    max-width: min(140px, 28vw);
    width: auto;
    object-fit: contain;
}

.loja-header-center {
    text-align: center;
    justify-self: center;
    min-width: 0;
    padding: 0 0.25rem;
}

.loja-brand-display {
    margin: 0;
    font-family: 'Fraunces', 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    font-size: clamp(1.25rem, 4.2vw, 2.05rem);
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: #0f172a;
}

.loja-brand-main {
    font-weight: 500;
    color: #334155;
}

.loja-brand-ab {
    font-weight: 700;
    color: var(--loja-accent);
    font-size: 0.92em;
}

.loja-header-end {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

.loja-header-tools-row {
    padding-bottom: 0.35rem;
}

.loja-header-inner--tools {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.45rem max(0.85rem, env(safe-area-inset-left, 0px)) 0.55rem max(0.85rem, env(safe-area-inset-right, 0px));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

.loja-logo-link {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    flex-shrink: 0;
    min-width: 4.5rem;
    min-height: 2rem;
    text-decoration: none;
}

.loja-logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: min(180px, 42vw);
    min-width: 3rem;
    object-fit: contain;
}

.loja-search-block {
    flex: 1 1 200px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ——— Barra de busca + ações (discreta) ——— */
.loja-toolbar {
    width: 100%;
    position: relative;
}

.loja-toolbar-row--search {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
}

.loja-header-auth {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem 0.45rem;
    max-width: min(100%, 15rem);
}

.loja-auth-user {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--loja-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loja-auth-link {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--loja-muted);
    border: 1px solid var(--loja-border);
    background: #fff;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.loja-auth-link:hover {
    color: var(--loja-accent);
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.04);
}

.loja-auth-link--cta {
    color: #fff;
    background: linear-gradient(135deg, var(--loja-accent) 0%, #1d4ed8 100%);
    border-color: transparent;
}

.loja-filtros-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.52rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--loja-muted);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.loja-filtros-mobile-toggle--active {
    border-color: rgba(37, 99, 235, 0.45);
    color: var(--loja-accent);
    background: var(--loja-accent-soft);
}

.loja-filtros-corpo:not(.is-open) {
    display: none !important;
}

@media (min-width: 768px) {
    .loja-filtros-mobile-toggle {
        display: inline-flex;
        padding: 0.42rem 0.75rem;
        font-size: 0.72rem;
    }

    .loja-filtros-corpo {
        position: absolute;
        top: calc(100% + 0.45rem);
        right: 0;
        left: auto;
        width: min(860px, 96vw);
        z-index: 90;
    }

    .loja-filtros-corpo--carded {
        margin-top: 0;
    }

    .loja-filtros-surface {
        padding: 0.75rem 0.8rem;
        gap: 0.75rem 1rem;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
    }
}

/** Filtros — mesmo fluxo visual em todos os tamanhos (como no mobile) */
.loja-filtros-corpo--carded {
    margin-top: 0.4rem;
}

.loja-filtros-surface {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem 1.25rem;
    padding: 0.85rem 0.75rem;
    background: var(--loja-surface);
    border: 1px solid var(--loja-border);
    border-radius: var(--loja-radius);
    box-shadow: var(--loja-shadow);
}

.loja-filtros-surface__title {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--loja-muted);
    margin: 0 0 0.55rem;
    padding-left: 0.15rem;
}

.loja-filtros-surface__col--primary .loja-toolbar-filtros--expanded {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem 0.65rem;
}

.loja-filtros-surface__col--actions .loja-toolbar-actions {
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.45rem;
}

.loja-search-wrap {
    flex: 1 1 200px;
    min-width: 0;
    display: flex;
    align-items: center;
    position: relative;
    margin: 0;
}

.loja-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--loja-muted);
    pointer-events: none;
    display: flex;
}

.loja-search--main {
    width: 100%;
    padding-left: 2.5rem;
    padding-right: 0.65rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border: 1px solid var(--loja-border);
    border-radius: 999px;
    font-size: 0.88rem;
    background: #f8f8f8;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.loja-search--main:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.45);
    background: #fff;
    box-shadow: 0 0 0 3px var(--loja-accent-ring);
}

.loja-toolbar-filtros {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem 0.65rem;
    flex: 1 1 220px;
    min-width: 0;
    width: 100%;
}

.loja-filtro-stack {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex: 1 1 calc(50% - 0.35rem);
    max-width: none;
}

.loja-filtro-stack--sort {
    flex: 1 1 100%;
    max-width: none;
}

.loja-filtro-hint {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--loja-muted);
    padding-left: 0.15rem;
    line-height: 1.2;
}

.loja-toolbar-filtros .loja-select--toolbar {
    width: 100%;
    min-width: 0;
}

.loja-toolbar-filtros--expanded {
    flex: 1 1 100%;
    align-items: flex-end;
    min-width: 0;
}

.loja-filtro-stack--grupo-wide {
    flex: 1 1 100%;
    max-width: 100%;
}

.loja-filtro-stack--sub-multi {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
}

.loja-select--multi {
    min-height: 5.5rem;
    font-size: 0.76rem;
    line-height: 1.25;
    padding: 0.35rem 0.45rem;
}

.loja-filtro-checks {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 0;
    width: 100%;
    min-width: 0;
}

.loja-check-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--loja-text);
    cursor: pointer;
    white-space: nowrap;
}

.loja-check-label input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--loja-accent);
    cursor: pointer;
}

.loja-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-shrink: 0;
    width: 100%;
}

.loja-select--toolbar {
    min-width: 0;
    padding: 0.48rem 0.55rem;
    font-size: 0.78rem;
    border-radius: 10px;
    border-color: #ddd;
    background: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.loja-select--ordenar {
    min-width: 0;
    max-width: none;
    width: 100%;
}

.loja-btn-limpar {
    padding: 0.48rem 0.7rem;
    margin-bottom: 0.05rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--loja-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
}

.loja-btn-limpar:hover {
    color: var(--loja-accent);
    background: var(--loja-accent-soft);
}

.loja-link-folha--toolbar {
    font-size: 0.78rem;
    padding: 0.48rem 0.55rem;
    margin-bottom: 0.05rem;
    opacity: 0.85;
}

.loja-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
    order: 1;
}

.loja-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.18rem 0.45rem;
    border-radius: 6px;
    line-height: 1.2;
}

.loja-badge--exclusivo {
    color: #9a3412;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid rgba(234, 88, 12, 0.4);
}

.loja-badge--novidade {
    color: #1e40af;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid rgba(59, 130, 246, 0.45);
}

.loja-badge--estoque-baixo {
    color: #9a3412;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid rgba(234, 88, 12, 0.35);
}

.loja-badge--pronta-entrega {
    color: #0f766e;
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    border: 1px solid rgba(20, 184, 166, 0.4);
}

.loja-card--exclusivo {
    border-color: rgba(234, 88, 12, 0.4);
    box-shadow: 0 1px 0 rgba(255, 237, 213, 0.9) inset;
}

.loja-card--novidade:not(.loja-card--exclusivo) {
    border-color: rgba(59, 130, 246, 0.35);
}

.loja-card--exclusivo.loja-card--novidade {
    border-color: rgba(234, 88, 12, 0.45);
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.2),
        0 1px 0 rgba(255, 237, 213, 0.9) inset;
}

.loja-select {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--loja-border);
    border-radius: 8px;
    font-size: 0.875rem;
    background: #fff;
    min-width: 150px;
    max-width: 100%;
}

.loja-link-folha {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--loja-accent);
    text-decoration: none;
    white-space: nowrap;
}

.loja-link-folha:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .loja-link-folha--toolbar {
        display: none !important;
    }
}

/* ——— Seções ——— */
.loja-section {
    width: 100%;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0.75rem;
}

.loja-section.loja-section--grid {
    padding: 0.1rem 0.45rem 0.65rem;
}

.loja-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    color: var(--loja-text);
}

.loja-section-title--produtos {
    font-size: 0.95rem;
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
}

/* Blocos por categoria (só desktop/tablet — no mobile o JS não monta) */
.loja-section.loja-cat-block {
    padding: 0.4rem 0.65rem 0.3rem;
}

.loja-cat-block + .loja-cat-block {
    margin-top: -0.15rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.55rem;
}

.loja-cat-block .loja-section-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
    flex: 1 1 auto;
    min-width: 0;
}

/* ——— Banners (hero PC / mobile) ——— */
.loja-banners-section {
    width: 100%;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 0.65rem 0;
    padding-left: max(0.65rem, env(safe-area-inset-left));
    padding-right: max(0.65rem, env(safe-area-inset-right));
}

.loja-banners-viewport {
    position: relative;
    border-radius: var(--loja-radius);
    overflow: hidden;
    background: linear-gradient(180deg, #ececec, #e0e0e0);
}

.loja-banners-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
}

.loja-banners-track::-webkit-scrollbar {
    display: none;
}

.loja-banner-slide {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
}

.loja-banner-slide-link,
.loja-banner-slide-nolink {
    display: block;
    line-height: 0;
}

.loja-banner-img {
    width: 100%;
    height: auto;
    min-height: 96px;
    max-height: min(36vh, 260px);
    object-fit: cover;
    display: block;
}

.loja-banners-nav {
    display: none;
}

.loja-banners-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0 0;
    flex-wrap: wrap;
}

.loja-banners-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #c9c9c9;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.loja-banners-dot.is-active {
    background: var(--loja-accent);
    transform: scale(1.2);
}

/* ——— Carrossel ——— */
.loja-carousel-wrap {
    position: relative;
    margin: 0 -0.25rem;
}

.loja-carousel {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0.75rem;
    padding: 0.25rem 0.75rem 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.loja-carousel::-webkit-scrollbar {
    height: 6px;
}

.loja-carousel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.loja-carousel-nav,
.loja-carousel-nav--cat {
    display: none;
}

.loja-cat-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 0.5rem;
    margin-bottom: 0.35rem;
}

.loja-cat-meta {
    font-size: 0.8rem;
    color: var(--loja-muted);
    font-weight: 500;
}

.loja-card--carousel {
    flex: 0 0 calc(52% - 6px);
    max-width: 220px;
    scroll-snap-align: start;
}

/* Estoque zerado ou negativo — indicação discreta (vale para qualquer sessão; o número vem mascarado na API) */
.loja-card.loja-card--sem-estoque {
    border-color: rgba(220, 38, 38, 0.22);
}

.loja-card.loja-card--sem-estoque::after {
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.14);
}

.loja-card.loja-card--sem-estoque:hover {
    border-color: rgba(220, 38, 38, 0.3);
}

.loja-card.loja-card--sem-estoque:hover::after {
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.2);
}

/* ——— Card produto ——— */
.loja-card {
    background: var(--loja-surface);
    border-radius: var(--loja-radius);
    border: 1px solid var(--loja-border);
    overflow: hidden;
    box-shadow: var(--loja-shadow);
    transition:
        box-shadow 0.28s var(--loja-ease-out),
        transform 0.28s var(--loja-ease-out),
        border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.loja-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 0 rgba(37, 99, 235, 0);
    transition: box-shadow 0.28s var(--loja-ease-out);
}

.loja-card:hover {
    box-shadow: var(--loja-shadow-hover);
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.18);
    cursor: pointer;
}

.loja-card:hover::after {
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.loja-card:active {
    transform: translateY(-1px) scale(0.99);
    transition-duration: 0.08s;
}

@media (hover: none) {
    .loja-card:hover {
        transform: none;
    }

    .loja-card:active {
        transform: scale(0.985);
    }
}

.loja-card-media {
    position: relative;
}

.loja-card-img {
    aspect-ratio: 1;
    background: linear-gradient(165deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.loja-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.35s var(--loja-ease-out);
}

.loja-card:hover .loja-card-img img {
    transform: scale(1.03);
}

@media (hover: none) {
    .loja-card:hover .loja-card-img img {
        transform: none;
    }
}

.loja-card-body {
    padding: 0.55rem 0.6rem 0.72rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.loja-card-title {
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    order: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--loja-text);
    min-height: 2.35em;
    letter-spacing: -0.01em;
}

.loja-card-desc {
    font-size: 0.68rem;
    line-height: 1.35;
    color: var(--loja-muted);
    margin: 0;
    order: 3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
}

.loja-card-desc:empty {
    display: none;
}

.loja-card-brand {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--loja-accent);
    margin: 0;
    order: 4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loja-card-brand:empty {
    display: none;
}

.loja-card-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.5rem;
    order: 5;
    margin-top: 0.15rem;
}

.loja-card-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--loja-price);
    letter-spacing: -0.03em;
}

.loja-card-stock {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--loja-muted);
    white-space: nowrap;
}

.loja-card-stock--ok {
    color: #0d9488;
}

.loja-card-stock--low {
    color: var(--loja-warm);
}

.loja-card-meta {
    font-size: 0.68rem;
    color: var(--loja-muted);
    order: 6;
}

/* Favorito — canto superior direito do card (não é campo de qtd) */
.loja-card-fav--float {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 12;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #cbd5e1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    font-family: inherit;
    padding: 0;
}

.loja-card-fav--float:hover {
    background: #fff;
    color: #fb7185;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.2);
    transform: scale(1.05);
}

.loja-card-fav--float:active {
    transform: scale(0.96);
}

.loja-card-fav--float.is-on {
    color: #fff;
    background: linear-gradient(145deg, #fb7185, #e11d48);
    border-color: rgba(255, 255, 255, 0.98);
}

.loja-card-fav-icon {
    font-size: 1.05rem;
    line-height: 1;
    display: block;
}

.loja-card-link {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--loja-accent);
    margin-top: auto;
    padding-top: 0.35rem;
    order: 7;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.loja-card-link::after {
    content: "→";
    font-size: 0.85em;
    transition: transform 0.2s var(--loja-ease-out);
}

.loja-card:hover .loja-card-link::after {
    transform: translateX(3px);
}

/* ——— Grade loja: e-commerce no desktop, 2 colunas no mobile ——— */
.loja-grid {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
}

@media (min-width: 1200px) {
    .loja-grid {
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .loja-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.55rem;
    }

    .loja-filtros-mobile-toggle {
        min-height: 44px;
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
}

/* ——— Barra inferior: carrossel de subgrupos ——— */
.loja-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--loja-surface);
    border-top: 1px solid var(--loja-border);
    padding: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.loja-bottom-subgrupos-outer {
    padding: 0.45rem 0.5rem calc(0.45rem + var(--loja-safe-bottom));
    background: linear-gradient(180deg, #fafafa 0%, #f6f6f6 100%);
}

.loja-bottom-subgrupos {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    mask-image: linear-gradient(90deg, #000 0%, #000 92%, transparent);
}

.loja-bottom-subgrupos::-webkit-scrollbar {
    display: none;
}

.loja-bottom-chip {
    flex: 0 0 auto;
    padding: 0.45rem 0.85rem;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid var(--loja-border);
    background: #fff;
    font-size: 0.74rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s var(--loja-ease-out), color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.loja-bottom-chip--todos {
    border-style: dashed;
    border-color: #ccc;
}

.loja-bottom-chip:hover {
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--loja-accent);
    background: rgba(37, 99, 235, 0.04);
}

.loja-bottom-chip.is-active {
    background: linear-gradient(135deg, var(--loja-accent) 0%, #1d4ed8 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.loja-bottom-chip:active {
    transform: scale(0.97);
}

/* ——— Estados ——— */
.loja-loading,
.loja-empty,
.loja-erro {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--loja-muted);
}

.loja-erro {
    color: #c62828;
}

/* Painel minha lista (logado) */
.loja-pedido-panel[hidden] {
    display: none !important;
}

.loja-pedido-panel {
    position: fixed;
    inset: 0;
    z-index: 160;
}

.loja-pedido-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.loja-pedido-sheet {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100%, 28rem);
    background: #fff;
    box-shadow: -12px 0 48px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow: hidden;
    border-radius: 1rem 0 0 1rem;
}

@media (max-width: 480px) {
    .loja-pedido-sheet {
        width: 100%;
        border-radius: 0;
    }
}

.loja-pedido-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.65rem;
    border-bottom: 1px solid var(--loja-border);
}

.loja-pedido-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--loja-text);
}

.loja-pedido-close {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background: rgba(248, 250, 252, 1);
    color: var(--loja-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.loja-pedido-close:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--loja-accent);
}

.loja-pedido-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.65rem 1rem 0;
}

.loja-pedido-tab {
    flex: 1;
    padding: 0.5rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(248, 250, 252, 1);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--loja-muted);
    cursor: pointer;
    font-family: inherit;
}

.loja-pedido-tab.is-active {
    background: rgba(37, 99, 235, 0.12);
    color: var(--loja-accent);
    border-color: rgba(37, 99, 235, 0.25);
}

.loja-pedido-tab-panel {
    flex: 1;
    overflow: auto;
    padding: 0.75rem 1rem 1rem;
    -webkit-overflow-scrolling: touch;
}

.loja-pedido-tab-panel--lista {
    min-height: 0;
}

.loja-pedido-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.loja-pedido-empty {
    margin: 0;
    font-size: 0.82rem;
    color: var(--loja-muted);
    line-height: 1.45;
}

.loja-pedido-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--loja-radius);
    border: 1px solid var(--loja-border);
    background: rgba(255, 255, 255, 1);
}

.loja-pedido-line--ped {
    flex-wrap: wrap;
}

.loja-pedido-line-main {
    flex: 1;
    min-width: 0;
}

.loja-pedido-line-nome {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--loja-text);
    line-height: 1.3;
}

.loja-pedido-line-sku {
    display: block;
    font-size: 0.68rem;
    color: var(--loja-muted);
    margin-top: 0.2rem;
}

.loja-pedido-line-sub {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--loja-price);
    white-space: nowrap;
}

.loja-pedido-remove-fav {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: rgba(248, 250, 252, 1);
    color: var(--loja-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.loja-pedido-remove-fav:hover {
    background: rgba(225, 29, 72, 0.1);
    color: #e11d48;
}

.loja-pedido-line-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.loja-pedido-line--fav {
    flex-wrap: wrap;
}

.loja-pedido-fav-add {
    padding: 0.38rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.06);
    color: var(--loja-accent);
    font-size: 0.72rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.loja-pedido-fav-add:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.5);
}

.loja-pedido-qty-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.loja-pedido-qty-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--loja-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.loja-pedido-line-qty {
    width: 3.75rem;
    padding: 0.35rem 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    border: 1px solid var(--loja-border);
    border-radius: 999px;
    font-family: inherit;
    color: var(--loja-text);
}

.loja-pedido-line-qty:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.loja-pedido-line--ped {
    align-items: flex-start;
}

.loja-pedido-line--ped .loja-pedido-remove-fav {
    align-self: center;
}

.loja-pedido-subtotal {
    margin: 0.75rem 0 0;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--loja-border);
    font-size: 0.88rem;
    color: var(--loja-text);
    text-align: right;
}

.loja-pedido-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--loja-border);
    background: rgba(248, 250, 252, 0.85);
}

.loja-pedido-btn-primary {
    flex: 1 1 8rem;
    padding: 0.55rem 0.85rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--loja-accent) 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.loja-pedido-btn-wa {
    flex: 1 1 8rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #22c55e;
    background: #ecfdf5;
    color: #15803d;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.loja-pedido-btn-ghost {
    flex: 1 1 100%;
    padding: 0.45rem;
    border: none;
    background: transparent;
    color: var(--loja-muted);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
}

/* Zoom (reusa estrutura) */
.loja-zoom-modal[hidden] {
    display: none !important;
}

.loja-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.loja-zoom-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
}

.loja-zoom-content {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 900px);
    max-height: 90vh;
}

.loja-zoom-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.loja-zoom-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* Preço oculto sem login */
.loja-card-price--locked {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--loja-muted);
    letter-spacing: 0.02em;
}

/* Página de login da loja */
.loja-page--auth {
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 0.75rem 2rem;
    box-sizing: border-box;
}

.loja-auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 1.5rem 0;
}

.loja-auth-card {
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    padding: 1.75rem 1.5rem;
    background: var(--loja-surface);
    border: 1px solid var(--loja-border);
    border-radius: var(--loja-radius);
    box-shadow: var(--loja-shadow);
}

.loja-auth-title {
    font-size: 1.35rem;
    margin: 0 0 0.35rem;
    color: var(--loja-text);
}

.loja-auth-lead {
    font-size: 0.88rem;
    color: var(--loja-muted);
    margin: 0 0 1.25rem;
    line-height: 1.45;
}

.loja-auth-erro {
    color: #b91c1c;
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

.loja-auth-success {
    color: #0f766e;
    font-size: 0.88rem;
}

.loja-auth-hint {
    display: block;
    font-size: 0.68rem;
    color: var(--loja-muted);
    margin: -0.35rem 0 0.25rem;
}

.loja-auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.loja-auth-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--loja-muted);
}

.loja-auth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--loja-border);
    font-size: 1rem;
    font-family: inherit;
}

.loja-auth-input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px var(--loja-accent-ring);
}

.loja-auth-submit {
    margin-top: 0.35rem;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--loja-accent) 0%, #1d4ed8 100%);
}

.loja-auth-footer {
    margin: 1.25rem 0 0;
    text-align: center;
}

.loja-auth-back {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--loja-accent);
    text-decoration: none;
}

.loja-auth-back:hover {
    text-decoration: underline;
}

/* ——— Mix: carrossel de produtos aleatórios com estoque ——— */
.loja-mix-section {
    padding-top: 0.15rem;
    padding-bottom: 0.5rem;
}

.loja-mix-head {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.45rem;
    padding: 0 0.15rem;
}

.loja-mix-head .loja-section-title {
    margin-bottom: 0;
}

.loja-mix-sub {
    margin: 0;
    font-size: 0.8rem;
    color: var(--loja-muted);
    font-weight: 500;
    line-height: 1.35;
    max-width: 40rem;
}

.loja-carousel-wrap--mix {
    position: relative;
    margin: 0 -0.25rem;
}

.loja-carousel--mix {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0.75rem;
    padding: 0.25rem 0.75rem 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.loja-carousel--mix::-webkit-scrollbar {
    height: 6px;
}

.loja-carousel--mix::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.25);
    border-radius: 3px;
}

.loja-carousel--mix .loja-card--mix {
    flex: 0 0 calc(52% - 6px);
    max-width: 220px;
    scroll-snap-align: start;
}

/* Folha.php back link */
.catalogo-back-loja {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent, var(--loja-accent));
    text-decoration: none;
    margin-right: 0.5rem;
}

.catalogo-back-loja:hover {
    text-decoration: underline;
}

/* Rodape da home da loja (mesmo estilo da ficha de produto) */
.loja-footer {
    background: #1e293b;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 1.5rem;
}

.loja-footer-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.loja-footer small {
    opacity: 0.9;
}
