@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ink: #10212b;
    --muted: #647481;
    --line: #dbe7ea;
    --surface: #f7fbfa;
    --panel: #ffffff;
    --teal: #04766d;
    --teal-2: #13a594;
    --coral: #ef6a55;
    --shadow: 0 24px 70px rgba(16, 33, 43, .12);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(247, 201, 72, .22), transparent 24rem),
        radial-gradient(circle at 88% 14%, rgba(4, 118, 109, .18), transparent 26rem),
        linear-gradient(135deg, #f8fcfb 0%, #eef8f5 62%, #fff9e8 100%);
    font-family: Inter, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.cart-topbar {
    width: min(1180px, calc(100% - 32px));
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 auto;
}

.brand,
.cart-topbar nav {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand strong {
    font-size: 1.15rem;
}

.cart-topbar nav a {
    color: var(--muted);
    font-size: .92rem;
    font-weight: 800;
}

.cart-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 48px;
}

.cart-header,
.cart-items,
.cart-summary {
    border: 1px solid rgba(219, 231, 234, .92);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.cart-header {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
    padding: clamp(28px, 5vw, 52px);
    text-align: center;
}

.eyebrow {
    width: fit-content;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-self: center;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--teal);
    background: #e6f6f3;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.cart-header h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.cart-header p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.7;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .42fr);
    gap: 22px;
    align-items: start;
}

.cart-items,
.cart-summary {
    padding: 18px;
}

.cart-item {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr) 86px 42px;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.cart-item + .cart-item {
    margin-top: 12px;
}

.cart-item img {
    width: 94px;
    height: 94px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item strong,
.cart-item span {
    display: block;
}

.cart-item strong {
    margin-bottom: 6px;
    line-height: 1.35;
}

.cart-item span {
    color: var(--teal);
    font-weight: 900;
}

.form-control {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

textarea.form-control {
    min-height: 92px;
    resize: vertical;
    padding-top: 12px;
}

.remove-button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(239, 106, 85, .22);
    border-radius: 8px;
    color: var(--coral);
    background: #fff;
    cursor: pointer;
}

.cart-summary {
    position: sticky;
    top: 18px;
}

.cart-summary h2 {
    margin: 0 0 14px;
    font-size: 1.28rem;
}

.customer-card {
    margin-bottom: 16px;
}

.customer-card-inner {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.customer-card-inner.is-warning {
    border-color: rgba(239, 106, 85, .28);
    background: #fff7f5;
}

.customer-card-inner span {
    color: var(--teal);
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-card-inner strong {
    line-height: 1.35;
}

.customer-card-inner p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.cart-form {
    display: grid;
    gap: 14px;
}

.cart-form label {
    display: grid;
    gap: 7px;
    font-size: .88rem;
    font-weight: 900;
}

.cart-form textarea::placeholder {
    color: #9aa8b2;
    font-weight: 500;
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.cart-total span {
    color: var(--muted);
    font-weight: 800;
}

.cart-total strong {
    color: var(--teal);
    font-size: 1.45rem;
    font-weight: 900;
}

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--teal-2));
    box-shadow: 0 14px 28px rgba(4, 118, 109, .18);
}

.btn-secondary {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(4, 118, 109, .18);
    border-radius: 8px;
    padding: 0 14px;
    color: var(--teal);
    background: #fff;
    font-weight: 900;
}

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

.cart-status {
    min-height: 24px;
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.empty-cart {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 38px 18px;
    text-align: center;
}

.empty-cart i {
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    color: var(--teal);
    background: #e6f6f3;
    font-size: 1.35rem;
}

.empty-cart p {
    margin: 0;
    color: var(--muted);
}

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

    .cart-summary {
        position: static;
    }

    .cart-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 560px) {
    .cart-topbar {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 14px 0;
    }

    .cart-topbar,
    .cart-page {
        width: min(100% - 20px, 1180px);
    }
}

/* Visual da loja — 29/10/2026. A sacola conserva todos os formulários. */
body {
    background: #f8faf9;
}

.cart-page {
    width: min(1240px, calc(100% - 48px));
    margin-top: 28px;
    margin-bottom: 64px;
}

.cart-header {
    gap: 10px;
    padding: 24px 28px;
    text-align: left;
    border-radius: 10px;
    border-color: #e4eae7;
    box-shadow: none;
}

.cart-header .eyebrow {
    justify-self: start;
    border-radius: 5px;
    letter-spacing: .04em;
}

.cart-header h1 {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.cart-header p {
    margin: 0;
    max-width: 68ch;
    font-size: .92rem;
}

.cart-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .6fr);
    gap: 24px;
}

.cart-items,
.cart-summary {
    min-width: 0;
    border-color: #e4eae7;
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(16, 33, 43, .035);
}

.cart-items {
    padding: 8px 20px;
}

.cart-item {
    grid-template-columns: 80px minmax(0, 1fr) 76px 72px;
    gap: 14px;
    padding: 18px 0;
    border: 0;
    border-radius: 0;
    background: #fff;
}

.cart-item + .cart-item {
    margin: 0;
    border-top: 1px solid #edf1ee;
}

.cart-item img {
    width: 80px;
    height: 80px;
    padding: 4px;
    aspect-ratio: 1;
    object-fit: contain;
    border: 1px solid #f0f3f1;
    border-radius: 7px;
    background: #fff;
}

.cart-item strong {
    font-size: .9rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.cart-item span {
    font-size: .94rem;
    font-weight: 800;
}

.cart-summary {
    position: static;
    padding: 24px;
}

.cart-summary h2 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    letter-spacing: -.02em;
}

.cart-form + .cart-form,
.cart-summary > #couponForm {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #e9eeeb;
}

.cart-form label {
    gap: 7px;
    font-size: .8rem;
    font-weight: 700;
}

.cart-page .form-control {
    min-width: 0;
    min-height: 44px;
    border-color: #dce5df;
    border-radius: 6px;
    font-size: .9rem;
}

.cart-page .form-control:focus-visible {
    border-color: var(--teal);
    outline: 3px solid rgba(4, 118, 109, .13);
}

.cart-page .btn {
    min-height: 46px;
    border-radius: 6px;
    font-size: .88rem;
    font-weight: 700;
}

.cart-page .btn-primary {
    background: var(--teal);
    box-shadow: 0 3px 9px rgba(4, 118, 109, .12);
}

.cart-form > .btn:not(.btn-primary),
.cart-summary > #chooseMore {
    border: 1px solid #c4dcd2;
    color: var(--teal);
    background: #f6fbf8;
}

.cart-summary > #chooseMore {
    width: 100%;
    margin-top: 16px;
}

.cart-page .remove-button,
.cart-item > button {
    min-height: 44px;
    border: 1px solid;
    border-color: #f3d9d2;
    border-radius: 6px;
    color: #c44832;
    background: #fff8f6;
    font: inherit;
    font-size: .75rem;
    cursor: pointer;
}

.cart-page :is(button, a):focus-visible {
    outline: 3px solid #f7c948;
    outline-offset: 3px;
}

.cart-page [hidden] {
    display: none !important;
}

@media (max-width: 1000px) {
    .cart-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .cart-page {
        width: calc(100% - 24px);
        margin-top: 16px;
    }

    .cart-header,
    .cart-summary {
        padding: 20px;
    }

    .cart-items {
        padding-inline: 14px;
    }

    .cart-item {
        grid-template-columns: 64px minmax(0, 1fr) 64px;
        column-gap: 10px;
        row-gap: 8px;
    }

    .cart-item img {
        grid-row: 1 / span 2;
        width: 64px;
        height: 64px;
    }

    .cart-item > .form-control {
        grid-column: 2;
        grid-row: 2;
        width: 76px;
    }

    .cart-item .remove-button,
    .cart-item > button {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}
