/*
Theme Name: DigitalBooks Pro
Theme URI: https://example.invalid/digitalbooks-pro
Author: DigitalBooks
Description: Tema completo para WooCommerce focado em livros digitais, cursos, PDFs e materiais baixáveis. Layout azul responsivo, busca, categorias, produtos em destaque e área do cliente.
Version: 1.0.7
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: digitalbooks-pro
*/
:root{--db-blue:#0867df;--db-blue2:#0047a8;--db-navy:#08233f;--db-bg:#f6f9fd;--db-text:#142033;--db-muted:#6c788a;--db-line:#e4ebf3;--db-white:#fff;--db-yellow:#ffb800;--db-radius:14px;--db-shadow:0 8px 28px rgba(13,49,86,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--db-bg);color:var(--db-text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.55}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.db-container{width:min(1180px,calc(100% - 32px));margin:auto}.db-topbar{background:var(--db-blue2);color:#fff;font-size:12px}.db-topbar .db-container{display:flex;justify-content:space-between;gap:20px;padding:7px 0}.db-top-items{display:flex;gap:22px;flex-wrap:wrap}.db-main-header{background:#fff;border-bottom:1px solid var(--db-line)}.db-header-row{min-height:82px;display:grid;grid-template-columns:220px minmax(240px,1fr) auto;align-items:center;gap:28px}.custom-logo{max-height:52px;width:auto}.db-brand{font-size:25px;font-weight:800;color:var(--db-blue2);display:flex;align-items:center;gap:9px}.db-brand-mark{width:36px;height:36px;border-radius:9px;background:linear-gradient(135deg,var(--db-blue),var(--db-blue2));color:#fff;display:grid;place-items:center;font-size:20px}.db-search form{display:flex;width:100%}.db-search input[type=search]{width:100%;height:46px;border:1px solid #dce5ef;border-radius:9px 0 0 9px;padding:0 16px;background:#fbfdff;font-size:14px;outline:none}.db-search button,.db-search input[type=submit]{height:46px;min-width:52px;border:0;background:var(--db-blue);color:#fff;border-radius:0 9px 9px 0;cursor:pointer;font-weight:700}.db-header-actions{display:flex;gap:18px;align-items:center}.db-action{font-size:12px;text-align:center;color:#344054}.db-action strong{display:block;font-size:18px;color:var(--db-navy)}.db-nav{background:linear-gradient(90deg,var(--db-blue2),var(--db-blue));color:#fff;box-shadow:0 2px 7px rgba(0,70,160,.15)}.db-nav-list{display:flex;gap:0;align-items:center;overflow:auto;white-space:nowrap}.db-nav a{display:block;padding:13px 16px;font-size:13px;font-weight:700}.db-nav a:hover{background:rgba(255,255,255,.12)}
.db-hero{background:linear-gradient(120deg,#06376f,#075ac9 62%,#1281ed);color:#fff;overflow:hidden}.db-hero-inner{min-height:360px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:30px;position:relative}.db-hero h1{font-size:48px;line-height:1.05;margin:0 0 18px;letter-spacing:-1.6px}.db-hero h1 span{color:#6bb7ff}.db-hero p{font-size:18px;max-width:570px;color:#e8f3ff;margin:0 0 26px}.db-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--db-blue);color:#fff!important;border:0;border-radius:9px;padding:13px 21px;font-weight:800;cursor:pointer;transition:.2s}.db-btn:hover{transform:translateY(-1px);filter:brightness(.95)}.db-btn-white{background:#fff;color:var(--db-blue2)!important}.db-hero-art{height:330px;display:flex;align-items:flex-end;justify-content:center;position:relative}.db-book-stack{position:relative;width:360px;height:250px}.db-book{position:absolute;width:245px;height:52px;border-radius:5px 11px 11px 5px;right:35px;background:#f3f5f7;border-left:24px solid #09294d;box-shadow:0 12px 24px rgba(0,0,0,.25)}.db-book:after{content:"";position:absolute;left:15px;right:10px;top:9px;height:1px;background:#cbd6e2;box-shadow:0 8px #cbd6e2,0 16px #cbd6e2,0 24px #cbd6e2}.db-book:nth-child(1){bottom:15px;transform:rotate(-2deg)}.db-book:nth-child(2){bottom:68px;right:65px;transform:rotate(2deg);border-left-color:#f2a800}.db-book:nth-child(3){bottom:121px;right:25px;transform:rotate(-1deg);border-left-color:#d83b3b}.db-book:nth-child(4){bottom:174px;right:55px;transform:rotate(1deg);border-left-color:#0a2747}.db-benefits{background:#fff;border-bottom:1px solid var(--db-line)}.db-benefit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.db-benefit{padding:20px 12px;display:flex;align-items:center;gap:12px}.db-benefit-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#eaf4ff;color:var(--db-blue);font-size:19px;flex:0 0 auto}.db-benefit b{display:block;font-size:14px}.db-benefit small{color:var(--db-muted)}
.db-section{padding:46px 0}.db-section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:22px}.db-section h2{font-size:28px;margin:0}.db-section-link{font-size:13px;color:var(--db-blue);font-weight:800}.db-category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.db-category-card{background:#fff;border:1px solid var(--db-line);border-radius:var(--db-radius);padding:22px 12px;text-align:center;box-shadow:0 4px 18px rgba(22,54,88,.04);transition:.2s}.db-category-card:hover{transform:translateY(-3px);box-shadow:var(--db-shadow)}.db-cat-icon{width:58px;height:58px;border-radius:15px;margin:0 auto 12px;display:grid;place-items:center;background:#edf5ff;font-size:30px}.db-category-card b{display:block;font-size:14px}.db-category-card small{color:var(--db-muted);font-size:11px}.db-products .products,.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0!important;padding:0!important}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}.woocommerce ul.products li.product,.db-product-card{width:auto!important;margin:0!important;background:#fff;border:1px solid var(--db-line);border-radius:var(--db-radius);padding:14px!important;box-shadow:0 4px 18px rgba(22,54,88,.05);transition:.2s;float:none!important}.woocommerce ul.products li.product:hover{transform:translateY(-3px);box-shadow:var(--db-shadow)}.woocommerce ul.products li.product a img{border-radius:9px;aspect-ratio:4/5;object-fit:cover;margin-bottom:12px!important}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:15px!important;color:var(--db-text);padding:4px 0!important;min-height:48px}.woocommerce ul.products li.product .price{color:var(--db-text)!important;font-size:18px!important;font-weight:800!important}.woocommerce ul.products li.product .button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:var(--db-blue)!important;color:#fff!important;border-radius:8px!important;padding:11px 16px!important;font-weight:800!important}.woocommerce span.onsale{background:#ef4444!important;min-width:auto!important;min-height:auto!important;line-height:1!important;padding:8px!important;border-radius:7px!important}.db-empty-products{background:#fff;border:1px dashed #cbd8e6;border-radius:14px;padding:32px;text-align:center;color:var(--db-muted)}.db-offer{margin:8px auto 46px;background:linear-gradient(90deg,#0754b8,#0877e9);color:#fff;border-radius:14px;padding:24px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px}.db-offer h3{margin:0;font-size:23px}.db-offer p{margin:3px 0 0;color:#e9f4ff}.site-footer{background:#071e36;color:#d7e3f0}.db-footer-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:34px;padding:48px 0}.site-footer h4{color:#fff;margin:0 0 14px}.site-footer ul{list-style:none;padding:0;margin:0}.site-footer li{margin:7px 0;font-size:13px}.site-footer p{font-size:13px;color:#aebfd0}.db-copyright{border-top:1px solid rgba(255,255,255,.1);padding:16px 0;font-size:12px;color:#9db0c3}.db-content{padding:38px 0}.woocommerce div.product{background:#fff;padding:25px;border-radius:16px;border:1px solid var(--db-line)}.woocommerce-message,.woocommerce-info{border-top-color:var(--db-blue)!important}.woocommerce-message:before,.woocommerce-info:before{color:var(--db-blue)!important}.woocommerce-checkout #payment{background:#eef5fc!important}.db-page-title{margin:0 0 24px;font-size:34px}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.db-topbar{display:none}.db-header-row{grid-template-columns:1fr auto;gap:14px;padding:12px 0}.db-search{grid-column:1/-1;grid-row:2}.db-header-actions .db-action:nth-child(1){display:none}.db-nav-list a{padding:11px 13px}.db-hero-inner{grid-template-columns:1fr;min-height:auto;padding:42px 0}.db-hero h1{font-size:38px}.db-hero-art{display:none}.db-benefit-grid{grid-template-columns:repeat(2,1fr)}.db-category-grid{grid-template-columns:repeat(3,1fr)}.db-products .products,.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}.db-footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.db-container{width:min(100% - 22px,1180px)}.db-brand{font-size:20px}.db-brand-mark{width:31px;height:31px}.db-header-actions{gap:10px}.db-action span{display:none}.db-hero h1{font-size:34px}.db-hero p{font-size:15px}.db-benefit-grid{grid-template-columns:1fr 1fr}.db-benefit{padding:15px 4px}.db-benefit small{display:none}.db-category-grid{grid-template-columns:repeat(2,1fr)}.db-section{padding:34px 0}.db-section h2{font-size:23px}.db-products .products,.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.woocommerce ul.products li.product{padding:10px!important}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:13px!important}.db-offer{align-items:flex-start;flex-direction:column}.db-footer-grid{grid-template-columns:1fr}.db-footer-grid>div:not(:first-child){display:none}}

/* =====================================================================
   DIGITALBOOKS PRO — PÁGINA DO PRODUTO
   Ajustes direcionados à estrutura WooCommerce mostrada no site.
   Mantém a paleta original do tema.
   ===================================================================== */

/* Card principal do produto */
body.single-product .db-content .woocommerce div.product {
    background: #ffffff !important;
    border: 1px solid #dbe5f0 !important;
    border-radius: 18px !important;
    padding: 28px !important;
    box-shadow: 0 10px 30px rgba(8,35,63,.07) !important;
}

/* Imagem/capa */
body.single-product .woocommerce div.product div.images img {
    border-radius: 12px !important;
    border: 1px solid #e4ebf3 !important;
    box-shadow: 0 5px 18px rgba(8,35,63,.07) !important;
}

/* Título */
body.single-product .woocommerce div.product .summary .product_title {
    color: #08233f !important;
    font-weight: 800 !important;
    letter-spacing: -.5px !important;
    line-height: 1.15 !important;
    margin: 4px 0 18px !important;
}

/* =========================================================
   PREÇO — destaque de loja digital
   Força a substituição do amarelo padrão do WooCommerce.
   ========================================================= */
body.single-product .woocommerce div.product .summary > p.price,
body.single-product .woocommerce div.product .summary > span.price,
body.single-product .woocommerce div.product p.price,
body.single-product .woocommerce div.product span.price,
body.single-product div.product .summary .price,
.woocommerce.single-product div.product p.price,
.woocommerce.single-product div.product span.price {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    color: #0867df !important;
    background: #edf5ff !important;
    border: 1px solid #cfe3fb !important;
    border-left: 4px solid #0867df !important;
    border-radius: 10px !important;
    padding: 9px 14px !important;
    margin: 2px 0 18px !important;
    font-size: 27px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    letter-spacing: -.3px !important;
    box-shadow: 0 5px 14px rgba(8,103,223,.09) !important;
}

/* Preço promocional */
body.single-product .woocommerce div.product .summary .price ins {
    color: #0867df !important;
    background: transparent !important;
    text-decoration: none !important;
    font-weight: 900 !important;
}

/* Preço antigo */
body.single-product .woocommerce div.product .summary .price del {
    color: #6c788a !important;
    opacity: .72 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-right: 9px !important;
}

/* =========================================================
   DESCRIÇÃO CURTA — caixa diferenciada
   ========================================================= */
body.single-product .woocommerce div.product .summary .woocommerce-product-details__short-description {
    position: relative !important;
    display: block !important;
    clear: both !important;
    margin: 2px 0 20px !important;
    padding: 17px 18px 16px !important;
    color: #34475d !important;
    background: #f6f9fd !important;
    border: 1px solid #dce7f2 !important;
    border-left: 4px solid #0047a8 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
}

/* Rótulo visual da descrição */
body.single-product .woocommerce div.product .summary .woocommerce-product-details__short-description::before {
    content: "Descrição do produto" !important;
    display: block !important;
    margin: 0 0 7px !important;
    color: #0047a8 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: .35px !important;
    text-transform: uppercase !important;
}

/* Remove margens exageradas do texto dentro da descrição */
body.single-product .woocommerce div.product .summary .woocommerce-product-details__short-description p {
    margin: 0 !important;
    color: #34475d !important;
}

/* Área de compra */
body.single-product .woocommerce div.product .summary form.cart {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
}

/* Quantidade */
body.single-product .woocommerce div.product .summary form.cart .quantity {
    margin: 0 !important;
}
body.single-product .woocommerce div.product .summary form.cart input.qty {
    width: 72px !important;
    height: 46px !important;
    border: 1px solid #cfdbe8 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #08233f !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-align: center !important;
    outline: none !important;
}
body.single-product .woocommerce div.product .summary form.cart input.qty:focus {
    border-color: #0867df !important;
    box-shadow: 0 0 0 3px rgba(8,103,223,.10) !important;
}

/* Botão adicionar ao carrinho */
body.single-product .woocommerce div.product .summary .single_add_to_cart_button {
    min-height: 46px !important;
    padding: 11px 22px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg,#0867df,#0054bf) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 16px rgba(8,103,223,.20) !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}
body.single-product .woocommerce div.product .summary .single_add_to_cart_button:hover {
    color: #ffffff !important;
    filter: brightness(.94) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px rgba(8,103,223,.26) !important;
}

/* Categorias e tags */
body.single-product .woocommerce div.product .summary .product_meta {
    margin-top: 4px !important;
    padding: 16px 17px !important;
    color: #5e6d7f !important;
    background: #fbfdff !important;
    border: 1px solid #e1e9f2 !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}
body.single-product .woocommerce div.product .summary .product_meta a {
    color: #0867df !important;
    font-weight: 700 !important;
}
body.single-product .woocommerce div.product .summary .product_meta a:hover {
    color: #0047a8 !important;
}

/* Zoom da imagem */
body.single-product .woocommerce div.product .woocommerce-product-gallery__trigger {
    background: #ffffff !important;
    border: 1px solid #dbe5f0 !important;
    box-shadow: 0 4px 12px rgba(8,35,63,.08) !important;
}

/* Mobile */
@media (max-width: 560px) {
    body.single-product .db-content .woocommerce div.product {
        padding: 15px !important;
        border-radius: 13px !important;
    }

    body.single-product .woocommerce div.product .summary > p.price,
    body.single-product .woocommerce div.product .summary > span.price,
    body.single-product .woocommerce div.product p.price,
    body.single-product .woocommerce div.product span.price {
        font-size: 23px !important;
        padding: 8px 12px !important;
    }

    body.single-product .woocommerce div.product .summary .woocommerce-product-details__short-description {
        padding: 14px !important;
    }

    body.single-product .woocommerce div.product .summary form.cart {
        align-items: stretch !important;
    }

    body.single-product .woocommerce div.product .summary .single_add_to_cart_button {
        flex: 1 !important;
        min-width: 180px !important;
    }
}

/* FIM — PÁGINA DO PRODUTO */

/* =====================================================================
   DIGITALBOOKS PRO — CONTROLE DE QUANTIDADE
   Personalização visual do seletor de quantidade da página do produto.
   ===================================================================== */

/* Bloco da quantidade */
body.single-product .woocommerce div.product .summary form.cart .quantity {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 92px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: linear-gradient(180deg,#ffffff,#f7faff) !important;
    border: 1px solid #cfdbe8 !important;
    border-radius: 10px !important;
    box-shadow:
        0 4px 12px rgba(8,35,63,.06),
        inset 0 1px 0 rgba(255,255,255,.9) !important;
    overflow: hidden !important;
    transition: border-color .18s ease, box-shadow .18s ease !important;
}

/* Destaque quando o campo recebe foco */
body.single-product .woocommerce div.product .summary form.cart .quantity:focus-within {
    border-color: #0867df !important;
    box-shadow:
        0 0 0 3px rgba(8,103,223,.10),
        0 5px 14px rgba(8,35,63,.07) !important;
}

/* Campo numérico */
body.single-product .woocommerce div.product .summary form.cart .quantity input.qty {
    width: 90px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #08233f !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 44px !important;
    text-align: center !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Setas nativas do campo numérico — deixa mais limpo no Chrome/Edge/Safari */
body.single-product .woocommerce div.product .summary form.cart .quantity input.qty::-webkit-inner-spin-button,
body.single-product .woocommerce div.product .summary form.cart .quantity input.qty::-webkit-outer-spin-button {
    opacity: 1 !important;
    height: 34px !important;
    cursor: pointer !important;
}

/* Firefox */
body.single-product .woocommerce div.product .summary form.cart .quantity input.qty {
    -moz-appearance: auto !important;
}

/* Espaçamento harmonioso entre quantidade e botão */
body.single-product .woocommerce div.product .summary form.cart {
    gap: 12px !important;
}

/* Mobile */
@media (max-width: 560px) {
    body.single-product .woocommerce div.product .summary form.cart .quantity {
        min-width: 88px !important;
        height: 46px !important;
    }

    body.single-product .woocommerce div.product .summary form.cart .quantity input.qty {
        width: 86px !important;
        font-size: 16px !important;
    }
}

/* FIM — CONTROLE DE QUANTIDADE */

/* =====================================================================
   DIGITALBOOKS PRO — PAINEL DO USUÁRIO + PRODUTO REFINADO
   Mantém as cores originais do tema e melhora apenas áreas específicas.
   ===================================================================== */

/* =========================================================
   1. PAINEL DO USUÁRIO / MINHA CONTA
   ========================================================= */

body.woocommerce-account .db-content {
    padding-top: 42px !important;
    padding-bottom: 54px !important;
}

/* Estrutura geral */
body.woocommerce-account .woocommerce {
    display: grid !important;
    grid-template-columns: 245px minmax(0, 1fr) !important;
    gap: 28px !important;
    align-items: start !important;
}

/* Menu lateral */
body.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100% !important;
    float: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 12px !important;
    background: linear-gradient(180deg,#ffffff,#f7faff) !important;
    border: 1px solid #d7e3ef !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 28px rgba(8,35,63,.08) !important;
    overflow: hidden !important;
}

/* Itens do menu */
body.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 4px 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: block !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    color: #34475d !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    transition: .18s ease !important;
}

/* Hover */
body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    background: #edf5ff !important;
    color: #0867df !important;
    padding-left: 17px !important;
}

/* Item ativo */
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background: linear-gradient(135deg,#0867df,#0054bf) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(8,103,223,.20) !important;
}

/* Conteúdo da conta */
body.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    min-height: 360px !important;
    padding: 28px !important;
    background: #ffffff !important;
    border: 1px solid #d7e3ef !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(8,35,63,.07) !important;
}

/* Títulos */
body.woocommerce-account .woocommerce-MyAccount-content h1,
body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
    color: #08233f !important;
    font-weight: 800 !important;
}

/* Links */
body.woocommerce-account .woocommerce-MyAccount-content a {
    color: #0867df !important;
    font-weight: 700 !important;
}

body.woocommerce-account .woocommerce-MyAccount-content a:hover {
    color: #0047a8 !important;
}

/* Bloco de saudação */
body.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
    padding: 15px 17px !important;
    background: linear-gradient(135deg,#f5f9ff,#edf5ff) !important;
    border: 1px solid #d7e8fb !important;
    border-radius: 14px !important;
    color: #34475d !important;
}

/* Endereços */
body.woocommerce-account .woocommerce-Address,
body.woocommerce-account .u-column1,
body.woocommerce-account .u-column2 {
    background: #fbfdff !important;
    border: 1px solid #e1e9f2 !important;
    border-radius: 16px !important;
    padding: 20px !important;
}

/* Tabelas dentro da conta */
body.woocommerce-account .woocommerce table.shop_table {
    border-radius: 14px !important;
    overflow: hidden !important;
}

/* Botões do painel */
body.woocommerce-account .woocommerce-MyAccount-content .button {
    border-radius: 10px !important;
    box-shadow: 0 5px 14px rgba(8,103,223,.16) !important;
}

/* =========================================================
   2. PREÇO — BORDA MAIS MODERNA E CHAMATIVA
   ========================================================= */

body.single-product .woocommerce div.product .summary > p.price,
body.single-product .woocommerce div.product .summary > span.price,
body.single-product .woocommerce div.product p.price,
body.single-product .woocommerce div.product span.price,
body.single-product div.product .summary .price,
.woocommerce.single-product div.product p.price,
.woocommerce.single-product div.product span.price {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    color: #0867df !important;
    background: linear-gradient(135deg,#f7fbff,#edf5ff) !important;
    border: 2px solid #bfd9f8 !important;
    border-radius: 14px !important;
    padding: 10px 16px !important;
    margin: 3px 0 18px !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    letter-spacing: -.35px !important;
    box-shadow:
        0 6px 16px rgba(8,103,223,.10),
        inset 0 0 0 1px rgba(255,255,255,.8) !important;
}

/* Pequeno detalhe lateral */
body.single-product .woocommerce div.product .summary > p.price::before,
body.single-product .woocommerce div.product .summary > span.price::before {
    content: "" !important;
    width: 6px !important;
    height: 28px !important;
    margin-right: 10px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg,#0867df,#0047a8) !important;
    box-shadow: 0 2px 7px rgba(8,103,223,.18) !important;
}

/* =========================================================
   3. QUANTIDADE — VISUAL MAIS MODERNO
   ========================================================= */

body.single-product .woocommerce div.product .summary form.cart .quantity {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 98px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: linear-gradient(180deg,#ffffff,#f3f8fe) !important;
    border: 2px solid #cbd9e8 !important;
    border-radius: 13px !important;
    box-shadow:
        0 5px 14px rgba(8,35,63,.07),
        inset 0 1px 0 rgba(255,255,255,.95) !important;
    overflow: hidden !important;
}

body.single-product .woocommerce div.product .summary form.cart .quantity:focus-within {
    border-color: #0867df !important;
    box-shadow:
        0 0 0 3px rgba(8,103,223,.10),
        0 6px 16px rgba(8,35,63,.08) !important;
}

/* Campo numérico */
body.single-product .woocommerce div.product .summary form.cart .quantity input.qty {
    width: 94px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    background: transparent !important;
    color: #08233f !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    text-align: center !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Setas nativas do navegador */
body.single-product .woocommerce div.product .summary form.cart .quantity input.qty::-webkit-inner-spin-button,
body.single-product .woocommerce div.product .summary form.cart .quantity input.qty::-webkit-outer-spin-button {
    opacity: 1 !important;
    cursor: pointer !important;
}

/* =========================================================
   4. DESCRIÇÃO — FUNDO MAIS ATRAENTE E BORDAS ARREDONDADAS
   ========================================================= */

body.single-product .woocommerce div.product .summary .woocommerce-product-details__short-description {
    position: relative !important;
    display: block !important;
    clear: both !important;
    margin: 3px 0 20px !important;
    padding: 19px 20px 18px !important;
    background:
        radial-gradient(circle at 92% 10%,rgba(8,103,223,.08),transparent 26%),
        linear-gradient(135deg,#f9fcff,#eef6ff) !important;
    border: 1px solid #d4e4f5 !important;
    border-radius: 16px !important;
    color: #34475d !important;
    box-shadow:
        0 7px 18px rgba(8,35,63,.055),
        inset 0 1px 0 rgba(255,255,255,.9) !important;
}

/* Faixa superior visual */
body.single-product .woocommerce div.product .summary .woocommerce-product-details__short-description::before {
    content: "Descrição do produto" !important;
    display: inline-block !important;
    margin: 0 0 10px !important;
    padding: 6px 10px !important;
    background: #ffffff !important;
    border: 1px solid #d7e8fb !important;
    border-radius: 999px !important;
    color: #0047a8 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .45px !important;
    text-transform: uppercase !important;
    box-shadow: 0 3px 10px rgba(8,103,223,.06) !important;
}

body.single-product .woocommerce div.product .summary .woocommerce-product-details__short-description p {
    margin: 0 !important;
    color: #34475d !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

/* =========================================================
   5. MOBILE
   ========================================================= */

@media (max-width: 900px) {
    body.woocommerce-account .woocommerce {
        grid-template-columns: 1fr !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation ul {
        border-radius: 16px !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-content {
        border-radius: 16px !important;
        padding: 22px !important;
    }
}

@media (max-width: 560px) {
    body.single-product .woocommerce div.product .summary > p.price,
    body.single-product .woocommerce div.product .summary > span.price,
    body.single-product .woocommerce div.product p.price,
    body.single-product .woocommerce div.product span.price {
        font-size: 24px !important;
        border-radius: 12px !important;
        padding: 9px 13px !important;
    }

    body.single-product .woocommerce div.product .summary .woocommerce-product-details__short-description {
        border-radius: 13px !important;
        padding: 16px !important;
    }

    body.single-product .woocommerce div.product .summary form.cart .quantity {
        min-width: 94px !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-content {
        padding: 17px !important;
    }
}

/* FIM — PAINEL DO USUÁRIO + PRODUTO REFINADO */

/* =====================================================================
   DIGITALBOOKS PRO — HOME REFINADA + CORREÇÃO MINHA CONTA
   Este bloco corrige o layout do painel do usuário e melhora a página
   inicial usando as classes reais e a paleta azul original do tema.
   ===================================================================== */

/* =========================================================
   A) CORREÇÃO DO PAINEL DO USUÁRIO / MINHA CONTA
   Remove o grid anterior que inverteu/esticou as colunas.
   ========================================================= */

body.woocommerce-account .woocommerce {
    display: block !important;
    width: 100% !important;
}

body.woocommerce-account .woocommerce::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* Menu lateral */
body.woocommerce-account .woocommerce-MyAccount-navigation {
    display: block !important;
    float: left !important;
    width: 25% !important;
    max-width: 280px !important;
    margin: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    width: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    background: linear-gradient(180deg,#ffffff 0%,#f7fbff 100%) !important;
    border: 1px solid #d7e3ef !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(8,35,63,.08) !important;
}

/* Conteúdo principal */
body.woocommerce-account .woocommerce-MyAccount-content {
    display: block !important;
    float: right !important;
    width: 72% !important;
    min-height: 320px !important;
    margin: 0 !important;
    padding: 26px !important;
    background: #ffffff !important;
    border: 1px solid #d7e3ef !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(8,35,63,.07) !important;
}

/* Menu */
body.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 4px 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: block !important;
    padding: 12px 14px !important;
    border-radius: 11px !important;
    color: #34475d !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    transition: background .18s ease, color .18s ease, transform .18s ease !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    padding-left: 14px !important;
    background: #edf5ff !important;
    color: #0867df !important;
    transform: translateX(2px) !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background: linear-gradient(135deg,#0867df,#0054bf) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(8,103,223,.20) !important;
}

/* Mensagens e tabelas dentro de Minha Conta */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error {
    width: 100% !important;
    margin: 0 0 18px !important;
    border-radius: 12px !important;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
    width: 100% !important;
}

/* Evita que blocos internos fiquem estreitos */
body.woocommerce-account .woocommerce-MyAccount-content > * {
    max-width: 100% !important;
}

/* =========================================================
   B) PÁGINA INICIAL — CORES E ACABAMENTO DE LOJA DIGITAL
   ========================================================= */

/* Fundo da home */
body.home {
    background:
        radial-gradient(circle at 15% 14%,rgba(8,103,223,.055),transparent 24%),
        linear-gradient(180deg,#ffffff 0,#f7faff 480px,#f6f9fd 100%) !important;
}

/* Hero principal */
body.home .db-hero {
    position: relative !important;
    background:
        radial-gradient(circle at 84% 22%,rgba(107,183,255,.25),transparent 25%),
        radial-gradient(circle at 72% 82%,rgba(255,184,0,.09),transparent 26%),
        linear-gradient(125deg,#08233f 0%,#064caa 48%,#0867df 100%) !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
    box-shadow: 0 12px 34px rgba(8,35,63,.16) !important;
}

body.home .db-hero::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    background:
        linear-gradient(115deg,transparent 0 62%,rgba(255,255,255,.045) 62% 63%,transparent 63% 100%) !important;
}

body.home .db-hero h1 {
    color: #ffffff !important;
    text-shadow: 0 3px 14px rgba(0,0,0,.16) !important;
}

body.home .db-hero h1 span {
    color: #8fcbff !important;
}

body.home .db-hero p {
    color: #eaf5ff !important;
}

body.home .db-btn-white {
    background: #ffffff !important;
    color: #0047a8 !important;
    border: 1px solid rgba(255,255,255,.65) !important;
    border-radius: 11px !important;
    box-shadow: 0 8px 22px rgba(0,0,0,.13) !important;
}

/* Benefícios abaixo do hero */
body.home .db-benefits {
    background: #ffffff !important;
    border-bottom: 1px solid #dfe8f2 !important;
    box-shadow: 0 8px 22px rgba(8,35,63,.045) !important;
}

body.home .db-benefit {
    position: relative !important;
    border-right: 1px solid #edf2f7 !important;
}

body.home .db-benefit:last-child {
    border-right: 0 !important;
}

body.home .db-benefit-icon {
    background: linear-gradient(145deg,#eef7ff,#dfedff) !important;
    color: #0867df !important;
    border: 1px solid #d5e8fb !important;
    box-shadow: 0 5px 14px rgba(8,103,223,.08) !important;
}

body.home .db-benefit:nth-child(2) .db-benefit-icon {
    background: linear-gradient(145deg,#fff9e8,#fff1bc) !important;
    color: #b77a00 !important;
    border-color: #f4dda0 !important;
}

body.home .db-benefit b {
    color: #08233f !important;
}

/* Seções */
body.home .db-section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

body.home .db-section-head {
    position: relative !important;
    margin-bottom: 24px !important;
    padding-bottom: 13px !important;
    border-bottom: 1px solid #dce6f0 !important;
}

body.home .db-section-head::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -1px !important;
    width: 58px !important;
    height: 3px !important;
    background: linear-gradient(90deg,#0047a8,#0867df) !important;
    border-radius: 999px !important;
}

body.home .db-section h2 {
    color: #08233f !important;
    font-weight: 850 !important;
    letter-spacing: -.45px !important;
}

body.home .db-section-link {
    padding: 7px 11px !important;
    color: #0867df !important;
    background: #edf5ff !important;
    border: 1px solid #d8e9fb !important;
    border-radius: 9px !important;
}

/* Categorias */
body.home .db-category-card {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(180deg,#ffffff,#fbfdff) !important;
    border: 1px solid #d6e2ee !important;
    border-radius: 17px !important;
    box-shadow: 0 7px 20px rgba(8,35,63,.065) !important;
}

body.home .db-category-card::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg,#0047a8,#0867df) !important;
    opacity: .82 !important;
}

body.home .db-category-card:nth-child(2n)::after {
    background: linear-gradient(90deg,#0867df,#5daeff) !important;
}

body.home .db-category-card:hover {
    border-color: #bcd4ec !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 14px 32px rgba(8,35,63,.12) !important;
}

body.home .db-cat-icon {
    background: linear-gradient(145deg,#f2f8ff,#e2f0ff) !important;
    border: 1px solid #d7e8fb !important;
    box-shadow: 0 6px 16px rgba(8,103,223,.08) !important;
}

body.home .db-category-card:nth-child(2) .db-cat-icon,
body.home .db-category-card:nth-child(5) .db-cat-icon {
    background: linear-gradient(145deg,#fff9e9,#fff2c9) !important;
    border-color: #f0dda8 !important;
}

/* Cards de produtos na home */
body.home .woocommerce ul.products li.product,
body.home .db-product-card {
    border: 1px solid #d6e2ee !important;
    border-radius: 17px !important;
    background: #ffffff !important;
    box-shadow: 0 7px 20px rgba(8,35,63,.065) !important;
}

body.home .woocommerce ul.products li.product:hover,
body.home .db-product-card:hover {
    border-color: #bdd4eb !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 34px rgba(8,35,63,.13) !important;
}

body.home .woocommerce ul.products li.product a img {
    border-radius: 12px !important;
    border: 1px solid #edf2f7 !important;
}

body.home .woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #08233f !important;
    font-weight: 800 !important;
}

body.home .woocommerce ul.products li.product .price {
    color: #0867df !important;
    font-size: 19px !important;
    font-weight: 900 !important;
}

body.home .woocommerce ul.products li.product .button {
    width: 100% !important;
    text-align: center !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg,#0867df,#0054bf) !important;
    box-shadow: 0 6px 15px rgba(8,103,223,.17) !important;
}

/* Oferta */
body.home .db-offer {
    position: relative !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 88% 30%,rgba(255,255,255,.15),transparent 23%),
        linear-gradient(100deg,#0047a8,#0867df 68%,#0b78ea) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 18px !important;
    box-shadow: 0 13px 30px rgba(7,84,184,.20) !important;
}

body.home .db-offer::after {
    content: "" !important;
    position: absolute !important;
    right: -50px !important;
    top: -80px !important;
    width: 190px !important;
    height: 190px !important;
    border: 28px solid rgba(255,184,0,.12) !important;
    border-radius: 50% !important;
}

body.home .db-offer h3 {
    color: #ffffff !important;
}

/* Rodapé da home */
body.home .site-footer {
    background: linear-gradient(180deg,#08233f 0%,#06192d 100%) !important;
    border-top: 4px solid #0867df !important;
}

/* =========================================================
   C) RESPONSIVO
   ========================================================= */

@media (max-width: 900px) {
    body.woocommerce-account .woocommerce-MyAccount-navigation,
    body.woocommerce-account .woocommerce-MyAccount-content {
        float: none !important;
        width: 100% !important;
        max-width: none !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 20px !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        gap: 6px !important;
        overflow-x: auto !important;
        border-radius: 15px !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation li {
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation li a {
        white-space: nowrap !important;
    }

    body.home .db-benefit {
        border-right: 0 !important;
    }
}

@media (max-width: 560px) {
    body.woocommerce-account .woocommerce-MyAccount-content {
        padding: 17px !important;
        border-radius: 14px !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation ul {
        padding: 8px !important;
        border-radius: 14px !important;
    }

    body.home .db-category-card {
        border-radius: 13px !important;
    }

    body.home .db-offer {
        border-radius: 14px !important;
    }
}

/* FIM — HOME REFINADA + CORREÇÃO MINHA CONTA */

/* =====================================================================
   DIGITALBOOKS PRO — CORREÇÃO BOTÕES MINHA CONTA + CARRINHO PREMIUM
   Mantém a paleta original: #0867df / #0047a8 / #08233f
   ===================================================================== */

/* =========================================================
   1. MINHA CONTA — CORRIGE TEXTO INVISÍVEL NOS BOTÕES
   ========================================================= */

/* O link global do painel deixava o texto do botão azul sobre fundo azul. */
body.woocommerce-account .woocommerce-MyAccount-content a.button,
body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info a.button,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message a.button,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error a.button {
    color: #ffffff !important;
    background: linear-gradient(135deg,#0867df,#0054bf) !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 11px 18px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(8,103,223,.20) !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

body.woocommerce-account .woocommerce-MyAccount-content a.button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info a.button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message a.button:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg,#075bc7,#0047a8) !important;
    filter: brightness(.97) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px rgba(8,103,223,.25) !important;
}

/* Garante branco também para texto interno eventualmente criado por plugin */
body.woocommerce-account .woocommerce-MyAccount-content a.button *,
body.woocommerce-account .woocommerce-MyAccount-content .button * {
    color: #ffffff !important;
}

/* Caixa "nenhum download/pedido" */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    width: 100% !important;
    padding: 16px 18px 16px 54px !important;
    background: linear-gradient(135deg,#fbfdff,#f3f8fe) !important;
    border: 1px solid #d8e4ef !important;
    border-top: 3px solid #0867df !important;
    border-radius: 13px !important;
    color: #43536a !important;
    box-shadow: 0 5px 15px rgba(8,35,63,.045) !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info::before {
    color: #0867df !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 18px !important;
}

/* =========================================================
   2. CARRINHO — ESTRUTURA GERAL
   ========================================================= */

body.woocommerce-cart {
    background:
        radial-gradient(circle at 12% 12%,rgba(8,103,223,.05),transparent 23%),
        #f6f9fd !important;
}

body.woocommerce-cart .db-content {
    padding-top: 42px !important;
    padding-bottom: 56px !important;
}

body.woocommerce-cart .woocommerce {
    color: #34475d !important;
}

/* Tabela principal */
body.woocommerce-cart .woocommerce table.shop_table.cart {
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #d7e3ef !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 28px rgba(8,35,63,.07) !important;
}

/* Cabeçalho da tabela */
body.woocommerce-cart .woocommerce table.shop_table.cart thead th {
    padding: 16px !important;
    background: linear-gradient(180deg,#f7faff,#edf5ff) !important;
    color: #08233f !important;
    border-bottom: 1px solid #dbe6f1 !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    text-transform: uppercase !important;
    letter-spacing: .3px !important;
}

/* Células */
body.woocommerce-cart .woocommerce table.shop_table.cart td {
    padding: 17px 16px !important;
    border-top: 1px solid #edf2f7 !important;
    vertical-align: middle !important;
    background: #ffffff !important;
}

/* Imagem do produto */
body.woocommerce-cart .woocommerce table.cart img {
    width: 82px !important;
    height: 98px !important;
    object-fit: cover !important;
    border: 1px solid #dfe8f1 !important;
    border-radius: 11px !important;
    background: #f8fbff !important;
    box-shadow: 0 5px 14px rgba(8,35,63,.07) !important;
}

/* Nome do produto */
body.woocommerce-cart .woocommerce table.cart .product-name a {
    color: #08233f !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
}

body.woocommerce-cart .woocommerce table.cart .product-name a:hover {
    color: #0867df !important;
}

/* Valores */
body.woocommerce-cart .woocommerce table.cart .product-price .amount,
body.woocommerce-cart .woocommerce table.cart .product-subtotal .amount {
    color: #0867df !important;
    font-weight: 900 !important;
    font-size: 16px !important;
}

/* Remover item */
body.woocommerce-cart .woocommerce a.remove {
    display: inline-grid !important;
    place-items: center !important;
    width: 34px !important;
    height: 34px !important;
    border: 1px solid #f2caca !important;
    border-radius: 50% !important;
    background: #fff7f7 !important;
    color: #d63a3a !important;
    font-size: 22px !important;
    line-height: 1 !important;
    transition: .18s ease !important;
}

body.woocommerce-cart .woocommerce a.remove:hover {
    background: #d63a3a !important;
    border-color: #d63a3a !important;
    color: #ffffff !important;
    transform: scale(1.04) !important;
}

/* Quantidade no carrinho */
body.woocommerce-cart .woocommerce .quantity {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(180deg,#ffffff,#f5f9fe) !important;
    border: 1px solid #cfddeb !important;
    border-radius: 11px !important;
    box-shadow: 0 4px 12px rgba(8,35,63,.05) !important;
    overflow: hidden !important;
}

body.woocommerce-cart .woocommerce .quantity .qty {
    width: 76px !important;
    height: 43px !important;
    margin: 0 !important;
    padding: 0 9px !important;
    border: 0 !important;
    background: transparent !important;
    color: #08233f !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    outline: none !important;
    box-shadow: none !important;
}

body.woocommerce-cart .woocommerce .quantity:focus-within {
    border-color: #0867df !important;
    box-shadow: 0 0 0 3px rgba(8,103,223,.10) !important;
}

/* =========================================================
   3. CARRINHO — CUPOM E ATUALIZAR
   ========================================================= */

body.woocommerce-cart .woocommerce table.cart td.actions {
    padding: 18px !important;
    background: #fbfdff !important;
}

body.woocommerce-cart .woocommerce table.cart td.actions .coupon {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
}

body.woocommerce-cart .woocommerce table.cart td.actions .coupon .input-text {
    width: 190px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 13px !important;
    border: 1px solid #cfdeec !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    color: #34475d !important;
    outline: none !important;
}

body.woocommerce-cart .woocommerce table.cart td.actions .coupon .input-text:focus {
    border-color: #0867df !important;
    box-shadow: 0 0 0 3px rgba(8,103,223,.09) !important;
}

body.woocommerce-cart .woocommerce table.cart td.actions button.button,
body.woocommerce-cart .woocommerce table.cart td.actions input.button {
    min-height: 44px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg,#0867df,#0054bf) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 5px 14px rgba(8,103,223,.15) !important;
}

body.woocommerce-cart .woocommerce table.cart td.actions button.button:hover,
body.woocommerce-cart .woocommerce table.cart td.actions input.button:hover {
    background: linear-gradient(135deg,#075bc7,#0047a8) !important;
    color: #ffffff !important;
}

/* =========================================================
   4. TOTAL DO CARRINHO
   ========================================================= */

body.woocommerce-cart .woocommerce .cart-collaterals {
    margin-top: 28px !important;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
    float: right !important;
    width: min(100%,480px) !important;
    padding: 24px !important;
    background:
        radial-gradient(circle at 100% 0%,rgba(8,103,223,.08),transparent 32%),
        #ffffff !important;
    border: 1px solid #d7e3ef !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(8,35,63,.08) !important;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals h2 {
    margin: 0 0 17px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #dfe8f1 !important;
    color: #08233f !important;
    font-size: 23px !important;
    font-weight: 850 !important;
}

body.woocommerce-cart .woocommerce .cart_totals table {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

body.woocommerce-cart .woocommerce .cart_totals table th,
body.woocommerce-cart .woocommerce .cart_totals table td {
    padding: 13px 8px !important;
    border-color: #e7eef5 !important;
    background: transparent !important;
}

body.woocommerce-cart .woocommerce .cart_totals .order-total th,
body.woocommerce-cart .woocommerce .cart_totals .order-total td {
    color: #08233f !important;
    font-size: 17px !important;
}

body.woocommerce-cart .woocommerce .cart_totals .order-total .amount {
    color: #0867df !important;
    font-size: 23px !important;
    font-weight: 900 !important;
}

/* Botão finalizar compra */
body.woocommerce-cart .woocommerce .wc-proceed-to-checkout {
    padding-bottom: 0 !important;
}

body.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button {
    width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 15px 20px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg,#0867df,#0047a8) !important;
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    text-align: center !important;
    box-shadow: 0 8px 19px rgba(8,103,223,.22) !important;
    transition: .18s ease !important;
}

body.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
    color: #ffffff !important;
    filter: brightness(.94) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 24px rgba(8,103,223,.27) !important;
}

/* =========================================================
   5. CARRINHO VAZIO
   ========================================================= */

body.woocommerce-cart .woocommerce .cart-empty {
    padding: 20px !important;
    background: linear-gradient(135deg,#ffffff,#f4f9ff) !important;
    border: 1px solid #d8e4ef !important;
    border-top: 3px solid #0867df !important;
    border-radius: 14px !important;
    color: #43536a !important;
    box-shadow: 0 6px 18px rgba(8,35,63,.05) !important;
}

body.woocommerce-cart .woocommerce .return-to-shop .button {
    color: #ffffff !important;
    background: linear-gradient(135deg,#0867df,#0054bf) !important;
    border-radius: 10px !important;
}

/* =========================================================
   6. RESPONSIVO DO CARRINHO
   ========================================================= */

@media (max-width: 768px) {
    body.woocommerce-cart .woocommerce table.shop_table.cart {
        border-radius: 14px !important;
    }

    body.woocommerce-cart .woocommerce table.shop_table_responsive tr {
        margin-bottom: 14px !important;
        padding: 10px !important;
        background: #ffffff !important;
        border: 1px solid #dbe6f1 !important;
        border-radius: 13px !important;
        box-shadow: 0 5px 14px rgba(8,35,63,.05) !important;
    }

    body.woocommerce-cart .woocommerce table.shop_table_responsive tr td {
        background: transparent !important;
    }

    body.woocommerce-cart .woocommerce table.cart td.actions .coupon {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    body.woocommerce-cart .woocommerce table.cart td.actions .coupon .input-text {
        width: 100% !important;
    }

    body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
        float: none !important;
        width: 100% !important;
        border-radius: 14px !important;
    }
}

/* FIM — CORREÇÃO BOTÕES MINHA CONTA + CARRINHO PREMIUM */

/* =====================================================================
   DIGITALBOOKS PRO — WOO COMMERCE BLOCKS + MINHA CONTA
   Compatível com Carrinho/Checkout em blocos novos do WooCommerce
   e também mantém suporte ao checkout clássico.
   ===================================================================== */

/* =========================================================
   1) CARRINHO — WOO COMMERCE BLOCK
   ========================================================= */

body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wc-block-cart {
    width: min(1180px, calc(100% - 32px)) !important;
    margin: 38px auto 54px !important;
    color: #34475d !important;
}

body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
    background: #ffffff !important;
    border: 1px solid #d7e3ef !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 30px rgba(8,35,63,.08) !important;
}

body.woocommerce-cart .wc-block-cart__main {
    padding: 22px !important;
}

body.woocommerce-cart .wc-block-cart__sidebar {
    padding: 22px !important;
}

/* Linhas dos produtos */
body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart table.wc-block-cart-items {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 12px !important;
}

body.woocommerce-cart .wc-block-cart-items__row {
    background: #fbfdff !important;
    border: 1px solid #e0e8f1 !important;
    border-radius: 15px !important;
    box-shadow: 0 6px 16px rgba(8,35,63,.045) !important;
}

body.woocommerce-cart .wc-block-cart-item__image img,
body.woocommerce-cart .wc-block-components-product-image img {
    border-radius: 12px !important;
    border: 1px solid #dfe8f1 !important;
    box-shadow: 0 5px 14px rgba(8,35,63,.06) !important;
}

/* Nome do produto */
body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-name {
    color: #08233f !important;
    font-weight: 850 !important;
    line-height: 1.35 !important;
}

body.woocommerce-cart .wc-block-components-product-name:hover {
    color: #0867df !important;
}

/* Preços */
body.woocommerce-cart .wc-block-components-product-price,
body.woocommerce-cart .wc-block-components-product-price__value,
body.woocommerce-cart .wc-block-cart-item__total-price-and-sale-badge-wrapper .wc-block-components-product-price,
body.woocommerce-cart .wc-block-cart-item__prices {
    color: #0867df !important;
    font-weight: 900 !important;
}

/* Quantidade */
body.woocommerce-cart .wc-block-components-quantity-selector {
    min-height: 44px !important;
    background: linear-gradient(180deg,#ffffff,#f5f9fe) !important;
    border: 1px solid #cfddeb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(8,35,63,.05) !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    color: #08233f !important;
    font-weight: 900 !important;
    font-size: 15px !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector button {
    background: #edf5ff !important;
    color: #0867df !important;
    border: 0 !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector button:hover {
    background: #dcecff !important;
    color: #0047a8 !important;
}

/* Remover */
body.woocommerce-cart .wc-block-cart-item__remove-link,
body.woocommerce-cart .wc-block-components-product-details__remove {
    color: #c93c3c !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Resumo / totais */
body.woocommerce-cart .wc-block-cart__totals-title {
    color: #08233f !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

body.woocommerce-cart .wc-block-components-totals-wrapper {
    border-color: #e1e9f2 !important;
}

body.woocommerce-cart .wc-block-components-totals-item__label {
    color: #4d5f74 !important;
    font-weight: 700 !important;
}

body.woocommerce-cart .wc-block-components-totals-item__value {
    color: #08233f !important;
    font-weight: 850 !important;
}

body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
    color: #0867df !important;
    font-size: 23px !important;
    font-weight: 950 !important;
}

/* Cupom */
body.woocommerce-cart .wc-block-components-totals-coupon__button,
body.woocommerce-cart .wc-block-components-panel__button {
    color: #0867df !important;
    font-weight: 800 !important;
}

body.woocommerce-cart .wc-block-components-totals-coupon__form input {
    border: 1px solid #cfddeb !important;
    border-radius: 10px !important;
    min-height: 45px !important;
}

/* Finalizar compra */
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-button.wc-block-cart__submit-button {
    min-height: 54px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg,#0867df,#0047a8) !important;
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    box-shadow: 0 9px 22px rgba(8,103,223,.23) !important;
}

body.woocommerce-cart .wc-block-cart__submit-button span,
body.woocommerce-cart .wc-block-cart__submit-button * {
    color: #ffffff !important;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover {
    background: linear-gradient(135deg,#075bc7,#003f98) !important;
    transform: translateY(-1px) !important;
}

/* Carrinho vazio */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block,
body.woocommerce-cart .wc-block-cart__empty-cart {
    width: min(900px,calc(100% - 32px)) !important;
    margin: 40px auto !important;
    padding: 34px !important;
    background: linear-gradient(135deg,#ffffff,#f3f8ff) !important;
    border: 1px solid #d7e3ef !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 30px rgba(8,35,63,.07) !important;
    text-align: center !important;
}

/* =========================================================
   2) CHECKOUT / FINALIZAÇÃO — WOO COMMERCE BLOCK
   ========================================================= */

body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout {
    width: min(1180px,calc(100% - 32px)) !important;
    margin: 38px auto 58px !important;
    color: #34475d !important;
}

/* Colunas */
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
    background: #ffffff !important;
    border: 1px solid #d7e3ef !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 30px rgba(8,35,63,.08) !important;
}

body.woocommerce-checkout .wc-block-checkout__main {
    padding: 26px !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
    padding: 22px !important;
}

/* Etapas */
body.woocommerce-checkout .wc-block-components-checkout-step {
    margin-bottom: 18px !important;
    padding: 20px !important;
    background: linear-gradient(180deg,#ffffff,#fbfdff) !important;
    border: 1px solid #e0e8f1 !important;
    border-radius: 15px !important;
}

body.woocommerce-checkout .wc-block-components-checkout-step__heading {
    color: #08233f !important;
    font-weight: 900 !important;
}

body.woocommerce-checkout .wc-block-components-checkout-step__description {
    color: #6c788a !important;
}

/* Inputs */
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-address-form input,
body.woocommerce-checkout .wc-block-components-address-form select,
body.woocommerce-checkout .wc-block-components-textarea {
    min-height: 48px !important;
    border: 1px solid #cfddeb !important;
    border-radius: 11px !important;
    background: #ffffff !important;
    color: #08233f !important;
    box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-combobox-control input:focus,
body.woocommerce-checkout .wc-block-components-address-form input:focus {
    border-color: #0867df !important;
    box-shadow: 0 0 0 3px rgba(8,103,223,.09) !important;
}

/* Labels */
body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input label {
    color: #4c6076 !important;
}

/* Opções / pagamento */
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option,
body.woocommerce-checkout .wc-block-components-radio-control__option {
    margin-bottom: 10px !important;
    padding: 15px !important;
    background: #f8fbff !important;
    border: 1px solid #dce6f0 !important;
    border-radius: 12px !important;
}

body.woocommerce-checkout .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
body.woocommerce-checkout .wc-block-components-radio-control__option-checked {
    background: #edf5ff !important;
    border-color: #bcd7f5 !important;
    box-shadow: 0 0 0 2px rgba(8,103,223,.06) !important;
}

/* Resumo do pedido */
body.woocommerce-checkout .wc-block-components-order-summary {
    background: #fbfdff !important;
    border: 1px solid #e0e8f1 !important;
    border-radius: 14px !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description,
body.woocommerce-checkout .wc-block-components-product-name {
    color: #08233f !important;
    font-weight: 800 !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__total-price,
body.woocommerce-checkout .wc-block-components-totals-item__value {
    color: #08233f !important;
    font-weight: 850 !important;
}

body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
    color: #0867df !important;
    font-size: 22px !important;
    font-weight: 950 !important;
}

/* Botão fazer pedido */
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout button.wc-block-components-checkout-place-order-button {
    min-height: 55px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg,#0867df,#0047a8) !important;
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    box-shadow: 0 9px 22px rgba(8,103,223,.23) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button *,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button span {
    color: #ffffff !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
    background: linear-gradient(135deg,#075bc7,#003f98) !important;
    transform: translateY(-1px) !important;
}

/* =========================================================
   3) CHECKOUT CLÁSSICO — reforço de compatibilidade
   ========================================================= */

body.woocommerce-checkout form.checkout {
    color: #34475d !important;
}

body.woocommerce-checkout #customer_details,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout #payment {
    background: #ffffff !important;
    border: 1px solid #d7e3ef !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(8,35,63,.07) !important;
}

body.woocommerce-checkout #customer_details {
    padding: 22px !important;
}

body.woocommerce-checkout #order_review,
body.woocommerce-checkout #payment {
    padding: 20px !important;
}

body.woocommerce-checkout #place_order {
    min-height: 52px !important;
    width: 100% !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg,#0867df,#0047a8) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    box-shadow: 0 8px 20px rgba(8,103,223,.21) !important;
}

/* =========================================================
   4) MINHA CONTA — VISUAL REFORÇADO
   ========================================================= */

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    background:
        radial-gradient(circle at 0% 0%,rgba(8,103,223,.065),transparent 28%),
        linear-gradient(180deg,#ffffff,#f8fbff) !important;
    border: 1px solid #d6e2ee !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 30px rgba(8,35,63,.08) !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a {
    color: #34475d !important;
    border-radius: 12px !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    color: #ffffff !important;
    background: linear-gradient(135deg,#0867df,#0047a8) !important;
    box-shadow: 0 7px 18px rgba(8,103,223,.21) !important;
}

body.woocommerce-account .woocommerce-MyAccount-content {
    background:
        radial-gradient(circle at 100% 0%,rgba(8,103,223,.045),transparent 24%),
        #ffffff !important;
    border: 1px solid #d6e2ee !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 30px rgba(8,35,63,.075) !important;
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
    color: #08233f !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info {
    background: linear-gradient(135deg,#fbfdff,#eef6ff) !important;
    border: 1px solid #d5e5f5 !important;
    border-top: 3px solid #0867df !important;
    border-radius: 14px !important;
}

body.woocommerce-account .woocommerce-MyAccount-content a.button,
body.woocommerce-account .woocommerce-MyAccount-content .button {
    color: #ffffff !important;
    background: linear-gradient(135deg,#0867df,#0047a8) !important;
    border-radius: 11px !important;
}

/* =========================================================
   5) RESPONSIVO — BLOCK CART / CHECKOUT / CONTA
   ========================================================= */

@media (max-width: 900px) {
    body.woocommerce-cart .wp-block-woocommerce-cart,
    body.woocommerce-cart .wc-block-cart,
    body.woocommerce-checkout .wp-block-woocommerce-checkout,
    body.woocommerce-checkout .wc-block-checkout {
        width: min(100% - 22px,1180px) !important;
        margin-top: 24px !important;
    }

    body.woocommerce-cart .wc-block-cart__main,
    body.woocommerce-cart .wc-block-cart__sidebar,
    body.woocommerce-checkout .wc-block-checkout__main,
    body.woocommerce-checkout .wc-block-checkout__sidebar {
        border-radius: 15px !important;
    }
}

@media (max-width: 560px) {
    body.woocommerce-cart .wc-block-cart__main,
    body.woocommerce-cart .wc-block-cart__sidebar,
    body.woocommerce-checkout .wc-block-checkout__main,
    body.woocommerce-checkout .wc-block-checkout__sidebar {
        padding: 15px !important;
    }

    body.woocommerce-checkout .wc-block-components-checkout-step {
        padding: 15px !important;
        border-radius: 12px !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-content,
    body.woocommerce-account .woocommerce-MyAccount-navigation ul {
        border-radius: 15px !important;
    }
}

/* FIM — WOO COMMERCE BLOCKS + MINHA CONTA */

/* =====================================================================
   DIGITALBOOKS PRO — CORREÇÃO DO PAGAMENTO NO CHECKOUT
   Corrige texto cortado do cartão, rótulos invisíveis e opção Pix.
   ===================================================================== */

/* Área de métodos de pagamento */
body.woocommerce-checkout .wc-block-checkout__payment-method,
body.woocommerce-checkout .wc-block-components-checkout-step--with-step-number .wc-block-checkout__payment-method {
    color: #08233f !important;
}

/* Cada opção: cartão / Pix / outros gateways */
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option,
body.woocommerce-checkout .wc-block-components-radio-control__option {
    position: relative !important;
    min-height: 58px !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #f8fbff !important;
    border: 1px solid #d6e3f0 !important;
    border-radius: 13px !important;
}

/* Label clicável: cria espaço suficiente para o rádio e impede texto cortado */
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option > label,
body.woocommerce-checkout label.wc-block-components-radio-control__option {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 58px !important;
    height: auto !important;
    padding: 12px 54px 12px 50px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    color: #08233f !important;
    cursor: pointer !important;
}

/* Rádio fica separado do texto, sem cobrir "Cartão de crédito" */
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option input[type="radio"],
body.woocommerce-checkout .wc-block-components-radio-control__option input[type="radio"] {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    z-index: 3 !important;
    accent-color: #0867df !important;
}

/* Layout interno */
body.woocommerce-checkout .wc-block-components-radio-control__option-layout {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 10px !important;
    overflow: visible !important;
}

body.woocommerce-checkout .wc-block-components-radio-control__label-group {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: visible !important;
}

/* TEXTO DOS MÉTODOS DE PAGAMENTO */
body.woocommerce-checkout .wc-block-components-radio-control__label,
body.woocommerce-checkout .wc-block-components-payment-method-label,
body.woocommerce-checkout .wc-block-checkout__payment-method label span,
body.woocommerce-checkout .wc-block-components-radio-control__option label,
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option label {
    color: #08233f !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-indent: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

/* Ícones ficam à direita sem empurrar o texto */
body.woocommerce-checkout .wc-block-components-payment-method-icons,
body.woocommerce-checkout .wc-block-components-radio-control__secondary-label {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    padding-left: 12px !important;
    color: #08233f !important;
}

body.woocommerce-checkout .wc-block-components-payment-method-icon {
    max-height: 30px !important;
    width: auto !important;
}

/* Método selecionado */
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
body.woocommerce-checkout .wc-block-components-radio-control__option-checked {
    background: linear-gradient(135deg,#edf6ff,#e5f1ff) !important;
    border-color: #9fc7f3 !important;
    box-shadow: 0 0 0 2px rgba(8,103,223,.08) !important;
}

/* Conteúdo aberto do cartão: não corta formulário/iframe */
body.woocommerce-checkout .wc-block-components-radio-control-accordion-content {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 14px 14px !important;
    padding: 14px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #e1e9f2 !important;
    border-radius: 12px !important;
}

/* Iframes e formulários de gateway não podem ser cortados */
body.woocommerce-checkout .wc-block-components-radio-control-accordion-content iframe {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    border: 0 !important;
}

body.woocommerce-checkout .wc-block-components-radio-control-accordion-content input,
body.woocommerce-checkout .wc-block-components-radio-control-accordion-content select {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Reforço específico para gateways cujo id/nome contém "pix" */
body.woocommerce-checkout label[for*="pix" i],
body.woocommerce-checkout label[for*="PIX" i],
body.woocommerce-checkout [id*="pix" i] label,
body.woocommerce-checkout [class*="pix" i] label {
    color: #08233f !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Se o plugin gerar o span de texto do Pix vazio, exibe o nome */
body.woocommerce-checkout label[for*="pix" i] .wc-block-components-radio-control__label:empty::before,
body.woocommerce-checkout [id*="pix" i] .wc-block-components-radio-control__label:empty::before,
body.woocommerce-checkout [class*="pix" i] .wc-block-components-radio-control__label:empty::before {
    content: "Pix" !important;
    color: #08233f !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    visibility: visible !important;
}

/* Evita regras genéricas do tema deixando texto do gateway branco/transparente */
body.woocommerce-checkout .wc-block-checkout__payment-method p,
body.woocommerce-checkout .wc-block-checkout__payment-method div,
body.woocommerce-checkout .wc-block-checkout__payment-method span:not(.screen-reader-text) {
    opacity: 1;
}

/* Mobile */
@media (max-width: 560px) {
    body.woocommerce-checkout .wc-block-components-radio-control-accordion-option > label,
    body.woocommerce-checkout label.wc-block-components-radio-control__option {
        min-height: 56px !important;
        padding: 11px 46px 11px 44px !important;
    }

    body.woocommerce-checkout .wc-block-components-radio-control-accordion-option input[type="radio"],
    body.woocommerce-checkout .wc-block-components-radio-control__option input[type="radio"] {
        left: 13px !important;
    }

    body.woocommerce-checkout .wc-block-components-radio-control__label,
    body.woocommerce-checkout .wc-block-components-payment-method-label {
        font-size: 13px !important;
    }

    body.woocommerce-checkout .wc-block-components-radio-control-accordion-content {
        margin: 0 8px 10px !important;
        padding: 10px !important;
    }
}

/* FIM — CORREÇÃO DO PAGAMENTO */

/* =====================================================================
   DIGITALBOOKS PRO — BORDA ÚNICA NOS MÉTODOS DE PAGAMENTO
   A borda envolve o método inteiro (Cartão / Pix), não apenas o texto.
   ===================================================================== */

/* Cada método é um card completo */
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option,
body.woocommerce-checkout .wc-block-components-radio-control__option {
    position: relative !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1.5px solid #d3dfec !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(8,35,63,.045) !important;
}

/* Método selecionado: borda azul em volta do card inteiro */
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
body.woocommerce-checkout .wc-block-components-radio-control__option-checked {
    background: #ffffff !important;
    border: 2px solid #86baf3 !important;
    box-shadow:
        0 0 0 3px rgba(8,103,223,.07),
        0 7px 18px rgba(8,35,63,.06) !important;
}

/* Cabeçalho do método: sem borda própria */
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option > label,
body.woocommerce-checkout label.wc-block-components-radio-control__option {
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 12px 54px 12px 50px !important;
    background: #f8fbff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #08233f !important;
}

/* Cabeçalho do método selecionado */
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option--checked-option-highlighted > label,
body.woocommerce-checkout .wc-block-components-radio-control__option-checked > label {
    background: linear-gradient(135deg,#eef6ff,#e7f2ff) !important;
}

/* Remove qualquer borda ou fundo apenas em volta do texto */
body.woocommerce-checkout .wc-block-components-radio-control__label,
body.woocommerce-checkout .wc-block-components-payment-method-label,
body.woocommerce-checkout .wc-block-components-radio-control__label-group,
body.woocommerce-checkout .wc-block-components-radio-control__option-layout,
body.woocommerce-checkout .wc-block-components-radio-control__secondary-label {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

/* Área expandida do cartão fica dentro do MESMO card */
body.woocommerce-checkout .wc-block-components-radio-control-accordion-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 14px 16px 16px !important;
    background: #ffffff !important;
    border: 0 !important;
    border-top: 1px solid #dce7f2 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* Evita segunda moldura criada dentro do gateway */
body.woocommerce-checkout .wc-block-components-radio-control-accordion-content > div,
body.woocommerce-checkout .wc-block-components-radio-control-accordion-content > fieldset {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Pix também recebe o card inteiro */
body.woocommerce-checkout label[for*="pix" i],
body.woocommerce-checkout [id*="pix" i] label,
body.woocommerce-checkout [class*="pix" i] label {
    border: 0 !important;
    box-shadow: none !important;
}

/* Mobile */
@media (max-width: 560px) {
    body.woocommerce-checkout .wc-block-components-radio-control-accordion-option,
    body.woocommerce-checkout .wc-block-components-radio-control__option {
        border-radius: 12px !important;
    }

    body.woocommerce-checkout .wc-block-components-radio-control-accordion-option > label,
    body.woocommerce-checkout label.wc-block-components-radio-control__option {
        min-height: 55px !important;
        padding: 11px 46px 11px 44px !important;
    }

    body.woocommerce-checkout .wc-block-components-radio-control-accordion-content {
        padding: 12px !important;
    }
}

/* FIM — BORDA ÚNICA NOS MÉTODOS DE PAGAMENTO */

/* =====================================================================
   DIGITALBOOKS PRO — BOTÃO "APLICAR" DO CUPOM
   Alteração exclusiva de cor/estilo do botão para combinar com o tema.
   ===================================================================== */

/* WooCommerce Blocks — Carrinho e Checkout */
body.woocommerce-cart .wc-block-components-totals-coupon__form button,
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-button,
body.woocommerce-cart .wc-block-components-totals-coupon__button,
body.woocommerce-checkout .wc-block-components-totals-coupon__form button,
body.woocommerce-checkout .wc-block-components-totals-coupon__form .wc-block-components-button,
body.woocommerce-checkout .wc-block-components-totals-coupon__button {
    min-height: 44px !important;
    padding: 10px 18px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--db-blue), var(--db-blue2)) !important;
    color: #ffffff !important;
    fill: #ffffff !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    box-shadow: 0 6px 16px rgba(8,103,223,.20) !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

/* Garante texto/ícone branco */
body.woocommerce-cart .wc-block-components-totals-coupon__form button *,
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-button *,
body.woocommerce-checkout .wc-block-components-totals-coupon__form button *,
body.woocommerce-checkout .wc-block-components-totals-coupon__form .wc-block-components-button * {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Hover */
body.woocommerce-cart .wc-block-components-totals-coupon__form button:hover,
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-button:hover,
body.woocommerce-checkout .wc-block-components-totals-coupon__form button:hover,
body.woocommerce-checkout .wc-block-components-totals-coupon__form .wc-block-components-button:hover {
    background: linear-gradient(135deg, #075bc7, #003f98) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px rgba(8,103,223,.26) !important;
}

/* Mesmo desabilitado, mantém a identidade visual azul em vez de cinza */
body.woocommerce-cart .wc-block-components-totals-coupon__form button:disabled,
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-button:disabled,
body.woocommerce-checkout .wc-block-components-totals-coupon__form button:disabled,
body.woocommerce-checkout .wc-block-components-totals-coupon__form .wc-block-components-button:disabled {
    background: linear-gradient(135deg, var(--db-blue), var(--db-blue2)) !important;
    color: #ffffff !important;
    opacity: .72 !important;
    cursor: not-allowed !important;
    box-shadow: 0 4px 12px rgba(8,103,223,.14) !important;
}

/* WooCommerce clássico */
body.woocommerce-cart .coupon button.button,
body.woocommerce-checkout .checkout_coupon button.button {
    background: linear-gradient(135deg, var(--db-blue), var(--db-blue2)) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 16px rgba(8,103,223,.20) !important;
}

/* FIM — BOTÃO "APLICAR" DO CUPOM */

/* =====================================================================
   DIGITALBOOKS PRO — PRODUTO: META NO FINAL + QUANTIDADE − 1 +
   ===================================================================== */

/* Segurança: nunca exibir categorias/tags ao lado do preço. */
body.single-product .woocommerce div.product .summary > .product_meta {
    display: none !important;
}

/* Quantidade igual ao visual do carrinho */
body.single-product .woocommerce div.product .summary form.cart {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

body.single-product .woocommerce div.product .summary form.cart .quantity.db-product-quantity {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    min-width: 122px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: linear-gradient(180deg,#ffffff,#f5f9fe) !important;
    border: 1px solid #cfddeb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(8,35,63,.05) !important;
}

body.single-product .woocommerce div.product .summary form.cart .quantity.db-product-quantity .db-qty-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #eef6ff !important;
    color: #0867df !important;
    font-size: 19px !important;
    font-weight: 500 !important;
    line-height: 44px !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background .18s ease,color .18s ease !important;
}

body.single-product .woocommerce div.product .summary form.cart .quantity.db-product-quantity .db-qty-btn:hover {
    background: #dcecff !important;
    color: #0047a8 !important;
    transform: none !important;
}

body.single-product .woocommerce div.product .summary form.cart .quantity.db-product-quantity .db-qty-btn:disabled {
    opacity: .38 !important;
    cursor: not-allowed !important;
}

body.single-product .woocommerce div.product .summary form.cart .quantity.db-product-quantity input.qty {
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 1px solid #dce8f3 !important;
    border-right: 1px solid #dce8f3 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #08233f !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    line-height: 44px !important;
    text-align: center !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
}

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

body.single-product .woocommerce div.product .summary form.cart .quantity.db-product-quantity:focus-within {
    border-color: #0867df !important;
    box-shadow: 0 0 0 3px rgba(8,103,223,.10),0 5px 14px rgba(8,35,63,.06) !important;
}

/* Categorias e tags no FINAL real da página do produto,
   depois de descrição/avaliações/produtos relacionados. */
body.single-product .db-product-footer-meta {
    width: min(1180px, calc(100% - 32px)) !important;
    margin: 36px auto 12px !important;
    padding: 22px 24px !important;
    background: linear-gradient(135deg,#ffffff,#f5f9ff) !important;
    border: 1px solid #d7e3ef !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(8,35,63,.06) !important;
    color: #526479 !important;
}

body.single-product .db-product-footer-meta__title {
    margin: 0 0 14px !important;
    padding: 0 0 11px !important;
    border-bottom: 1px solid #e2eaf3 !important;
    color: #08233f !important;
    font-size: 18px !important;
    font-weight: 850 !important;
}

body.single-product .db-product-footer-meta .product_meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}

body.single-product .db-product-footer-meta .product_meta > span {
    display: block !important;
    width: 100% !important;
}

body.single-product .db-product-footer-meta .product_meta a {
    display: inline-block !important;
    margin: 3px 3px 3px 0 !important;
    padding: 4px 9px !important;
    background: #edf5ff !important;
    border: 1px solid #d2e5fa !important;
    border-radius: 999px !important;
    color: #0867df !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

body.single-product .db-product-footer-meta .product_meta a:hover {
    background: #0867df !important;
    border-color: #0867df !important;
    color: #ffffff !important;
}

@media (max-width: 560px) {
    body.single-product .db-product-footer-meta {
        width: min(100% - 22px,1180px) !important;
        margin-top: 24px !important;
        padding: 16px !important;
        border-radius: 13px !important;
    }
}

/* FIM — PRODUTO: META NO FINAL + QUANTIDADE − 1 + */

\n\n/* =====================================================================\n   DIGITALBOOKS PRO — QUANTIDADE SOMENTE NO CARRINHO\n   Oculta o seletor de quantidade apenas na página individual do produto.\n   O produto é adicionado com quantidade 1 e o cliente ajusta no carrinho.\n   ===================================================================== */\nbody.single-product .woocommerce div.product .summary form.cart .quantity {\n    display: none !important;\n}\n\nbody.single-product .woocommerce div.product .summary form.cart {\n    display: flex !important;\n    align-items: center !important;\n    gap: 0 !important;\n}\n\nbody.single-product .woocommerce div.product .summary .single_add_to_cart_button {\n    margin-left: 0 !important;\n}\n/* FIM — QUANTIDADE SOMENTE NO CARRINHO */\n\n\n/* =====================================================================
   DIGITALBOOKS PRO — SEM SELETOR DE QUANTIDADE NA PÁGINA DO PRODUTO
   O produto é adicionado com quantidade 1. A quantidade continua
   ajustável normalmente na página do carrinho.
   ===================================================================== */
body.single-product .woocommerce div.product form.cart .quantity,
body.single-product .woocommerce div.product .summary form.cart .quantity {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

body.single-product .woocommerce div.product form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
}
/* FIM — SEM SELETOR DE QUANTIDADE */


/* =========================================================
   DIGITALBOOKS PRO 1.0.6 — FALLBACK FINAL
   Esconde qualquer controle de quantidade visível que algum plugin
   ainda tente inserir na página individual do produto.
   ========================================================= */
body.single-product form.cart .quantity,
body.single-product .woocommerce div.product form.cart .quantity,
body.single-product .woocommerce div.product .summary form.cart .quantity {
    display: none !important;
}

body.single-product form.cart .single_add_to_cart_button {
    margin-left: 0 !important;
}
/* FIM — FALLBACK FINAL */

/* =====================================================================
   DIGITALBOOKS PRO — RESUMO DO PEDIDO: SUBTEXTO SEM NEGRITO
   Mantém o nome do produto em negrito e deixa descrição/metadados normais.
   ===================================================================== */
body.woocommerce-checkout .wc-block-components-order-summary-item__description {
    font-weight: 400 !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name {
    font-weight: 800 !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description p,
body.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-metadata,
body.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-details,
body.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-details__name,
body.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-details__value {
    font-weight: 400 !important;
}

/* FIM — RESUMO DO PEDIDO: SUBTEXTO SEM NEGRITO */
