/*
 * Loja – camada moderna / "app nativo" no celular
 * ------------------------------------------------
 * Carregada depois dos CSS do tema. Tudo fica sob body.lj-modern, então
 * removendo o <link> (ou LOJA_MODERN_UI = false) volta ao visual anterior.
 * Usa as variáveis do tema (--primary, --text, --muted, --border, --radius).
 */

/* Transição suave entre páginas (Chrome/Edge/Safari recentes; outros ignoram) */
@view-transition { navigation: auto; }
::view-transition-old(root){ animation: ljFadeOut .18s ease both; }
::view-transition-new(root){ animation: ljFadeIn .28s ease both; }
@keyframes ljFadeOut{ to{ opacity: 0; } }
@keyframes ljFadeIn{ from{ opacity: 0; transform: translateY(6px); } }

body.lj-modern{
    --lj-tab-h: 64px;
    --lj-ease: cubic-bezier(.2, .8, .2, 1);
    --lj-shadow: 0 1px 2px rgba(16,24,40,.05), 0 12px 30px -14px rgba(16,24,40,.22);
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}
body.lj-modern :focus-visible{ outline: 3px solid rgba(var(--primary-rgb, 240,90,40), .45); outline-offset: 2px; }
body.lj-modern .btn,
body.lj-modern button,
body.lj-modern .product-card,
body.lj-modern .size-pill,
body.lj-modern .qty-btn{
    transition: transform .18s var(--lj-ease), box-shadow .25s ease, background-color .25s ease, color .2s ease, opacity .2s ease;
}
body.lj-modern .btn:active,
body.lj-modern button:active,
body.lj-modern .size-pill:active{ transform: scale(.96); }

/* Entrada ao rolar */
html.lj-js body.lj-modern .lj-reveal{ opacity: 0; transform: translateY(14px); transition: opacity .55s var(--lj-ease), transform .55s var(--lj-ease); }
html.lj-js body.lj-modern .lj-reveal.is-in{ opacity: 1; transform: none; }

/* Imagem carregando */
body.lj-modern .product-media{ background: linear-gradient(90deg, #f1f1f1 0%, #e9e9e9 50%, #f1f1f1 100%); background-size: 200% 100%; animation: ljShimmer 1.4s linear infinite; }
body.lj-modern .product-media.is-loaded{ animation: none; background: #f5f4f2; }
body.lj-modern .product-media img{ transition: opacity .35s ease, transform .5s var(--lj-ease); }
body.lj-modern .product-media:not(.is-loaded) img{ opacity: 0; }
body.lj-modern .product-card:hover .product-media img{ transform: scale(1.04); }
@keyframes ljShimmer{ from{ background-position: 200% 0; } to{ background-position: -200% 0; } }

/* Produto voando para a sacola */
.lj-fly{
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 16px 30px -8px rgba(0,0,0,.35);
    transition: transform .75s cubic-bezier(.5,-.3,.7,1), opacity .75s ease;
}
@keyframes ljBump{ 0%{ transform: scale(1); } 40%{ transform: scale(1.35); } 100%{ transform: scale(1); } }
.lj-bump{ animation: ljBump .45s var(--lj-ease); }

/* ===================== Barra inferior (celular) ===================== */
.lj-tabbar{ display: none; }
.lj-sheet{ display: none; }

@media (max-width: 768px){
    body.lj-modern{ padding-bottom: calc(var(--lj-tab-h) + env(safe-area-inset-bottom, 0px)); }

    .lj-tabbar{
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 70;
        height: calc(var(--lj-tab-h) + env(safe-area-inset-bottom, 0px));
        padding: 6px 6px env(safe-area-inset-bottom, 0px);
        background: rgba(255,255,255,.9);
        -webkit-backdrop-filter: saturate(180%) blur(18px);
                backdrop-filter: saturate(180%) blur(18px);
        border-top: 1px solid rgba(15,23,42,.08);
        box-shadow: 0 -8px 24px -18px rgba(15,23,42,.35);
        transition: transform .35s var(--lj-ease);
    }
    body.lj-modern.lj-tabbar-hidden .lj-tabbar{ transform: translateY(110%); }
    .lj-tab{
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        border: 0;
        background: none;
        color: var(--muted, #6b7280);
        font: inherit;
        font-size: 10.5px;
        font-weight: 600;
        text-decoration: none;
        position: relative;
        border-radius: 14px;
        cursor: pointer;
        padding: 4px 0;
        -webkit-tap-highlight-color: transparent;
    }
    .lj-tab svg{ width: 24px; height: 24px; transition: transform .25s var(--lj-ease); }
    .lj-tab.is-active{ color: var(--primary); }
    .lj-tab.is-active svg{ transform: translateY(-1px); }
    .lj-tab.is-active::before{
        content: "";
        position: absolute;
        top: 2px;
        width: 34px;
        height: 3px;
        border-radius: 3px;
        background: var(--primary);
    }
    .lj-tab:active svg{ transform: scale(.88); }
    .lj-tab-badge{
        position: absolute;
        top: 2px;
        left: calc(50% + 6px);
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: var(--primary);
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        display: none;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 0 2px #fff;
    }
    .lj-tab-badge.has-items{ display: inline-flex; }

    /* Botão do WhatsApp e avisos acima da barra */
    body.lj-modern .whatsapp-float{ bottom: calc(var(--lj-tab-h) + 14px + env(safe-area-inset-bottom, 0px)) !important; }
    body.lj-modern .notify_box_bl{ bottom: calc(var(--lj-tab-h) + 10px) !important; }

    /* ===================== Cabeçalho compacto ===================== */
    body.lj-modern .topbar.lj-topbar-empty{ display: none; }
    body.lj-modern .topbar .topbar-item.left{ display: none; }
    body.lj-modern .header{
        position: sticky;
        top: 0;
        z-index: 60;
        background: rgba(255,255,255,.92);
        -webkit-backdrop-filter: saturate(180%) blur(16px);
                backdrop-filter: saturate(180%) blur(16px);
        border-bottom: 1px solid rgba(15,23,42,.06);
        transition: transform .35s var(--lj-ease), box-shadow .25s ease;
        padding: 0;
    }
    body.lj-modern.lj-scrolled .header{ box-shadow: 0 8px 20px -16px rgba(15,23,42,.45); }
    body.lj-modern.lj-header-hidden .header{ transform: translateY(-100%); }
    body.lj-modern .header .header-grid{
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 8px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    body.lj-modern .header .logo{ gap: 10px; min-width: 0; }
    body.lj-modern .header .logo span{ font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    body.lj-modern .header .logo-mark{ width: 36px !important; height: 36px !important; flex: 0 0 36px; font-size: 1rem; }
    body.lj-modern .header .search-bar{ width: 100%; margin: 0; }
    body.lj-modern .header .search-bar .input{ height: 42px; border-radius: 12px; font-size: 16px; }
    body.lj-modern .header .cart-button{ display: none !important; }
    body.lj-modern .navbar{ display: none !important; }

    /* ===================== Vitrine ===================== */
    body.lj-modern .trust-grid{
        display: flex !important;
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    body.lj-modern .trust-grid::-webkit-scrollbar{ display: none; }
    body.lj-modern .trust-item{
        flex: 0 0 auto;
        width: auto !important;
        scroll-snap-align: start;
        padding: 10px 14px !important;
        gap: 10px;
        border-radius: 999px !important;
        font-size: .85rem;
    }
    body.lj-modern .trust-icon{ width: 32px !important; height: 32px !important; border-radius: 10px !important; }
    body.lj-modern .trust-icon svg{ width: 18px; height: 18px; }
    body.lj-modern .trust{ padding: 12px 0 !important; }

    body.lj-modern .lead-capture{ padding-top: 8px !important; padding-bottom: 8px !important; margin-top: 0 !important; }
    body.lj-modern .lead-box{ padding: 18px !important; border-radius: 20px !important; }
    body.lj-modern .lead-box h2,
    body.lj-modern .lead-box h3{ font-size: 1.25rem !important; line-height: 1.25; }
    body.lj-modern .section-title{ margin-top: 18px !important; margin-bottom: 8px !important; }
    body.lj-modern .section-title h2{ font-size: 1.2rem !important; }

    /* Linhas de categoria em carrossel horizontal, como nas lojas de app */
    body.lj-modern .category-row{
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: 46%;
        grid-template-columns: none !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        gap: 12px !important;
        margin: 0 -16px;
        padding: 4px 16px 18px;
        scroll-padding: 0 16px;
    }
    body.lj-modern .category-row::-webkit-scrollbar{ display: none; }
    body.lj-modern .category-row > .product-card{ scroll-snap-align: start; }

    body.lj-modern .card-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }

    /* Cartão de produto compacto */
    body.lj-modern .product-card{
        min-height: 0 !important;
        border-radius: 16px !important;
        box-shadow: var(--lj-shadow) !important;
        animation: none;
    }
    body.lj-modern .product-card:hover{ transform: none; }
    body.lj-modern .product-card:active{ transform: scale(.98); }
    body.lj-modern .product-title{ font-size: .82rem !important; left: 10px !important; right: 10px !important; bottom: 8px !important; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    body.lj-modern .product-body{ padding: 10px 10px 8px !important; gap: 4px !important; text-align: left !important; }
    body.lj-modern .product-label{ display: none !important; }
    body.lj-modern .product-card .price{ gap: 0; }
    body.lj-modern .product-card .price-now{ font-size: 1rem !important; }
    body.lj-modern .product-card .price-old{ font-size: .75rem !important; }
    body.lj-modern .product-card .product-subtitle{
        font-size: .74rem !important;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: left !important;
    }
    body.lj-modern .product-card .product-actions{
        display: block !important;
        padding: 0 10px 10px !important;
        border: 0 !important;
    }
    body.lj-modern .product-card .product-actions .btn-outline{ display: none !important; }
    body.lj-modern .product-card .product-actions .btn{
        width: 100%;
        min-height: 38px;
        border-radius: 12px !important;
        font-size: .82rem !important;
        padding: 8px 10px !important;
    }
    body.lj-modern .product-card .badge-sale{ top: 8px !important; left: 8px !important; border-radius: 999px !important; }

    /* ===================== Página do produto ===================== */
    body.lj-modern .product-page{ gap: 14px !important; }
    body.lj-modern .product-gallery{ margin: 0 -16px; }
    body.lj-modern .product-zoom img{ border-radius: 0 !important; }
    body.lj-modern .product-thumbs{ display: flex !important; overflow-x: auto; gap: 8px; padding: 8px 16px; scrollbar-width: none; }
    body.lj-modern .product-thumbs::-webkit-scrollbar{ display: none; }
    body.lj-modern .product-thumbs .thumb{ flex: 0 0 64px; }
    body.lj-modern .size-grid .size-pill{ min-height: 44px; }
    body.lj-modern .qty-btn{ min-width: 44px; min-height: 44px; }

    .lj-buybar{
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(var(--lj-tab-h) + 10px + env(safe-area-inset-bottom, 0px));
        z-index: 65;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 10px 10px 16px;
        border-radius: 18px;
        background: rgba(17,24,39,.94);
        color: #fff;
        -webkit-backdrop-filter: blur(14px);
                backdrop-filter: blur(14px);
        box-shadow: 0 18px 36px -14px rgba(0,0,0,.55);
        transform: translateY(160%);
        opacity: 0;
        transition: transform .45s var(--lj-ease), opacity .3s ease;
    }
    .lj-buybar.is-visible{ transform: none; opacity: 1; }
    .lj-buybar-info{ flex: 1; min-width: 0; line-height: 1.2; }
    .lj-buybar-info small{ display: block; font-size: 11px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .lj-buybar-info strong{ font-size: 17px; font-weight: 800; }
    .lj-buybar button{
        border: 0;
        border-radius: 14px;
        padding: 13px 16px;
        font: inherit;
        font-weight: 800;
        font-size: 14px;
        color: #fff;
        background: var(--primary);
        box-shadow: 0 8px 18px -8px var(--primary);
        cursor: pointer;
        white-space: nowrap;
    }
    body.lj-modern.lj-has-buybar .whatsapp-float{ opacity: 0; pointer-events: none; }

    /* ===================== Folhas (categorias / busca) ===================== */
    .lj-sheet{
        display: block;
        position: fixed;
        inset: 0;
        z-index: 90;
        pointer-events: none;
    }
    .lj-sheet-backdrop{
        position: absolute;
        inset: 0;
        background: rgba(15,23,42,.45);
        -webkit-backdrop-filter: blur(4px);
                backdrop-filter: blur(4px);
        opacity: 0;
        transition: opacity .3s ease;
    }
    .lj-sheet-panel{
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 86vh;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        border-radius: 24px 24px 0 0;
        padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
        transform: translateY(100%);
        transition: transform .42s var(--lj-ease);
        box-shadow: 0 -20px 50px -20px rgba(0,0,0,.4);
        touch-action: pan-y;
    }
    .lj-sheet.is-open{ pointer-events: auto; }
    .lj-sheet.is-open .lj-sheet-backdrop{ opacity: 1; }
    .lj-sheet.is-open .lj-sheet-panel{ transform: none; }
    .lj-sheet-grab{ width: 42px; height: 5px; border-radius: 5px; background: #d0d5dd; margin: 0 auto 12px; }
    .lj-sheet-title{ font-size: 1.1rem; font-weight: 800; margin: 0 0 12px; color: var(--text); }
    .lj-sheet-list{ display: grid; gap: 6px; }
    .lj-sheet-list a{
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px;
        border-radius: 14px;
        background: #f7f7f8;
        color: var(--text);
        text-decoration: none;
        font-weight: 700;
    }
    .lj-sheet-list a::after{ content: "›"; font-size: 20px; color: var(--muted); }
    .lj-sheet-list a.is-sub{ margin-left: 14px; background: #fff; border: 1px solid var(--border); font-weight: 600; }
    .lj-sheet-list a:active{ background: rgba(var(--primary-rgb, 240,90,40), .1); }
    .lj-sheet-search{ display: flex; gap: 8px; }
    .lj-sheet-search input{
        flex: 1;
        height: 50px;
        border-radius: 14px;
        border: 1px solid var(--border);
        padding: 0 14px;
        font: inherit;
        font-size: 16px;
    }
    .lj-sheet-search input:focus{ outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb, 240,90,40), .15); }
    .lj-sheet-search button{ border: 0; border-radius: 14px; padding: 0 18px; background: var(--primary); color: #fff; font: inherit; font-weight: 800; }
    .lj-sheet-links{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
    .lj-sheet-links a{ padding: 9px 14px; border-radius: 999px; background: #f2f4f7; color: var(--text); text-decoration: none; font-weight: 600; font-size: .88rem; }
    body.lj-sheet-open{ overflow: hidden; }

    /* Modais do tema viram folhas no celular */
    body.lj-modern .size-modal,
    body.lj-modern .lead-modal,
    body.lj-modern .account-modal,
    body.lj-modern .whatsapp-modal{ align-items: flex-end !important; justify-content: center; z-index: 95 !important; padding: 0 !important; }
    body.lj-modern:has(.size-modal.open, .lead-modal.open, .whatsapp-modal.open, .account-modal.open, .lj-sheet.is-open) .whatsapp-float,
    body.lj-modern:has(.size-modal.open, .lead-modal.open, .whatsapp-modal.open, .lj-sheet.is-open) .lj-buybar{ opacity: 0 !important; pointer-events: none !important; }
    body.lj-modern .size-modal-card,
    body.lj-modern .account-card,
    body.lj-modern .lead-card,
    body.lj-modern .whatsapp-card{
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 24px 24px 0 0 !important;
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
        max-height: 90vh;
        overflow-y: auto;
        margin: 0 !important;
    }
    body.lj-modern .size-modal.open .size-modal-card,
    body.lj-modern .account-modal.open .account-card,
    body.lj-modern .lead-modal.open .lead-card,
    body.lj-modern .whatsapp-modal.open .whatsapp-card{ animation: ljSheetUp .42s var(--lj-ease); }
    @keyframes ljSheetUp{ from{ transform: translateY(40%); opacity: .4; } }

    /* Sacola: resumo e botão de fechar pedido sempre à mão */
    body.lj-modern.lj-page-sacola .cart-summary-top{
        position: sticky;
        bottom: calc(var(--lj-tab-h) + 8px + env(safe-area-inset-bottom, 0px));
        z-index: 20;
        margin-top: 14px;
        padding: 12px 14px !important;
        border-radius: 18px;
        background: rgba(255,255,255,.96);
        -webkit-backdrop-filter: blur(14px);
                backdrop-filter: blur(14px);
        box-shadow: 0 18px 40px -16px rgba(15,23,42,.4);
        border: 1px solid rgba(15,23,42,.06);
        display: flex;
        align-items: center;
        gap: 12px;
    }
    body.lj-modern.lj-page-sacola .cart-summary-top .cart-summary-values{ flex: 1; min-width: 0; font-size: .85rem; }
    body.lj-modern.lj-page-sacola .cart-summary-top .cart-total-row{ font-size: 1.05rem; }
    body.lj-modern.lj-page-sacola .cart-summary-top .cart-summary-values > div{ display: flex; gap: 6px; align-items: baseline; white-space: nowrap; }
    body.lj-modern.lj-page-sacola .cart-summary-top .cart-summary-values > div[style*="none"]{ display: none !important; }
    body.lj-modern.lj-page-sacola .cart-summary-top .cart-subtotal{ opacity: .7; font-size: .8rem; }
    body.lj-modern.lj-page-sacola .cart-summary-top .cart-checkout-actions .btn{ min-height: 48px; border-radius: 14px; white-space: nowrap; }
    body.lj-modern.lj-page-sacola .whatsapp-float{ display: none !important; }
    body.lj-modern .cart-item > div > span.muted:first-of-type{ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .82rem; }

    /* Rodapé mais leve */
    body.lj-modern .footer{ padding-bottom: 24px; }
    body.lj-modern .footer .footer-quick-actions{ display: flex; gap: 8px; flex-wrap: wrap; }
    body.lj-modern .input,
    body.lj-modern textarea,
    body.lj-modern select{ font-size: 16px; } /* evita zoom no iPhone */
}

@media (prefers-reduced-motion: reduce){
    body.lj-modern *, .lj-sheet-panel, .lj-tabbar, .lj-buybar{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
    html.lj-js body.lj-modern .lj-reveal{ opacity: 1; transform: none; }
    ::view-transition-old(root), ::view-transition-new(root){ animation: none; }
}

/* ==========================================================================
   Cartão de produto (nov/2026) + visualização em lista — docs/loja-vitrine-cartao-lista.md
   O HTML do cartão é o mesmo nas 7 telas (.product-card > a.product-link > .product-media + .product-body, e .product-actions);
   aqui só o desenho muda. O nome do produto saiu de cima da foto e ficou numa faixa própria (--lj-t) logo abaixo dela.
   ========================================================================== */
body.lj-modern .product-card{
    min-height: 0 !important;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px !important;
    box-shadow: var(--lj-shadow) !important;
    overflow: hidden;
}
body.lj-modern .product-card[hidden]{ display: none !important; }
@media (hover: hover){
    body.lj-modern .product-card:hover{
        transform: translateY(-4px);
        border-color: rgba(var(--primary-rgb, 240,90,40), .38);
        box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 24px 44px -20px rgba(16,24,40,.34) !important;
    }
}
body.lj-modern .product-media{
    --lj-t: 3.2rem;
    padding-top: calc(100% + var(--lj-t)) !important;
    background-color: transparent;
    background-repeat: repeat-x;
    background-size: 200% calc(100% - var(--lj-t));
}
body.lj-modern .product-media.is-loaded{ background: linear-gradient(#f5f4f2, #f5f4f2) top / 100% calc(100% - var(--lj-t)) no-repeat; }
body.lj-modern .product-media::after{ display: none; }
body.lj-modern .product-media img{ inset: 0 0 auto 0; height: calc(100% - var(--lj-t)); }
body.lj-modern .product-title{
    position: absolute;
    left: 14px !important;
    right: 14px !important;
    bottom: 0 !important;
    height: var(--lj-t);
    box-sizing: border-box;
    padding-top: .8rem;
    color: var(--text);
    text-shadow: none;
    font-size: .96rem !important;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.lj-modern .product-body{ padding: 2px 14px 12px !important; gap: 4px !important; text-align: left !important; height: auto; }
body.lj-modern .product-card .product-label{ display: none !important; }
body.lj-modern .product-card .price{ display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
body.lj-modern .product-card .price-now{ order: -1; font-size: 1.18rem !important; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
body.lj-modern .product-card .price-old{ font-size: .8rem !important; }
body.lj-modern .product-card .product-subtitle{
    margin: 2px 0 0 !important;
    font-size: .8rem !important;
    line-height: 1.4;
    color: var(--muted);
    text-align: left !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.lj-modern .product-card .product-actions{ display: block !important; padding: 0 14px 14px !important; margin-top: auto; border: 0 !important; }
body.lj-modern .product-card .product-actions .btn-outline{ display: none !important; }
body.lj-modern .product-card .product-actions .btn{ width: 100%; min-height: 42px; border-radius: 12px !important; font-weight: 700; }
body.lj-modern .product-card .badge-sale{
    top: 10px !important;
    left: 10px !important;
    background: rgb(var(--primary-rgb, 240,90,40));
    color: #fff;
    border-radius: 999px !important;
    box-shadow: 0 6px 14px -6px rgba(var(--primary-rgb, 240,90,40), .8);
}
@media (max-width: 720px){
    body.lj-modern .product-media{ --lj-t: 3.05rem; }
    body.lj-modern .product-title{ left: 10px !important; right: 10px !important; font-size: .84rem !important; padding-top: .6rem; }
    body.lj-modern .product-body{ padding: 4px 10px 8px !important; }
    body.lj-modern .product-card .price-now{ font-size: 1.02rem !important; }
    body.lj-modern .product-card .product-actions{ padding: 0 10px 10px !important; }
    body.lj-modern .product-card .product-actions .btn{ min-height: 38px; font-size: .82rem !important; padding: 8px 10px !important; }
}

/* ---- botão "grade | lista" (montado pelo loja-modern.js nas telas com vitrine) ---- */
body.lj-modern .lj-view{ display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
body.lj-modern .lj-view button{
    width: 38px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted);
    display: grid; place-items: center; cursor: pointer; box-shadow: none;
}
body.lj-modern .lj-view button svg{ width: 18px; height: 18px; }
body.lj-modern .lj-view button:hover{ color: var(--text); }
body.lj-modern .lj-view button[aria-pressed="true"]{ background: rgba(var(--primary-rgb, 240,90,40), .14); color: rgb(var(--primary-rgb, 240,90,40)); }
body.lj-modern .lj-view-bar{ display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 14px 0 4px; color: var(--muted); font-size: .88rem; }
body.lj-modern .sort-bar{ position: relative; }
@media (max-width: 720px){
    body.lj-modern .sort-bar > .lj-view{ position: absolute; right: 0; top: -6px; }
    body.lj-modern .lj-view-bar{ margin: 10px 0 0; }
}

/* ---- visualização em lista: a classe lj-view-list fica no <html> (posta antes de a página desenhar, em inc/head.php) ---- */
html.lj-view-list body.lj-modern:is(.lj-page-index, .lj-page-categoria, .lj-page-busca, .lj-page-ofertas) :is(.card-grid, .category-row){
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    gap: 12px !important;
    overflow: visible !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 0 6px !important;
}
@media (min-width: 1100px){
    html.lj-view-list body.lj-modern:is(.lj-page-index, .lj-page-busca, .lj-page-ofertas) :is(.card-grid, .category-row){ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
html.lj-view-list body.lj-modern:is(.lj-page-index, .lj-page-categoria, .lj-page-busca, .lj-page-ofertas) .product-card{ flex-direction: row; align-items: stretch; }
html.lj-view-list body.lj-modern:is(.lj-page-index, .lj-page-categoria, .lj-page-busca, .lj-page-ofertas) .product-link{
    position: relative;
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    grid-template-rows: auto auto; /* nunca 1fr: a foto ocupa as duas linhas e uma linha 1fr herdaria a altura inteira dela (sobra embaixo) */
    align-content: start;
    column-gap: 16px;
    padding: 12px;
}
html.lj-view-list body.lj-modern:is(.lj-page-index, .lj-page-categoria, .lj-page-busca, .lj-page-ofertas) .product-media{ display: contents; }
html.lj-view-list body.lj-modern:is(.lj-page-index, .lj-page-categoria, .lj-page-busca, .lj-page-ofertas) .product-media img{
    position: static;
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 132px;
    height: 132px;
    border-radius: 12px;
    background: #f5f4f2;
    opacity: 1;
}
html.lj-view-list body.lj-modern:is(.lj-page-index, .lj-page-categoria, .lj-page-busca, .lj-page-ofertas) .product-card:hover .product-media img{ transform: none; }
html.lj-view-list body.lj-modern:is(.lj-page-index, .lj-page-categoria, .lj-page-busca, .lj-page-ofertas) .product-title{
    position: static;
    grid-column: 2;
    height: auto;
    padding-top: 4px;
    font-size: 1.04rem !important;
}
html.lj-view-list body.lj-modern:is(.lj-page-index, .lj-page-categoria, .lj-page-busca, .lj-page-ofertas) .product-body{ grid-column: 2; align-self: start; padding: 4px 0 0 !important; }
html.lj-view-list body.lj-modern:is(.lj-page-index, .lj-page-categoria, .lj-page-busca, .lj-page-ofertas) .product-card .badge-sale{ top: 18px !important; left: 18px !important; }
html.lj-view-list body.lj-modern:is(.lj-page-index, .lj-page-categoria, .lj-page-busca, .lj-page-ofertas) .product-card .product-actions{
    display: flex !important;
    flex: 0 0 172px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 12px 14px 12px 0 !important;
}
html.lj-view-list body.lj-modern:is(.lj-page-index, .lj-page-categoria, .lj-page-busca, .lj-page-ofertas) .product-card .product-actions .btn-outline{
    display: inline-flex !important;
    border: 1px solid var(--border) !important;
    background: #fff;
    color: var(--text);
    box-shadow: none;
}
@media (max-width: 720px){
    html.lj-view-list body.lj-modern:is(.lj-page-index, .lj-page-categoria, .lj-page-busca, .lj-page-ofertas) .product-link{ grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; padding: 10px; }
    html.lj-view-list body.lj-modern:is(.lj-page-index, .lj-page-categoria, .lj-page-busca, .lj-page-ofertas) .product-media img{ width: 96px; height: 96px; }
    html.lj-view-list body.lj-modern:is(.lj-page-index, .lj-page-categoria, .lj-page-busca, .lj-page-ofertas) .product-title{ font-size: .92rem !important; padding-top: 0; }
    html.lj-view-list body.lj-modern:is(.lj-page-index, .lj-page-categoria, .lj-page-busca, .lj-page-ofertas) .product-card .badge-sale{ top: 14px !important; left: 14px !important; }
    html.lj-view-list body.lj-modern:is(.lj-page-index, .lj-page-categoria, .lj-page-busca, .lj-page-ofertas) .product-card .product-actions{ flex: 0 0 auto; justify-content: center; padding: 10px 10px 10px 0 !important; }
    html.lj-view-list body.lj-modern:is(.lj-page-index, .lj-page-categoria, .lj-page-busca, .lj-page-ofertas) .product-card .product-actions .btn-outline{ display: none !important; }
    html.lj-view-list body.lj-modern:is(.lj-page-index, .lj-page-categoria, .lj-page-busca, .lj-page-ofertas) .product-card .product-actions .btn{ width: auto; padding: 8px 14px !important; }
}

/* ---- tema infantil: textos da página do produto sobre um cartão, para o fundo animado não atrapalhar a leitura ---- */
body.lj-modern.srk-on .product-info{
    background: var(--ks, #fff);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius, 12px) + 6px);
    box-shadow: var(--lj-shadow);
    padding: 24px 26px;
}
body.lj-modern.srk-on .product-description-block .product-description{
    background: var(--ks, #fff);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius, 12px) + 6px);
    padding: 20px 22px;
}
body.lj-modern.srk-on :is(.page-title, .section-title h2){ text-shadow: 0 2px 0 var(--ks, #fff), 0 -1px 0 var(--ks, #fff), 2px 0 0 var(--ks, #fff), -2px 0 0 var(--ks, #fff); }
@media (max-width: 720px){
    body.lj-modern.srk-on .product-info{ padding: 16px; }
}
