
/* ---------------- FAIXA ---------------- */
.bb-faixa--orcamento { margin-bottom: 34px; }
.bb-faixa--orcamento .bb-faixa__int { max-width: 720px; padding-bottom: 32px; }

.bb-passos {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}
.bb-passos li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #7c8794;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    padding: 7px 14px 7px 8px;
    border-radius: 999px;
}
.bb-passos li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    font-size: 11px;
    font-weight: 800;
}
.bb-passos li.bb-passos--ativo {
    color: #fff;
    background: rgba(74,222,128,.14);
    border-color: rgba(74,222,128,.34);
}
.bb-passos li.bb-passos--ativo span { background: #4ade80; color: #06301a; }

@media (max-width: 620px) {
    .bb-passos { gap: 6px; }
    .bb-passos li { font-size: 11.5px; padding: 6px 11px 6px 6px; }
}

/* ---------------- PÁGINA DO CARRINHO ---------------- */
/* A faixa tem de ocupar a largura toda, como na página de artigos.
   Antes eu limitava o contentor inteiro a 900px e ela ia atrás.
   Agora o contentor é largo e o limite aplica-se só ao conteúdo. */
.woocommerce-cart .woocommerce { max-width: none !important; margin: 0 !important; }

/* CHECKOUT: e o proprio contentor que e a coluna centrada — imune ao layout do tema */
.woocommerce-checkout .entry .woocommerce {
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box;
}

/* a faixa escura sai do contentor e vai de borda a borda */
.woocommerce-cart .bb-faixa--orcamento { width: 100%; max-width: none; }
.woocommerce-checkout .bb-faixa--orcamento {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    border-radius: 0 !important;
}

/* o conteúdo (tabela, ações, formulário) é que fica estreito e centrado */
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .bb-carrinho__acoes,
.woocommerce-cart .bb-aviso,
.woocommerce-cart .woocommerce-notices-wrapper,
.woocommerce-checkout .bb-aviso,
.woocommerce-checkout .woocommerce-notices-wrapper {
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* o carrinho estava colado ao rodapé */
.woocommerce-cart #content-wrap,
.woocommerce-checkout #content-wrap { padding-bottom: 90px !important; }
.woocommerce-cart .bb-carrinho__acoes { margin-bottom: 20px; }

.woocommerce-cart table.shop_table {
    border: 1px solid var(--bb-linha, #e6e8eb) !important;
    border-radius: 14px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    margin-bottom: 8px !important;
}
.woocommerce-cart table.shop_table thead th {
    background: #f7f8f9 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #5c646e !important;
    padding: 14px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--bb-linha, #e6e8eb) !important;
}
.woocommerce-cart table.shop_table td {
    padding: 18px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid #f0f1f3 !important;
    vertical-align: middle !important;
}
.woocommerce-cart table.shop_table tbody tr:last-child td { border-bottom: 0 !important; }

/* a coluna do preço não existe num orçamento */
.woocommerce-cart table.shop_table th.product-price,
.woocommerce-cart table.shop_table td.product-price,
.woocommerce-cart table.shop_table th.product-subtotal,
.woocommerce-cart table.shop_table td.product-subtotal { display: none !important; }

/* imagens maiores: num catálogo de tecidos, 72px não deixava ver a textura */
.woocommerce-cart td.product-thumbnail { width: 120px; }
.woocommerce-cart td.product-thumbnail img {
    width: 104px !important;
    height: 104px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--bb-linha, #e6e8eb);
    background: #f7f8f9;
    transition: transform .2s ease, box-shadow .2s ease;
}
.woocommerce-cart td.product-thumbnail a:hover img {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(16,24,40,.14);
}
.woocommerce-cart td.product-name a {
    font-weight: 650;
    font-size: 15px;
    color: var(--bb-tinta, #16191d);
}
.bb-sku {
    display: block;
    font-size: 12px;
    color: #8a929b;
    font-weight: 500;
    margin-top: 3px;
}
.woocommerce-cart td.product-remove a.remove {
    color: #b6bcc4 !important;
    font-size: 20px !important;
    line-height: 1;
    background: none !important;
}
.woocommerce-cart td.product-remove a.remove:hover { color: #d64545 !important; background: none !important; }

/* ===== QUANTIDADE =====
   O OceanWP ja fornece os botoes .minus e .plus. Eu tinha acrescentado
   outros por JavaScript sem verificar — ficavam dois conjuntos ("- - 1 + +").
   Aqui estilizo os do tema e nao acrescento nenhum.

   Especificidade alta de proposito: o tema gera regras `body ... button`
   e o sistema de design tem `button { padding: 12px 22px !important }`,
   que esmagam botoes pequenos como estes. */

body.woocommerce-cart td.product-quantity { min-width: 190px; white-space: nowrap; }

body.woocommerce-cart td.product-quantity div.quantity {
    display: inline-flex !important;
    align-items: stretch !important;
    flex-direction: row !important;
    vertical-align: middle;
    border: 1px solid #e6e8eb !important;
    border-radius: 10px !important;
    background: #fff !important;
    overflow: hidden !important;
    height: 44px !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 1px 2px rgba(16,24,40,.05) !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}
body.woocommerce-cart td.product-quantity div.quantity:focus-within {
    border-color: #9aa3ad !important;
    box-shadow: 0 0 0 3px rgba(90,100,115,.10) !important;
}

/* os botoes do tema */
body.woocommerce-cart td.product-quantity div.quantity .minus,
body.woocommerce-cart td.product-quantity div.quantity .plus,
body.woocommerce-cart td.product-quantity div.quantity button.minus,
body.woocommerce-cart td.product-quantity div.quantity button.plus,
body.woocommerce-cart td.product-quantity div.quantity input.minus,
body.woocommerce-cart td.product-quantity div.quantity input.plus {
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    position: static !important;
    float: none !important;

    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    flex: 0 0 42px !important;
    height: 42px !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;

    background: #f2f4f6 !important;
    background-image: none !important;
    color: #5c646e !important;

    font-family: var(--bb-fonte, sans-serif) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-align: center !important;
    text-indent: 0 !important;
    text-shadow: none !important;

    box-shadow: none !important;
    cursor: pointer !important;
    transform: none !important;
    filter: none !important;
    transition: background .13s ease, color .13s ease !important;
}
body.woocommerce-cart td.product-quantity div.quantity .minus:hover,
body.woocommerce-cart td.product-quantity div.quantity .plus:hover {
    background: #e6e9ec !important;
    color: #16191d !important;
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
}
body.woocommerce-cart td.product-quantity div.quantity .minus { border-right: 1px solid #e6e8eb !important; order: 0; }
body.woocommerce-cart td.product-quantity div.quantity .plus  { border-left: 1px solid #e6e8eb !important;  order: 2; }

/* o campo do numero */
body.woocommerce-cart td.product-quantity div.quantity input.qty {
    box-sizing: border-box !important;
    order: 1;
    width: 58px !important;
    min-width: 58px !important;
    height: 42px !important;
    flex: 0 0 58px !important;

    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;

    background: #fff !important;
    color: #16191d !important;
    text-align: center !important;
    font-family: var(--bb-fonte, sans-serif) !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 42px !important;

    box-shadow: none !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}
/* fora as setas nativas do browser */
body.woocommerce-cart td.product-quantity div.quantity input.qty::-webkit-outer-spin-button,
body.woocommerce-cart td.product-quantity div.quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    display: none !important;
}
body.woocommerce-cart td.product-quantity div.quantity input.qty:focus {
    outline: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* a etiqueta serve so para leitores de ecra */
.woocommerce-cart .quantity label.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* unidade de venda: POR BAIXO da caixa, nunca ao lado.
   Ao lado, "Metro" nao cabia e partia-se em duas linhas ("Metr / o"). */
body.woocommerce-cart td.product-quantity .bb-unidade {
    display: block !important;
    width: 100%;
    font-size: 12px;
    font-weight: 600;
    color: #8a929b;
    margin: 7px 0 0;
    text-align: left;
    white-space: nowrap;
    text-transform: lowercase;
}
.bb-unidade-ficha {
    display: block;
    font-size: 13px;
    color: #5c646e;
    margin-bottom: 8px;
}
.bb-unidade-ficha strong { color: #16191d; font-weight: 650; }

/* barra de ações */
.bb-carrinho__acoes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--bb-linha, #e6e8eb);
}
.bb-carrinho__voltar {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #5c646e !important;
    transition: color .15s ease, gap .15s ease;
}
.bb-carrinho__voltar:hover { color: #16191d !important; gap: 10px; }
.bb-carrinho__voltar svg { width: 15px; height: 15px; }

.bb-carrinho__avancar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 15.5px;
    letter-spacing: -.005em;
    padding: 16px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(29,78,216,.32);
    transition: filter .16s ease, transform .13s ease, box-shadow .18s ease;
}
.bb-carrinho__avancar:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(29,78,216,.42);
    color: #fff !important;
}
.bb-carrinho__avancar svg { width: 16px; height: 16px; transition: transform .16s ease; }
.bb-carrinho__avancar:hover svg { transform: translateX(3px); }

/* fora os restos da loja online */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cross-sells,
.woocommerce-cart .coupon,
.woocommerce-cart .cart_totals { display: none !important; }

/* o botão "Atualizar pedido" fica discreto */
.woocommerce-cart button[name="update_cart"] {
    background: #f2f4f6 !important;
    color: #5c646e !important;
    font-size: 13px !important;
    padding: 10px 18px !important;
    box-shadow: none !important;
}

/* ---------------- MINI-CARRINHO (cabeçalho) ---------------- */
.current-shop-items-dropdown,
#site-header .wcmenucart-dropdown {
    border: 1px solid var(--bb-linha, #e6e8eb) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 40px rgba(16,24,40,.14) !important;
    padding: 8px !important;
    overflow: hidden;
}
.widget_shopping_cart_content { padding: 8px !important; }
.woocommerce ul.cart_list li, .woocommerce ul.product_list_widget li {
    padding: 12px 8px !important;
    border-bottom: 1px solid #f0f1f3 !important;
    display: flex;
    gap: 12px;
    align-items: center;
}
.woocommerce ul.cart_list li:last-child { border-bottom: 0 !important; }
.woocommerce ul.cart_list li img, .woocommerce ul.product_list_widget li img {
    width: 48px !important;
    height: 48px !important;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--bb-linha, #e6e8eb);
    float: none !important;
    margin: 0 !important;
}
.woocommerce ul.cart_list li a { font-size: 14px !important; font-weight: 600 !important; }
.woocommerce ul.cart_list li .quantity { font-size: 12px; color: #8a929b; }

/* o total do mini-carrinho não faz sentido: fora */
.widget_shopping_cart_content .total { display: none !important; }

.widget_shopping_cart_content .buttons { display: flex; gap: 8px; padding: 10px 8px 4px; margin: 0; }
.widget_shopping_cart_content .buttons a {
    flex: 1;
    text-align: center;
    font-size: 13px !important;
    padding: 11px 12px !important;
    border-radius: 9px !important;
}
.widget_shopping_cart_content .buttons a.wc-forward:not(.checkout) {
    background: #f2f4f6 !important;
    color: #16191d !important;
}
.widget_shopping_cart_content .buttons a.checkout {
    background: #16191d !important;
    color: #fff !important;
    font-weight: 700 !important;
}

.bb-sob-consulta {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #8a929b;
}

@media (max-width: 767px) {
    .woocommerce-cart table.shop_table td { padding: 14px 10px !important; }
    .woocommerce-cart td.product-thumbnail img { width: 56px !important; height: 56px; }
    .bb-carrinho__acoes { flex-direction: column-reverse; align-items: stretch; }
    .bb-carrinho__avancar { text-align: center; min-height: 50px; display: flex; align-items: center; justify-content: center; }
    .bb-carrinho__voltar { text-align: center; }
}

/* o titulo "Detalhes do pedido" duplicava o rotulo do proprio campo — fora */
.woocommerce-additional-fields > h3 { display: none !important; }

/* ---- carrinho vazio ---- */
.bb-vazio {
    max-width: 560px;
    margin: 30px auto 80px;
    padding: 48px 34px;
    text-align: center;
    background: #fff;
    border: 1px solid #e8eaee;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(16,24,40,.05);
}
.bb-vazio svg { width: 46px; height: 46px; color: #9aa3ad; margin-bottom: 14px; }
.bb-vazio h2 { font-size: 21px; margin: 0 0 10px; }
.bb-vazio p { color: #6b7280; font-size: 14.5px; line-height: 1.6; margin: 0 0 24px; }
.bb-vazio__btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 14.5px;
    box-shadow: 0 6px 18px rgba(29,78,216,.28);
}
.bb-vazio__btn:hover { filter: brightness(1.08); }

/* o botao/aviso soltos do tema no carrinho vazio — fora */
.woocommerce-cart .cart-empty.woocommerce-info,
.woocommerce-cart p.return-to-shop { display: none !important; }
