/*
Theme Name: Adesivada Blank Theme
Theme URI: https://adesivada.com.br
Description: Tema minimalista com HOME isolada como landing page React via plugin. Zero conflitos de CSS, máxima performance. WooCommerce, blog e páginas normais preservados. Tema fornece header/footer, plugin fornece home.
Version: 1.0.3
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
Author: ADESIVADA
Author URI: https://adesivada.com.br
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adesivada-blank
Tags: blank, minimal, clean, performance, landing-page, one-column, custom-colors, custom-menu, editor-style, featured-images, threaded-comments, translation-ready, woocommerce
*/

/* ============================================
   🔥 ADESIVADA BLANK THEME - RESET COMPLETO
   ============================================
   
   FILOSOFIA: Zero opiniões sobre design.
   HOME = Landing page React via plugin
   Outras páginas = Templates normais
   ============================================ */

/* ❌ REMOVIDO: Reset Universal (conflita com plugins)
   Cada plugin deve controlar seus próprios estilos */

/* HTML e Body - Base Limpa */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100vh;
}

/* 🔥 REMOVE ESPAÇO EM BRANCO ACIMA DO HEADER - HOMEPAGE */
.home #page,
.home .site,
.home #content,
.home .site-content,
.home .content-area,
.home main {
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.home .adesivada-header {
    margin-top: 0 !important;
}

.home.admin-bar {
    margin-top: 0 !important;
}

/* 🚀 ISOLAMENTO DO PLUGIN REACT - SEM CONFLITOS */
#adesivada-app {
    isolation: isolate;
}

#adesivada-app *,
#adesivada-app *::before,
#adesivada-app *::after {
    box-sizing: border-box;
}

/* ❌ REMOVIDOS: Todos os resets globais de containers do WordPress
   O plugin React gerencia seus próprios estilos */

/* Links - Deixar plugins controlarem */
a {
    background-color: transparent;
}

/* Imagens - Responsivas por padrão */
img {
    max-width: 100%;
    height: auto;
    border: 0;
}

/* ============================================
   🎯 FIM DO RESET
   
   O tema termina aqui. Todo o resto é
   controlado por plugins e page builders.
   ============================================ */

/* ============================================
   🎨 CABEÇALHO GLOBAL ADESIVADA
   
   Aparece em todas as páginas EXCETO na home
   (home usa header-home.php com estilos próprios)
   ============================================ */

.adesivada-header {
    width: 100%;
    background: #2b2b2b;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.adesivada-header-container {
    max-width: 1200px;   /* largura das linhas tracejadas */
    margin: 0 auto;      /* CENTRALIZA */
    padding: 18px 24px;  /* 🔥 RESPIRO VERTICAL: 18px (antes era só min-height) */
    
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========== LOGO ========== */

.adesivada-header-logo {
    flex-shrink: 0;
}

.adesivada-site-title {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px; /* 🔥 Reduzido de 20px para 18px */
    font-weight: 600; /* 🔥 Reduzido de 700 para 600 (menos pesado) */
    line-height: 1.2;
    margin: 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.adesivada-site-title:hover {
    color: #ff9800;
}

.adesivada-header-logo .custom-logo-link {
    display: block;
    line-height: 0;
}

.adesivada-header-logo .custom-logo {
    max-height: 40px; /* 🔥 Reduzido de 50px para 40px (10-20% menor) */
    width: auto;
    display: block;
}

/* ========== MENU DESKTOP ========== */

.adesivada-header-menu-wrapper {
    flex: 1; /* 🔥 MUDADO: volta para flex: 1 para ocupar espaço e centralizar */
    display: none;
}

@media (min-width: 768px) {
    .adesivada-header-menu-wrapper {
        display: flex;
        justify-content: center; /* 🔥 MENU CENTRALIZADO */
    }
}

.adesivada-header-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px; /* 🔥 Aumentado de 4px para 8px (melhor respiro) */
}

.adesivada-header-menu > li {
    margin: 0;
    position: relative;
}

.adesivada-header-menu > li > a {
    display: block;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.85); /* 🎯 85% opacidade conforme solicitado */
    text-decoration: none;
    font-size: 15px; /* 🎯 15px conforme solicitado */
    font-weight: 500; /* 🎯 500 (medium) conforme solicitado */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: none; /* 🎯 SEM uppercase forçado */
}

.adesivada-header-menu > li > a:hover,
.adesivada-header-menu > li.current-menu-item > a,
.adesivada-header-menu > li.current_page_item > a {
    background: rgba(255, 152, 0, 0.1); /* 🔥 Hover suave (não laranja cheio) */
    color: rgba(255, 255, 255, 1); /* 🎯 100% opacidade no hover */
}

/* Submenu */
.adesivada-header-menu .sub-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .adesivada-header-menu > li {
        position: relative;
    }
    
    .adesivada-header-menu .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #1a1a1a;
        min-width: 220px;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        padding: 8px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    .adesivada-header-menu > li:hover .sub-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .adesivada-header-menu .sub-menu li {
        margin: 0;
    }
    
    .adesivada-header-menu .sub-menu a {
        display: block;
        padding: 10px 20px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 14px;
        border-radius: 0;
        transition: all 0.3s ease;
    }
    
    .adesivada-header-menu .sub-menu a:hover {
        background: rgba(255, 152, 0, 0.2);
        color: #ffffff;
        padding-left: 24px;
    }
}

/* ========== ACTIONS (CTA + HAMBURGUER) ========== */

.adesivada-header-actions {
    display: flex;
    align-items: center;
    gap: 12px; /* 🔥 Aumentado de 8px para 12px */
    margin-left: 8px; /* 🔥 Pequeno espaço extra antes do botão */
}

/* Botão CTA - 🔥 HERO DO HEADER */
.adesivada-btn-cta {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 11px 26px; /* 🎯 Aumentado levemente */
    background: #4caf50; /* 🎯 VERDE conforme solicitado */
    color: #ffffff;
    text-decoration: none;
    font-size: 16px; /* 🎯 Letra levemente maior que menu (15px → 16px) */
    font-weight: 600; /* 🎯 600 conforme solicitado */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3); /* 🎯 Sombra verde */
    letter-spacing: 0.3px;
    text-transform: none; /* 🎯 SEM uppercase forçado */
}

@media (min-width: 768px) {
    .adesivada-btn-cta {
        display: inline-flex;
    }
}

.adesivada-btn-cta:hover {
    background: #45a049; /* 🎯 Verde mais escuro */
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4); /* 🎯 Sombra verde mais intensa */
}

.adesivada-btn-cta:active {
    transform: translateY(0) scale(0.98);
}

/* Botão Outline (Loja) - Estilo minimalista */
.adesivada-btn-outline {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 2px solid #ffffff;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    text-transform: none;
}

@media (min-width: 768px) {
    .adesivada-btn-outline {
        display: inline-flex;
    }
}

.adesivada-btn-outline:hover {
    background: #ffffff;
    color: #2b2b2b;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.adesivada-btn-outline:active {
    transform: translateY(0) scale(0.98);
}

/* Botão Hamburguer (Mobile) */
.adesivada-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

@media (min-width: 768px) {
    .adesivada-menu-toggle {
        display: none;
    }
}

.adesivada-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.adesivada-menu-toggle:hover span {
    background: #ff9800;
}

/* Animação X quando aberto */
.adesivada-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.adesivada-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.adesivada-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== MENU MOBILE ========== */

@media (max-width: 767px) {
    .adesivada-header-menu-wrapper.is-active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2b2b2b;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .adesivada-header-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .adesivada-header-menu > li > a {
        padding: 14px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* ============================================
   📍 RODAPÉ GLOBAL ADESIVADA
   
   Aparece em todas as páginas EXCETO na home
   (home usa footer-home.php com estilos próprios)
   ============================================ */

.adesivada-footer {
    background: #2b2b2b;
    color: #ffffff;
    padding: 60px 16px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 640px) {
    .adesivada-footer {
        padding: 60px 24px 20px;
    }
}

.adesivada-footer-container {
    max-width: 1200px; /* 🔥 CORRIGIDO: 1280px → 1200px (igual header e produto) */
    margin: 0 auto;
}

.adesivada-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .adesivada-footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.adesivada-footer-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #ffffff;
}

@media (min-width: 640px) {
    .adesivada-footer-title {
        font-size: 18px;
    }
}

.adesivada-footer-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.adesivada-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.adesivada-footer-links li {
    margin-bottom: 10px;
}

.adesivada-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.adesivada-footer-links a:hover {
    color: #ffffff;
}

.adesivada-footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.adesivada-footer-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #ffffff;
}

.adesivada-footer-widget {
    margin-top: 16px;
}

.adesivada-footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.adesivada-footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.adesivada-footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.adesivada-footer-bottom a:hover {
    color: #ffffff;
}

/* ============================================
   🎯 FIM DOS ESTILOS
   ============================================ */

/* ============================================
   📌 CORREÇÃO CRÍTICA: STICKY PRODUTO
   ============================================
   
   ⚠️ PROBLEMA: overflow: hidden em pais impede sticky
   ✅ SOLUÇÃO: overflow: visible APENAS em páginas de produto
   
   Garante que sticky funcione sem afetar outras páginas
   ============================================ */

.single-product .container,
.single-product .site-content,
.single-product .content-area,
.single-product div.product,
.single-product .woocommerce,
.single-product .woocommerce-page {
  overflow: visible !important;
  transform: none !important; /* 🔧 CORREÇÃO: Remove transform que quebra sticky */
}

/* ============================================
   🔥 CORREÇÃO CRÍTICA: FORÇAR MINIATURAS VISÍVEIS
   ============================================
   
   ⚠️ PROBLEMA: Alguns temas escondem miniaturas com:
   .woocommerce-product-gallery ol,
   .woocommerce-product-gallery ul {
     display: none;
   }
   
   ✅ SOLUÇÃO: Forçar display e visibility
   ============================================ */

.single-product .woocommerce-product-gallery ol,
.single-product .woocommerce-product-gallery ul,
.single-product .flex-control-thumbs {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  list-style: none !important;
}

/* ============================================
   Fim da correção sticky
   ============================================ */

/* ============================================
   💎 CHECKOUT PREMIUM - INJETADO DIRETO NO TEMA
   ============================================ */

/* 🔥 FORÇA FONTE INTER */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body.woocommerce-checkout,
body.woocommerce-checkout * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* FUNDO CINZA */
body.woocommerce-checkout {
    background: #f9fafb !important;
}

/* TÍTULO */
body.woocommerce-checkout h1.entry-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #2b2b2b !important;
    margin-bottom: 32px !important;
}

/* ❌ REMOVE TÍTULO "FINALIZAÇÃO DE COMPRA" */
body.woocommerce-checkout h1.entry-title {
    display: none !important;
}

/* LAYOUT 2 COLUNAS DESKTOP */
@media (min-width: 768px) {
    body.woocommerce-checkout form.checkout #customer_details {
        float: left !important;
        width: 63% !important;
        padding-right: 30px !important;
    }
    
    body.woocommerce-checkout form.checkout #order_review_heading,
    body.woocommerce-checkout form.checkout #order_review {
        float: right !important;
        width: 35% !important;
        clear: right !important;
    }
}

/* CARDS BRANCOS COM SOMBRA */
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout #payment {
    background: white !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 20px !important;
    border: none !important;
}

/* INPUTS MODERNOS 48PX */
body.woocommerce-checkout input[type="text"],
body.woocommerce-checkout input[type="email"],
body.woocommerce-checkout input[type="tel"],
body.woocommerce-checkout input[type="password"],
body.woocommerce-checkout select,
body.woocommerce-checkout .input-text,
body.woocommerce-checkout textarea {
    height: 48px !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    background: white !important;
    transition: all 0.2s ease !important;
}

body.woocommerce-checkout textarea {
    height: 100px !important;
    padding: 12px 14px !important;
}

/* FOCUS LARANJA */
body.woocommerce-checkout input:focus,
body.woocommerce-checkout select:focus,
body.woocommerce-checkout textarea:focus {
    outline: none !important;
    border-color: #ff9800 !important;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.15) !important;
}

/* LABELS */
body.woocommerce-checkout label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2b2b2b !important;
    margin-bottom: 6px !important;
    display: block !important;
}

/* MÉTODOS DE PAGAMENTO */
body.woocommerce-checkout #payment ul.payment_methods li {
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 16px !important;
    background: white !important;
    margin-bottom: 12px !important;
}

body.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    height: 20px !important;
    width: 20px !important;
}

/* BOTÃO FINALIZAR 56PX LARANJA */
body.woocommerce-checkout #place_order {
    width: 100% !important;
    height: 56px !important;
    background: #ff9800 !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

body.woocommerce-checkout #place_order:hover {
    background: #f57c00 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3) !important;
}

/* TABELA RESUMO PEDIDO */
body.woocommerce-checkout table.shop_table {
    border-radius: 8px !important;
    overflow: hidden !important;
}

body.woocommerce-checkout table.shop_table th,
body.woocommerce-checkout table.shop_table td {
    padding: 12px !important;
    border: 1px solid #f3f4f6 !important;
}

body.woocommerce-checkout table.shop_table th {
    background: #f9fafb !important;
    font-weight: 600 !important;
}

/* MOBILE FRIENDLY */
@media (max-width: 767px) {
    body.woocommerce-checkout form.checkout #customer_details,
    body.woocommerce-checkout form.checkout #order_review_heading,
    body.woocommerce-checkout form.checkout #order_review {
        float: none !important;
        width: 100% !important;
        padding-right: 0 !important;
    }
    
    body.woocommerce-checkout .woocommerce-billing-fields,
    body.woocommerce-checkout .woocommerce-shipping-fields,
    body.woocommerce-checkout #order_review,
    body.woocommerce-checkout #payment {
        padding: 16px !important;
    }
}

/* ============================================
   Fim do Checkout Premium
   ============================================ */

/* ============================================
   💎 RESUMO DO PEDIDO - DESIGN PREMIUM
   ============================================ */

/* TÍTULO DO RESUMO */
body.woocommerce-checkout #order_review_heading {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #2b2b2b !important;
    margin-bottom: 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

body.woocommerce-checkout #order_review_heading:before {
    content: "📋" !important;
    font-size: 24px !important;
}

/* TABELA DO RESUMO */
body.woocommerce-checkout table.shop_table {
    border: none !important;
    margin: 0 !important;
}

body.woocommerce-checkout table.shop_table thead {
    display: none !important; /* Remove cabeçalho "Produto | Subtotal" */
}

/* CADA ITEM DO CARRINHO */
body.woocommerce-checkout table.shop_table tbody tr.cart_item {
    display: block !important;
    background: #f9fafb !important;
    border-radius: 10px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    border: 1px solid #e5e7eb !important;
}

/* NOME DO PRODUTO */
body.woocommerce-checkout table.shop_table .product-name {
    display: block !important;
    width: 100% !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #2b2b2b !important;
    margin-bottom: 12px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #e5e7eb !important;
}

/* PERSONALIZAÇÕES (dl dt dd) */
body.woocommerce-checkout table.shop_table .product-name dl {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 8px 12px !important;
    margin: 12px 0 0 0 !important;
    padding: 0 !important;
}

body.woocommerce-checkout table.shop_table .product-name dt {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    margin: 0 !important;
    padding: 6px 0 !important;
}

body.woocommerce-checkout table.shop_table .product-name dd {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #2b2b2b !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    background: white !important;
    border-radius: 6px !important;
    border: 1px solid #e5e7eb !important;
}

/* DESTAQUE ESPECIAL PARA TEXTOS PERSONALIZADOS */
body.woocommerce-checkout table.shop_table .product-name dd p {
    margin: 0 !important;
    padding: 4px 8px !important;
    background: #fff3e0 !important; /* Laranja claro */
    border-left: 3px solid #ff9800 !important;
    border-radius: 4px !important;
    font-style: italic !important;
}

/* PREÇO DO PRODUTO */
body.woocommerce-checkout table.shop_table .product-total {
    display: block !important;
    width: 100% !important;
    text-align: right !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #ff9800 !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 2px dashed #e5e7eb !important;
}

/* RODAPÉ DA TABELA (SUBTOTAL, TOTAL) */
body.woocommerce-checkout table.shop_table tfoot {
    display: block !important;
    margin-top: 16px !important;
}

body.woocommerce-checkout table.shop_table tfoot tr {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
}

body.woocommerce-checkout table.shop_table tfoot tr.order-total {
    border-bottom: none !important;
    background: #fff3e0 !important;
    border-radius: 8px !important;
    padding: 16px !important;
    margin-top: 8px !important;
}

body.woocommerce-checkout table.shop_table tfoot th {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    text-align: left !important;
    border: none !important;
    background: transparent !important;
}

body.woocommerce-checkout table.shop_table tfoot tr.order-total th {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #2b2b2b !important;
}

body.woocommerce-checkout table.shop_table tfoot td {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #2b2b2b !important;
    text-align: right !important;
    border: none !important;
    background: transparent !important;
}

body.woocommerce-checkout table.shop_table tfoot tr.order-total td {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #ff9800 !important;
}

/* MOBILE - AJUSTES */
@media (max-width: 767px) {
    body.woocommerce-checkout table.shop_table .product-name dl {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
    }
    
    body.woocommerce-checkout table.shop_table .product-name dt {
        font-weight: 700 !important;
        color: #2b2b2b !important;
    }
}

/* ============================================
   Fim do Resumo do Pedido Premium
   ============================================ */

/* ============================================
   🎁 CUPOM DE DESCONTO - DENTRO DO RESUMO
   ============================================ */

/* ❌ ESCONDE O CUPOM PADRÃO DO TOPO */
body.woocommerce-checkout .woocommerce-form-coupon-toggle {
    display: none !important;
}

/* 🎁 FORMULÁRIO DE CUPOM NO RESUMO */
body.woocommerce-checkout #order_review .woocommerce-form-coupon {
    background: #fff7ed !important; /* Laranja claro */
    border: 2px solid #fed7aa !important;
    border-radius: 10px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    display: block !important;
}

/* TÍTULO DO CUPOM */
body.woocommerce-checkout #order_review .woocommerce-form-coupon p:first-child {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #2b2b2b !important;
    margin: 0 0 12px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

body.woocommerce-checkout #order_review .woocommerce-form-coupon p:first-child:before {
    content: "🎁" !important;
    font-size: 20px !important;
}

/* CONTAINER INPUT + BOTÃO */
body.woocommerce-checkout #order_review .woocommerce-form-coupon .form-row {
    display: flex !important;
    gap: 10px !important;
    margin: 0 !important;
}

/* INPUT DO CUPOM */
body.woocommerce-checkout #order_review .woocommerce-form-coupon input[type="text"] {
    flex: 1 !important;
    height: 44px !important;
    border-radius: 8px !important;
    border: 2px solid #ff9800 !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    background: white !important;
}

body.woocommerce-checkout #order_review .woocommerce-form-coupon input[type="text"]::placeholder {
    text-transform: none !important;
    font-weight: 400 !important;
}

/* BOTÃO APLICAR */
body.woocommerce-checkout #order_review .woocommerce-form-coupon button {
    height: 44px !important;
    padding: 0 24px !important;
    background: #ff9800 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

body.woocommerce-checkout #order_review .woocommerce-form-coupon button:hover {
    background: #f57c00 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3) !important;
}

/* CUPOM APLICADO COM SUCESSO */
body.woocommerce-checkout table.shop_table tfoot tr.cart-discount {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px !important;
    background: #d1fae5 !important; /* Verde claro */
    border: 2px solid #10b981 !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
}

body.woocommerce-checkout table.shop_table tfoot tr.cart-discount th {
    color: #065f46 !important;
    font-weight: 700 !important;
}

body.woocommerce-checkout table.shop_table tfoot tr.cart-discount th:before {
    content: "✅ " !important;
}

body.woocommerce-checkout table.shop_table tfoot tr.cart-discount td {
    color: #10b981 !important;
    font-weight: 700 !important;
}

/* MOBILE */
@media (max-width: 767px) {
    body.woocommerce-checkout #order_review .woocommerce-form-coupon .form-row {
        flex-direction: column !important;
    }
    
    body.woocommerce-checkout #order_review .woocommerce-form-coupon button {
        width: 100% !important;
    }
}

/* ============================================
   Fim do Cupom de Desconto
   ============================================ */