/**
 * CSS Customizado - Layout da Loja Destake
 * 
 * INSTALAÇÃO:
 * 1. Vá em Aparência > Personalizar > CSS Adicional
 * 2. Cole este código
 * 3. Clique em Publicar
 * 
 * OU adicione no style.css do child theme
 */

/* ========================================
   CARDS DE PRODUTOS - PADRONIZAÇÃO
   ======================================== */

/* Container dos produtos */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    /* Largura mínima aumentada */
    gap: 2.5rem !important;
    padding: 0 !important;
    margin: 2rem 0 !important;
}

/* REMOVER CARDS VAZIOS/INVISÍVEIS */
.woocommerce ul.products li.product:not(:has(img)),
.woocommerce ul.products li.product:not(:has(a)),
.woocommerce ul.products li.product[style*="display: none"],
.woocommerce ul.products li.product.invisible,
.woocommerce ul.products li.product:empty {
    display: none !important;
}

/* Produtos sem conteúdo visível */
.woocommerce ul.products li.product {
    min-height: 400px;
    /* Se menor que isso, provavelmente está vazio */
}

.woocommerce ul.products li.product:not(:has(.woocommerce-loop-product__title)) {
    display: none !important;
}

/* Card individual do produto */
.woocommerce ul.products li.product {
    background: #fff !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 500px !important;
    /* Altura mínima ao invés de fixa */
    max-height: 550px !important;
    /* Altura máxima */
    width: 100% !important;
    /* Garantir largura total */
    position: relative !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 40px rgba(255, 0, 120, 0.2) !important;
}

/* ========================================
   IMAGEM DO PRODUTO
   ======================================== */

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    /* Garantir largura total */
}

.woocommerce ul.products li.product img {
    width: 100% !important;
    height: 320px !important;
    /* Altura da imagem aumentada */
    object-fit: cover !important;
    border-radius: 20px 20px 0 0 !important;
    transition: transform 0.3s ease !important;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05) !important;
}

/* ========================================
   TÍTULO DO PRODUTO - CORREÇÃO
   ======================================== */

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 1rem 1.5rem 0.5rem 1.5rem !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    min-height: 50px !important;
    max-height: 50px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    width: calc(100% - 3rem) !important;
    /* Largura menos as margens laterais */
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    /* Quebra palavras longas */
    word-break: break-word !important;
    /* Força quebra se necessário */
    overflow-wrap: break-word !important;
    /* Compatibilidade */
    hyphens: auto !important;
    /* Adiciona hífens automaticamente */
}

/* ========================================
   PREÇO DO PRODUTO
   ======================================== */

.woocommerce ul.products li.product .price {
    color: #FF0078 !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    margin: 0.5rem 1.5rem !important;
    /* PADDING LATERAL ADICIONADO */
    padding: 0 !important;
    display: block !important;
}

.woocommerce ul.products li.product .price del {
    color: #999 !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    margin-right: 0.5rem !important;
}

/* ========================================
   BOTÃO "VER OPÇÕES" - CORREÇÃO
   ======================================== */

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button {
    background: linear-gradient(135deg, #FF0078 0%, #ff3d9a 100%) !important;
    color: #fff !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 25px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: block !important;
    margin: auto 1.5rem 1.5rem 1.5rem !important;
    /* MARGEM LATERAL ADICIONADA */
    box-shadow: 0 5px 20px rgba(255, 0, 120, 0.3) !important;
    width: calc(100% - 3rem) !important;
    /* Largura total menos as margens */
    margin-top: auto !important;
    /* Empurra o botão para o final */
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover {
    background: linear-gradient(135deg, #ff3d9a 0%, #FF0078 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(255, 0, 120, 0.4) !important;
    color: #fff !important;
}

/* ========================================
   BADGE DE DESCONTO/NOVO
   ======================================== */

.woocommerce ul.products li.product .onsale {
    background: linear-gradient(135deg, #FF0078 0%, #ff3d9a 100%) !important;
    color: #fff !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 10 !important;
    box-shadow: 0 5px 15px rgba(255, 0, 120, 0.4) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* ========================================
   RATING (AVALIAÇÕES)
   ======================================== */

.woocommerce ul.products li.product .star-rating {
    color: #FFB800 !important;
    margin: 0.5rem 1.5rem !important;
    /* PADDING LATERAL ADICIONADO */
}

/* ========================================
   ÁREA DE CONTEÚDO DO CARD
   ======================================== */

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    padding: 0 !important;
    /* Remove padding do link */
}

/* Área de texto/preço/botão */
.woocommerce ul.products li.product>a:not(.woocommerce-loop-product__link) {
    padding: 1rem 1.5rem !important;
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

/* Desktop grande - 4 colunas */
@media (min-width: 1200px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Desktop médio - 3 colunas */
@media (min-width: 992px) and (max-width: 1199px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {

    /* Grid em 2 colunas no tablet */
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    /* Ajustar altura dos cards */
    .woocommerce ul.products li.product {
        min-height: 450px !important;
        max-height: 500px !important;
    }

    /* Ajustar altura da imagem */
    .woocommerce ul.products li.product img {
        height: 250px !important;
    }

    /* Reduzir tamanho da fonte */
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 1rem !important;
        margin: 0.8rem 1rem 0.5rem 1rem !important;
    }

    .woocommerce ul.products li.product .price {
        font-size: 1.3rem !important;
        margin: 0.5rem 1rem !important;
    }

    .woocommerce ul.products li.product .button {
        margin: auto 1rem 1rem 1rem !important;
        width: calc(100% - 2rem) !important;
        font-size: 0.9rem !important;
        padding: 0.7rem 1.2rem !important;
    }
}

@media (max-width: 480px) {

    /* Grid em 1 coluna no mobile */
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Ajustar altura dos cards */
    .woocommerce ul.products li.product {
        min-height: 480px !important;
        max-height: 540px !important;
    }

    /* Imagem maior no mobile */
    .woocommerce ul.products li.product img {
        height: 300px !important;
    }
}

/* ========================================
   PRODUTOS SEM ESTOQUE
   ======================================== */

.woocommerce ul.products li.product.outofstock {
    opacity: 0.7 !important;
    position: relative !important;
}

.woocommerce ul.products li.product.outofstock::after {
    content: 'Esgotado' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: #fff !important;
    padding: 1rem 2rem !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    z-index: 100 !important;
}

/* ========================================
   LOADING/HOVER STATES
   ======================================== */

.woocommerce ul.products li.product {
    animation: fadeIn 0.5s ease-in-out !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   FIX PARA TEMAS/PLUGINS CONFLITANTES
   ======================================== */

/* Remover margens/paddings conflitantes */
.woocommerce ul.products li.product * {
    box-sizing: border-box !important;
}

/* CRÍTICO: Garantir que NADA ultrapasse o card */
.woocommerce ul.products li.product,
.woocommerce ul.products li.product * {
    max-width: 100% !important;
}

/* Garantir que o título não quebre layout */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
    /* Permitir quebra de linha */
}

/* Prevenir overflow horizontal */
.woocommerce ul.products li.product {
    overflow: hidden !important;
}

/* Centralizar conteúdo se necessário */
.woocommerce ul.products li.product .button {
    text-align: center !important;
}

/* ========================================
   ORDENAÇÃO E FILTROS
   ======================================== */

.woocommerce-ordering,
.woocommerce-result-count {
    margin: 1rem 0 !important;
    padding: 0 1rem !important;
}

.woocommerce-ordering select {
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 0.7rem 1rem !important;
    font-size: 0.95rem !important;
    transition: all 0.3s !important;
}

.woocommerce-ordering select:focus {
    outline: none !important;
    border-color: #FF0078 !important;
    box-shadow: 0 0 5px rgba(255, 0, 120, 0.3) !important;
}

/* ========================================
   FIX ADICIONAL PARA TÍTULOS LONGOS
   ======================================== */

/* Força contenção do título dentro do card */
.woocommerce ul.products li.product h2.woocommerce-loop-product__title,
.woocommerce ul.products li.product h3.woocommerce-loop-product__title {
    max-width: calc(100% - 3rem) !important;
    /* Garante espaço lateral */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    /* Quebra em qualquer ponto se necessário */
    font-size: 1rem !important;
    /* Reduzir fonte levemente */
}

/* Para títulos muito longos */
.woocommerce ul.products li.product a .woocommerce-loop-product__title {
    display: block !important;
    width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

/* Garantir que links não quebrem o layout */
.woocommerce ul.products li.product a {
    max-width: 100% !important;
    overflow: hidden !important;
}

/* ========================================
   REMOVER ESPAÇOS VAZIOS NO GRID
   ======================================== */

/* Ocultar produtos sem imagem ou título */
.woocommerce ul.products li.product:not(:has(img)) {
    display: none !important;
}

.woocommerce ul.products li.product:not(:has(.woocommerce-loop-product__title)) {
    display: none !important;
}

/* Ocultar produtos marcados como invisíveis */
.woocommerce ul.products li.product.invisible,
.woocommerce ul.products li.product[aria-hidden="true"],
.woocommerce ul.products li.product[style*="visibility: hidden"],
.woocommerce ul.products li.product[style*="display: none"] {
    display: none !important;
}

/* Ocultar produtos vazios */
.woocommerce ul.products li.product:empty {
    display: none !important;
}

/* Ocultar elementos de preenchimento (placeholders) */
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last {
    /* Não ocultar automaticamente, apenas se estiver vazio */
}

.woocommerce ul.products li.product.first:empty,
.woocommerce ul.products li.product.last:empty {
    display: none !important;
}

/* Compactar grid removendo espaços vazios */
.woocommerce ul.products {
    grid-auto-flow: dense !important;
    /* Preenche buracos no grid */
}

/* ========================================
   RENOVAÇÃO VISUAL PREMIUM - DESTAQUE
   ======================================== */

.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table {
    border: none !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
}

.wcbcf-shipping-method-selector {
    display: flex !important;
    list-style: none !important;
    gap: 10px !important;
    margin-bottom: 30px !important;
    background: #f8f9fa !important;
    padding: 8px !important;
    border-radius: 50px !important;
}

.wcbcf-shipping-method-selector a {
    background: transparent !important;
    padding: 12px 20px !important;
    border-radius: 40px !important;
    font-weight: 700 !important;
    color: #888 !important;
    text-decoration: none !important;
}

.wcbcf-shipping-method-selector li.active a {
    background: #FF0078 !important;
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(255, 0, 120, 0.3) !important;
}

.woocommerce-cart .cart_totals,
.checkout-summary-column .summary-card {
    border-radius: 25px !important;
    padding: 30px !important;
    background: #fff !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08) !important;
}

/* ========================================
   FIX CHECKOUT - MARGENS E LAYOUT
   ======================================== */

.woocommerce-checkout,
.woocommerce-cart,
.elementor-widget-woocommerce-checkout-page {
    padding-top: 60px !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

#customer_details,
#order_review {
    margin-top: 30px !important;
}

/* Botões de Envio e Retirada */
.wcbcf-shipping-method-selector {
    display: flex !important;
    gap: 10px !important;
    padding: 8px !important;
    background: #f1f1f1 !important;
    border-radius: 12px !important;
    list-style: none !important;
}

.wcbcf-shipping-method-selector li {
    flex: 1;
}

.wcbcf-shipping-method-selector li a {
    text-align: center !important;
    padding: 12px !important;
    display: block !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    color: #666 !important;
}

.wcbcf-shipping-method-selector li.active a {
    background: #fff !important;
    color: #FF0078 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

#order_review {
    background: #fff !important;
    padding: 30px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06) !important;
}

/* ========================================
   FIX v4.2: CARRINHO MOBILE E DESKTOP
   ======================================== */

/* Remove conflitos da vitrine no carrinho */
.woocommerce-cart table.shop_table,
.woocommerce-cart table.shop_table * {
    display: revert;
    box-sizing: border-box;
}

.woocommerce-cart table.shop_table img {
    max-width: 100%;
    height: auto;
}

/* Remove espaço excessivo — prioridade máxima sobre woocommerce-page */
body.woocommerce-cart {
    padding-top: 70px !important;
}
body.woocommerce-cart .site-content,
body.woocommerce-cart #content,
body.woocommerce-cart #main,
body.woocommerce-cart .site-main,
body.woocommerce-cart .entry-content {
    padding-top: 20px !important;
    margin-top: 0 !important;
}

/* ============================================================
   FIX FOOTER: apenas na página do carrinho
   O footer nas outras páginas já está correto — não alterar
============================================================ */
body.woocommerce-cart .footer-destake {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.woocommerce-cart .page-title,
body.woocommerce-cart .entry-title,
body.woocommerce-cart .woocommerce > h1 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Container do carrinho */
body.woocommerce-cart .woocommerce {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px 80px !important;
}

/* Grid desktop: produtos + resumo lado a lado */
@media (min-width: 992px) {
    body.woocommerce-cart .woocommerce {
        display: grid !important;
        grid-template-columns: 1fr 360px !important;
        gap: 30px !important;
        align-items: flex-start !important;
    }
    body.woocommerce-cart .cart-collaterals {
        position: sticky !important;
        top: 100px !important;
    }
}

/* Card da lista de produtos */
body.woocommerce-cart .woocommerce-cart-form {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 25px !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08) !important;
}

/* Cada item do carrinho */
body.woocommerce-cart .woocommerce-cart-form__cart-item,
body.woocommerce-cart table.shop_table tbody tr,
body.woocommerce-cart table.shop_table_responsive tbody tr {
    display: grid !important;
    grid-template-columns: 90px 1fr auto !important;
    gap: 15px !important;
    align-items: center !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: transparent !important;
}

body.woocommerce-cart .woocommerce-cart-form__cart-item td,
body.woocommerce-cart table.shop_table tbody tr td,
body.woocommerce-cart table.shop_table_responsive tbody tr td {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Nome do produto */
body.woocommerce-cart .product-name a {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    display: block !important;
    line-height: 1.3 !important;
}

/* Remove descrição duplicada/short description do produto no carrinho
   Cobre: <p>, <span>, <div> injetados por WooCommerce ou plugins */
body.woocommerce-cart .product-name p:not(.variation):not(.wc-item-meta),
body.woocommerce-cart .product-name > p,
body.woocommerce-cart .product-name > span:not(.variation):not(.wc-item-meta):not(.amount),
body.woocommerce-cart .product-name > div:not(.variation):not(.wc-item-meta) {
    display: none !important;
}

/* Variações (tamanho, cor) */
body.woocommerce-cart .product-name .variation,
body.woocommerce-cart .product-name .wc-item-meta {
    font-size: 0.85rem !important;
    color: #666 !important;
    margin-top: 4px !important;
    line-height: 1.3 !important;
    display: block !important;
}

body.woocommerce-cart .product-name .variation dt,
body.woocommerce-cart .product-name .variation dd {
    display: inline !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

/* Preço */
body.woocommerce-cart .product-price,
body.woocommerce-cart .product-subtotal {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: #FF0078 !important;
    white-space: nowrap !important;
}

/* Imagem do produto */
body.woocommerce-cart .product-thumbnail img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
}

/* Quantidade */
body.woocommerce-cart .product-quantity .quantity {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    width: auto !important;
}

body.woocommerce-cart .product-quantity .quantity input {
    width: 45px !important;
    height: 38px !important;
    border: none !important;
    text-align: center !important;
    font-weight: 700 !important;
    -moz-appearance: textfield !important;
}

body.woocommerce-cart .product-quantity .quantity input::-webkit-outer-spin-button,
body.woocommerce-cart .product-quantity .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Botão remover */
body.woocommerce-cart .product-remove a.remove {
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #999 !important;
    border-radius: 10px !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    background: transparent !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

body.woocommerce-cart .product-remove a.remove:hover {
    background: #ffeef5 !important;
    color: #FF0078 !important;
}

/* Cupom */
body.woocommerce-cart .coupon {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px solid #f0f0f0 !important;
}

body.woocommerce-cart .coupon input {
    flex: 1 !important;
    min-width: 140px !important;
    padding: 10px 16px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50px !important;
    font-size: 0.95rem !important;
}

body.woocommerce-cart .coupon input:focus {
    border-color: #FF0078 !important;
    outline: none !important;
}

body.woocommerce-cart .coupon button,
body.woocommerce-cart button[name="update_cart"] {
    background: #FF0078 !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

body.woocommerce-cart .coupon button:hover,
body.woocommerce-cart button[name="update_cart"]:hover {
    background: #e6006c !important;
    transform: translateY(-2px) !important;
}

/* Resumo do pedido */
body.woocommerce-cart .cart-collaterals,
body.woocommerce-cart .cart_totals {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 25px !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08) !important;
    width: 100% !important;
    float: none !important;
}

body.woocommerce-cart .cart-collaterals h2,
body.woocommerce-cart .cart_totals h2 {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    color: #1a1a1a !important;
}

body.woocommerce-cart .cart-collaterals table,
body.woocommerce-cart .cart_totals table {
    border: none !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

body.woocommerce-cart .cart-collaterals table tr,
body.woocommerce-cart .cart_totals table tr {
    border-bottom: 1px solid #f0f0f0 !important;
}

body.woocommerce-cart .cart-collaterals table tr th,
body.woocommerce-cart .cart_totals table tr th,
body.woocommerce-cart .cart-collaterals table tr td,
body.woocommerce-cart .cart_totals table tr td {
    padding: 12px 0 !important;
    border: none !important;
    background: transparent !important;
}

body.woocommerce-cart .cart-collaterals table tr td,
body.woocommerce-cart .cart_totals table tr td {
    text-align: right !important;
    font-weight: 700 !important;
}

body.woocommerce-cart .cart-collaterals table tr.order-total td,
body.woocommerce-cart .cart_totals table tr.order-total td,
body.woocommerce-cart .cart-collaterals table tr.order-total th,
body.woocommerce-cart .cart_totals table tr.order-total th {
    font-size: 1.2rem !important;
    color: #FF0078 !important;
}

/* Botão checkout ROSA */
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart a.checkout-button {
    width: 100% !important;
    background: linear-gradient(135deg, #FF0078 0%, #ff3d9a 100%) !important;
    color: #fff !important;
    padding: 14px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    text-align: center !important;
    display: block !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(255, 0, 120, 0.3) !important;
    transition: all 0.3s ease !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-cart a.checkout-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 40px rgba(255, 0, 120, 0.4) !important;
    background: linear-gradient(135deg, #ff3d9a 0%, #FF0078 100%) !important;
}

/* ==============================
   MOBILE: CARRINHO (override final)
   ============================== */
@media (max-width: 768px) {
    body.woocommerce-cart .page-title,
    body.woocommerce-cart .entry-title,
    body.woocommerce-cart .woocommerce > h1 {
        font-size: 22px !important;
        text-align: center !important;
        margin: 10px 0 !important;
    }

    body.woocommerce-cart .woocommerce-cart-form__cart-item,
    body.woocommerce-cart table.shop_table tbody tr,
    body.woocommerce-cart table.shop_table_responsive tbody tr,
    body.woocommerce-cart .cart_item {
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 10px !important;
        gap: 8px !important;
        padding: 12px 0 !important;
    }

    body.woocommerce-cart .product-name,
    body.woocommerce-cart .product-name a {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    body.woocommerce-cart .product-quantity .quantity,
    body.woocommerce-cart .quantity {
        margin-top: 5px !important;
    }

    body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
    body.woocommerce-cart a.checkout-button {
        width: 100% !important;
        padding: 12px !important;
        font-size: 16px !important;
    }

    body.woocommerce-cart .woocommerce {
        display: block !important;
        padding: 0 15px 60px !important;
    }

    body.woocommerce-cart .woocommerce-cart-form {
        padding: 20px !important;
    }

    body.woocommerce-cart .cart-collaterals,
    body.woocommerce-cart .cart_totals {
        margin-top: 20px !important;
        padding: 20px !important;
    }

    body.woocommerce-cart .product-thumbnail img {
        width: 70px !important;
        height: 70px !important;
    }

    body.woocommerce-cart .product-price,
    body.woocommerce-cart .product-subtotal {
        font-size: 1.1rem !important;
    }
}
