/* =========================================================
   FRIALTO — CART PREMIUM (MARKETPLACE LEVEL)
========================================================= */

.woocommerce-cart {
  background: #f6f7f9;
}

/* GRID */
.fr-cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 1024px) {
  .fr-cart-grid {
    grid-template-columns: 1.6fr 1fr;
    align-items: start;
  }
}

/* =========================
   CARD DO PRODUTO
========================= */
.fr-cart-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

/* Imagem */
.fr-cart-thumb img {
  width: 100%;
  border-radius: 14px;
}

/* Conteúdo */
.fr-cart-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Título */
.fr-cart-title {
  font-size: 16px;
  font-weight: 800;
  color: #111;
}

/* =========================
   BLOCO PREMIUM — BOVINOS
========================= */
.fr-beef-box {
  background: #fff5f5;
  border: 1px solid rgba(228,16,14,.18);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
  font-size: 13px;
}

/* Linha */
.fr-beef-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fr-beef-row span {
  color: rgba(17,24,39,.7);
}

.fr-beef-row strong {
  color: #7f1d1d;
  font-weight: 800;
}

/* Nota */
.fr-beef-note {
  font-size: 12px;
  color: rgba(127,29,29,.8);
  line-height: 1.4;
  border-top: 1px dashed rgba(228,16,14,.3);
  padding-top: 8px;
}

/* =========================
   AÇÕES
========================= */
.fr-cart-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

/* Quantidade */
.fr-cart-qty input.qty {
  height: 42px;
  width: 72px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-weight: 700;
}

/* Subtotal */
.fr-cart-subtotal {
  margin-left: auto;
  font-weight: 900;
  font-size: 15px;
  color: #111;
}

/* Remover */
.fr-cart-remove {
  font-size: 12px;
  color: #ef4444;
  text-decoration: none;
  font-weight: 700;
}

/* =========================
   RESUMO
========================= */
.fr-cart-summary {
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
}

.fr-cart-summary h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 16px;
}

/* CTA */
.fr-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e4100e, #b90d0b);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  margin-top: 14px;
  box-shadow: 0 16px 36px rgba(228,16,14,.45);
}

/* Nota final */
.fr-cart-note {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(17,24,39,.65);
  line-height: 1.4;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 640px) {
  .fr-cart-card {
    grid-template-columns: 1fr;
  }

  .fr-cart-thumb {
    max-width: 160px;
  }

  .fr-cart-subtotal {
    margin-left: 0;
  }
}
/* ========================================
   RESUMO — TEXTO PADRÃO FRIALTO
======================================== */

/* Troca visual de "Remessa" para "Enviar para" */
.woocommerce-cart .cart_totals th {
  font-size: 0;
}

.woocommerce-cart .cart_totals th::after {
  content: "Enviar para";
  font-size: 14px;
  font-weight: 700;
  color: #111;
}
/* ========================================
   RESUMO — BOTÃO ÚNICO (FRIALTO)
======================================== */

/* Remove botão duplicado */
.woocommerce-cart .wc-proceed-to-checkout + .fr-cart-note,
.woocommerce-cart .fr-cart-note + a {
  display: none !important;
}

/* Botão principal */
.woocommerce-cart .wc-proceed-to-checkout a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e4100e, #b90d0b);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(228,16,14,.45);
  transition: all .25s ease;
}

/* Hover premium */
.woocommerce-cart .wc-proceed-to-checkout a:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(228,16,14,.55);
}
/* ========================================
   RESUMO — TIPOGRAFIA & HIERARQUIA
======================================== */

.woocommerce-cart .cart_totals h2 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 16px;
}

.woocommerce-cart .cart_totals table {
  border-radius: 14px;
  overflow: hidden;
}

.woocommerce-cart .cart_totals td,
.woocommerce-cart .cart_totals th {
  padding: 14px 12px;
  font-size: 14px;
}

.woocommerce-cart .order-total td {
  font-size: 18px;
  font-weight: 900;
  color: #111;
}
/* ========================================
   RESUMO — LIMPEZA TOTAL DOS TH
======================================== */

/* Remove qualquer texto do lado esquerdo */
.woocommerce-cart .cart_totals th {
  display: none !important;
}

/* Ajusta células de valor */
.woocommerce-cart .cart_totals td {
  padding-left: 0;
}
/* ========================================
   RESUMO — LIMPEZA TOTAL DOS TH
======================================== */

/* Remove qualquer texto do lado esquerdo */
.woocommerce-cart .cart_totals th {
  display: none !important;
}

/* Ajusta células de valor */
.woocommerce-cart .cart_totals td {
  padding-left: 0;
}


/* ========================================
   BOTÃO CTA — ÍCONE PREMIUM
======================================== */

.woocommerce-cart .wc-proceed-to-checkout a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  height: 56px;
  padding: 0 32px;

  border-radius: 999px;
  background: linear-gradient(135deg, #e4100e, #b90d0b);
  color: #fff;

  font-weight: 800;
  font-size: 16px;
  text-decoration: none;

  box-shadow: 0 16px 36px rgba(228,16,14,.45);
  transition: all .25s ease;
}

/* Ícone */
.woocommerce-cart .wc-proceed-to-checkout a::before {
  content: "\f0c7"; /* ícone de caixa */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 18px;

  transition: transform .25s ease;
}

/* Hover */
.woocommerce-cart .wc-proceed-to-checkout a:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(228,16,14,.55);
}

.woocommerce-cart .wc-proceed-to-checkout a:hover::before {
  transform: scale(1.1) rotate(-5deg);
}


/* ========================================
   REMOVE BOTÃO DUPLICADO
======================================== */

.woocommerce-cart .fr-cart-note,
.woocommerce-cart .fr-cart-note + a {
  display: none !important;
}
/* ============================================================
 * CESTA — REMOVER BOTÃO SECUNDÁRIO (duplicado)
 * ============================================================ */
.woocommerce-cart .wc-proceed-to-checkout + .cart-actions,
.woocommerce-cart .cart-actions,
.woocommerce-cart button[name="proceed"],
.woocommerce-cart .fr-secondary-checkout,
.woocommerce-cart .button-secondary,
.woocommerce-cart .cart .button:not(.checkout-button) {
    display: none !important;
}

/* BOTÃO PRINCIPAL - CARRINHO E CHECKOUT (FRIALTO) */

/* Botão "Finalizar Pedido" no carrinho */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border-radius: 999px;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    background: linear-gradient(90deg, #FF6B00, #E80000);
    color: #FFFFFF !important;
    box-shadow: 0 12px 30px rgba(255, 80, 80, 0.4);
    text-decoration: none !important;
    transition: filter 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

/* Botão "Finalizar Pedido" no checkout (place order) */
.woocommerce-checkout #place_order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border-radius: 999px;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    background: linear-gradient(90deg, #FF6B00, #E80000);
    color: #FFFFFF !important;
    box-shadow: 0 12px 30px rgba(255, 80, 80, 0.4);
    text-decoration: none !important;
    transition: filter 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

/* Hover para ambos */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-checkout #place_order:hover {
    filter: brightness(1.07);
    transform: translateY(-2px);
}

/* Espaçamento do bloco do botão no carrinho */
.woocommerce-cart .wc-proceed-to-checkout {
    margin-top: 18px;
}