.cart-body {
    background:
        radial-gradient(circle at top left, rgba(212, 168, 138, 0.28), transparent 34%),
        radial-gradient(circle at bottom right, rgba(92, 48, 32, 0.12), transparent 32%),
        linear-gradient(135deg, var(--creme) 0%, var(--creme-escuro) 100%);
    color: var(--texto-escuro);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: cartPageFadeIn 0.75s ease forwards;
}

@keyframes cartPageFadeIn {
    to { opacity: 1; }
}

.cart-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(245, 234, 224, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(92, 48, 32, 0.1);
    box-shadow: 0 4px 20px rgba(92, 48, 32, 0.08);
    animation: cartHeaderDown 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cartHeaderDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-right {
    justify-content: flex-end;
    gap: 8px;
}

.header-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    transition: transform var(--transicao-rapida);
}

.auth-logo:hover { transform: scale(1.02); }

.auth-logo-texto {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    line-height: 1;
}

.logo-tua {
    font-family: var(--fonte-script), cursive;
    color: var(--marrom);
    line-height: 1;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

.logo-pele {
    font-family: var(--fonte-titulo), serif;
    font-weight: 900;
    color: var(--marrom);
    letter-spacing: -0.04em;
    line-height: 1;
    position: relative;
    z-index: 1;
    -webkit-text-stroke: 0.03em var(--marrom);
}

.auth-logo .logo-tua { font-size: 2.2rem; }
.auth-logo .logo-pele { font-size: 1.6rem; }

.auth-lema {
    font-family: var(--fonte-titulo);
    font-size: 0.95rem;
    color: var(--marrom);
    font-weight: 300;
    margin-top: -6px;
    margin-left: 20px;
    letter-spacing: 0.01em;
    line-height: 1;
}

.page-title-pill {
    height: 40px;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--branco);
    border: 1.5px solid rgba(92, 48, 32, 0.13);
    color: var(--marrom);
    font-size: 14px;
    font-weight: 700;
    box-shadow: inset 0 2px 4px rgba(92, 48, 32, 0.02);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-icon-btn,
.hamburger-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--creme-escuro);
    border: 1px solid rgba(92, 48, 32, 0.06);
    color: var(--marrom);
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(92, 48, 32, 0.1);
    transition: all 0.25s ease;
}

.header-icon-btn:hover,
.hamburger-btn:hover {
    background: var(--marrom);
    color: var(--creme);
    transform: translateY(-2px);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 24, 16, 0.45);
    backdrop-filter: blur(5px);
    z-index: 1450;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transicao-lenta);
}

.drawer-overlay.ativo {
    opacity: 1;
    visibility: visible;
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    z-index: 1500;
    background: var(--creme-claro);
    box-shadow: var(--sombra-xl);
    padding: var(--space-12) var(--space-6);
    transition: left var(--transicao-lenta);
    border-right: 1px solid rgba(92, 48, 32, 0.12);
    overflow-y: auto;
}

.nav-drawer.aberto {
    left: 0;
}

.drawer-brand {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: var(--space-10);
}

.drawer-brand .logo-tua {
    font-size: 2.5rem;
}

.drawer-brand .logo-pele {
    font-size: 1.8rem;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.drawer-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-full);
    color: var(--marrom);
    font-family: var(--fonte-corpo);
    font-size: var(--texto-md);
    font-weight: 700;
    transition: all var(--transicao-normal);
    text-decoration: none;
}

.drawer-nav a:hover,
.drawer-nav a.active {
    background: var(--marrom);
    color: var(--creme);
    transform: translateX(4px);
}

.cart-page-shell {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: 84px 16px 132px;
    flex: 1;
}

.cart-top-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 4px 0 18px;
}

.cart-top-pill {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 12px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(92, 48, 32, 0.1);
    box-shadow: 0 12px 26px rgba(92, 48, 32, 0.08);
}

.cart-top-pill i {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--marrom);
    color: var(--creme);
}

.cart-top-pill div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.pill-label {
    color: var(--texto-medio);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-top-pill strong {
    color: var(--marrom);
    font-size: 1.08rem;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.state-box,
.cart-panel {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(92, 48, 32, 0.1);
    box-shadow: 0 18px 44px rgba(92, 48, 32, 0.12);
    backdrop-filter: blur(10px);
}

.state-box {
    display: none;
    padding: clamp(30px, 5vw, 54px) 22px;
    text-align: center;
}

.state-box.show { display: block; }

.state-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--creme-escuro);
    color: var(--marrom);
    font-size: 1.7rem;
    box-shadow: inset 0 0 0 1px rgba(92, 48, 32, 0.08);
}

.state-box h2 {
    margin: 0 0 10px;
    color: var(--marrom);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.state-box p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--texto-medio);
}

.state-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.state-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.22s ease;
}

.state-btn.primary {
    background: var(--marrom);
    color: var(--creme);
    box-shadow: 0 12px 26px rgba(92, 48, 32, 0.18);
}

.state-btn.secondary {
    background: transparent;
    color: var(--marrom);
    border: 1.5px solid var(--marrom);
}

.state-btn:hover { transform: translateY(-2px); }

.cart-panel {
    overflow: hidden;
}

.cart-panel.is-hidden { display: none; }

.cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid rgba(92, 48, 32, 0.08);
    background: rgba(253, 248, 244, 0.5);
}

.cart-panel-header h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3.4vw, 2.3rem);
    color: var(--marrom);
}

.clear-selected-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(192, 57, 43, 0.08);
    color: var(--erro);
    border: 1px solid rgba(192, 57, 43, 0.18);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
    transition: all 0.22s ease;
}

.clear-selected-btn:hover {
    background: rgba(192, 57, 43, 0.14);
    transform: translateY(-1px);
}

.clear-selected-btn:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
}

.cart-items-list {
    display: grid;
}

.cart-item {
    display: grid;
    grid-template-columns: auto 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(92, 48, 32, 0.08);
    cursor: pointer;
    transition: background 0.22s ease;
}

.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: rgba(245, 234, 224, 0.45); }
.cart-item.is-invalid { opacity: 0.72; }

.item-check {
    width: 22px;
    height: 22px;
    accent-color: var(--marrom);
    cursor: pointer;
    flex: 0 0 auto;
}

.item-thumb {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    object-fit: cover;
    background: var(--creme-escuro);
    border: 1px solid rgba(92, 48, 32, 0.1);
    box-shadow: 0 12px 24px rgba(92, 48, 32, 0.11);
    pointer-events: none;
}

.item-main {
    min-width: 0;
    pointer-events: none;
}

.item-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    margin-bottom: 7px;
}

.item-title {
    margin: 0;
    min-width: 0;
    color: var(--texto-escuro);
    font-family: var(--fonte-corpo);
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(92, 48, 32, 0.08);
    color: var(--marrom);
    font-size: 0.68rem;
    font-weight: 900;
    white-space: nowrap;
}

.item-badge.invalid {
    background: rgba(192, 57, 43, 0.1);
    color: var(--erro);
}

.item-variant,
.item-delivery {
    min-width: 0;
    margin-bottom: 7px;
    color: var(--texto-medio);
    font-size: 0.8rem;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-bottom: 10px;
}

.item-price {
    min-width: 0;
    color: var(--marrom);
    font-size: 1rem;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-old-price {
    min-width: 0;
    color: var(--texto-suave);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: line-through;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    pointer-events: auto;
}

.qty-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: 16px;
    background: var(--creme-claro);
    border: 1px solid rgba(92, 48, 32, 0.1);
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--creme-escuro);
    color: var(--marrom);
    font-size: 16px;
    font-weight: 900;
    transition: all 0.18s ease;
}

.qty-btn:hover {
    background: var(--marrom);
    color: var(--creme);
}

.qty-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.qty-value {
    min-width: 28px;
    text-align: center;
    color: var(--texto-escuro);
    font-size: 0.9rem;
    font-weight: 900;
}

.remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    color: var(--texto-medio);
    font-size: 0.82rem;
    font-weight: 800;
    transition: color 0.18s ease;
}

.remove-btn:hover { color: var(--erro); }

.item-side {
    min-width: 122px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    text-align: right;
    pointer-events: none;
}

.item-total-label,
.item-frete {
    color: var(--texto-medio);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.item-total {
    max-width: 140px;
    color: var(--marrom);
    font-size: 1.02rem;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    background: rgba(253, 248, 244, 0.92);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(92, 48, 32, 0.12);
    box-shadow: 0 -14px 34px rgba(92, 48, 32, 0.12);
    transition: bottom 0.2s ease;
}

.cart-bottom-inner {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: 12px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bottom-left {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.select-all-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--marrom);
    font-size: 0.9rem;
    font-weight: 900;
    white-space: nowrap;
}

.select-all-wrap input {
    width: 22px;
    height: 22px;
    accent-color: var(--marrom);
    cursor: pointer;
}

.bottom-summary {
    min-width: 0;
}

.bottom-summary-label {
    margin-bottom: 3px;
    color: var(--texto-medio);
    font-size: 0.76rem;
    font-weight: 800;
}

.bottom-summary-value {
    max-width: 260px;
    color: var(--marrom);
    font-size: clamp(1.15rem, 3vw, 1.55rem);
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bottom-summary-meta {
    max-width: 100%;
    margin-top: 5px;
    color: var(--texto-medio);
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.continue-btn {
    flex: 0 0 auto;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--marrom), var(--marrom-medio));
    color: var(--creme);
    box-shadow: 0 14px 28px rgba(92, 48, 32, 0.22);
    font-size: 0.95rem;
    font-weight: 950;
    white-space: nowrap;
    transition: all 0.22s ease;
}

.continue-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(92, 48, 32, 0.28);
}

.continue-btn:disabled {
    opacity: 0.52;
    cursor: not-allowed;
    box-shadow: none;
}

.cart-footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 46px 0 120px;
    background: rgba(92, 48, 32, 0.95);
    color: var(--creme);
    text-align: center;
}

.cart-footer p,
.cart-footer span,
.cart-footer a {
    color: rgba(245, 234, 224, 0.88);
}

.cart-footer .footer-content {
    display: grid;
    gap: 12px;
    justify-items: center;
}

.cart-footer .auth-logo-texto .logo-tua,
.cart-footer .auth-logo-texto .logo-pele {
    color: var(--creme);
    -webkit-text-stroke-color: var(--creme);
}

.cart-footer .auth-logo-texto .logo-tua { font-size: 2.8rem; }
.cart-footer .auth-logo-texto .logo-pele { font-size: 2rem; }

.dev-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

#toast-container {
    position: fixed;
    top: 82px;
    left: 50%;
    z-index: 99999;
    width: min(calc(100vw - 28px), 440px);
    transform: translateX(-50%);
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.toast {
    width: 100%;
    padding: 13px 16px;
    border-radius: 18px;
    color: var(--creme);
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(44, 24, 16, 0.22);
    backdrop-filter: blur(10px);
    animation: toastSlide 3s ease forwards;
}

.toast.success { background: rgba(93, 138, 94, 0.96); }
.toast.error { background: rgba(192, 57, 43, 0.96); }
.toast.info { background: rgba(92, 48, 32, 0.96); }

@keyframes toastSlide {
    0% { opacity: 0; transform: translateY(-12px); }
    10%, 90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-12px); }
}

@media (max-width: 860px) {
    .cart-item {
        grid-template-columns: auto 84px minmax(0, 1fr);
    }

    .item-thumb {
        width: 84px;
        height: 84px;
    }

    .item-side {
        grid-column: 2 / 4;
        min-width: 0;
        align-items: flex-start;
        text-align: left;
        padding-left: 0;
    }
}

@media (max-width: 640px) {
    .cart-header {
        padding-inline: 12px;
        gap: 8px;
    }

    .auth-logo .logo-tua { font-size: 1.85rem; }
    .auth-logo .logo-pele { font-size: 1.34rem; }
    .auth-lema { display: none; }

    .page-title-pill {
        height: 38px;
        padding-inline: 12px;
        font-size: 0.82rem;
    }

    .header-icon-btn {
        display: none;
    }

    .cart-page-shell {
        padding: 78px 12px 146px;
    }

    .cart-top-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-top: 0;
    }

    .cart-top-pill {
        min-height: 58px;
        gap: 7px;
        padding: 9px 7px;
        border-radius: 16px;
    }

    .cart-top-pill i {
        width: 30px;
        height: 30px;
        font-size: 0.78rem;
    }

    .pill-label {
        font-size: 0.63rem;
    }

    .cart-top-pill strong {
        font-size: 0.78rem;
    }

    .cart-panel-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .clear-selected-btn {
        width: 100%;
    }

    .cart-item {
        grid-template-columns: auto 76px minmax(0, 1fr);
        gap: 10px;
        padding: 14px 12px;
    }

    .item-thumb {
        width: 76px;
        height: 76px;
        border-radius: 18px;
    }

    .item-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .item-actions {
        gap: 8px;
    }

    .remove-btn span {
        display: none;
    }

    .cart-bottom-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 10px 12px 14px;
    }

    .bottom-left {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .bottom-summary-value {
        max-width: 190px;
    }

    .continue-btn {
        width: 100%;
        min-height: 50px;
    }
}

@media (max-width: 390px) {
    .page-title-pill span {
        display: none;
    }

    .page-title-pill {
        width: 38px;
        padding: 0;
    }

    .cart-top-strip {
        gap: 5px;
    }

    .cart-top-pill {
        padding: 8px 5px;
    }

    .cart-top-pill i {
        display: none;
    }

    .pill-label {
        font-size: 0.6rem;
    }

    .cart-top-pill strong {
        font-size: 0.74rem;
    }

    .cart-item {
        grid-template-columns: auto 70px minmax(0, 1fr);
    }

    .item-thumb {
        width: 70px;
        height: 70px;
    }
}

/* ============================================================
   Switch Carrinho / Pagamentos pendentes
   ============================================================ */
.cart-section-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 250, 246, 0.92);
    border: 1px solid rgba(92, 48, 32, 0.12);
    box-shadow: 0 12px 30px rgba(92, 48, 32, 0.10);
    max-width: min(92vw, 520px);
}

.cart-section-tab {
    border: 0;
    background: transparent;
    color: var(--marrom);
    border-radius: 999px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    font-size: 0.88rem;
    cursor: pointer;
    min-height: 38px;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.cart-section-tab.active {
    background: var(--marrom);
    color: var(--creme);
    box-shadow: 0 10px 22px rgba(92, 48, 32, 0.22);
}

.cart-section-tab:not(.active):hover {
    background: rgba(92, 48, 32, 0.08);
    transform: translateY(-1px);
}

.pending-payments-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #C0392B;
    color: #fff;
    font-size: 0.72rem;
    line-height: 1;
}

.pending-payments-count[hidden] { display: none !important; }


.cart-body.pending-mode .cart-top-strip,
.cart-body.pending-mode #cartTopStrip,
.cart-body.pending-mode #cartBottomBar {
    display: none !important;
}

.cart-body.pending-mode .cart-page-shell {
    padding-bottom: 48px;
}

.cart-section-content[hidden],
.cart-section-content:not(.active) {
    display: none !important;
}

.pending-helper {
    color: rgba(92, 48, 32, 0.72);
    font-weight: 800;
    font-size: 0.82rem;
}

.pending-payments-list .cart-item {
    cursor: default;
}

.pending-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(192, 57, 43, 0.10);
    color: #A93428;
    font-weight: 900;
    font-size: .78rem;
}

.pending-countdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(92, 48, 32, 0.74);
    font-weight: 800;
    font-size: .78rem;
    margin-top: 8px;
}

.pending-side-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    min-width: 180px;
    pointer-events: auto;
}

.pending-payment-card .pending-pay-btn,
.pending-payment-card .pending-view-btn {
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.pending-pay-btn,
.pending-view-btn {
    border: 0;
    border-radius: 999px;
    padding: 11px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s ease, opacity .2s ease;
}

.pending-pay-btn {
    background: var(--marrom);
    color: var(--creme);
    box-shadow: 0 12px 24px rgba(92, 48, 32, .20);
}

.pending-view-btn {
    background: rgba(92, 48, 32, .08);
    color: var(--marrom);
}

.pending-pay-btn:hover,
.pending-view-btn:hover {
    transform: translateY(-1px);
}

.payment-return-alert {
    position: fixed;
    inset: 0;
    z-index: 25000;
    background: rgba(60, 32, 22, 0.32);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.payment-return-card {
    width: min(420px, 100%);
    border-radius: 28px;
    background: #fff8f2;
    border: 1px solid rgba(92, 48, 32, .12);
    box-shadow: 0 28px 70px rgba(92, 48, 32, .26);
    padding: 24px;
    color: var(--marrom);
    position: relative;
    text-align: center;
}

.payment-return-card .close-alert {
    position: absolute;
    right: 14px;
    top: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: rgba(92, 48, 32, .10);
    color: var(--marrom);
    font-weight: 900;
    cursor: pointer;
}

.payment-return-card i {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(192, 57, 43, .13);
    color: #C0392B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 12px;
}

.payment-return-card h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.payment-return-card p {
    margin: 0 0 18px;
    color: rgba(92, 48, 32, .78);
    line-height: 1.55;
}

.payment-return-card .alert-action {
    border: 0;
    border-radius: 999px;
    background: var(--marrom);
    color: var(--creme);
    padding: 12px 18px;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 760px) {
    .cart-header {
        align-items: center;
        gap: 8px;
    }

    .cart-section-switch {
        max-width: calc(100vw - 128px);
        overflow: hidden;
    }

    .cart-section-tab {
        padding: 9px 10px;
        font-size: .78rem;
        gap: 6px;
    }

    .cart-section-tab span {
        max-width: 92px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pending-side-actions {
        min-width: 0;
        width: 100%;
    }
}
