/*
 * PerfilFerros — Carrinho
 * Layout 2 colunas: items | summary+form
 */

:root {
    --pf-primary:   #0057A6;
    --pf-secondary: #003352;
    --pf-tertiary:  #00A3E0;
}

/* ── containers ─────────────────────────────────────────── */
.pf-pg-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ── page hero ──────────────────────────────────────────── */
.pf-page-hero {
    background: linear-gradient(135deg, #003352 0%, #0057A6 100%);
    border-bottom: 3px solid #00A3E0;
    padding: 32px 0;
}
.pf-page-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.pf-pg-eyebrow {
    color: #00A3E0;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 6px;
}
.pf-pg-title {
    color: #fff;
    font-family: 'Prompt', sans-serif;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    margin: 0;
}
.pf-pg-accent { color: #00A3E0; }
.pf-breadcrumb {
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.50);
    font-size: 12.5px;
}
.pf-breadcrumb a { color: rgba(255,255,255,.65); text-decoration: none; }
.pf-breadcrumb a:hover { color: #00A3E0; }

/* ── main layout ────────────────────────────────────────── */
.pf-cart-main {
    padding-top: 40px;
    padding-bottom: 64px;
}

/* ── 2-col layout ───────────────────────────────────────── */
.pf-cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.pf-cart-left  { min-width: 0; }
.pf-cart-right { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }

/* ── intro text ─────────────────────────────────────────── */
.pf-cart-intro {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 700px;
}

/* ── cart table ─────────────────────────────────────────── */
.pf-cart-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e8edf2;
    border-top: 3px solid var(--pf-primary);
    -webkit-overflow-scrolling: touch;
}
.pf-cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 540px;
}
.pf-cth {
    background: #f5f8fb;
    color: var(--pf-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    padding: 11px 14px;
    border-bottom: 2px solid #e8edf2;
    text-align: left;
    white-space: nowrap;
}
.pf-cth--c { text-align: center; }

.pf-cart-row {
    border-bottom: 1px solid #f0f4f8;
    transition: background .12s;
}
.pf-cart-row:last-child { border-bottom: none; }
.pf-cart-row:hover { background: #f9fbfd; }

.pf-ctd {
    padding: 12px 14px;
    vertical-align: middle;
}
.pf-ctd--img   { width: 80px; padding: 8px 14px; }
.pf-ctd--name  { }
.pf-ctd--c     { text-align: center; white-space: nowrap; }

/* ── product image ──────────────────────────────────────── */
.pf-cart-img {
    width: 64px; height: 64px;
    object-fit: contain;
    background: #f5f8fb;
    border: 1px solid #e8edf2;
    padding: 4px;
    display: block;
}
.pf-cart-img--empty {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    background: #f5f8fb;
    border: 1px solid #e8edf2;
}

/* ── product info ───────────────────────────────────────── */
.pf-cart-name {
    color: var(--pf-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.4;
    margin-bottom: 4px;
}
.pf-cart-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}
.pf-cart-attr-chip {
    display: inline-block;
    padding: 2px 8px;
    background: #eef4fb;
    color: var(--pf-primary);
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    border: 1px solid #d0e3f5;
}
.pf-cart-sku {
    color: #8a97a8;
    font-size: 11px;
    font-weight: 400;
}

/* ── price cells ────────────────────────────────────────── */
.pf-cart-price-unit {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    display: block;
}
.pf-cart-price-unit-label {
    display: block;
    font-size: 11px;
    color: #9aa5b4;
    font-weight: 400;
}
.pf-cart-subtotal {
    font-size: 13px;
    font-weight: 700;
    color: var(--pf-secondary);
}
.pf-cart-price-na {
    color: #bbb;
    font-size: 13px;
}

/* ── quantity stepper ───────────────────────────────────── */
.pf-cart-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1dae3;
    overflow: hidden;
}
.pf-cart-qty-btn {
    width: 28px; height: 34px;
    background: #f5f8fb;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
    line-height: 1;
}
.pf-cart-qty-btn:hover { background: var(--pf-primary); color: #fff; }
.pf-cart-qty-input {
    width: 52px; height: 34px;
    text-align: center;
    border: none;
    border-left: 1px solid #d1dae3;
    border-right: 1px solid #d1dae3;
    font-family: 'Prompt', sans-serif;
    font-size: 14px; color: #333;
    outline: none;
    -moz-appearance: textfield;
}
.pf-cart-qty-input::-webkit-outer-spin-button,
.pf-cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── remove button ──────────────────────────────────────── */
.pf-cart-remove {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 32px; height: 32px;
    color: #e53e3e;
    background: rgba(229,62,62,.07);
    border: 1px solid rgba(229,62,62,.2);
    text-decoration: none;
    transition: background .2s, color .2s;
}
.pf-cart-remove:hover { background: #e53e3e; color: #fff; }

/* ── footer bar ─────────────────────────────────────────── */
.pf-cart-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 0;
    gap: 12px;
}
.pf-cart-continue-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 20px;
    background: #fff;
    color: var(--pf-secondary);
    font-size: 13px; font-weight: 600;
    text-decoration: none;
    border: 1.5px solid #d1dae3;
    transition: border-color .2s, background .2s, color .2s;
}
.pf-cart-continue-btn:hover { border-color: var(--pf-tertiary); color: var(--pf-primary); background: #f0f7ff; }
.pf-cart-item-count { color: #8a97a8; font-size: 12.5px; }


/*
    Vendedor Atribuído 
*/
.pf-assigned-seller {
    margin-top: 16px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e8edf2;
    border-left: 3px solid var(--pf-primary);
}
.pf-assigned-seller__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.pf-assigned-seller__head span {
    color: #5a7a9a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.pf-assigned-seller__head strong {
    color: var(--pf-secondary);
    font-size: 15px;
    text-align: right;
}
.pf-assigned-seller__contacts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.pf-assigned-seller__contacts a,
.pf-assigned-seller__contacts div {
    min-width: 0;
    padding: 10px 12px;
    background: #f9fbfd;
    border: 1px solid #edf2f7;
    color: var(--pf-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.pf-assigned-seller__contacts a:hover {
    border-color: var(--pf-primary);
    color: var(--pf-primary);
}
.pf-assigned-seller__contacts span {
    display: block;
    margin-bottom: 3px;
    color: #7a8fa8;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.pf-assigned-seller p {
    margin: 0;
    color: #6b7a8d;
    font-size: 13px;
    line-height: 1.5;
}

/* ── empty state ────────────────────────────────────────── */
.pf-cart-empty {
    display: flex; flex-direction: column; align-items: center;
    padding: 72px 20px;
    background: #fff;
    border: 1px solid #e8edf2;
    border-top: 3px solid var(--pf-primary);
    text-align: center;
    color: #6b7a8d;
}
.pf-cart-empty svg { margin-bottom: 18px; }
.pf-cart-empty p   { font-size: 15px; margin: 0 0 24px; }
.pf-cart-select-btn {
    display: inline-flex; align-items: center;
    padding: 11px 36px 11px 28px;
    background: var(--pf-primary); color: #fff;
    font-size: 14px; font-weight: 600;
    text-decoration: none;
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
    transition: background .2s;
}
.pf-cart-select-btn:hover { background: var(--pf-tertiary); }

/* ── totals card ────────────────────────────────────────── */
.pf-cart-totals-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-top: 3px solid var(--pf-primary);
    padding: 20px 22px;
}
.pf-cart-totals-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--pf-secondary);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 16px;
}
.pf-totals-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: #444;
    padding: 7px 0;
}
.pf-totals-row--discount {
    flex-wrap: wrap;
    align-items: flex-start;
}
.pf-totals-row--discount > span:first-child {
    padding-top: 6px;
}
.pf-totals-row--total {
    font-size: 16px;
    font-weight: 700;
    color: var(--pf-secondary);
}
.pf-frete-label { color: #888; font-style: italic; font-size: 12px; }
.pf-totals-divider {
    border: none;
    border-top: 1px solid #e8edf2;
    margin: 6px 0;
}
.pf-totals-note {
    font-size: 10.5px;
    color: #aaa;
    margin: 12px 0 0;
    line-height: 1.5;
}

/* ── discount row ───────────────────────────────────────── */
.pf-discount-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.pf-discount-input {
    width: 54px; height: 30px;
    text-align: center;
    border: 1px solid #d1dae3;
    font-family: 'Prompt', sans-serif;
    font-size: 13px; color: #333;
    outline: none;
    padding: 0 4px;
    -moz-appearance: textfield;
    transition: border-color .15s;
}
.pf-discount-input::-webkit-outer-spin-button,
.pf-discount-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pf-discount-input:focus { border-color: var(--pf-tertiary); }
.pf-discount-pct-label { font-size: 12px; color: #888; }
.pf-discount-value { font-size: 12px; color: #2d8a4e; font-weight: 600; white-space: nowrap; }

/* ── form card ──────────────────────────────────────────── */
.pf-cart-form-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-top: 3px solid var(--pf-tertiary);
    padding: 22px 22px;
}
.pf-cart-form-intro {
    color: var(--pf-secondary);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 16px;
}
.pf-cart-quick-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.pf-cart-quick-actions .pf-ccard-btn {
    flex: 1;
    padding: 9px 12px;
}
.pf-cart-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.pf-inline-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pf-inline-field label {
    color: #5a7a9a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.pf-inline-field input {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d1dae3;
    font-family: 'Prompt', sans-serif;
    font-size: 13px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color .15s;
}
.pf-inline-field input:focus { border-color: var(--pf-tertiary); }
.pf-min-alert {
    margin-top: 12px;
    padding: 10px 12px;
    background: #fff8e6;
    border-left: 3px solid #d68a00;
    color: #7a5200;
    font-size: 12px;
    line-height: 1.5;
}
.pf-recebimento-wrap {
    border: 1px solid #e1e9f0;
    background: #f8fbfd;
    padding: 14px;
    margin-bottom: 14px;
}
.pf-recebimento-title {
    color: var(--pf-secondary);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}
.pf-recebimento-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.pf-rec-option {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #d1dae3;
    background: #fff;
    color: #33485d;
    font-size: 16.5px;
    font-weight: 400;
    cursor: pointer;
}
.pf-rec-option input { margin: 0; }
.pf-rec-panel { margin-top: 8px; }
.pf-rec-label {
    display: block;
    color: #5a7a9a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.pf-delivery-msg {
    display: none;
    margin: 8px 0 12px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    border-left: 3px solid #d1dae3;
    background: #fff;
    color: #5a6b7e;
}
.pf-delivery-msg:not(:empty) { display: block; }
.pf-delivery-msg a {
    color: var(--pf-primary);
    font-weight: 700;
}
.pf-delivery-msg--ok {
    border-color: #1a7a40;
    background: #f0faf4;
    color: #1a5c33;
}
.pf-delivery-msg--warn {
    border-color: #d68a00;
    background: #fff8e6;
    color: #7a5200;
}
.pf-delivery-msg--error {
    border-color: #c0392b;
    background: #fff1f0;
    color: #8a1f16;
}
.pf-form-enviar select,
.pf-form-enviar textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1dae3;
    border-radius: 0;
    font-family: 'Prompt', sans-serif;
    font-size: 13.5px;
    color: #333;
    background: #fff;
    outline: none;
    margin-bottom: 12px;
    display: block;
    transition: border-color .15s;
}
.pf-form-enviar select:focus,
.pf-form-enviar textarea:focus { border-color: var(--pf-tertiary); }
.pf-form-enviar textarea { min-height: 100px; resize: vertical; }
.pf-cart-form-card .form-orcamento input[type=text],
.pf-cart-form-card .form-orcamento select,
.pf-cart-form-card .form-orcamento textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1dae3;
    border-radius: 0;
    font-family: 'Prompt', sans-serif;
    font-size: 13.5px; color: #333;
    background: #fff;
    outline: none;
    margin-bottom: 12px;
    display: block;
    -webkit-appearance: none;
    transition: border-color .15s;
}
.pf-cart-form-card .form-orcamento input[type=text]:focus,
.pf-cart-form-card .form-orcamento select:focus,
.pf-cart-form-card .form-orcamento textarea:focus { border-color: var(--pf-tertiary); }
.pf-cart-form-card .form-orcamento textarea { height: 100px; resize: vertical; }
.pf-cart-form-card .btEnviar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; height: 44px;
    background: var(--pf-primary); color: #fff;
    font-family: 'Prompt', sans-serif;
    font-size: 14px; font-weight: 600;
    border: none; cursor: pointer;
    text-decoration: none;
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
    transition: background .2s;
}
.pf-cart-form-card .btEnviar:hover { background: var(--pf-tertiary); }
.pf-cart-form-card .btEnviar:disabled { opacity: .65; cursor: default; }

/* ── Anexo (proposta do concorrente) ── */
.pf-anexo-wrap { margin-bottom: 14px; }
.pf-anexo-upload-form {
    margin: 14px 0 16px;
    padding: 14px;
    border: 1px solid #e4ebf2;
    background: #f9fbfd;
}
.pf-anexo-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #5a7a9a;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}
.pf-file-drop {
    position: relative;
    border: 2px dashed #d1dae3;
    border-radius: 8px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: #f9fbfd;
}
.pf-file-drop:hover       { border-color: var(--pf-primary); background: #f0f6ff; }
.pf-file-drop--selected   { border-color: #1a7a40; background: #f0faf4; }
.pf-file-input {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}
.pf-file-text { font-size: 13px; color: #5a7a9a; line-height: 1.4; }
.pf-file-text small { color: #9aafbc; font-size: 11px; }
.pf-anexo-hint { font-size: 12px; color: #7a8fa8; margin: 6px 0 0; font-style: italic; }
.pf-anexo-current {
    margin: 0 0 10px;
    font-size: 12.5px;
    color: #5a6b7e;
}
.pf-anexo-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--pf-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.pf-anexo-link:hover { text-decoration: underline; }
.pf-upload-btn {
    width: 100%;
    min-height: 38px;
    background: #fff;
}

/* ============================================================
   LISTA DE CARRINHOS (index)
   ============================================================ */

/* ── cabeçalho da listagem ──────────────────────────────── */
.pf-clist-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}
.pf-clist-title {
    font-family: 'Prompt', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--pf-secondary);
    margin: 0 0 4px;
}
.pf-clist-sub {
    color: #7a8fa8;
    font-size: 13px;
    margin: 0;
}

/* ── form novo carrinho ────────────────────────────────── */
.pf-novo-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pf-novo-input {
    height: 38px;
    padding: 0 12px;
    border: 1.5px solid #d1dae3;
    font-family: 'Prompt', sans-serif;
    font-size: 13px;
    color: #333;
    outline: none;
    width: 220px;
    transition: border-color .15s;
}
.pf-novo-input:focus { border-color: var(--pf-tertiary); }
.pf-novo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 20px 0 16px;
    background: var(--pf-primary);
    color: #fff;
    font-family: 'Prompt', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    transition: background .2s;
    white-space: nowrap;
}
.pf-novo-btn:hover { background: var(--pf-tertiary); }

.pf-clist-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.pf-unify-btn {
    height: 38px;
    padding: 0 16px;
    border: 1.5px solid #d1dae3;
    background: #fff;
    color: var(--pf-secondary);
    font-family: 'Prompt', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    white-space: nowrap;
}
.pf-unify-btn:hover:not(:disabled) {
    border-color: var(--pf-primary);
    color: var(--pf-primary);
    background: #f4f9ff;
}
.pf-unify-btn:disabled {
    opacity: .55;
    cursor: default;
}

/* tabela de carrinhos */
.pf-clist-table-wrap {
    background: #fff;
    border: 1px solid #e8edf2;
    overflow-x: auto;
    margin-bottom: 20px;
}
.pf-clist-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
    font-family: 'Prompt', sans-serif;
}
.pf-clist-table th {
    background: #f5f8fb;
    color: #5a6b7e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid #e8edf2;
    white-space: nowrap;
}
.pf-clist-table td {
    padding: 12px;
    border-bottom: 1px solid #edf2f6;
    color: #44546a;
    font-size: 13px;
    vertical-align: middle;
}
.pf-clist-table tbody tr:hover { background: #fbfdff; }
.pf-clist-table tbody tr:last-child td { border-bottom: none; }
.pf-clt-check { width: 38px; text-align: center; }
.pf-clt-title {
    display: block;
    color: var(--pf-secondary);
    font-weight: 700;
    text-decoration: none;
    line-height: 1.25;
}
.pf-clt-title:hover { color: var(--pf-primary); }
.pf-clt-ref {
    display: block;
    color: #9aa8b8;
    font-size: 11px;
    margin-top: 3px;
}
.pf-clt-expired { color: #c0392b; font-weight: 600; }
.pf-clt-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}
.pf-clt-actions .pf-ccard-btn {
    flex: 0 0 auto;
    padding: 7px 10px;
}

/* ── grid de cards ──────────────────────────────────────── */
.pf-clist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
@media (max-width: 1100px) { .pf-clist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .pf-clist-grid { grid-template-columns: 1fr; } }

/* ── card de carrinho ──────────────────────────────────── */
.pf-ccard {
    background: #fff;
    border: 1px solid #e8edf2;
    border-top: 3px solid var(--pf-primary);
    padding: 18px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .2s;
}
.pf-ccard:hover { box-shadow: 0 4px 16px rgba(0,87,166,.10); }
.pf-ccard--readonly { border-top-color: #b0bfcc; }

.pf-ccard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.pf-ccard-ref {
    font-size: 11px;
    color: #9aa8b8;
    font-weight: 500;
    letter-spacing: .04em;
}
.pf-ccard-titulo {
    font-size: 15px;
    font-weight: 700;
    color: var(--pf-secondary);
    line-height: 1.3;
}
.pf-ccard-select {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 8px 4px 0;
    padding: 3px 7px;
    border: 1px solid #d1dae3;
    background: #f8fafc;
    color: #5a6b7e;
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    vertical-align: middle;
}
.pf-ccard-select input { margin: 0; }
.pf-ccard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11.5px;
    color: #7a8fa8;
}
.pf-ccard-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pf-ccard-meta--expired { color: #e53e3e; font-weight: 600; }
.pf-ccard-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--pf-secondary);
}
.pf-ccard-vendedor {
    font-size: 11.5px;
    color: var(--pf-primary);
    font-style: italic;
}
.pf-ccard-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.pf-ccard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-family: 'Prompt', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.pf-ccard-btn--primary {
    background: var(--pf-primary);
    color: #fff;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    flex: 1;
}
.pf-ccard-btn--primary:hover { background: var(--pf-tertiary); color: #fff; }
.pf-ccard-btn--outline {
    background: #fff;
    color: var(--pf-secondary);
    border: 1.5px solid #d1dae3;
}
.pf-ccard-btn--outline:hover { border-color: var(--pf-primary); color: var(--pf-primary); }
.pf-ccard-btn--danger {
    background: #fff;
    color: #c0392b;
    border: 1.5px solid #e8d0d0;
    flex: 0;
    padding: 0 10px;
}
.pf-ccard-btn--danger:hover { background: #fdf0f0; border-color: #c0392b; }

/* Botão "Pagar agora" — verde destacado */
.pf-ccard-btn--pay {
    display: inline-flex; align-items: center; gap: 6px;
    background: #16a34a; color: #fff;
    border: none; padding: 0 14px; min-height: 32px;
    font-size: 12px; font-weight: 700; text-decoration: none;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    white-space: nowrap;
    animation: pf-pay-pulse 2s infinite;
}
.pf-ccard-btn--pay:hover { background: #15803d; color: #fff; }
@keyframes pf-pay-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.4); }
    50%       { box-shadow: 0 0 0 6px rgba(22,163,74,.0); }
}

/* ── View toggle ── */
.pf-view-toggle {
    display: flex;
    gap: 2px;
    border: 1.5px solid #d1dae3;
    border-radius: 6px;
    overflow: hidden;
}
.pf-view-btn {
    background: none;
    border: none;
    padding: 6px 9px;
    cursor: pointer;
    color: #7a8fa8;
    display: flex;
    align-items: center;
    transition: background .15s, color .15s;
}
.pf-view-btn:hover       { background: #f0f4f8; color: #003352; }
.pf-view-btn--active     { background: #003352; color: #fff; }
.pf-view-btn--active:hover { background: #003352; color: #fff; }

/* ── Modo lista ── */
.pf-clist-grid--list {
    grid-template-columns: 1fr !important;
}
.pf-clist-grid--list .pf-ccard {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0 20px;
    padding: 14px 20px;
}
.pf-clist-grid--list .pf-ccard-top    { margin-bottom: 0; }
.pf-clist-grid--list .pf-ccard-titulo { font-size: 14px; margin-bottom: 0; }
.pf-clist-grid--list .pf-ccard-meta   { display: none; }
.pf-clist-grid--list .pf-ccard-total  { margin: 0; font-size: 15px; }
.pf-clist-grid--list .pf-ccard-actions {
    margin-top: 0;
    gap: 6px;
}

/* ============================================================
   STATUS BADGES
   ============================================================ */
.pf-badge {
    display: inline-block;
    padding: 2px 9px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-radius: 2px;
}
.pf-badge--neutral { background: #edf1f5; color: #5a6b7e; }
.pf-badge--blue    { background: #dbeeff; color: #0057A6; }
.pf-badge--yellow  { background: #fef3cd; color: #8a6d00; }
.pf-badge--green   { background: #d4f7e0; color: #1a7a40; }
.pf-badge--red     { background: #fde8e8; color: #c0392b; }
.pf-badge--dark    { background: #e2e8f0; color: #4a5568; }

/* ============================================================
   SHOW: edição de título inline
   ============================================================ */
.pf-title-edit-btn {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #00A3E0;
    padding: 0 4px;
    opacity: .7;
    transition: opacity .15s;
    vertical-align: middle;
}
.pf-title-edit-btn:hover { opacity: 1; }
.pf-title-editor {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.pf-title-editor.hidden { display: none; }
.pf-title-input {
    flex: 1;
    max-width: 360px;
    height: 36px;
    padding: 0 10px;
    border: 1.5px solid var(--pf-tertiary);
    font-family: 'Prompt', sans-serif;
    font-size: 14px;
    color: #fff;
    background: rgba(255,255,255,.15);
    outline: none;
}
.pf-title-save {
    height: 36px;
    padding: 0 16px;
    background: #00A3E0;
    color: #fff;
    border: none;
    font-family: 'Prompt', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.pf-title-cancel {
    height: 36px;
    width: 36px;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── qty readonly (carrinhos não editáveis) ─────────────── */
.pf-cart-qty-readonly {
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-secondary);
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

/* ── obs box ────────────────────────────────────────────── */
.pf-obs-box {
    background: #f5f8fb;
    border-left: 3px solid #d1dae3;
    padding: 10px 14px;
    font-size: 13px;
    color: #5a6b7e;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* ── alertas ────────────────────────────────────────────── */
.pf-alert {
    padding: 12px 18px;
    font-size: 13.5px;
    margin-bottom: 20px;
    border-left: 4px solid transparent;
}
.pf-alert--green {
    background: #d4f7e0;
    color: #1a7a40;
    border-color: #1a7a40;
}
.pf-alert--red {
    background: #fde8e8;
    color: #c0392b;
    border-color: #c0392b;
}

/* ── responsividade ─────────────────────────────────────── */
/* checkout em etapas */
.pf-checkout-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.pf-checkout-steps span,
.pf-checkout-steps a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 14px;
    border: 1px solid #dce5ee;
    background: #fff;
    color: #5a6b7e;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.pf-checkout-steps .active {
    border-color: var(--pf-primary);
    background: #eef6ff;
    color: var(--pf-primary);
}
.pf-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}
.pf-checkout-card,
.pf-checkout-side > * {
    background: #fff;
    border: 1px solid #e8edf2;
}
.pf-checkout-card {
    padding: 22px;
    border-top: 3px solid var(--pf-primary);
}
.pf-checkout-card-head { margin-bottom: 18px; }
.pf-checkout-card-head h2 {
    margin: 0 0 6px;
    color: var(--pf-secondary);
    font-size: 25px;
    line-height: 1.25;
}
.pf-checkout-card-head p,
.pf-checkout-muted {
    margin: 0;
    color: #5a6b7e;
    font-size: 13px;
    line-height: 1.6;
}
.pf-checkout-side {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pf-finance-options {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}
.pf-rec-option strong {
    display: block;
    color: var(--pf-secondary);
}
.pf-rec-option small {
    display: block;
    color: #6d7f92;
    font-weight: 400;
    line-height: 1.45;
}
.pf-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.pf-orc-input,
.pf-orc-select,
.pf-orc-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1dae3;
    border-radius: 0;
    font-family: 'Prompt', sans-serif;
    font-size: 13.5px;
    color: #333;
    background: #fff;
    outline: none;
    margin-bottom: 12px;
}
.pf-orc-input:focus,
.pf-orc-select:focus,
.pf-orc-textarea:focus { border-color: var(--pf-tertiary); }
.pf-orc-textarea { min-height: 100px; resize: vertical; }
.pf-checkout-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.pf-checkout-card .btEnviar {
    min-height: 44px;
    padding: 0 26px;
    background: var(--pf-primary);
    color: #fff;
    font-family: 'Prompt', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}
.pf-checkout-card .btEnviar:hover { background: var(--pf-tertiary); }

/* Botão "Finalizar Carrinho" — verde de confirmação */
.pf-checkout-card .btEnviar.btEnviar--finalizar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #16a34a;
    font-size: 15px;
    padding: 0 32px;
    min-height: 48px;
    box-shadow: 0 2px 12px rgba(22,163,74,.30);
}
.pf-checkout-card .btEnviar.btEnviar--finalizar:hover {
    background: #15803d;
}
.pf-rule-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.pf-rule-list li {
    padding: 9px 10px;
    border-left: 3px solid #d1dae3;
    background: #f8fbfd;
    color: #4e6276;
    font-size: 12.5px;
    line-height: 1.45;
}
.pf-rule-info { border-color: var(--pf-primary) !important; }
.pf-rule-ok {
    border-color: #1a7a40 !important;
    background: #f0faf4 !important;
    color: #1a5c33 !important;
}
.pf-rule-warn {
    border-color: #d68a00 !important;
    background: #fff8e6 !important;
    color: #7a5200 !important;
}
.pf-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.pf-review-grid section {
    border: 1px solid #e1e9f0;
    background: #f8fbfd;
    padding: 14px;
}
.pf-review-grid h3 {
    margin: 0 0 10px;
    color: var(--pf-secondary);
    font-size: 14px;
}
.pf-review-grid p {
    margin: 0 0 7px;
    color: #3c5064;
    font-size: 13px;
    line-height: 1.5;
}
.pf-review-items { margin-bottom: 16px; }
.pf-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dce5ee;
    background: #f8fbfd;
    color: #3c5064;
    font-size: 13px;
    line-height: 1.5;
}
.pf-terms-check input { margin-top: 3px; }

@media (max-width: 1100px) {
    .pf-cart-layout { grid-template-columns: 1fr 320px; }
    .pf-checkout-layout { grid-template-columns: 1fr 320px; }
}
@media (max-width: 860px) {
    .pf-cart-layout { grid-template-columns: 1fr; }
    .pf-cart-right   { position: static; }
    .pf-checkout-layout { grid-template-columns: 1fr; }
    .pf-checkout-side { position: static; }
    .pf-review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .pf-cart-main    { padding-top: 24px; padding-bottom: 40px; }
    .pf-pg-container { padding: 0 14px; }
    .pf-clist-actions,
    .pf-novo-form,
    .pf-unify-btn,
    .pf-novo-input,
    .pf-novo-btn { width: 100%; }
    .pf-novo-btn,
    .pf-unify-btn { justify-content: center; }
    .pf-cart-form-grid { grid-template-columns: 1fr; }
    .pf-form-grid-2 { grid-template-columns: 1fr; }
    .pf-assigned-seller__head {
        display: block;
    }
    .pf-assigned-seller__head strong {
        display: block;
        margin-top: 4px;
        text-align: left;
    }
    .pf-assigned-seller__contacts { grid-template-columns: 1fr; }
    .pf-recebimento-options { grid-template-columns: 1fr; }
    .pf-checkout-actions { flex-direction: column; align-items: stretch; }
    .pf-checkout-card .btEnviar,
    .pf-checkout-actions .pf-ccard-btn { width: 100%; justify-content: center; }
    .pf-cart-quick-actions { flex-direction: column; }
    .pf-cth          { font-size: 10px; padding: 9px 8px; }
    .pf-ctd          { padding: 9px 8px; }
    .pf-ctd--img     { width: 58px; }
    .pf-cart-img,
    .pf-cart-img--empty { width: 50px; height: 50px; }
    .pf-cart-name    { font-size: 12px; }
    .pf-cart-form-card { padding: 16px 14px; }
    .pf-cart-totals-card { padding: 16px 14px; }
}

/* ============================================================
   FINANCEIRO — Cards de Negociação
   ============================================================ */
.pf-rec-option--neg {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1.5px solid #dce5ee;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    margin-bottom: 8px;
}
.pf-rec-option--neg input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.pf-rec-option--neg:hover {
    border-color: var(--pf-primary);
    background: #f5f9ff;
}
.pf-rec-option--selected {
    border-color: var(--pf-primary) !important;
    background: #eef6ff !important;
}
.pf-neg-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.pf-neg-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pf-neg-info strong {
    font-size: 14px;
    color: #1a2b3c;
    font-weight: 700;
}
.pf-neg-info small {
    font-size: 12px;
    color: #6b7280;
}
.pf-neg-prazo {
    font-size: 11px !important;
    color: #0057A6 !important;
    font-weight: 600 !important;
}
.pf-neg-badge {
    flex-shrink: 0;
    display: inline-block;
    padding: 3px 10px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 2px;
}
.pf-neg-badge--avista {
    background: #d4f7e0;
    color: #1a7a40;
}
.pf-neg-badge--prazo {
    background: #FFF8E7;
    color: #92400E;
}

/* ============================================================
   CONFIRMAÇÃO — tela pós-pedido
   ============================================================ */
.pf-page-hero--confirm {
    padding: 40px 0;
}
.pf-page-hero-inner--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}
.pf-confirm-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.pf-confirm-icon--ok  { background: #ECFDF5; }
.pf-confirm-icon--wait { background: #FFF8E7; }
.pf-confirm-subtitle {
    color: rgba(255,255,255,.85);
    font-size: 15px;
    margin: 6px 0 0;
    line-height: 1.6;
}

/* Barra de status */
.pf-confirm-status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 28px 0 32px;
}
.pf-confirm-status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9aa8b8;
    font-weight: 600;
    min-width: 90px;
    text-align: center;
}
.pf-confirm-status-step--done { color: #10B981; }
.pf-confirm-status-step--wait { color: #F59E0B; }
.pf-confirm-status-line {
    height: 2px;
    width: 48px;
    background: #e1e9f0;
    margin-bottom: 22px;
    flex-shrink: 0;
}
.pf-confirm-status-line--done { background: #10B981; }
.pf-css-step-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #10B981;
    border: 2px solid #10B981;
}
.pf-css-step-dot--wait    { background: #F59E0B; border-color: #F59E0B; }
.pf-css-step-dot--pending { background: #fff; border-color: #d1dae3; }

/* Grid de confirmação */
.pf-confirm-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 320px;
    gap: 20px;
    align-items: start;
}
.pf-confirm-card {
    background: #fff;
    border: 1px solid #e1e9f0;
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 2px;
}
.pf-confirm-card--warn {
    border-color: #F59E0B;
    background: #FFFBEB;
}
.pf-confirm-card-title {
    font-size: 11px;
    font-weight: 700;
    color: #7a8fa8;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f4f8;
}
.pf-confirm-warn-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FEF3C7;
    color: #92400E;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    margin-top: 8px;
}

/* Tabela de itens na confirmação */
.pf-confirm-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Prompt', sans-serif;
    font-size: 13px;
}
.pf-confirm-table th {
    background: #f5f8fb;
    color: #5a6b7e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid #e1e9f0;
}
.pf-confirm-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f4f8;
    vertical-align: top;
}
.pf-confirm-table tfoot td {
    font-size: 13px;
    color: #5a6b7e;
    padding: 8px 12px;
    border-bottom: none;
}
.pf-confirm-total-row td {
    border-top: 2px solid #e1e9f0;
    font-size: 14.5px !important;
    color: #1a2b3c !important;
    padding-top: 12px !important;
}
.pf-confirm-item-name  { font-weight: 600; color: #1a2b3c; }
.pf-confirm-item-attrs { font-size: 11px; color: #7a8fa8; margin-top: 3px; }
.text-right             { text-align: right; }

/* Ações */
.pf-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}
.pf-ccard-btn--primary {
    background: var(--pf-primary);
    color: #fff;
    border: none;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}
.pf-ccard-btn--primary:hover { background: var(--pf-secondary); color: #fff; }

@media (max-width: 860px) {
    .pf-confirm-grid { grid-template-columns: 1fr; }
    .pf-confirm-status-bar { gap: 0; }
    .pf-confirm-status-line { width: 28px; }
}
@media (max-width: 580px) {
    .pf-confirm-status-step { font-size: 10px; min-width: 70px; }
    .pf-confirm-status-line { width: 16px; }
}

.pf-clist-pagination {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}
.pf-clist-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pf-clist-pagination .page-link,
.pf-clist-pagination span {
    display: inline-flex;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #dbe6ef;
    color: #0057A6;
    background: #fff;
    text-decoration: none;
    font-size: 13px;
}
.pf-clist-pagination .active span,
.pf-clist-pagination .page-link:hover {
    background: #0057A6;
    color: #fff;
    border-color: #0057A6;
}

/* ================================================================
   MODAL SPECS — ITEM ESPECIAL (TELHA / CHAPA)
   ================================================================ */

.pf-specs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.52);
    z-index: 9100;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.pf-specs-overlay.pf-specs-open {
    display: flex;
}

.pf-specs-modal {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0,51,82,.18);
    overflow: hidden;
}

.pf-specs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #003352 0%, #0057A6 100%);
    color: #fff;
    padding: 16px 20px;
    flex-shrink: 0;
}
.pf-specs-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}
.pf-specs-header p {
    margin: 4px 0 0;
    font-size: .98rem;
    opacity: .82;
}
.pf-specs-close {
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.38rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}
.pf-specs-close:hover { background: rgba(255,255,255,.28); }

.pf-specs-body {
    overflow-y: auto;
    flex: 1;
    padding: 20px;
}

/* Tabela de linhas */
.pf-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    font-size: 1.06rem;
}
.pf-specs-table th {
    text-align: left;
    padding: 8px 10px;
    color: #003352;
    font-weight: 600;
    border-bottom: 2px solid #dbe6ef;
    white-space: nowrap;
}
.pf-specs-table td {
    padding: 6px 8px;
    vertical-align: top;
}
.pf-specs-table td input[type="number"],
.pf-specs-table td input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #c8d8e8;
    border-radius: 4px;
    font-size: 1.05rem;
    color: #1a2d3d;
    background: #f8fbfe;
    box-sizing: border-box;
}
.pf-specs-table td input:focus {
    outline: none;
    border-color: #0057A6;
    background: #fff;
}
.pf-specs-row-remove {
    background: none;
    border: none;
    color: #c0392b;
    cursor: pointer;
    padding: 5px 8px;
    font-size: 1.25rem;
    line-height: 1;
    border-radius: 3px;
    display: flex;
    align-items: center;
}
.pf-specs-row-remove:hover { background: #fef2f2; }

/* Botão adicionar linha */
.pf-specs-add-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px dashed #0057A6;
    color: #0057A6;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 1.04rem;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 16px;
}
.pf-specs-add-row:hover { background: #eef5fc; }

/* Resumo calculado */
.pf-specs-summary {
    background: #f0f6fc;
    border: 1px solid #c8ddf0;
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 1.06rem;
    color: #003352;
    margin-bottom: 4px;
}
.pf-specs-summary strong {
    color: #0057A6;
    font-size: 1.25rem;
}

/* Alerta sem permissão de edição (modo leitura) */
.pf-specs-readonly-note {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 5px;
    padding: 12px 16px;
    font-size: 1.03rem;
    color: #78350f;
    margin-bottom: 12px;
}

.pf-specs-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 14px 20px;
    border-top: 1px solid #e8eef4;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.pf-specs-btn-cancel {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 11px 22px;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
}
.pf-specs-btn-cancel:hover { background: #e2e8f0; }
.pf-specs-btn-save {
    background: #0057A6;
    border: none;
    color: #fff;
    padding: 11px 26px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.pf-specs-btn-save:hover { background: #004a8f; }
.pf-specs-btn-save:disabled { opacity: .55; cursor: not-allowed; }

/* Botão "Ver medidas" na linha do carrinho */
.pf-specs-ver-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #0057A6;
    color: #0057A6;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: .78rem;
    cursor: pointer;
    white-space: nowrap;
    margin-top: 4px;
    line-height: 1.4;
}
.pf-specs-ver-btn:hover { background: #eef5fc; }

/* Badge qty gerada (readonly telha) */
.pf-cart-qty-telha {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.pf-cart-qty-telha-val {
    font-weight: 600;
    color: #003352;
    font-size: .95rem;
}
.pf-cart-qty-telha-label {
    font-size: .7rem;
    color: #64748b;
    white-space: nowrap;
}

/* Responsivo mobile */
@media (max-width: 560px) {
    .pf-specs-table th:nth-child(3),
    .pf-specs-table td:nth-child(3) { display: none; }
    .pf-specs-table th:nth-child(4),
    .pf-specs-table td:nth-child(4) {
        display: none;
    }
    .pf-specs-modal { max-height: 95vh; }
    .pf-specs-body { padding: 14px; }
    .pf-specs-footer { padding: 12px 14px; }
}
@media (max-width: 380px) {
    .pf-specs-table { font-size: .98rem; }
}
