/* ==========================================================
   Cardápio Inteligente — Caramela
========================================================== */

.cm-menu-root {
    scroll-margin-top: 100px;
}

.cm-menu--catalog {
    background: #FDF8F2;
    padding: 4.5rem 0 5rem;
}

.cm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: start;
}

.cm-layout--catalog {
    grid-template-columns: 1fr;
}

.cm-step-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.cm-step-header h2 {
    margin-top: .75rem;
}

.cm-experience-header h2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin: 0 0 .85rem;
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    color: var(--secondary);
    font-weight: 700;
}

.cm-experience-header p {
    margin: 0 auto;
    max-width: 520px;
    color: rgba(74, 44, 42, .78);
    font-size: 1.05rem;
}

.cm-experience-header .ca-heart {
    color: var(--pink, #D68E8E);
    font-weight: 400;
    font-size: .85em;
}

.cm-trust-list {
    list-style: none;
    margin: 1.35rem auto 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem 1.35rem;
    max-width: 560px;
}

.cm-trust-list li {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .92rem;
    color: rgba(74, 44, 42, .78);
}

.cm-trust-list li span {
    color: var(--primary, #5D3A29);
    font-weight: 600;
}

.cm-step-products .cm-products-footer .lif-btn,
.cm-experience-cta {
    min-width: 240px;
}

.cm-back {
    margin-bottom: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    transition: .25s;
}

.cm-back:hover {
    opacity: .75;
}

/* ==========================================================
   SPRINT 1.3B — Product Card Premium (Syselo / Caramela)
========================================================== */

.cm-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.cm-layout--catalog .cm-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    max-width: 1100px;
}

.cm-product-grid--choices {
    max-width: 1100px;
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .cm-product-grid--choices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cm-product-grid--choices {
        grid-template-columns: 1fr;
    }
}

.cm-product-tagline {
    margin: .35rem 0 0;
    font-size: .88rem;
    line-height: 1.4;
    color: rgba(74, 44, 42, .62);
}

.cm-product-from {
    margin: .15rem 0 0;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(74, 44, 42, .48);
}

.cm-product-meta {
    margin: .2rem 0 0;
    font-size: .82rem;
    color: rgba(74, 44, 42, .55);
}

.cm-product-grid--variants {
    max-width: 960px;
}

.cm-step-variants .cm-back {
    margin-bottom: .75rem;
}

.cm-layout--catalog .cm-product-grid--choices:not(.cm-product-grid--variants) {
    max-width: 640px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
    .cm-layout--catalog .cm-product-grid--choices:not(.cm-product-grid--variants) {
        grid-template-columns: 1fr;
    }
}

.cm-catalog-group {
    margin-bottom: 2.75rem;
}

.cm-catalog-group-title {
    text-align: center;
    font-family: var(--font-display, Georgia, serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--secondary, #5C3D2E);
    margin: 0 0 1.5rem;
}

.cm-product-card {
    display: flex;
    flex-direction: column;
    background: #FFF;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(93, 58, 41, .05);
    box-shadow: 0 8px 24px rgba(93, 58, 41, .05);
    cursor: pointer;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.cm-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(93, 58, 41, .1);
    border-color: rgba(214, 142, 142, .22);
}

.cm-product-card:focus {
    outline: none;
}

.cm-product-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(93, 58, 41, .12);
    border-color: var(--primary, #5D3A29);
    outline: 2px solid var(--accent, #E9B35D);
    outline-offset: 3px;
}

.cm-product-card--featured {
    border-color: rgba(214, 142, 142, .45);
    box-shadow:
        0 10px 28px rgba(93, 58, 41, .06),
        0 0 0 1px rgba(214, 142, 142, .2);
}

.cm-product-card--quote {
    background: linear-gradient(180deg, #FFF 0%, #FFF8F2 100%);
}

.cm-product-card--party .cm-product-card-body {
    gap: .15rem;
}

.cm-party-offer {
    margin: .15rem 0 1rem;
}

.cm-party-offer-from {
    margin: 0 0 .2rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(74, 44, 42, .5);
}

.cm-party-offer-units {
    margin: 0 0 .35rem;
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--secondary, #4A2C2A);
}

.cm-party-offer-units strong {
    font-weight: 700;
    font-size: 1.7rem;
}

.cm-party-offer-price {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary, #5D3A29);
}

.cm-party-lead {
    margin: .35rem 0 0;
    font-size: .95rem;
    line-height: 1.45;
    color: rgba(74, 44, 42, .78);
}

.cm-party-tiers {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: .55rem;
}

.cm-party-tiers li {
    display: flex;
    gap: .45rem;
    align-items: flex-start;
    margin: 0;
    font-size: .92rem;
    line-height: 1.4;
    color: var(--secondary, #4A2C2A);
}

.cm-party-tiers li em {
    font-style: normal;
    color: rgba(74, 44, 42, .55);
}

.cm-party-audience {
    margin: .85rem 0 0;
    font-size: .88rem;
    line-height: 1.4;
    color: rgba(74, 44, 42, .65);
}

.cm-pack-option-price {
    display: block;
    margin-top: .35rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--primary, #5D3A29);
}

.cm-product-card--party .cm-party-audience {
    margin-top: .55rem;
}

.cm-party-benefits {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.cm-party-benefits li {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    font-size: .9rem;
    line-height: 1.4;
    color: rgba(74, 44, 42, .78);
}

.cm-party-benefits li span {
    color: var(--primary, #5D3A29);
    font-weight: 700;
    line-height: 1.4;
}

.cm-product-card-media {
    position: relative;
    aspect-ratio: 4 / 5;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    background: var(--pink-soft, #F6E4E4);
    border-radius: 24px 24px 0 0;
}

.cm-product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.02);
    transition: transform 1s ease;
    display: block;
}

.cm-product-card:hover .cm-product-card-media img,
.cm-product-card:focus-visible .cm-product-card-media img {
    transform: scale(1.06);
}

.cm-product-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    background: var(--primary, #5D3A29);
    color: #FFF;
    font-family: var(--font-family, inherit);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 7px 12px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(93, 58, 41, .18);
}

.cm-product-tag--soft {
    background: var(--pink, #D68E8E);
    box-shadow: 0 6px 16px rgba(214, 142, 142, .28);
}

.cm-product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.35rem 1.35rem 1.4rem;
    text-align: left;
}

.cm-product-name,
.cm-product-card-body h3 {
    font-family: var(--font-display, Georgia, serif);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 .5rem;
    color: var(--secondary, #4A2C2A);
}

.cm-product-desc {
    font-family: var(--font-family, inherit);
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.55;
    margin: 0 0 1rem;
    color: rgba(46, 46, 46, .62);
}

.cm-product-units {
    display: block;
    font-family: var(--font-family, inherit);
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .01em;
    color: rgba(74, 44, 42, .62);
    margin: .35rem 0 1rem;
}

.cm-product-price {
    display: block;
    font-family: var(--font-family, inherit);
    color: var(--secondary, #4A2C2A);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
}

.cm-product-ideal {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.cm-product-ideal-label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(74, 44, 42, .45);
    margin-bottom: .15rem;
}

.cm-product-ideal li:not(.cm-product-ideal-label) {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .88rem;
    color: rgba(74, 44, 42, .78);
    text-transform: capitalize;
}

.cm-product-ideal li span {
    color: var(--primary, #5D3A29);
    font-size: .78rem;
}

.cm-product-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: auto;
    padding: 0 1.25rem;
    border-radius: 999px;
    font-family: var(--font-family, inherit);
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: #FFF;
    background: var(--primary, #5D3A29);
    box-shadow: 0 8px 18px rgba(93, 58, 41, .12);
    transition:
        background .25s ease,
        box-shadow .25s ease;
}

.cm-product-card:hover .cm-product-cta,
.cm-product-card:focus-visible .cm-product-cta {
    background: var(--primary-dark, #4A2C2A);
    box-shadow: 0 14px 28px rgba(93, 58, 41, .22);
}

.cm-product-card--quote .cm-product-cta {
    background: transparent;
    color: var(--secondary, #4A2C2A);
    border: 1.5px solid rgba(74, 44, 42, .28);
    box-shadow: none;
}

.cm-product-card--quote:hover .cm-product-cta,
.cm-product-card--quote:focus-visible .cm-product-cta {
    background: rgba(255, 255, 255, .7);
    border-color: rgba(74, 44, 42, .45);
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {

    .cm-product-card,
    .cm-product-card-media img,
    .cm-product-cta {
        transition: none;
    }

    .cm-product-card:hover,
    .cm-product-card:focus-visible {
        transform: none;
    }

    .cm-product-card:hover .cm-product-card-media img,
    .cm-product-card:focus-visible .cm-product-card-media img {
        transform: none;
    }

}

.cm-step-individual .cm-individual-preview {
    max-width: 280px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(92, 61, 46, .12);
}

.cm-step-individual .cm-individual-preview img {
    width: 100%;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
}

.cm-individual-qty {
    margin: 1.5rem auto 0;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .65rem;
    text-align: center;
}

.cm-individual-qty-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8A6A55;
}

.cm-individual-qty .cm-qty--lg .cm-qty-btn {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
}

.cm-individual-qty .cm-qty--lg .cm-qty-value {
    min-width: 2rem;
    font-size: 1.35rem;
}

.cm-individual-qty-hint {
    margin: 0;
    font-size: .92rem;
    color: #5C3D2E;
    font-weight: 600;
}

.cm-products-footer {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
    text-align: center;
}

.cm-experience-cta {
    border-radius: 999px !important;
    padding: 16px 36px !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .88rem;
    font-weight: 700;
    background: #A6633C !important;
    box-shadow: none !important;
}

.cm-experience-cta:hover {
    background: #8F5230 !important;
    transform: translateY(-2px);
}

.cm-products-note {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(74, 44, 42, 0.65);
}

/* Modos */

.cm-mode-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cm-mode-option {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.35rem;
    background: #FFF;
    border-radius: 18px;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: .25s ease;
}

.cm-mode-option:hover,
.cm-mode-option.is-selected {
    border-color: var(--primary);
    transform: scale(1.01);
}

.cm-mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cm-mode-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
    position: relative;
}

.cm-mode-option.is-selected .cm-mode-radio::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--primary);
}

.cm-mode-copy {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.cm-mode-copy small {
    color: var(--text-light);
    font-size: .9rem;
}

/* Sabores */

.cm-flavor-counter {
    margin-top: 1rem;
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(184, 107, 50, .1);
    color: var(--secondary);
    font-weight: 600;
}

.cm-assorted-note {
    margin-top: 1rem;
    font-size: .92rem;
    color: var(--text-light);
}

.cm-flavor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.cm-flavor-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #FFF;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    transition: .25s ease;
}

.cm-flavor-card:hover:not(.is-disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cm-flavor-card.is-selected {
    border: 2px solid var(--primary);
}

.cm-flavor-card.is-disabled {
    opacity: .45;
}

.cm-flavor-media {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 14px;
    overflow: hidden;
    background: #FFF7F0;
}

.cm-flavor-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cm-flavor-soldout {
    position: absolute;
    inset: auto 0 0 0;
    background: rgba(0,0,0,.7);
    color: #FFF;
    font-size: .7rem;
    font-weight: 700;
    text-align: center;
    padding: 4px;
}

.cm-flavor-top {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: .75rem;
}

.cm-flavor-top h4 {
    font-size: 1rem;
    margin: 0;
}

.cm-readonly-qty {
    font-weight: 700;
    color: var(--primary);
}

/* Creme do centro — Box Fondue */

.cm-cream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.cm-cream-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .65rem;
    padding: 1.5rem 1.25rem;
    background: #FFF;
    border-radius: 22px;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: .25s ease;
    font-family: inherit;
}

.cm-cream-option img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 18px;
}

.cm-cream-option strong {
    font-size: 1.15rem;
    color: var(--secondary);
}

.cm-cream-option span {
    font-size: .85rem;
    color: var(--text-light);
}

.cm-cream-option:hover,
.cm-cream-option.is-selected {
    border-color: var(--primary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md);
}

/* Badge disponibilidade */

.cm-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 600;
}

.cm-badge--disponivel { color: #2E7D32; }
.cm-badge--baixo { color: #C47F00; }
.cm-badge--indisponivel { color: #B71C1C; }

/* Qty */

.cm-qty {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.cm-qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    transition: .2s;
}

.cm-qty-btn:hover:not(:disabled) {
    background: var(--primary);
    color: #FFF;
}

.cm-qty-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.cm-qty-value {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.cm-qty-input {
    width: 5rem;
    min-width: 5rem;
    box-sizing: border-box;
    margin: 0 .4rem;
    padding: .5rem .45rem;
    border: 1.5px solid rgba(93, 58, 41, .28);
    border-radius: 12px;
    background: #FFF;
    color: var(--secondary, #4A2C2A);
    font: inherit;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    cursor: text;
    appearance: textfield;
    -moz-appearance: textfield;
}

.cm-qty-input::-webkit-outer-spin-button,
.cm-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cm-qty-input:focus {
    outline: 2px solid var(--accent, #E9B35D);
    outline-offset: 2px;
    border-color: var(--primary, #5D3A29);
    background: #FFFDF8;
}

.cm-qty-input--flavor {
    width: 2.75rem;
    min-width: 2.75rem;
    margin: 0 .25rem;
    padding: .3rem .2rem;
    font-size: 1rem;
    border-radius: 10px;
}

.cm-flavor-card .cm-qty--editable .cm-qty-input {
    box-shadow: inset 0 0 0 1px rgba(233, 179, 93, .2);
}

.cm-individual-qty .cm-qty--lg .cm-qty-input {
    width: 5.5rem;
    min-width: 5.5rem;
    font-size: 1.4rem;
    padding: .55rem .5rem;
}

/* Botões */

.cm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 600;
    transition: .3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.cm-btn-primary {
    background: var(--primary);
    color: #FFF;
}

.cm-btn-primary:hover {
    background: var(--primary-dark, #8A4E21);
    transform: translateY(-2px);
}

.cm-btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.cm-btn-outline:hover:not(:disabled),
.cm-flavor-card.is-selected .cm-btn-outline {
    background: var(--primary);
    color: #FFF;
}

.cm-btn-whatsapp {
    background: #25D366;
    color: #FFF;
    margin-top: 1rem;
}

.cm-btn-whatsapp:hover:not(:disabled) {
    background: #1EBE57;
    transform: translateY(-2px);
}

.cm-btn-whatsapp:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

/* Resumo */

.cm-summary {
    position: sticky;
    top: 100px;
}

.cm-summary-card {
    background: #FFF;
    border-radius: 24px;
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(93, 58, 41, .05);
    box-shadow: 0 10px 28px rgba(93, 58, 41, .05);
}

.cm-summary-card h3 {
    margin: 0 0 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary, #4A2C2A);
}

.cm-summary-block {
    margin-bottom: 1.35rem;
}

.cm-summary-label {
    display: block;
    font-size: .72rem;
    color: rgba(74, 44, 42, .5);
    margin-bottom: .4rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}

.cm-summary-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary, #4A2C2A);
    line-height: 1.4;
}

.cm-summary-value--soft {
    font-weight: 500;
    color: rgba(74, 44, 42, .82);
}

.cm-summary-flavors {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.cm-summary-flavors li {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    font-size: .98rem;
    color: var(--secondary, #4A2C2A);
}

.cm-summary-bullet {
    color: rgba(74, 44, 42, .4);
}

.cm-summary-flavor-name {
    flex: 1;
}

.cm-summary-flavor-qty {
    font-size: .85rem;
    font-weight: 600;
    color: rgba(74, 44, 42, .55);
}

.cm-summary-block--total {
    margin-top: .25rem;
    margin-bottom: 1.5rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(93, 58, 41, .08);
}

.cm-summary-total-value {
    display: block;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--secondary, #4A2C2A);
}

.cm-summary-empty,
.cm-summary-muted {
    color: var(--text-light);
    font-size: .92rem;
}

/* Success */

.cm-success {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    visibility: hidden;
    opacity: 0;
    transition: .3s ease;
}

.cm-success.active {
    visibility: visible;
    opacity: 1;
}

.cm-success-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.cm-success-card {
    position: relative;
    width: min(420px, 100%);
    background: #FFF;
    border-radius: 28px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 30px 70px rgba(0,0,0,.25);
}

.cm-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.cm-success-card h3 {
    margin-bottom: .75rem;
}

.cm-success-card p {
    color: #777;
    margin-bottom: 1.75rem;
}

/* Confirmação pré-WhatsApp */

.cm-confirm-root {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.cm-confirm-root.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.cm-confirm {
    position: relative;
    width: min(440px, 100%);
    max-height: min(90vh, 720px);
    display: flex;
    flex-direction: column;
}

.cm-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(40, 24, 20, .55);
    z-index: -1;
}

.cm-confirm-card {
    position: relative;
    overflow: auto;
    background: #FFF;
    border-radius: 24px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 24px 60px rgba(40, 24, 20, .22);
    text-align: center;
}

.cm-confirm-emoji {
    margin: 0 0 .5rem;
    font-size: 2rem;
    line-height: 1;
}

.cm-confirm-card h3 {
    margin: 0 0 .4rem;
    font-size: 1.35rem;
    color: var(--secondary, #4A2C2A);
}

.cm-confirm-lead {
    margin: 0 0 1.35rem;
    font-size: .95rem;
    color: rgba(74, 44, 42, .65);
}

.cm-confirm-section {
    text-align: left;
    margin-bottom: 1.1rem;
}

.cm-confirm-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(74, 44, 42, .5);
    margin-bottom: .35rem;
}

.cm-confirm-value {
    display: block;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--secondary, #4A2C2A);
    line-height: 1.4;
}

.cm-confirm-value--soft {
    font-weight: 500;
}

.cm-confirm-flavors {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.cm-confirm-flavors li {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    font-size: .98rem;
    color: var(--secondary, #4A2C2A);
}

.cm-confirm-check {
    color: #2E7D32;
    font-size: .85rem;
}

.cm-confirm-flavors em {
    font-style: normal;
    font-weight: 600;
    color: rgba(74, 44, 42, .55);
    font-size: .88rem;
}

.cm-confirm-section--total {
    margin-top: .25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(93, 58, 41, .1);
    margin-bottom: 1.35rem;
}

.cm-confirm-total {
    display: block;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--secondary, #4A2C2A);
}

.cm-confirm-actions {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.cm-confirm-edit {
    width: 100%;
    min-height: 48px;
    margin-top: 0;
}

.cm-confirm-send {
    width: 100%;
    margin-top: 0;
    min-height: 54px;
}

@media (prefers-reduced-motion: reduce) {

    .cm-confirm-root {
        transition: none;
    }

}

/* Responsivo */

@media (max-width: 980px) {

    .cm-layout {
        grid-template-columns: 1fr;
    }

    .cm-summary {
        position: static;
        order: 2;
    }

    .cm-main {
        order: 1;
    }

}

@media (max-width: 560px) {

    .cm-flavor-card {
        grid-template-columns: 72px 1fr;
    }

    .cm-flavor-media {
        width: 72px;
        height: 72px;
    }

}

/* Consulta WhatsApp — produtos ocultos do cardápio */

.cm-whatsapp-only {
    margin-top: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem 1.75rem;
    border-radius: 24px;
    background: #F9F1E8;
    border: 1px solid rgba(214, 142, 142, .22);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    align-items: center;
}

.cm-whatsapp-only h3 {
    font-size: 1.05rem;
    margin-bottom: .5rem;
    color: var(--secondary);
}

.cm-whatsapp-only p {
    font-size: .92rem;
    margin-bottom: .75rem;
    color: rgba(74, 44, 42, .72);
}

.cm-whatsapp-only-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    font-weight: 600;
    color: var(--secondary);
}

.cm-whatsapp-only .cm-btn-whatsapp {
    margin-top: 0;
    width: auto;
    min-width: 220px;
    text-decoration: none;
}

@media (max-width: 900px) {

    .cm-layout--catalog .cm-product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cm-product-card-media {
        max-height: 260px;
    }

    .cm-product-name,
    .cm-product-card-body h3 {
        font-size: 1.2rem;
    }

    .cm-product-price {
        font-size: 1.25rem;
    }

}

/* ==========================================================
   SPRINT 2.1 — UX Premium
========================================================== */

.cm-progress {
    margin: 0 auto 1.5rem;
    max-width: 1100px;
}

.cm-progress-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .85rem;
    margin: 0 0 .65rem;
}

.cm-progress-step {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pink-deep, #C47E7E);
}

.cm-progress-label {
    font-size: .95rem;
    font-weight: 600;
    color: var(--secondary, #4A2C2A);
}

.cm-progress-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .4rem;
}

.cm-progress-seg {
    height: 4px;
    border-radius: 999px;
    background: rgba(93, 58, 41, .12);
}

.cm-progress-seg.is-done,
.cm-progress-seg.is-current {
    background: var(--primary, #5D3A29);
}

.cm-progress-seg.is-current {
    box-shadow: 0 0 0 2px rgba(233, 179, 93, .35);
}

.cm-back {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 44px;
    padding: .35rem .75rem .35rem 0;
    font-weight: 600;
    font-size: .95rem;
}

.cm-step-guide {
    margin: .85rem 0 0;
    padding: .75rem 1rem;
    border-radius: 14px;
    background: rgba(246, 228, 228, .55);
    color: rgba(74, 44, 42, .78);
    font-size: .9rem;
    line-height: 1.45;
}

.cm-step-guide--ok {
    background: rgba(46, 125, 50, .08);
    color: #2E7D32;
}

.cm-step-enter {
    animation: cmStepIn .28s ease both;
}

@keyframes cmStepIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cm-flavor-card.is-selected,
.cm-flavor-card.has-qty {
    border-color: var(--primary, #5D3A29);
    box-shadow: 0 0 0 2px rgba(93, 58, 41, .18), 0 12px 28px rgba(93, 58, 41, .1);
    transform: translateY(-2px);
}

.cm-flavor-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary, #5D3A29);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
}

.cm-flavor-media {
    position: relative;
}

.cm-flavor-counter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    margin-top: .75rem;
    font-size: 1rem;
}

.cm-flavor-counter.is-complete strong {
    color: #2E7D32;
}

.cm-flavor-counter-hint,
.cm-flavor-counter-ok {
    font-size: .8rem;
    font-weight: 600;
    padding: .25rem .6rem;
    border-radius: 999px;
}

.cm-flavor-counter-hint {
    background: rgba(214, 142, 142, .2);
    color: var(--pink-deep, #C47E7E);
}

.cm-flavor-counter-ok {
    background: rgba(46, 125, 50, .12);
    color: #2E7D32;
}

.cm-pack-qty {
    margin-top: 2rem;
    padding: 1.35rem 1.25rem;
    border-radius: 20px;
    border: 1px dashed rgba(93, 58, 41, .2);
    background: #FFFBF7;
    transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

.cm-pack-qty.is-highlight {
    border-style: solid;
    border-color: var(--primary, #5D3A29);
    box-shadow: 0 12px 32px rgba(93, 58, 41, .12);
    background: #FFF;
}

.cm-pack-qty.is-pulse {
    animation: cmPulse .9s ease;
}

@keyframes cmPulse {
    0%, 100% { box-shadow: 0 12px 32px rgba(93, 58, 41, .12); }
    50% { box-shadow: 0 0 0 6px rgba(233, 179, 93, .35); }
}

.cm-summary-guide,
.cm-summary-next {
    margin: 0 0 1rem;
    font-size: .9rem;
    line-height: 1.45;
    color: rgba(74, 44, 42, .72);
}

.cm-summary-next {
    padding: .7rem .85rem;
    border-radius: 12px;
    background: rgba(246, 228, 228, .5);
}

.cm-btn-guide {
    width: 100%;
    margin-top: 1rem;
    min-height: 52px;
    border-radius: 999px;
    border: 1.5px solid rgba(74, 44, 42, .28);
    background: #FFF;
    color: var(--secondary, #4A2C2A);
    font-weight: 600;
    cursor: pointer;
}

.cm-btn-guide:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.cm-btn-guide:not(:disabled):hover {
    border-color: var(--primary, #5D3A29);
    background: var(--pink-soft, #F6E4E4);
}

.cm-btn-whatsapp {
    min-height: 56px;
    width: 100%;
    margin-top: .25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .01em;
    box-shadow: 0 12px 28px rgba(37, 211, 102, .28);
}

.cm-mobile-bar {
    display: none;
}

@media (max-width: 980px) {

    .cm-summary {
        position: static;
        order: 2;
        margin-bottom: 5.5rem;
    }

    .cm-mobile-bar.is-visible {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9000;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: .85rem 1rem calc(.85rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(12px);
        box-shadow: 0 -8px 30px rgba(93, 58, 41, .12);
        border-top: 1px solid rgba(93, 58, 41, .08);
    }

    .cm-mobile-bar-info {
        display: flex;
        flex-direction: column;
        gap: .15rem;
        min-width: 0;
    }

    .cm-mobile-bar-info strong {
        font-size: 1.15rem;
        color: var(--secondary, #4A2C2A);
    }

    .cm-mobile-bar-info span {
        font-size: .78rem;
        color: rgba(74, 44, 42, .65);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cm-mobile-bar-cta {
        width: auto;
        min-width: 112px;
        margin-top: 0;
        padding: 0 1.25rem;
    }

    .cm-qty-btn {
        min-width: 44px;
        min-height: 44px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .cm-step-enter,
    .cm-pack-qty.is-pulse,
    .cm-flavor-card.is-selected,
    .cm-flavor-card.has-qty {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

}

/* Sprint 2.2 — Party wizard */

.cm-party-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 420px;
    margin: 1.5rem auto 0;
}

.cm-fulfill-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 520px;
    margin: 1.5rem auto 0;
}

.cm-pack-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 640px;
    margin: 1.75rem auto 0;
}

.cm-fulfill-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    min-height: 92px;
    padding: 1.1rem 1.15rem;
    border-radius: 18px;
    border: 1.5px solid rgba(74, 44, 42, .16);
    background: #FFF;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.cm-fulfill-option strong {
    font-size: 1.05rem;
    color: var(--secondary, #4A2C2A);
}

.cm-fulfill-option small {
    font-size: .85rem;
    line-height: 1.4;
    color: rgba(74, 44, 42, .65);
}

.cm-fulfill-option:hover,
.cm-fulfill-option.is-selected {
    border-color: var(--primary, #5D3A29);
    background: var(--pink-soft, #F6E4E4);
    box-shadow: 0 8px 20px rgba(93, 58, 41, .08);
}

.cm-pay-options {
    display: grid;
    gap: .45rem;
    margin-top: .55rem;
}

.cm-pay-option {
    width: 100%;
    text-align: left;
    padding: .7rem .9rem;
    border-radius: 12px;
    border: 1.5px solid rgba(74, 44, 42, .16);
    background: #FFF8F2;
    color: var(--secondary, #4A2C2A);
    font-family: inherit;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
}

.cm-pay-option:hover,
.cm-pay-option.is-selected {
    border-color: var(--primary, #5D3A29);
    background: var(--pink-soft, #F6E4E4);
}

.cm-fulfill-address {
    max-width: 520px;
    margin: 1.35rem auto 0;
}

.cm-fulfill-address-label {
    display: block;
    margin-bottom: .55rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(74, 44, 42, .55);
    text-align: left;
}

@media (max-width: 560px) {

    .cm-fulfill-options {
        grid-template-columns: 1fr;
    }

}

.cm-pack-option {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1.5px solid rgba(74, 44, 42, .14);
    border-radius: 20px;
    overflow: hidden;
    background: #FFF;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: border-color .25s ease, box-shadow .25s ease, transform .2s ease;
}

.cm-pack-option:hover {
    border-color: rgba(93, 58, 41, .28);
    box-shadow: 0 10px 24px rgba(93, 58, 41, .08);
    transform: translateY(-2px);
}

.cm-pack-option.is-selected {
    border-color: var(--primary, #5D3A29);
    box-shadow: 0 12px 28px rgba(93, 58, 41, .12);
}

.cm-pack-option-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--pink-soft, #F6E4E4);
    overflow: hidden;
}

.cm-pack-option-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cm-pack-option-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--primary, #5D3A29);
    color: #FFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 700;
}

.cm-pack-option-body {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1rem 1.1rem 1.15rem;
}

.cm-pack-option-body strong {
    font-size: 1.05rem;
    color: var(--secondary, #4A2C2A);
}

.cm-pack-option-body small {
    font-size: .85rem;
    line-height: 1.4;
    color: rgba(74, 44, 42, .65);
}

.cm-party-choice {
    min-height: 56px;
    border-radius: 16px;
    border: 1.5px solid rgba(74, 44, 42, .22);
    background: #FFF;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary, #4A2C2A);
    cursor: pointer;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.cm-party-choice:hover,
.cm-party-choice.is-selected {
    border-color: var(--primary, #5D3A29);
    background: var(--pink-soft, #F6E4E4);
    box-shadow: 0 8px 20px rgba(93, 58, 41, .1);
}

.cm-party-field {
    max-width: 520px;
    margin: 1.25rem auto 0;
}

.cm-party-input {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1.5px solid rgba(74, 44, 42, .18);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--secondary, #4A2C2A);
    background: #FFF;
    resize: vertical;
    min-height: 96px;
}

.cm-party-input:focus {
    outline: 2px solid var(--accent, #E9B35D);
    outline-offset: 2px;
}

.cm-party-field-actions {
    margin-top: 1rem;
}

.cm-cal {
    max-width: 360px;
    margin: 1.25rem auto 0;
    padding: 1rem 1.05rem 1.15rem;
    border-radius: 18px;
    background: #fff;
    border: 1.5px solid rgba(74, 44, 42, .12);
    box-shadow: 0 8px 24px rgba(93, 58, 41, .06);
}

.cm-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .85rem;
}

.cm-cal-month {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary, #4A2C2A);
}

.cm-cal-nav-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1.5px solid rgba(74, 44, 42, .16);
    background: #FFF8F2;
    color: var(--primary, #5D3A29);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.cm-cal-nav-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.cm-cal-nav-btn:not(:disabled):hover {
    background: var(--pink-soft, #F6E4E4);
}

.cm-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .2rem;
    margin-bottom: .35rem;
    text-align: center;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: rgba(74, 44, 42, .45);
}

.cm-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .28rem;
}

.cm-cal-day {
    aspect-ratio: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1.5px solid transparent;
    background: #FFF8F2;
    color: var(--secondary, #4A2C2A);
    font-size: .92rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
}

.cm-cal-day:hover {
    border-color: rgba(93, 58, 41, .25);
}

.cm-cal-day.is-selected {
    background: var(--primary, #5D3A29);
    color: #fff;
    border-color: var(--primary, #5D3A29);
}

.cm-cal-day--disabled,
.cm-cal-day--empty {
    background: transparent;
    color: rgba(74, 44, 42, .28);
    cursor: default;
    font-weight: 500;
}

.cm-cal-day--empty {
    visibility: hidden;
}

.cm-cal-hint {
    margin: .85rem 0 0;
    font-size: .78rem;
    line-height: 1.4;
    color: rgba(74, 44, 42, .55);
}

.cm-cal-selected {
    margin: .55rem 0 0;
    font-size: .92rem;
    color: var(--secondary, #4A2C2A);
}

.cm-cal-selected--muted {
    color: rgba(74, 44, 42, .5);
}

.cm-step-party-date .cm-party-field-actions {
    margin-top: 1rem;
}

.cm-btn-primary,
.cm-party-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: 1.25rem;
    border: none;
    border-radius: 999px;
    background: var(--primary, #5D3A29);
    color: #FFF;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
}

.cm-btn-primary:hover,
.cm-party-next:hover {
    background: var(--primary-dark, #4A2C2A);
}

@media (max-width: 560px) {

    .cm-party-choices,
    .cm-pack-options {
        grid-template-columns: 1fr;
    }

}

/* ==========================================================
   Sprint 2.3 — Refinamento comercial
========================================================== */

.cm-flavor-heading {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.cm-flavor-subtitle {
    margin: 0;
    font-size: .8rem;
    font-weight: 600;
    color: var(--primary, #5D3A29);
    letter-spacing: .01em;
}

.cm-flavor-availability {
    margin: .15rem 0 0;
    font-size: .75rem;
    font-weight: 500;
    color: rgba(74, 44, 42, .52);
}

.cm-flavor-availability--baixo {
    color: #A66B00;
}

.cm-flavor-availability--indisponivel {
    color: #9B3B3B;
}

.cm-flavor-card {
    border: 1px solid rgba(93, 58, 41, .06);
    box-shadow: none;
    gap: .85rem;
    padding: .85rem;
}

.cm-flavor-card:hover:not(.is-disabled) {
    border-color: rgba(93, 58, 41, .14);
    box-shadow: 0 6px 16px rgba(93, 58, 41, .06);
}

.cm-flavor-card.is-selected,
.cm-flavor-card.has-qty {
    border-color: rgba(93, 58, 41, .2);
    box-shadow: 0 6px 18px rgba(93, 58, 41, .08);
}

.cm-catalog-group {
    margin-bottom: 3.25rem;
}

.cm-catalog-group-title {
    font-size: 1.05rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 600;
    opacity: .72;
    margin-bottom: 1.75rem;
}

.cm-step-enter {
    animation-duration: .35s;
}

.cm-products-note {
    text-align: center;
    font-size: .85rem;
    color: rgba(74, 44, 42, .5);
    margin: 0;
}

.cm-badge-icon:empty {
    display: none;
}

@media (prefers-reduced-motion: reduce) {

    .cm-product-card,
    .cm-product-card-media img,
    .cm-product-cta,
    .cm-flavor-card {
        transition: none !important;
    }

}


