/**
 * Custom Store Stylings - Partiu Nerds
 * Centralizes styles for buy boxes, quantity selectors, checkout trust bars, and PIX discounts.
 */

/* Buy Box Container (Single Product & Loops) */
.fika-main-buy-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    width: 100%;
}

/* Quantity Row Wrapper (Seletor Horizontal Premium) */
.fika-qty-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 8px !important;
    background-color: #F8FAFC !important;
    height: 40px !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Reset da div do input do WooCommerce no meio */
.fika-qty-row .quantity {
    order: 2 !important; /* Força a ficar no meio */
    flex: 1 !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

/* Ocultação de spinners nativos */
.fika-qty-row .quantity input.qty::-webkit-outer-spin-button,
.fika-qty-row .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fika-qty-row .quantity input.qty {
    -moz-appearance: textfield;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1E293B !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Botões +/- nas extremidades da linha */
.fika-qty-row button.qty-btn {
    width: 36px !important;
    height: 100% !important;
    border: none !important;
    background-color: #E2E8F0 !important;
    color: #475569 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.fika-qty-row button.qty-btn:hover {
    background-color: #CBD5E1 !important;
    color: #0F7569 !important;
}

.fika-qty-row button.qty-btn:active {
    background-color: #94A3B8 !important;
}

.fika-qty-row button.qty-btn.minus {
    order: 1 !important; /* Força a ficar na extrema esquerda */
    border-right: 1.5px solid #CBD5E1 !important;
}

.fika-qty-row button.qty-btn.plus {
    order: 3 !important; /* Força a ficar na extrema direita */
    border-left: 1.5px solid #CBD5E1 !important;
}


/* WooCommerce Loop Add to Cart Button Adjustment (Suporta a e button) */
.fika-main-buy-box .add_to_cart_button,
.fika-main-buy-box button.button.add_to_cart_button,
.fika-main-buy-box a.add_to_cart_button {
    height: 40px !important;
    padding: 0 16px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 13px !important;
    background-color: #128C7E !important;
    color: #FFFFFF !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 4px rgba(18, 140, 126, 0.12) !important;
    line-height: 1 !important;
}

.fika-main-buy-box .add_to_cart_button:hover,
.fika-main-buy-box button.button.add_to_cart_button:hover,
.fika-main-buy-box a.add_to_cart_button:hover {
    background-color: #0F7569 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 8px rgba(18, 140, 126, 0.2) !important;
}

.fika-main-buy-box .add_to_cart_button:active,
.fika-main-buy-box a.add_to_cart_button:active {
    transform: scale(0.98) !important;
}



/* Checkout Trust Bar */
.fika-trust-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background-color: #FAFAFA;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    padding: 14px;
    margin-top: 20px;
}

.fika-trust-bar .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555555;
    font-weight: 500;
}

.fika-trust-bar .trust-item i {
    color: #128C7E;
    font-size: 15px;
}

/* =================================================================
   RESPONSIVIDADE: COMPRAR & QUANTIDADE EM VITRINES ESTREITAS (5 COLUNAS)
   ================================================================= */
ul.products li.product .fika-main-buy-box,
.jet-woo-products .jet-woo-builder-product .fika-main-buy-box,
.related.products li.product .fika-main-buy-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px;
    margin: 10px 0;
    width: 100% !important;
}

ul.products li.product .fika-qty-row,
.jet-woo-products .jet-woo-builder-product .fika-qty-row,
.related.products li.product .fika-qty-row {
    width: 100% !important;
    justify-content: center;
    background-color: #F7F7F7;
}

ul.products li.product .add_to_cart_button,
.jet-woo-products .jet-woo-builder-product .add_to_cart_button,
.related.products li.product .add_to_cart_button {
    display: flex !important;
    width: 100% !important;
    flex: 1 1 100% !important;
    text-align: center;
    justify-content: center;
}

/* =================================================================
   ESTILIZAÇÃO DO BOTÃO VOLTAR AO TOPO (BACK TO TOP)
   ================================================================= */
.pn-back-to-top {
    position: fixed;
    bottom: 96px; /* Alinhado exatamente acima do balão do WhatsApp (60px + 24px + 12px) */
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #FFFFFF;
    color: #128C7E;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999999; /* acima do container do WhatsApp (999998), que ocupa altura mesmo fechado */
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease, color 0.2s ease;
    padding: 0;
    margin: 0;
    outline: none;
}

.pn-back-to-top:hover {
    background-color: #128C7E;
    color: #FFFFFF;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 16px rgba(18, 140, 126, 0.3);
}

.pn-back-to-top:active {
    transform: scale(0.95);
}

.pn-back-to-top svg {
    display: block;
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.pn-back-to-top:hover svg {
    transform: translateY(-1px);
}

/* Estados de Visibilidade */
.pn-btt-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.8);
    pointer-events: none;
}

.pn-btt-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

@media (max-width: 480px) {
    .pn-back-to-top {
        bottom: 88px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

/* Carrinho/checkout não têm o balão do WhatsApp: back-to-top desce para a
   posição inferior em vez de flutuar no lugar reservado ao WhatsApp. */
body.woocommerce-cart .pn-back-to-top,
body.woocommerce-checkout .pn-back-to-top {
    bottom: 24px;
}
@media (max-width: 480px) {
    body.woocommerce-cart .pn-back-to-top,
    body.woocommerce-checkout .pn-back-to-top {
        bottom: 16px;
    }
}

/* =================================================================
   PÁGINA DO PRODUTO ÚNICO (SINGLE PRODUCT) - LAYOUT LADO A LADO
   ================================================================= */
.single-product .fika-main-buy-box {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important; /* Permite quebra de linha para calculadoras ou extras */
    align-items: center !important;
    gap: 16px !important;
    margin: 20px 0 !important;
    width: 100% !important;
    max-width: 450px !important;
}

/* Garante que qualquer outro elemento (como calculadoras de frete, tags, etc.) */
/* dentro da caixa de compras ocupe 100% da largura e fique embaixo */
.single-product .fika-main-buy-box > :not(.fika-qty-row):not(.single_add_to_cart_button):not(.add_to_cart_button) {
    flex: 0 0 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Seletor de Quantidade formato Pill Premium no Single Product */
.single-product .fika-qty-row {
    width: 120px !important;
    height: 44px !important;
    border-radius: 22px !important; /* Formato Pill perfeito */
    border: 1.5px solid #CBD5E1 !important;
    background-color: #F8FAFC !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
}

.single-product .fika-qty-row .quantity {
    order: 2 !important;
    flex: 1 !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

.single-product .fika-qty-row .quantity input.qty {
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #1E293B !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.single-product .fika-qty-row button.qty-btn {
    width: 36px !important;
    height: 100% !important;
    border: none !important;
    background-color: transparent !important;
    color: #64748B !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.single-product .fika-qty-row button.qty-btn:hover {
    background-color: #E2E8F0 !important;
    color: #128C7E !important;
}

.single-product .fika-qty-row button.qty-btn.minus {
    order: 1 !important;
    border-right: 1px solid #E2E8F0 !important;
    border-radius: 22px 0 0 22px !important;
}

.single-product .fika-qty-row button.qty-btn.plus {
    order: 3 !important;
    border-left: 1px solid #E2E8F0 !important;
    border-radius: 0 22px 22px 0 !important;
}

.single-product button.single_add_to_cart_button,
.single-product .fika-main-buy-box button.single_add_to_cart_button,
.single-product .fika-main-buy-box .add_to_cart_button {
    flex: 1 !important;
    height: 44px !important;
    padding: 0 24px !important;
    border-radius: 22px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 14px !important;
    background-color: #128C7E !important;
    color: #FFFFFF !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 10px rgba(18, 140, 126, 0.2) !important;
}

.single-product button.single_add_to_cart_button:hover,
.single-product .fika-main-buy-box button.single_add_to_cart_button:hover,
.single-product .fika-main-buy-box .add_to_cart_button:hover {
    background-color: #0F7569 !important;
    box-shadow: 0 6px 16px rgba(18, 140, 126, 0.3) !important;
}

/* =================================================================
   GAMIFICAÇÃO: LOOT CARDS DOS PRODUTOS (VITRINES) - DESIGN PREMIUM RPG
   ================================================================= */

/* 1. Efeito de Tabuleiro de Jogo / Card RPG no Card do Produto */
ul.products li.product,
.jet-woo-products .jet-woo-builder-product,
.related.products li.product {
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 16px !important;
    background-color: #FFFFFF !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
}

ul.products li.product:hover,
.jet-woo-products .jet-woo-builder-product:hover,
.related.products li.product:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: rgba(18, 140, 126, 0.4) !important;
    box-shadow: 0 16px 36px rgba(18, 140, 126, 0.12), 0 8px 18px rgba(74, 217, 84, 0.08) !important;
}

/* 2. Zoom Dinâmico 3D da Imagem do Produto */
ul.products li.product img,
.jet-woo-products .jet-woo-builder-product img,
.related.products li.product img {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* 3. Caixa de Compra Lado a Lado (Horizontal Compacto) */
ul.products li.product .fika-main-buy-box,
.jet-woo-products .jet-woo-builder-product .fika-main-buy-box,
.related.products li.product .fika-main-buy-box {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin: 14px 0 0 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Seletor de Quantidade compacto (formato Pill / Console Game) */
ul.products li.product .fika-qty-row,
.jet-woo-products .jet-woo-builder-product .fika-qty-row,
.related.products li.product .fika-qty-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 20px !important; /* Pill shape */
    background-color: #F8FAFC !important;
    height: 38px !important;
    width: 90px !important; /* Largura extremamente compacta para caber lado a lado */
    flex-shrink: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    box-shadow: none !important;
}

ul.products li.product .fika-qty-row .quantity,
.jet-woo-products .jet-woo-builder-product .fika-qty-row .quantity,
.related.products li.product .fika-qty-row .quantity {
    display: flex !important;
    flex: 1 !important;
    width: auto !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

ul.products li.product .fika-qty-row .quantity input.qty,
.jet-woo-products .jet-woo-builder-product .fika-qty-row .quantity input.qty,
.related.products li.product .fika-qty-row .quantity input.qty {
    display: block !important;
    width: 100% !important;
    max-width: 38px !important; /* Input estreito */
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #1E293B !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

ul.products li.product .fika-qty-row button.qty-btn,
.jet-woo-products .jet-woo-builder-product .fika-qty-row button.qty-btn,
.related.products li.product .fika-qty-row button.qty-btn {
    width: 26px !important; /* Botões pequenos redondos nas extremidades */
    height: 100% !important;
    border: none !important;
    background-color: transparent !important;
    color: #64748B !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    outline: none !important;
}

ul.products li.product .fika-qty-row button.qty-btn:hover,
.jet-woo-products .jet-woo-builder-product .fika-qty-row button.qty-btn:hover,
.related.products li.product .fika-qty-row button.qty-btn:hover {
    background-color: #E2E8F0 !important;
    color: #128C7E !important;
}

ul.products li.product .fika-qty-row button.qty-btn.minus,
.jet-woo-products .jet-woo-builder-product .fika-qty-row button.qty-btn.minus {
    order: 1 !important;
    border-right: 1.5px solid #CBD5E1 !important;
    border-radius: 20px 0 0 20px !important;
}

ul.products li.product .fika-qty-row button.qty-btn.plus,
.jet-woo-products .jet-woo-builder-product .fika-qty-row button.qty-btn.plus {
    order: 3 !important;
    border-left: 1.5px solid #CBD5E1 !important;
    border-radius: 0 20px 20px 0 !important;
}

/* Botão de Compra Compacto e Arredondado (Pill / Botão de Console) */
ul.products li.product .fika-main-buy-box .add_to_cart_button,
.jet-woo-products .jet-woo-builder-product .fika-main-buy-box .add_to_cart_button,
.related.products li.product .fika-main-buy-box .add_to_cart_button {
    flex: 1 !important; /* Ocupa todo o espaço restante */
    height: 38px !important;
    padding: 0 12px !important;
    border-radius: 20px !important; /* Pill shape */
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 11px !important; /* Fonte compacta para caber "COMPRAR" lado a lado */
    background-color: #128C7E !important;
    color: #FFFFFF !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 6px rgba(18, 140, 126, 0.15) !important;
    margin: 0 !important;
    line-height: 1 !important;
}

ul.products li.product .fika-main-buy-box .add_to_cart_button:hover,
.jet-woo-products .jet-woo-builder-product .fika-main-buy-box .add_to_cart_button:hover {
    background-color: #0F7569 !important;
    box-shadow: 0 4px 12px rgba(18, 140, 126, 0.3) !important;
}

/* =================================================================
   ESPAÇAMENTO EXCLUSIVO DA CAIXA DE COMPRAS (.fika-main-buy-box)
   Garante apenas o afastamento dos botões inferiores e quantidades
   ================================================================= */
ul.products li.product .fika-main-buy-box,
.jet-woo-products .jet-woo-builder-product .fika-main-buy-box,
.related.products li.product .fika-main-buy-box {
    margin-left: 16px !important;
    margin-right: 16px !important;
    margin-bottom: 16px !important; /* Espaçamento da borda inferior do card */
    width: calc(100% - 32px) !important;
    box-sizing: border-box !important;
}

/* =================================================================
   VITRINES PREMIUM: EFECT HOVER IMAGE SWAP
   ================================================================= */
.pn-product-image-wrapper {
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    width: 100% !important;
    padding-bottom: 100% !important; /* Mantém a proporção quadrada 1:1 perfeita */
    margin-bottom: 12px !important;
    border-radius: 8px !important;
}

.pn-product-image-wrapper img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    display: block !important;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.pn-primary-image {
    opacity: 1 !important;
    z-index: 1 !important;
}

.pn-secondary-image {
    opacity: 0 !important;
    z-index: 2 !important;
    transform: scale(1.02) !important;
}

/* Comportamento no Hover dos Cards */
ul.products li.product:hover .pn-primary-image,
.jet-woo-products .jet-woo-builder-product:hover .pn-primary-image,
.related.products li.product:hover .pn-primary-image {
    opacity: 0 !important;
}

ul.products li.product:hover .pn-secondary-image,
.jet-woo-products .jet-woo-builder-product:hover .pn-secondary-image,
.related.products li.product:hover .pn-secondary-image {
    opacity: 1 !important;
    transform: scale(1.06) rotate(1deg) !important;
}

/* Fallback para produtos sem imagem secundária (apenas aplica zoom à principal) */
ul.products li.product:hover .pn-product-image-wrapper:not(:has(.pn-secondary-image)) .pn-primary-image,
.jet-woo-products .jet-woo-builder-product:hover .pn-product-image-wrapper:not(:has(.pn-secondary-image)) .pn-primary-image,
.related.products li.product:hover .pn-product-image-wrapper:not(:has(.pn-secondary-image)) .pn-primary-image {
    opacity: 1 !important;
    transform: scale(1.06) rotate(1deg) !important;
}

/* =================================================================
   SHORTCODE DE BANNERS DE CATEGORIA: DESIGN RPG NEON GLOW
   ================================================================= */
.pn-category-banners-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 24px 0 !important;
    box-sizing: border-box !important;
}

.pn-cat-banner-card {
    position: relative !important;
    height: 220px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: flex-end !important;
    padding: 24px !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    border: 2px solid #E2E8F0 !important;
    background-color: #0F172A !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease !important;
}

.pn-cat-banner-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    z-index: 1 !important;
    opacity: 0.75 !important;
}

.pn-cat-banner-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%) !important;
    z-index: 2 !important;
}

.pn-cat-banner-content {
    position: relative !important;
    z-index: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    pointer-events: none !important;
}

.pn-cat-banner-badge {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #25D366 !important; /* Verde vibrante */
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    display: block !important;
}

.pn-cat-banner-title {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    font-family: inherit !important;
}

.pn-cat-banner-action {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: color 0.3s ease, transform 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-top: 4px !important;
}

/* Comportamento Premium no Hover dos Banners */
.pn-cat-banner-card:hover {
    transform: translateY(-8px) scale(1.015) !important;
    border-color: var(--pn-glow-color) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25), 0 0 20px var(--pn-glow-color) !important;
}

.pn-cat-banner-card:hover .pn-cat-banner-bg {
    transform: scale(1.08) rotate(0.5deg) !important;
    opacity: 0.9 !important;
}

.pn-cat-banner-card:hover .pn-cat-banner-action {
    color: #FFFFFF !important;
    transform: translateX(6px) !important;
}


/* Ajustes de responsividade para grids compactos */
@media (max-width: 900px) {
    .pn-category-banners-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 600px) {
    .pn-category-banners-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .pn-cat-banner-card {
        height: 160px !important;
        padding: 16px !important;
    }
    
    .pn-cat-banner-title {
        font-size: 18px !important;
    }
    
    .pn-cat-banner-action {
        font-size: 9.5px !important;
    }
}

/* =================================================================
   SHORTCODE DE BENEFÍCIOS PREMIUM: BOXES ESTÁTICAS E FIXAS
   ================================================================= */

/* Sobrescreve o container roxo do Elementor para transparente */
.elementor-element-311d585,
.elementor-element-311d585 > .elementor-widget-container {
    background-color: transparent !important;
    padding: 0 !important;
}

.pn-benefit-wrapper {
    background-color: transparent !important;
    width: 100% !important;
    padding: 24px 0 !important;
    box-sizing: border-box !important;
}

.pn-benefit-boxes-container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 1440px !important; /* Limite de largura interna solicitado */
    margin: 0 auto !important; /* Centralização perfeita */
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

.pn-benefit-box {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 20px 24px !important;
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.02) !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease !important;
    box-sizing: border-box !important;
}

.pn-benefit-box:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(18, 140, 126, 0.4) !important;
    box-shadow: 0 16px 32px -8px rgba(18, 140, 126, 0.15), 0 4px 12px -2px rgba(15, 23, 42, 0.04) !important;
}

.pn-benefit-icon-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background-color: rgba(15, 23, 42, 0.03) !important;
    color: var(--pn-icon-color) !important;
    font-size: 22px !important;
    flex-shrink: 0 !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.3s ease !important;
}

.pn-benefit-box:hover .pn-benefit-icon-wrapper {
    transform: scale(1.12) rotate(8deg) !important;
    background-color: rgba(18, 140, 126, 0.08) !important;
}

.pn-benefit-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.pn-benefit-title {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
}

.pn-benefit-desc {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #64748B !important;
    line-height: 1.3 !important;
}

/* Responsividade: Telas médias (laptops e desktops pequenos) */
@media (max-width: 1200px) {
    .pn-benefit-title {
        font-size: 13px !important;
    }
    .pn-benefit-desc {
        font-size: 11px !important;
    }
    .pn-benefit-box {
        padding: 16px 18px !important;
        gap: 12px !important;
    }
    .pn-benefit-icon-wrapper {
        width: 44px !important;
        height: 44px !important;
        font-size: 18px !important;
    }
}

/* Responsividade: Tablets */
@media (max-width: 900px) {
    .pn-benefit-boxes-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding: 0 16px !important;
    }
}

/* Responsividade: Mobile (Swipe Carrossel com dica visual no canto) */
@media (max-width: 600px) {
    .pn-benefit-wrapper {
        padding: 16px 0 !important;
    }
    
    .pn-benefit-boxes-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        padding: 4px 16px 12px 16px !important;
        gap: 14px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .pn-benefit-boxes-container::-webkit-scrollbar {
        height: 4px !important;
    }
    
    .pn-benefit-boxes-container::-webkit-scrollbar-thumb {
        background-color: rgba(18, 140, 126, 0.25) !important;
        border-radius: 6px !important;
    }
    
    .pn-benefit-box {
        flex: 0 0 78% !important; /* Dica visual perfeita do próximo card */
        scroll-snap-align: start !important;
        padding: 14px 16px !important;
        border-radius: 12px !important;
    }
}

/* =================================================================
   PÁGINA MINHA CONTA (MY ACCOUNT) - REDESIGN PREMIUM DASHBOARD
   ================================================================= */

/* 1. Estrutura Principal em Grid de 2 Colunas (Super robusta contra Elementor e conflitos - Apenas para Usuários Logados) */
.woocommerce-account.logged-in .woocommerce,
.woocommerce-account.logged-in .elementor-widget-container > .woocommerce {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 32px !important;
    align-items: start !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.woocommerce-account.logged-in .e-my-account-tab {
    display: contents !important;
}

/* Força TODOS os outros elementos (notícias, avisos, títulos) para a Linha 1 em largura total */
.woocommerce-account.logged-in .woocommerce > :not(.woocommerce-MyAccount-navigation):not(.woocommerce-MyAccount-content) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Barra de Navegação Lateral (Sidebar Card) na Coluna 1, Linha 2 */
.woocommerce-MyAccount-navigation {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.02) !important;
    padding: 24px 16px !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 280px !important;
    box-sizing: border-box !important;
    position: sticky !important;
    top: 100px !important; /* Fixa sutilmente ao rolar */
    z-index: 100 !important;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li,
.woocommerce-account .woocommerce-MyAccount-navigation-link {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    border-left: 4px solid transparent !important;
    background-color: #F8FAFC !important; /* Soft grey premium background for inactive tabs */
    border: 1px solid #E2E8F0 !important;
    box-sizing: border-box !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a,
.woocommerce-account .woocommerce-MyAccount-navigation-link a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    color: #475569 !important; /* Dark grey text */
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-transform: uppercase !important; /* Force all tab text to uppercase */
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    font-family: inherit !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important; /* Force transparent background on link tag to avoid Elementor overrides */
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ícones dinâmicos via Font Awesome (usando ::before) */
.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before,
.woocommerce-account .woocommerce-MyAccount-navigation-link a::before {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    margin-right: 12px !important;
    font-size: 16px !important;
    width: 20px !important;
    display: inline-block !important;
    text-align: center !important;
    color: #64748B !important;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--dashboard a::before { content: "\f0e4" !important; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--orders a::before { content: "\f290" !important; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--downloads a::before { content: "\f019" !important; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-address a::before { content: "\f3c5" !important; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--payment-methods a::before,
.woocommerce-account .woocommerce-MyAccount-navigation-link--metodos-de-pagamentos a::before { content: "\f09d" !important; } /* Ícone de Cartão de Crédito */
.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account a::before { content: "\f007" !important; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "\f2f5" !important; }

/* Estados Hover e Foco (Fundo Verde Oficial + Texto Branco + Ícone Branco com especificidade máxima) */
.woocommerce-account .woocommerce-MyAccount-navigation ul li:hover,
.woocommerce-account .woocommerce-MyAccount-navigation-link:hover,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation ul li:hover,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation-link:hover {
    background-color: #128C7E !important; /* Brand green */
    background: #128C7E !important;
    border-color: #128C7E !important;
    border-left-color: #128C7E !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:hover a,
.woocommerce-account .woocommerce-MyAccount-navigation-link:hover a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation-link a:hover,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation ul li:hover a,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation-link:hover a,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation-link a:hover {
    color: #FFFFFF !important; /* Solid white text on hover */
    background: transparent !important;
    background-color: transparent !important;
    transform: translateX(4px) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:hover a::before,
.woocommerce-account .woocommerce-MyAccount-navigation-link:hover a::before,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover::before,
.woocommerce-account .woocommerce-MyAccount-navigation-link a:hover::before,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation ul li:hover a::before,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation-link:hover a::before,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation ul li a:hover::before,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation-link a:hover::before {
    color: #FFFFFF !important; /* Solid white icon on hover */
}

/* Link Ativo (Sólido Verde de Alto Contraste) */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active,
.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation ul li.is-active,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation-link.is-active {
    background-color: #128C7E !important;
    background: #128C7E !important;
    border-color: #128C7E !important;
    border-left-color: #128C7E !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation-link.is-active a {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    background: transparent !important;
    background-color: transparent !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a::before,
.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a::before,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation ul li.is-active a::before,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation-link.is-active a::before {
    color: #FFFFFF !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active:hover,
.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active:hover,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation ul li.is-active:hover,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation-link.is-active:hover {
    background-color: #128C7E !important;
    background: #128C7E !important;
    border-color: #128C7E !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active:hover a,
.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active:hover a,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation ul li.is-active:hover a,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation-link.is-active:hover a {
    color: #FFFFFF !important;
    background: transparent !important;
    background-color: transparent !important;
    transform: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active:hover a::before,
.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active:hover a::before,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation ul li.is-active:hover a::before,
.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation-link.is-active:hover a::before {
    color: #FFFFFF !important;
}

/* 3. Painel de Conteúdo Principal (Content Card) na Coluna 2, Linha 2 */
.woocommerce-MyAccount-content {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.02) !important;
    padding: 36px !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 400px !important;
}

/* Formatação do texto de saudação e informações iniciais */
.woocommerce-MyAccount-content p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    margin-bottom: 20px !important;
}

.woocommerce-MyAccount-content p a {
    color: #128C7E !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-bottom: 1.5px solid transparent !important;
    transition: all 0.2s ease !important;
}

.woocommerce-MyAccount-content p a:hover {
    border-bottom-color: #128C7E !important;
}

/* 4. Tabelas de Pedidos Premium */
.woocommerce-MyAccount-content table.shop_table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    width: 100% !important;
    margin: 24px 0 !important;
}

.woocommerce-MyAccount-content table.shop_table th {
    background-color: #F8FAFC !important;
    color: #334155 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

.woocommerce-MyAccount-content table.shop_table td {
    padding: 18px 20px !important;
    border-bottom: 1px solid #F1F5F9 !important;
    color: #475569 !important;
    font-size: 14.5px !important;
    vertical-align: middle !important;
}

.woocommerce-MyAccount-content table.shop_table tr:last-child td {
    border-bottom: none !important;
}

/* Badges de Status do Pedido */
.woocommerce-MyAccount-content mark.order-status {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    background: #E2E8F0 !important;
    color: #475569 !important;
}

.woocommerce-MyAccount-content mark.order-status.completed {
    background-color: rgba(37, 211, 102, 0.1) !important;
    color: #0F7569 !important;
}

.woocommerce-MyAccount-content mark.order-status.processing {
    background-color: rgba(30, 144, 255, 0.1) !important;
    color: #1E90FF !important;
}

.woocommerce-MyAccount-content mark.order-status.on-hold,
.woocommerce-MyAccount-content mark.order-status.pending {
    background-color: rgba(255, 140, 0, 0.1) !important;
    color: #FF8C00 !important;
}

.woocommerce-MyAccount-content mark.order-status.cancelled,
.woocommerce-MyAccount-content mark.order-status.failed {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #EF4444 !important;
}

/* Botão Visualizar na Tabela */
.woocommerce-MyAccount-content table.shop_table .button {
    background-color: #F1F5F9 !important;
    color: #334155 !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    border: 1px solid #CBD5E1 !important;
}

.woocommerce-MyAccount-content table.shop_table .button:hover {
    background-color: #128C7E !important;
    color: #FFFFFF !important;
    border-color: #128C7E !important;
}

/* 5. Endereços (Cards de Faturamento e Entrega) */
/* 5. Endereços (Cards de Faturamento e Entrega) */
body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content .woocommerce-Addresses,
body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content .addresses,
body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content .col2-set,
body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content .col2-set.addresses,
body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content .u-columns.col2-set,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,
body.woocommerce-account .woocommerce-MyAccount-content .addresses,
body.woocommerce-account .woocommerce-MyAccount-content .col2-set,
body.woocommerce-account .woocommerce-MyAccount-content .col2-set.addresses,
body.woocommerce-account .woocommerce-MyAccount-content .u-columns.col2-set,
body.woocommerce-account .jet-woo-account-address-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    margin-top: 30px !important;
    float: none !important;
    width: 100% !important;
    clear: both !important;
}

body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content .addresses .col-1,
body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content .addresses .col-2,
body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content .col2-set .address,
body.woocommerce-account .woocommerce-MyAccount-content .col2-set .col-1,
body.woocommerce-account .woocommerce-MyAccount-content .col2-set .col-2,
body.woocommerce-account .woocommerce-MyAccount-content .col2-set .address,
body.woocommerce-account .woocommerce-MyAccount-content .u-columns.col2-set > div,
body.woocommerce-account .jet-woo-account-address-content .woocommerce-Address,
body.woocommerce-account .jet-woo-account-address-content .address {
    flex: 1 1 calc(50% - 12px) !important;
    width: calc(50% - 12px) !important;
    max-width: calc(50% - 12px) !important;
    background-color: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content .col2-set .col-1:hover,
body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content .col2-set .col-2:hover,
body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content .col2-set .address:hover,
body.woocommerce-account .woocommerce-MyAccount-content .col2-set .col-1:hover,
body.woocommerce-account .woocommerce-MyAccount-content .col2-set .col-2:hover,
body.woocommerce-account .woocommerce-MyAccount-content .col2-set .address:hover,
body.woocommerce-account .woocommerce-MyAccount-content .u-columns.col2-set > div:hover,
body.woocommerce-account .jet-woo-account-address-content .woocommerce-Address:hover,
body.woocommerce-account .jet-woo-account-address-content .address:hover {
    border-color: #128C7E !important;
    box-shadow: 0 10px 25px -5px rgba(18, 140, 126, 0.1), 0 8px 10px -6px rgba(18, 140, 126, 0.1) !important;
}

.woocommerce-Address-title,
.woocommerce-account .woocommerce-Address-title {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1.5px solid #E2E8F0 !important;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important; /* Spacing below the title wrapper */
    width: 100% !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.woocommerce-Address-title h2,
.woocommerce-Address-title h3,
.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3 {
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    color: #0F172A !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    order: 1 !important; /* Keep heading on the left */
}

.woocommerce-Address-title .edit,
.woocommerce-Address-title a.edit,
.woocommerce-account .woocommerce-Address-title .edit,
.woocommerce-account .woocommerce-Address-title a.edit {
    color: #128C7E !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.2s ease !important;
    padding-bottom: 2px !important;
    display: inline-block !important;
    position: static !important; /* Force static positioning to avoid Elementor overlap */
    float: none !important; /* Reset any float */
    order: 2 !important; /* Keep link on the right */
}

.woocommerce-Address-title .edit:hover,
.woocommerce-Address-title a.edit:hover,
.woocommerce-account .woocommerce-Address-title .edit:hover,
.woocommerce-account .woocommerce-Address-title a.edit:hover {
    color: #0F7569 !important;
    border-bottom-color: #0F7569 !important;
}

.elementor-widget-woocommerce-my-account address,
.woocommerce-account .e-my-account-tab .woocommerce-Address address,
.woocommerce-account .woocommerce-Address address,
.woocommerce-Address address {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    padding-top: 0 !important;
    margin: 0 !important;
    font-style: normal !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 6. Formulários e Inputs no Painel da Conta */
.woocommerce-MyAccount-content form {
    margin-top: 20px !important;
}

.woocommerce-MyAccount-content form .form-row {
    margin-bottom: 18px !important;
}

.woocommerce-MyAccount-content form label {
    display: block !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
}

.woocommerce-MyAccount-content form input.input-text,
.woocommerce-MyAccount-content form select,
.woocommerce-MyAccount-content form textarea {
    width: 100% !important;
    height: 44px !important;
    padding: 8px 16px !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 8px !important;
    background-color: #FFFFFF !important;
    color: #1E293B !important;
    font-size: 14.5px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.woocommerce-MyAccount-content form input.input-text:focus,
.woocommerce-MyAccount-content form select:focus,
.woocommerce-MyAccount-content form textarea:focus {
    border-color: #128C7E !important;
    box-shadow: 0 0 0 3px rgba(18, 140, 126, 0.12) !important;
}

/* Botões do Formulário */
.woocommerce-MyAccount-content form button.button {
    background-color: #128C7E !important;
    color: #FFFFFF !important;
    height: 44px !important;
    padding: 0 32px !important;
    border-radius: 22px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 10px rgba(18, 140, 126, 0.2) !important;
}

.woocommerce-MyAccount-content form button.button:hover {
    background-color: #0F7569 !important;
    box-shadow: 0 6px 16px rgba(18, 140, 126, 0.3) !important;
}

/* Layout Lado a Lado para o formulário de Login e Cadastro (quando deslogado) */
.woocommerce-account #customer_login.col2-set {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 32px !important;
    width: 100% !important;
    max-width: 1440px !important;
    margin: 40px auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

.woocommerce-account #customer_login .col-1,
.woocommerce-account #customer_login .col-2,
.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2 {
    flex: 1 1 calc(50% - 16px) !important;
    width: calc(50% - 16px) !important;
    max-width: calc(50% - 16px) !important;
    box-sizing: border-box !important;
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    padding: 36px !important;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.02) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.woocommerce-account #customer_login h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    border-bottom: 2px solid #E2E8F0 !important;
    padding-bottom: 12px !important;
    text-transform: uppercase !important;
}

/* Responsividade Mobile para Login e Cadastro */
@media (max-width: 900px) {
    .woocommerce-account #customer_login.col2-set {
        flex-direction: column !important;
        gap: 24px !important;
        padding: 0 16px !important;
    }
    
    .woocommerce-account #customer_login .col-1,
    .woocommerce-account #customer_login .col-2,
    .woocommerce-account #customer_login .u-column1,
    .woocommerce-account #customer_login .u-column2 {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 28px !important;
    }
}

/* =================================================================
   RESPONSIVIDADE DA PÁGINA MINHA CONTA: CARROSSEL MOBILE DE ABAS
   ================================================================= */
@media (max-width: 900px) {
    .woocommerce-account.logged-in .woocommerce,
    .woocommerce-account.logged-in .elementor-widget-container > .woocommerce {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 0 16px !important;
        display: grid !important;
    }

    .woocommerce-account .e-my-account-tab {
        display: contents !important;
    }

    .woocommerce-account .woocommerce > * {
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
    }

    .woocommerce-MyAccount-navigation {
        position: static !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 8px !important;
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
    }

    /* Transforma os links verticais em um Carrossel Horizontal elegante */
    .woocommerce-MyAccount-navigation ul {
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 8px !important;
        padding: 4px 4px 12px 4px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
        height: 3px !important;
    }

    .woocommerce-MyAccount-navigation ul::-webkit-scrollbar-thumb {
        background-color: rgba(18, 140, 126, 0.2) !important;
        border-radius: 3px !important;
    }

    .woocommerce-MyAccount-navigation ul li {
        flex: 0 0 auto !important;
        scroll-snap-align: start !important;
        background-color: #FFFFFF !important;
        border: 1px solid #E2E8F0 !important;
        border-radius: 20px !important;
        border-left: none !important; /* Remove a barra esquerda no mobile */
    }

    .woocommerce-MyAccount-navigation ul li a {
        padding: 8px 16px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .woocommerce-MyAccount-navigation ul li a::before {
        margin-right: 8px !important;
        font-size: 14px !important;
        width: auto !important;
    }

    /* Aba Ativa no Mobile: Formato de Pílula Sólida */
    .woocommerce-MyAccount-navigation ul li.is-active {
        background-color: #128C7E !important;
        border-color: #128C7E !important;
    }

    .woocommerce-MyAccount-navigation ul li.is-active a {
        color: #FFFFFF !important;
    }

    .woocommerce-MyAccount-navigation ul li.is-active a::before {
        color: #FFFFFF !important;
    }

    .woocommerce-MyAccount-navigation ul li:hover {
        background-color: #FFFFFF !important;
    }
    
    .woocommerce-MyAccount-navigation ul li:hover a {
        transform: none !important;
        color: #475569 !important;
    }
    .woocommerce-MyAccount-navigation ul li.is-active:hover a {
        color: #FFFFFF !important;
    }

    .woocommerce-MyAccount-content {
        padding: 24px !important;
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
    }

    body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content .u-columns.col2-set,
    body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content .col2-set,
    body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content .addresses,
    body.woocommerce-account .woocommerce-MyAccount-content .u-columns.col2-set,
    body.woocommerce-account .woocommerce-MyAccount-content .col2-set,
    body.woocommerce-account .woocommerce-MyAccount-content .addresses,
    .woocommerce-account .jet-woo-account-address-content {
        flex-direction: column !important;
        gap: 16px !important;
    }

    body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content .col2-set .col-1,
    body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content .col2-set .col-2,
    body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content .col2-set .address,
    body.woocommerce-account .woocommerce-MyAccount-content .col2-set .col-1,
    body.woocommerce-account .woocommerce-MyAccount-content .col2-set .col-2,
    body.woocommerce-account .woocommerce-MyAccount-content .col2-set .address,
    body.woocommerce-account .woocommerce-MyAccount-content .u-columns.col2-set > div,
    body.woocommerce-account .jet-woo-account-address-content .woocommerce-Address,
    body.woocommerce-account .jet-woo-account-address-content .address {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =================================================================
   PÁGINA DE CHECKOUT - LAYOUT DOS CAMPOS LADO A LADO (GRID BRASIL)
   ================================================================= */

/* 1. Ativação do Flex Grid nos Wrappers de Campos */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important; /* Espaçamento premium entre os campos */
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Reset de largura padrão de todas as form-rows do Checkout */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper p.form-row,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper p.form-row {
    flex: 1 1 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    display: flex !important;
    flex-direction: column !important;
    width: auto !important;
    box-sizing: border-box !important;
}

/* Suporte para ocultar dinamicamente os campos via JS (jQuery hide() cooperativo) */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper p.form-row[style*="display: none"],
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper p.form-row[style*="display: none"],
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper p.form-row[style*="display:none"],
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper p.form-row[style*="display:none"] {
    display: none !important;
}


/* 3. Mapeamento de largura lado a lado para Desktop (telas acima de 768px) */
@media (min-width: 769px) {
    /* Nome (50%) & Sobrenome (50%) */
    #billing_first_name_field, #shipping_first_name_field {
        flex: 1 1 calc(50% - 8px) !important;
    }
    #billing_last_name_field, #shipping_last_name_field {
        flex: 1 1 calc(50% - 8px) !important;
    }

    /* Tipo de Pessoa (30%) & CPF/CNPJ (70%) */
    #billing_persontype_field {
        flex: 1 1 calc(30% - 12px) !important;
    }
    #billing_cpf_field, #billing_cnpj_field {
        flex: 1 1 calc(70% - 4px) !important;
    }

    /* E-mail (60%) & Celular/Telefone (40%) */
    #billing_email_field {
        flex: 1 1 calc(60% - 8px) !important;
    }
    #billing_cellphone_field, #billing_phone_field {
        flex: 1 1 calc(40% - 8px) !important;
    }

    /* CEP (40%) - Ocupa menos da metade e deixa quebrar a rua para a linha seguinte */
    #billing_postcode_field, #shipping_postcode_field {
        flex: 0 0 calc(40% - 8px) !important;
        margin-right: auto !important; /* Joga o espaço restante para a direita */
    }

    /* Rua / Endereço (70%) & Número (30%) */
    #billing_address_1_field, #shipping_address_1_field {
        flex: 1 1 calc(70% - 12px) !important;
    }
    #billing_number_field, #shipping_number_field {
        flex: 1 1 calc(30% - 4px) !important;
    }

    /* Complemento (50%) & Bairro (50%) */
    #billing_address_2_field, #shipping_address_2_field {
        flex: 1 1 calc(50% - 8px) !important;
    }
    #billing_neighborhood_field, #shipping_neighborhood_field {
        flex: 1 1 calc(50% - 8px) !important;
    }

    /* Cidade (70%) & Estado (30%) */
    #billing_city_field, #shipping_city_field {
        flex: 1 1 calc(70% - 12px) !important;
    }
    #billing_state_field, #shipping_state_field {
        flex: 1 1 calc(30% - 4px) !important;
    }
}

/* 4. Estilização Premium dos Inputs de Checkout */
.woocommerce-checkout form.checkout input.input-text,
.woocommerce-checkout form.checkout select,
.woocommerce-checkout form.checkout textarea {
    width: 100% !important;
    height: 44px !important;
    padding: 8px 16px !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 8px !important;
    background-color: #FFFFFF !important;
    color: #1E293B !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.woocommerce-checkout form.checkout input.input-text:focus,
.woocommerce-checkout form.checkout select:focus,
.woocommerce-checkout form.checkout textarea:focus {
    border-color: #128C7E !important;
    box-shadow: 0 0 0 3px rgba(18, 140, 126, 0.12) !important;
    background-color: #FFFFFF !important;
}

/* Estilo para os select2 do checkout (Cidade/Estado ou seletores avançados) */
.woocommerce-checkout .select2-container--default .select2-selection--single {
    height: 44px !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 8px !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
}

/* Labels e Helper Texts do Checkout */
.woocommerce-checkout form.checkout label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.woocommerce-checkout form.checkout .required {
    color: #EF4444 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

/* Seção de Pagamento e Botão de Finalizar Compra Premium */
#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    padding: 16px !important;
}

/* Alinhamento de Elementos e Design da Seção de Pagamento */
#payment ul.payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

#payment ul.payment_methods li.wc_payment_method {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    position: relative !important;
    
    /* Layout Moderno em Grid para alinhar Radio, Label e Descrição */
    display: grid !important;
    grid-template-columns: 24px 1fr !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: 12px 12px !important;
}

#payment ul.payment_methods li.wc_payment_method:has(input[type="radio"]:checked),
#payment ul.payment_methods li.wc_payment_method.payment_method_active {
    border-color: #128C7E !important;
    box-shadow: 0 4px 12px rgba(18, 140, 126, 0.08) !important;
    background-color: #FFFFFF !important;
}

/* Customização Premium do Botão Radio de Pagamento */
#payment ul.payment_methods li.wc_payment_method > input[type="radio"] {
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #CBD5E1 !important;
    border-radius: 50% !important;
    background-color: #FFFFFF !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    position: relative !important;
    display: inline-block !important;
    justify-self: center !important;
    z-index: 10 !important;
}

#payment ul.payment_methods li.wc_payment_method > input[type="radio"]:checked {
    border-color: #128C7E !important;
    background-color: #FFFFFF !important;
}

#payment ul.payment_methods li.wc_payment_method > input[type="radio"]:checked::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: #128C7E !important;
    display: block !important;
}

/* Label do Método de Pagamento (Texto e Logo) */
#payment ul.payment_methods li.wc_payment_method > label {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1E293B !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    user-select: none !important;
}

/* Imagens/ícones de pagamento (Cartões, Pix, Código de barras) */
#payment ul.payment_methods li.wc_payment_method > label img,
#payment ul.payment_methods li.wc_payment_method > label svg {
    max-height: 24px !important;
    width: auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-left: 8px !important;
}

/* Caixa de descrição do método de pagamento (Ex: Informações do Pix, Campos do Cartão) */
#payment ul.payment_methods li.wc_payment_method .payment_box {
    grid-column: 2 !important;
    grid-row: 2 !important;
    background-color: #F8FAFC !important;
    border: 1px solid #F1F5F9 !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    margin: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    color: #475569 !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

#payment ul.payment_methods li.wc_payment_method .payment_box::before {
    display: none !important;
}

/* Estilização dos inputs dentro da caixa de pagamento */
#payment ul.payment_methods li.wc_payment_method .payment_box form,
#payment ul.payment_methods li.wc_payment_method .payment_box p.form-row {
    margin: 0 !important;
    padding: 0 !important;
}

#payment ul.payment_methods li.wc_payment_method .payment_box input.input-text {
    background-color: #FFFFFF !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 8px !important;
    height: 40px !important;
    padding: 8px 12px !important;
    font-size: 13.5px !important;
}

#payment ul.payment_methods li.wc_payment_method .payment_box input.input-text:focus {
    border-color: #128C7E !important;
    box-shadow: 0 0 0 3px rgba(18, 140, 126, 0.12) !important;
}


/* Botão "Finalizar Compra" */
.woocommerce-checkout #place_order {
    background-color: #128C7E !important;
    color: #FFFFFF !important;
    height: 52px !important;
    padding: 0 36px !important;
    border-radius: 26px !important; /* Pill maior */
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.75px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    width: 100% !important;
    box-shadow: 0 4px 14px rgba(18, 140, 126, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce-checkout #place_order:hover {
    background-color: #0F7569 !important;
    box-shadow: 0 6px 20px rgba(18, 140, 126, 0.45) !important;
    transform: translateY(-2px) !important;
}

.woocommerce-checkout #place_order:active {
    transform: translateY(0) !important;
}

/* =================================================================
   FILTROS DA PÁGINA DA LOJA - DESIGN PREMIUM INTEGRADO
   (Suporta WooCommerce Widgets, JetSmartFilters e FacetWP)
   ================================================================= */

/* 1. Títulos das Seções de Filtro */
.widget_price_filter .widgettitle,
.widget_layered_nav .widgettitle,
.widget_product_categories .widgettitle,
.jet-filter-label,
.facetwp-facet-label {
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.75px !important;
    color: #0F172A !important;
    border-bottom: 2px solid #E2E8F0 !important;
    padding-bottom: 8px !important;
    margin-bottom: 16px !important;
    position: relative !important;
    display: block !important;
}

/* Indicador decorativo verde abaixo do título */
.widget_price_filter .widgettitle::after,
.widget_layered_nav .widgettitle::after,
.widget_product_categories .widgettitle::after,
.jet-filter-label::after,
.facetwp-facet-label::after {
    content: "" !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 40px !important;
    height: 2px !important;
    background-color: #128C7E !important;
}

/* 2. Listas e Itens dos Filtros */
.widget_layered_nav ul,
.widget_product_categories ul,
.jet-checkboxes-filter__list,
.facetwp-checkboxes {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.widget_layered_nav ul li,
.widget_product_categories ul li,
.jet-checkboxes-filter__item,
.facetwp-checkbox {
    display: flex !important;
    align-items: center !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Micro-animação de Hover nos Itens dos Filtros */
.widget_layered_nav ul li:hover,
.widget_product_categories ul li:hover,
.jet-checkboxes-filter__item:hover,
.facetwp-checkbox:hover {
    color: #128C7E !important;
    transform: translateX(4px) !important;
}

/* Contagem de Itens (Badges de Quantidade do Lado) */
.widget_layered_nav ul li .count,
.widget_product_categories ul li .count,
.jet-filter-row-count,
.facetwp-counter {
    background-color: #F1F5F9 !important;
    color: #64748B !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    margin-left: auto !important; /* Joga para o extremo direito */
    transition: all 0.2s ease !important;
}

.widget_layered_nav ul li:hover .count,
.widget_product_categories ul li:hover .count,
.jet-checkboxes-filter__item:hover .jet-filter-row-count,
.facetwp-checkbox:hover .facetwp-counter {
    background-color: rgba(18, 140, 126, 0.08) !important;
    color: #128C7E !important;
}

/* 3. Checkboxes Redondos Customizados Premium */
/* Sobrescreve visualmente os inputs nos filtros que usam HTML standard */
.widget_layered_nav ul li input[type="checkbox"],
.jet-checkboxes-filter__item input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 5px !important; /* Levemente arredondado */
    background-color: #FFFFFF !important;
    margin: 0 10px 0 0 !important;
    cursor: pointer !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    outline: none !important;
}

.widget_layered_nav ul li input[type="checkbox"]:checked,
.jet-checkboxes-filter__item input[type="checkbox"]:checked {
    background-color: #128C7E !important;
    border-color: #128C7E !important;
}

.widget_layered_nav ul li input[type="checkbox"]:checked::before,
.jet-checkboxes-filter__item input[type="checkbox"]:checked::before {
    content: "✓" !important;
    color: #FFFFFF !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    display: block !important;
    line-height: 1 !important;
}

/* Customização específica dos Checkboxes do FacetWP */
.facetwp-checkbox {
    padding-left: 28px !important;
}

.facetwp-checkbox::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 5px !important;
    background-color: #FFFFFF !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.facetwp-checkbox.checked::before {
    background-color: #128C7E !important;
    border-color: #128C7E !important;
}

.facetwp-checkbox.checked::after {
    content: "✓" !important;
    position: absolute !important;
    left: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #FFFFFF !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

/* 4. Estilização do Slider de Preço Nativo e plugins */
.widget_price_filter .price_slider_wrapper {
    padding-top: 10px !important;
}

.widget_price_filter .ui-slider {
    background: #E2E8F0 !important;
    height: 6px !important;
    border-radius: 3px !important;
    border: none !important;
    margin-bottom: 20px !important;
}

.widget_price_filter .ui-slider .ui-slider-range {
    background: #128C7E !important;
    border-radius: 3px !important;
}

.widget_price_filter .ui-slider .ui-slider-handle {
    width: 18px !important;
    height: 18px !important;
    background-color: #FFFFFF !important;
    border: 2px solid #128C7E !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    top: -6px !important;
    outline: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.1s ease !important;
}

.widget_price_filter .ui-slider .ui-slider-handle:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 4px 8px rgba(18, 140, 126, 0.2) !important;
}

/* Botões do Filtro de Preço */
.widget_price_filter .price_slider_amount {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.widget_price_filter .price_slider_amount .button {
    background-color: #F1F5F9 !important;
    color: #334155 !important;
    border: 1px solid #CBD5E1 !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.widget_price_filter .price_slider_amount .button:hover {
    background-color: #128C7E !important;
    color: #FFFFFF !important;
    border-color: #128C7E !important;
}

.widget_price_filter .price_slider_amount .price_label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #475569 !important;
}

/* 5. Botões de Ação de Limpeza e Busca nos Filtros */
.jet-remove-all-filters__button,
.facetwp-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 38px !important;
    background-color: #F1F5F9 !important;
    color: #334155 !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 19px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 16px !important;
    text-decoration: none !important;
}

.jet-remove-all-filters__button:hover,
.facetwp-btn:hover {
    background-color: #EF4444 !important; /* Vermelho suave para limpar */
    color: #FFFFFF !important;
    border-color: #EF4444 !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15) !important;
}

/* =================================================================
   TABELA DE FRETE NO RESUMO DO PEDIDO (CHECKOUT & CART TOTALS)
   ================================================================= */
.woocommerce-checkout-review-order-table ul#shipping_method,
.cart-collaterals .shop_table ul#shipping_method {
    list-style: none !important;
    padding: 0 !important;
    margin: 8px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important; /* Espaçamento confortável entre as opções de frete */
    width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout-review-order-table ul#shipping_method li,
.cart-collaterals .shop_table ul#shipping_method li {
    display: flex !important;
    align-items: center !important; /* Centralização vertical perfeita */
    gap: 12px !important;
    margin: 0 !important;
    padding: 12px 16px !important; /* Padding generoso de card premium */
    background-color: #F8FAFC !important; /* Fundo suave */
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    transition: all 0.25s ease !important;
    justify-content: flex-start !important; /* Alinhamento à esquerda extremamente legível */
    text-align: left !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

/* Efeito Hover e Foco no Card de Frete Selecionado */
.woocommerce-checkout-review-order-table ul#shipping_method li:hover,
.cart-collaterals .shop_table ul#shipping_method li:hover {
    border-color: #CBD5E1 !important;
    background-color: #F1F5F9 !important;
}

.woocommerce-checkout-review-order-table ul#shipping_method li:has(input[type="radio"]:checked),
.cart-collaterals .shop_table ul#shipping_method li:has(input[type="radio"]:checked) {
    background-color: rgba(18, 140, 126, 0.04) !important;
    border-color: #128C7E !important; /* Destaque na cor da marca */
    box-shadow: 0 4px 12px rgba(18, 140, 126, 0.08) !important;
}

.woocommerce-checkout-review-order-table ul#shipping_method li input[type="radio"],
.cart-collaterals .shop_table ul#shipping_method li input[type="radio"] {
    margin: 0 !important; /* Reset de margens para centralização pelo flexbox */
    flex-shrink: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 18px !important; /* Tamanho maior para facilidade de toque */
    height: 18px !important;
    border: 2px solid #CBD5E1 !important;
    border-radius: 50% !important;
    background-color: #FFFFFF !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    position: relative !important;
    display: inline-block !important;
    order: 1 !important; /* Input de rádio na esquerda */
}

.woocommerce-checkout-review-order-table ul#shipping_method li input[type="radio"]:checked,
.cart-collaterals .shop_table ul#shipping_method li input[type="radio"]:checked {
    border-color: #128C7E !important;
    background-color: #FFFFFF !important;
}

.woocommerce-checkout-review-order-table ul#shipping_method li input[type="radio"]:checked::before,
.cart-collaterals .shop_table ul#shipping_method li input[type="radio"]:checked::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: #128C7E !important;
    display: block !important;
}

.woocommerce-checkout-review-order-table ul#shipping_method li label,
.cart-collaterals .shop_table ul#shipping_method li label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    order: 2 !important; /* Label na direita do flexbox */
}

.woocommerce-checkout-review-order-table ul#shipping_method li label .amount,
.cart-collaterals .shop_table ul#shipping_method li label .amount {
    font-weight: 700 !important;
    color: #1E293B !important;
}

/* Garante espaçamento confortável na célula de envio */
.woocommerce-checkout-review-order-table td.shipping,
.cart-collaterals .shop_table td[data-title="Envio"] {
    padding: 20px !important;
    text-align: left !important;
}

