/* Arzen Blog Pro — Frontend CSS v1.4.9 */
:root {
    /* ── Marca ──────────────────────────────── */
    --abp-primary:   #7b5ea7;
    --abp-secondary: #c0a66b;
    --abp-radius:    12px;

    /* ── Adaptáveis (substituídos em dark mode) ─ */
    --abp-dark:    #2a2035;   /* texto principal / headings */
    --abp-light:   #f7f4ff;   /* fundo de widgets */
    --abp-border:  #e2daf0;   /* bordas */
    --abp-shadow:  0 4px 20px rgba(123,94,167,.15);
    --abp-card:    #ffffff;   /* fundo de cards */
    --abp-t1:      #2a2035;   /* texto primário */
    --abp-t2:      #555555;   /* texto secundário */
    --abp-t3:      #888888;   /* texto suave */
    --abp-grad-a:  #f7f4ff;   /* início gradiente widgets */
    --abp-grad-b:  #fdf8f0;   /* fim gradiente widgets */
}

/* ── Reading Meta ────────────────────────────────────────────────────────── */
.abp-reading-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    font-size: 13px;
}
.abp-reading-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--abp-light);
    border: 1px solid var(--abp-border);
    color: var(--abp-t2);
}
.abp-level { font-weight: 600; }
.abp-level-green  { background: #e8f5e9; border-color: #a5d6a7; color: #2e7d32; }
.abp-level-yellow { background: #fffde7; border-color: #fff176; color: #f57f17; }
.abp-level-red    { background: #fce4ec; border-color: #f48fb1; color: #c62828; }

/* ── TOC ─────────────────────────────────────────────────────────────────── */
.abp-toc {
    display: inline-block;
    background: var(--abp-light);
    border: 1px solid var(--abp-border);
    border-left: 4px solid var(--abp-primary);
    border-radius: var(--abp-radius);
    padding: 16px 20px;
    margin: 0 0 28px;
    min-width: 240px;
    max-width: 100%;
}

/* TOC Sidebar — margem esquerda em ecrãs largos */
.abp-toc--sidebar {
    position: fixed !important;
    margin: 0 !important;
    min-width: 0 !important;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--abp-border) transparent;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 50;
    box-shadow: var(--abp-shadow);
}
.abp-toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.abp-toc-header strong { font-size: 15px; flex: 1; }
.abp-toc-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--abp-primary);
    padding: 2px 6px;
}
.abp-toc-list { margin: 0; padding: 0 0 0 16px; }
.abp-toc-sub  { margin: 4px 0 4px 12px; padding: 0 0 0 12px; }
.abp-toc-item { margin: 4px 0; font-size: 14px; list-style: disc; }
.abp-toc-h3   { list-style: circle; font-size: 13px; color: var(--abp-t2); }
.abp-toc-item a { color: var(--abp-primary); text-decoration: none; transition: color .2s; }
.abp-toc-item a:hover, .abp-toc-item a.abp-toc-active { color: var(--abp-secondary); text-decoration: underline; }

/* ── View Count ─────────────────────────────────────────────────────────── */
.abp-view-count {
    font-size: 13px;
    color: var(--abp-t3);
    margin: 0 0 4px;
}

/* ── Series Nav ─────────────────────────────────────────────────────────── */
.abp-series-box {
    background: var(--abp-light);
    border: 1px solid var(--abp-border);
    border-radius: var(--abp-radius);
    padding: 16px 20px;
    margin: 0 0 28px;
}
.abp-series-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}
.abp-series-label {
    background: var(--abp-primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.abp-series-count { margin-left: auto; color: var(--abp-t3); font-size: 13px; }
.abp-series-progress {
    background: var(--abp-border);
    border-radius: 4px;
    height: 6px;
    margin: 8px 0 12px;
    overflow: hidden;
}
.abp-series-bar { background: var(--abp-primary); height: 100%; border-radius: 4px; transition: width .4s ease; }
.abp-series-nav { display: flex; justify-content: space-between; gap: 12px; }
.abp-series-prev, .abp-series-next {
    flex: 1;
    color: var(--abp-primary);
    text-decoration: none;
    font-size: 13px;
    padding: 8px 12px;
    border: 1px solid var(--abp-border);
    border-radius: 8px;
    transition: background .2s, border-color .2s;
}
.abp-series-prev:hover, .abp-series-next:hover { background: var(--abp-primary); color: #fff; border-color: var(--abp-primary); }
.abp-series-next { text-align: right; }

/* ── Products Box ───────────────────────────────────────────────────────── */
.abp-products-box {
    background: linear-gradient(135deg, var(--abp-grad-a), var(--abp-grad-b));
    border: 1px solid var(--abp-border);
    border-radius: var(--abp-radius);
    padding: 24px;
    margin: 32px 0;
}
.abp-products-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--abp-dark);
}
.abp-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.abp-product-card {
    background: var(--abp-card);
    border: 1px solid var(--abp-border);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
    display: flex;
    flex-direction: column;
}
.abp-product-card:hover { box-shadow: var(--abp-shadow); transform: translateY(-3px); }
.abp-product-img-link img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.abp-product-info { padding: 10px; flex: 1; display: flex; flex-direction: column; }
.abp-product-name { font-size: 13px; font-weight: 600; color: var(--abp-dark); text-decoration: none; margin-bottom: 4px; display: block; }
.abp-product-price { font-size: 14px; font-weight: 700; color: var(--abp-primary); margin-bottom: 8px; }
.abp-btn-cart {
    display: block;
    text-align: center;
    background: var(--abp-primary);
    color: #fff;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    transition: background .2s;
}
.abp-btn-cart:hover { background: var(--abp-dark); color: #fff; }
.abp-out-of-stock { font-size: 12px; color: var(--abp-t3); text-align: center; display: block; margin-top: auto; padding: 7px 0; }

/* ── Moon Widget ────────────────────────────────────────────────────────── */
.abp-moon-widget {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--abp-light);
    border: 1px solid var(--abp-border);
    border-radius: var(--abp-radius);
    padding: 16px;
}
.abp-moon-icon { font-size: 48px; line-height: 1; }
.abp-moon-info { flex: 1; }
.abp-moon-name { font-size: 16px; font-weight: 700; color: var(--abp-dark); }
.abp-moon-desc { font-size: 13px; color: var(--abp-t2); margin: 4px 0 6px; }
.abp-moon-next { font-size: 12px; color: var(--abp-t3); margin: 0; }

/* ── Free Shipping Bar ──────────────────────────────────────────────────── */
.abp-shipping-bar {
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
    border-radius: var(--abp-radius);
    padding: 14px 18px;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.abp-shipping-text { font-size: 14px; font-weight: 600; color: #065f46; }
.abp-shipping-track { background: #d1fae5; border-radius: 6px; height: 8px; overflow: hidden; }
.abp-shipping-fill { background: #10b981; height: 100%; border-radius: 6px; transition: width .5s ease; }
.abp-shipping-cta { font-size: 13px; color: #065f46; text-decoration: underline; align-self: flex-end; }

/* ── Social Box ─────────────────────────────────────────────────────────── */
.abp-social-box {
    border-top: 1px solid var(--abp-border);
    padding-top: 24px;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Linha superior: partilha (esq) + utilidades (dir) */
.abp-actions-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.abp-share-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.abp-utility-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Botões de utilidade dentro do bloco social */
.abp-utility-group .abp-bookmark-btn,
.abp-utility-group .abp-print-btn {
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid var(--abp-border);
    background: none;
    color: var(--abp-t2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: border-color .2s, color .2s;
}
.abp-utility-group .abp-bookmark-btn:hover,
.abp-utility-group .abp-print-btn:hover {
    border-color: var(--abp-primary);
    color: var(--abp-primary);
}
.abp-utility-group .abp-bookmark-btn.abp-bm-saved {
    border-color: var(--abp-primary);
    color: var(--abp-primary);
    background: var(--abp-light);
}

/* Linha legacy (compatibilidade, não utilizada quando social activo) */
.abp-share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.abp-share-label { font-size: 13px; color: var(--abp-t3); }
.abp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--abp-border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: var(--abp-card);
    color: var(--abp-t1);
    transition: background .2s, color .2s;
}
.abp-share-whatsapp { border-color: #25d366; color: #25d366; }
.abp-share-whatsapp:hover { background: #25d366; color: #fff; }
.abp-share-copy:hover { background: var(--abp-primary); color: #fff; border-color: var(--abp-primary); }

.abp-practiced-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.abp-practiced-btn {
    padding: 10px 20px;
    background: var(--abp-light);
    border: 2px solid var(--abp-primary);
    border-radius: 24px;
    color: var(--abp-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.abp-practiced-btn:hover:not(:disabled) { background: var(--abp-primary); color: #fff; }
.abp-practiced-btn:disabled { opacity: .7; cursor: default; }
.abp-practiced-count { font-size: 13px; color: var(--abp-t3); }

/* Highlight share popup */
#abp-highlight-share {
    position: fixed;
    background: var(--abp-dark);
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    gap: 8px;
    align-items: center;
    z-index: 9999;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.abp-hs-btn {
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}
.abp-hs-btn:hover { background: rgba(255,255,255,.3); }

/* ── Bookmarks ───────────────────────────────────────────────────────────── */
.abp-bookmark-wrap { margin: 16px 0; text-align: right; }
.abp-bookmark-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--abp-border);
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 13px;
    color: var(--abp-t2);
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.abp-bookmark-btn.abp-bm-saved { border-color: var(--abp-primary); color: var(--abp-primary); background: var(--abp-light); }
.abp-bookmark-btn:hover { border-color: var(--abp-primary); color: var(--abp-primary); }

/* Bookmarks page */
.abp-bookmarks-page { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.abp-bm-card { background: var(--abp-card); border: 1px solid var(--abp-border); border-radius: var(--abp-radius); overflow: hidden; display: flex; flex-direction: column; }
.abp-bm-card a { display: flex; gap: 12px; text-decoration: none; padding: 12px; }
.abp-bm-card img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.abp-bm-card-info h3 { font-size: 14px; font-weight: 600; color: var(--abp-dark); margin: 0 0 4px; }
.abp-bm-card-info p { font-size: 12px; color: var(--abp-t3); margin: 0; }
.abp-bm-remove { background: none; border-top: 1px solid var(--abp-border); padding: 8px; font-size: 12px; color: #c00; cursor: pointer; text-align: center; width: 100%; }
.abp-bm-empty { color: var(--abp-t3); font-style: italic; }

/* ── Timer ───────────────────────────────────────────────────────────────── */
.abp-timer {
    background: var(--abp-light);
    border: 1px solid var(--abp-border);
    border-radius: var(--abp-radius);
    padding: 24px;
    text-align: center;
    margin: 24px 0;
}
.abp-timer-title { font-size: 16px; font-weight: 700; color: var(--abp-dark); margin: 0 0 16px; }
.abp-timer-ring { position: relative; width: 140px; height: 140px; margin: 0 auto 16px; }
.abp-timer-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.abp-timer-bg { fill: none; stroke: var(--abp-border); stroke-width: 6; }
.abp-timer-progress { fill: none; stroke: var(--abp-primary); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .9s linear; }
.abp-timer-display {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.abp-timer-time { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--abp-dark); }
.abp-timer-controls { display: flex; justify-content: center; gap: 10px; margin: 0 0 8px; }
.abp-btn {
    padding: 8px 18px;
    background: var(--abp-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.abp-btn:hover:not(:disabled) { background: var(--abp-dark); }
.abp-btn:disabled { opacity: .5; cursor: not-allowed; }
.abp-timer-msg { font-size: 14px; color: var(--abp-primary); font-weight: 600; margin: 0; min-height: 20px; }

/* ── Checklist ───────────────────────────────────────────────────────────── */
.abp-checklist {
    background: var(--abp-card);
    border: 1px solid var(--abp-border);
    border-radius: var(--abp-radius);
    padding: 20px;
    margin: 24px 0;
}
.abp-cl-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.abp-cl-progress { margin-left: auto; font-size: 13px; color: var(--abp-t3); font-weight: 600; }
.abp-cl-bar { background: var(--abp-border); border-radius: 4px; height: 6px; margin-bottom: 16px; overflow: hidden; }
.abp-cl-fill { background: var(--abp-primary); height: 100%; border-radius: 4px; transition: width .3s ease; }
.abp-cl-list { list-style: none; padding: 0; margin: 0 0 12px; }
.abp-cl-item { margin: 8px 0; }
.abp-cl-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1.4; }
.abp-cl-check { width: 18px; height: 18px; accent-color: var(--abp-primary); flex-shrink: 0; margin-top: 2px; cursor: pointer; }
.abp-cl-done span { text-decoration: line-through; color: var(--abp-t3); }
.abp-btn-sm { background: none; border: 1px solid var(--abp-border); border-radius: 6px; padding: 5px 12px; font-size: 12px; color: var(--abp-t3); cursor: pointer; }
.abp-btn-sm:hover { border-color: var(--abp-primary); color: var(--abp-primary); }

/* ── Lunar Calendar ─────────────────────────────────────────────────────── */
.abp-lunar-cal { margin: 24px 0; }
.abp-lc-header {
    font-size: 18px;
    font-weight: 700;
    color: var(--abp-dark);
    margin-bottom: 14px;
}
.abp-lc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}
.abp-lc-day {
    background: var(--abp-card);
    border: 1px solid var(--abp-border);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.abp-lc-today { border-color: var(--abp-primary); background: var(--abp-light); }
.abp-lc-date { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.abp-lc-dayname { font-size: 10px; color: var(--abp-t3); text-transform: uppercase; letter-spacing: .5px; }
.abp-lc-daynum { font-size: 18px; font-weight: 700; color: var(--abp-dark); line-height: 1; }
.abp-lc-month { font-size: 10px; color: var(--abp-t3); }
.abp-lc-moon { font-size: 24px; }
.abp-lc-phase { font-size: 10px; color: var(--abp-t2); text-align: center; line-height: 1.2; }
.abp-lc-link { font-size: 10px; color: var(--abp-primary); text-decoration: none; }
.abp-lc-link:hover { text-decoration: underline; }

/* ── Exit Intent ─────────────────────────────────────────────────────────── */
.abp-exit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(42,32,53,.75);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: abpFadeIn .3s ease;
}
@keyframes abpFadeIn { from { opacity: 0; } to { opacity: 1; } }
.abp-exit-popup {
    background: var(--abp-card);
    border-radius: 16px;
    max-width: 460px;
    width: 100%;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: abpSlideUp .35s ease;
}
@keyframes abpSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.abp-exit-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--abp-t3);
    padding: 4px 8px;
    border-radius: 6px;
}
.abp-exit-close:hover { background: #f0f0f0; color: var(--abp-t1); }
.abp-exit-label { font-size: 13px; color: var(--abp-primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 4px; }
.abp-exit-title { font-size: 20px; font-weight: 800; color: var(--abp-dark); margin: 0 0 20px; }
.abp-exit-product { display: flex; gap: 16px; align-items: flex-start; }
.abp-exit-product img { width: 100px; height: 100px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.abp-exit-info { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.abp-exit-name { font-size: 15px; font-weight: 700; color: var(--abp-dark); text-decoration: none; }
.abp-exit-price { font-size: 18px; font-weight: 800; color: var(--abp-primary); }
.abp-exit-cta { display: block; text-align: center; font-size: 14px; font-weight: 700; }
.abp-exit-see { font-size: 12px; color: var(--abp-t3); text-decoration: underline; text-align: center; }

/* ── Print Button ───────────────────────────────────────────────────────── */
.abp-print-btn-wrap { margin: 16px 0; text-align: right; }
.abp-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--abp-border);
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 13px;
    color: var(--abp-t2);
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.abp-print-btn:hover { border-color: var(--abp-primary); color: var(--abp-primary); }

/* ── Related Articles ───────────────────────────────────────────────────── */
.abp-related {
    /* Estende para além da coluna de conteúdo até quasi-full-viewport */
    margin-top: 40px;
    margin-bottom: 16px;
    margin-left: calc(50% - 50vw + 20px);
    margin-right: calc(50% - 50vw + 20px);
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    box-sizing: border-box;
}
.abp-related-title { font-size: 18px; font-weight: 700; color: var(--abp-dark); margin: 0 0 16px; }
.abp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.abp-related-card {
    display: flex;
    flex-direction: column;
    background: var(--abp-card);
    border: 1px solid var(--abp-border);
    border-radius: var(--abp-radius);
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .25s, transform .25s;
}
.abp-related-card:hover { box-shadow: var(--abp-shadow); transform: translateY(-3px); }
/* Anular sublinhado herdado do tema */
.abp-related-card,
.abp-related-card a,
.abp-related-card a:hover,
.abp-related-card a:visited { text-decoration: none !important; }
.abp-related-img {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: var(--abp-light);
    flex-shrink: 0;
}
.abp-related-no-img { display: flex; align-items: center; justify-content: center; font-size: 40px; }
.abp-related-info { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.abp-related-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--abp-primary);
}
.abp-related-info h4 { font-size: 14px; font-weight: 700; color: var(--abp-dark); margin: 0; line-height: 1.3; }
.abp-related-info p { font-size: 12px; color: var(--abp-t3); margin: 0; line-height: 1.4; }

/* ── Kit de Produtos ────────────────────────────────────────────────────── */
.abp-kit-box {
    background: linear-gradient(135deg, var(--abp-grad-a), var(--abp-grad-b));
    border: 1px solid var(--abp-border);
    border-radius: var(--abp-radius);
    padding: 20px;
    margin: 32px 0;
}
.abp-kit-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.abp-kit-icon { font-size: 22px; }
.abp-kit-title { font-size: 16px; font-weight: 700; color: var(--abp-dark); }
.abp-kit-badge {
    background: var(--abp-secondary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}
.abp-kit-products {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--abp-border) transparent;
}
.abp-kit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
    width: 90px;
}
.abp-kit-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--abp-border);
}
.abp-kit-item span { font-size: 11px; color: var(--abp-dark); text-align: center; line-height: 1.3; }
.abp-kit-footer { display: flex; flex-direction: column; gap: 10px; }
.abp-kit-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.abp-kit-original { font-size: 14px; color: var(--abp-t3); text-decoration: line-through; }
.abp-kit-final { font-size: 20px; font-weight: 800; color: var(--abp-primary); }
.abp-kit-saving { font-size: 12px; background: #e8f5e9; color: #2e7d32; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.abp-kit-coupon {
    font-size: 13px;
    color: var(--abp-t2);
    background: var(--abp-card);
    border: 1px dashed var(--abp-border);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.abp-coupon-code {
    font-family: monospace;
    font-size: 14px;
    background: var(--abp-light);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--abp-primary);
    letter-spacing: 1px;
}
.abp-kit-btn { width: 100%; padding: 12px; font-size: 14px; }
.abp-kit-msg { font-size: 13px; color: var(--abp-primary); min-height: 18px; }
.abp-kit-msg a { color: var(--abp-primary); font-weight: 600; }

/* ── Quiz ────────────────────────────────────────────────────────────────── */
.abp-quiz {
    background: linear-gradient(135deg, var(--abp-grad-a), var(--abp-grad-b));
    border: 1px solid var(--abp-border);
    border-radius: var(--abp-radius);
    padding: 28px 24px;
    margin: 32px 0;
}
.abp-quiz-header { text-align: center; margin-bottom: 24px; }
.abp-quiz-icon { font-size: 40px; display: block; margin-bottom: 6px; }
.abp-quiz-header h3 { font-size: 20px; font-weight: 800; color: var(--abp-dark); margin: 0 0 4px; }
.abp-quiz-sub { font-size: 13px; color: var(--abp-t3); margin: 0; }

.abp-quiz-progress-bar {
    background: var(--abp-border);
    border-radius: 4px;
    height: 5px;
    margin-bottom: 12px;
    overflow: hidden;
}
.abp-quiz-fill { background: var(--abp-primary); height: 100%; border-radius: 4px; transition: width .4s ease; }
.abp-quiz-step-count { font-size: 12px; color: var(--abp-t3); margin: 0 0 8px; }
.abp-quiz-question { font-size: 17px; font-weight: 700; color: var(--abp-dark); margin: 0 0 16px; }
.abp-quiz-options { display: flex; flex-direction: column; gap: 10px; }
.abp-quiz-option {
    background: var(--abp-card);
    border: 2px solid var(--abp-border);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--abp-dark);
    cursor: pointer;
    text-align: left;
    transition: border-color .2s, background .2s, transform .15s;
}
.abp-quiz-option:hover {
    border-color: var(--abp-primary);
    background: var(--abp-light);
    transform: translateX(4px);
}
.abp-quiz-option:active { transform: translateX(2px); }

/* Resultado */
.abp-quiz-result { text-align: center; padding: 8px 0; }
.abp-quiz-result-label { font-size: 13px; color: var(--abp-t3); margin: 0 0 8px; }
.abp-quiz-crystal-emoji { font-size: 60px; margin-bottom: 8px; }
.abp-quiz-crystal-name { font-size: 22px; font-weight: 800; color: var(--abp-dark); margin: 0 0 12px; }
.abp-quiz-crystal-desc { font-size: 14px; color: var(--abp-t2); line-height: 1.6; max-width: 400px; margin: 0 auto 20px; }
.abp-quiz-product {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--abp-card);
    border: 1px solid var(--abp-border);
    border-radius: 12px;
    padding: 16px;
    margin: 0 auto 20px;
    max-width: 340px;
    text-align: left;
}
.abp-quiz-product-img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.abp-quiz-product-info { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.abp-quiz-product-price { font-size: 16px; font-weight: 700; color: var(--abp-primary); }
.abp-quiz-cta { display: block; text-align: center; font-size: 13px; font-weight: 700; }

/* ── Archive Grid ───────────────────────────────────────────────────────── */
.abp-archive {
    margin: 24px auto;
    width: 100%;
    max-width: 1400px;
    padding-left: max(32px, env(safe-area-inset-left));
    padding-right: max(32px, env(safe-area-inset-right));
    box-sizing: border-box;
}

.abp-archive-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.abp-archive-search {
    width: 100%;
    max-width: 380px;
    padding: 9px 14px;
    border: 1px solid var(--abp-border);
    border-radius: 24px;
    font-size: 14px;
    color: var(--abp-t1);
    outline: none;
    transition: border-color .2s;
}
.abp-archive-search:focus { border-color: var(--abp-primary); }

.abp-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.abp-filter-btn, .abp-level-btn {
    padding: 6px 14px;
    border: 1px solid var(--abp-border);
    border-radius: 20px;
    background: var(--abp-card);
    color: var(--abp-t2);
    font-size: 13px;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s;
    white-space: nowrap;
}
.abp-filter-btn:hover, .abp-level-btn:hover { border-color: var(--abp-primary); color: var(--abp-primary); }
.abp-filter-btn.active, .abp-level-btn.active {
    background: var(--abp-primary);
    color: #fff;
    border-color: var(--abp-primary);
}

/* Grid */
.abp-archive-grid {
    display: grid;
    gap: 20px;
}
.abp-archive-cols-1 { grid-template-columns: 1fr; }
.abp-archive-cols-2 { grid-template-columns: repeat(2, 1fr); }
.abp-archive-cols-3 { grid-template-columns: repeat(3, 1fr); }
.abp-archive-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.abp-archive-card {
    background: var(--abp-card);
    border: 1px solid var(--abp-border);
    border-radius: var(--abp-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
}
.abp-archive-card:hover { box-shadow: var(--abp-shadow); transform: translateY(-3px); }

.abp-archive-img-link { display: block; }
.abp-archive-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--abp-light);
    position: relative;
    flex-shrink: 0;
}
.abp-archive-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}
.abp-archive-info { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.abp-archive-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--abp-primary);
}
.abp-archive-title { margin: 0; font-size: 15px; line-height: 1.35; }
.abp-archive-title a { color: var(--abp-dark); text-decoration: none; }
.abp-archive-title a:hover { color: var(--abp-primary); }
.abp-archive-excerpt { font-size: 13px; color: var(--abp-t2); margin: 0; line-height: 1.5; flex: 1; }
.abp-archive-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.abp-archive-date { font-size: 11px; color: var(--abp-t3); }
.abp-archive-time { font-size: 11px; color: var(--abp-t3); }
.abp-archive-empty { color: var(--abp-t3); font-style: italic; text-align: center; padding: 32px 0; }

.abp-archive-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}
.abp-load-more { padding: 11px 28px; font-size: 14px; }
.abp-archive-count { font-size: 13px; color: var(--abp-t3); margin: 0; }

/* Badge chips on archive cards */
.abp-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    line-height: 1.4;
    pointer-events: none;
}
.abp-badge-destaque { background: #fff8e1; color: #b45309; border: 1px solid #fcd34d; }
.abp-badge-trending  { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }
.abp-badge-novo      { background: #eff6ff; color: #2563eb; border: 1px solid #93c5fd; }

/* ── Badge Bar (inside post content) ───────────────────────────────────── */
.abp-badge-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 16px;
}
.abp-badge-bar-destaque { background: #fff8e1; color: #b45309; border: 1px solid #fcd34d; }
.abp-badge-bar-trending  { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }
.abp-badge-bar-novo      { background: #eff6ff; color: #2563eb; border: 1px solid #93c5fd; }

/* ── Featured Section (shortcodes) ─────────────────────────────────────── */
.abp-featured-section { margin: 32px 0; }
.abp-featured-title { font-size: 20px; font-weight: 700; color: var(--abp-dark); margin: 0 0 18px; }

/* ── Gallery ─────────────────────────────────────────────────────────────── */
.abp-gallery { margin: 32px 0; }
.abp-gallery-grid {
    display: grid;
    gap: 8px;
}
.abp-gallery-cols-2 .abp-gallery-grid { grid-template-columns: repeat(2, 1fr); }
.abp-gallery-cols-3 .abp-gallery-grid { grid-template-columns: repeat(3, 1fr); }
.abp-gallery-cols-4 .abp-gallery-grid { grid-template-columns: repeat(4, 1fr); }
.abp-gallery-cols-5 .abp-gallery-grid { grid-template-columns: repeat(5, 1fr); }

.abp-gallery-item {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    background-color: var(--abp-light);
    border: none;
    border-radius: 8px;
    cursor: zoom-in;
    display: block;
    width: 100%;
    overflow: hidden;
    transition: opacity .2s, transform .2s;
}
.abp-gallery-item:hover { opacity: .85; transform: scale(1.02); }

/* Lightbox */
.abp-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: abpFadeIn .2s ease;
}
.abp-lb-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    gap: 8px;
}
.abp-lb-img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}
.abp-lb-counter { color: rgba(255,255,255,.6); font-size: 13px; margin: 0; }
.abp-lb-close, .abp-lb-prev, .abp-lb-next {
    position: fixed;
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s;
    line-height: 1;
}
.abp-lb-close:hover, .abp-lb-prev:hover, .abp-lb-next:hover { background: rgba(255,255,255,.25); }
.abp-lb-close { top: 16px; right: 16px; font-size: 18px; }
.abp-lb-prev  { left: 12px;  top: 50%; transform: translateY(-50%); }
.abp-lb-next  { right: 12px; top: 50%; transform: translateY(-50%); }

/* ── In-content Banner ───────────────────────────────────────────────────── */
.abp-banner {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: var(--abp-radius);
    padding: 0;
    margin: 28px 0;
    border: 1px solid rgba(0,0,0,.06);
    overflow: hidden;
}
.abp-banner-img {
    flex-shrink: 0;
    align-self: stretch;
}
.abp-banner-img img {
    width: 260px;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
    display: block;
}
.abp-banner-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 24px;
    justify-content: center;
}
.abp-banner-title { font-size: 16px; color: var(--abp-dark); display: block; }
.abp-banner-text  { font-size: 13px; color: var(--abp-t2); margin: 0; line-height: 1.5; }
.abp-banner-cta {
    display: inline-block;
    align-self: flex-start;
    background: var(--abp-primary);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
    margin-top: 4px;
}
.abp-banner-cta:hover { background: var(--abp-dark); color: #fff; }

/* ── Blog Header — Chips de Categoria ──────────────────────────────────── */
.abp-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.abp-cat-chip {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 20px;
    border: 1px solid var(--abp-border);
    background: var(--abp-card);
    color: var(--abp-t2);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
    white-space: nowrap;
}
.abp-cat-chip:hover {
    border-color: var(--abp-primary);
    color: var(--abp-primary);
    background: var(--abp-light);
}
.abp-cat-chip--active {
    background: var(--abp-primary);
    color: #fff;
    border-color: var(--abp-primary);
    box-shadow: 0 2px 8px rgba(123,94,167,.25);
}
.abp-cat-chip--active:hover {
    background: var(--abp-dark);
    border-color: var(--abp-dark);
    color: #fff;
}

/* ── Blog Header — Campo de pesquisa ───────────────────────────────────── */
.abp-blog-search-form {
    width: 100%;
    margin-bottom: 14px;
}
.abp-blog-search-wrap {
    display: flex;
    align-items: center;
    background: var(--abp-card);
    border: 1.5px solid var(--abp-border);
    border-radius: 10px;
    overflow: hidden;
    max-width: 220px;
    transition: border-color .18s, box-shadow .18s;
}
.abp-blog-search-wrap:focus-within {
    border-color: var(--abp-primary);
    box-shadow: 0 0 0 3px rgba(123,94,167,.12);
}
.abp-blog-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--abp-t1);
    font-family: inherit;
    min-width: 0;
    /* remove browser default search field decorations */
    -webkit-appearance: none;
    appearance: none;
}
.abp-blog-search-input::placeholder { color: var(--abp-t2); opacity: .7; }
.abp-blog-search-input::-webkit-search-cancel-button,
.abp-blog-search-input::-webkit-search-decoration { display: none; }
.abp-blog-search-btn {
    background: none;
    border: none;
    padding: 0 14px;
    cursor: pointer;
    color: var(--abp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    transition: color .18s;
    flex-shrink: 0;
}
.abp-blog-search-btn:hover { color: var(--abp-dark); }

/* dark mode */
.ast-dark-mode .abp-blog-search-wrap,
.arzen-dark-mode .abp-blog-search-wrap {
    background: var(--abp-card);
    border-color: var(--abp-border);
}
.ast-dark-mode .abp-blog-search-input,
.arzen-dark-mode .abp-blog-search-input { color: var(--abp-t1); }

/* mobile */
@media (max-width: 768px) {
    .abp-blog-search-wrap { max-width: 100%; }
}

/* ── Blog Header — row: chips à esquerda, pesquisa à direita ────────────── */
/* O banner (.arzen-blog-banner) é injectado em loop_start prioridade 1 (antes dos chips).
   O .abp-blog-header vem depois (prioridade 10). Ambos ficam dentro de .ast-row (flex).
   SEM order:-1 — a ordem do DOM já é correta: banner → chips → posts. */
.abp-blog-header {
    flex-basis: 100%;
    width: 100%;
    /* order: -1 removido — banner renderiza antes no DOM */
    padding-top: 20px;
    padding-left: max(32px, env(safe-area-inset-left));
    padding-right: max(32px, env(safe-area-inset-right));
    box-sizing: border-box;
    margin-bottom: 16px;

    /* chips + search na mesma linha */
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
}

/* chips ocupam o espaço disponível */
.abp-blog-header .abp-cat-chips {
    flex: 1 1 0;
    min-width: 0;
}

/* pesquisa cola-se à direita, não estica
   width:auto !important neutraliza o .abp-blog-search-form { width:100% } global */
.abp-blog-header .abp-blog-search-form {
    flex: 0 0 auto;
    width: auto !important;
    margin-bottom: 0;
    margin-left: auto;
}

/* médio (769px–1024px): search desce para a 2.ª linha, chips ficam em 2 filas */
@media (max-width: 1024px) {
    .abp-blog-header .abp-cat-chips {
        flex: 0 0 100%;
    }
    .abp-blog-header .abp-blog-search-form {
        flex: 1 1 100%;
        width: 100% !important;
        margin-left: 0;
    }
    .abp-blog-header .abp-blog-search-wrap {
        max-width: 100%;
    }
}

/* mobile (≤768px): chips em scroll horizontal */
@media (max-width: 768px) {
    /* chips: scroll horizontal sem quebra de linha */
    .abp-cat-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;        /* Firefox */
        -ms-overflow-style: none;     /* IE/Edge */
        /* padding-bottom ligeiro para não cortar sombra dos chips */
        padding-bottom: 4px;
    }
    .abp-cat-chips::-webkit-scrollbar { display: none; }
    /* chips ocupam a linha toda antes da pesquisa */
    .abp-blog-header .abp-cat-chips { flex: 0 0 100%; }
    /* pesquisa desce para linha própria, full-width */
    .abp-blog-header .abp-blog-search-form {
        flex: 1 1 100%;
        width: 100% !important;
        margin-left: 0;
    }
    .abp-blog-header .abp-blog-search-wrap {
        max-width: 100%;
    }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .abp-related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    /* Botões de partilha + utilidades — empilham em mobile */
    .abp-actions-top-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .abp-utility-group { align-self: flex-end; }
    .abp-products-grid { grid-template-columns: repeat(2, 1fr); }
    .abp-lc-grid { grid-template-columns: repeat(4, 1fr); }
    .abp-exit-product { flex-direction: column; }
    .abp-exit-product img { width: 100%; height: 160px; }
    .abp-series-nav { flex-direction: column; }
    .abp-related { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
    .abp-related-grid { grid-template-columns: 1fr 1fr; }
    .abp-quiz-product { flex-direction: column; text-align: center; }
    .abp-quiz-product-img { width: 100%; height: 160px; border-radius: 10px; }
    .abp-kit-badge { margin-left: 0; }
    /* Archive */
    .abp-archive {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    .abp-blog-header {
        padding-left: max(16px, env(safe-area-inset-left)) !important;
        padding-right: max(16px, env(safe-area-inset-right)) !important;
    }
    .abp-archive-cols-3,
    .abp-archive-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .abp-archive-cols-2 { grid-template-columns: 1fr; }
    /* Gallery */
    .abp-gallery-cols-4 .abp-gallery-grid,
    .abp-gallery-cols-5 .abp-gallery-grid { grid-template-columns: repeat(3, 1fr); }
    /* Banner */
    .abp-banner { flex-direction: column; }
    .abp-banner-img img { width: 100%; height: 200px; min-height: unset; }
    .abp-banner-cta { align-self: stretch; text-align: center; }
    /* Lightbox nav arrows */
    .abp-lb-prev { left: 4px; }
    .abp-lb-next { right: 4px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   DARK MODE
   Activado por: preferência do sistema (prefers-color-scheme: dark)
              OU pela classe .ast-dark-mode que o tema Astra adiciona ao <body>
              OU pela classe .arzen-dark-mode usada pelo tema Arzen
   ══════════════════════════════════════════════════════════════════════════ */

/* 1 — Variáveis de cor redefinidas para dark -------------------------------- */
@media (prefers-color-scheme: dark) {
    :root {
        --abp-dark:   #ede6f8;
        --abp-light:  #1f1830;
        --abp-border: #3a2d56;
        --abp-shadow: 0 4px 20px rgba(0,0,0,.5);
        --abp-card:   #261f3a;
        --abp-t1:     #ede6f8;
        --abp-t2:     #b0a0cc;
        --abp-t3:     #7a6898;
        --abp-grad-a: #1f1830;
        --abp-grad-b: #231c35;
    }
}
/* Mesmo override para o tema Astra (classe no <body> ou <html>) */
.ast-dark-mode,
.ast-dark-mode :root,
html.ast-dark-mode,
.arzen-dark-mode,
.arzen-dark-mode :root,
html.arzen-dark-mode {
    --abp-dark:   #ede6f8;
    --abp-light:  #1f1830;
    --abp-border: #3a2d56;
    --abp-shadow: 0 4px 20px rgba(0,0,0,.5);
    --abp-card:   #261f3a;
    --abp-t1:     #ede6f8;
    --abp-t2:     #b0a0cc;
    --abp-t3:     #7a6898;
    --abp-grad-a: #1f1830;
    --abp-grad-b: #231c35;
}

/* 2 — Overrides para cores hardcoded que as variáveis não cobrem ------------ */

/* ── Dark Mode — regras comuns (todos os modos) ──────────────────────────── */
/* Os 3 blocos anteriores (@media, .ast-dark-mode, .arzen-dark-mode) foram    */
/* consolidados aqui. Regras específicas de cada modo ficam em blocos próprios */
/* abaixo desta secção comum.                                                  */
@media (prefers-color-scheme: dark) {
    /* Shipping bar — cores semânticas verdes */
    .abp-shipping-bar  { background: #0c2218; border-color: #1a4a32; }
    .abp-shipping-text { color: #34d399; }
    .abp-shipping-cta  { color: #34d399; }
    .abp-shipping-track { background: #1a3a28; }
    /* Social — share buttons */
    .abp-share-btn { background: var(--abp-card); color: var(--abp-t2); }
    .abp-share-whatsapp { color: #25d366; border-color: #25d366; }
    .abp-share-copy:hover { background: var(--abp-primary); color: #fff; }
    /* Exit intent */
    .abp-exit-close:hover { background: #3a2d56; color: var(--abp-t1); }
    /* Archive search input */
    .abp-archive-search { background: var(--abp-card); color: var(--abp-t1); }
    .abp-archive-search::placeholder { color: var(--abp-t3); }
    /* Checklist done item */
    .abp-cl-done span { color: var(--abp-t3); }
    /* Badges de nível — manter legibilidade no escuro */
    .abp-level-green  { background: #0d2a1f; border-color: #1a4a32; color: #34d399; }
    .abp-level-yellow { background: #2a2010; border-color: #7a6010; color: #f0b429; }
    .abp-level-red    { background: #2a0f18; border-color: #7a2030; color: #f87171; }
    /* Category chips — cor de fundo explícita */
    .abp-cat-chip { background: var(--abp-card); color: var(--abp-t2); }
    /* Series nav hover */
    .abp-series-prev:hover, .abp-series-next:hover { background: var(--abp-primary); color: #fff; }
    /* Kit coupon box */
    .abp-kit-saving { background: #0d2a1f; color: #34d399; }
    /* TOC sidebar scrollbar */
    .abp-toc--sidebar { scrollbar-color: var(--abp-border) transparent; }
    /* Archive card badges (hardcoded light colors → dark equivalents) */
    .abp-badge-destaque { background: #2a1f00; border-color: #7a5500; color: #f0b429; }
    .abp-badge-trending  { background: #2a0f10; border-color: #7a1a1a; color: #f87171; }
    .abp-badge-novo      { background: #0d1a2a; border-color: #1a3a6a; color: #60a5fa; }
    /* Badge bar (in-content) */
    .abp-badge-bar-destaque { background: #2a1f00; border-color: #7a5500; color: #f0b429; }
    .abp-badge-bar-trending  { background: #2a0f10; border-color: #7a1a1a; color: #f87171; }
    .abp-badge-bar-novo      { background: #0d1a2a; border-color: #1a3a6a; color: #60a5fa; }
    /* Archive filter buttons */
    .abp-filter-btn, .abp-level-btn { background: var(--abp-card); color: var(--abp-t2); border-color: var(--abp-border); }
    /* Quiz options */
    .abp-quiz-option { background: var(--abp-card); color: var(--abp-dark); border-color: var(--abp-border); }
    .abp-quiz-option:hover { background: var(--abp-light); border-color: var(--abp-primary); }
}

/* Regras comuns consolidadas para .ast-dark-mode e .arzen-dark-mode */
.ast-dark-mode .abp-shipping-bar,
.arzen-dark-mode .abp-shipping-bar  { background: #0c2218; border-color: #1a4a32; }
.ast-dark-mode .abp-shipping-text,
.arzen-dark-mode .abp-shipping-text { color: #34d399; }
.ast-dark-mode .abp-shipping-cta,
.arzen-dark-mode .abp-shipping-cta  { color: #34d399; }
.ast-dark-mode .abp-shipping-track,
.arzen-dark-mode .abp-shipping-track { background: #1a3a28; }
.ast-dark-mode .abp-share-btn,
.arzen-dark-mode .abp-share-btn  { background: var(--abp-card); color: var(--abp-t2); }
.ast-dark-mode .abp-share-whatsapp,
.arzen-dark-mode .abp-share-whatsapp { color: #25d366; border-color: #25d366; }
.ast-dark-mode .abp-share-copy:hover,
.arzen-dark-mode .abp-share-copy:hover { background: var(--abp-primary); color: #fff; }
.ast-dark-mode .abp-exit-close:hover,
.arzen-dark-mode .abp-exit-close:hover { background: #3a2d56; color: var(--abp-t1); }
.ast-dark-mode .abp-archive-search,
.arzen-dark-mode .abp-archive-search  { background: var(--abp-card); color: var(--abp-t1); }
.ast-dark-mode .abp-archive-search::placeholder,
.arzen-dark-mode .abp-archive-search::placeholder { color: var(--abp-t3); }
.ast-dark-mode .abp-cl-done span,
.arzen-dark-mode .abp-cl-done span { color: var(--abp-t3); }
.ast-dark-mode .abp-level-green,
.arzen-dark-mode .abp-level-green  { background: #0d2a1f; border-color: #1a4a32; color: #34d399; }
.ast-dark-mode .abp-level-yellow,
.arzen-dark-mode .abp-level-yellow { background: #2a2010; border-color: #7a6010; color: #f0b429; }
.ast-dark-mode .abp-level-red,
.arzen-dark-mode .abp-level-red    { background: #2a0f18; border-color: #7a2030; color: #f87171; }
.ast-dark-mode .abp-cat-chip,
.arzen-dark-mode .abp-cat-chip { background: var(--abp-card); color: var(--abp-t2); }
.ast-dark-mode .abp-series-prev:hover,
.ast-dark-mode .abp-series-next:hover,
.arzen-dark-mode .abp-series-prev:hover,
.arzen-dark-mode .abp-series-next:hover { background: var(--abp-primary); color: #fff; }
.ast-dark-mode .abp-kit-saving,
.arzen-dark-mode .abp-kit-saving { background: #0d2a1f; color: #34d399; }
.ast-dark-mode .abp-toc--sidebar,
.arzen-dark-mode .abp-toc--sidebar { scrollbar-color: var(--abp-border) transparent; }
/* Archive badges */
.ast-dark-mode .abp-badge-destaque,
.arzen-dark-mode .abp-badge-destaque { background: #2a1f00; border-color: #7a5500; color: #f0b429; }
.ast-dark-mode .abp-badge-trending,
.arzen-dark-mode .abp-badge-trending  { background: #2a0f10; border-color: #7a1a1a; color: #f87171; }
.ast-dark-mode .abp-badge-novo,
.arzen-dark-mode .abp-badge-novo      { background: #0d1a2a; border-color: #1a3a6a; color: #60a5fa; }
/* Badge bar (in-content) */
.ast-dark-mode .abp-badge-bar-destaque,
.arzen-dark-mode .abp-badge-bar-destaque { background: #2a1f00; border-color: #7a5500; color: #f0b429; }
.ast-dark-mode .abp-badge-bar-trending,
.arzen-dark-mode .abp-badge-bar-trending  { background: #2a0f10; border-color: #7a1a1a; color: #f87171; }
.ast-dark-mode .abp-badge-bar-novo,
.arzen-dark-mode .abp-badge-bar-novo      { background: #0d1a2a; border-color: #1a3a6a; color: #60a5fa; }
/* Archive filter buttons */
.ast-dark-mode .abp-filter-btn,
.ast-dark-mode .abp-level-btn,
.arzen-dark-mode .abp-filter-btn,
.arzen-dark-mode .abp-level-btn { background: var(--abp-card); color: var(--abp-t2); border-color: var(--abp-border); }
/* Quiz */
.ast-dark-mode .abp-quiz-option,
.arzen-dark-mode .abp-quiz-option { background: var(--abp-card); color: var(--abp-dark); border-color: var(--abp-border); }
.ast-dark-mode .abp-quiz-option:hover,
.arzen-dark-mode .abp-quiz-option:hover { background: var(--abp-light); border-color: var(--abp-primary); }

/* ── Fix Astra separate-container: article card fica branco em .arzen-dark-mode ── */
/* O Astra usa var(--ast-global-color-4) em .ast-article-inner para o fundo branco. */
/* Sobrepor a variável + o selector exacto que o Astra usa.                          */
.arzen-dark-mode {
    --ast-global-color-4: transparent;

    /* ── Fix: banner do título (entry-header) em dark mode ──────────────────── */
    /* arzen-custom.css aplica o gradiente via var(--arzen-banner-*) que ficam  */
    /* com cores claras (#CEBEFF etc.) porque não são substituídas em dark mode. */
    /* Sobrepor aqui garante gradiente escuro sem batalha de especificidade.     */
    --arzen-banner-from: #1a0e3d;
    --arzen-banner-mid:  #2d1570;
    --arzen-banner-to:   #1a0e3d;
    --arzen-banner-text: #ede6f8;
    --arzen-banner-sub:  #b0a0cc;
}
.arzen-dark-mode .ast-article-inner,
.arzen-dark-mode article.hentry,
.arzen-dark-mode .ast-separate-container .ast-article-single {
    background: transparent !important;
    background-color: transparent !important;
}

/* ── Fallback: forçar cor do texto no banner em dark mode ───────────────────── */
.arzen-dark-mode .entry-header .entry-title,
.arzen-dark-mode header.entry-header .entry-title,
.arzen-dark-mode .entry-header h1,
.arzen-dark-mode header.entry-header h1 {
    color: var(--arzen-banner-text, #ede6f8) !important;
}

/* ── Fixes dark mode: elementos com cores hardcoded sem override ─────────────── */

/* Badges de nível de leitura (linhas 40-42 — cores claramente hardcoded para light) */
.arzen-dark-mode .abp-level-green  { background: #0d2a1f !important; border-color: #1a4a32 !important; color: #34d399 !important; }
.arzen-dark-mode .abp-level-yellow { background: #2a2010 !important; border-color: #7a6010 !important; color: #f0b429 !important; }
.arzen-dark-mode .abp-level-red    { background: #2a0f18 !important; border-color: #7a2030 !important; color: #f87171 !important; }

/* Exit intent overlay — rgba escuro sufocante em dark mode */
.arzen-dark-mode .abp-exit-overlay { background: rgba(5,3,12,.82) !important; }

/* Banner widget — dark mode: fundo inline (#f7f4ff) é sobreposto com !important */
.arzen-dark-mode .abp-banner,
.ast-dark-mode .abp-banner {
    background-color: #1e1130 !important;
    border-color: rgba(138, 88, 186, 0.35) !important;
}
.arzen-dark-mode .abp-banner-title,
.ast-dark-mode .abp-banner-title { color: #ede6f8 !important; }
.arzen-dark-mode .abp-banner-text,
.ast-dark-mode .abp-banner-text  { color: #b0a0cc !important; }
.arzen-dark-mode .abp-banner-cta:hover,
.ast-dark-mode .abp-banner-cta:hover { background: #2d1b4e !important; }

/* Bookmark remove btn — vermelho #c00 muito saturado em dark */
.arzen-dark-mode .abp-bm-remove { color: #f87171 !important; }

/* ── Post navigation prev/next: afastar do limite do ecrã ───────────────────── */
.navigation.post-navigation { padding-left: 32px !important; padding-right: 32px !important; box-sizing: border-box; }
@media (max-width: 768px) {
    .navigation.post-navigation { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ── Banners artigo + categoria: mesma altura total (86px) e gap igual (0px) ──────── */
/*                                                                                      */
/* Categoria (.ast-archive-description): font-size 40px → h1 ≈ 46px                  */
/*   Target: padding 20px + 46px + 20px = 86px                                        */
/* Artigo (.entry-header):               font-size 32px → h1 ≈ 38px                  */
/*   Target: padding 24px + 38px + 24px = 86px  (4px extra compensa font menor)      */
/*                                                                                      */
/* Gap acima do banner: controlled by #primary margin-top = 0 em ambos os tipos.      */

/* Artigo — Base (browsers sem suporte a :has() vêem este estilo sempre) */
.single .entry-header,
.page .entry-header {
    padding-top:    24px !important;
    padding-bottom: 24px !important;
    padding-left:   40px !important;
    padding-right:  40px !important;
}
@media (max-width: 768px) {
    .single .entry-header,
    .page .entry-header {
        padding-top:    16px !important;
        padding-bottom: 16px !important;
        padding-left:   20px !important;
        padding-right:  20px !important;
    }
}

/* Override quando hero NÃO existe — browsers modernos com suporte a :has() */
.single:not(:has(.arzen-hero-banner)):not(:has(.arzen-hero-v2)) .entry-header,
.page:not(:has(.arzen-hero-banner)):not(:has(.arzen-hero-v2)) .entry-header {
    padding-top:    24px !important;
    padding-bottom: 24px !important;
    padding-left:   40px !important;
    padding-right:  40px !important;
}
@media (max-width: 768px) {
    .single:not(:has(.arzen-hero-banner)):not(:has(.arzen-hero-v2)) .entry-header,
    .page:not(:has(.arzen-hero-banner)):not(:has(.arzen-hero-v2)) .entry-header {
        padding-top:    16px !important;
        padding-bottom: 16px !important;
        padding-left:   20px !important;
        padding-right:  20px !important;
    }
}

/* Categoria */
.ast-archive-description {
    padding-top:    20px !important;
    padding-bottom: 20px !important;
}
@media (max-width: 768px) {
    .ast-archive-description {
        padding-top:    14px !important;
        padding-bottom: 14px !important;
    }
}

/* ── Gap acima do banner: 0px em artigos E categorias ───────────────────────────── */
/* Astra aplica margin-top no #primary e padding-top no #main.site-main.            */
/* Zeramos ambos para que o banner encoste directamente à nav em todos os tipos.    */
.archive #primary.content-area,
.category #primary.content-area,
.home    #primary.content-area,
.single  #primary.content-area,
.page    #primary.content-area {
    margin-top: 0 !important;
}
.archive #main.site-main,
.category #main.site-main,
.home    #main.site-main,
.single  #main.site-main,
.page    #main.site-main {
    padding-top: 0 !important;
}
/* Astra às vezes aplica margin-top ao primeiro article.hentry */
.single  article.hentry:first-child,
.page    article.hentry:first-child {
    margin-top: 0 !important;
}
