body.page-carrinho {
    background: #f7f5f1;
    color: var(--primary-color);
}

body.page-carrinho .carrinho-main {
    padding-top: 80px;
    min-height: 70vh;
}

.carrinho-hero {
    background: linear-gradient(145deg, var(--primary-color) 0%, #132038 50%, #1a2a44 100%);
    color: #faf8f5;
    padding: 3rem 0 2.5rem;
}

.carrinho-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 0.5rem;
}

.carrinho-hero p {
    color: rgba(250, 248, 245, 0.8);
    max-width: 36rem;
}

.carrinho-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    padding: 2.5rem 0 4rem;
    align-items: start;
}

.carrinho-card,
.carrinho-form-card {
    background: #fff;
    border: 1px solid rgba(12, 18, 32, 0.08);
    padding: 1.75rem;
}

.carrinho-card h2,
.carrinho-form-card h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
}

.carrinho-cover {
    margin: 0 0 1.25rem;
}

.carrinho-cover img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto;
    background: transparent;
}

.carrinho-cover figcaption {
    margin-top: 0.75rem;
    text-align: left;
    color: #666;
    font-size: 0.75rem;
    line-height: 1.4;
}

.carrinho-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(12, 18, 32, 0.08);
    margin-bottom: 1rem;
}

.carrinho-item h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.carrinho-item p,
.carrinho-empty {
    color: #555;
    font-size: 0.95rem;
}

.carrinho-price {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent-gold);
    white-space: nowrap;
}

.carrinho-total {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 600;
}

.carrinho-form-card label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--primary-color);
}

.carrinho-form-card .field {
    margin-bottom: 1.1rem;
}

.carrinho-form-card input {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(12, 18, 32, 0.18);
    border-radius: 4px;
    font: inherit;
    background: #fff;
    color: var(--primary-color);
}

.carrinho-form-card input:focus {
    outline: 2px solid rgba(184, 134, 11, 0.35);
    border-color: var(--accent-gold);
}

.carrinho-form-card .btn-primary {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
    letter-spacing: 0.04em;
}

.carrinho-form-card .btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.carrinho-pay-note {
    margin-top: 0.85rem;
    text-align: center;
    color: #666;
    font-size: 0.88rem;
    line-height: 1.45;
}

.carrinho-error {
    display: none;
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    background: rgba(180, 40, 40, 0.08);
    border: 1px solid rgba(180, 40, 40, 0.25);
    color: #8a1f1f;
    font-size: 0.92rem;
}

.carrinho-error.is-visible {
    display: block;
}

.carrinho-success {
    max-width: 560px;
    margin: 3rem auto 4rem;
    background: #fff;
    border: 1px solid rgba(184, 134, 11, 0.35);
    padding: 2.5rem 2rem;
    text-align: center;
}

.carrinho-success h1 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.carrinho-success p {
    color: #444;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

@media (max-width: 900px) {
    .carrinho-layout {
        grid-template-columns: 1fr;
    }
}
