@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Carrinho: folha independente no mesmo padrão do catálogo. */
.cp-cart-page {
    --cp-orange: #ff6800;
    --cp-orange-light: #ff9954;
    --cp-muted: #aaa;
    --cp-border: #ffffff16;
    margin: 0;
    color: #f2f2f2;
    background: #080808;
    font: 14px/1.6 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.cp-cart-page *,
.cp-cart-page *::before,
.cp-cart-page *::after {
    box-sizing: border-box;
}

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

.cp-cart-page a {
    color: inherit;
    text-decoration: none;
}

.cp-cart-page button,
.cp-cart-page input {
    font: inherit;
}

.cp-cart-page button,
.cp-cart-page summary {
    cursor: pointer;
}

.cp-cart-page button:disabled {
    cursor: default;
    opacity: .45;
}

.cp-cart-page img {
    display: block;
    max-width: 100%;
}

.cp-cart-page :focus-visible {
    outline: 2px solid var(--cp-orange-light);
    outline-offset: 4px;
}

.cp-cart-page ::selection {
    background: #a44300;
    color: #fff;
}

.cp-container {
    width: min(1240px, calc(100% - 80px));
    margin-inline: auto;
}

.cp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.cp-skip {
    position: absolute;
    top: 12px;
    left: 20px;
    z-index: 10;
    background: #fff;
    color: #111 !important;
    padding: 12px 20px;
    transform: translateY(-160%);
}

.cp-skip:focus {
    transform: translateY(0);
}

.cp-logo {
    width: 138px;
    height: 48px;
    object-fit: contain;
}

.cp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cp-orange-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
}

.cp-eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--cp-orange);
}

/* Lista e resumo. Sem valores fictícios: o atendimento informa os preços. */
.cp-cart-section {
    padding: 40px 0 64px;
    background: #111;
    border-top: 1px solid var(--cp-border);
}

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

.cp-cart-list {
    min-width: 0;
}

.cp-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.cp-list-heading h2 {
    font: 500 29px/1.2 'Outfit', sans-serif;
    letter-spacing: -.03em;
    margin: 8px 0 0;
}

.cp-list-heading h2 span {
    display: inline-block;
    vertical-align: middle;
    color: var(--cp-orange-light);
    background: #ff680016;
    border: 1px solid #ff680028;
    border-radius: 7px;
    padding: 4px 8px;
    margin-left: 5px;
    font: 600 12px 'DM Sans', sans-serif;
}

.cp-clear-button {
    padding: 8px 0;
    border: 0;
    background: none;
    color: #a9a9a9;
    font-size: 11px !important;
    white-space: nowrap;
}

.cp-clear-button:hover {
    color: #ffb3a3;
}

.cp-list-columns {
    display: grid;
    grid-template-columns: 1fr 124px;
    color: #888;
    padding: 0 20px 12px;
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: .12em;
}

.cp-list-columns span:last-child {
    text-align: center;
}

.cp-cart-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 124px;
    gap: 21px;
    align-items: center;
    padding: 21px;
    background: #191919;
    border: 1px solid #ffffff16;
    border-radius: 13px;
    margin-bottom: 13px;
    transition: border-color .2s;
}

.cp-cart-item:hover {
    border-color: #ff68005c;
}

.cp-item-image {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #f3f3f1;
    border-radius: 9px;
}

.cp-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.cp-item-image>span {
    color: #555;
    text-align: center;
    font-size: 10px;
}

.cp-category {
    color: var(--cp-orange-light);
    font-size: 10px;
    font-weight: 600;
}

.cp-item-content {
    min-width: 0;
}

.cp-item-content h3 {
    font: 500 17px/1.4 'Outfit', sans-serif;
    margin: 7px 0;
    overflow-wrap: anywhere;
}

.cp-code {
    color: #999;
    font-size: 11px;
    margin: 0;
    overflow-wrap: anywhere;
}

.cp-description {
    margin-top: 12px;
}

.cp-description summary {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #b4b4b4;
    list-style: none;
    font-size: 10px;
}

.cp-description summary::-webkit-details-marker {
    display: none;
}

.cp-description summary span {
    color: var(--cp-orange-light);
    font-size: 14px;
}

.cp-description[open] summary span {
    transform: rotate(45deg);
}

.cp-description p {
    color: #aaa;
    font-size: 12px;
    line-height: 1.8;
    margin: 12px 0 0;
    overflow-wrap: anywhere;
}

.cp-item-actions {
    align-self: start;
    padding-top: 12px;
    text-align: center;
}

.cp-item-actions>label {
    display: none;
}

.cp-quantity {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    min-height: 42px;
    border: 1px solid #494949;
    border-radius: 7px;
    background: #111;
    overflow: hidden;
}

.cp-quantity button {
    color: #ddd;
    background: none;
    border: 0;
    padding: 0;
    font-size: 18px;
}

.cp-quantity button:hover:not(:disabled) {
    color: var(--cp-orange-light);
    background: #ff68000c;
}

.cp-quantity input {
    min-width: 0;
    width: 100%;
    text-align: center;
    color: #f2f2f2;
    border: 0;
    background: transparent;
    font-size: 13px;
    appearance: textfield;
    -moz-appearance: textfield;
}

.cp-quantity input::-webkit-inner-spin-button,
.cp-quantity input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

.cp-remove {
    display: inline-block;
    padding: 9px 10px 0;
    border: 0;
    color: #aaa;
    background: none;
    font-size: 10px !important;
}

.cp-remove:hover {
    color: #ffb3a3;
}

.cp-list-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 13px;
}

.cp-back-link {
    color: #c2c2c2 !important;
    font-size: 12px;
}

.cp-save {
    color: var(--cp-orange-light);
    background: transparent;
    border: 1px solid #ff680060;
    border-radius: 7px;
    padding: 10px 14px;
    font-size: 11px !important;
}

.cp-save:hover {
    background: #ff680010;
}

.cp-save-hint {
    color: #929292;
    font-size: 11px;
    margin: 18px 0 0;
}

.cp-pdf-actions {
    display: grid;
    gap: 10px;
}

.cp-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 47px;
    padding: 12px 17px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.cp-cart-page .cp-button-primary {
    color: #17100b;
    background: var(--cp-orange);
}

.cp-button-primary:hover:not(:disabled) {
    background: #ff8b3d;
}

.cp-button-outline {
    background: #ffffff03;
    border-color: #555;
    color: #e3e3e3;
}

.cp-button-outline:hover:not(:disabled) {
    border-color: var(--cp-orange);
}

.cp-button>span {
    font-size: 19px;
    line-height: 1;
}

.cp-pdf-wait,
.cp-pdf-limit {
    color: #ffbd86;
    font-size: 11px;
    line-height: 1.7;
    background: #ff68000b;
    border-left: 2px solid #ff6800;
    padding: 10px 12px;
}

.cp-pdf-wait [data-countdown] {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cp-pdf-result {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    background: #17291e;
    border: 1px solid #346343;
    color: #bdeacb;
    font-size: 11px;
}

.cp-pdf-result p {
    margin: 0 0 7px;
}

.cp-pdf-result a {
    display: block;
    padding: 5px 0;
    text-decoration: underline;
}

.cp-feedback {
    background: #19291e;
    color: #b7ecc4;
    border: 1px solid #455144;
    border-radius: 9px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 13px;
}

.cp-feedback.is-error {
    background: #331a17;
    color: #ffd7ce;
    border-color: #824638;
}

.cp-notice {
    color: #ffbd86;
    font-size: 12px;
}

.cp-empty-cart {
    text-align: center;
    padding: 50px 24px 60px;
    border: 1px solid #ffffff16;
    border-radius: 17px;
    background: radial-gradient(ellipse at 50% 0, #ff68000d, transparent 60%), #151515;
}

.cp-empty-cart h2 {
    font: 500 clamp(29px, 4vw, 43px)/1.1 'Outfit', sans-serif;
    letter-spacing: -.03em;
    margin: 18px 0;
}

.cp-empty-cart p {
    max-width: 410px;
    margin: 0 auto 26px;
    font-size: 13px;
    color: #aaa;
    line-height: 1.85;
}

.cp-pdf-dialog {
    width: min(950px, calc(100% - 32px));
    max-height: 90vh;
    padding: 18px;
    background: #191919;
    color: #eee;
    border: 1px solid #555;
    border-radius: 13px;
}

.cp-pdf-dialog::backdrop {
    background: #000b;
}

.cp-pdf-dialog>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 14px;
}

.cp-pdf-dialog h2 {
    font: 500 22px 'Outfit', sans-serif;
    margin: 0;
}

.cp-pdf-dialog button {
    width: 40px;
    height: 40px;
    color: #eee;
    background: #292929;
    border: 1px solid #555;
    border-radius: 7px;
    font-size: 25px;
}

.cp-pdf-dialog iframe {
    display: block;
    width: 100%;
    height: 65vh;
    border: 0;
    background: #eee;
}

.cp-pdf-dialog p {
    margin: 12px 0 0;
    font-size: 12px;
    color: #bbb;
}

.cp-pdf-dialog a {
    color: var(--cp-orange-light);
    text-decoration: underline;
}

.cp-footer {
    border-top: 1px solid var(--cp-border);
    padding-top: 36px;
}

.cp-footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 35px;
    padding-bottom: 30px;
}

.cp-footer-main p {
    color: #999;
    font-size: 12px;
    line-height: 1.8;
    margin: 0;
}

.cp-footer-main nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    color: #bbb;
    font-size: 12px;
}

.cp-footer-bottom {
    border-top: 1px solid var(--cp-border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
    font-size: 10px;
    color: #939393;
}

@media (max-width: 1100px) {
    .cp-container {
        width: calc(100% - 48px);
    }

    .cp-cart-layout {
        grid-template-columns: minmax(0, 1fr) 285px;
        gap: 23px;
    }

    .cp-cart-item {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 17px;
        padding: 18px;
    }

    .cp-item-actions {
        grid-column: 2;
        display: flex;
        align-items: center;
        gap: 18px;
        padding-top: 0;
        text-align: left;
    }

    .cp-quantity {
        width: 132px;
        flex-shrink: 0;
    }

    .cp-remove {
        padding: 8px 0;
    }

    .cp-item-content h3 {
        font-size: 16px;
    }

    .cp-list-columns {
        display: none;
    }

    .cp-list-heading {
        align-items: flex-start;
    }

    .cp-list-heading h2 {
        font-size: 26px;
    }
}

@media (max-width: 820px) {
    .cp-cart-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cp-cart-item {
        grid-template-columns: 100px minmax(0, 1fr) 132px;
    }

    .cp-item-actions {
        grid-column: auto;
        display: block;
        text-align: center;
    }

    .cp-pdf-actions {
        grid-template-columns: 1fr 1fr;
    }

    .cp-logo {
        width: 116px;
    }

    .cp-footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .cp-footer-main nav {
        grid-column: 1 / -1;
    }
}

@media (max-width: 580px) {
    .cp-container {
        width: calc(100% - 32px);
    }

    .cp-cart-section {
        padding: 28px 0 40px;
    }

    .cp-list-heading {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }

    .cp-list-heading h2 {
        font-size: 25px;
    }

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

    .cp-item-image {
        padding: 7px;
        align-self: start;
        margin-top: 4px;
    }

    .cp-item-content h3 {
        font-size: 15px;
    }

    .cp-item-actions {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-top: 14px;
        border-top: 1px solid #ffffff16;
    }

    .cp-item-actions>label {
        display: block;
        font-size: 11px;
        color: #999;
    }

    .cp-quantity {
        width: 130px;
        grid-template-columns: 35px minmax(0, 1fr) 35px;
        min-height: 44px;
    }

    .cp-quantity input {
        font-size: 16px;
    }

    .cp-remove {
        font-size: 11px !important;
    }

    .cp-list-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cp-save {
        padding: 13px;
    }

    .cp-pdf-actions {
        grid-template-columns: 1fr;
    }

    .cp-button {
        min-height: 48px;
    }

    .cp-footer-main {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .cp-footer-main nav {
        gap: 25px;
    }
}

@media (max-width: 350px) {
    .cp-item-actions {
        flex-wrap: wrap;
    }

    .cp-item-actions>label {
        width: 100%;
    }
}

@media (pointer: coarse) {

    .cp-remove,
    .cp-clear-button {
        min-height: 44px;
    }

    .cp-quantity button {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-cart-item {
        transition: none;
    }
}

/* Carrinho simples: apenas seleção e ações, sem hero, filtros ou coluna lateral. */
.cp-cart-page main {
    min-height: 55vh;
}

.cp-cart-heading {
    padding: 28px 0 25px;
}

.cp-cart-heading h1 {
    font: 600 38px/1.15 'Outfit', sans-serif;
    letter-spacing: -.03em;
    margin: 18px 0 8px;
}

.cp-cart-heading p {
    color: #aaa;
    font-size: 13px;
    margin: 0;
}

.cp-cart-layout {
    display: block;
}

.cp-cart-section {
    padding-top: 25px;
}

.cp-cart-item {
    grid-template-columns: 112px minmax(0, 1fr) 132px;
}

.cp-item-actions {
    grid-column: auto;
    display: block;
    text-align: center;
    padding-top: 6px;
    border: 0;
}

.cp-item-actions>label {
    display: none;
}

.cp-order-actions {
    border-top: 1px solid #ffffff20;
    margin-top: 28px;
    padding-top: 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px 25px;
    align-items: center;
}

.cp-order-total {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #aaa;
    font-size: 12px;
}

.cp-order-total strong {
    font-size: 16px;
    color: #eee;
    font-weight: 500;
}

.cp-pdf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cp-contact-note {
    grid-column: 1 / -1;
    color: #999;
    font-size: 11px;
    margin: 0;
}

.cp-contact-note a {
    color: #ff9954;
}

.cp-pdf-wait,
.cp-pdf-limit,
.cp-pdf-result {
    grid-column: 1 / -1;
    margin: 0;
}

.cp-empty-cart {
    padding: 55px 20px;
    background: none;
    border: 0;
    border-radius: 0;
}

.cp-empty-cart h2 {
    font: 500 26px/1.25 'Outfit', sans-serif;
    margin: 0 0 12px;
}

.cp-empty-cart p {
    max-width: 430px;
    margin-bottom: 24px;
}

@media (max-width: 680px) {
    .cp-cart-heading h1 {
        font-size: 31px;
    }

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

    .cp-item-actions {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-top: 14px;
        border-top: 1px solid #ffffff16;
    }

    .cp-item-actions>label {
        display: block;
        font-size: 11px;
        color: #999;
    }

    .cp-order-actions {
        grid-template-columns: 1fr;
    }

    .cp-pdf-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cp-button {
        padding-inline: 12px;
    }
}

@media (max-width: 400px) {
    .cp-pdf-actions {
        grid-template-columns: 1fr;
    }
}