/* ==========================================================================
   Página do Carrinho — BR Distribuidora
   ========================================================================== */

/* [hidden] override para flex */
.brd-cart-coupon-body[hidden],
.brd-cart-coupon-msg[hidden],
.brd-cart-row-discount[hidden] {
    display: none !important;
}

/* Ocultar o entry-header do Astra — o h1 já está dentro do template */
.woocommerce-cart .entry-header {
    display: none !important;
}

/* ── Estado vazio ──────────────────────────────────────────── */
.brd-cart-empty-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 80px 24px 100px;
    text-align: center;
}

.brd-cart-empty-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaaaaa;
    margin-bottom: 24px;
}

.brd-cart-empty-page h1 {
    font-family: var(--brd-font-family, 'Galano Grotesque', sans-serif);
    font-size: 22px;
    font-weight: 700;
    color: #0D0D0D !important;
    margin: 0 0 24px;
}

.brd-cart-empty-page p { display: none; }

.brd-cart-empty-cta {
    display: inline-block;
    padding: 13px 36px;
    background: #183357;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}

.brd-cart-empty-cta:hover {
    background: #206BB3;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ── Barra de frete grátis ─────────────────────────────────── */
.brd-cart-shipping-bar {
    max-width: 1170px;
    margin: 0 auto 24px;
    padding: 14px 20px 16px;
    background: #f9f9f9;
    border: 1px solid #eeeeee;
    border-radius: 12px;
}

.brd-cart-shipping-msg {
    font-size: 13px;
    color: #666666;
    margin: 0 0 10px;
    line-height: 1.4;
}

.brd-cart-shipping-msg strong { color: #0D0D0D; font-weight: 700; }

.brd-cart-shipping-bar.is-achieved .brd-cart-shipping-msg,
.brd-cart-shipping-bar.is-achieved .brd-cart-shipping-msg strong { color: #229a64; }

.brd-cart-shipping-road {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 28px;
}

.brd-cart-shipping-track {
    flex: 1;
    height: 6px;
    background: #e4e4e4;
    border-radius: 99px;
    overflow: visible;
    position: relative;
}

.brd-cart-shipping-fill {
    position: relative;
    height: 100%;
    min-width: 6px;
    background: linear-gradient(90deg, #206BB3 0%, #2d83d4 100%);
    border-radius: 99px;
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: visible;
}

.brd-cart-shipping-bar.is-achieved .brd-cart-shipping-fill {
    background: linear-gradient(90deg, #1a8a56 0%, #229a64 100%);
}

.brd-cart-shipping-truck {
    position: absolute;
    right: -28px;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 34px;
    background: #ffffff;
    border: 2px solid #206BB3;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 12px rgba(32, 107, 179, 0.3);
    color: #206BB3;
    animation: brd-cart-truck-rumble 0.4s ease-in-out infinite alternate;
}

@keyframes brd-cart-truck-rumble {
    from { transform: translateY(-53%); }
    to   { transform: translateY(-47%); }
}

.brd-cart-shipping-bar.is-achieved .brd-cart-shipping-truck {
    border-color: #229a64;
    box-shadow: 0 2px 14px rgba(34, 154, 100, 0.4);
    color: #229a64;
    animation: brd-cart-truck-arrive 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes brd-cart-truck-arrive {
    0%   { transform: translateY(-50%) scale(1); }
    45%  { transform: translateY(-66%) scale(1.2); }
    72%  { transform: translateY(-43%) scale(0.93); }
    100% { transform: translateY(-50%) scale(1); }
}

.brd-cart-shipping-flag {
    display: flex;
    align-items: center;
    color: #c0c0c0;
    flex-shrink: 0;
    transition: color 0.4s;
}

.brd-cart-shipping-bar.is-achieved .brd-cart-shipping-flag { color: #229a64; }

/* ── Layout 2 colunas ──────────────────────────────────────── */
/* Zera margens/paddings de wrappers do Astra/WP na página do carrinho */
body.woocommerce-cart #primary,
body.woocommerce-cart #main,
body.woocommerce-cart .ast-container,
body.woocommerce-cart .ast-article-single,
body.woocommerce-cart .entry-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
}

.brd-cart-page {
    max-width: 1170px;
    margin: 0 auto;
    padding: 24px 0 60px;
}

.brd-cart-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Coluna esquerda ───────────────────────────────────────── */
.brd-cart-heading-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}

.brd-cart-heading {
    font-family: var(--brd-font-family, 'Galano Grotesque', sans-serif);
    font-size: 22px;
    font-weight: 700;
    color: #0D0D0D !important;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.brd-cart-count-label {
    font-size: 14px;
    font-weight: 400;
    color: #999999;
}

.brd-cart-clear-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #aaaaaa;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}

.brd-cart-clear-btn:hover,
.brd-cart-clear-btn:focus {
    color: #cc3333;
    background: none;
    box-shadow: none;
    outline: none;
}
.brd-cart-clear-btn svg { flex-shrink: 0; }

/* ── Lista de itens ────────────────────────────────────────── */
.brd-cart-items {
    list-style: none;
    margin: 0 0 16px;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brd-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 0 16px;
    align-items: start;
    padding: 16px 44px 16px 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: opacity 0.2s, border-color 0.15s, box-shadow 0.2s;
    position: relative;
}

.brd-cart-item:hover {
    border-color: #c8d6ea;
    box-shadow: 0 4px 16px rgba(24, 51, 87, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
}

.brd-cart-item.is-updating {
    opacity: 0.35;
    pointer-events: none;
}

/* Col 1 — wrapper imagem + SKU mobile */
.brd-cart-item-col1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.brd-cart-item-sku--mobile { display: none; }
.brd-cart-item-sku--desktop { display: inline; }

/* Col 1 — imagem */
.brd-cart-item-img {
    display: block;
    box-sizing: border-box;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #ebebeb;
    cursor: zoom-in;
    transition: opacity 0.15s;
    padding: 0;
}

.brd-cart-item-img:hover { opacity: 0.85; }

.brd-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Col 2 — info (nome, pills, SKU) */
.brd-cart-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding-top: 2px;
}

.brd-cart-item-info:hover .brd-cart-item-name { color: #206BB3; }

.brd-cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #0D0D0D;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}

.brd-cart-item-sku {
    font-size: 13px;
    color: #6c6c6c;
    font-weight: 400;
}

/* Pills */
.brd-cart-item-vars {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.brd-cart-item-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.brd-cart-item-pill:nth-child(1) { background: #e8f0fa; color: #1a5a99; }
.brd-cart-item-pill:nth-child(2) { background: #f0eafa; color: #6b3fa0; }
.brd-cart-item-pill:nth-child(3) { background: #e6f7ef; color: #1a7a4a; }
.brd-cart-item-pill:nth-child(4) { background: #fdf3e6; color: #a05a10; }

/* Col 3 — stepper + estoque */
.brd-cart-item-qty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Stepper */
.brd-cart-stepper {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.brd-cart-stepper-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 1;
    color: #666666;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    transition: background 0.12s, color 0.12s;
}

.brd-cart-stepper-btn:hover:not(:disabled) { background: #e8e8e8; color: #0D0D0D; }
.brd-cart-stepper-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.brd-cart-stepper-val {
    min-width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #0D0D0D;
    padding: 0 2px;
    user-select: none;
}

/* Estoque */
.brd-cart-stock {
    font-size: 11px;
    font-weight: 300;
    color: #555555;
    text-align: center;
    white-space: nowrap;
}

.brd-cart-stock--low { color: #d07010; font-weight: 600; }
.brd-cart-stock--out { color: #d94040; font-weight: 400; }

/* Col 4 — lixeira / subtotal / preço/un */
.brd-cart-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 72px;
}

/* Botão remover — absoluto no canto superior direito do item */
.brd-cart-item-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    padding: 0;
    color: #cccccc;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.brd-cart-item-remove:hover { color: #d94040; background: rgba(217, 64, 64, 0.08); }

/* Subtotal da linha */
.brd-cart-item-total {
    font-size: 14px;
    font-weight: 700;
    color: #0D0D0D;
    white-space: nowrap;
}

/* Preço por unidade */
.brd-cart-item-unit {
    font-size: 11px;
    font-weight: 300;
    color: #555555;
    white-space: nowrap;
}


.brd-cart-coupon-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #183357;
    text-align: left;
    transition: background 0.12s;
}

.brd-cart-coupon-toggle:hover { background: #f8f8f8; }

.brd-cart-coupon-chevron {
    margin-left: auto;
    transition: transform 0.25s ease;
    color: #999999;
}

.brd-cart-coupon-toggle[aria-expanded="true"] .brd-cart-coupon-chevron {
    transform: rotate(180deg);
}

.brd-cart-coupon-body {
    padding: 4px 16px 16px;
    border-top: 1px solid #d8d8d8;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brd-cart-coupon-applied {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.brd-cart-coupon-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(34, 154, 100, 0.1);
    border: 1px solid rgba(34, 154, 100, 0.3);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    color: #229a64;
}

.brd-cart-coupon-remove {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #229a64;
    opacity: 0.7;
    transition: opacity 0.12s;
}

.brd-cart-coupon-remove:hover { opacity: 1; }

.brd-cart-coupon-form {
    display: flex;
    gap: 8px;
}

.brd-cart-coupon-input {
    flex: 1;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    color: #0D0D0D;
    background: #fafafa;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.brd-cart-coupon-input:focus {
    border-color: #206BB3;
    box-shadow: 0 0 0 3px rgba(32, 107, 179, 0.12);
    background: #ffffff;
}

.brd-cart-coupon-btn {
    height: 40px;
    padding: 0 18px;
    background: #183357;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.brd-cart-coupon-btn:hover { background: #206BB3; }
.brd-cart-coupon-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.brd-cart-coupon-msg {
    font-size: 12px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 6px;
}

.brd-cart-coupon-msg.is-success { background: rgba(34, 154, 100, 0.08); color: #229a64; }
.brd-cart-coupon-msg.is-error   { background: rgba(217, 64, 64, 0.08); color: #d94040; }

/* ── Rodapé do carrinho ────────────────────────────────────── */
.brd-cart-footer {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 32px;
    align-items: start;
}

.brd-cart-footer-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.brd-cart-footer-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Resumo do pedido */
.brd-cart-summary {
    background: #ffffff;
    border: 1px solid #c4c4c4;
    border-radius: 12px;
    padding: 20px;
}

.brd-cart-summary-title {
    font-family: var(--brd-font-family, 'Galano Grotesque', sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: #0D0D0D;
    margin: 0 0 14px;
}

.brd-cart-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brd-cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666666;
}

.brd-cart-summary-order-total {
    font-size: 14px;
    font-weight: 600;
    color: #0D0D0D;
    padding-top: 10px;
    border-top: 1px solid #c4c4c4;
}

.brd-cart-row-installments {
    font-size: 14px;
    color: #0D0D0D;
    font-weight: 400;
}

.brd-cart-summary-total {
    font-size: 16px;
    font-weight: 700;
    color: #0D0D0D;
    padding-top: 6px;
}

.brd-cart-summary-total > span:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brd-cart-row-discount { color: #229a64; }
.brd-cart-total-discount { color: #229a64; }
.brd-cart-total-pix { color: #229a64; }

.brd-cart-pix-badge {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(34, 154, 100, 0.1);
    border: 1px solid rgba(34, 154, 100, 0.25);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #229a64;
}

.brd-cart-strike {}

/* CTA Continuar */
.brd-cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: #183357;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    transition: background 0.15s, transform 0.1s;
}

.brd-cart-checkout-btn:hover {
    background: #206BB3;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Calcular frete */
.brd-cart-shipping-calc {
    padding: 0;
}

.brd-cart-section-label {
    font-size: 13px;
    font-weight: 700;
    color: #0D0D0D;
    margin: 0 0 10px;
}

.brd-cart-calc-form { margin: 0; width: 100%; box-sizing: border-box; overflow: hidden; }

.brd-cart-footer-left .brd-cart-coupon-form {
    padding-left: 20px;
}

.brd-cart-calc-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.brd-cart-calc-msg {
    font-size: 12px;
    margin: 8px 0 0;
    padding: 7px 12px;
    border-radius: 6px;
}

.brd-cart-calc-msg.is-error {
    background: rgba(217, 64, 64, 0.08);
    color: #d94040;
}

.brd-cart-shipping-rates {
    list-style: none !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brd-cart-shipping-rate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 8px;
    border-top: 1px solid #d8d8d8;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.12s;
}

.brd-cart-shipping-rate:hover {
    background: #f5f8ff;
}

.brd-cart-shipping-rate:focus {
    outline: none;
}

.brd-cart-shipping-rate.is-selected {
    background: #deeaf8;
    border-top-color: transparent;
    box-shadow: inset 0 0 0 2px #206BB3;
}

.brd-cart-shipping-rate.is-selected .brd-shipping-rate-name {
    color: #206BB3;
    font-weight: 700;
}

/* Radio visual */
.brd-shipping-rate-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #c4c4c4;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s;
}

.brd-cart-shipping-rate.is-selected .brd-shipping-rate-radio {
    border-color: #206BB3;
}

.brd-cart-shipping-rate.is-selected .brd-shipping-rate-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #206BB3;
    border-radius: 50%;
}

.brd-shipping-rate-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

/* Grupo por transportadora — card */
.brd-shipping-carrier-group {
    background: #ffffff;
    border: 1px solid #c4c4c4;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 8px;
}

.brd-shipping-carrier-group:first-child {
    margin-top: 0;
}

.brd-shipping-carrier-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.brd-shipping-carrier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.brd-shipping-carrier-logo {
    height: 20px !important;
    width: auto !important;
    max-width: 80px !important;
    display: block;
    object-fit: contain;
}

.brd-shipping-carrier-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888888;
}

.brd-shipping-carrier-header--free .brd-shipping-carrier-name {
    color: #229a64;
}

.brd-shipping-carrier-gift {
    display: flex;
    align-items: center;
    color: #229a64;
}

.brd-shipping-carrier-rates {
    list-style: none !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
}

.brd-shipping-carrier-rates .brd-cart-shipping-rate:first-child {
    border-top: 1px solid #d8d8d8;
    padding-top: 8px;
}

.brd-shipping-rate-name {
    font-size: 13px;
    font-weight: 600;
    color: #0D0D0D;
    white-space: nowrap;
}

.brd-shipping-rate-prazo {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f4f8;
    border-radius: 99px;
    font-size: 11px;
    color: #5a7a99;
    white-space: nowrap;
}

.brd-shipping-rate-price {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #0D0D0D;
    white-space: nowrap;
    flex-shrink: 0;
}

.brd-shipping-rate-original {
    font-size: 11px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}

.brd-shipping-rate-discount-badge {
    font-size: 11px;
    font-weight: 600;
    color: #1a7a4a;
    background: rgba(34, 154, 100, 0.1);
    border-radius: 4px;
    padding: 1px 5px;
}

.brd-shipping-rate-free {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(34, 154, 100, 0.1);
    border: 1px solid rgba(34, 154, 100, 0.3);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    color: #229a64;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Cupom */
.brd-cart-coupon {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brd-cart-coupon-applied:empty {
    display: none;
}

.brd-cart-coupon-applied {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.brd-cart-coupon-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(34, 154, 100, 0.1);
    border: 1px solid rgba(34, 154, 100, 0.3);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    color: #229a64;
}

.brd-cart-coupon-remove {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #229a64;
    opacity: 0.7;
    transition: opacity 0.12s;
}

.brd-cart-coupon-remove:hover { opacity: 1; }

/* Input underline + botão pill — conforme referência visual */
.brd-cart-coupon-form {
    display: flex;
    align-items: flex-end;
    gap: 0;
}

.woocommerce-cart .brd-cart-coupon-input,
.woocommerce-cart .brd-cart-coupon-input:focus,
.woocommerce-cart .brd-cart-coupon-input:hover,
.woocommerce-cart .brd-cart-coupon-input:active {
    flex: 1;
    width: 100%;
    height: 44px;
    padding: 8px 8px 0 0 !important;
    border: none !important;
    border-bottom: 2px solid #206BB3 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 16px !important;
    color: #555555 !important;
    outline: none !important;
    -webkit-appearance: none;
}

.brd-cart-coupon-input::placeholder { color: #aaaaaa; }

.brd-cart-coupon-btn {
    flex-shrink: 0;
    height: 44px;
    padding: 0 24px;
    margin-left: -22px;
    background: #e9f4ff;
    color: #206BB3;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #206BB3;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.brd-cart-coupon-btn:hover {
    background: #206BB3;
    color: #ffffff;
}

.brd-cart-coupon-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.brd-cart-coupon-msg {
    font-size: 12px;
    margin: 0;
    padding: 6px 10px;
    border-radius: 6px;
}

.brd-cart-coupon-msg.is-success { background: rgba(34, 154, 100, 0.08); color: #229a64; }
.brd-cart-coupon-msg.is-error   { background: rgba(217, 64, 64, 0.08); color: #d94040; }

/* Botão voltar à loja */
.brd-cart-back-btn {
    display: inline-block;
    align-self: flex-start;
    font-size: 15px;
    color: #666666;
    text-decoration: underline !important;
    transition: color 0.15s;
}

.brd-cart-back-btn:hover {
    color: #206BB3;
}

/* ── WooCommerce Cart Block — alinhamento mobile ──────────── */
/* O alignwide aplica margin: -20px em ambos os lados mas não expande a largura,
   deixando left=0 / right=40 (assimetria). Zeramos as margens negativas no mobile. */
@media (max-width: 768px) {
    .wp-block-woocommerce-cart {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

/* ── Mobile ────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .brd-cart-footer {
        grid-template-columns: 1fr;
    }

    /* dissolve o wrapper — shipping-calc e back-btn viram itens diretos do grid */
    .brd-cart-footer-left {
        display: contents;
    }

    .brd-cart-shipping-calc { order: -2; } /* 1º: logo abaixo dos itens */
    .brd-cart-footer-right  { order: -1; } /* 2º: resumo + checkout     */
    .brd-cart-back-btn      { order:  1; } /* 3º: voltar à loja         */
}

@media (max-width: 600px) {
    .brd-cart-item {
        grid-template-columns: 64px 1fr auto auto;
        gap: 0 10px;
        padding: 12px;
    }

    .brd-cart-item-img {
        width: 64px;
        height: 64px;
    }

    .brd-cart-item-sku--mobile {
        display: block;
        font-size: 11px;
        color: #6c6c6c;
        text-align: center;
        max-width: 64px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .brd-cart-item-sku--desktop { display: none; }

    .brd-cart-item-remove {
        top: auto;
        bottom: 10px;
    }

    .brd-cart-footer-left .brd-cart-coupon-form {
        padding-left: 0;
    }

    .brd-cart-page { padding: 16px 16px 40px; }
}

/* ── Modal Esvaziar Carrinho ───────────────────────────────── */
.brd-cart-clear-overlay[hidden],
.brd-cart-clear-modal[hidden] { display: none !important; }

.brd-cart-clear-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10100;
    animation: brd-modal-fade-in 0.2s ease;
}

.brd-cart-clear-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10101;
    width: 90%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    animation: brd-modal-slide-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.brd-clear-modal-brand {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #206BB3;
    margin: 0 0 12px;
}

.brd-clear-modal-msg {
    font-size: 15px;
    color: #333333;
    margin: 0 0 24px;
    line-height: 1.5;
}

.brd-clear-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.brd-clear-modal-btn {
    flex: 1;
    padding: 10px 0;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
}

.brd-clear-cancel          { background: #f0f0f0; color: #333333; border: 1.5px solid #cccccc; }
.brd-clear-cancel:hover,
.brd-clear-cancel:focus    { background: #e0e0e0; color: #333333; border-color: #cccccc; outline: none; box-shadow: none; }

.brd-clear-confirm         { background: #fde8e8; color: #991b1b; border: 1.5px solid #991b1b; }
.brd-clear-confirm:hover,
.brd-clear-confirm:focus   { background: #fcd4d4; color: #991b1b; border-color: #991b1b; outline: none; box-shadow: none; }

/* ── Validação de estoque no carrinho ── */
.brd-cart-stock-notice-wrap {
    margin-bottom: 12px;
}

#brd-cart-stock-notice .woocommerce-error {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    background: #fff2f2 !important;
    color: #c0392b !important;
    border: none !important;
    border-left: 4px solid #d63031 !important;
    border-radius: 4px !important;
    padding: 12px 16px !important;
    list-style: none !important;
    margin: 0 !important;
}

#brd-cart-stock-notice .woocommerce-error::before {
    flex-shrink: 0 !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
    color: #c0392b !important;
    margin-top: 2px !important;
}

#brd-cart-stock-notice .woocommerce-error > li {
    flex: 1 !important;
    min-width: 0 !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #c0392b !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

.brd-cart-item--stock-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ── Rodapé Minimal — movido para footer.css ── */
