/*
 * PedeFácil — cardápio em formato de app
 * Revisão 2026.08.18 v18
 * Camada final: layout inspirado no modelo enviado, tipografia Poppins,
 * cartões horizontais, navegação inferior e modal de adicionais estável.
 */

:root {
    --pf-app-accent: var(--brand, #0f766e);
    --pf-app-accent-rgb: var(--brand-rgb, 15, 118, 110);
    --pf-app-ink: #15191d;
    --pf-app-muted: #68727d;
    --pf-app-line: #dfe5e7;
    --pf-app-page: #f4f5f2;
    --pf-app-surface: #ffffff;
    --pf-app-soft: #f2f3f0;
    --pf-app-success: #087a55;
    --pf-app-danger: #b42318;
}

html body.store-v2,
html body.store-v2 button,
html body.store-v2 input,
html body.store-v2 select,
html body.store-v2 textarea {
    font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html body.store-v2 {
    color: var(--pf-app-ink);
    background: var(--pf-app-page);
}

html body.store-v2 button,
html body.store-v2 a,
html body.store-v2 summary,
html body.store-v2 .variation-card {
    touch-action: manipulation;
}

html body.store-v2 .search-card.glass-card,
html body.store-v2 #catalogCategories.sticky-tools,
html body.store-v2 .menu-section,
html body.store-v2 .product-card,
html body.store-v2 .desktop-side-card {
    border-color: var(--pf-app-line);
    border-radius: 11px;
    background: var(--pf-app-surface);
    box-shadow: none;
}

html body.store-v2 .catalog-search-heading strong,
html body.store-v2 .section-title,
html body.store-v2 .product-name,
html body.store-v2 .sidebar-title {
    color: var(--pf-app-ink);
    font-weight: 800;
}

html body.store-v2 .search-wrap input {
    color: var(--pf-app-ink);
    border-color: #dadeda;
    border-radius: 999px;
    background: #eeefec;
    box-shadow: none;
}

html body.store-v2 .search-wrap input:focus {
    border-color: rgba(var(--pf-app-accent-rgb), .5);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--pf-app-accent-rgb), .1);
}

html body.store-v2 #catStrip .cat-chip {
    color: #2d3439;
    border-color: transparent;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    font-size: .67rem;
    font-weight: 700;
    text-transform: uppercase;
}

html body.store-v2 #catStrip .cat-chip.active,
html body.store-v2 #catStrip .cat-chip[aria-selected="true"] {
    color: #fff;
    border-color: var(--pf-app-accent);
    background: var(--pf-app-accent);
}

html body.store-v2 .product-card {
    position: relative;
    isolation: isolate;
    transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

html body.store-v2 .product-card:hover {
    border-color: rgba(var(--pf-app-accent-rgb), .48);
    transform: translateY(-1px);
}

html body.store-v2 .product-card.has-cart-items {
    border-color: var(--pf-app-accent);
    background: linear-gradient(100deg, rgba(var(--pf-app-accent-rgb), .055), #fff 42%);
}

html body.store-v2 .product-card .product-media {
    overflow: hidden;
    border: 0;
    border-radius: 9px;
    background: #e8ebe8;
}

html body.store-v2 .product-card .product-thumb,
html body.store-v2 .product-card .product-placeholder,
html body.store-v2 .product-card .product-media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

html body.store-v2 .product-name {
    margin: 0;
    font-size: .84rem;
    letter-spacing: -.015em;
    line-height: 1.22;
}

html body.store-v2 .product-desc {
    margin: 4px 0 0;
    color: #4f5962;
    font-size: .64rem;
    line-height: 1.36;
}

html body.store-v2 .price-label {
    display: none;
}

html body.store-v2 .price-value {
    color: var(--pf-app-ink);
    font-size: .82rem;
    font-weight: 800;
}

html body.store-v2 .product-qty-control,
html body.store-v2 .product-qty-control.has-items {
    min-height: 31px;
    padding: 2px;
    border: 1px solid var(--pf-app-accent);
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
}

html body.store-v2 .product-qty-btn,
html body.store-v2 .card-add-btn {
    width: 27px;
    min-width: 27px;
    height: 27px;
    min-height: 27px;
    border: 0;
    border-radius: 5px;
    color: var(--pf-app-accent);
    background: #fff;
    box-shadow: none;
}

html body.store-v2 .product-qty-value {
    min-width: 20px;
    color: var(--pf-app-ink);
    font-size: .69rem;
    font-weight: 800;
    text-align: center;
}

html body.store-v2 .card-add-label {
    color: var(--pf-app-accent);
    font-size: .56rem;
    font-weight: 700;
}

/* Modal de produto: uma única estrutura de rolagem, sem sobreposição. */
html body.store-v2 #productModal {
    padding: 0;
}

html body.store-v2 #productModal .modal-dialog {
    width: min(720px, calc(100vw - 30px));
    max-width: 720px;
    height: min(850px, calc(100dvh - 30px));
    max-height: calc(100dvh - 30px);
    margin: 15px auto;
    display: flex;
    align-items: stretch;
}

html body.store-v2 #productModal .modal-content {
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: none;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 26px 75px rgba(15, 23, 42, .24);
}

html body.store-v2 #productModal .product-modal-topbar {
    position: relative;
    z-index: 4;
    min-height: 64px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--pf-app-line);
    background: #fff;
}

html body.store-v2 #productModal .product-modal-eyebrow {
    color: var(--pf-app-accent);
}

html body.store-v2 #productModal .product-modal-body {
    width: 100%;
    min-height: 0;
    max-height: none;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

html body.store-v2 #productModal .product-modal-hero {
    min-width: 0;
    padding: 12px;
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border: 1px solid var(--pf-app-line);
    border-radius: 13px;
    background: #fff;
}

html body.store-v2 #productModal .product-modal-media {
    width: 126px;
    height: 126px;
    overflow: hidden;
    border-radius: 10px;
    background: #e9ece9;
}

html body.store-v2 #productModal .modal-product-title {
    color: var(--pf-app-ink);
    font-size: 1.08rem;
    font-weight: 800;
}

html body.store-v2 #productModal .modal-product-desc {
    color: var(--pf-app-muted);
    font-size: .71rem;
}

html body.store-v2 #productModal .product-modal-sections,
html body.store-v2 #productModal .groups-stack {
    min-width: 0;
    display: grid;
    gap: 10px;
}

html body.store-v2 #productModal .product-option-section,
html body.store-v2 #productModal .group-card,
html body.store-v2 #productModal .obs-box,
html body.store-v2 #productModal .modal-cross-sell {
    min-width: 0;
    border-color: var(--pf-app-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}

html body.store-v2 #productModal details.group-card.group-disclosure {
    overflow: visible;
}

html body.store-v2 #productModal .group-summary {
    position: relative;
    z-index: 1;
    min-height: 58px;
    padding: 10px 12px;
    pointer-events: auto;
    cursor: pointer;
}

html body.store-v2 #productModal .group-summary-copy,
html body.store-v2 #productModal .group-summary-meta {
    pointer-events: none;
}

html body.store-v2 #productModal .group-collapsible-content {
    min-width: 0;
    padding: 10px 12px 12px;
    overflow: visible;
}

html body.store-v2 #productModal .option-list {
    display: grid;
    gap: 7px;
}

html body.store-v2 #productModal .option-row {
    min-width: 0;
    min-height: 54px;
    padding: 6px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--pf-app-line);
    border-radius: 10px;
    background: #fff;
}

html body.store-v2 #productModal .option-row.selected {
    border-color: var(--pf-app-accent);
    background: rgba(var(--pf-app-accent-rgb), .055);
    box-shadow: 0 0 0 2px rgba(var(--pf-app-accent-rgb), .07);
}

html body.store-v2 #productModal .option-choice {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 4px 5px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    border: 0;
    color: var(--pf-app-ink);
    background: transparent;
    text-align: left;
    pointer-events: auto;
}

html body.store-v2 #productModal .option-indicator {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 1px solid #bbc4c8;
    border-radius: 6px;
    color: transparent;
    background: #fff;
    font-size: .68rem;
}

html body.store-v2 #productModal .option-row.is-single .option-indicator {
    border-radius: 50%;
}

html body.store-v2 #productModal .option-row.selected .option-indicator {
    border-color: var(--pf-app-accent);
    color: #fff;
    background: var(--pf-app-accent);
}

html body.store-v2 #productModal .option-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

html body.store-v2 #productModal .option-copy strong {
    overflow-wrap: anywhere;
    color: var(--pf-app-ink);
    font-size: .7rem;
    font-weight: 700;
}

html body.store-v2 #productModal .option-copy small {
    color: var(--pf-app-accent);
    font-size: .61rem;
    font-weight: 600;
}

html body.store-v2 #productModal .qty-step.qty-step-add {
    min-width: 94px;
    height: 36px;
    margin: 0;
    pointer-events: auto;
}

html body.store-v2 #productModal .qty-step button {
    pointer-events: auto;
}

html body.store-v2 #productModal .qty-step button:disabled {
    color: #9aa3a8;
    background: #f1f2f0;
    opacity: .62;
}

html body.store-v2 #productModal .group-disclosure.is-invalid {
    border-color: var(--pf-app-danger);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .1);
}

html body.store-v2 #productModal .product-modal-footer {
    position: relative;
    z-index: 5;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(230px, 1.1fr);
    gap: 9px 12px;
    align-items: center;
    border-top: 1px solid var(--pf-app-line);
    border-radius: 0;
    background: #fff;
    box-shadow: 0 -8px 22px rgba(15, 23, 42, .055);
}

html body.store-v2 #productModal .product-modal-feedback {
    grid-column: 1 / -1;
    min-height: 34px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #f2d4ae;
    border-radius: 9px;
    color: #8a4d09;
    background: #fff8ec;
    font-size: .64rem;
    font-weight: 600;
}

html body.store-v2 #productModal .product-modal-feedback.is-danger {
    border-color: #efc0bc;
    color: var(--pf-app-danger);
    background: #fff2f1;
}

html body.store-v2 #productModal .product-modal-feedback[hidden] {
    display: none;
}

html body.store-v2 #productModal .product-modal-footer-row {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

html body.store-v2 #productModal .product-modal-add-btn {
    width: 100%;
    min-height: 48px;
    margin: 0;
    border: 1px solid var(--pf-app-accent);
    border-radius: 10px;
    color: #fff;
    background: var(--pf-app-accent);
    box-shadow: none;
    font-size: .72rem;
    font-weight: 700;
}

/* Navegação inferior inspirada no aplicativo do modelo. */
html body.store-v2 .mobile-app-nav {
    display: none;
}

@media (min-width: 981px) {
    html body.store-v2 .prod-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    html body.store-v2 .product-card {
        min-height: 122px;
        padding: 9px;
        grid-template-columns: 102px minmax(0, 1fr) auto;
        grid-template-rows: minmax(0, 1fr) auto;
        grid-template-areas:
            "product-media product-copy product-copy"
            "product-media product-side product-side";
        column-gap: 11px;
        row-gap: 5px;
    }

    html body.store-v2 .product-card .product-media {
        grid-area: product-media;
        width: 102px;
        min-width: 102px;
        height: 102px;
        min-height: 102px;
        align-self: center;
    }

    html body.store-v2 .product-copy {
        grid-area: product-copy;
        padding: 2px 0 0;
    }

    html body.store-v2 .product-side {
        grid-area: product-side;
        width: 100%;
        min-width: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        align-items: end;
        justify-content: space-between;
        gap: 8px;
        border: 0;
    }

    html body.store-v2 .product-side .price-box {
        width: auto;
        min-width: 0;
        padding: 0;
        align-items: flex-start;
        border: 0;
        background: transparent;
        text-align: left;
    }
}

/* Evita zoom involuntário durante a interação no cardápio mobile. */
@media (max-width: 980px), (hover: none) and (pointer: coarse) {
    html,
    html body.store-v2 {
        touch-action: pan-x pan-y;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    html body.store-v2 [data-product-card],
    html body.store-v2 #productModal,
    html body.store-v2 #checkoutModal,
    html body.store-v2 #cartCanvas,
    html body.store-v2 .modal-body,
    html body.store-v2 .offcanvas-body {
        touch-action: pan-x pan-y;
    }

    html body.store-v2 button,
    html body.store-v2 a,
    html body.store-v2 summary,
    html body.store-v2 label,
    html body.store-v2 .variation-card,
    html body.store-v2 .option-choice,
    html body.store-v2 .qty-step,
    html body.store-v2 .card-add-btn {
        touch-action: manipulation;
    }

    html body.store-v2 input,
    html body.store-v2 select,
    html body.store-v2 textarea,
    html body.store-v2 .form-control,
    html body.store-v2 .form-select {
        font-size: 16px;
        touch-action: manipulation;
    }
}

@media (max-width: 980px) {
    html body.store-v2 {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }

    html body.store-v2.has-mobile-cart {
        padding-bottom: calc(144px + env(safe-area-inset-bottom));
    }

    html body.store-v2 .app-shell {
        width: min(680px, 100%);
        max-width: 680px;
        padding: 0 9px 22px;
    }

    html body.store-v2 .mobile-hero {
        margin: 0 -9px 7px;
        padding: calc(12px + env(safe-area-inset-top)) 14px 8px;
        display: block;
        border-bottom: 1px solid #e5e7e3;
        background: #fafaf7;
    }

    html body.store-v2 .mobile-cover {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: visible;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    html body.store-v2 .mobile-topbar {
        position: fixed;
        z-index: 1040;
        top: calc(8px + env(safe-area-inset-top));
        left: 10px;
        right: 10px;
        pointer-events: none;
    }

    html body.store-v2 .mobile-topbar-group,
    html body.store-v2 .mobile-circle-btn {
        pointer-events: auto;
    }

    html body.store-v2 .mobile-circle-btn {
        width: 37px;
        height: 37px;
        border: 1px solid #dfe4e2;
        border-radius: 9px;
        color: var(--pf-app-accent);
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 5px 16px rgba(15, 23, 42, .08);
        backdrop-filter: blur(12px);
    }

    html body.store-v2 .mobile-store-card {
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        color: var(--pf-app-ink);
        background: transparent;
        box-shadow: none;
    }

    html body.store-v2 .mobile-store-main {
        display: block;
        text-align: center;
    }

    html body.store-v2 .mobile-store-logo {
        position: static;
        width: 70px;
        height: 70px;
        margin: 0 auto 7px;
        border: 2px solid #fff;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 0 0 1px #dfe5e2;
        transform: none;
    }

    html body.store-v2 .mobile-store-info {
        min-width: 0;
        text-align: center;
    }

    html body.store-v2 .mobile-store-title-row {
        display: block;
    }

    html body.store-v2 .mobile-store-title {
        margin: 0;
        color: var(--pf-app-accent);
        font-size: 1.12rem;
        font-weight: 800;
        letter-spacing: -.02em;
        line-height: 1.12;
        text-transform: uppercase;
    }

    html body.store-v2 .mobile-store-detail-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    html body.store-v2 .mobile-store-sub {
        margin: 2px 0 0;
        color: #52605d;
        font-size: .6rem;
    }

    html body.store-v2 .mobile-store-meta {
        margin: 0;
    }

    html body.store-v2 .status-inline {
        padding: 2px 7px;
        border-radius: 999px;
        color: var(--pf-app-success);
        background: #eaf7f1;
        font-size: .54rem;
    }

    html body.store-v2 .mobile-store-side-fact {
        position: absolute;
        top: 52px;
        width: calc(50% - 66px);
        min-width: 78px;
        min-height: 43px;
        padding: 5px 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 0;
        color: #41504c;
        background: transparent;
        box-shadow: none;
    }

    html body.store-v2 .mobile-store-side-fact-left {
        left: 0;
    }

    html body.store-v2 .mobile-store-side-fact-right {
        right: 0;
    }

    html body.store-v2 .mobile-store-side-icon {
        color: var(--pf-app-accent);
        background: transparent;
    }

    html body.store-v2 .mobile-store-side-copy small,
    html body.store-v2 .mobile-store-side-copy strong {
        font-size: .55rem;
        line-height: 1.2;
    }

    html body.store-v2 .content-grid {
        display: block;
    }

    html body.store-v2 .right-col,
    html body.store-v2 .desktop-only-banners {
        display: none;
    }

    html body.store-v2 .catalog-sticky-stack {
        top: 0;
        margin: 0;
        padding: 0;
        border: 0;
        background: rgba(244, 245, 242, .96);
        backdrop-filter: blur(12px);
    }

    html body.store-v2 .search-card.glass-card {
        margin: 0;
        padding: 8px 7px 5px;
        border: 0;
        background: transparent;
    }

    html body.store-v2 .catalog-search-heading {
        margin: 0 0 6px;
        display: block;
        text-align: center;
    }

    html body.store-v2 .catalog-search-heading > div > span,
    html body.store-v2 .catalog-search-heading > div > small,
    html body.store-v2 .catalog-shortcut {
        display: none;
    }

    html body.store-v2 .catalog-search-heading strong {
        font-size: 1.02rem;
        letter-spacing: .02em;
        text-transform: uppercase;
    }

    html body.store-v2 .search-toolbar {
        gap: 6px;
    }

    html body.store-v2 .search-wrap,
    html body.store-v2 .search-wrap input {
        min-height: 41px;
        height: 41px;
    }

    html body.store-v2 #catalogCategories.sticky-tools {
        margin: 0;
        padding: 1px 4px 6px;
        border-width: 0 0 1px;
        border-radius: 0;
        background: rgba(244, 245, 242, .97);
    }

    html body.store-v2 #catStrip.cat-strip {
        width: 100%;
        padding: 2px;
        justify-content: flex-start;
        gap: 1px;
    }

    html body.store-v2 #catStrip .cat-chip {
        min-height: 29px;
        padding: 0 8px;
        font-size: .57rem;
    }

    html body.store-v2 #catStrip .cat-chip i {
        display: none;
    }

    html body.store-v2 .menu-section {
        margin: 9px 0 0;
        padding: 8px;
    }

    html body.store-v2 .section-head {
        margin: 0 1px 7px;
    }

    html body.store-v2 .section-title {
        font-size: .83rem;
        text-transform: uppercase;
    }

    html body.store-v2 .section-sub {
        display: none;
    }

    html body.store-v2 .prod-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    html body.store-v2 .product-card,
    html body.store-v2 .product-card.is-featured {
        min-height: 116px;
        padding: 7px;
        display: grid;
        grid-template-columns: 102px minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        grid-template-areas:
            "product-media product-copy"
            "product-media product-side";
        column-gap: 9px;
        row-gap: 4px;
        align-items: stretch;
        border-width: 1px;
    }

    html body.store-v2 .product-card .product-media {
        grid-area: product-media;
        width: 102px;
        min-width: 102px;
        max-width: 102px;
        height: 102px;
        min-height: 102px;
        max-height: 102px;
        margin: 0;
        align-self: center;
    }

    html body.store-v2 .product-copy {
        grid-area: product-copy;
        min-width: 0;
        padding: 1px 0 0;
    }

    html body.store-v2 .product-topline {
        min-height: 0;
        margin-bottom: 3px;
    }

    html body.store-v2 .status-badge:not(.badge-off):not(.badge-promo) {
        display: none;
    }

    html body.store-v2 .product-desc {
        max-height: 2.75em;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    html body.store-v2 .product-side {
        grid-area: product-side;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        align-items: end;
        justify-content: space-between;
        gap: 7px;
        align-self: end;
        border: 0;
    }

    html body.store-v2 .product-side .price-box {
        width: auto;
        min-width: 0;
        max-width: calc(100% - 84px);
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        border: 0;
        background: transparent;
        text-align: left;
    }

    html body.store-v2 .favorite-product-btn {
        display: none;
    }

    html body.store-v2 .mobile-app-nav {
        position: fixed;
        z-index: 1042;
        right: 0;
        bottom: 0;
        left: 0;
        min-height: calc(62px + env(safe-area-inset-bottom));
        padding: 5px max(8px, env(safe-area-inset-left)) calc(5px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
        border-top: 1px solid #dce2df;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
        backdrop-filter: blur(16px);
    }

    html body.store-v2 .mobile-app-nav-item {
        position: relative;
        min-width: 0;
        min-height: 48px;
        padding: 3px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        border: 0;
        border-radius: 8px;
        color: #55615e;
        background: transparent;
        font-size: .55rem;
        font-weight: 600;
        text-decoration: none;
    }

    html body.store-v2 .mobile-app-nav-item > i,
    html body.store-v2 .mobile-app-nav-icon > i {
        font-size: 1.05rem;
        line-height: 1;
    }

    html body.store-v2 .mobile-app-nav-item.active,
    html body.store-v2 .mobile-app-nav-item:active {
        color: var(--pf-app-accent);
    }

    html body.store-v2 .mobile-app-nav-icon {
        position: relative;
        display: inline-flex;
    }

    html body.store-v2 #mobileNavCartCount {
        position: absolute;
        top: -8px;
        right: -11px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        display: grid;
        place-items: center;
        border: 2px solid #fff;
        border-radius: 999px;
        color: #fff;
        background: var(--pf-app-accent);
        font-size: .48rem;
        font-weight: 800;
    }

    html body.store-v2 .floating-cart {
        z-index: 1043;
        right: 8px;
        bottom: calc(68px + env(safe-area-inset-bottom));
        left: 8px;
    }

    html body.store-v2 #openCartBottomBtn.floating-cart-btn {
        min-height: 54px;
        border-radius: 11px;
        background: var(--pf-app-accent);
        box-shadow: 0 11px 28px rgba(var(--pf-app-accent-rgb), .26);
    }

    html body.store-v2.modal-open .mobile-app-nav,
    html body.store-v2.product-modal-open .mobile-app-nav,
    html body.store-v2.checkout-open .mobile-app-nav,
    html body.store-v2.cart-panel-open .mobile-app-nav {
        visibility: hidden;
        pointer-events: none;
    }

    html body.store-v2 #productModal .modal-dialog {
        position: fixed;
        inset: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
    }

    html body.store-v2 #productModal .modal-content {
        height: 100dvh;
        max-height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    html body.store-v2 #productModal .product-modal-topbar {
        min-height: calc(59px + env(safe-area-inset-top));
        padding: calc(9px + env(safe-area-inset-top)) 12px 8px;
    }

    html body.store-v2 #productModal .product-modal-body {
        padding: 10px;
        scrollbar-gutter: auto;
    }

    html body.store-v2 #productModal .product-modal-hero {
        padding: 9px;
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 10px;
    }

    html body.store-v2 #productModal .product-modal-media {
        width: 86px;
        height: 86px;
    }

    html body.store-v2 #productModal .modal-product-title {
        font-size: .94rem;
    }

    html body.store-v2 #productModal .product-modal-footer {
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    html body.store-v2 #productModal .product-modal-feedback,
    html body.store-v2 #productModal .product-modal-footer-row,
    html body.store-v2 #productModal .product-modal-add-btn {
        grid-column: 1;
    }

    html body.store-v2 #productModal .product-modal-footer-row {
        min-height: 39px;
    }

    html body.store-v2 #productModal .product-modal-quantity {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    html body.store-v2 #productModal .product-modal-total {
        margin-left: auto;
    }

    html body.store-v2 #productModal .product-modal-add-btn {
        min-height: 45px;
    }
}

/* Experiência comercial desktop — v18. */
html body.store-v2 .card-add-text {
    display: none;
}

html body.store-v2 .cart-line-quantity {
    width: max-content;
    min-height: 28px;
    margin-top: 7px;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(var(--pf-app-accent-rgb), .28);
    border-radius: 8px;
    background: rgba(var(--pf-app-accent-rgb), .045);
}

html body.store-v2 .cart-line-quantity button {
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    color: var(--pf-app-accent);
    background: #fff;
    font-size: .68rem;
}

html body.store-v2 .cart-line-quantity strong {
    min-width: 22px;
    color: var(--pf-app-ink);
    font-size: .68rem;
    text-align: center;
}

html body.store-v2 .cart-line-unit {
    margin-top: 2px;
    color: var(--pf-app-muted);
    font-size: .57rem;
    font-weight: 600;
}

@media (min-width: 981px) {
    html body.store-v2 {
        padding-bottom: 24px;
    }

    html body.store-v2 .app-shell {
        padding-top: 16px;
    }

    /* Cabeçalho compacto: capa e informações ocupam menos altura útil. */
    html body.store-v2 .desktop-hero.hero-card {
        min-height: 184px;
        margin-bottom: 12px;
        padding-top: 72px;
    }

    html body.store-v2 .desktop-hero-cover {
        height: 112px;
        border-radius: 20px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .11);
    }

    html body.store-v2 .desktop-hero .hero-inner {
        width: calc(100% - 32px);
        min-height: 106px;
        padding: 38px 18px 12px;
        grid-template-columns: minmax(150px, 1fr) minmax(280px, 390px) minmax(150px, 1fr);
        gap: 14px;
        border-radius: 17px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .1);
    }

    html body.store-v2 .desktop-hero .brand-logo {
        top: -38px;
        width: 78px;
        height: 78px;
        border-width: 4px;
        border-radius: 20px;
        box-shadow: 0 0 0 1px rgba(226, 232, 240, .7), 0 9px 22px rgba(15, 23, 42, .17);
    }

    html body.store-v2 .desktop-hero .brand-copy {
        gap: 3px;
    }

    html body.store-v2 .desktop-hero .brand-title {
        font-size: 1.06rem;
    }

    html body.store-v2 .desktop-hero .brand-sub {
        font-size: .64rem;
    }

    html body.store-v2 .desktop-hero .brand-pill {
        min-height: 20px;
        padding: 2px 7px;
        font-size: .56rem;
    }

    html body.store-v2 .desktop-store-side-fact {
        width: min(100%, 200px);
        min-height: 44px;
        padding: 6px 9px;
        grid-template-columns: 29px minmax(0, 1fr);
        gap: 7px;
        border-radius: 12px;
        box-shadow: none;
    }

    html body.store-v2 .desktop-store-side-icon {
        width: 29px;
        height: 29px;
        border-radius: 9px;
        font-size: .72rem;
    }

    html body.store-v2 .desktop-store-side-copy small {
        margin-bottom: 2px;
        font-size: .48rem;
    }

    html body.store-v2 .desktop-store-side-copy strong {
        font-size: .65rem;
    }

    html body.store-v2 .desktop-hero .hero-actions {
        top: 10px;
        right: 10px;
        gap: 6px;
    }

    html body.store-v2 .desktop-hero .hero-actions .track-link,
    html body.store-v2 .desktop-hero .hero-actions .hero-btn {
        width: 36px;
        min-width: 36px;
        height: 36px;
        min-height: 36px;
        border-radius: 11px;
    }

    /* Busca, filtros e categorias passam a formar uma única barra fixa. */
    html body.store-v2 #catalogStickyStack.catalog-sticky-stack {
        position: sticky;
        z-index: 96;
        top: calc(var(--compact-bar-height, 0px) + 8px);
        margin: 0 0 12px;
        padding: 8px;
        display: grid;
        gap: 7px;
        overflow: visible;
        border: 1px solid rgba(218, 224, 228, .94);
        border-radius: 15px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 8px 22px rgba(15, 23, 42, .075);
        backdrop-filter: blur(16px) saturate(130%);
        transition: border-color .16s ease, box-shadow .16s ease;
    }

    html body.store-v2 #catalogStickyStack.is-stuck {
        border-color: rgba(var(--pf-app-accent-rgb), .18);
        box-shadow: 0 14px 32px rgba(15, 23, 42, .12);
    }

    html body.store-v2 #catalogStart.search-card.glass-card {
        position: relative;
        z-index: 2;
        margin: 0;
        padding: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    html body.store-v2 .search-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 7px;
        align-items: center;
    }

    html body.store-v2 .search-wrap,
    html body.store-v2 .search-wrap input {
        min-height: 40px;
        height: 40px;
    }

    html body.store-v2 .sort-wrap,
    html body.store-v2 .catalog-favorite-btn {
        min-height: 40px;
        height: 40px;
        border-radius: 10px;
    }

    html body.store-v2 .catalog-filter-row {
        margin-top: 7px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    html body.store-v2 .catalog-quick-filters {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 5px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    html body.store-v2 .catalog-quick-filters::-webkit-scrollbar {
        display: none;
    }

    html body.store-v2 .catalog-filter-chip {
        min-height: 31px;
        padding: 0 9px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        flex: 0 0 auto;
        border: 1px solid #e0e5e8;
        border-radius: 999px;
        color: #4f5962;
        background: #f7f8f6;
        font-size: .61rem;
        font-weight: 700;
        transition: color .15s ease, border-color .15s ease, background .15s ease;
    }

    html body.store-v2 .catalog-filter-chip:hover {
        border-color: rgba(var(--pf-app-accent-rgb), .35);
        color: var(--pf-app-accent);
    }

    html body.store-v2 .catalog-filter-chip.active,
    html body.store-v2 .catalog-filter-chip[aria-pressed="true"] {
        border-color: var(--pf-app-accent);
        color: #fff;
        background: var(--pf-app-accent);
    }

    html body.store-v2 .catalog-result-count {
        flex: 0 0 auto;
        color: var(--pf-app-muted);
        font-size: .59rem;
        font-weight: 700;
        white-space: nowrap;
    }

    html body.store-v2 #catalogCategories.sticky-tools,
    html body.store-v2.compact-store-visible #catalogCategories.sticky-tools,
    html body.store-v2.compact-store-visible #catalogCategories.sticky-tools.is-stuck {
        position: static;
        z-index: 1;
        top: auto;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 6px 0 0;
        overflow: hidden;
        border: 0;
        border-top: 1px solid #edf0f1;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    html body.store-v2 #catStrip.cat-strip {
        width: 100%;
        padding: 0 1px;
        justify-content: flex-start;
        gap: 3px;
        overflow-x: auto;
    }

    html body.store-v2 #catStrip .cat-chip {
        min-height: 30px;
        padding: 0 9px;
        font-size: .58rem;
    }

    /* Cards com preço destacado e ação textual. */
    html body.store-v2 .content-grid {
        grid-template-columns: minmax(0, 1fr) 348px;
        gap: 14px;
    }

    html body.store-v2 .prod-grid {
        gap: 11px;
    }

    html body.store-v2 .product-card,
    html body.store-v2 .product-card.is-featured {
        min-height: 140px;
        padding: 11px;
        grid-template-columns: 116px minmax(0, 1fr) auto;
        grid-template-rows: minmax(0, 1fr) auto;
        grid-template-areas:
            "product-media product-copy product-copy"
            "product-media product-side product-side";
        column-gap: 12px;
        row-gap: 7px;
        border-radius: 13px;
        contain-intrinsic-size: 140px;
        box-shadow: 0 6px 18px rgba(23, 32, 42, .06);
    }

    html body.store-v2 .product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 11px 25px rgba(23, 32, 42, .1);
    }

    html body.store-v2 .product-card.has-cart-items {
        border-color: var(--pf-app-accent);
        background: linear-gradient(105deg, rgba(var(--pf-app-accent-rgb), .085), #fff 45%);
        box-shadow: inset 4px 0 0 var(--pf-app-accent), 0 8px 22px rgba(var(--pf-app-accent-rgb), .11);
    }

    html body.store-v2 .product-card .product-media {
        width: 116px;
        min-width: 116px;
        max-width: 116px;
        height: 116px;
        min-height: 116px;
        max-height: 116px;
    }

    html body.store-v2 .product-name {
        font-size: .93rem;
        line-height: 1.24;
    }

    html body.store-v2 .product-desc {
        margin-top: 5px;
        font-size: .68rem;
        line-height: 1.43;
    }

    html body.store-v2 .product-side {
        width: 100%;
        min-width: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 8px;
        border: 0;
    }

    html body.store-v2 .product-side .price-box {
        width: auto;
        min-width: 96px;
        max-width: 150px;
        min-height: 38px;
        margin: 0;
        padding: 6px 9px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 1px;
        border: 1px solid rgba(var(--pf-app-accent-rgb), .18);
        border-radius: 9px;
        background: rgba(var(--pf-app-accent-rgb), .075);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
        text-align: left;
    }

    html body.store-v2 .product-side .price-value {
        color: var(--pf-app-accent);
        font-size: .94rem;
        line-height: 1.12;
    }

    html body.store-v2 .product-side .price-old {
        font-size: .58rem;
        line-height: 1;
    }

    html body.store-v2 .product-side .price-save {
        font-size: .53rem;
        line-height: 1.1;
    }

    html body.store-v2 .product-qty-control,
    html body.store-v2 .product-qty-control.has-items {
        width: auto;
        min-width: 0;
        min-height: 36px;
        padding: 2px;
        align-items: center;
        border-radius: 9px;
        background: rgba(var(--pf-app-accent-rgb), .045);
    }

    html body.store-v2 .product-qty-btn,
    html body.store-v2 .card-add-btn {
        height: 30px;
        min-height: 30px;
    }

    html body.store-v2 .product-qty-plus.card-add-btn {
        width: auto;
        min-width: 92px;
        padding: 0 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        color: #fff;
        background: var(--pf-app-accent);
        font-size: .66rem;
        font-weight: 800;
    }

    html body.store-v2 .product-qty-control.has-items .product-qty-plus.card-add-btn {
        min-width: 62px;
    }

    html body.store-v2 .product-qty-control.has-items .product-qty-minus {
        color: var(--pf-app-accent);
        background: #fff;
    }

    html body.store-v2 .card-add-text {
        display: inline;
        white-space: nowrap;
    }

    html body.store-v2 .card-add-label {
        display: none;
    }

    /* Carrinho lateral com lista rolável e fechamento sempre acessível. */
    html body.store-v2 .right-col,
    html body.store-v2.compact-store-visible .right-col,
    html body.store-v2.compact-store-visible:has(#catalogCategories.is-stuck) .right-col {
        top: calc(var(--compact-bar-height, 0px) + 10px);
    }

    html body.store-v2 .desktop-cart-card,
    html body.store-v2.compact-store-visible .desktop-cart-card,
    html body.store-v2.compact-store-visible:has(#catalogCategories.is-stuck) .desktop-cart-card {
        height: min(720px, calc(100dvh - var(--compact-bar-height, 0px) - 20px));
        max-height: calc(100dvh - var(--compact-bar-height, 0px) - 20px);
        padding: 0;
        border-radius: 15px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .1);
    }

    html body.store-v2 .desktop-cart-head {
        min-height: 66px;
        margin: 0;
        padding: 12px 14px;
        border-bottom: 1px solid var(--pf-app-line);
        background: #fff;
    }

    html body.store-v2 .desktop-cart-list {
        min-height: 0;
        padding: 9px 10px;
        flex: 1 1 auto;
        overflow-y: auto;
        background: #fafbf9;
    }

    html body.store-v2 .desktop-cart-empty {
        min-height: 0;
        margin: 12px;
        flex: 1 1 auto;
    }

    html body.store-v2 .desktop-cart-list .cart-line.compact.has-thumb {
        margin: 0 0 7px;
        padding: 9px;
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr) auto;
        gap: 8px;
        align-items: start;
        border: 1px solid #e5e9eb;
        border-radius: 11px;
        background: #fff;
        box-shadow: 0 3px 10px rgba(15, 23, 42, .035);
    }

    html body.store-v2 .desktop-cart-list .cart-line-thumb {
        width: 52px;
        min-width: 52px;
        height: 52px;
        border-radius: 9px;
    }

    html body.store-v2 .desktop-cart-list .cart-line-main {
        min-width: 0;
    }

    html body.store-v2 .desktop-cart-list .cart-line-title {
        margin: 0;
        color: var(--pf-app-ink);
        font-size: .7rem;
        line-height: 1.25;
    }

    html body.store-v2 .desktop-cart-list .line-mini-badges {
        margin-top: 5px;
        gap: 3px;
    }

    html body.store-v2 .desktop-cart-list .line-mini-badge {
        padding: 2px 5px;
        border-radius: 5px;
        font-size: .51rem;
        line-height: 1.25;
    }

    html body.store-v2 .desktop-cart-list .cart-line-sub {
        margin-top: 4px;
        padding: 4px 6px;
        border-left: 2px solid rgba(var(--pf-app-accent-rgb), .35);
        border-radius: 0 5px 5px 0;
        color: #59636c;
        background: #f6f7f5;
        font-size: .54rem;
        line-height: 1.3;
    }

    html body.store-v2 .desktop-cart-list .cart-line-actions {
        min-width: 64px;
        display: grid;
        justify-items: end;
        gap: 6px;
    }

    html body.store-v2 .desktop-cart-list .cart-line-price {
        color: var(--pf-app-ink);
        font-size: .69rem;
        white-space: nowrap;
    }

    html body.store-v2 .desktop-cart-summary {
        max-height: none;
        margin: 0;
        padding: 11px 13px;
        flex: 0 0 auto;
        overflow: visible;
        border-top: 1px solid var(--pf-app-line);
        background: #fff;
    }

    html body.store-v2 .desktop-cart-summary .summary-row.total {
        margin-top: 6px;
        padding-top: 7px;
        border-top: 1px dashed #dce2e5;
    }

    html body.store-v2 .desktop-cart-summary .summary-row.total strong {
        color: var(--pf-app-accent);
        font-size: .9rem;
    }

    html body.store-v2 .desktop-cart-summary .cart-goal {
        border-color: rgba(var(--pf-app-accent-rgb), .18);
        background: rgba(var(--pf-app-accent-rgb), .055);
    }

    html body.store-v2 .desktop-cart-summary .cart-goal.is-complete {
        border-color: #bfe5d2;
        background: #edf9f3;
    }

    html body.store-v2 #desktopCheckoutBtn.desktop-checkout-btn {
        position: sticky;
        z-index: 3;
        bottom: 0;
        width: auto;
        min-height: 50px;
        margin: 0 12px 12px;
        flex: 0 0 auto;
        border-radius: 11px;
        box-shadow: 0 10px 24px rgba(var(--pf-app-accent-rgb), .22);
    }

    /* Modal amplo, com produto à esquerda e personalização à direita. */
    html body.store-v2 #productModal .modal-dialog {
        width: min(1040px, calc(100vw - 32px));
        max-width: 1040px;
        height: min(820px, calc(100dvh - 32px));
        max-height: calc(100dvh - 32px);
        margin: 16px auto;
    }

    html body.store-v2 #productModal .modal-content {
        border-radius: 20px;
    }

    html body.store-v2 #productModal .product-modal-body {
        padding: 15px;
        display: grid;
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 15px;
        align-items: start;
    }

    html body.store-v2 #productModal .product-modal-hero {
        position: sticky;
        top: 0;
        padding: 12px;
        display: block;
        border-radius: 14px;
        background: #f8faf8;
    }

    html body.store-v2 #productModal .product-modal-media {
        width: 100%;
        height: 276px;
        border-radius: 12px;
    }

    html body.store-v2 #productModal .product-modal-media img,
    html body.store-v2 #productModal .product-modal-media > * {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    html body.store-v2 #productModal .product-modal-copy {
        padding: 13px 3px 3px;
    }

    html body.store-v2 #productModal .modal-product-title {
        font-size: 1.2rem;
        line-height: 1.25;
    }

    html body.store-v2 #productModal .modal-product-desc {
        margin-top: 6px;
        font-size: .72rem;
        line-height: 1.5;
    }

    html body.store-v2 #productModal .product-modal-sections {
        align-content: start;
        gap: 11px;
    }

    html body.store-v2 #productModal .option-copy strong {
        font-size: .73rem;
    }

    html body.store-v2 #productModal .product-modal-footer {
        grid-template-columns: minmax(340px, .85fr) minmax(360px, 1.15fr);
        padding: 11px 15px;
        box-shadow: 0 -10px 28px rgba(15, 23, 42, .08);
    }

    html body.store-v2 #productModal .product-modal-total strong {
        color: var(--pf-app-accent);
        font-size: 1rem;
    }

    html body.store-v2 #productModal .product-modal-add-btn {
        min-height: 52px;
        font-size: .76rem;
    }
}

@media (max-width: 980px) {
    html body.store-v2 .catalog-filter-row {
        display: none;
    }
}

/* CTA de fechamento do carrinho com semântica visual positiva — v19. */
html body.store-v2 #desktopCheckoutBtn.desktop-checkout-btn {
    border-color: #15803d;
    color: #fff;
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 11px 24px rgba(21, 128, 61, .24);
}

html body.store-v2 #desktopCheckoutBtn.desktop-checkout-btn:hover:not(:disabled) {
    border-color: #166534;
    background: linear-gradient(135deg, #15803d, #166534);
    transform: translateY(-1px);
}

html body.store-v2 #desktopCheckoutBtn.desktop-checkout-btn i {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #166534;
    background: #dcfce7;
}

html body.store-v2 #desktopCheckoutBtn.desktop-checkout-btn:disabled {
    border-color: #dfe3e8;
    color: #959da8;
    background: #eceff2;
    box-shadow: none;
    transform: none;
}

html body.store-v2 #desktopCheckoutBtn.desktop-checkout-btn:disabled i {
    color: #959da8;
    background: #dfe3e8;
}

@media (min-width: 981px) and (max-width: 1120px) {
    html body.store-v2 .prod-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    html body.store-v2 .content-grid {
        grid-template-columns: minmax(0, 1fr) 330px;
    }
}

@media (max-width: 380px) {
    html body.store-v2 .product-card,
    html body.store-v2 .product-card.is-featured {
        grid-template-columns: 88px minmax(0, 1fr);
        min-height: 104px;
    }

    html body.store-v2 .product-card .product-media {
        width: 88px;
        min-width: 88px;
        max-width: 88px;
        height: 88px;
        min-height: 88px;
        max-height: 88px;
    }

    html body.store-v2 #productModal .option-row {
        grid-template-columns: minmax(0, 1fr);
    }

    html body.store-v2 #productModal .qty-step.qty-step-add {
        width: 100%;
        min-width: 0;
    }
}

/* Conversão e performance — v45 */
html body.store-v2 .product-media picture,
html body.store-v2 .cart-line-thumb picture,
html body.store-v2 .modal-product-media picture,
html body.store-v2 .public-banner-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

html body.store-v2 [data-product-card][data-promo="1"] {
    border-color: color-mix(in srgb, var(--pf-app-accent) 42%, #e5e7eb);
    box-shadow: inset 3px 0 0 var(--pf-app-accent), 0 5px 14px rgba(15, 23, 42, .045);
}

html body.store-v2 [data-product-card][data-best="1"] .product-name::after {
    content: "popular";
    margin-left: 7px;
    padding: 2px 6px;
    border-radius: 999px;
    color: #9a3412;
    background: #fff3e8;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .02em;
    vertical-align: 2px;
}

html body.store-v2 .status-badge.badge-promo {
    color: #fff;
    border-color: var(--pf-app-accent);
    background: var(--pf-app-accent);
}

html body.store-v2 .status-badge.badge-best {
    color: #9a3412;
    border-color: #fed7aa;
    background: #fff7ed;
}

html body.store-v2 .status-badge.badge-flavor {
    color: #475569;
    border-color: #e2e8f0;
    background: #f8fafc;
}

html body.store-v2 .conversion-alert.shipping {
    color: #166534;
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

html body.store-v2 .checkout-online-payer[hidden],
html body.store-v2 .checkout-online-payer.d-none {
    display: none;
}

html body.store-v2 .floating-cart-total {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-items: end;
    column-gap: 8px;
    text-align: right;
}

html body.store-v2 .floating-cart-total-caption {
    grid-column: 1;
    color: rgba(255,255,255,.76);
    font-size: .58rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

html body.store-v2 .floating-cart-total > span {
    grid-column: 1;
    color: #fff;
    font-size: .98rem;
    font-weight: 900;
    line-height: 1.1;
}

html body.store-v2 .floating-cart-total > i {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: .8rem;
}

html body.store-v2 .checkout-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

html body.store-v2 .checkout-pane[data-step-pane="1"] + .checkout-pane[data-step-pane="1"].active {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

@media (max-width: 980px) {
    html body.store-v2 .product-topline .status-badge {
        display: none;
    }

    html body.store-v2 .product-topline .badge-promo,
    html body.store-v2 .product-topline .badge-best,
    html body.store-v2 .product-topline .badge-off {
        display: inline-flex;
    }

    html body.store-v2 .product-topline .badge-best:nth-of-type(n+3) {
        display: none;
    }

    html body.store-v2 [data-product-card][data-best="1"] .product-name::after {
        display: none;
    }

    html body.store-v2 .checkout-steps .step-pill {
        min-width: 0;
        padding-inline: 7px;
    }
}

@media (max-width: 576px) {
    html body.store-v2 .checkout-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Correções mobile de preço e confirmação do carrinho — v17. */
html body.store-v2 #clearCartModal.clear-cart-modal {
    z-index: 1090;
}

html body.store-v2.clear-cart-confirm-open .modal-backdrop {
    z-index: 1080;
}

@media (max-width: 980px) {
    html body.store-v2 .product-side .price-box {
        position: static;
        inset: auto;
        width: auto;
        min-width: 0;
        max-width: calc(100% - 48px);
        min-height: 30px;
        margin: 0;
        padding: 5px 8px;
        flex: 0 1 auto;
        gap: 1px;
        align-items: flex-start;
        justify-content: center;
        overflow: hidden;
        border: 1px solid rgba(var(--pf-app-accent-rgb), .14);
        border-radius: 8px;
        background: rgba(var(--pf-app-accent-rgb), .075);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
        text-align: left;
        pointer-events: auto;
    }

    html body.store-v2 .product-side .price-value {
        max-width: 100%;
        color: var(--pf-app-accent);
        font-size: .8rem;
        line-height: 1.15;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html body.store-v2 .product-side .price-old {
        max-width: 100%;
        font-size: .57rem;
        line-height: 1.05;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html body.store-v2 #clearCartModal .modal-dialog {
        width: min(370px, calc(100vw - 24px));
        margin: max(12px, env(safe-area-inset-top)) auto max(12px, env(safe-area-inset-bottom));
    }
}

/* Capa mobile compacta — v44.
 * Recupera a imagem de capa sem aumentar o espaço total do cabeçalho.
 */
@media (max-width: 980px) {
    html body.store-v2 .mobile-hero {
        position: relative;
        margin: 0 -9px 8px;
        padding: 0 0 7px;
        overflow: visible;
        border-bottom: 1px solid #e5e7eb;
        background: #fafaf7;
    }

    html body.store-v2 .mobile-cover {
        position: relative;
        width: 100%;
        height: 84px;
        min-height: 84px;
        margin: 0;
        overflow: hidden;
        clip: auto;
        clip-path: none;
        white-space: normal;
        border-radius: 0 0 14px 14px;
        background: var(--store-mobile-cover-bg);
        box-shadow: none;
    }

    html body.store-v2 .mobile-cover::after {
        content: "";
        position: absolute;
        z-index: 1;
        inset: 0;
        display: block;
        background: linear-gradient(180deg, rgba(8, 13, 24, .18), rgba(8, 13, 24, .44));
        pointer-events: none;
    }

    html body.store-v2 .mobile-topbar {
        position: absolute;
        z-index: 3;
        top: calc(9px + env(safe-area-inset-top));
        right: 10px;
        left: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        pointer-events: none;
    }

    html body.store-v2 .mobile-circle-btn {
        width: 36px;
        height: 36px;
        border: 1px solid rgba(255, 255, 255, .34);
        border-radius: 10px;
        color: #fff;
        background: rgba(15, 23, 42, .48);
        box-shadow: 0 6px 16px rgba(15, 23, 42, .16);
        backdrop-filter: blur(10px);
    }

    html body.store-v2 .mobile-store-card {
        position: relative;
        z-index: 4;
        width: calc(100% - 16px);
        min-height: 104px;
        margin: -22px auto 0;
        padding: 36px 8px 8px;
        overflow: visible;
        border: 1px solid rgba(226, 232, 240, .96);
        border-radius: 15px;
        color: var(--pf-app-ink);
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 9px 22px rgba(15, 23, 42, .09);
    }

    html body.store-v2 .mobile-store-logo {
        position: absolute;
        z-index: 5;
        top: -34px;
        left: 50%;
        width: 66px;
        min-width: 66px;
        max-width: 66px;
        height: 66px;
        margin: 0;
        border: 3px solid #fff;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 0 0 1px rgba(209, 213, 219, .92), 0 7px 16px rgba(15, 23, 42, .13);
        transform: translateX(-50%);
    }

    html body.store-v2 .mobile-store-info {
        min-width: 0;
        text-align: center;
    }

    html body.store-v2 .mobile-store-title {
        max-width: 174px;
        margin: 0 auto;
        font-size: 1rem;
        line-height: 1.12;
    }

    html body.store-v2 .mobile-store-detail-row {
        gap: 3px;
    }

    html body.store-v2 .mobile-store-sub {
        margin-top: 1px;
        font-size: .58rem;
    }

    html body.store-v2 .status-inline {
        padding: 2px 7px;
        font-size: .53rem;
    }

    html body.store-v2 .mobile-store-side-fact {
        top: 48px;
        width: calc(50% - 72px);
        min-width: 82px;
        min-height: 34px;
        padding: 4px 6px;
        gap: 4px;
        border: 1px solid #edf0f3;
        border-radius: 9px;
        background: #f8fafc;
    }

    html body.store-v2 .mobile-store-side-fact-left {
        left: 8px;
    }

    html body.store-v2 .mobile-store-side-fact-right {
        right: 8px;
    }

    html body.store-v2 .mobile-store-side-icon {
        width: 18px;
        height: 18px;
        display: grid;
        place-items: center;
        border-radius: 6px;
        color: var(--pf-app-accent);
        background: rgba(var(--pf-app-accent-rgb), .08);
    }

    html body.store-v2 .mobile-store-side-copy small {
        font-size: .48rem;
        line-height: 1.05;
    }

    html body.store-v2 .mobile-store-side-copy strong {
        font-size: .57rem;
        line-height: 1.1;
    }
}

@media (max-width: 380px) {
    html body.store-v2 .mobile-cover {
        height: 78px;
        min-height: 78px;
    }

    html body.store-v2 .mobile-store-card {
        min-height: 100px;
        margin-top: -20px;
        padding-top: 33px;
    }

    html body.store-v2 .mobile-store-logo {
        top: -31px;
        width: 60px;
        min-width: 60px;
        max-width: 60px;
        height: 60px;
    }

    html body.store-v2 .mobile-store-title {
        max-width: 148px;
        font-size: .92rem;
    }

    html body.store-v2 .mobile-store-side-fact {
        top: 45px;
        width: calc(50% - 65px);
        min-width: 76px;
        padding-inline: 4px;
    }
}

/* Efeito de identidade no cabeçalho branco — usa a cor configurada pelo lojista. */
@media (max-width: 980px) {
    html body.store-v2 .mobile-store-card {
        isolation: isolate;
        border-top: 4px solid var(--brand);
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
    }

    html body.store-v2 .mobile-store-card::before {
        content: none;
        display: none;
    }

    html body.store-v2 .mobile-store-card::after {
        content: "";
        position: absolute;
        z-index: 4;
        top: -39px;
        left: 50%;
        display: block;
        width: 74px;
        height: 39px;
        box-sizing: border-box;
        border: 4px solid var(--brand);
        border-bottom: 0;
        border-radius: 999px 999px 0 0;
        background: transparent;
        box-shadow: 0 -3px 10px rgba(var(--brand-rgb), .18);
        transform: translateX(-50%);
        pointer-events: none;
    }

    html body.store-v2 .mobile-store-info {
        position: relative;
        z-index: 2;
    }

    html body.store-v2 .mobile-store-side-fact {
        z-index: 2;
    }

    html body.store-v2 .mobile-store-logo {
        z-index: 3;
        border-color: #fff;
        box-shadow:
            0 0 0 1px rgba(209, 213, 219, .92),
            0 9px 22px rgba(15, 23, 42, .16);
    }
}

@media (max-width: 380px) {
    html body.store-v2 .mobile-store-card::after {
        top: -36px;
        width: 68px;
        height: 36px;
    }
}

@media (min-width: 981px) {
    html body.store-v2 .desktop-hero .hero-inner {
        isolation: isolate;
        overflow: visible;
        border-top: 4px solid var(--brand);
    }

    html body.store-v2 .desktop-hero .hero-inner::before {
        content: none;
        display: none;
    }

    html body.store-v2 .desktop-hero .hero-inner::after {
        content: "";
        position: absolute;
        z-index: 4;
        top: -43px;
        left: 50%;
        display: block;
        width: 86px;
        height: 43px;
        box-sizing: border-box;
        border: 4px solid var(--brand);
        border-bottom: 0;
        border-radius: 24px 24px 0 0;
        background: transparent;
        box-shadow: 0 -3px 10px rgba(var(--brand-rgb), .18);
        transform: translateX(-50%);
        pointer-events: none;
    }

    html body.store-v2 .desktop-hero .hero-inner > * {
        z-index: 2;
    }

    html body.store-v2 .desktop-hero .brand-logo {
        z-index: 3;
        box-shadow:
            0 0 0 1px rgba(226, 232, 240, .75),
            0 11px 26px rgba(15, 23, 42, .19);
    }
}
