/**
 * TP Storefront — Liquid Glass Design System
 *
 * Variables: dark/light mode via prefers-color-scheme + .tp-theme-dark/light
 * data-attr override. Surfaces use `backdrop-filter: blur` for the glass
 * effect over a multi-layered gradient background.
 *
 * Decisão 2026-05-25 (user):
 *   Plantify (dark) + Corelystics (light) mash-up. Liquid-glass + chips
 *   removíveis + sticky filters sidebar.
 */

/* ════════════════════════════════════════════════════════════════════════════
 * DEFENSIVE OVERRIDES (2026-05-26) — User queixa "texto branco em fundo branco"
 *
 * O tema Ignavo + plugin email-verification (e outros) aplicam `color: #fff`
 * a TODOS os inputs/buttons do site. Sem overrides explícitos com `!important`
 * + `-webkit-text-fill-color`, qualquer input dentro do storefront fica com
 * texto invisível ao escrever. Estas regras correm ANTES de tudo para vencer
 * a especificidade do tema.
 *
 * Scope: dentro de `.tp-storefront-active` (body class) OU `.tp-vpp` (página
 * de viaturas-para-pecas que pode estar fora desse scope se a body class do
 * tema não chegar à shortcode page).
 * ════════════════════════════════════════════════════════════════════════════ */
/* Restrito aos containers DOS NOSSOS widgets (tp-vpp, tp-sa, tp-garage,
 * wpcf7, tp-search-block). NÃO atinge `.search-input` (input do header
 * do tema Ignavo) nem outros inputs do tema. Selector universal anterior
 * estava a quebrar o header. */
.tp-storefront-active .tp-vpp input[type="text"],
.tp-storefront-active .tp-vpp input[type="search"],
.tp-storefront-active .tp-vpp input[type="number"],
.tp-storefront-active .tp-vpp textarea,
.tp-storefront-active .tp-sa-page input[type="text"],
.tp-storefront-active .tp-sa-page input[type="search"],
.tp-storefront-active .tp-sa-page input[type="number"],
.tp-sa-cb input[type="text"],
.tp-sa-cb input[type="search"],
.tp-storefront-active .tp-sa-cs input[type="text"],
.tp-storefront-active .tp-sa-cs input[type="search"],
.tp-storefront-active .tp-search-block input[type="text"],
.tp-storefront-active .tp-search-block input[type="search"],
.tp-storefront-active .wpcf7 input[type="text"],
.tp-storefront-active .wpcf7 input[type="email"],
.tp-storefront-active .wpcf7 input[type="tel"],
.tp-storefront-active .wpcf7 textarea,
.tp-garage-form input[type="text"],
.tp-vpp input[type="text"],
.tp-vpp input[type="search"],
.tp-vpp input[type="number"],
.tp-vpp textarea {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    background-color: rgba(255,255,255,0.85) !important;
}
.tp-storefront-active .tp-vpp input::placeholder,
.tp-storefront-active .tp-vpp textarea::placeholder,
.tp-storefront-active .tp-sa-page input::placeholder,
.tp-sa-cb input::placeholder,
.tp-storefront-active .tp-sa-cs input::placeholder,
.tp-storefront-active .tp-search-block input::placeholder,
.tp-storefront-active .wpcf7 input::placeholder,
.tp-storefront-active .wpcf7 textarea::placeholder,
.tp-garage-form input::placeholder,
.tp-vpp input::placeholder,
.tp-vpp textarea::placeholder {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    opacity: 1 !important;
}
@media (prefers-color-scheme: dark) {
    .tp-storefront-active .tp-vpp input[type="text"],
    .tp-storefront-active .tp-vpp input[type="search"],
    .tp-storefront-active .tp-vpp input[type="number"],
    .tp-storefront-active .tp-vpp textarea,
    .tp-storefront-active .tp-sa-page input[type="text"],
    .tp-storefront-active .tp-sa-page input[type="search"],
    .tp-sa-cb input[type="text"],
    .tp-sa-cb input[type="search"],
    .tp-storefront-active .tp-sa-cs input[type="text"],
    .tp-storefront-active .tp-sa-cs input[type="search"],
    .tp-storefront-active .tp-search-block input[type="text"],
    .tp-storefront-active .tp-search-block input[type="search"],
    .tp-storefront-active .wpcf7 input[type="text"],
    .tp-storefront-active .wpcf7 input[type="email"],
    .tp-storefront-active .wpcf7 input[type="tel"],
    .tp-storefront-active .wpcf7 textarea,
    .tp-garage-form input[type="text"],
    .tp-vpp input[type="text"],
    .tp-vpp input[type="search"],
    .tp-vpp input[type="number"],
    .tp-vpp textarea {
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0 !important;
        background-color: rgba(20,25,35,0.85) !important;
    }
    .tp-storefront-active .tp-vpp input::placeholder,
    .tp-storefront-active .tp-vpp textarea::placeholder,
    .tp-storefront-active .tp-sa-page input::placeholder,
    .tp-sa-cb input::placeholder,
    .tp-storefront-active .tp-sa-cs input::placeholder,
    .tp-storefront-active .tp-search-block input::placeholder,
    .tp-storefront-active .wpcf7 input::placeholder,
    .tp-storefront-active .wpcf7 textarea::placeholder,
    .tp-garage-form input::placeholder,
    .tp-vpp input::placeholder,
    .tp-vpp textarea::placeholder {
        color: #94a3b8 !important;
        -webkit-text-fill-color: #94a3b8 !important;
    }
}

/* Botões dos filtros — text colour explícito para que "Aplicar", "Limpar",
 * "Filtros", "Ordenação" não fiquem texto-branco em fundo-branco. Mantemos
 * a aparência (gradiente, glass) — só forçamos o color do texto. */
.tp-storefront-active .tp-sa-cs-trigger,
.tp-storefront-active .tp-sa-sort-trigger,
.tp-storefront-active .tp-sa-cs-current,
.tp-storefront-active .tp-sa-sort-current,
.tp-storefront-active .tp-sa-cs-item,
.tp-storefront-active .tp-sa-sort-item,
.tp-vpp .tp-sa-cb-input,
.tp-vpp .tp-sa-cb-item,
.tp-vpp .tp-sa-cs-trigger,
.tp-vpp .tp-sa-sort-trigger,
.tp-vpp .tp-sa-cs-current,
.tp-vpp .tp-sa-sort-current {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}
@media (prefers-color-scheme: dark) {
    .tp-storefront-active .tp-sa-cs-trigger,
    .tp-storefront-active .tp-sa-sort-trigger,
    .tp-storefront-active .tp-sa-cs-current,
    .tp-storefront-active .tp-sa-sort-current,
    .tp-storefront-active .tp-sa-cs-item,
    .tp-storefront-active .tp-sa-sort-item,
    .tp-vpp .tp-sa-cb-input,
    .tp-vpp .tp-sa-cb-item,
    .tp-vpp .tp-sa-cs-trigger,
    .tp-vpp .tp-sa-sort-trigger,
    .tp-vpp .tp-sa-cs-current,
    .tp-vpp .tp-sa-sort-current {
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }
}

/* Active state nas opções da dropdown — texto verde sobre fundo translúcido */
.tp-storefront-active .tp-sa-cs-item.is-active,
.tp-vpp .tp-sa-cb-item.is-active,
.tp-vpp .tp-sa-cb-item.is-highlight,
.tp-storefront-active .tp-sa-cs-item:hover,
.tp-vpp .tp-sa-cb-item:hover {
    color: var(--tp-primary, #2563eb) !important;
    -webkit-text-fill-color: var(--tp-primary, #2563eb) !important;
}

/* Botões "Aplicar" / "Limpar" — sempre brancos (gradiente brand) */
.tp-storefront-active .tp-sa-apply,
.tp-vpp .tp-sa-apply {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* ───── Tokens (light default) ───── */
.tp-storefront-active {
    --tp-bg: #fafbfc;
    --tp-bg-gradient: radial-gradient(at 0% 0%, rgba(120,180,255,0.10) 0px, transparent 50%),
                      radial-gradient(at 100% 0%, rgba(180,255,200,0.10) 0px, transparent 50%);
    --tp-glass-bg: rgba(255,255,255,0.55);
    --tp-glass-border: rgba(255,255,255,0.7);
    --tp-glass-blur: 14px;
    --tp-text: #0f172a;
    --tp-text-muted: #64748b;
    --tp-primary: #2563eb;
    --tp-primary-hover: #1d4ed8;
    --tp-accent: #14b8a6;
    --tp-radius: 14px;
    --tp-radius-sm: 8px;
    --tp-shadow: 0 4px 24px -8px rgba(0,0,0,0.10), 0 0 0 1px rgba(15,23,42,0.04);
    --tp-shadow-hover: 0 10px 40px -10px rgba(0,0,0,0.18), 0 0 0 1px rgba(15,23,42,0.06);
}

@media (prefers-color-scheme: dark) {
    .tp-storefront-active {
        --tp-bg: #0a0d12;
        --tp-bg-gradient: radial-gradient(at 0% 0%, rgba(80,120,200,0.18) 0px, transparent 50%),
                          radial-gradient(at 100% 100%, rgba(20,184,166,0.10) 0px, transparent 50%);
        --tp-glass-bg: rgba(20,25,35,0.55);
        --tp-glass-border: rgba(255,255,255,0.08);
        --tp-text: #f1f5f9;
        --tp-text-muted: #94a3b8;
        --tp-primary: #60a5fa;
        --tp-primary-hover: #93c5fd;
        --tp-shadow: 0 4px 24px -8px rgba(0,0,0,0.50), 0 0 0 1px rgba(255,255,255,0.05);
        --tp-shadow-hover: 0 10px 40px -10px rgba(0,0,0,0.70), 0 0 0 1px rgba(255,255,255,0.10);
    }
}

/* ───── Body background (subtle) ───── */
.tp-storefront-active {
    background: var(--tp-bg);
    background-image: var(--tp-bg-gradient);
    color: var(--tp-text);
}

/* ───── Product card (loop) ───── */
.tp-storefront-active .tp-card,
.tp-storefront-active .product .tp-card { /* fallback selector */
    background: var(--tp-glass-bg);
    backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    border: 1px solid var(--tp-glass-border);
    border-radius: var(--tp-radius);
    box-shadow: var(--tp-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tp-storefront-active .tp-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tp-shadow-hover);
    border-color: rgba(96,165,250,0.30);
}

.tp-card-imgwrap {
    display: block;
    aspect-ratio: 4/3;
    background: rgba(0,0,0,0.04);
    overflow: hidden;
    position: relative;
}

@media (prefers-color-scheme: dark) {
    .tp-card-imgwrap { background: rgba(255,255,255,0.04); }
}

.tp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tp-card:hover .tp-card-img {
    transform: scale(1.04);
}

.tp-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.tp-card-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--tp-text);
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tp-card-title a {
    color: inherit;
    text-decoration: none;
}

.tp-card-subtitle {
    font-size: 13px;
    color: var(--tp-text-muted);
    margin-bottom: 4px;
}

.tp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

.tp-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--tp-text);
}

.tp-card-price .woocommerce-Price-amount {
    font-weight: 700;
}

.tp-card-no-price {
    font-size: 13px;
    color: var(--tp-text-muted);
    font-weight: 500;
}

.tp-card-cta {
    background: var(--tp-primary);
    color: #fff !important;
    border: 0;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
}

.tp-card-cta:hover {
    background: var(--tp-primary-hover);
    transform: translateY(-1px);
}

.tp-card-cta-secondary {
    background: transparent !important;
    color: var(--tp-primary) !important;
    border: 1px solid currentColor;
}

/* ───── Grid de produtos no shop ───── */
.tp-storefront-active.archive .products,
.tp-storefront-active .columns-4.products,
.tp-storefront-active .products.columns-3 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 0;
    margin: 24px 0;
    list-style: none;
}

@media (max-width: 1200px) { .tp-storefront-active .products { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 900px)  { .tp-storefront-active .products { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 540px)  { .tp-storefront-active .products { grid-template-columns: 1fr !important; } }

.tp-storefront-active .products .product,
.tp-storefront-active .products li.product {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ───── Single product gallery (already styled inline in plugin) ───── */

/* ───── "Viaturas para Peças" page ───── */
.tp-vpp-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    max-width: 1320px;
    margin: 24px auto;
    padding: 0 16px;
}

@media (max-width: 900px) {
    .tp-vpp-wrap { grid-template-columns: 1fr; }
    .tp-vpp-sidebar { position: relative !important; top: 0 !important; }
}

.tp-vpp-sidebar {
    background: var(--tp-glass-bg, #fff);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--tp-glass-border, rgba(15,23,42,0.08));
    border-radius: 14px;
    padding: 18px;
    position: sticky;
    top: 80px;
    align-self: start;
    box-shadow: 0 4px 20px -8px rgba(0,0,0,0.10);
}

.tp-vpp-filters {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tp-vpp-search input,
.tp-vpp-field select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid rgba(15,23,42,0.12);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255,255,255,0.6);
}

.tp-vpp-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--tp-text-muted, #64748b);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tp-vpp-apply {
    background: var(--tp-primary, #2563eb);
    color: #fff;
    border: 0;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.tp-vpp-clear {
    text-align: center;
    color: var(--tp-text-muted, #64748b);
    text-decoration: none;
    font-size: 13px;
    padding: 8px;
}

.tp-vpp-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}

.tp-vpp-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--tp-text);
}

.tp-vpp-count {
    color: var(--tp-text-muted, #64748b);
    font-size: 14px;
}

.tp-vpp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tp-vpp-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.tp-vpp-grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .tp-vpp-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 540px) { .tp-vpp-grid { grid-template-columns: 1fr !important; } }

.tp-vpp-card {
    display: block;
    background: var(--tp-glass-bg, rgba(255,255,255,0.6));
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--tp-glass-border, rgba(15,23,42,0.08));
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tp-vpp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.15);
}

.tp-vpp-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #f3f4f6;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tp-vpp-card-body {
    padding: 12px 14px 16px;
}

.tp-vpp-card-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--tp-text);
}

.tp-vpp-card-variant {
    font-size: 13px;
    color: var(--tp-text-muted, #64748b);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-vpp-card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--tp-text-muted, #64748b);
}

.tp-vpp-card-meta span {
    padding: 2px 8px;
    background: rgba(15,23,42,0.06);
    border-radius: 999px;
}

.tp-vpp-empty {
    text-align: center;
    color: var(--tp-text-muted, #64748b);
    padding: 60px 20px;
    font-size: 16px;
}

/* ───── Master/Associate parts section (single product) ───── */
.tp-related-composites {
    margin: 32px 0;
    padding: 18px;
    background: var(--tp-glass-bg);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--tp-glass-border);
    border-radius: var(--tp-radius);
}

.tp-related-composites h3 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
}

.tp-related-composites .tp-rc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.tp-related-composites .tp-rc-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.4);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.tp-related-composites .tp-rc-item:hover {
    background: rgba(255,255,255,0.6);
}

.tp-related-composites .tp-rc-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}

.tp-related-composites .tp-rc-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.tp-related-composites .tp-rc-price {
    font-size: 12px;
    color: var(--tp-text-muted);
    margin-top: 2px;
}

.tp-related-composites .tp-rc-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--tp-accent);
    color: #fff;
    border-radius: 999px;
    margin-bottom: 8px;
}

/* ────────────────────────────────────────────────────────
   SINGLE PRODUCT — full redesign liquid-glass
   ──────────────────────────────────────────────────────── */
.tp-sp-page {
    padding: 24px 16px 60px;
    background: var(--tp-bg);
    background-image: var(--tp-bg-gradient);
    min-height: 100vh;
}

.tp-sp-container {
    max-width: 1320px;
    margin: 0 auto;
}

.tp-sp-breadcrumbs {
    font-size: 13px;
    color: var(--tp-text-muted);
    margin-bottom: 16px;
}

.tp-sp-breadcrumbs a {
    color: var(--tp-text-muted);
    text-decoration: none;
}

.tp-sp-breadcrumbs a:hover { color: var(--tp-primary); }

.tp-sp-bc-sep {
    margin: 0 8px;
    opacity: 0.5;
}

.tp-sp-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (max-width: 980px) {
    .tp-sp-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* GALLERY */
.tp-sp-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tp-sp-main-img-wrap {
    background: var(--tp-glass-bg);
    backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    border: 1px solid var(--tp-glass-border);
    border-radius: var(--tp-radius);
    padding: 18px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-sp-main-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--tp-radius-sm);
}

.tp-sp-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tp-sp-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: var(--tp-glass-bg);
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.1s ease;
}

.tp-sp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-sp-thumb:hover { transform: scale(1.04); }
.tp-sp-thumb.is-active { border-color: var(--tp-primary); }

.tp-sp-videos {
    margin-top: 8px;
}

.tp-sp-videos .tp-video-gallery { display: flex; flex-direction: column; gap: 10px; }
.tp-sp-videos iframe, .tp-sp-videos video {
    border-radius: var(--tp-radius-sm);
    width: 100%;
    max-width: 100%;
}

/* INFO CARD (sticky) */
.tp-sp-info {
    position: sticky;
    top: 24px;
    align-self: start;
}

@media (max-width: 980px) {
    .tp-sp-info { position: relative; top: 0; }
}

.tp-sp-info-card {
    background: var(--tp-glass-bg);
    backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    border: 1px solid var(--tp-glass-border);
    border-radius: var(--tp-radius);
    padding: 26px 26px 22px;
    box-shadow: var(--tp-shadow);
}

.tp-sp-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--tp-text);
    letter-spacing: -0.01em;
}

@media (max-width: 540px) { .tp-sp-title { font-size: 22px; } }

.tp-sp-subtitle {
    color: var(--tp-text-muted);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 14px;
}

.tp-sp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.tp-sp-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--tp-text);
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

@media (prefers-color-scheme: dark) {
    .tp-sp-badge { background: rgba(255,255,255,0.08); }
}

.tp-sp-badge-ref {
    background: var(--tp-primary);
    color: #fff;
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
}

.tp-sp-badge-cond {
    background: var(--tp-accent);
    color: #fff;
}

.tp-sp-badge-qual {
    background: rgba(251,191,36,0.15);
    color: #b45309;
}

.tp-sp-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 14px 0 8px;
    padding: 14px 0;
    border-top: 1px solid var(--tp-glass-border);
    border-bottom: 1px solid var(--tp-glass-border);
}

.tp-sp-price .woocommerce-Price-amount,
.tp-sp-price bdi {
    font-size: 32px;
    font-weight: 800;
    color: var(--tp-text);
}

.tp-sp-price-tax {
    font-size: 12px;
    color: var(--tp-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tp-sp-no-price {
    font-size: 18px;
    color: var(--tp-text-muted);
    font-weight: 600;
}

.tp-sp-stock-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 16px;
    font-size: 14px;
    color: #15803d;
    font-weight: 500;
}

.tp-sp-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #15803d;
    box-shadow: 0 0 0 3px rgba(21,128,61,0.18);
}

.tp-sp-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.tp-sp-cta .single_add_to_cart_button {
    width: 100%;
    background: var(--tp-primary) !important;
    color: #fff !important;
    padding: 14px 22px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    border: 0 !important;
    transition: background 0.15s ease, transform 0.1s ease;
}

.tp-sp-cta .single_add_to_cart_button:hover {
    background: var(--tp-primary-hover) !important;
    transform: translateY(-1px);
}

.tp-sp-cta .quantity {
    margin-right: 0 !important;
}

.tp-sp-perks {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--tp-text-muted);
}

.tp-sp-perks li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-sp-perks svg { color: var(--tp-primary); flex-shrink: 0; }

/* TABS */
.tp-sp-tabs-wrap {
    background: var(--tp-glass-bg);
    backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    border: 1px solid var(--tp-glass-border);
    border-radius: var(--tp-radius);
    padding: 6px 0;
    margin: 24px 0;
    overflow: hidden;
}

.tp-sp-tabs-wrap .woocommerce-tabs {
    padding: 0 18px;
}

.tp-sp-tabs-wrap .wc-tabs,
.tp-sp-tabs-wrap ul.wc-tabs {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 0 !important;
    margin: 0 0 16px !important;
    border: 0 !important;
    list-style: none !important;
    background: transparent !important;
}

.tp-sp-tabs-wrap .wc-tabs li {
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(15,23,42,0.04) !important;
    border: 0 !important;
    border-radius: 999px !important;
    transition: background 0.15s ease;
}

.tp-sp-tabs-wrap .wc-tabs li.active {
    background: var(--tp-primary) !important;
}

.tp-sp-tabs-wrap .wc-tabs li a {
    color: var(--tp-text) !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

.tp-sp-tabs-wrap .wc-tabs li.active a { color: #fff !important; }

.tp-sp-tabs-wrap .woocommerce-Tabs-panel {
    padding: 12px 0 18px !important;
}

.tp-sp-related {
    margin-top: 32px;
}

.tp-sp-error {
    text-align: center;
    padding: 80px 20px;
    color: var(--tp-text-muted);
    font-size: 18px;
}


/* ────────────────────────────────────────────────────────
   SHOP ARCHIVE — sidebar filtros + grid
   ──────────────────────────────────────────────────────── */
.tp-sa-page {
    padding: 24px 16px 60px;
    background: var(--tp-bg);
    background-image: var(--tp-bg-gradient);
    min-height: 100vh;
}

.tp-sa-container {
    max-width: 1400px;
    margin: 0 auto;
}

.tp-sa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.tp-sa-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--tp-text);
    letter-spacing: -0.01em;
}

.tp-sa-mobile-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--tp-primary);
    color: #fff;
    border: 0;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 900px) { .tp-sa-mobile-toggle { display: inline-flex; } }

.tp-sa-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.tp-sa-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--tp-glass-bg);
    border: 1px solid var(--tp-glass-border);
    border-radius: 999px;
    color: var(--tp-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease;
}

.tp-sa-chip:hover { background: rgba(220,38,38,0.10); border-color: rgba(220,38,38,0.30); }

.tp-sa-chip-clear {
    font-size: 13px;
    color: var(--tp-primary);
    text-decoration: none;
    align-self: center;
    margin-left: 4px;
    font-weight: 500;
}

.tp-sa-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

@media (max-width: 900px) { .tp-sa-layout { grid-template-columns: 1fr; } }

.tp-sa-sidebar {
    background: var(--tp-glass-bg);
    backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    border: 1px solid var(--tp-glass-border);
    border-radius: var(--tp-radius);
    padding: 18px;
    position: sticky;
    top: 24px;
    align-self: start;
    box-shadow: var(--tp-shadow);
}

@media (max-width: 900px) {
    .tp-sa-sidebar {
        position: fixed;
        top: 0; left: 0;
        height: 100vh; width: 86%;
        max-width: 340px;
        z-index: 99999;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        border-radius: 0 var(--tp-radius) var(--tp-radius) 0;
    }
    .tp-sa-sidebar.is-open { transform: translateX(0); }
}

.tp-sa-filter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tp-sa-search {
    position: relative;
}

.tp-sa-search svg {
    position: absolute;
    top: 50%; left: 12px;
    transform: translateY(-50%);
    color: var(--tp-text-muted);
}

.tp-sa-search input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    border: 1px solid rgba(15,23,42,0.12);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255,255,255,0.6);
    box-sizing: border-box;
}

.tp-sa-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tp-sa-group-title {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--tp-text-muted);
    letter-spacing: 0.06em;
}

.tp-sa-group select,
.tp-sa-price-range input {
    padding: 8px 10px;
    border: 1px solid rgba(15,23,42,0.12);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255,255,255,0.6);
    color: var(--tp-text);
}

.tp-sa-group select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tp-sa-price-range {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
    align-items: center;
}

.tp-sa-price-range span {
    color: var(--tp-text-muted);
    font-size: 14px;
}

.tp-sa-apply {
    background: var(--tp-primary);
    color: #fff;
    border: 0;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-top: 4px;
}

.tp-sa-apply:hover { background: var(--tp-primary-hover); }

.tp-sa-main { min-width: 0; }

.tp-sa-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--tp-text-muted);
    font-size: 16px;
}

/* ────────────────────────────────────────────────────────
   2026-05-25 v2 — Card redesign + autocomplete + sort
   ──────────────────────────────────────────────────────── */

/* Card: chips no thumbnail */
.tp-card-imgwrap {
    position: relative;
}

.tp-card-ref-chip {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 2;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: calc(100% - 90px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-card-stock-chip {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tp-card-stock-chip--in {
    background: rgba(21, 128, 61, 0.92);
    color: #fff;
}

.tp-card-stock-chip--out {
    background: rgba(220, 38, 38, 0.92);
    color: #fff;
}

/* Card body */
.tp-card-refs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0;
    align-items: center;
}

.tp-card-refs-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tp-text-muted);
    padding-right: 4px;
}

.tp-card-ref-pill {
    padding: 2px 7px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--tp-primary);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
}

.tp-card-cond {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(20, 184, 166, 0.10);
    color: #0f766e;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

@media (prefers-color-scheme: dark) {
    .tp-card-ref-pill { background: rgba(96,165,250,0.18); }
    .tp-card-cond { background: rgba(20,184,166,0.18); color: #5eead4; }
}

.tp-card-cta svg { display: inline-block; vertical-align: middle; }
.tp-card-cta { display: inline-flex; align-items: center; gap: 6px; }

/* Archive — sort dropdown */
.tp-sa-header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tp-sa-sort-form {
    display: inline-block;
}

.tp-sa-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tp-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--tp-glass-border);
    padding: 8px 12px 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--tp-text);
    font-weight: 500;
    cursor: pointer;
}

.tp-sa-sort-label svg { color: var(--tp-text-muted); }

.tp-sa-sort-label select {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit !important;
    color: inherit !important;
    font-weight: 600 !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 4px !important;
}

/* Archive — autocomplete refs */
.tp-sa-ac { position: relative; }

.tp-sa-ac-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.12);
    border-radius: 8px;
    box-shadow: 0 12px 32px -10px rgba(0,0,0,0.18);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
}

.tp-sa-ac-item {
    display: block;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(15,23,42,0.06);
    text-decoration: none;
    color: var(--tp-text);
    transition: background 0.1s ease;
}

.tp-sa-ac-item:hover { background: rgba(37,99,235,0.06); }
.tp-sa-ac-item:last-child { border-bottom: 0; }
.tp-sa-ac-item strong {
    font-family: 'SF Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--tp-primary);
}

.tp-sa-ac-meta {
    font-size: 12px;
    color: var(--tp-text-muted);
    margin-top: 2px;
}

.tp-sa-ac-empty {
    padding: 14px;
    color: var(--tp-text-muted);
    font-size: 13px;
    text-align: center;
}

@media (prefers-color-scheme: dark) {
    .tp-sa-ac-results {
        background: #0f1419;
        border-color: rgba(255,255,255,0.10);
    }
}

/* Archive — sidebar improvements */
.tp-sa-divider {
    height: 1px;
    background: rgba(15,23,42,0.08);
    margin: 4px 0;
}

@media (prefers-color-scheme: dark) {
    .tp-sa-divider { background: rgba(255,255,255,0.08); }
}

.tp-sa-close-mobile {
    display: none;
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(15,23,42,0.06);
    color: var(--tp-text);
    border: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .tp-sa-sidebar.is-open .tp-sa-close-mobile { display: inline-flex; }
    body.tp-sa-modal-open { overflow: hidden; }
    .tp-sa-sidebar.is-open::before {
        content: '';
        position: fixed;
        top: 0; left: 100%; width: 100vw; height: 100vh;
        background: rgba(0,0,0,0.5);
    }
}

.tp-sa-reset {
    text-align: center;
    color: var(--tp-text-muted);
    text-decoration: none;
    font-size: 13px;
    padding: 8px;
    margin-top: 4px;
    display: block;
}

.tp-sa-reset:hover { color: var(--tp-primary); }

.tp-sa-no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--tp-text-muted);
    font-size: 16px;
}

.tp-sa-no-results svg {
    color: var(--tp-text-muted);
    opacity: 0.6;
    display: block;
    margin: 0 auto 12px;
}

.tp-sa-no-results span {
    display: block;
    margin-top: 8px;
    font-size: 13px;
}

/* Title font cleanup */
.tp-card-title {
    margin: 4px 0 2px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--tp-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.tp-card-subtitle {
    font-size: 12px;
    color: var(--tp-text-muted);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

/* ════════════════════════════════════════════════════════════
   2026-05-25 v3 — PartCard novo design (refs com count + clean)
   ════════════════════════════════════════════════════════════ */

.tp-storefront-active .tp-pc {
    background: var(--tp-glass-bg);
    backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    border: 1px solid var(--tp-glass-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}

.tp-storefront-active .tp-pc:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -16px rgba(15,23,42,0.18), 0 4px 12px -4px rgba(15,23,42,0.10);
    border-color: rgba(37,99,235,0.30);
}

/* Media — full-bleed image + chips */
.tp-storefront-active .tp-pc-media {
    position: relative;
    display: block;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, rgba(241,245,249,1) 0%, rgba(226,232,240,1) 100%);
    overflow: hidden;
}

@media (prefers-color-scheme: dark) {
    .tp-storefront-active .tp-pc-media {
        background: linear-gradient(135deg, rgba(30,41,59,0.5) 0%, rgba(15,23,42,0.8) 100%);
    }
}

.tp-storefront-active .tp-pc-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.tp-storefront-active .tp-pc-img-2 {
    opacity: 0;
}

.tp-storefront-active .tp-pc:hover .tp-pc-img-1 {
    transform: scale(1.08);
}

.tp-storefront-active .tp-pc:hover .tp-pc-img-2 {
    opacity: 1;
    transform: scale(1.08);
}

/* Chips overlay */
.tp-storefront-active .tp-pc-chips {
    position: absolute;
    top: 12px; left: 12px; right: 12px;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
}

.tp-storefront-active .tp-pc-chips > * { pointer-events: auto; }

.tp-storefront-active .tp-pc-mainref {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    padding: 5px 11px;
    border-radius: 999px;
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.1s ease;
}

.tp-storefront-active .tp-pc-mainref:hover {
    background: var(--tp-primary);
    transform: translateY(-1px);
}

.tp-storefront-active .tp-pc-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
}

.tp-storefront-active .tp-pc-chip-in {
    background: rgba(21, 128, 61, 0.92);
    color: #fff;
}

.tp-storefront-active .tp-pc-chip-out {
    background: rgba(220, 38, 38, 0.92);
    color: #fff;
}

/* #2 Demand badge — "Muita procura" (fogo) */
.tp-storefront-active .tp-pc-chip-demand {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.30) !important;
    box-shadow: 0 4px 10px -4px rgba(249,115,22,0.50) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 10px !important;
    letter-spacing: 0.04em !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* #3 Stock urgency — "Última unidade" com pulse */
.tp-storefront-active .tp-pc-chip-last {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
    box-shadow: 0 0 0 0 rgba(239,68,68,0.6) !important;
    animation: tp-pulse-last 1.8s ease-in-out infinite !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 10px !important;
    letter-spacing: 0.04em !important;
}
@keyframes tp-pulse-last {
    0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.tp-storefront-active .tp-pc-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

/* Body */
.tp-storefront-active .tp-pc-body {
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.tp-storefront-active .tp-pc-veh {
    font-size: 11px;
    font-weight: 600;
    color: var(--tp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-storefront-active .tp-pc-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--tp-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.tp-storefront-active .tp-pc-title a {
    color: inherit;
    text-decoration: none;
}

.tp-storefront-active .tp-pc-title a:hover { color: var(--tp-primary); }

.tp-storefront-active .tp-pc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.tp-storefront-active .tp-pc-cond {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

@media (prefers-color-scheme: dark) {
    .tp-storefront-active .tp-pc-cond { background: rgba(20,184,166,0.20); color: #5eead4; }
}

/* Refs com counts — pills clicáveis */
.tp-storefront-active .tp-pc-refs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.tp-storefront-active .tp-pc-refpill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 4px 3px 8px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--tp-primary);
    border-radius: 6px;
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: background 0.15s ease, transform 0.1s ease;
    max-width: 100%;
}

.tp-storefront-active .tp-pc-refpill:hover {
    background: rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

.tp-storefront-active .tp-pc-refpill-val {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90px;
}

.tp-storefront-active .tp-pc-refpill-count {
    background: var(--tp-primary);
    color: #fff;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    font-family: inherit;
    min-width: 18px;
    text-align: center;
}

@media (prefers-color-scheme: dark) {
    .tp-storefront-active .tp-pc-refpill {
        background: rgba(96,165,250,0.14);
        color: #93c5fd;
    }
    .tp-storefront-active .tp-pc-refpill:hover {
        background: rgba(96,165,250,0.24);
    }
}

/* Footer — price + cart */
.tp-storefront-active .tp-pc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--tp-glass-border);
    margin-top: 4px;
}

.tp-storefront-active .tp-pc-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--tp-text);
    line-height: 1.2;
}

.tp-storefront-active .tp-pc-price .woocommerce-Price-amount,
.tp-storefront-active .tp-pc-price bdi {
    font-weight: 700;
}

.tp-storefront-active .tp-pc-price-na {
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-text-muted);
}

.tp-storefront-active .tp-pc-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tp-primary);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
}

.tp-storefront-active .tp-pc-cart:hover {
    background: var(--tp-primary-hover);
    transform: translateY(-1px);
}

.tp-storefront-active .tp-pc-cart svg { display: block; }

/* Hide legacy parts that we removed (compat-link, ver peça button, ref-copy) */
.tp-storefront-active .tp-pc-compat-link,
.tp-storefront-active .tp-pc-ref-copy,
.tp-storefront-active .tp-pc-btn-primary,
.tp-storefront-active .tp-pc-btn-fav,
.tp-storefront-active .tp-pc-badges,
.tp-storefront-active .tp-pc-cat { display: none !important; }
/* 2026-05-27: REMOVIDO `.tp-pc-fav` desta lista — agora vive dentro do
 * overlay e tem de ser visível. */

/* ════════════════════════════════════════════════════════════
   Sort dropdown custom (substitui native browser select)
   ════════════════════════════════════════════════════════════ */

.tp-sa-sort {
    position: relative;
    display: inline-block;
}

.tp-sa-sort-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tp-glass-bg, rgba(255,255,255,0.7));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--tp-glass-border, rgba(15,23,42,0.12));
    color: var(--tp-text, #0f172a) !important;
    -webkit-text-fill-color: var(--tp-text, #0f172a);
    padding: 8px 14px 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
@media (prefers-color-scheme: dark) {
    .tp-sa-sort-trigger {
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0;
    }
}

.tp-sa-sort-trigger:hover {
    border-color: rgba(37,99,235,0.3);
    background: rgba(37,99,235,0.04);
}

.tp-sa-sort-trigger svg {
    color: var(--tp-text-muted);
    flex-shrink: 0;
}

.tp-sa-sort-current {
    color: var(--tp-text, #0f172a) !important;
    -webkit-text-fill-color: var(--tp-text, #0f172a);
    font-weight: 600;
}
@media (prefers-color-scheme: dark) {
    .tp-sa-sort-current { color: #e2e8f0 !important; -webkit-text-fill-color: #e2e8f0; }
}

.tp-sa-sort-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 4px;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.10);
    border-radius: 12px;
    box-shadow: 0 18px 40px -12px rgba(15,23,42,0.20), 0 4px 12px -4px rgba(15,23,42,0.08);
    z-index: 9999;
    animation: tp-sa-sort-fadein 0.15s ease-out;
}

@media (prefers-color-scheme: dark) {
    .tp-sa-sort-menu {
        background: #0f1419;
        border-color: rgba(255,255,255,0.10);
    }
}

@keyframes tp-sa-sort-fadein {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tp-sa-sort-menu li { padding: 0; margin: 0; list-style: none; }

.tp-sa-sort-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    color: var(--tp-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.1s ease;
}

.tp-sa-sort-item:hover {
    background: rgba(37,99,235,0.08);
    color: var(--tp-primary);
}

.tp-sa-sort-item.is-active {
    background: rgba(37,99,235,0.10);
    color: var(--tp-primary);
    font-weight: 600;
}

.tp-sa-sort-item svg { color: var(--tp-primary); }

/* ════════════════════════════════════════════════════════════
   2026-05-25 v4 — UX polish (user iteration)
   ════════════════════════════════════════════════════════════ */

/* INPUTS: icon não sobrepõe o cursor */
.tp-sa-search { position: relative; }
.tp-sa-search > svg {
    position: absolute;
    top: 50%; left: 12px;
    transform: translateY(-50%);
    color: var(--tp-text-muted);
    pointer-events: none;
}
.tp-sa-search input {
    width: 100%;
    padding: 10px 14px 10px 38px !important;  /* left padding = 38px para deixar espaço ao icon */
    border: 1px solid rgba(15,23,42,0.12);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255,255,255,0.7);
    box-sizing: border-box;
    /* `!important` + `-webkit-text-fill-color` defendem contra resets agressivos
     * do tema Ignavo / WC theme overrides que faziam o texto sair branco em
     * fundo branco (queixa user 2026-05-26). */
    color: var(--tp-text, #0f172a) !important;
    -webkit-text-fill-color: var(--tp-text, #0f172a);
}
.tp-sa-search input::placeholder {
    color: var(--tp-text-muted, #64748b) !important;
    -webkit-text-fill-color: var(--tp-text-muted, #64748b);
    opacity: 1;
}

@media (prefers-color-scheme: dark) {
    .tp-sa-search input {
        background: rgba(20,25,35,0.6);
        border-color: rgba(255,255,255,0.10);
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0;
    }
    .tp-sa-search input::placeholder {
        color: #94a3b8 !important;
        -webkit-text-fill-color: #94a3b8;
    }
}

.tp-sa-search input:focus {
    outline: none;
    border-color: var(--tp-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* Custom selects (replaces native) */
.tp-sa-cs { position: relative; }

.tp-sa-cs-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.12);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--tp-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    text-align: left;
}

@media (prefers-color-scheme: dark) {
    .tp-sa-cs-trigger {
        background: rgba(20,25,35,0.6);
        border-color: rgba(255,255,255,0.10);
    }
}

.tp-sa-cs-trigger:hover { border-color: rgba(37,99,235,0.30); }

.tp-sa-cs-trigger:disabled,
.tp-sa-cs.is-disabled .tp-sa-cs-trigger {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(15,23,42,0.04);
}

.tp-sa-cs-trigger svg { color: var(--tp-text-muted); flex-shrink: 0; }

.tp-sa-cs-current {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--tp-text);
    font-weight: 500;
}

/* Placeholder state (no value picked) — show as muted */
.tp-sa-cs-current:not(.is-selected) {
    color: var(--tp-text-muted);
    font-weight: 400;
}

/* Selected value — bold + primary */
.tp-sa-cs-current.is-selected {
    color: var(--tp-text);
    font-weight: 600;
}

.tp-sa-cs-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    max-height: 280px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 4px;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.10);
    border-radius: 10px;
    box-shadow: 0 18px 40px -12px rgba(15,23,42,0.20);
    z-index: 999;
    animation: tp-sa-cs-fadein 0.15s ease-out;
}

@media (prefers-color-scheme: dark) {
    .tp-sa-cs-menu {
        background: #0f1419;
        border-color: rgba(255,255,255,0.10);
    }
}

@keyframes tp-sa-cs-fadein {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tp-sa-cs-menu li { margin: 0; padding: 0; list-style: none; }

.tp-sa-cs-item {
    display: block;
    padding: 8px 12px;
    color: var(--tp-text);
    font-size: 13px;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.1s ease;
}

.tp-sa-cs-item:hover {
    background: rgba(37,99,235,0.08);
    color: var(--tp-primary);
}

.tp-sa-cs-item.is-active {
    background: rgba(37,99,235,0.12);
    color: var(--tp-primary);
    font-weight: 600;
}

.tp-sa-cs-empty { padding: 12px; color: var(--tp-text-muted); text-align: center; font-size: 13px; }

/* ────────────────────────────────────────────────────────────────────
   Combobox (tp-sa-cb) — 2026-05-26 (UX pedido user)
   O trigger é o input directamente. Foco abre dropdown · escrever filtra.
   Substitui o pattern antigo (botão → popup → search) por uma única caixa.
   ─────────────────────────────────────────────────────────────────── */
.tp-sa-cb {
    position: relative;
    display: block;
}

.tp-sa-cb.is-disabled { opacity: 0.55; pointer-events: none; }

.tp-sa-cb-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.12);
    border-radius: 9px;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.tp-sa-cb.is-open .tp-sa-cb-input-wrap,
.tp-sa-cb-input-wrap:focus-within {
    border-color: var(--tp-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

@media (prefers-color-scheme: dark) {
    .tp-sa-cb-input-wrap {
        background: #0f1419;
        border-color: rgba(255,255,255,0.10);
    }
}

.tp-sa-cb-input {
    flex: 1;
    width: 100%;
    padding: 9px 36px 9px 12px;
    border: 0;
    background: transparent;
    color: var(--tp-text, #0f172a) !important;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
}
.tp-sa-cb-input::placeholder {
    color: var(--tp-text-muted, #64748b) !important;
    font-weight: 400;
    opacity: 1;
}
@media (prefers-color-scheme: dark) {
    .tp-sa-cb-input { color: #e2e8f0 !important; }
    .tp-sa-cb-input::placeholder { color: #94a3b8 !important; }
}
.tp-sa-cb-input:disabled {
    cursor: not-allowed;
    color: var(--tp-text-muted) !important;
}

.tp-sa-cb-clear {
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 4px;
    cursor: pointer;
    color: var(--tp-text-muted, #64748b);
    line-height: 0;
    border-radius: 4px;
    transition: background 0.12s ease, color 0.12s ease;
}
.tp-sa-cb-clear:hover {
    background: rgba(15,23,42,0.08);
    color: var(--tp-text, #0f172a);
}
@media (prefers-color-scheme: dark) {
    .tp-sa-cb-clear:hover { background: rgba(255,255,255,0.08); color: #e2e8f0; }
}

.tp-sa-cb-caret {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tp-text-muted, #64748b);
    pointer-events: none;
    transition: transform 0.18s ease;
}
.tp-sa-cb.is-open .tp-sa-cb-caret {
    transform: translateY(-50%) rotate(180deg);
}

.tp-sa-cb-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 4px;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.10);
    border-radius: 10px;
    box-shadow: 0 18px 40px -12px rgba(15,23,42,0.20);
    z-index: 999;
    animation: tp-sa-cs-fadein 0.15s ease-out;
}
@media (prefers-color-scheme: dark) {
    .tp-sa-cb-menu {
        background: #0f1419;
        border-color: rgba(255,255,255,0.10);
        box-shadow: 0 18px 40px -12px rgba(0,0,0,0.5);
    }
}

.tp-sa-cb-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-sa-cb-item {
    display: block;
    padding: 8px 12px;
    color: var(--tp-text, #0f172a) !important;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.1s ease;
    user-select: none;
}
@media (prefers-color-scheme: dark) {
    .tp-sa-cb-item { color: #e2e8f0 !important; }
}
.tp-sa-cb-item:hover,
.tp-sa-cb-item.is-highlight {
    background: rgba(37,99,235,0.08);
    color: var(--tp-primary, #2563eb) !important;
}
.tp-sa-cb-item.is-active {
    background: rgba(37,99,235,0.12);
    color: var(--tp-primary, #2563eb) !important;
    font-weight: 600;
}
.tp-sa-cb-item mark {
    background: rgba(37,99,235,0.20);
    color: var(--tp-primary, #2563eb);
    padding: 0 1px;
    border-radius: 2px;
    font-weight: 700;
}

.tp-sa-cb-empty {
    padding: 12px;
    color: var(--tp-text-muted, #64748b);
    text-align: center;
    font-size: 13px;
    font-style: italic;
}

/* Override defensivo — alguns themes WC têm reset agressivo em forms */
.tp-vpp .tp-sa-cb-input,
.tp-vpp .tp-sa-cb-item,
.tp-vpp .tp-sa-cb-input::placeholder {
    -webkit-text-fill-color: initial;
}

/* Loading overlay (AJAX filtering) */
.tp-sa-main { position: relative; }

.tp-sa-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    border-radius: 12px;
    animation: tp-sa-fade 0.15s;
}

@media (prefers-color-scheme: dark) {
    .tp-sa-loading-overlay { background: rgba(10,13,18,0.6); }
}

@keyframes tp-sa-fade { from { opacity: 0; } to { opacity: 1; } }

.tp-sa-spinner {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(37,99,235,0.15);
    border-top-color: var(--tp-primary);
    animation: tp-sa-spin 0.7s linear infinite;
}

@keyframes tp-sa-spin { to { transform: rotate(360deg); } }

/* Sidebar head with title */
.tp-sa-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.tp-sa-sidebar-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--tp-text);
}

/* Filter group title */
.tp-sa-group-title {
    display: block;
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tp-text-muted);
}

/* Chips wrap (always rendered for AJAX swap) */
.tp-sa-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    min-height: 0;
}

.tp-sa-chips-wrap:empty { display: none; }

/* ════════════════════════════════════════════════════════════
   PartCard v4 polish — favorites, sold, single-photo, price focus
   ════════════════════════════════════════════════════════════ */

/* Sold card — fundo vermelho claro */
.tp-storefront-active .tp-pc.tp-pc-sold {
    background: rgba(254, 226, 226, 0.6);
    border-color: rgba(220, 38, 38, 0.20);
}

@media (prefers-color-scheme: dark) {
    .tp-storefront-active .tp-pc.tp-pc-sold {
        background: rgba(127, 29, 29, 0.20);
        border-color: rgba(220, 38, 38, 0.30);
    }
}

.tp-storefront-active .tp-pc.tp-pc-sold .tp-pc-img { filter: grayscale(0.3) brightness(0.94); }

/* Single photo: SEM 2ª imagem → não muda no hover (ficheiro deixa estar) */
.tp-storefront-active .tp-pc:hover .tp-pc-img-1 { transform: scale(1.06); }
.tp-storefront-active .tp-pc:not(:has(.tp-pc-img-2)) .tp-pc-img-1 { opacity: 1 !important; }
.tp-storefront-active .tp-pc:hover:not(:has(.tp-pc-img-2)) .tp-pc-img-1 { transform: scale(1.06); opacity: 1; }

/* 2026-05-27 round 12 — REGRA LEGACY do `tp-pc-fav` floating (bottom-right
 * com position:absolute) REMOVIDA. Causa: o botão fav agora vive DENTRO de
 * `.tp-pc-actions-overlay` que é o container que faz o positioning. Esta
 * regra com `position:absolute + bottom:12 + right:12` fazia escapar o
 * botão do overlay flex layout (saltava p/ o body do card, junto ao preço).
 * As regras de styling actuais vivem em conversion.css + no override no fim
 * deste ficheiro (overlay vertical empilhado bottom-right). */

.tp-storefront-active .tp-pc-fav:hover {
    color: #dc2626;
    transform: translateY(-1px) scale(1.05);
}

.tp-storefront-active .tp-pc-fav.is-active {
    color: #dc2626;
    background: rgba(254, 226, 226, 0.95);
}

.tp-storefront-active .tp-pc-fav.is-active svg { fill: currentColor; }

/* Foco no preço (maior + bolder) */
.tp-storefront-active .tp-pc-price,
.tp-storefront-active .tp-pc-price bdi,
.tp-storefront-active .tp-pc-price .woocommerce-Price-amount {
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.15;
    color: var(--tp-text);
    letter-spacing: -0.02em;
}

.tp-storefront-active .tp-pc-price .woocommerce-Price-currencySymbol {
    font-weight: 600;
    font-size: 0.65em;
    margin-left: 1px;
    opacity: 0.7;
}

.tp-storefront-active .tp-pc-price-na {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--tp-text-muted) !important;
    letter-spacing: 0;
}

/* Cart disabled state — quando preço = 0 */
.tp-storefront-active .tp-pc-cart-disabled {
    background: rgba(15,23,42,0.08) !important;
    color: var(--tp-text-muted) !important;
    cursor: not-allowed !important;
    opacity: 0.5;
    pointer-events: none;
}

.tp-storefront-active .tp-pc-cart-disabled:hover { transform: none !important; }

/* ════════════════════════════════════════════════════════════
   Mobile sidebar drawer — animação melhorada
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .tp-sa-sidebar {
        position: fixed;
        top: 0; left: 0;
        height: 100vh; width: 86%;
        max-width: 360px;
        z-index: 99999;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        border-radius: 0 16px 16px 0;
        background: #fff !important;
        box-shadow: 0 0 60px rgba(0,0,0,0.30);
        padding: 18px;
    }
    @media (prefers-color-scheme: dark) {
        .tp-sa-sidebar { background: #0f1419 !important; }
    }
    .tp-sa-sidebar.is-open { transform: translateX(0); }

    /* Backdrop */
    .tp-sa-sidebar::after {
        content: '';
        position: fixed;
        top: 0; left: 100%;
        width: 100vw; height: 100vh;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s;
    }
    .tp-sa-sidebar.is-open::after { opacity: 1; pointer-events: auto; }

    body.tp-sa-modal-open { overflow: hidden; }

    .tp-sa-close-mobile {
        display: inline-flex;
        background: rgba(15,23,42,0.06);
        color: var(--tp-text);
        border: 0;
        width: 32px; height: 32px;
        border-radius: 50%;
        cursor: pointer;
        align-items: center;
        justify-content: center;
    }
}

/* Hide close button on desktop */
@media (min-width: 901px) {
    .tp-sa-close-mobile { display: none !important; }
}

/* ════════════════════════════════════════════════════════════
   2026-05-25 v5 — Single product topbar + actions + lightbox
   ════════════════════════════════════════════════════════════ */

.tp-sp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Breadcrumbs design impactante — pill liquid-glass */
.tp-sp-breadcrumbs {
    flex: 1 1 auto;
    min-width: 0;
}

.tp-sp-bc-list,
.woocommerce-breadcrumb {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 !important;
    padding: 7px 14px !important;
    list-style: none;
    background: var(--tp-glass-bg);
    backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    border: 1px solid var(--tp-glass-border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--tp-text);
    box-shadow: var(--tp-shadow);
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-sp-bc-item,
.woocommerce-breadcrumb a,
.woocommerce-breadcrumb {
    color: var(--tp-text-muted);
    text-decoration: none;
    font-weight: 500;
}

.tp-sp-bc-list .tp-sp-bc-item:last-child {
    color: var(--tp-text);
    font-weight: 600;
}

.tp-sp-bc-arrow {
    color: var(--tp-text-muted);
    opacity: 0.5;
    margin: 0 2px;
    flex-shrink: 0;
}

/* Actions topbar (Share + Fav + Compare) */
.tp-sp-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tp-sp-actbtn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--tp-glass-border);
    background: var(--tp-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    color: var(--tp-text);
}

.tp-sp-actbtn:hover {
    transform: translateY(-1px);
    border-color: rgba(37,99,235,0.3);
}

.tp-sp-actbtn-fav {
    color: #ef4444;
}

.tp-sp-actbtn-fav:hover {
    background: rgba(254,226,226,0.95);
    color: #dc2626;
    border-color: rgba(220,38,38,0.30);
}

.tp-sp-actbtn-fav.is-active svg { fill: currentColor; }

.tp-sp-actbtn-compare {
    color: #f59e0b;
}

.tp-sp-actbtn-compare:hover {
    background: rgba(254,243,199,0.95);
    color: #d97706;
    border-color: rgba(245,158,11,0.30);
}

.tp-sp-actbtn-share {
    color: var(--tp-primary);
}

.tp-sp-actbtn-share:hover {
    background: rgba(219,234,254,0.95);
    color: var(--tp-primary-hover);
    border-color: rgba(37,99,235,0.30);
}

.tp-sp-actbtn-share.is-done {
    background: #15803d !important;
    color: #fff !important;
    border-color: #15803d !important;
}

/* Hide theme's old wishlist/compare buttons in cart-actions (we use action bar) */
.tp-storefront-active body.single-product .cart-actions { display: none !important; }

/* Origin vehicle button — solid dark pill */
.tp-sp-origin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    margin-top: 14px;
    transition: background 0.15s ease, transform 0.1s ease;
}

.tp-sp-origin-link:hover {
    background: var(--tp-primary);
    transform: translateY(-1px);
    color: #fff;
}

.tp-sp-origin-link svg { flex-shrink: 0; }

/* Price split: amount big, IVA label compact */
.tp-storefront-active .tp-sp-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.tp-sp-price-amount,
.tp-sp-price-amount bdi,
.tp-sp-price-amount .woocommerce-Price-amount {
    font-size: 38px !important;
    font-weight: 800;
    color: var(--tp-text);
    letter-spacing: -0.02em;
    line-height: 1;
}

@media (max-width: 540px) {
    .tp-sp-price-amount,
    .tp-sp-price-amount bdi,
    .tp-sp-price-amount .woocommerce-Price-amount { font-size: 30px !important; }
}

.tp-sp-price-tax {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #15803d;
    background: rgba(21,128,61,0.10);
    padding: 3px 8px;
    border-radius: 6px;
}

/* Ref badge clicável */
.tp-storefront-active .tp-sp-badge-ref {
    background: var(--tp-primary);
    color: #fff;
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
}

.tp-storefront-active .tp-sp-badge-ref:hover {
    background: var(--tp-primary-hover);
    transform: translateY(-1px);
}

/* Disabled CTA when price = 0 */
.tp-sp-disabled-cta {
    background: rgba(15,23,42,0.08);
    color: var(--tp-text-muted);
    border: 0;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: not-allowed;
    width: 100%;
}

/* Zoom button overlay on main image */
.tp-sp-main-img-wrap {
    cursor: zoom-in;
    position: relative;
}

.tp-sp-zoom-btn {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(15,23,42,0.78);
    color: #fff;
    border: 0;
    width: 38px; height: 38px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.tp-sp-main-img-wrap:hover .tp-sp-zoom-btn { opacity: 1; }
.tp-sp-zoom-btn:hover { transform: scale(1.06); }

/* LIGHTBOX */
.tp-sp-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tp-sp-lb-fade 0.2s ease-out;
}

@keyframes tp-sp-lb-fade { from { opacity: 0; } to { opacity: 1; } }

body.tp-sp-lb-open { overflow: hidden; }

.tp-sp-lb-img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    user-select: none;
}

.tp-sp-lb-close,
.tp-sp-lb-prev,
.tp-sp-lb-next {
    position: absolute;
    background: rgba(255,255,255,0.10);
    color: #fff;
    border: 0;
    width: 48px; height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.15s ease, transform 0.1s ease;
}

.tp-sp-lb-close { top: 20px; right: 20px; }
.tp-sp-lb-prev  { left: 20px; }
.tp-sp-lb-next  { right: 20px; }

.tp-sp-lb-close:hover,
.tp-sp-lb-prev:hover,
.tp-sp-lb-next:hover { background: rgba(255,255,255,0.20); transform: scale(1.06); }

.tp-sp-lb-counter {
    position: absolute;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ════════════════════════════════════════════════════════════
   Custom select com SEARCH + popup
   ════════════════════════════════════════════════════════════ */

.tp-sa-cs-popup {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.10);
    border-radius: 10px;
    box-shadow: 0 18px 40px -12px rgba(15,23,42,0.20);
    z-index: 999;
    display: flex;
    flex-direction: column;
    max-height: 320px;
    overflow: hidden;
    animation: tp-sa-cs-fadein 0.15s ease-out;
}

@media (prefers-color-scheme: dark) {
    .tp-sa-cs-popup {
        background: #0f1419;
        border-color: rgba(255,255,255,0.10);
    }
}

.tp-sa-cs-search {
    position: relative;
    padding: 6px;
    border-bottom: 1px solid rgba(15,23,42,0.06);
}

.tp-sa-cs-search svg {
    position: absolute;
    top: 50%; left: 16px;
    transform: translateY(-50%);
    color: var(--tp-text-muted);
}

.tp-sa-cs-search input {
    width: 100%;
    padding: 7px 10px 7px 32px;
    border: 1px solid rgba(15,23,42,0.10);
    border-radius: 7px;
    background: rgba(255,255,255,0.6);
    font-size: 13px;
    color: var(--tp-text);
    box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
    .tp-sa-cs-search input {
        background: rgba(20,25,35,0.6);
        border-color: rgba(255,255,255,0.10);
    }
}

.tp-sa-cs-search input:focus {
    outline: none;
    border-color: var(--tp-primary);
    box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

.tp-sa-cs-menu {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 4px;
}

.tp-sa-cs-menu mark {
    background: rgba(37,99,235,0.20);
    color: var(--tp-primary);
    padding: 0 1px;
    border-radius: 2px;
    font-weight: 700;
}

.tp-sa-cs-loading,
.tp-sa-cs-empty {
    padding: 14px;
    color: var(--tp-text-muted);
    font-size: 13px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tp-sa-cs-spinner {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(37,99,235,0.15);
    border-top-color: var(--tp-primary);
    animation: tp-sa-spin 0.7s linear infinite;
    display: inline-block;
}

/* Disabled selects — manter border visível (não rebentar layout) */
.tp-sa-cs.is-disabled .tp-sa-cs-trigger {
    opacity: 0.55;
    background: rgba(15,23,42,0.04);
    border: 1px solid rgba(15,23,42,0.12);
    cursor: not-allowed;
}

@media (prefers-color-scheme: dark) {
    .tp-sa-cs.is-disabled .tp-sa-cs-trigger {
        background: rgba(255,255,255,0.04);
        border-color: rgba(255,255,255,0.10);
    }
}

/* ════════════════════════════════════════════════════════════
   2026-05-25 v6 — Cards uniformes + botão CTA wide com label
   ════════════════════════════════════════════════════════════ */

/* Cards mesma altura — todos no grid */
.tp-storefront-active .products {
    grid-auto-rows: 1fr !important;
}

.tp-storefront-active .tp-pc {
    height: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

/* Body cresce, footer fica em baixo */
.tp-storefront-active .tp-pc-body {
    flex: 1;
}

/* Refs section — limit visible height para uniformidade */
.tp-storefront-active .tp-pc-refs {
    max-height: 60px;
    overflow: hidden;
}

/* Footer — cart à esquerda (wide com label), preço à direita */
.tp-storefront-active .tp-pc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--tp-glass-border);
}

.tp-storefront-active .tp-pc-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tp-primary);
    color: #fff;
    border: 0;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.01em;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    width: auto;
    height: auto;
    cursor: pointer;
    box-shadow: 0 4px 12px -4px rgba(37,99,235,0.40);
    white-space: nowrap;
}

.tp-storefront-active .tp-pc-cart svg {
    flex-shrink: 0;
}

.tp-storefront-active .tp-pc-cart span {
    font-weight: 700;
    line-height: 1;
}

.tp-storefront-active .tp-pc-cart:hover {
    background: var(--tp-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -4px rgba(37,99,235,0.50);
}

/* WhatsApp variant (sob consulta) */
.tp-storefront-active .tp-pc-cart-whatsapp {
    background: #25D366;
    box-shadow: 0 4px 12px -4px rgba(37,211,102,0.40);
}

.tp-storefront-active .tp-pc-cart-whatsapp:hover {
    background: #1ebd5a;
    box-shadow: 0 6px 16px -4px rgba(37,211,102,0.50);
}

.tp-storefront-active .tp-pc-cart-info {
    background: #475569;
    box-shadow: 0 4px 12px -4px rgba(71,85,105,0.40);
}

.tp-storefront-active .tp-pc-cart-info:hover {
    background: #334155;
}

/* Disabled (vendido) */
.tp-storefront-active .tp-pc-cart-disabled {
    background: rgba(15,23,42,0.10) !important;
    color: var(--tp-text-muted) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

.tp-storefront-active .tp-pc-cart-disabled:hover {
    transform: none !important;
    background: rgba(15,23,42,0.10) !important;
    box-shadow: none !important;
}

/* Preço à direita */
.tp-storefront-active .tp-pc-price {
    margin-left: auto;
    text-align: right;
    font-size: 19px;
    font-weight: 800;
    color: var(--tp-text);
    letter-spacing: -0.02em;
    line-height: 1.15;
    flex-shrink: 0;
}

.tp-storefront-active .tp-pc-price bdi,
.tp-storefront-active .tp-pc-price .woocommerce-Price-amount {
    font-size: inherit !important;
    font-weight: inherit !important;
}

.tp-storefront-active .tp-pc-price .woocommerce-Price-currencySymbol {
    font-weight: 600;
    font-size: 0.65em;
    opacity: 0.7;
    margin-left: 1px;
}

.tp-storefront-active .tp-pc-price-na {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--tp-text-muted) !important;
    margin-left: auto;
}

/* Mobile: cards menores, botão mais compacto */
@media (max-width: 540px) {
    .tp-storefront-active .tp-pc { min-height: 380px; }
    .tp-storefront-active .tp-pc-cart { padding: 7px 12px; font-size: 12px; }
    .tp-storefront-active .tp-pc-cart span { display: none; }
    .tp-storefront-active .tp-pc-cart { padding: 8px 10px; }
    .tp-storefront-active .tp-pc-cart svg { width: 18px; height: 18px; }
}

/* ════════════════════════════════════════════════════════════
   2026-05-25 v7 — Garage module + Empty state + Viaturas redesign
   ════════════════════════════════════════════════════════════ */

/* MÓDULO GARAGEM */
.tp-garage {
    background: linear-gradient(135deg, rgba(37,99,235,0.05) 0%, rgba(99,102,241,0.05) 100%);
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
}

@media (prefers-color-scheme: dark) {
    .tp-garage {
        background: linear-gradient(135deg, rgba(96,165,250,0.10) 0%, rgba(129,140,248,0.08) 100%);
        border-color: rgba(96,165,250,0.20);
    }
}

.tp-garage-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.tp-garage-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--tp-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tp-garage-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--tp-text);
}

.tp-garage-subtitle {
    font-size: 11px;
    color: var(--tp-text-muted);
    font-weight: 500;
}

.tp-garage-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tp-garage-item {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.10);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.1s ease;
}

@media (prefers-color-scheme: dark) {
    .tp-garage-item {
        background: rgba(20,25,35,0.6);
        border-color: rgba(255,255,255,0.10);
    }
}

.tp-garage-item:hover { border-color: var(--tp-primary); transform: translateY(-1px); }

.tp-garage-item.is-active {
    background: var(--tp-primary);
    color: #fff;
    border-color: var(--tp-primary);
}

.tp-garage-item.is-active .tp-garage-vehicle-info strong,
.tp-garage-item.is-active .tp-garage-vehicle-info span,
.tp-garage-item.is-active .tp-garage-remove { color: #fff; }

.tp-garage-vehicle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.tp-garage-vehicle-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tp-garage-vehicle-info strong { font-size: 13px; font-weight: 600; color: var(--tp-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-garage-vehicle-info span { font-size: 11px; color: var(--tp-text-muted); }

.tp-garage-check { color: #fff; flex-shrink: 0; }

.tp-garage-remove {
    width: 32px;
    border: 0;
    border-left: 1px solid rgba(15,23,42,0.08);
    background: transparent;
    color: var(--tp-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background 0.15s ease;
}

.tp-garage-remove:hover { color: #dc2626; background: rgba(254,226,226,0.5); }

.tp-garage-empty {
    list-style: none;
    color: var(--tp-text-muted);
    font-size: 12px;
    text-align: center;
    padding: 10px 4px;
    font-style: italic;
}

.tp-garage-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 12px;
    background: rgba(37,99,235,0.10);
    color: var(--tp-primary);
    border: 1px dashed var(--tp-primary);
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.tp-garage-add:hover { background: var(--tp-primary); color: #fff; transform: translateY(-1px); }

/* MODAL "Adicionar viatura" */
.tp-garage-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tp-garage-modal-in 0.2s ease-out;
}

.tp-garage-modal.is-closing { animation: tp-garage-modal-out 0.2s ease-in; }

@keyframes tp-garage-modal-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes tp-garage-modal-out { from { opacity: 1; } to { opacity: 0; } }

.tp-garage-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.tp-garage-modal-card {
    position: relative;
    width: 92%;
    max-width: 460px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.40);
    overflow: hidden;
    z-index: 1;
    animation: tp-garage-card-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    .tp-garage-modal-card { background: #0f1419; }
}

@keyframes tp-garage-card-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.tp-garage-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 8px;
}

.tp-garage-modal-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--tp-text);
}

.tp-garage-modal-close {
    background: rgba(15,23,42,0.06);
    border: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--tp-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tp-garage-modal-help {
    margin: 0;
    padding: 0 20px;
    color: var(--tp-text-muted);
    font-size: 13px;
}

.tp-garage-modal-fields {
    padding: 18px 20px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tp-garage-modal-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--tp-text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tp-req { color: #dc2626; }

.tp-cs-error .tp-sa-cs-trigger { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220,38,38,0.15); }

.tp-garage-modal-save {
    width: 100%;
    background: var(--tp-primary);
    color: #fff;
    border: 0;
    padding: 12px 18px;
    margin: 12px 20px 20px;
    width: calc(100% - 40px);
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 14px -4px rgba(37,99,235,0.45);
    transition: background 0.15s ease, transform 0.1s ease;
}

.tp-garage-modal-save:hover { background: var(--tp-primary-hover); transform: translateY(-1px); }

/* ════════════════════════════════════════════════════════════
   EMPTY STATE — CTA "Pedir peça"
   ════════════════════════════════════════════════════════════ */

.tp-sa-empty {
    background: var(--tp-glass-bg);
    backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    border: 1px solid var(--tp-glass-border);
    border-radius: 18px;
    padding: 36px 28px;
    text-align: center;
    max-width: 640px;
    margin: 30px auto;
}

.tp-sa-empty-icon {
    width: 84px; height: 84px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(99,102,241,0.10));
    color: var(--tp-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tp-sa-empty-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--tp-text);
    letter-spacing: -0.01em;
}

.tp-sa-empty-text {
    margin: 0 0 22px;
    color: var(--tp-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.tp-sa-empty-form {
    text-align: left;
    margin-top: 18px;
}

.tp-sa-empty-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

@media (max-width: 540px) { .tp-sa-empty-fields { grid-template-columns: 1fr; } }

.tp-sa-empty-form input,
.tp-sa-empty-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(15,23,42,0.12);
    border-radius: 10px;
    background: rgba(255,255,255,0.6);
    font-size: 14px;
    color: var(--tp-text);
    box-sizing: border-box;
    font-family: inherit;
}

.tp-sa-empty-form input:focus,
.tp-sa-empty-form textarea:focus {
    outline: none;
    border-color: var(--tp-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.tp-sa-empty-form textarea {
    margin-bottom: 14px;
    resize: vertical;
    min-height: 80px;
}

.tp-sa-empty-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.tp-sa-empty-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tp-primary);
    color: #fff;
    border: 0;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 14px -4px rgba(37,99,235,0.45);
    transition: background 0.15s ease, transform 0.1s ease;
}

.tp-sa-empty-submit:hover:not(:disabled) {
    background: var(--tp-primary-hover);
    transform: translateY(-1px);
}

.tp-sa-empty-submit:disabled { opacity: 0.6; cursor: wait; }

.tp-sa-empty-status { font-size: 13px; }
.tp-sa-empty-status.is-loading { color: var(--tp-text-muted); }
.tp-sa-empty-status.is-success { color: #15803d; font-weight: 600; }
.tp-sa-empty-status.is-error   { color: #b91c1c; font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   VIATURAS PARA PEÇAS — novo layout (estilo shop archive)
   ════════════════════════════════════════════════════════════ */

.tp-vpp {
    max-width: 1400px;
    /* Padding lateral generoso para o conteúdo não estar colado às bordas
     * (queixa user 2026-05-26: "afastar das bordas conteudo e titulo"). */
    margin: 40px auto 80px;
    padding: 0 40px;
}
@media (max-width: 768px) {
    .tp-vpp {
        margin: 24px auto 60px;
        padding: 0 20px;
    }
}

.tp-vpp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.tp-vpp-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--tp-text);
    letter-spacing: -0.01em;
}

.tp-vpp-header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tp-vpp-mobile-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--tp-primary);
    color: #fff;
    border: 0;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 900px) { .tp-vpp-mobile-toggle { display: inline-flex; } }

.tp-vpp-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}
.tp-vpp-chips-wrap:empty { display: none; }

.tp-vpp-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

@media (max-width: 900px) { .tp-vpp-layout { grid-template-columns: 1fr; } }

.tp-vpp-sidebar {
    background: var(--tp-glass-bg);
    backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    border: 1px solid var(--tp-glass-border);
    border-radius: 14px;
    padding: 18px;
    position: sticky;
    top: 24px;
    align-self: start;
    box-shadow: var(--tp-shadow);
}

@media (max-width: 900px) {
    .tp-vpp-sidebar {
        position: fixed;
        top: 0; left: 0;
        height: 100vh; width: 86%;
        max-width: 360px;
        z-index: 99999;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        border-radius: 0 16px 16px 0;
        box-shadow: 0 0 60px rgba(0,0,0,0.30);
    }
    .tp-vpp-sidebar.is-open { transform: translateX(0); }
}

.tp-vpp-main { min-width: 0; position: relative; }

.tp-vpp-results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.tp-vpp-count {
    color: var(--tp-text-muted);
    font-size: 14px;
    font-weight: 500;
}

.tp-vpp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    grid-auto-rows: 1fr;
}

.tp-vpp-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.tp-vpp-grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1100px) { .tp-vpp-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 800px)  { .tp-vpp-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 500px)  { .tp-vpp-grid { grid-template-columns: 1fr !important; } }

.tp-vpp-card {
    background: var(--tp-glass-bg);
    backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    border: 1px solid var(--tp-glass-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    height: 100%;
}

.tp-vpp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -16px rgba(15,23,42,0.18), 0 4px 12px -4px rgba(15,23,42,0.10);
    border-color: rgba(37,99,235,0.30);
}

.tp-vpp-card-media {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(241,245,249,1) 0%, rgba(226,232,240,1) 100%);
    overflow: hidden;
}

@media (prefers-color-scheme: dark) {
    .tp-vpp-card-media {
        background: linear-gradient(135deg, rgba(30,41,59,0.5) 0%, rgba(15,23,42,0.8) 100%);
    }
}

.tp-vpp-card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tp-vpp-card:hover .tp-vpp-card-media img { transform: scale(1.06); }

.tp-vpp-card-no-img {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15,23,42,0.20);
}

.tp-vpp-card-year {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(15,23,42,0.88);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tp-vpp-card-parts {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(20,184,166,0.92);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tp-vpp-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.tp-vpp-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--tp-text);
    line-height: 1.3;
}

.tp-vpp-card-title a { color: inherit; text-decoration: none; }
.tp-vpp-card-title a:hover { color: var(--tp-primary); }

.tp-vpp-card-variant {
    font-size: 12px;
    color: var(--tp-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.tp-vpp-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    color: var(--tp-text-muted);
    margin-bottom: 10px;
}

.tp-vpp-card-meta span {
    padding: 3px 8px;
    background: rgba(15,23,42,0.06);
    border-radius: 6px;
    font-weight: 500;
}

@media (prefers-color-scheme: dark) {
    .tp-vpp-card-meta span { background: rgba(255,255,255,0.06); }
}

.tp-vpp-card-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
}

.tp-vpp-card-btn {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
}

.tp-vpp-card-btn-primary {
    background: #0f172a;
    color: #fff;
}

.tp-vpp-card-btn-primary:hover { background: var(--tp-primary); transform: translateY(-1px); color: #fff; }

.tp-vpp-card-btn-secondary {
    background: rgba(20,184,166,0.12);
    color: #0f766e;
}

@media (prefers-color-scheme: dark) {
    .tp-vpp-card-btn-secondary { background: rgba(20,184,166,0.18); color: #5eead4; }
}

.tp-vpp-card-btn-secondary:hover { background: rgba(20,184,166,0.20); transform: translateY(-1px); color: #0f766e; }

/* ════════════════════════════════════════════════════════════
   2026-05-25 v8 — #11 Spec Highlights + Tabs liquid-glass
   ════════════════════════════════════════════════════════════ */

/* SPEC HIGHLIGHTS — chips coloridos com ícone + label + value */
.tp-sp-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 24px 0 28px;
}

.tp-sp-hl {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--tp-glass-bg);
    backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    border: 1px solid var(--tp-glass-border);
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tp-sp-hl:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(15,23,42,0.12);
}

.tp-sp-hl-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tp-sp-hl-body { min-width: 0; flex: 1; }

.tp-sp-hl-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tp-text-muted);
    line-height: 1;
    margin-bottom: 3px;
}

.tp-sp-hl-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--tp-text);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tints — cada cor com um gradient distinto */
.tp-sp-hl-blue   .tp-sp-hl-icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.tp-sp-hl-amber  .tp-sp-hl-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }
.tp-sp-hl-green  .tp-sp-hl-icon { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #047857; }
.tp-sp-hl-red    .tp-sp-hl-icon { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #b91c1c; }
.tp-sp-hl-purple .tp-sp-hl-icon { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #6d28d9; }
.tp-sp-hl-teal   .tp-sp-hl-icon { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #0f766e; }
.tp-sp-hl-gray   .tp-sp-hl-icon { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: #475569; }

@media (prefers-color-scheme: dark) {
    .tp-sp-hl-blue   .tp-sp-hl-icon { background: linear-gradient(135deg, rgba(96,165,250,0.20), rgba(37,99,235,0.15)); color: #93c5fd; }
    .tp-sp-hl-amber  .tp-sp-hl-icon { background: linear-gradient(135deg, rgba(251,191,36,0.20), rgba(245,158,11,0.15)); color: #fcd34d; }
    .tp-sp-hl-green  .tp-sp-hl-icon { background: linear-gradient(135deg, rgba(52,211,153,0.20), rgba(16,185,129,0.15)); color: #6ee7b7; }
    .tp-sp-hl-red    .tp-sp-hl-icon { background: linear-gradient(135deg, rgba(248,113,113,0.20), rgba(220,38,38,0.15)); color: #fca5a5; }
    .tp-sp-hl-purple .tp-sp-hl-icon { background: linear-gradient(135deg, rgba(167,139,250,0.20), rgba(124,58,237,0.15)); color: #c4b5fd; }
    .tp-sp-hl-teal   .tp-sp-hl-icon { background: linear-gradient(135deg, rgba(45,212,191,0.20), rgba(20,184,166,0.15)); color: #5eead4; }
    .tp-sp-hl-gray   .tp-sp-hl-icon { background: linear-gradient(135deg, rgba(148,163,184,0.20), rgba(100,116,139,0.15)); color: #cbd5e1; }
}

/* ════════════════════════════════════════════════════════════
   TABS LIQUID-GLASS — pill style
   ════════════════════════════════════════════════════════════ */

.tp-storefront-active .tp-sp-tabs-wrap {
    margin: 28px 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Nav: row de pills com scroll-snap em mobile */
.tp-sp-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px;
    background: var(--tp-glass-bg);
    backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    border: 1px solid var(--tp-glass-border);
    border-radius: 999px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tp-sp-tabs-nav::-webkit-scrollbar { display: none; }

.tp-sp-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 0;
    background: transparent;
    color: var(--tp-text-muted);
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.tp-sp-tab:hover {
    background: rgba(37,99,235,0.06);
    color: var(--tp-text);
}

.tp-sp-tab.is-active {
    background: var(--tp-primary);
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(37,99,235,0.50);
}

.tp-sp-tab svg { flex-shrink: 0; }

.tp-sp-tabs-content { position: relative; }

.tp-sp-tab-panel {
    display: none;
    background: var(--tp-glass-bg);
    backdrop-filter: blur(var(--tp-glass-blur-strong, 20px)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--tp-glass-blur-strong, 20px)) saturate(160%);
    border: 1px solid var(--tp-glass-border);
    border-radius: 16px;
    padding: 24px;
    animation: tp-sp-tab-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 540px) { .tp-sp-tab-panel { padding: 16px; } }

.tp-sp-tab-panel.is-active { display: block; }

@keyframes tp-sp-tab-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Spec tables — improve density e legibilidade dentro dos panels */
.tp-sp-tab-panel .tp-specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.tp-sp-tab-panel .tp-specs-table tr {
    transition: background 0.1s ease;
}

.tp-sp-tab-panel .tp-specs-table tr:hover {
    background: rgba(37,99,235,0.04);
}

.tp-sp-tab-panel .tp-specs-table th,
.tp-sp-tab-panel .tp-specs-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(15,23,42,0.06);
    text-align: left;
}

.tp-sp-tab-panel .tp-specs-table th {
    color: var(--tp-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: 40%;
}

.tp-sp-tab-panel .tp-specs-table td {
    color: var(--tp-text);
    font-size: 14px;
    font-weight: 500;
}

@media (prefers-color-scheme: dark) {
    .tp-sp-tab-panel .tp-specs-table th,
    .tp-sp-tab-panel .tp-specs-table td { border-bottom-color: rgba(255,255,255,0.06); }
}

.tp-sp-tab-panel h4 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--tp-text);
}

.tp-sp-tab-panel .tp-td-section + .tp-td-section { margin-top: 24px; }

.tp-sp-tab-panel .tp-td-na {
    color: var(--tp-text-muted);
    font-style: italic;
    font-size: 13px;
}

/* References table */
.tp-sp-tab-panel .tp-refs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(37,99,235,0.04);
    border-radius: 10px;
    overflow: hidden;
}

.tp-sp-tab-panel .tp-refs-table thead th {
    background: rgba(37,99,235,0.08);
    color: var(--tp-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 14px;
}

.tp-sp-tab-panel .tp-refs-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(15,23,42,0.06);
}

.tp-sp-tab-panel .tp-td-code {
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-primary);
    background: rgba(37,99,235,0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ════════════════════════════════════════════════════════════
   2026-05-25 v9 — Breadcrumbs fix + Actions icons reinforced
   ════════════════════════════════════════════════════════════ */

/* Reset list styles forçado (theme override do tema injecta <ul><li>) */
.tp-storefront-active .tp-sp-bc-list,
.tp-storefront-active .tp-sp-bc-list ul,
.tp-storefront-active .tp-sp-bc-list ol {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tp-storefront-active .tp-sp-bc-item {
    display: inline-flex !important;
    align-items: center;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--tp-text-muted);
    font-size: 13px;
    font-weight: 500;
}

.tp-storefront-active .tp-sp-bc-item a {
    color: var(--tp-text-muted);
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.tp-storefront-active .tp-sp-bc-item a:hover {
    color: var(--tp-primary);
    background: rgba(37,99,235,0.06);
}

.tp-storefront-active .tp-sp-bc-current,
.tp-storefront-active .tp-sp-bc-list li:last-child {
    color: var(--tp-text);
    font-weight: 600;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-storefront-active .tp-sp-bc-arrow {
    color: var(--tp-text-muted);
    opacity: 0.45;
    flex-shrink: 0;
}

/* Action buttons icons — força currentColor inheritance e visibilidade */
.tp-storefront-active .tp-sp-actbtn {
    color: var(--tp-text) !important;
}

.tp-storefront-active .tp-sp-actbtn svg {
    color: inherit !important;
    stroke: currentColor !important;
}

.tp-storefront-active .tp-sp-actbtn svg path,
.tp-storefront-active .tp-sp-actbtn svg line,
.tp-storefront-active .tp-sp-actbtn svg polyline,
.tp-storefront-active .tp-sp-actbtn svg polygon,
.tp-storefront-active .tp-sp-actbtn svg circle {
    stroke: currentColor;
}

.tp-storefront-active .tp-sp-actbtn-fav     { color: #ef4444 !important; }
.tp-storefront-active .tp-sp-actbtn-compare { color: #f59e0b !important; }
.tp-storefront-active .tp-sp-actbtn-share   { color: var(--tp-primary) !important; }

/* ════════════════════════════════════════════════════════════
   2026-05-25 v10 — Accordion progressive disclosure (Opção D)
   ════════════════════════════════════════════════════════════ */

.tp-sp-acc-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 28px 0;
}

.tp-sp-acc-item {
    background: var(--tp-glass-bg);
    backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--tp-glass-blur)) saturate(140%);
    border: 1px solid var(--tp-glass-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tp-sp-acc-item.is-open {
    border-color: rgba(37,99,235,0.30);
    box-shadow: 0 4px 20px -10px rgba(37,99,235,0.20);
}

/* Header */
.tp-sp-acc-head {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.tp-sp-acc-head:hover { background: rgba(37,99,235,0.04); }

.tp-sp-acc-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(37,99,235,0.08);
    color: var(--tp-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tp-sp-acc-item.is-open .tp-sp-acc-icon {
    background: var(--tp-primary);
    color: #fff;
    transform: scale(1.04);
}

@media (prefers-color-scheme: dark) {
    .tp-sp-acc-icon { background: rgba(96,165,250,0.16); color: #93c5fd; }
}

.tp-sp-acc-title {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: var(--tp-text);
    letter-spacing: -0.01em;
}

.tp-sp-acc-chevron {
    color: var(--tp-text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
    flex-shrink: 0;
}

.tp-sp-acc-item.is-open .tp-sp-acc-chevron {
    transform: rotate(180deg);
    color: var(--tp-primary);
}

/* Body — animação smooth via max-height */
.tp-sp-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tp-sp-acc-item.is-open .tp-sp-acc-body {
    /* JS aplica max-height: scrollHeight depois 'none' */
}

.tp-sp-acc-content {
    padding: 4px 20px 22px;
    animation: tp-sp-acc-fade 0.3s ease-out 0.05s both;
}

@keyframes tp-sp-acc-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 540px) {
    .tp-sp-acc-head { padding: 14px 16px; }
    .tp-sp-acc-content { padding: 4px 16px 18px; }
    .tp-sp-acc-icon { width: 32px; height: 32px; }
    .tp-sp-acc-title { font-size: 14px; }
}

/* Tables dentro do accordion mantêm o estilo dos tab panels antigos */
.tp-sp-acc-content .tp-specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.tp-sp-acc-content .tp-specs-table tr {
    transition: background 0.1s ease;
}

.tp-sp-acc-content .tp-specs-table tr:hover {
    background: rgba(37,99,235,0.04);
}

.tp-sp-acc-content .tp-specs-table th,
.tp-sp-acc-content .tp-specs-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(15,23,42,0.06);
    text-align: left;
}

.tp-sp-acc-content .tp-specs-table th {
    color: var(--tp-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: 40%;
}

.tp-sp-acc-content .tp-specs-table td {
    color: var(--tp-text);
    font-size: 14px;
    font-weight: 500;
}

@media (prefers-color-scheme: dark) {
    .tp-sp-acc-content .tp-specs-table th,
    .tp-sp-acc-content .tp-specs-table td { border-bottom-color: rgba(255,255,255,0.06); }
}

.tp-sp-acc-content h4 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--tp-text);
}

.tp-sp-acc-content .tp-td-na {
    color: var(--tp-text-muted);
    font-style: italic;
    font-size: 13px;
}

.tp-sp-acc-content .tp-refs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(37,99,235,0.04);
    border-radius: 10px;
    overflow: hidden;
}

.tp-sp-acc-content .tp-refs-table thead th {
    background: rgba(37,99,235,0.08);
    color: var(--tp-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 14px;
}

.tp-sp-acc-content .tp-refs-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(15,23,42,0.06);
}

.tp-sp-acc-content .tp-td-code {
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-primary);
    background: rgba(37,99,235,0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Esconde tabs antigas (caso ainda rendam em outro lado) */
.tp-storefront-active .tp-sp-tabs-wrap[data-tp-tabs] { display: none !important; }

/* ════════════════════════════════════════════════════════════
   2026-05-25 v11 — PLANO GLOBAL DE DESIGN
   Paleta refinada · Typography rhythm · Spacing · Dark polish
   ════════════════════════════════════════════════════════════ */

/* OVERRIDE de tokens base (light) — paleta refinada */
.tp-storefront-active {
    --tp-primary: #3b82f6;          /* azul mais vivo */
    --tp-primary-hover: #2563eb;
    --tp-primary-soft: rgba(59,130,246,0.10);
    --tp-accent: #06b6d4;            /* cyan accent */
    --tp-accent-soft: rgba(6,182,212,0.10);
    --tp-success: #10b981;
    --tp-success-soft: rgba(16,185,129,0.12);
    --tp-warning: #f59e0b;
    --tp-warning-soft: rgba(245,158,11,0.12);
    --tp-danger: #ef4444;
    --tp-danger-soft: rgba(239,68,68,0.10);

    /* glass blur strengthened */
    --tp-glass-blur: 16px;
    --tp-glass-blur-strong: 22px;

    /* spacing rhythm */
    --tp-space-xs: 4px;
    --tp-space-sm: 8px;
    --tp-space-md: 16px;
    --tp-space-lg: 24px;
    --tp-space-xl: 40px;
    --tp-space-2xl: 60px;
}

/* Dark mode override — backgrounds com radial gradients + saturação maior */
@media (prefers-color-scheme: dark) {
    .tp-storefront-active {
        --tp-primary: #60a5fa;
        --tp-primary-hover: #93c5fd;
        --tp-primary-soft: rgba(96,165,250,0.16);
        --tp-accent: #22d3ee;
        --tp-bg-gradient:
            radial-gradient(at 0% 0%,   rgba(59,130,246,0.10) 0px, transparent 50%),
            radial-gradient(at 100% 0%, rgba(6,182,212,0.08) 0px, transparent 50%),
            radial-gradient(at 50% 100%, rgba(16,185,129,0.05) 0px, transparent 50%);
        --tp-glass-bg: rgba(20,25,35,0.45);
        --tp-glass-border: rgba(255,255,255,0.07);
    }
}

/* Cards/panels ganham inset glow (subtil edge highlight) */
.tp-storefront-active .tp-pc,
.tp-storefront-active .tp-vpp-card,
.tp-storefront-active .tp-sp-info-card,
.tp-storefront-active .tp-sp-acc-item,
.tp-storefront-active .tp-sp-hl,
.tp-storefront-active .tp-sa-sidebar,
.tp-storefront-active .tp-vpp-sidebar {
    box-shadow:
        0 1px 3px rgba(15,23,42,0.04),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

@media (prefers-color-scheme: dark) {
    .tp-storefront-active .tp-pc,
    .tp-storefront-active .tp-vpp-card,
    .tp-storefront-active .tp-sp-info-card,
    .tp-storefront-active .tp-sp-acc-item,
    .tp-storefront-active .tp-sp-hl,
    .tp-storefront-active .tp-sa-sidebar,
    .tp-storefront-active .tp-vpp-sidebar {
        box-shadow:
            0 1px 3px rgba(0,0,0,0.30),
            inset 0 1px 0 rgba(255,255,255,0.06);
    }
}

/* Typography rhythm — title clamp + monospace para prices */
.tp-storefront-active .tp-sp-title {
    font-size: clamp(22px, 4vw, 32px);
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-weight: 800;
}

.tp-storefront-active .tp-sp-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 12px;
    font-weight: 600;
    color: var(--tp-text-muted);
}

/* Prices — tabular nums + variant features */
.tp-storefront-active .tp-pc-price,
.tp-storefront-active .tp-pc-price bdi,
.tp-storefront-active .tp-pc-price .woocommerce-Price-amount,
.tp-storefront-active .tp-sp-price,
.tp-storefront-active .tp-sp-price-amount,
.tp-storefront-active .tp-sp-price-amount bdi {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}

/* Refs (monospace) — slashed zero quando disponível */
.tp-storefront-active .tp-pc-mainref,
.tp-storefront-active .tp-pc-refpill,
.tp-storefront-active .tp-sp-badge-ref,
.tp-storefront-active .tp-td-code {
    font-feature-settings: 'tnum', 'zero';
}

/* Spacing rhythm — increase main page padding */
.tp-storefront-active .tp-sp-page,
.tp-storefront-active .tp-sa-page,
.tp-storefront-active .tp-vpp {
    padding-bottom: var(--tp-space-2xl);
}

.tp-storefront-active .tp-sp-grid {
    gap: var(--tp-space-xl);
    margin-bottom: var(--tp-space-xl);
}

.tp-storefront-active .tp-sp-highlights {
    margin: var(--tp-space-lg) 0 var(--tp-space-xl);
    gap: 12px;
}

.tp-storefront-active .tp-sp-acc-wrap {
    margin: var(--tp-space-xl) 0;
}

.tp-storefront-active .tp-sp-related {
    margin-top: var(--tp-space-2xl);
    padding-top: var(--tp-space-xl);
    border-top: 1px solid var(--tp-glass-border);
}

/* Acc-content paragraphs com line-height generoso */
.tp-storefront-active .tp-sp-acc-content,
.tp-storefront-active .tp-sp-acc-content p {
    line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════
   Vehicle page — substituir cart vazio por CTA "Ver peças"
   ════════════════════════════════════════════════════════════ */
.tp-sp-vehicle-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.tp-sp-vehicle-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-accent));
    color: #fff;
    border: 0;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 8px 24px -8px rgba(59,130,246,0.50);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.tp-sp-vehicle-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -8px rgba(59,130,246,0.65);
    filter: brightness(1.05);
    color: #fff;
}

.tp-sp-vehicle-cta-primary svg { flex-shrink: 0; }

.tp-sp-vehicle-perks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: var(--tp-space-md);
}

@media (max-width: 540px) {
    .tp-sp-vehicle-perks-grid { grid-template-columns: 1fr; }
}

.tp-sp-vehicle-perk {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--tp-accent-soft);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tp-text);
}

.tp-sp-vehicle-perk svg { color: var(--tp-accent); flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS — feedback global
   ════════════════════════════════════════════════════════════ */
.tp-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

@media (max-width: 540px) {
    .tp-toast-container { left: 20px; right: 20px; bottom: 80px; }
}

.tp-toast {
    background: rgba(15,23,42,0.96);
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 12px 32px -8px rgba(0,0,0,0.4);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: tp-toast-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 360px;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.tp-toast.tp-toast-success { background: linear-gradient(135deg, #10b981, #059669); }
.tp-toast.tp-toast-error   { background: linear-gradient(135deg, #ef4444, #dc2626); }
.tp-toast.tp-toast-info    { background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-hover)); }

.tp-toast.is-closing { animation: tp-toast-out 0.25s ease-in forwards; }

@keyframes tp-toast-in  { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes tp-toast-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(10px); } }

.tp-toast svg { flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   SKELETON LOADING — para AJAX swaps no shop
   ════════════════════════════════════════════════════════════ */
.tp-skeleton {
    background: linear-gradient(90deg, rgba(15,23,42,0.06) 0%, rgba(15,23,42,0.12) 50%, rgba(15,23,42,0.06) 100%);
    background-size: 200% 100%;
    animation: tp-skeleton-shimmer 1.2s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes tp-skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (prefers-color-scheme: dark) {
    .tp-skeleton {
        background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 100%);
        background-size: 200% 100%;
    }
}

/* ════════════════════════════════════════════════════════════
   Spec Highlights — agrupamento visual subtil (gradients tint)
   ════════════════════════════════════════════════════════════ */
.tp-sp-hl {
    background: linear-gradient(135deg, var(--tp-glass-bg), rgba(255,255,255,0.10));
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tp-sp-hl:hover {
    border-color: rgba(59,130,246,0.30);
    transform: translateY(-3px) scale(1.01);
}

@media (prefers-color-scheme: dark) {
    .tp-sp-hl {
        background: linear-gradient(135deg, rgba(20,25,35,0.55), rgba(20,25,35,0.40));
    }
}

/* ════════════════════════════════════════════════════════════
   2026-05-25 v12 — Vehicle Hero banner + Viaturas page polish
   ════════════════════════════════════════════════════════════ */

/* HERO BANNER no shop quando ?vehicle=<id> activo */
.tp-sa-vehicle-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--tp-space-lg);
    margin-bottom: var(--tp-space-lg);
    background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(6,182,212,0.05));
    border: 1px solid rgba(59,130,246,0.18);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 28px -12px rgba(59,130,246,0.20);
    animation: tp-sa-vh-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tp-sa-vh-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
    .tp-sa-vehicle-hero { grid-template-columns: 1fr; }
    .tp-sa-vh-media { aspect-ratio: 16/9; height: auto; }
}

@media (prefers-color-scheme: dark) {
    .tp-sa-vehicle-hero {
        background: linear-gradient(135deg, rgba(96,165,250,0.10), rgba(6,182,212,0.08));
        border-color: rgba(96,165,250,0.25);
    }
}

.tp-sa-vh-media {
    background: linear-gradient(135deg, rgba(241,245,249,1), rgba(226,232,240,1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 240px;
}

@media (prefers-color-scheme: dark) {
    .tp-sa-vh-media { background: linear-gradient(135deg, rgba(30,41,59,0.5), rgba(15,23,42,0.8)); }
}

.tp-sa-vh-media img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.tp-sa-vh-no-img { color: rgba(15,23,42,0.20); }

.tp-sa-vh-body {
    padding: var(--tp-space-lg);
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.tp-sa-vh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 4px 10px;
    background: var(--tp-primary);
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tp-sa-vh-title {
    margin: 0;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    color: var(--tp-text);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.tp-sa-vh-variant {
    color: var(--tp-text-muted);
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-sa-vh-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.tp-sa-vh-spec {
    padding: 4px 10px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(15,23,42,0.06);
    border-radius: 999px;
    font-size: 12px;
    color: var(--tp-text);
    font-weight: 500;
}

.tp-sa-vh-spec strong {
    color: var(--tp-primary);
    font-weight: 700;
}

@media (prefers-color-scheme: dark) {
    .tp-sa-vh-spec {
        background: rgba(255,255,255,0.06);
        border-color: rgba(255,255,255,0.08);
    }
}

.tp-sa-vh-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: var(--tp-space-sm);
}

.tp-sa-vh-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #0f172a;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.tp-sa-vh-btn-secondary:hover {
    background: var(--tp-primary);
    color: #fff;
}

.tp-sa-vh-btn-clear {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: transparent;
    color: var(--tp-text-muted);
    border: 1px solid rgba(15,23,42,0.10);
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.tp-sa-vh-btn-clear:hover {
    color: var(--tp-danger);
    border-color: var(--tp-danger);
}

/* ════════════════════════════════════════════════════════════
   Single product — vehicle CTA secondary button
   ════════════════════════════════════════════════════════════ */
.tp-sp-vehicle-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    background: rgba(15,23,42,0.04);
    color: var(--tp-text);
    border: 1px solid rgba(15,23,42,0.12);
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, transform 0.1s ease, background 0.15s ease;
}

.tp-sp-vehicle-cta-secondary:hover {
    border-color: var(--tp-primary);
    color: var(--tp-primary);
    background: var(--tp-primary-soft);
    transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
    .tp-sp-vehicle-cta-secondary {
        background: rgba(255,255,255,0.04);
        border-color: rgba(255,255,255,0.10);
    }
}

/* ════════════════════════════════════════════════════════════
   Viaturas para Peças — POLISH (user diz que está má)
   ════════════════════════════════════════════════════════════ */

/* Garante que a .tp-vpp herda os tokens da loja (mesmo sem .tp-storefront-active no body) */
.tp-vpp {
    --tp-bg: #fafbfc;
    --tp-bg-gradient: radial-gradient(at 0% 0%, rgba(120,180,255,0.10) 0px, transparent 50%),
                      radial-gradient(at 100% 0%, rgba(180,255,200,0.10) 0px, transparent 50%);
    --tp-glass-bg: rgba(255,255,255,0.55);
    --tp-glass-border: rgba(255,255,255,0.7);
    --tp-glass-blur: 16px;
    --tp-text: #0f172a;
    --tp-text-muted: #64748b;
    --tp-primary: #3b82f6;
    --tp-primary-hover: #2563eb;
    --tp-primary-soft: rgba(59,130,246,0.10);
    --tp-accent: #06b6d4;
    --tp-radius: 14px;
    --tp-shadow: 0 4px 24px -8px rgba(0,0,0,0.10), 0 0 0 1px rgba(15,23,42,0.04);
}

@media (prefers-color-scheme: dark) {
    .tp-vpp {
        --tp-bg: #0a0d12;
        --tp-glass-bg: rgba(20,25,35,0.55);
        --tp-glass-border: rgba(255,255,255,0.08);
        --tp-text: #f1f5f9;
        --tp-text-muted: #94a3b8;
        --tp-primary: #60a5fa;
        --tp-primary-hover: #93c5fd;
        --tp-primary-soft: rgba(96,165,250,0.16);
        --tp-shadow: 0 4px 24px -8px rgba(0,0,0,0.50), 0 0 0 1px rgba(255,255,255,0.05);
    }
}

/* Background suave da página viaturas */
.tp-vpp {
    background: var(--tp-bg);
    background-image: var(--tp-bg-gradient);
    color: var(--tp-text);
    border-radius: 16px;
}

/* Reuse dos componentes — todas as classes tp-sa-* dentro do .tp-vpp funcionam */
.tp-vpp .tp-sa-cs-trigger,
.tp-vpp .tp-sa-cs-menu,
.tp-vpp .tp-sa-cs-popup,
.tp-vpp .tp-sa-search input,
.tp-vpp .tp-sa-sort-trigger,
.tp-vpp .tp-sa-sort-menu,
.tp-vpp .tp-sa-chip,
.tp-vpp .tp-sa-apply,
.tp-vpp .tp-sa-divider,
.tp-vpp .tp-sa-group-title {
    /* já estilizados acima, mas garantia de cascading */
}

/* Force apply chips colors dentro da viaturas page */
.tp-vpp .tp-sa-chip {
    background: var(--tp-glass-bg);
    border: 1px solid var(--tp-glass-border);
    color: var(--tp-text);
}

/* Cards viaturas — usar mesmos shadows que loja */
.tp-vpp-card {
    box-shadow:
        0 1px 3px rgba(15,23,42,0.04),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

@media (prefers-color-scheme: dark) {
    .tp-vpp-card {
        box-shadow:
            0 1px 3px rgba(0,0,0,0.30),
            inset 0 1px 0 rgba(255,255,255,0.06);
    }
}

/* (2026-05-26: bloco "v13 FORCE visibility" removido — tinha
 *  `background: rgba(255,255,255,0.85)` que tornava os action buttons
 *  brancos/cinza. As regras correctas vivem agora abaixo no bloco final.) */

/* ACCORDION visibility — força aparecer e funcionar */
html body.tp-storefront-active .tp-sp-acc-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 28px 0 !important;
}

html body.tp-storefront-active .tp-sp-acc-item {
    background: rgba(255,255,255,0.65) !important;
    border: 1px solid rgba(15,23,42,0.08) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    backdrop-filter: blur(16px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
    display: block !important;
}

@media (prefers-color-scheme: dark) {
    html body.tp-storefront-active .tp-sp-acc-item {
        background: rgba(20,25,35,0.55) !important;
        border-color: rgba(255,255,255,0.08) !important;
    }
}

html body.tp-storefront-active .tp-sp-acc-head {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    padding: 16px 20px !important;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer !important;
    text-align: left !important;
    color: var(--tp-text, #0f172a) !important;
    font-family: inherit !important;
}

html body.tp-storefront-active .tp-sp-acc-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: rgba(59,130,246,0.10) !important;
    color: #3b82f6 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

html body.tp-storefront-active .tp-sp-acc-icon svg {
    width: 18px !important;
    height: 18px !important;
    color: inherit !important;
    fill: none !important;
}

html body.tp-storefront-active .tp-sp-acc-icon svg path,
html body.tp-storefront-active .tp-sp-acc-icon svg rect,
html body.tp-storefront-active .tp-sp-acc-icon svg line,
html body.tp-storefront-active .tp-sp-acc-icon svg polyline,
html body.tp-storefront-active .tp-sp-acc-icon svg polygon,
html body.tp-storefront-active .tp-sp-acc-icon svg circle {
    stroke: currentColor !important;
    stroke-width: 2 !important;
    opacity: 1 !important;
}

html body.tp-storefront-active .tp-sp-acc-item.is-open .tp-sp-acc-icon {
    background: #3b82f6 !important;
    color: #fff !important;
}

html body.tp-storefront-active .tp-sp-acc-title {
    flex: 1 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--tp-text, #0f172a) !important;
    letter-spacing: -0.01em !important;
    display: block !important;
}

@media (prefers-color-scheme: dark) {
    html body.tp-storefront-active .tp-sp-acc-title { color: #f1f5f9 !important; }
    html body.tp-storefront-active .tp-sp-acc-head  { color: #f1f5f9 !important; }
}

html body.tp-storefront-active .tp-sp-acc-chevron {
    color: rgba(100,116,139,0.8) !important;
    flex-shrink: 0 !important;
    transition: transform 0.3s ease, color 0.2s ease !important;
}

html body.tp-storefront-active .tp-sp-acc-chevron svg,
html body.tp-storefront-active svg.tp-sp-acc-chevron {
    fill: none !important;
}

html body.tp-storefront-active svg.tp-sp-acc-chevron path,
html body.tp-storefront-active svg.tp-sp-acc-chevron polyline {
    stroke: currentColor !important;
    stroke-width: 2.5 !important;
}

html body.tp-storefront-active .tp-sp-acc-item.is-open svg.tp-sp-acc-chevron {
    transform: rotate(180deg) !important;
    color: #3b82f6 !important;
}

html body.tp-storefront-active .tp-sp-acc-body {
    overflow: hidden !important;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

html body.tp-storefront-active .tp-sp-acc-item:not(.is-open) .tp-sp-acc-body {
    max-height: 0 !important;
}

html body.tp-storefront-active .tp-sp-acc-content {
    padding: 4px 20px 22px !important;
    color: var(--tp-text, #0f172a) !important;
}

@media (prefers-color-scheme: dark) {
    html body.tp-storefront-active .tp-sp-acc-content { color: #f1f5f9 !important; }
}

/* ALL SVGs no template do storefront — força sempre fill:none + currentColor */
html body.tp-storefront-active .tp-sp-page svg:not([fill]):not([data-no-stroke]),
html body.tp-storefront-active .tp-sa-page svg:not([fill]):not([data-no-stroke]),
html body.tp-storefront-active .tp-vpp svg:not([fill]):not([data-no-stroke]) {
    fill: none;
}

/* Highlights chips icons */
html body.tp-storefront-active .tp-sp-hl-icon svg {
    width: 18px !important; height: 18px !important;
    display: block !important;
}

/* ════════════════════════════════════════════════════════════
   2026-05-25 v14 — Share dropdown + Empty highlights subtle
   ════════════════════════════════════════════════════════════ */

/* Share dropdown menu */
.tp-sp-share { position: relative; }

.tp-sp-share-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.10);
    border-radius: 12px;
    box-shadow: 0 18px 40px -12px rgba(15,23,42,0.20);
    list-style: none;
    margin: 0;
    padding: 4px;
    min-width: 200px;
    z-index: 999;
    animation: tp-sp-share-in 0.15s ease-out;
}

@keyframes tp-sp-share-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-color-scheme: dark) {
    .tp-sp-share-menu { background: #0f1419; border-color: rgba(255,255,255,0.10); }
}

.tp-sp-share-menu li { list-style: none; margin: 0; padding: 0; }

.tp-sp-share-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--tp-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.1s ease, color 0.15s ease;
}

.tp-sp-share-item:hover { background: rgba(59,130,246,0.08); color: var(--tp-primary); }
.tp-sp-share-item svg { color: inherit; flex-shrink: 0; }

/* Highlights empty state (Não disponível) — muted */
html body.tp-storefront-active .tp-sp-hl.is-empty .tp-sp-hl-value {
    color: rgba(100,116,139,0.7) !important;
    font-style: italic;
    font-weight: 500 !important;
    font-size: 13px !important;
}

html body.tp-storefront-active .tp-sp-hl.is-empty .tp-sp-hl-icon {
    opacity: 0.55;
}

@media (prefers-color-scheme: dark) {
    html body.tp-storefront-active .tp-sp-hl.is-empty .tp-sp-hl-value { color: rgba(148,163,184,0.5) !important; }
}

/* ════════════════════════════════════════════════════════════
   2026-05-25 v15 — Master/Child composite parts UI
   ════════════════════════════════════════════════════════════ */

/* Banner topo info-card (master vs child) */
.tp-sp-comp-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
    animation: tp-sp-comp-in 0.3s ease-out;
}

@keyframes tp-sp-comp-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.tp-sp-comp-master {
    background: linear-gradient(135deg, rgba(245,158,11,0.10), rgba(251,191,36,0.06));
    border: 1px solid rgba(245,158,11,0.25);
}

.tp-sp-comp-child {
    background: linear-gradient(135deg, rgba(6,182,212,0.10), rgba(59,130,246,0.06));
    border: 1px solid rgba(6,182,212,0.25);
}

.tp-sp-comp-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tp-sp-comp-master .tp-sp-comp-icon {
    background: #f59e0b;
    color: #fff;
}

.tp-sp-comp-child .tp-sp-comp-icon {
    background: #06b6d4;
    color: #fff;
}

.tp-sp-comp-body { min-width: 0; flex: 1; }

.tp-sp-comp-eyebrow {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
    margin-bottom: 3px;
}

.tp-sp-comp-master .tp-sp-comp-eyebrow { color: #b45309; }
.tp-sp-comp-child  .tp-sp-comp-eyebrow { color: #0e7490; }

@media (prefers-color-scheme: dark) {
    .tp-sp-comp-master .tp-sp-comp-eyebrow { color: #fcd34d; }
    .tp-sp-comp-child  .tp-sp-comp-eyebrow { color: #67e8f9; }
}

.tp-sp-comp-text {
    font-size: 13px;
    color: var(--tp-text);
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tp-sp-comp-text strong { font-weight: 700; }

a.tp-sp-comp-text {
    color: var(--tp-primary);
}

a.tp-sp-comp-text:hover {
    color: var(--tp-primary-hover);
    text-decoration: underline;
}

/* Preço "Só vendida em conjunto com X" */
.tp-sp-price-child-only {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    background: rgba(6,182,212,0.10);
    color: #0e7490;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.tp-sp-price-child-only svg { color: #06b6d4; flex-shrink: 0; }

.tp-sp-price-child-only a {
    color: #0e7490;
    text-decoration: underline;
    font-weight: 700;
}

.tp-sp-price-child-only a:hover { color: var(--tp-primary); }

@media (prefers-color-scheme: dark) {
    .tp-sp-price-child-only {
        background: rgba(6,182,212,0.16);
        color: #67e8f9;
    }
    .tp-sp-price-child-only a { color: #67e8f9; }
}

/* ════════════════════════════════════════════════════════════
   Card loop chips: master / child
   ════════════════════════════════════════════════════════════ */

.tp-storefront-active .tp-pc-chip-master {
    background: rgba(245,158,11,0.92) !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tp-storefront-active .tp-pc-chip-child {
    background: rgba(6,182,212,0.92) !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Cart button variant "Ver Conjunto" */
.tp-storefront-active .tp-pc-cart-master {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    box-shadow: 0 4px 12px -4px rgba(245,158,11,0.50) !important;
}

.tp-storefront-active .tp-pc-cart-master:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
}

/* ════════════════════════════════════════════════════════════
   #3 Stock urgency — "Última unidade" no single product
   ════════════════════════════════════════════════════════════ */

.tp-sp-urgency {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(220,38,38,0.08));
    border: 1px solid rgba(239,68,68,0.30);
    color: #b91c1c;
    margin: 8px 0 14px;
    overflow: hidden;
    animation: tp-sp-comp-in 0.3s ease-out;
}

.tp-sp-urgency::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ef4444, #dc2626);
}

.tp-sp-urgency svg { color: #dc2626; flex-shrink: 0; }

.tp-sp-urgency strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #b91c1c;
    line-height: 1.2;
}

.tp-sp-urgency small {
    display: block;
    font-size: 12px;
    color: #991b1b;
    font-weight: 500;
    margin-top: 2px;
    opacity: 0.85;
}

.tp-sp-urgency-pulse {
    position: absolute;
    right: 14px; top: 50%;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #ef4444;
    transform: translateY(-50%);
    box-shadow: 0 0 0 0 rgba(239,68,68,0.5);
    animation: tp-pulse-last 1.5s ease-in-out infinite;
}

@media (prefers-color-scheme: dark) {
    .tp-sp-urgency {
        background: linear-gradient(135deg, rgba(239,68,68,0.18), rgba(220,38,38,0.10));
        border-color: rgba(239,68,68,0.40);
        color: #fca5a5;
    }
    .tp-sp-urgency svg { color: #fca5a5; }
    .tp-sp-urgency strong { color: #fecaca; }
    .tp-sp-urgency small { color: #fca5a5; }
}

/* #2 Demand badge — "Muita procura" no single product */
.tp-sp-demand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(249,115,22,0.10), rgba(234,88,12,0.06));
    border: 1px solid rgba(249,115,22,0.28);
    color: #c2410c;
    margin: 0 0 10px;
    overflow: hidden;
    animation: tp-sp-comp-in 0.3s ease-out;
}

.tp-sp-demand::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f97316, #ea580c);
}

.tp-sp-demand svg { color: #ea580c; flex-shrink: 0; }

.tp-sp-demand strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #c2410c;
    line-height: 1.2;
}

.tp-sp-demand small {
    display: block;
    font-size: 12px;
    color: #9a3412;
    font-weight: 500;
    margin-top: 2px;
    opacity: 0.85;
}

@media (prefers-color-scheme: dark) {
    .tp-sp-demand {
        background: linear-gradient(135deg, rgba(249,115,22,0.18), rgba(234,88,12,0.10));
        border-color: rgba(249,115,22,0.40);
        color: #fdba74;
    }
    .tp-sp-demand svg { color: #fdba74; }
    .tp-sp-demand strong { color: #fed7aa; }
    .tp-sp-demand small { color: #fdba74; }
}

/* #16 Compat-pages link chips (single product) */
.tp-sp-compat-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 8px 0 14px;
    padding: 10px 12px;
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 10px;
}
.tp-sp-compat-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tp-text-muted, #4338ca);
    margin-right: 4px;
    flex-shrink: 0;
}
.tp-sp-compat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(99,102,241,0.10);
    color: #4338ca;
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}
.tp-sp-compat-chip:hover {
    background: var(--tp-primary, #6366f1);
    color: #fff;
    border-color: var(--tp-primary, #6366f1);
    transform: translateY(-1px);
    text-decoration: none;
}
.tp-sp-compat-chip svg { color: currentColor; }
.tp-sp-compat-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tp-primary, #6366f1);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}
.tp-sp-compat-link:hover { text-decoration: underline; }

@media (prefers-color-scheme: dark) {
    .tp-sp-compat-links {
        background: rgba(99,102,241,0.12);
        border-color: rgba(99,102,241,0.30);
    }
    .tp-sp-compat-eyebrow { color: #c7d2fe; }
    .tp-sp-compat-chip {
        background: rgba(99,102,241,0.20);
        color: #c7d2fe;
        border-color: rgba(99,102,241,0.40);
    }
    .tp-sp-compat-chip:hover {
        background: #6366f1;
        color: #fff;
    }
}

/* #13 Viewers live pill */
.tp-vl[hidden] { display: none !important; }
.tp-vl {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.20);
    color: #4338ca;
    font-size: 12px;
    font-weight: 600;
    margin: 4px 0 12px;
    position: relative;
}
.tp-vl-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    box-shadow: 0 0 0 0 rgba(99,102,241,0.55);
    animation: tp-vl-pulse 1.8s ease-in-out infinite;
}
@keyframes tp-vl-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(99,102,241,0.55); }
    70%  { box-shadow: 0 0 0 6px rgba(99,102,241,0); }
    100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}
.tp-vl svg { color: #6366f1; }
.tp-vl strong { font-weight: 800; color: #3730a3; }

@media (prefers-color-scheme: dark) {
    .tp-vl {
        background: rgba(99,102,241,0.16);
        border-color: rgba(99,102,241,0.40);
        color: #c7d2fe;
    }
    .tp-vl svg { color: #a5b4fc; }
    .tp-vl strong { color: #e0e7ff; }
}

/* #1 Price range slider (single product, junto ao preço) */
.tp-sp-pricer {
    margin: 12px 0 18px;
    padding: 12px 16px 14px;
    border-radius: 12px;
    background: rgba(0,0,0,0.025);
    border: 1px solid rgba(0,0,0,0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.tp-sp-pricer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
}

.tp-sp-pricer-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--tp-text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tp-sp-pricer-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 700;
    color: var(--tp-primary);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(59,130,246,0.08);
    transition: background 0.15s;
}

.tp-sp-pricer-link:hover {
    background: rgba(59,130,246,0.15);
    text-decoration: none;
}

.tp-sp-pricer-track {
    position: relative;
    height: 6px;
    margin: 0 6px;
}

.tp-sp-pricer-bar {
    position: absolute;
    inset: 0;
    border-radius: 3px;
    background: linear-gradient(90deg,
        rgba(34,197,94,0.7) 0%,
        rgba(245,158,11,0.7) 50%,
        rgba(239,68,68,0.7) 100%);
}

.tp-sp-pricer-handle {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--tp-primary);
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 2;
}

.tp-sp-pricer-tip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--tp-text, #0f172a);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
}

.tp-sp-pricer-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--tp-text, #0f172a);
}

.tp-sp-pricer-tip .woocommerce-Price-amount {
    color: #fff;
}

.tp-sp-pricer-range {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--tp-text-muted, #64748b);
}

.tp-sp-pricer-min .woocommerce-Price-amount,
.tp-sp-pricer-max .woocommerce-Price-amount {
    color: var(--tp-text-muted, #64748b);
    font-weight: 600;
    font-size: 11px;
}

@media (prefers-color-scheme: dark) {
    .tp-sp-pricer {
        background: rgba(255,255,255,0.04);
        border-color: rgba(255,255,255,0.08);
    }
    .tp-sp-pricer-link {
        background: rgba(59,130,246,0.16);
    }
    .tp-sp-pricer-handle {
        background: #0f172a;
        border-color: var(--tp-primary);
    }
}

/* #6 Countdown timer */
.tp-sp-countdown {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(34,197,94,0.10), rgba(16,185,129,0.06));
    border: 1px solid rgba(34,197,94,0.25);
    color: #166534;
    margin: 0 0 14px;
}

.tp-sp-countdown svg { color: #16a34a; flex-shrink: 0; }

.tp-sp-countdown-text { min-width: 0; flex: 1; line-height: 1.3; }

.tp-sp-countdown-message {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #166534;
}

.tp-sp-countdown-message .tp-sp-countdown-clock {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-weight: 700;
    color: #16a34a;
    background: rgba(34,197,94,0.16);
    padding: 1px 6px;
    border-radius: 4px;
    margin: 0 2px;
    letter-spacing: 0.03em;
}

.tp-sp-countdown-sub {
    display: block;
    font-size: 11px;
    color: #15803d;
    font-weight: 500;
    margin-top: 1px;
    opacity: 0.8;
}

@media (prefers-color-scheme: dark) {
    .tp-sp-countdown {
        background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(16,185,129,0.10));
        border-color: rgba(34,197,94,0.40);
        color: #86efac;
    }
    .tp-sp-countdown svg { color: #86efac; }
    .tp-sp-countdown-message { color: #bbf7d0; }
    .tp-sp-countdown-message .tp-sp-countdown-clock {
        background: rgba(34,197,94,0.24);
        color: #bbf7d0;
    }
    .tp-sp-countdown-sub { color: #86efac; }
}

/* ════════════════════════════════════════════════════════════════════════════
 * 2026-05-26 — HARD OVERRIDES contra o tema Ignavo
 *
 * Screenshots do user mostram:
 *   • Ordenação: botão grande cor-creme com texto invisível
 *   • X clear no combobox: bloco grande cor-creme em vez de pequeno X
 *   • Aplicar: bloco cor-creme com texto invisível
 *
 * O Ignavo aplica `background: <cream> !important` + padding agressivo a TODOS
 * os `<button>`. Para vencer usamos `body.tp-storefront-active button.tp-sa-…`
 * (specificity boost via `body.<class>` ancestor) + `!important` em cada
 * propriedade chave. Esta secção corre por último → ganha cascade order.
 * ════════════════════════════════════════════════════════════════════════════ */

/* ── Ordenação (sort trigger) — pill com padding generoso + hover sólido ──
 * Queixa user 2026-05-26: "hover do botão ainda assim, dá mais padding".
 * O problema do hover anterior era que mudava bg para `rgba(255,255,255,0.95)`
 * mas o tema injectava `color: white` em hover, deixando texto-branco em
 * fundo-branco. Aqui forçamos o color em hover também + bumpamos padding. */
body.tp-storefront-active button.tp-sa-sort-trigger,
.tp-vpp button.tp-sa-sort-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: rgba(255,255,255,0.65) !important;
    border: 1px solid rgba(15,23,42,0.12) !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    padding: 12px 22px !important;
    border-radius: 999px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    cursor: pointer !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s !important;
}
body.tp-storefront-active button.tp-sa-sort-trigger:hover,
body.tp-storefront-active button.tp-sa-sort-trigger:focus,
.tp-vpp button.tp-sa-sort-trigger:hover,
.tp-vpp button.tp-sa-sort-trigger:focus {
    background: #fff !important;
    border-color: var(--tp-primary, #2563eb) !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    outline: none !important;
}
body.tp-storefront-active button.tp-sa-sort-trigger:hover svg,
body.tp-storefront-active button.tp-sa-sort-trigger:focus svg,
.tp-vpp button.tp-sa-sort-trigger:hover svg,
.tp-vpp button.tp-sa-sort-trigger:focus svg {
    color: var(--tp-primary, #2563eb) !important;
}
body.tp-storefront-active button.tp-sa-sort-trigger svg,
.tp-vpp button.tp-sa-sort-trigger svg {
    color: #475569 !important;
    flex-shrink: 0 !important;
    transition: color 0.15s !important;
}
body.tp-storefront-active .tp-sa-sort-current,
.tp-vpp .tp-sa-sort-current {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-weight: 600 !important;
    flex: 1 !important;
}
/* Hover/focus state — força color do texto interno também (vence overrides
 * do tema que mudavam color em hover para branco). */
body.tp-storefront-active button.tp-sa-sort-trigger:hover .tp-sa-sort-current,
body.tp-storefront-active button.tp-sa-sort-trigger:focus .tp-sa-sort-current,
.tp-vpp button.tp-sa-sort-trigger:hover .tp-sa-sort-current,
.tp-vpp button.tp-sa-sort-trigger:focus .tp-sa-sort-current {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

@media (prefers-color-scheme: dark) {
    body.tp-storefront-active button.tp-sa-sort-trigger,
    .tp-vpp button.tp-sa-sort-trigger {
        background: rgba(20,25,35,0.7) !important;
        border-color: rgba(255,255,255,0.10) !important;
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }
    body.tp-storefront-active button.tp-sa-sort-trigger:hover,
    body.tp-storefront-active button.tp-sa-sort-trigger:focus,
    .tp-vpp button.tp-sa-sort-trigger:hover,
    .tp-vpp button.tp-sa-sort-trigger:focus {
        background: rgba(30,40,55,0.92) !important;
        border-color: var(--tp-primary, #2563eb) !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
    }
    body.tp-storefront-active button.tp-sa-sort-trigger:hover .tp-sa-sort-current,
    body.tp-storefront-active button.tp-sa-sort-trigger:focus .tp-sa-sort-current,
    .tp-vpp button.tp-sa-sort-trigger:hover .tp-sa-sort-current,
    .tp-vpp button.tp-sa-sort-trigger:focus .tp-sa-sort-current {
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
    }
    body.tp-storefront-active .tp-sa-sort-current,
    .tp-vpp .tp-sa-sort-current {
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }
}

/* ── X clear no combobox — pequeno X transparente, NÃO um bloco creme ─── */
body button.tp-sa-cb-clear,
.tp-vpp button.tp-sa-cb-clear {
    position: absolute !important;
    right: 32px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: 0 !important;
    padding: 4px !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
}
body button.tp-sa-cb-clear:hover,
.tp-vpp button.tp-sa-cb-clear:hover {
    background: rgba(244,63,94,0.15) !important;
    color: #ef4444 !important;
}
body button.tp-sa-cb-clear[hidden],
.tp-vpp button.tp-sa-cb-clear[hidden] {
    display: none !important;
}
body button.tp-sa-cb-clear svg,
.tp-vpp button.tp-sa-cb-clear svg {
    width: 12px !important;
    height: 12px !important;
}

/* ── Aplicar / Submit — botão brand pleno (verde) com texto branco ─────── */
body.tp-storefront-active button.tp-sa-apply,
.tp-vpp button.tp-sa-apply {
    display: block !important;
    width: 100% !important;
    background: var(--tp-primary, #2563eb) !important;
    background-image: linear-gradient(135deg, var(--tp-primary, #2563eb) 0%, var(--tp-primary-hover, #1d4ed8) 100%) !important;
    border: 0 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: 0 4px 14px rgba(37,99,235,0.28) !important;
    text-shadow: none !important;
    cursor: pointer !important;
    transition: transform 0.12s, box-shadow 0.12s !important;
    margin-top: 8px !important;
}
body.tp-storefront-active button.tp-sa-apply:hover,
.tp-vpp button.tp-sa-apply:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 22px rgba(37,99,235,0.36) !important;
}

/* ── Trigger button legacy (tp-sa-cs-trigger) — input look ─────────────── */
body.tp-storefront-active button.tp-sa-cs-trigger,
.tp-vpp button.tp-sa-cs-trigger {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    background: rgba(255,255,255,0.85) !important;
    border: 1px solid rgba(15,23,42,0.12) !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    padding: 10px 12px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    box-shadow: none !important;
    cursor: pointer !important;
    min-height: 0 !important;
    height: auto !important;
}
body.tp-storefront-active button.tp-sa-cs-trigger:disabled,
.tp-vpp button.tp-sa-cs-trigger:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
}
body.tp-storefront-active button.tp-sa-cs-trigger:hover:not(:disabled),
.tp-vpp button.tp-sa-cs-trigger:hover:not(:disabled) {
    border-color: rgba(37,99,235,0.3) !important;
}
body.tp-storefront-active button.tp-sa-cs-trigger svg,
.tp-vpp button.tp-sa-cs-trigger svg {
    color: #64748b !important;
    flex-shrink: 0 !important;
}
@media (prefers-color-scheme: dark) {
    body.tp-storefront-active button.tp-sa-cs-trigger,
    .tp-vpp button.tp-sa-cs-trigger {
        background: rgba(20,25,35,0.85) !important;
        border-color: rgba(255,255,255,0.10) !important;
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }
}

/* ── Close mobile + mobile-toggle ─────────────────────────────────────── */
body.tp-storefront-active button.tp-sa-close-mobile,
.tp-vpp button.tp-sa-close-mobile {
    background: transparent !important;
    border: 0 !important;
    padding: 6px !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    cursor: pointer !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}
body.tp-storefront-active button.tp-sa-close-mobile:hover,
.tp-vpp button.tp-sa-close-mobile:hover {
    background: rgba(15,23,42,0.06) !important;
}

/* ── Sort dropdown menu — mais respiração e estrutura visual ─────────── */
body.tp-storefront-active .tp-sa-sort-menu,
.tp-vpp .tp-sa-sort-menu {
    background: #fff !important;
    border: 1px solid rgba(15,23,42,0.10) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 50px -12px rgba(15,23,42,0.25), 0 4px 12px -4px rgba(15,23,42,0.10) !important;
    padding: 6px !important;
    min-width: 220px !important;
}
@media (prefers-color-scheme: dark) {
    body.tp-storefront-active .tp-sa-sort-menu,
    .tp-vpp .tp-sa-sort-menu {
        background: #0f1419 !important;
        border-color: rgba(255,255,255,0.10) !important;
    }
}
body.tp-storefront-active a.tp-sa-sort-item,
.tp-vpp a.tp-sa-sort-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 11px 14px !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.12s !important;
}
body.tp-storefront-active a.tp-sa-sort-item:hover,
.tp-vpp a.tp-sa-sort-item:hover {
    background: rgba(37,99,235,0.08) !important;
    color: var(--tp-primary, #2563eb) !important;
    -webkit-text-fill-color: var(--tp-primary, #2563eb) !important;
}
body.tp-storefront-active a.tp-sa-sort-item.is-active,
.tp-vpp a.tp-sa-sort-item.is-active {
    background: rgba(37,99,235,0.14) !important;
    color: var(--tp-primary, #2563eb) !important;
    -webkit-text-fill-color: var(--tp-primary, #2563eb) !important;
    font-weight: 700 !important;
}
@media (prefers-color-scheme: dark) {
    body.tp-storefront-active a.tp-sa-sort-item,
    .tp-vpp a.tp-sa-sort-item {
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }
}

/* ── Combobox dropdown menu (tp-sa-cb-menu) + opções — mais respiração ── */
body .tp-sa-cb-menu,
.tp-vpp .tp-sa-cb-menu {
    background: #fff !important;
    border: 1px solid rgba(15,23,42,0.10) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 50px -12px rgba(15,23,42,0.25), 0 4px 12px -4px rgba(15,23,42,0.10) !important;
    padding: 6px !important;
    max-height: 320px !important;
    overflow-y: auto !important;
}
@media (prefers-color-scheme: dark) {
    body .tp-sa-cb-menu,
    .tp-vpp .tp-sa-cb-menu {
        background: #0f1419 !important;
        border-color: rgba(255,255,255,0.10) !important;
    }
}
body .tp-sa-cb-menu li,
.tp-vpp .tp-sa-cb-menu li {
    list-style: none !important;
    margin: 0 !important;
}
body li.tp-sa-cb-item,
.tp-vpp li.tp-sa-cb-item {
    display: block !important;
    padding: 11px 14px !important;
    margin: 2px 0 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.12s !important;
}
body li.tp-sa-cb-item:hover,
body li.tp-sa-cb-item.is-highlight,
.tp-vpp li.tp-sa-cb-item:hover,
.tp-vpp li.tp-sa-cb-item.is-highlight {
    background: rgba(37,99,235,0.10) !important;
    color: var(--tp-primary, #2563eb) !important;
    -webkit-text-fill-color: var(--tp-primary, #2563eb) !important;
}
body li.tp-sa-cb-item.is-active,
.tp-vpp li.tp-sa-cb-item.is-active {
    background: rgba(37,99,235,0.14) !important;
    color: var(--tp-primary, #2563eb) !important;
    -webkit-text-fill-color: var(--tp-primary, #2563eb) !important;
    font-weight: 700 !important;
}
@media (prefers-color-scheme: dark) {
    body li.tp-sa-cb-item,
    .tp-vpp li.tp-sa-cb-item {
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }
}

/* ── Legacy cs popup (tp-sa-cs-menu) — mesmo padrão ──────────────── */
body.tp-storefront-active .tp-sa-cs-popup,
.tp-vpp .tp-sa-cs-popup {
    background: #fff !important;
    border: 1px solid rgba(15,23,42,0.10) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 50px -12px rgba(15,23,42,0.25) !important;
    padding: 6px !important;
}
@media (prefers-color-scheme: dark) {
    body.tp-storefront-active .tp-sa-cs-popup,
    .tp-vpp .tp-sa-cs-popup {
        background: #0f1419 !important;
        border-color: rgba(255,255,255,0.10) !important;
    }
}
body.tp-storefront-active a.tp-sa-cs-item,
.tp-vpp a.tp-sa-cs-item {
    display: block !important;
    padding: 11px 14px !important;
    margin: 2px 0 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.12s !important;
}
body.tp-storefront-active a.tp-sa-cs-item:hover,
.tp-vpp a.tp-sa-cs-item:hover {
    background: rgba(37,99,235,0.10) !important;
    color: var(--tp-primary, #2563eb) !important;
    -webkit-text-fill-color: var(--tp-primary, #2563eb) !important;
}
body.tp-storefront-active a.tp-sa-cs-item.is-active,
.tp-vpp a.tp-sa-cs-item.is-active {
    background: rgba(37,99,235,0.14) !important;
    color: var(--tp-primary, #2563eb) !important;
    -webkit-text-fill-color: var(--tp-primary, #2563eb) !important;
    font-weight: 700 !important;
}
@media (prefers-color-scheme: dark) {
    body.tp-storefront-active a.tp-sa-cs-item,
    .tp-vpp a.tp-sa-cs-item {
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }
}

/* ── Chip activo (filtro removível) ─ */
body.tp-storefront-active a.tp-sa-chip,
.tp-vpp a.tp-sa-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 10px 5px 12px !important;
    background: rgba(37,99,235,0.10) !important;
    border: 1px solid rgba(37,99,235,0.30) !important;
    border-radius: 999px !important;
    color: var(--tp-primary, #2563eb) !important;
    -webkit-text-fill-color: var(--tp-primary, #2563eb) !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background 0.15s, color 0.15s !important;
}
body.tp-storefront-active a.tp-sa-chip:hover,
.tp-vpp a.tp-sa-chip:hover {
    background: rgba(239,68,68,0.12) !important;
    border-color: rgba(239,68,68,0.40) !important;
    color: #ef4444 !important;
    -webkit-text-fill-color: #ef4444 !important;
}

body.tp-storefront-active a.tp-sa-chip-clear,
.tp-vpp a.tp-sa-chip-clear {
    display: inline-flex !important;
    align-items: center !important;
    padding: 5px 12px !important;
    background: transparent !important;
    border: 0 !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    box-shadow: none !important;
}
body.tp-storefront-active a.tp-sa-chip-clear:hover,
.tp-vpp a.tp-sa-chip-clear:hover {
    color: #ef4444 !important;
    -webkit-text-fill-color: #ef4444 !important;
}

/* ════════════════════════════════════════════════════════════════════════════
 * 2026-05-26 (v2) — Dropdown polish (queixa user: "caixa pouco intuitiva")
 *
 * Screenshot: item seleccionado em azul-sólido cobre toda a linha (agressivo);
 * items colados sem respiração; falta dica visual do estado seleccionado.
 *
 * Mudanças:
 *   • Estado seleccionado: tint suave + accent vertical à esquerda + checkmark
 *     "✓" à direita (em vez de background azul sólido).
 *   • Spacing maior entre items + padding lateral consistente.
 *   • Container do dropdown com mais respiração (padding-top maior, gap entre
 *     input do trigger e a caixa).
 *   • Scrollbar customizada para combinar com o design liquid-glass.
 * ════════════════════════════════════════════════════════════════════════════ */

/* Caixa do dropdown — separação visual do input trigger */
body .tp-sa-cb-menu,
body.tp-storefront-active .tp-sa-cs-popup,
body.tp-storefront-active .tp-sa-sort-menu,
.tp-vpp .tp-sa-cb-menu,
.tp-vpp .tp-sa-cs-popup,
.tp-vpp .tp-sa-sort-menu {
    margin-top: 6px !important;
    padding: 8px !important;
    border-radius: 14px !important;
    /* Borda mais visível + shadow ligeiramente maior — sinaliza "elemento
     * a flutuar" mais claramente que o input estático. */
    border-color: rgba(15,23,42,0.14) !important;
    box-shadow: 0 24px 60px -12px rgba(15,23,42,0.32),
                0 6px 18px -6px rgba(15,23,42,0.14) !important;
}
@media (prefers-color-scheme: dark) {
    body .tp-sa-cb-menu,
    body.tp-storefront-active .tp-sa-cs-popup,
    body.tp-storefront-active .tp-sa-sort-menu,
    .tp-vpp .tp-sa-cb-menu,
    .tp-vpp .tp-sa-cs-popup,
    .tp-vpp .tp-sa-sort-menu {
        border-color: rgba(255,255,255,0.12) !important;
        box-shadow: 0 24px 60px -12px rgba(0,0,0,0.65),
                    0 6px 18px -6px rgba(0,0,0,0.4) !important;
    }
}

/* Items — padding generoso + espaço entre + estado seleccionado subtil */
body li.tp-sa-cb-item,
body.tp-storefront-active a.tp-sa-cs-item,
body.tp-storefront-active a.tp-sa-sort-item,
.tp-vpp li.tp-sa-cb-item,
.tp-vpp a.tp-sa-cs-item,
.tp-vpp a.tp-sa-sort-item {
    position: relative !important;
    padding: 10px 14px 10px 18px !important;
    margin: 1px 0 !important;
    font-size: 13.5px !important;
    line-height: 1.35 !important;
    border-radius: 10px !important;
    /* Accent vertical à esquerda quando seleccionado/hover (preenchido via
     * ::before — não afecta padding). */
}

body li.tp-sa-cb-item::before,
body.tp-storefront-active a.tp-sa-cs-item::before,
body.tp-storefront-active a.tp-sa-sort-item::before,
.tp-vpp li.tp-sa-cb-item::before,
.tp-vpp a.tp-sa-cs-item::before,
.tp-vpp a.tp-sa-sort-item::before {
    content: "" !important;
    position: absolute !important;
    left: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 3px !important;
    height: 0 !important;
    background: var(--tp-primary, #2563eb) !important;
    border-radius: 3px !important;
    transition: height 0.18s cubic-bezier(0.4,0,0.2,1) !important;
}

body li.tp-sa-cb-item:hover::before,
body li.tp-sa-cb-item.is-highlight::before,
body.tp-storefront-active a.tp-sa-cs-item:hover::before,
body.tp-storefront-active a.tp-sa-sort-item:hover::before,
.tp-vpp li.tp-sa-cb-item:hover::before,
.tp-vpp li.tp-sa-cb-item.is-highlight::before,
.tp-vpp a.tp-sa-cs-item:hover::before,
.tp-vpp a.tp-sa-sort-item:hover::before {
    height: 16px !important;
}

body li.tp-sa-cb-item.is-active::before,
body.tp-storefront-active a.tp-sa-cs-item.is-active::before,
body.tp-storefront-active a.tp-sa-sort-item.is-active::before,
.tp-vpp li.tp-sa-cb-item.is-active::before,
.tp-vpp a.tp-sa-cs-item.is-active::before,
.tp-vpp a.tp-sa-sort-item.is-active::before {
    height: 22px !important;
}

/* Estado seleccionado/active — fundo SUBTIL (não azul-sólido) + checkmark */
body li.tp-sa-cb-item.is-active,
body.tp-storefront-active a.tp-sa-cs-item.is-active,
body.tp-storefront-active a.tp-sa-sort-item.is-active,
.tp-vpp li.tp-sa-cb-item.is-active,
.tp-vpp a.tp-sa-cs-item.is-active,
.tp-vpp a.tp-sa-sort-item.is-active {
    background: rgba(37,99,235,0.08) !important;
    color: var(--tp-primary, #2563eb) !important;
    -webkit-text-fill-color: var(--tp-primary, #2563eb) !important;
    font-weight: 600 !important;
    padding-right: 36px !important;
}

body li.tp-sa-cb-item.is-active::after,
body.tp-storefront-active a.tp-sa-cs-item.is-active::after,
body.tp-storefront-active a.tp-sa-sort-item.is-active::after,
.tp-vpp li.tp-sa-cb-item.is-active::after,
.tp-vpp a.tp-sa-cs-item.is-active::after,
.tp-vpp a.tp-sa-sort-item.is-active::after {
    content: "" !important;
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    width: 14px !important;
    height: 14px !important;
    transform: translateY(-50%) !important;
    background-color: var(--tp-primary, #2563eb) !important;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6L9 17l-5-5'/></svg>") no-repeat center / contain !important;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6L9 17l-5-5'/></svg>") no-repeat center / contain !important;
}

/* Hover — fundo ainda mais subtil (sem competir com active) */
body li.tp-sa-cb-item:hover:not(.is-active),
body li.tp-sa-cb-item.is-highlight:not(.is-active),
body.tp-storefront-active a.tp-sa-cs-item:hover:not(.is-active),
body.tp-storefront-active a.tp-sa-sort-item:hover:not(.is-active),
.tp-vpp li.tp-sa-cb-item:hover:not(.is-active),
.tp-vpp li.tp-sa-cb-item.is-highlight:not(.is-active),
.tp-vpp a.tp-sa-cs-item:hover:not(.is-active),
.tp-vpp a.tp-sa-sort-item:hover:not(.is-active) {
    background: rgba(15,23,42,0.04) !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}
@media (prefers-color-scheme: dark) {
    body li.tp-sa-cb-item:hover:not(.is-active),
    body li.tp-sa-cb-item.is-highlight:not(.is-active),
    body.tp-storefront-active a.tp-sa-cs-item:hover:not(.is-active),
    body.tp-storefront-active a.tp-sa-sort-item:hover:not(.is-active),
    .tp-vpp li.tp-sa-cb-item:hover:not(.is-active),
    .tp-vpp li.tp-sa-cb-item.is-highlight:not(.is-active),
    .tp-vpp a.tp-sa-cs-item:hover:not(.is-active),
    .tp-vpp a.tp-sa-sort-item:hover:not(.is-active) {
        background: rgba(255,255,255,0.05) !important;
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }
}

/* Scrollbar custom — discreta, combina com glass */
body .tp-sa-cb-menu::-webkit-scrollbar,
body.tp-storefront-active .tp-sa-cs-popup::-webkit-scrollbar,
body.tp-storefront-active .tp-sa-sort-menu::-webkit-scrollbar,
.tp-vpp .tp-sa-cb-menu::-webkit-scrollbar,
.tp-vpp .tp-sa-cs-popup::-webkit-scrollbar,
.tp-vpp .tp-sa-sort-menu::-webkit-scrollbar {
    width: 8px !important;
}
body .tp-sa-cb-menu::-webkit-scrollbar-track,
body.tp-storefront-active .tp-sa-cs-popup::-webkit-scrollbar-track,
body.tp-storefront-active .tp-sa-sort-menu::-webkit-scrollbar-track,
.tp-vpp .tp-sa-cb-menu::-webkit-scrollbar-track,
.tp-vpp .tp-sa-cs-popup::-webkit-scrollbar-track,
.tp-vpp .tp-sa-sort-menu::-webkit-scrollbar-track {
    background: transparent !important;
}
body .tp-sa-cb-menu::-webkit-scrollbar-thumb,
body.tp-storefront-active .tp-sa-cs-popup::-webkit-scrollbar-thumb,
body.tp-storefront-active .tp-sa-sort-menu::-webkit-scrollbar-thumb,
.tp-vpp .tp-sa-cb-menu::-webkit-scrollbar-thumb,
.tp-vpp .tp-sa-cs-popup::-webkit-scrollbar-thumb,
.tp-vpp .tp-sa-sort-menu::-webkit-scrollbar-thumb {
    background: rgba(15,23,42,0.18) !important;
    border-radius: 4px !important;
}
@media (prefers-color-scheme: dark) {
    body .tp-sa-cb-menu::-webkit-scrollbar-thumb,
    body.tp-storefront-active .tp-sa-cs-popup::-webkit-scrollbar-thumb,
    body.tp-storefront-active .tp-sa-sort-menu::-webkit-scrollbar-thumb,
    .tp-vpp .tp-sa-cb-menu::-webkit-scrollbar-thumb,
    .tp-vpp .tp-sa-cs-popup::-webkit-scrollbar-thumb,
    .tp-vpp .tp-sa-sort-menu::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.18) !important;
    }
}

/* Highlight do termo pesquisado nos items — mais discreto */
body .tp-sa-cb-menu mark,
body.tp-storefront-active .tp-sa-cs-popup mark,
.tp-vpp .tp-sa-cb-menu mark,
.tp-vpp .tp-sa-cs-popup mark {
    background: rgba(37,99,235,0.18) !important;
    color: var(--tp-primary, #2563eb) !important;
    padding: 0 2px !important;
    border-radius: 2px !important;
    font-weight: 700 !important;
}

/* Empty state — quando não há resultados, mensagem amigável */
body .tp-sa-cb-empty,
body.tp-storefront-active .tp-sa-cs-empty,
.tp-vpp .tp-sa-cb-empty,
.tp-vpp .tp-sa-cs-empty {
    padding: 18px 14px !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    text-align: center !important;
    font-size: 12.5px !important;
    font-style: italic !important;
}

/* ════════════════════════════════════════════════════════════════════════════
 * 2026-05-26 — Paginação tp-vpp-pagination (viaturas-para-pecas)
 *
 * Antes: shortcode tinha `LIMIT 24` sem paging — só mostrava primeiras 24.
 * Agora: ?pagina=N + COUNT() + offset → paginação real abaixo do grid.
 * ════════════════════════════════════════════════════════════════════════════ */
.tp-vpp-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    padding: 16px 0;
}

.tp-vpp .tp-vpp-pag-btn,
.tp-vpp .tp-vpp-pag-num,
body.tp-storefront-active .tp-vpp .tp-vpp-pag-btn,
body.tp-storefront-active .tp-vpp .tp-vpp-pag-num {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 14px !important;
    background: rgba(255,255,255,0.65) !important;
    border: 1px solid rgba(15,23,42,0.12) !important;
    border-radius: 10px !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    text-decoration: none !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s !important;
}
.tp-vpp .tp-vpp-pag-num {
    padding: 0 !important;
}

.tp-vpp .tp-vpp-pag-btn:hover,
.tp-vpp .tp-vpp-pag-num:hover,
body.tp-storefront-active .tp-vpp .tp-vpp-pag-btn:hover,
body.tp-storefront-active .tp-vpp .tp-vpp-pag-num:hover {
    background: #fff !important;
    border-color: var(--tp-primary, #2563eb) !important;
    color: var(--tp-primary, #2563eb) !important;
    -webkit-text-fill-color: var(--tp-primary, #2563eb) !important;
}

.tp-vpp .tp-vpp-pag-num.is-current,
body.tp-storefront-active .tp-vpp .tp-vpp-pag-num.is-current {
    background: var(--tp-primary, #2563eb) !important;
    background-image: linear-gradient(135deg, var(--tp-primary, #2563eb) 0%, var(--tp-primary-hover, #1d4ed8) 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    cursor: default !important;
    box-shadow: 0 4px 12px rgba(37,99,235,0.30) !important;
}

.tp-vpp .tp-vpp-pag-ellipsis {
    padding: 0 6px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    user-select: none;
}

@media (prefers-color-scheme: dark) {
    .tp-vpp .tp-vpp-pag-btn,
    .tp-vpp .tp-vpp-pag-num,
    body.tp-storefront-active .tp-vpp .tp-vpp-pag-btn,
    body.tp-storefront-active .tp-vpp .tp-vpp-pag-num {
        background: rgba(20,25,35,0.7) !important;
        border-color: rgba(255,255,255,0.10) !important;
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }
    .tp-vpp .tp-vpp-pag-btn:hover,
    .tp-vpp .tp-vpp-pag-num:hover,
    body.tp-storefront-active .tp-vpp .tp-vpp-pag-btn:hover,
    body.tp-storefront-active .tp-vpp .tp-vpp-pag-num:hover {
        background: rgba(30,40,55,0.92) !important;
    }
}

/* Header search input (.search-input) — REVERTED 2026-05-26 a pedido do user.
 * O tema Ignavo tem o design correcto; o override anterior aplicava fundo
 * branco/dark sobre o input do header e quebrava a aparência nativa do tema. */

/* ════════════════════════════════════════════════════════════════════════════
 * 2026-05-26 — Single product page overrides (queixas user):
 *
 *   1. Specs table: rows com fundo cinza-claro e texto cinza-claro (invisível)
 *   2. "Não disponível para compra online" — botão cinza com texto preto
 *   3. "Enviar mensagem" (CF7 submit) — fundo azul-escuro com texto preto
 *   4. Action buttons (share/heart/filtros) — circles brancos com ícones quase
 *      invisíveis
 *   5. Tabs do produto — títulos colados às bordas (falta padding)
 *   6. Formulário de pedido de informações — design genérico do tema
 *
 * Tudo scoped com `body.tp-storefront-active` + `!important` para vencer
 * resets do tema Ignavo.
 * ════════════════════════════════════════════════════════════════════════════ */

/* ── Specs table — fundo escuro consistente + texto legível ──────────── */
body.tp-storefront-active .tp-sp-tab-panel .tp-specs-table,
body.tp-storefront-active .tp-specs-table {
    background: transparent !important;
}
body.tp-storefront-active .tp-sp-tab-panel .tp-specs-table tr,
body.tp-storefront-active .tp-specs-table tr {
    background: transparent !important;
}
body.tp-storefront-active .tp-sp-tab-panel .tp-specs-table tr:nth-child(even),
body.tp-storefront-active .tp-specs-table tr:nth-child(even) {
    background: rgba(255,255,255,0.02) !important;
}
body.tp-storefront-active .tp-sp-tab-panel .tp-specs-table th,
body.tp-storefront-active .tp-specs-table th {
    background: transparent !important;
    color: rgba(148, 163, 184, 0.9) !important;
    -webkit-text-fill-color: rgba(148, 163, 184, 0.9) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 12px 16px !important;
    width: 38% !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
body.tp-storefront-active .tp-sp-tab-panel .tp-specs-table td,
body.tp-storefront-active .tp-specs-table td {
    background: transparent !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
body.tp-storefront-active .tp-sp-tab-panel .tp-specs-table tr:hover,
body.tp-storefront-active .tp-specs-table tr:hover {
    background: rgba(37,99,235,0.06) !important;
}

/* Valor "Não disponível" — itálico + muted (não branco-cinzento ilegível) */
body.tp-storefront-active .tp-specs-table td:has-text("Não disponível"),
body.tp-storefront-active .tp-specs-table .tp-specs-na {
    color: rgba(148,163,184,0.6) !important;
    -webkit-text-fill-color: rgba(148,163,184,0.6) !important;
    font-style: italic !important;
}

/* ── CTA disabled "Não disponível para compra online" ─────────────────── */
body.tp-storefront-active button.tp-sp-disabled-cta,
body.tp-storefront-active .tp-sp-disabled-cta {
    display: block !important;
    width: 100% !important;
    background: rgba(255,255,255,0.04) !important;
    background-image: none !important;
    border: 1px dashed rgba(255,255,255,0.15) !important;
    color: rgba(148,163,184,0.8) !important;
    -webkit-text-fill-color: rgba(148,163,184,0.8) !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* ── Action buttons (share/heart/filters) — top-right do produto ─────── */
body.tp-storefront-active button.tp-sp-actbtn,
body.tp-storefront-active a.tp-sp-actbtn,
body.tp-storefront-active .tp-sp-actbtn {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
body.tp-storefront-active button.tp-sp-actbtn svg,
body.tp-storefront-active a.tp-sp-actbtn svg,
body.tp-storefront-active .tp-sp-actbtn svg {
    color: #e2e8f0 !important;
    width: 18px !important;
    height: 18px !important;
}
body.tp-storefront-active .tp-sp-actbtn:hover,
body.tp-storefront-active .tp-sp-actbtn:focus {
    background: rgba(37,99,235,0.14) !important;
    border-color: rgba(37,99,235,0.45) !important;
    color: var(--tp-primary, #60a5fa) !important;
    -webkit-text-fill-color: var(--tp-primary, #60a5fa) !important;
}
body.tp-storefront-active .tp-sp-actbtn:hover svg,
body.tp-storefront-active .tp-sp-actbtn:focus svg {
    color: var(--tp-primary, #60a5fa) !important;
}
body.tp-storefront-active .tp-sp-actbtn-fav:hover {
    background: rgba(244,63,94,0.14) !important;
    border-color: rgba(244,63,94,0.45) !important;
    color: #f87171 !important;
}
body.tp-storefront-active .tp-sp-actbtn-fav:hover svg,
body.tp-storefront-active .tp-sp-actbtn-fav.is-active svg {
    color: #f87171 !important;
    fill: currentColor !important;
}

/* ── CF7 / contact form button "Enviar mensagem" ──────────────────────── */
body.tp-storefront-active .wpcf7 input[type="submit"],
body.tp-storefront-active .wpcf7 button[type="submit"],
body.tp-storefront-active form.wpcf7-form input.wpcf7-submit,
body.tp-storefront-active form.wpcf7-form button.wpcf7-submit {
    background: var(--tp-primary, #2563eb) !important;
    background-image: linear-gradient(135deg, var(--tp-primary, #2563eb) 0%, var(--tp-primary-hover, #1d4ed8) 100%) !important;
    border: 0 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    padding: 12px 28px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: 0 4px 14px rgba(37,99,235,0.28) !important;
    text-shadow: none !important;
    cursor: pointer !important;
    transition: transform 0.12s, box-shadow 0.12s !important;
}
body.tp-storefront-active .wpcf7 input[type="submit"]:hover,
body.tp-storefront-active .wpcf7 button[type="submit"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 22px rgba(37,99,235,0.36) !important;
}

/* ── Form fields (CF7) — inputs visíveis em dark mode ────────────────── */
body.tp-storefront-active .wpcf7 input[type="text"],
body.tp-storefront-active .wpcf7 input[type="email"],
body.tp-storefront-active .wpcf7 input[type="tel"],
body.tp-storefront-active .wpcf7 input[type="url"],
body.tp-storefront-active .wpcf7 input[type="number"],
body.tp-storefront-active .wpcf7 select,
body.tp-storefront-active .wpcf7 textarea {
    width: 100% !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    box-shadow: none !important;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s !important;
    box-sizing: border-box !important;
}
body.tp-storefront-active .wpcf7 input::placeholder,
body.tp-storefront-active .wpcf7 textarea::placeholder {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    opacity: 1 !important;
}
body.tp-storefront-active .wpcf7 input:focus,
body.tp-storefront-active .wpcf7 textarea:focus,
body.tp-storefront-active .wpcf7 select:focus {
    outline: none !important;
    border-color: var(--tp-primary, #2563eb) !important;
    background: rgba(255,255,255,0.06) !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.18) !important;
}
body.tp-storefront-active .wpcf7 label {
    color: rgba(148,163,184,0.95) !important;
    -webkit-text-fill-color: rgba(148,163,184,0.95) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    display: block !important;
}
body.tp-storefront-active .wpcf7 textarea {
    min-height: 110px !important;
    resize: vertical !important;
}
body.tp-storefront-active .wpcf7 p {
    margin: 0 0 14px !important;
}

@media (prefers-color-scheme: light) {
    body.tp-storefront-active .wpcf7 input[type="text"],
    body.tp-storefront-active .wpcf7 input[type="email"],
    body.tp-storefront-active .wpcf7 input[type="tel"],
    body.tp-storefront-active .wpcf7 input[type="url"],
    body.tp-storefront-active .wpcf7 input[type="number"],
    body.tp-storefront-active .wpcf7 select,
    body.tp-storefront-active .wpcf7 textarea {
        background: rgba(255,255,255,0.95) !important;
        border-color: rgba(15,23,42,0.12) !important;
        color: #0f172a !important;
        -webkit-text-fill-color: #0f172a !important;
    }
    body.tp-storefront-active .wpcf7 input::placeholder,
    body.tp-storefront-active .wpcf7 textarea::placeholder {
        color: #94a3b8 !important;
        -webkit-text-fill-color: #94a3b8 !important;
    }
    body.tp-storefront-active .wpcf7 label {
        color: #475569 !important;
        -webkit-text-fill-color: #475569 !important;
    }
}

/* ── Tabs dentro do produto — padding lateral ────────────────────────── */
body.tp-storefront-active .tp-sp-acc-content,
body.tp-storefront-active .tp-sp-acc-body,
body.tp-storefront-active .tp-sp-tab-panel {
    padding: 20px 24px !important;
}
@media (max-width: 768px) {
    body.tp-storefront-active .tp-sp-acc-content,
    body.tp-storefront-active .tp-sp-acc-body,
    body.tp-storefront-active .tp-sp-tab-panel {
        padding: 16px 18px !important;
    }
}

/* Accordion head — também respiração */
body.tp-storefront-active .tp-sp-acc-head {
    padding: 14px 20px !important;
}

/* Section title within tab body (e.g. "Referências", "Especificações") */
body.tp-storefront-active .tp-sp-tab-panel h4 {
    margin: 0 0 16px !important;
    padding-top: 4px !important;
}
body.tp-storefront-active .tp-sp-tab-panel h4 + .tp-specs-table,
body.tp-storefront-active .tp-sp-tab-panel h4 + table {
    margin-bottom: 24px !important;
}

/* ════════════════════════════════════════════════════════════════════════════
 * 2026-05-26 (v2) — WhatsApp widget positioning
 *
 * V1 falhou: `#wa > * { bottom: 0 }` empurrava o widget PARA BAIXO em vez de
 * subir, porque o widget interno (`.wa-chat-bubble` / `.nta-wa-button`) tem
 * `position: fixed; bottom: <X>px` próprio e a regra `bottom: 0` resetava o
 * próprio widget. Aqui targetamos directamente o widget pelo selector certo:
 * todos os elementos fixed no canto inferior-direito conhecidos do plugin
 * `nta-wa` (NTA WhatsApp Chat). 130px desktop / 120px mobile.
 * ════════════════════════════════════════════════════════════════════════════ */
/* WhatsApp widget — selectors agressivos do plugin nta-wa.
 * V3: 180px desktop / 160px mobile (user pediu para subir mais).
 * Cobre TODAS variants conhecidas (.wa-chat-*, .nta-wa-*, .wachat-*, etc) */
.wa-chat-bubble,
.wa-chat-box,
.nta-wa-button,
.nta-wa-popup,
.nta-wa-wrapper,
.wachat,
.wachat-bubble,
.whatsapp-chat,
.whatsapp-chat-button,
[id^="nta-wa-"],
[class*="wa-chat"],
#wa .wa-chat-bubble,
#wa .nta-wa-button,
#wa .wachat,
#wa > div,
body.tp-storefront-active .wa-chat-bubble,
body.tp-storefront-active .nta-wa-button {
    bottom: 130px !important;
    z-index: 9998 !important;
}
@media (max-width: 768px) {
    .wa-chat-bubble,
    .wa-chat-box,
    .nta-wa-button,
    .nta-wa-popup,
    .nta-wa-wrapper,
    .wachat,
    .wachat-bubble,
    .whatsapp-chat,
    .whatsapp-chat-button,
    [id^="nta-wa-"],
    [class*="wa-chat"],
    #wa > div,
    body.tp-storefront-active .wa-chat-bubble,
    body.tp-storefront-active .nta-wa-button {
        bottom: 110px !important;
    }
}

/* Compare drawer — z-index abaixo do WhatsApp. */
body.tp-storefront-active .tp-compare-drawer,
.tp-compare-drawer {
    z-index: 9997 !important;
}

/* ════════════════════════════════════════════════════════════════════════════
 * 2026-05-26 (v3) — Product page polish round 2 (queixas user)
 *
 *   • Tab title (accordion head) sem padding superior — adicionar
 *   • Outras Peças da Viatura: tabela de peças com fundo cinza-claro (igual
 *     ao problema das specs, mas tabela diferente). Selector: .tp-sp-parts-table
 *   • Searchbar dentro da tab Outras Peças: design errado + "bleeding" para
 *     fora quando a tab está collapsed (falta `overflow: hidden` no body)
 *   • Browser autocomplete (-webkit-autofill) deixa fundo amarelo+texto preto
 *     → forçar fundo correcto via inset box-shadow trick
 *   • Action buttons (.tp-sp-actbtn-*) e zoom icon: cream → glass dark final
 *   • Acordeon collapsed deve REALMENTE ocultar o body (alguns themes mantêm
 *     visibility com `display: block`)
 * ════════════════════════════════════════════════════════════════════════════ */

/* ── Top padding antes de cada secção do tab (espaçamento do título) ─── */
body.tp-storefront-active .tp-sp-acc-wrap {
    margin-top: 32px !important;
}
body.tp-storefront-active .tp-sp-acc-item {
    margin-bottom: 14px !important;
}

/* ── Accordion collapsed: hide body completely (não bleed para fora) ──── */
body.tp-storefront-active .tp-sp-acc-item:not(.is-open) .tp-sp-acc-body,
body.tp-storefront-active .tp-sp-acc-item:not(.is-open) .tp-sp-acc-content {
    display: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}
body.tp-storefront-active .tp-sp-acc-item.is-open .tp-sp-acc-body,
body.tp-storefront-active .tp-sp-acc-item.is-open .tp-sp-acc-content {
    overflow: hidden !important;
    /* hidden no container; o scroll na tabela vem do wrapper interno */
}

/* ── Tabela "Outras Peças da Viatura" + qualquer tabela dentro do panel ── */
body.tp-storefront-active .tp-sp-tab-panel table,
body.tp-storefront-active .tp-sp-acc-content table,
body.tp-storefront-active .tp-sp-parts-table,
body.tp-storefront-active table.tp-sp-table {
    width: 100% !important;
    background: transparent !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}
body.tp-storefront-active .tp-sp-tab-panel table thead,
body.tp-storefront-active .tp-sp-acc-content table thead,
body.tp-storefront-active .tp-sp-parts-table thead {
    background: transparent !important;
}
body.tp-storefront-active .tp-sp-tab-panel table thead th,
body.tp-storefront-active .tp-sp-acc-content table thead th,
body.tp-storefront-active .tp-sp-parts-table thead th {
    background: transparent !important;
    color: rgba(148, 163, 184, 0.9) !important;
    -webkit-text-fill-color: rgba(148, 163, 184, 0.9) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid rgba(255,255,255,0.10) !important;
    text-align: left !important;
}
body.tp-storefront-active .tp-sp-tab-panel table tbody tr,
body.tp-storefront-active .tp-sp-acc-content table tbody tr,
body.tp-storefront-active .tp-sp-parts-table tbody tr {
    background: transparent !important;
}
body.tp-storefront-active .tp-sp-tab-panel table tbody tr:hover,
body.tp-storefront-active .tp-sp-acc-content table tbody tr:hover,
body.tp-storefront-active .tp-sp-parts-table tbody tr:hover {
    background: rgba(37,99,235,0.06) !important;
}
body.tp-storefront-active .tp-sp-tab-panel table tbody td,
body.tp-storefront-active .tp-sp-acc-content table tbody td,
body.tp-storefront-active .tp-sp-parts-table tbody td {
    background: transparent !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

/* ── Searchbar dentro do panel "Outras Peças" — compacto, glass dark ─── */
body.tp-storefront-active .tp-sp-parts-search,
body.tp-storefront-active input.tp-sp-parts-search,
body.tp-storefront-active .tp-sp-acc-content input[type="search"],
body.tp-storefront-active .tp-sp-acc-content input[type="text"] {
    width: 100% !important;
    background-color: rgba(255,255,255,0.04) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 10px !important;
    /* Compacto: 10px vertical em vez de 12+12 (era too fat) */
    padding: 9px 14px 9px 38px !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    font-size: 13.5px !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}
body.tp-storefront-active .tp-sp-parts-search:focus,
body.tp-storefront-active .tp-sp-acc-content input[type="search"]:focus,
body.tp-storefront-active .tp-sp-acc-content input[type="text"]:focus {
    outline: none !important;
    border-color: var(--tp-primary, #2563eb) !important;
    background-color: rgba(255,255,255,0.06) !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.18) !important;
}
body.tp-storefront-active .tp-sp-parts-search::placeholder,
body.tp-storefront-active .tp-sp-acc-content input[type="search"]::placeholder,
body.tp-storefront-active .tp-sp-acc-content input[type="text"]::placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    opacity: 1 !important;
}

/* Badge de estado das peças (Indisponível, Em stock, Reservada, etc.) */
body.tp-storefront-active .tp-sp-parts-status,
body.tp-storefront-active .tp-sp-parts-table .badge,
body.tp-storefront-active .tp-sp-tab-panel .badge,
body.tp-storefront-active .tp-sp-acc-content .badge {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.3 !important;
    background: rgba(244,63,94,0.15) !important;
    color: #fca5a5 !important;
    -webkit-text-fill-color: #fca5a5 !important;
}
body.tp-storefront-active .tp-sp-parts-status.is-available,
body.tp-storefront-active .tp-sp-parts-status[data-state="available"] {
    background: rgba(34,197,94,0.15) !important;
    color: #86efac !important;
    -webkit-text-fill-color: #86efac !important;
}
body.tp-storefront-active .tp-sp-parts-status.is-reserved,
body.tp-storefront-active .tp-sp-parts-status[data-state="reserved"] {
    background: rgba(245,158,11,0.18) !important;
    color: #fcd34d !important;
    -webkit-text-fill-color: #fcd34d !important;
}

/* ── Browser autocomplete (-webkit-autofill) — desliga o fundo amarelo ── */
body.tp-storefront-active input:-webkit-autofill,
body.tp-storefront-active input:-webkit-autofill:hover,
body.tp-storefront-active input:-webkit-autofill:focus,
body.tp-storefront-active textarea:-webkit-autofill,
body.tp-storefront-active textarea:-webkit-autofill:hover,
body.tp-storefront-active textarea:-webkit-autofill:focus,
.tp-vpp input:-webkit-autofill,
.tp-vpp input:-webkit-autofill:hover,
.tp-vpp input:-webkit-autofill:focus {
    /* Inset box-shadow truque para sobrepor o fill amarelo do browser */
    -webkit-box-shadow: 0 0 0 1000px rgba(20,25,35,0.95) inset !important;
    box-shadow: 0 0 0 1000px rgba(20,25,35,0.95) inset !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    caret-color: #e2e8f0 !important;
    transition: background-color 9999s ease-in-out 0s !important;
}
@media (prefers-color-scheme: light) {
    body.tp-storefront-active input:-webkit-autofill,
    body.tp-storefront-active input:-webkit-autofill:hover,
    body.tp-storefront-active input:-webkit-autofill:focus {
        -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
        box-shadow: 0 0 0 1000px #fff inset !important;
        -webkit-text-fill-color: #0f172a !important;
        caret-color: #0f172a !important;
    }
}

/* ── Action buttons MAIS aggressive (cream → glass dark) ─────────────── */
body.tp-storefront-active .tp-sp-actbtn,
body.tp-storefront-active button.tp-sp-actbtn,
body.tp-storefront-active a.tp-sp-actbtn,
.tp-sp-page .tp-sp-actbtn {
    background: rgba(255,255,255,0.06) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.15s, border-color 0.15s, transform 0.12s !important;
}
body.tp-storefront-active .tp-sp-actbtn svg,
.tp-sp-page .tp-sp-actbtn svg {
    width: 18px !important;
    height: 18px !important;
    color: #e2e8f0 !important;
    stroke: currentColor !important;
    fill: none !important;
}
body.tp-storefront-active .tp-sp-actbtn:hover,
.tp-sp-page .tp-sp-actbtn:hover {
    background: rgba(37,99,235,0.15) !important;
    border-color: rgba(37,99,235,0.45) !important;
    transform: translateY(-1px) !important;
}
body.tp-storefront-active .tp-sp-actbtn:hover svg,
.tp-sp-page .tp-sp-actbtn:hover svg {
    color: #60a5fa !important;
}
body.tp-storefront-active .tp-sp-actbtn-fav:hover,
.tp-sp-page .tp-sp-actbtn-fav:hover {
    background: rgba(244,63,94,0.15) !important;
    border-color: rgba(244,63,94,0.45) !important;
}
body.tp-storefront-active .tp-sp-actbtn-fav:hover svg,
body.tp-storefront-active .tp-sp-actbtn-fav.is-active svg,
.tp-sp-page .tp-sp-actbtn-fav:hover svg,
.tp-sp-page .tp-sp-actbtn-fav.is-active svg {
    color: #f87171 !important;
    fill: currentColor !important;
}

/* ── PhotoSwipe zoom buttons (icon "mostrar imagem em grande") ─────────── */
body.tp-storefront-active .pswp__button,
.pswp__button {
    background: rgba(15,23,42,0.85) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-radius: 50% !important;
    opacity: 0.9 !important;
}
body.tp-storefront-active .pswp__button svg,
.pswp__button svg {
    color: #fff !important;
}
body.tp-storefront-active .pswp__button:hover,
.pswp__button:hover {
    opacity: 1 !important;
    background: rgba(37,99,235,0.85) !important;
}

/* ════════════════════════════════════════════════════════════════════════════
 * 2026-05-26 (v4) — Garage modal popup polish + bug fixes (queixas user):
 *
 *   • Texto branco em fundo branco no popup — adicionar overrides EXPLICITOS
 *     para o popup (.garage-popup) com selectors muito específicos
 *   • O modal renderiza-se em `.garage-popup .garage-form-body` que tem
 *     fundo dark (theme). My inputs deviam aparecer light bg + dark text,
 *     mas algum reset está a metê-los light bg + light text → invisíveis.
 *   • Action buttons na ficha do produto AINDA cinza. Reforço com selectores
 *     muito específicos + dark glass forçado.
 *   • Wishlist heart counter — força visibilidade da badge.
 * ════════════════════════════════════════════════════════════════════════════ */

/* ── Garage popup — força dark glass nos inputs do form interno ──────── */
.garage-popup .tp-garage-form,
body .garage-popup .tp-garage-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 4px 0 !important;
}

.garage-popup .tp-sa-group,
.garage-popup .tp-garage-form .tp-sa-group,
body .garage-popup .tp-sa-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 !important;
}

.garage-popup .tp-sa-group-title,
body .garage-popup .tp-sa-group-title {
    color: rgba(148,163,184,0.9) !important;
    -webkit-text-fill-color: rgba(148,163,184,0.9) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin: 0 !important;
}

.garage-popup .tp-sa-cb-input-wrap,
body .garage-popup .tp-sa-cb-input-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 12px !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}
.garage-popup .tp-sa-cb.is-open .tp-sa-cb-input-wrap,
.garage-popup .tp-sa-cb-input-wrap:focus-within,
body .garage-popup .tp-sa-cb.is-open .tp-sa-cb-input-wrap {
    border-color: var(--tp-primary, #2563eb) !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.18) !important;
    background: rgba(255,255,255,0.07) !important;
}

.garage-popup .tp-sa-cb-input,
body .garage-popup .tp-sa-cb-input {
    flex: 1 !important;
    width: 100% !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    padding: 11px 36px 11px 14px !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    outline: none !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}
.garage-popup .tp-sa-cb-input::placeholder,
body .garage-popup .tp-sa-cb-input::placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    opacity: 1 !important;
    font-weight: 400 !important;
}
.garage-popup .tp-sa-cb-input:disabled,
body .garage-popup .tp-sa-cb-input:disabled {
    cursor: not-allowed !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
}
.garage-popup .tp-sa-cb.is-disabled,
body .garage-popup .tp-sa-cb.is-disabled {
    opacity: 0.55 !important;
}

/* Caret + clear button dentro do popup garage */
.garage-popup .tp-sa-cb-clear,
body .garage-popup .tp-sa-cb-clear {
    background: transparent !important;
    border: 0 !important;
    padding: 4px !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 0 !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.garage-popup .tp-sa-cb-clear:hover,
body .garage-popup .tp-sa-cb-clear:hover {
    background: rgba(244,63,94,0.15) !important;
    color: #ef4444 !important;
}
.garage-popup .tp-sa-cb-clear[hidden],
body .garage-popup .tp-sa-cb-clear[hidden] {
    display: none !important;
}
.garage-popup .tp-sa-cb-caret,
body .garage-popup .tp-sa-cb-caret {
    color: #94a3b8 !important;
    pointer-events: none !important;
}

/* Submit button "Guardar viatura" — gradient brand forte */
.garage-popup .tp-garage-submit,
.garage-popup button.tp-sa-apply,
body .garage-popup .tp-garage-submit,
body .garage-popup button.tp-sa-apply {
    display: block !important;
    width: 100% !important;
    background: var(--tp-primary, #2563eb) !important;
    background-image: linear-gradient(135deg, var(--tp-primary, #2563eb) 0%, var(--tp-primary-hover, #1d4ed8) 100%) !important;
    border: 0 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    padding: 14px 22px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin-top: 8px !important;
    box-shadow: 0 6px 18px rgba(37,99,235,0.32) !important;
    cursor: pointer !important;
    transition: transform 0.12s, box-shadow 0.12s !important;
}
.garage-popup .tp-garage-submit:hover,
body .garage-popup .tp-garage-submit:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 26px rgba(37,99,235,0.42) !important;
}

/* Dropdown menu dentro do garage popup — fundo opaco */
.garage-popup .tp-sa-cb-menu,
body .garage-popup .tp-sa-cb-menu {
    background: #0f1419 !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 50px -12px rgba(0,0,0,0.7) !important;
    padding: 6px !important;
    margin-top: 6px !important;
}
.garage-popup .tp-sa-cb-item,
body .garage-popup .tp-sa-cb-item {
    padding: 10px 14px !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    font-size: 13.5px !important;
}
.garage-popup .tp-sa-cb-item:hover,
.garage-popup .tp-sa-cb-item.is-highlight,
body .garage-popup .tp-sa-cb-item:hover {
    background: rgba(37,99,235,0.14) !important;
    color: var(--tp-primary, #60a5fa) !important;
    -webkit-text-fill-color: var(--tp-primary, #60a5fa) !important;
}
.garage-popup .tp-sa-cb-item.is-active,
body .garage-popup .tp-sa-cb-item.is-active {
    background: rgba(37,99,235,0.20) !important;
    color: var(--tp-primary, #60a5fa) !important;
    -webkit-text-fill-color: var(--tp-primary, #60a5fa) !important;
    font-weight: 700 !important;
}

/* (2026-05-26: bloco antigo de "Action buttons" removido —
 *  ainda activava `prefers-color-scheme: light` com #0f172a sobre fundo
 *  semi-transparente, que ficava invisível em themes light. Regras
 *  definitivas com fundo escuro sólido vivem agora no final do ficheiro.) */

/* ════════════════════════════════════════════════════════════════════════════
 * 2026-05-26 (v5) — Polish round 3 — queixas pendentes
 * ════════════════════════════════════════════════════════════════════════════ */

/* ── "Não encontrámos a peça" form (.tp-sa-empty-form) textarea opaque ── */
body.tp-storefront-active .tp-sa-empty-form textarea,
.tp-sa-empty-form textarea,
body.tp-storefront-active .tp-sa-empty-form input[type="text"],
body.tp-storefront-active .tp-sa-empty-form input[type="email"],
body.tp-storefront-active .tp-sa-empty-form input[type="tel"] {
    width: 100% !important;
    background: rgba(255,255,255,0.04) !important;
    background-color: rgba(255,255,255,0.04) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
    resize: vertical !important;
    min-height: 96px !important;
}
body.tp-storefront-active .tp-sa-empty-form textarea::placeholder,
body.tp-storefront-active .tp-sa-empty-form input::placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    opacity: 1 !important;
}
body.tp-storefront-active .tp-sa-empty-form textarea:focus,
body.tp-storefront-active .tp-sa-empty-form input:focus {
    outline: none !important;
    border-color: var(--tp-primary, #2563eb) !important;
    background: rgba(255,255,255,0.06) !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.18) !important;
}

/* ── Action buttons ULTIMATE FIX — wrapper + inner svg + inline-style override
 * Selector triplo ancestor `body.tp-storefront-active.product` (single product)
 * tem specifity ainda maior. Adicionalmente, JS injectará style attr. */
html body.tp-storefront-active button.tp-sp-actbtn,
html body.tp-storefront-active a.tp-sp-actbtn,
html body.tp-storefront-active .tp-sp-actbtn {
    background: rgba(20,25,35,0.65) !important;
    background-color: rgba(20,25,35,0.65) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}
html body.tp-storefront-active .tp-sp-actbtn svg {
    width: 18px !important;
    height: 18px !important;
    color: #fff !important;
    stroke: #fff !important;
    fill: none !important;
}
html body.tp-storefront-active .tp-sp-actbtn-fav svg.is-active,
html body.tp-storefront-active .tp-sp-actbtn-fav.is-active svg {
    color: #f87171 !important;
    stroke: #f87171 !important;
    fill: #f87171 !important;
}
html body.tp-storefront-active .tp-sp-actbtn:hover {
    background: rgba(37,99,235,0.30) !important;
    border-color: rgba(37,99,235,0.7) !important;
    color: #fff !important;
}

/* Idem para botões dos cards (.tp-pc-cart, .tp-pc-compare, .tp-pc-fav) */
html body.tp-storefront-active a.tp-pc-cart,
html body.tp-storefront-active a.tp-pc-compare,
html body.tp-storefront-active a.tp-pc-fav,
html body.tp-storefront-active button.tp-pc-cart,
html body.tp-storefront-active button.tp-pc-compare,
html body.tp-storefront-active button.tp-pc-fav,
html body.tp-storefront-active .tp-pc-cart,
html body.tp-storefront-active .tp-pc-compare,
html body.tp-storefront-active .tp-pc-fav {
    background: rgba(20,25,35,0.75) !important;
    background-color: rgba(20,25,35,0.75) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    color: #fff !important;
}
html body.tp-storefront-active .tp-pc-cart svg,
html body.tp-storefront-active .tp-pc-compare svg,
html body.tp-storefront-active .tp-pc-fav svg {
    color: #fff !important;
    stroke: #fff !important;
}
html body.tp-storefront-active .tp-pc-fav.is-active svg,
html body.tp-storefront-active .tp-pc-fav:hover svg {
    color: #f87171 !important;
    stroke: #f87171 !important;
    fill: #f87171 !important;
}

/* ──────────────────────────────────────────────────────────────────────────
 * ROOT-CAUSE FIX (2026-05-26): user reportou "está tudo igual" porque o CSS
 * anterior alvejava `.tp-sp-parts-*` mas o template real (tp-sync-client
 * /templates/frontend/tabs/other-vehicle-parts.php) usa `.tp-otherp-*`.
 * Este bloco mapeia os selectors correctos com cores hardcoded (sem var)
 * para garantir contraste em qualquer modo light/dark do tema.
 * ────────────────────────────────────────────────────────────────────── */

/* Toolbar do "Outras Peças da Viatura" — searchbar compacto glass dark */
html body.tp-storefront-active .tp-tab-other-parts {
    margin-top: 4px !important;
}
html body.tp-storefront-active .tp-otherp-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    background: transparent !important;
    padding: 0 !important;
}
html body.tp-storefront-active .tp-otherp-search {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    max-width: 360px !important;
    background: rgba(20,25,35,0.55) !important;
    background-color: rgba(20,25,35,0.55) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    border-radius: 999px !important;
    padding: 6px 10px 6px 36px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: none !important;
}
html body.tp-storefront-active .tp-otherp-search > svg {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 16px !important;
    height: 16px !important;
    color: #94a3b8 !important;
    stroke: #94a3b8 !important;
    pointer-events: none !important;
}
html body.tp-storefront-active input.tp-otherp-search-input,
html body.tp-storefront-active .tp-otherp-search-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    outline: none !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    padding: 4px 6px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
    height: auto !important;
    border-radius: 0 !important;
}
html body.tp-storefront-active .tp-otherp-search-input::placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    opacity: 1 !important;
}
html body.tp-storefront-active .tp-otherp-search:focus-within {
    border-color: rgba(37,99,235,0.7) !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.20) !important;
}
html body.tp-storefront-active .tp-otherp-count {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}
html body.tp-storefront-active .tp-otherp-count-shown,
html body.tp-storefront-active .tp-otherp-count-total {
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    font-weight: 700 !important;
}

/* Tabela "Outras peças" — dark glass com bordas finas */
html body.tp-storefront-active .tp-otherp-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    color: #e2e8f0 !important;
}
html body.tp-storefront-active .tp-otherp-table thead tr,
html body.tp-storefront-active .tp-otherp-table thead {
    background: rgba(255,255,255,0.04) !important;
    background-color: rgba(255,255,255,0.04) !important;
}
html body.tp-storefront-active .tp-otherp-table thead th {
    background: transparent !important;
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 11px 14px !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(255,255,255,0.10) !important;
}
html body.tp-storefront-active .tp-otherp-table tbody tr,
html body.tp-storefront-active .tp-otherp-row {
    background: transparent !important;
    background-color: transparent !important;
    transition: background-color 0.12s ease !important;
}
html body.tp-storefront-active .tp-otherp-table tbody tr:hover,
html body.tp-storefront-active .tp-otherp-row:hover {
    background: rgba(255,255,255,0.04) !important;
    background-color: rgba(255,255,255,0.04) !important;
    cursor: pointer !important;
}
html body.tp-storefront-active .tp-otherp-table tbody td,
html body.tp-storefront-active .tp-otherp-table tbody th {
    padding: 10px 14px !important;
    border-top: 1px solid rgba(255,255,255,0.07) !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    font-size: 13.5px !important;
    background: transparent !important;
    vertical-align: middle !important;
}
html body.tp-storefront-active .tp-otherp-link {
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}
html body.tp-storefront-active .tp-otherp-link:hover .tp-otherp-title {
    color: #93c5fd !important;
    -webkit-text-fill-color: #93c5fd !important;
}
html body.tp-storefront-active .tp-otherp-title {
    font-weight: 600 !important;
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    line-height: 1.35 !important;
}
html body.tp-storefront-active .tp-otherp-ref {
    font-size: 11.5px !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
}
html body.tp-storefront-active .tp-otherp-price {
    text-align: right !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    color: #fbbf24 !important;
    -webkit-text-fill-color: #fbbf24 !important;
}
html body.tp-storefront-active .tp-otherp-price .woocommerce-Price-amount,
html body.tp-storefront-active .tp-otherp-price bdi,
html body.tp-storefront-active .tp-otherp-price .woocommerce-Price-currencySymbol {
    color: #fbbf24 !important;
    -webkit-text-fill-color: #fbbf24 !important;
}
html body.tp-storefront-active .tp-td-na {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    font-style: italic !important;
    font-weight: 500 !important;
}

/* Badges Disponível / Indisponível — pills coloridas com contraste alto */
html body.tp-storefront-active .tp-otherp-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    border: 1px solid transparent !important;
    background-image: none !important;
}
html body.tp-storefront-active .tp-otherp-badge.tp-otherp-badge-ok,
html body.tp-storefront-active .tp-otherp-badge-ok {
    background: rgba(34,197,94,0.18) !important;
    background-color: rgba(34,197,94,0.18) !important;
    border-color: rgba(34,197,94,0.45) !important;
    color: #4ade80 !important;
    -webkit-text-fill-color: #4ade80 !important;
}
html body.tp-storefront-active .tp-otherp-badge.tp-otherp-badge-out,
html body.tp-storefront-active .tp-otherp-badge-out {
    background: rgba(239,68,68,0.16) !important;
    background-color: rgba(239,68,68,0.16) !important;
    border-color: rgba(239,68,68,0.45) !important;
    color: #fca5a5 !important;
    -webkit-text-fill-color: #fca5a5 !important;
}

/* Pager — botões dark glass */
html body.tp-storefront-active .tp-otherp-pager {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 14px !important;
    color: #cbd5e1 !important;
}
html body.tp-storefront-active .tp-otherp-pager-btn,
html body.tp-storefront-active button.tp-otherp-pager-btn {
    background: rgba(20,25,35,0.55) !important;
    background-color: rgba(20,25,35,0.55) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.12s, border-color 0.12s !important;
}
html body.tp-storefront-active .tp-otherp-pager-btn:hover:not(:disabled) {
    background: rgba(37,99,235,0.25) !important;
    border-color: rgba(37,99,235,0.5) !important;
}
html body.tp-storefront-active .tp-otherp-pager-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}
html body.tp-storefront-active .tp-otherp-pager-info {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    font-size: 12.5px !important;
}
html body.tp-storefront-active .tp-otherp-empty {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    text-align: center !important;
    padding: 28px 14px !important;
    font-style: italic !important;
}

/* ──────────────────────────────────────────────────────────────────────────
 * GARAGE POPUP — chrome dark glass + override do tp-search-block injectado
 * ────────────────────────────────────────────────────────────────────── */
html body .garage-popup,
body .garage-popup {
    z-index: 99999 !important;
}
html body .garage-popup .site-popup-inner,
html body .garage-popup .popup-inner,
body .garage-popup .site-popup-inner,
body .garage-popup .popup-inner {
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%) !important;
    background-color: #0f172a !important;
    background-image: linear-gradient(160deg, #1e293b 0%, #0f172a 100%) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 18px !important;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) inset !important;
    padding: 28px 26px !important;
    max-width: 460px !important;
}
html body .garage-popup .entry-title,
html body .garage-popup .garage-form-header h4,
html body .garage-popup h4 {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
}
html body .garage-popup .garage-form-header p,
html body .garage-popup p,
html body .garage-popup .garage-empty {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    margin: 0 0 14px 0 !important;
}
html body .garage-popup .site-close,
html body .garage-popup .site-close-button {
    color: #94a3b8 !important;
    background: rgba(255,255,255,0.06) !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
}
html body .garage-popup .site-close-button:hover {
    background: rgba(239,68,68,0.18) !important;
    color: #fca5a5 !important;
}

/* Override do tp-search-block QUANDO injectado DENTRO do garage-popup */
html body .garage-popup .tp-search-block,
body .garage-popup .tp-search-block {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #e2e8f0 !important;
    --tp-search-bg: transparent !important;
    --tp-search-text: #e2e8f0 !important;
}
html body .garage-popup .tp-search-block .tp-search-tabs {
    background: rgba(255,255,255,0.06) !important;
    background-color: rgba(255,255,255,0.06) !important;
}
html body .garage-popup .tp-search-block .tp-search-tab {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}
html body .garage-popup .tp-search-block .tp-search-tab.is-active {
    background: #2563eb !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
html body .garage-popup .tp-search-block input.tp-search-input,
html body .garage-popup .tp-search-block .tp-search-input {
    background: rgba(255,255,255,0.05) !important;
    background-color: rgba(255,255,255,0.05) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
}
html body .garage-popup .tp-search-block .tp-search-input::placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    opacity: 1 !important;
}
html body .garage-popup .tp-search-block .tp-search-btn {
    background: #2563eb !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}
html body .garage-popup .tp-search-block .tp-search-btn:hover {
    background: #1d4ed8 !important;
}
html body .garage-popup .tp-search-block .tp-search-or {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    font-size: 11.5px !important;
    margin: 8px 0 !important;
}
html body .garage-popup .tp-search-block .tp-search-or::before,
html body .garage-popup .tp-search-block .tp-search-or::after {
    background: rgba(255,255,255,0.10) !important;
}

/* Garage "Os meus veículos" CTA + lista de viaturas guardadas */
html body .garage-popup .button.variant-primary,
html body .garage-popup a.button {
    background: rgba(255,255,255,0.06) !important;
    background-color: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    padding: 11px 16px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}
html body .garage-popup .klbgr-list {
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
}
html body .garage-popup .tp-garage-saved-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 12px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
html body .garage-popup .tp-garage-saved-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 9px 12px !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 10px !important;
    color: #e2e8f0 !important;
}
html body .garage-popup .tp-garage-saved-link {
    flex: 1 1 auto !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
}
html body .garage-popup .tp-garage-saved-link:hover {
    color: #93c5fd !important;
    -webkit-text-fill-color: #93c5fd !important;
}
html body .garage-popup .tp-garage-saved-remove {
    background: transparent !important;
    border: 0 !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    line-height: 1 !important;
}
html body .garage-popup .tp-garage-saved-remove:hover {
    background: rgba(239,68,68,0.15) !important;
    color: #fca5a5 !important;
}

/* ──────────────────────────────────────────────────────────────────────────
 * WHATSAPP WIDGET — desktop 60px (queixa: "no desktop coloca mais para baixo"),
 * mobile 110px (mantém — user disse "no mobile ficou bem").
 * ────────────────────────────────────────────────────────────────────── */
html body.tp-storefront-active .wa-chat-bubble,
html body.tp-storefront-active .nta-wa-button,
html body.tp-storefront-active [id^="nta-wa-"],
html body.tp-storefront-active [class*="wa-chat"],
html body.tp-storefront-active #wa,
html body.tp-storefront-active .wa-floating-icon,
body .wa-chat-bubble,
body .nta-wa-button,
body [id^="nta-wa-"],
body [class*="wa-chat"],
body #wa,
body .wa-floating-icon {
    bottom: 24px !important;
    z-index: 9998 !important;
}
@media (max-width: 768px) {
    html body.tp-storefront-active .wa-chat-bubble,
    html body.tp-storefront-active .nta-wa-button,
    html body.tp-storefront-active [id^="nta-wa-"],
    html body.tp-storefront-active [class*="wa-chat"],
    html body.tp-storefront-active #wa,
    body .wa-chat-bubble,
    body .nta-wa-button,
    body [id^="nta-wa-"],
    body [class*="wa-chat"],
    body #wa {
        bottom: 110px !important;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
 * 2026-05-26 round 4 — queixas user (action buttons, searchbar 44px, tabs
 * padding, gallery thumbs, garage max-height, badges filter).
 * ────────────────────────────────────────────────────────────────────── */

/* ── Action buttons (share/fav/compare) FINAL: dark glass sólido,
 *    sobrescreve QUALQUER regra anterior. Cor por tipo (vermelho fav,
 *    azul share, âmbar compare-removido). User reportou cinza/cream. ── */
html body.tp-storefront-active .tp-sp-actions .tp-sp-actbtn,
html body.tp-storefront-active .tp-sp-actions button.tp-sp-actbtn,
html body.tp-storefront-active .tp-sp-actions a.tp-sp-actbtn,
html body.tp-storefront-active button.tp-sp-actbtn,
html body.tp-storefront-active a.tp-sp-actbtn,
html body.tp-storefront-active .tp-sp-actbtn {
    background: rgba(15,23,42,0.92) !important;
    background-color: rgba(15,23,42,0.92) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.30) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}
html body.tp-storefront-active .tp-sp-actbtn svg {
    width: 18px !important;
    height: 18px !important;
    color: currentColor !important;
    stroke: currentColor !important;
    fill: none !important;
    opacity: 1 !important;
    display: block !important;
}
html body.tp-storefront-active .tp-sp-actbtn-share { color: #60a5fa !important; }
html body.tp-storefront-active .tp-sp-actbtn-fav   { color: #f87171 !important; }
html body.tp-storefront-active .tp-sp-actbtn-compare { color: #fbbf24 !important; }
html body.tp-storefront-active .tp-sp-actbtn-fav.is-active svg {
    fill: #f87171 !important;
}
html body.tp-storefront-active .tp-sp-actbtn:hover {
    border-color: rgba(255,255,255,0.30) !important;
    background: rgba(15,23,42,0.98) !important;
    transform: translateY(-1px) !important;
}

/* ── Zoom button na imagem hero — mesma estética ── */
html body.tp-storefront-active button.tp-sp-zoom-btn,
html body.tp-storefront-active .tp-sp-zoom-btn {
    background: rgba(15,23,42,0.85) !important;
    background-color: rgba(15,23,42,0.85) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    color: #f1f5f9 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.30) !important;
}
html body.tp-storefront-active .tp-sp-zoom-btn svg {
    color: #f1f5f9 !important;
    stroke: #f1f5f9 !important;
    fill: none !important;
}

/* ── Card buttons (.tp-pc-cart, .tp-pc-fav, .tp-pc-wishlist, .tp-pc-quickview)
 *    Override do tema com fundo dark sólido (a versão anterior 0.75 alpha
 *    ficava cinza no light theme). ── */
html body.tp-storefront-active a.tp-pc-cart,
html body.tp-storefront-active button.tp-pc-fav,
html body.tp-storefront-active button.tp-pc-wishlist,
html body.tp-storefront-active button.tp-pc-quickview,
html body.tp-storefront-active .tp-pc-cart,
html body.tp-storefront-active .tp-pc-fav,
html body.tp-storefront-active .tp-pc-wishlist,
html body.tp-storefront-active .tp-pc-quickview {
    background: rgba(15,23,42,0.92) !important;
    background-color: rgba(15,23,42,0.92) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
}
html body.tp-storefront-active .tp-pc-fav svg,
html body.tp-storefront-active .tp-pc-wishlist svg,
html body.tp-storefront-active .tp-pc-quickview svg,
html body.tp-storefront-active .tp-pc-cart svg {
    color: #f1f5f9 !important;
    stroke: #f1f5f9 !important;
    fill: none !important;
    opacity: 1 !important;
}
html body.tp-storefront-active .tp-pc-fav { color: #f87171 !important; }
html body.tp-storefront-active .tp-pc-fav svg { color: #f87171 !important; stroke: #f87171 !important; }
html body.tp-storefront-active .tp-pc-fav.is-active svg { fill: #f87171 !important; }

/* ────────────────────────────────────────────────────────────────────────
 * 2026-05-27 — AI SEARCH BAR (wow effect) — gradient animado + sparkles
 * + glow. Posicionado no topo da /loja/, capta atenção instantânea.
 * Pesquisa em linguagem natural OU foto da peça via greenparts sv18/sv08.
 * ──────────────────────────────────────────────────────────────────────── */
/* (variante homepage — definida no fim do bloco AI para vencer a base) */

body .tp-ai-search-bar {
    position: relative !important;
    margin: 0 0 18px 0 !important;
    padding: 22px 24px !important;
    background:
        radial-gradient(900px 200px at 0% 0%, rgba(124,58,237,0.30), transparent 60%),
        radial-gradient(700px 250px at 100% 100%, rgba(37,99,235,0.35), transparent 60%),
        linear-gradient(135deg, #0c1326 0%, #131d3a 50%, #0e1730 100%) !important;
    border: 1px solid rgba(147,197,253,0.30) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow:
        0 30px 60px -20px rgba(37,99,235,0.40),
        0 0 0 1px rgba(255,255,255,0.05) inset,
        0 0 50px rgba(124,58,237,0.15) !important;
    isolation: isolate !important;
    animation: tpAiPulse 6s ease-in-out infinite !important;
}
@keyframes tpAiPulse {
    0%, 100% { box-shadow: 0 30px 60px -20px rgba(37,99,235,0.40), 0 0 0 1px rgba(255,255,255,0.05) inset, 0 0 50px rgba(124,58,237,0.15); }
    50%      { box-shadow: 0 30px 60px -20px rgba(124,58,237,0.55), 0 0 0 1px rgba(255,255,255,0.08) inset, 0 0 80px rgba(37,99,235,0.30); }
}
body .tp-ai-search-bar::before {
    content: "" !important;
    position: absolute !important;
    top: -2px !important; left: -2px !important; right: -2px !important; bottom: -2px !important;
    background: conic-gradient(from 0deg,
        rgba(37,99,235,0) 0%,
        rgba(124,58,237,0.7) 25%,
        rgba(34,211,238,0.7) 50%,
        rgba(168,85,247,0.7) 75%,
        rgba(37,99,235,0) 100%) !important;
    border-radius: 20px !important;
    z-index: -1 !important;
    filter: blur(8px) !important;
    opacity: 0.55 !important;
    animation: tpAiSpin 10s linear infinite !important;
}
@keyframes tpAiSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
body .tp-ai-glow {
    position: absolute !important;
    top: 50% !important; left: 0% !important;
    width: 300px !important; height: 300px !important;
    background: radial-gradient(circle, rgba(124,58,237,0.45) 0%, transparent 70%) !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: none !important;
    animation: tpAiGlowMove 8s ease-in-out infinite !important;
    z-index: 0 !important;
}
@keyframes tpAiGlowMove {
    0%   { left: 0%;   top: 0%; }
    50%  { left: 100%; top: 100%; }
    100% { left: 0%;   top: 0%; }
}
body .tp-ai-sparkles {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;
}
body .tp-ai-sparkles span {
    position: absolute !important;
    width: 4px !important; height: 4px !important;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 0 8px 2px rgba(255,255,255,0.8) !important;
    opacity: 0 !important;
    animation: tpAiSparkle 3s ease-in-out infinite !important;
}
body .tp-ai-sparkles span:nth-child(1) { top: 18%; left: 8%;  animation-delay: 0s;   }
body .tp-ai-sparkles span:nth-child(2) { top: 65%; left: 22%; animation-delay: 0.5s; }
body .tp-ai-sparkles span:nth-child(3) { top: 28%; left: 48%; animation-delay: 1.0s; }
body .tp-ai-sparkles span:nth-child(4) { top: 72%; left: 68%; animation-delay: 1.5s; }
body .tp-ai-sparkles span:nth-child(5) { top: 12%; left: 86%; animation-delay: 2.0s; }
body .tp-ai-sparkles span:nth-child(6) { top: 88%; left: 92%; animation-delay: 2.5s; }
@keyframes tpAiSparkle {
    0%, 100% { opacity: 0; transform: scale(0.4); }
    50%      { opacity: 1; transform: scale(1.4); }
}
body .tp-ai-search-inner {
    position: relative !important;
    z-index: 2 !important;
}
body .tp-ai-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 12px 5px 10px !important;
    background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    border-radius: 999px !important;
    text-transform: uppercase !important;
    margin-bottom: 10px !important;
    box-shadow: 0 4px 12px rgba(124,58,237,0.45), 0 0 0 1px rgba(255,255,255,0.10) inset !important;
}
body .tp-ai-badge svg { color: #fde68a !important; stroke: #fde68a !important; }
body .tp-ai-search-fields {
    display: flex !important;
    align-items: stretch !important;
    gap: 8px !important;
    background: rgba(15,23,42,0.65) !important;
    border: 1px solid rgba(147,197,253,0.22) !important;
    border-radius: 14px !important;
    padding: 6px !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
html body.tp-storefront-active input.tp-ai-search-input,
body .tp-ai-search-input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    outline: none !important;
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 11px 14px !important;
    box-shadow: none !important;
    height: 46px !important;
}
body .tp-ai-search-input::placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    opacity: 1 !important;
}
body .tp-ai-photo-btn,
body button.tp-ai-mic-btn,
body .tp-ai-mic-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 10px !important;
    background: rgba(124,58,237,0.20) !important;
    border: 1px solid rgba(167,139,250,0.35) !important;
    color: #c4b5fd !important;
    cursor: pointer !important;
    transition: background-color 0.15s, transform 0.12s, box-shadow 0.15s !important;
    flex-shrink: 0 !important;
}
body .tp-ai-mic-btn svg,
body .tp-ai-photo-btn svg {
    color: currentColor !important;
    stroke: currentColor !important;
    width: 26px !important;
    height: 26px !important;
    display: block !important;
}
body .tp-ai-mic-btn.is-listening {
    background: rgba(244,63,94,0.30) !important;
    border-color: rgba(251,113,133,0.60) !important;
    color: #fda4af !important;
}
body .tp-ai-mic-pulse {
    position: absolute !important;
    inset: -2px !important;
    border-radius: 12px !important;
    border: 2px solid rgba(251,113,133,0.6) !important;
    pointer-events: none !important;
    opacity: 0 !important;
}
body .tp-ai-mic-btn.is-listening .tp-ai-mic-pulse {
    opacity: 1 !important;
    animation: tpAiMicPulse 1.4s ease-out infinite !important;
}
@keyframes tpAiMicPulse {
    0%   { transform: scale(1);   opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* History chips (personalização via localStorage) */
body .tp-ai-history-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 8px !important;
    font-size: 12px !important;
}
body .tp-ai-history-label {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    font-size: 10.5px !important;
    margin-right: 2px !important;
}
body button.tp-ai-history-chip,
body .tp-ai-history-chip {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: background-color 0.12s, color 0.12s !important;
    max-width: 240px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
body .tp-ai-history-chip:hover {
    background: rgba(37,99,235,0.25) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
body .tp-ai-photo-btn:hover {
    background: rgba(124,58,237,0.40) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(124,58,237,0.40) !important;
}
body .tp-ai-search-go {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 46px !important;
    padding: 0 22px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
    background-image: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: 0 !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 6px 20px rgba(37,99,235,0.45) !important;
    transition: transform 0.12s, box-shadow 0.15s, filter 0.15s !important;
}
body .tp-ai-search-go:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 28px rgba(124,58,237,0.55) !important;
    filter: brightness(1.07) !important;
}
body .tp-ai-go-spinner svg {
    animation: tpAiSpinSimple 0.8s linear infinite !important;
}
@keyframes tpAiSpinSimple {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
body .tp-ai-search-hint {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    font-size: 12px !important;
    margin-top: 10px !important;
    text-align: left !important;
}
body .tp-ai-search-status {
    margin-top: 8px !important;
    padding: 8px 12px !important;
    background: rgba(34,211,238,0.10) !important;
    border: 1px solid rgba(34,211,238,0.30) !important;
    border-radius: 8px !important;
    color: #a5f3fc !important;
    -webkit-text-fill-color: #a5f3fc !important;
    font-size: 13px !important;
}
body .tp-ai-search-bar[data-state="busy"] {
    pointer-events: none !important;
}
body .tp-ai-search-bar[data-state="busy"] .tp-ai-search-input {
    opacity: 0.6 !important;
}

/* ── Powered by greenparts.ai (corner badge com logo oficial) ── */
body .tp-ai-powered,
body a.tp-ai-powered {
    position: absolute !important;
    top: 12px !important;
    right: 16px !important;
    z-index: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 12px !important;
    background: rgba(0,0,0,0.30) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 999px !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    text-decoration: none !important;
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
    opacity: 0.92 !important;
    transition: opacity 0.15s, transform 0.15s !important;
}
body a.tp-ai-powered:hover { opacity: 1 !important; transform: translateY(-1px) !important; }
body .tp-ai-powered-prefix {
    font-size: 9.5px !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}
body .tp-ai-powered-logo-img {
    height: 18px !important;
    width: auto !important;
    display: block !important;
    object-fit: contain !important;
}

/* ── Split layout (desktop ≥ 980px) — input à esquerda, painel à direita ── */
body .tp-ai-search-bar .tp-ai-search-inner {
    display: flex !important;
    gap: 0 !important;
    align-items: flex-start !important;
    transition: gap 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
body .tp-ai-search-bar .tp-ai-search-left {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    transition: flex-basis 0.45s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
body .tp-ai-search-bar .tp-ai-search-right {
    flex: 0 0 0% !important;
    min-width: 0 !important;
    max-width: 0 !important;
    opacity: 0 !important;
    transform: translateX(20px) !important;
    transition: max-width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                flex-basis 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.35s ease-out 0.10s,
                transform 0.40s cubic-bezier(0.22, 1, 0.36, 1) 0.05s !important;
    overflow: hidden !important;
}
@media (min-width: 980px) {
    body .tp-ai-search-bar[data-layout="split"] .tp-ai-search-inner { gap: 18px !important; }
    body .tp-ai-search-bar[data-layout="split"] .tp-ai-search-left  { flex-basis: 50% !important; }
    body .tp-ai-search-bar[data-layout="split"] .tp-ai-search-right {
        flex: 1 1 50% !important;
        max-width: 50% !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
}
@media (max-width: 979px) {
    /* Mobile/tablet — painel aparece abaixo (full-width) */
    body .tp-ai-search-bar .tp-ai-search-inner { flex-direction: column !important; }
    body .tp-ai-search-bar[data-layout="split"] .tp-ai-search-right {
        flex: 1 1 auto !important;
        max-width: 100% !important;
        width: 100% !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
        margin-top: 12px !important;
    }
}

/* ── Overview card (painel direito) — animação reveal premium ── */
body .tp-ai-overview {
    position: relative !important;
    margin: 0 !important;
    padding: 18px 18px 16px 18px !important;
    background: linear-gradient(135deg, rgba(124,58,237,0.16), rgba(34,211,238,0.10) 60%, rgba(37,99,235,0.14)) !important;
    border: 1px solid rgba(167,139,250,0.40) !important;
    border-radius: 14px !important;
    color: #e2e8f0 !important;
    box-shadow: 0 12px 30px -10px rgba(124,58,237,0.40), 0 0 0 1px rgba(255,255,255,0.04) inset !important;
    overflow: hidden !important;
}
body .tp-ai-overview::before {
    content: "" !important;
    position: absolute !important;
    inset: -1px !important;
    background: linear-gradient(90deg, rgba(124,58,237,0) 0%, rgba(124,58,237,0.5) 50%, rgba(34,211,238,0) 100%) !important;
    transform: translateX(-100%) !important;
    animation: tpAiSheen 2.4s ease-in-out 0.2s 1 !important;
    pointer-events: none !important;
    mix-blend-mode: overlay !important;
}
@keyframes tpAiSheen {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(120%); }
}
body .tp-ai-overview-head {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #a5f3fc !important;
    -webkit-text-fill-color: #a5f3fc !important;
    margin-bottom: 8px !important;
}
body .tp-ai-overview-head svg { color: #fde68a !important; stroke: #fde68a !important; }
body .tp-ai-overview-close {
    margin-left: auto !important;
    background: rgba(255,255,255,0.06) !important;
    border: 0 !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 16px !important;
    line-height: 1 !important;
    padding: 0 !important;
}
body .tp-ai-overview-close:hover { background: rgba(239,68,68,0.20) !important; color: #fca5a5 !important; }
body .tp-ai-overview-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.25 !important;
    animation: tpAiFadeUp 0.4s ease-out 0.1s both !important;
}
body .tp-ai-overview-body {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
    animation: tpAiFadeUp 0.4s ease-out 0.18s both !important;
}
body .tp-ai-overview-body p { margin: 0 0 8px 0 !important; }
body .tp-ai-overview-body ul {
    margin: 8px 0 0 18px !important;
    padding: 0 !important;
}
body .tp-ai-overview-body li {
    margin: 4px 0 !important;
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}
body .tp-ai-overview-fallback {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    font-style: italic !important;
    font-size: 13px !important;
}
@keyframes tpAiFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Suggestions (anúncios reais sugeridos pela IA) ── */
body .tp-ai-overview-suggestions {
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255,255,255,0.10) !important;
    animation: tpAiFadeUp 0.4s ease-out 0.30s both !important;
}
body .tp-ai-overview-sugg-head {
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    color: #a5f3fc !important;
    -webkit-text-fill-color: #a5f3fc !important;
    margin-bottom: 8px !important;
}
body .tp-ai-overview-sugg-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
}
body .tp-ai-sugg-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px !important;
    background: rgba(15,23,42,0.55) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    transition: background-color 0.12s, transform 0.12s, border-color 0.12s !important;
}
body .tp-ai-sugg-item:hover {
    background: rgba(37,99,235,0.20) !important;
    border-color: rgba(96,165,250,0.55) !important;
    transform: translateY(-1px) !important;
}
body .tp-ai-sugg-thumb {
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: rgba(255,255,255,0.06) !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
body .tp-ai-sugg-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
body .tp-ai-sugg-meta {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    line-height: 1.25 !important;
}
body .tp-ai-sugg-meta strong {
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
body .tp-ai-sugg-veh {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
body .tp-ai-sugg-price {
    color: #fbbf24 !important;
    -webkit-text-fill-color: #fbbf24 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    margin-top: 2px !important;
}
body .tp-ai-overview-empty {
    color: #94a3b8 !important;
    font-style: italic !important;
    font-size: 12.5px !important;
    padding: 8px 0 !important;
}
@media (max-width: 720px) {
    body .tp-ai-search-bar { padding: 16px 14px !important; margin-bottom: 14px !important; }
    body .tp-ai-search-fields { flex-wrap: wrap !important; }
    body .tp-ai-search-input { width: 100% !important; order: -1 !important; }
    body .tp-ai-search-go { flex: 1 !important; }
}

/* ── Categorias intuitivas — banda de tiles clicáveis (2026-05-27) ── */
html body.tp-storefront-active .tp-sa-categories {
    background: linear-gradient(160deg, rgba(37,99,235,0.08), rgba(20,25,35,0.55)) !important;
    background-color: rgba(20,25,35,0.55) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 16px !important;
    padding: 18px 18px !important;
    margin-bottom: 18px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}
html body.tp-storefront-active .tp-sa-categories-head { margin-bottom: 12px !important; }
html body.tp-storefront-active .tp-sa-categories-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    margin: 0 0 2px 0 !important;
}
html body.tp-storefront-active .tp-sa-categories-sub {
    font-size: 12.5px !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    margin: 0 !important;
}
html body.tp-storefront-active .tp-sa-categories-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 12px !important;
}
html body.tp-storefront-active .tp-sa-cat-tile,
html body.tp-storefront-active a.tp-sa-cat-tile,
html body.tp-storefront-active button.tp-sa-cat-tile {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 18px !important;
    background: rgba(255,255,255,0.05) !important;
    background-color: rgba(255,255,255,0.05) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: background-color 0.12s, border-color 0.12s, transform 0.12s !important;
    color: #f1f5f9 !important;
    min-height: 80px !important;
    height: auto !important;
    box-shadow: none !important;
    width: 100% !important;
}
html body.tp-storefront-active .tp-sa-cat-tile:hover {
    background: rgba(37,99,235,0.20) !important;
    border-color: rgba(37,99,235,0.55) !important;
    transform: translateY(-2px) !important;
}
html body.tp-storefront-active .tp-sa-cat-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(37,99,235,0.20) !important;
    color: #93c5fd !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
}
html body.tp-storefront-active .tp-sa-cat-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
html body.tp-storefront-active .tp-sa-cat-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    flex: 1 1 auto !important;
}
html body.tp-storefront-active .tp-sa-cat-body strong {
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
html body.tp-storefront-active .tp-sa-cat-body span {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    font-size: 12px !important;
    margin-top: 0 !important;
}

/* Back button quando user faz drill-down inline no desktop */
html body.tp-storefront-active .tp-sa-cat-back {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    color: #93c5fd !important;
    -webkit-text-fill-color: #93c5fd !important;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.12s !important;
    margin-bottom: 12px !important;
    text-decoration: none !important;
}
html body.tp-storefront-active .tp-sa-cat-back:hover {
    background: rgba(37,99,235,0.18) !important;
    color: #fff !important;
}
html body.tp-storefront-active .tp-sa-cat-back svg {
    color: currentColor !important;
    stroke: currentColor !important;
}
html body.tp-storefront-active .tp-sa-cat-current-label {
    margin-left: 8px !important;
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}
html body.tp-storefront-active .tp-sa-categories-loading {
    color: #94a3b8 !important;
    font-size: 13px !important;
    text-align: center !important;
    padding: 18px !important;
}

/* ──────────────────────────────────────────────────────────────────────────
 * Modal drill-down de categoria — top 20 partes (queixa 2026-05-27).
 * ──────────────────────────────────────────────────────────────────────── */
.tp-cat-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    animation: tpFadeIn 0.18s ease-out !important;
}
@keyframes tpFadeIn { from { opacity: 0; } to { opacity: 1; } }
.tp-cat-modal-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(2,6,23,0.65) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}
.tp-cat-modal-card {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 560px !important;
    max-height: calc(100vh - 32px) !important;
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 18px !important;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}
.tp-cat-modal-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 18px 22px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.tp-cat-modal-head h3 {
    margin: 0 !important;
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}
.tp-cat-modal-head small {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    font-size: 12.5px !important;
}
.tp-cat-modal-close {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 20px !important;
    line-height: 1 !important;
}
.tp-cat-modal-close:hover {
    background: rgba(239,68,68,0.18) !important;
    color: #fca5a5 !important;
}
.tp-cat-modal-body {
    padding: 6px 8px !important;
    overflow-y: auto !important;
    flex: 1 1 auto !important;
}
.tp-cat-modal-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.tp-cat-modal-list li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    transition: background-color 0.12s !important;
}
.tp-cat-modal-list li a:hover {
    background: rgba(37,99,235,0.18) !important;
    color: #93c5fd !important;
    -webkit-text-fill-color: #93c5fd !important;
}
.tp-cat-modal-name { font-weight: 500 !important; flex: 1 1 auto !important; }
.tp-cat-modal-qty {
    background: rgba(37,99,235,0.20) !important;
    color: #93c5fd !important;
    -webkit-text-fill-color: #93c5fd !important;
    padding: 3px 9px !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
}
.tp-cat-modal-loading,
.tp-cat-modal-empty {
    color: #94a3b8 !important;
    text-align: center !important;
    padding: 30px 14px !important;
    font-style: italic !important;
}
.tp-cat-modal-foot {
    padding: 12px 22px !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    text-align: center !important;
}
.tp-cat-modal-all {
    color: #93c5fd !important;
    -webkit-text-fill-color: #93c5fd !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
.tp-cat-modal-all:hover { color: #fff !important; }

/* ── Painel AI side-result (estilo Google AI overview) ── */
body .tp-ai-overview {
    position: relative !important;
    z-index: 2 !important;
    margin-top: 12px !important;
    padding: 14px 16px !important;
    background: linear-gradient(135deg, rgba(124,58,237,0.10), rgba(34,211,238,0.08)) !important;
    border: 1px solid rgba(167,139,250,0.30) !important;
    border-radius: 12px !important;
    color: #e2e8f0 !important;
}
body .tp-ai-overview-head {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #a5f3fc !important;
    -webkit-text-fill-color: #a5f3fc !important;
    margin-bottom: 8px !important;
}
body .tp-ai-overview-head svg { color: #a5f3fc !important; stroke: #a5f3fc !important; }
body .tp-ai-overview-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    margin: 0 0 6px 0 !important;
}
body .tp-ai-overview-body {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}
body .tp-ai-overview-body ul {
    margin: 8px 0 0 18px !important;
    padding: 0 !important;
}
body .tp-ai-overview-body li {
    margin: 3px 0 !important;
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}
body .tp-ai-overview-loading {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
}
body .tp-ai-overview-loading::before {
    content: "" !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(167,139,250,0.4) !important;
    border-top-color: #a78bfa !important;
    animation: tpAiSpinSimple 0.7s linear infinite !important;
}

/* ── Garage sidebar — contador peças inline ── */
html body.tp-storefront-active .tp-garage-parts-count {
    color: #93c5fd !important;
    -webkit-text-fill-color: #93c5fd !important;
    font-weight: 600 !important;
}

/* ──────────────────────────────────────────────────────────────────────────
 * GARAGE SIDEBAR — overrides finais (queixa 2026-05-27: "caixas cinza com
 * texto branco e botões muito grandes, o tema está a sobrepor"). Aplica
 * dark glass + texto claro forçado + botões compactos em qualquer modo.
 * ──────────────────────────────────────────────────────────────────────── */
html body.tp-storefront-active .tp-garage-list,
body.tp-storefront-active .tp-garage-list {
    list-style: none !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}
html body.tp-storefront-active .tp-garage-item,
body.tp-storefront-active .tp-garage-item {
    display: flex !important;
    align-items: stretch !important;
    background: rgba(20,25,35,0.65) !important;
    background-color: rgba(20,25,35,0.65) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: border-color 0.15s, background-color 0.15s !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
    min-height: 0 !important;
    padding: 0 !important;
}
html body.tp-storefront-active .tp-garage-item:hover {
    background: rgba(20,25,35,0.85) !important;
    border-color: rgba(37,99,235,0.55) !important;
    transform: translateY(-1px) !important;
}
html body.tp-storefront-active .tp-garage-item.is-active {
    background: linear-gradient(135deg, rgba(37,99,235,0.30), rgba(124,58,237,0.25)) !important;
    background-color: rgba(37,99,235,0.30) !important;
    border-color: rgba(96,165,250,0.70) !important;
}
html body.tp-storefront-active button.tp-garage-vehicle,
html body.tp-storefront-active .tp-garage-vehicle {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    cursor: pointer !important;
    text-align: left !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    box-shadow: none !important;
    min-height: 0 !important;
    height: auto !important;
    border-radius: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}
html body.tp-storefront-active .tp-garage-vehicle-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
    overflow: hidden !important;
}
html body.tp-storefront-active .tp-garage-vehicle-info strong {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
}
html body.tp-storefront-active .tp-garage-vehicle-info span {
    font-size: 11.5px !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}
html body.tp-storefront-active .tp-garage-check {
    color: #4ade80 !important;
    stroke: #4ade80 !important;
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
}
html body.tp-storefront-active button.tp-garage-remove,
html body.tp-storefront-active .tp-garage-remove {
    width: 32px !important;
    height: auto !important;
    min-width: 0 !important;
    border: 0 !important;
    border-left: 1px solid rgba(255,255,255,0.08) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.15s, background-color 0.15s !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
html body.tp-storefront-active .tp-garage-remove svg {
    color: currentColor !important;
    stroke: currentColor !important;
    width: 14px !important;
    height: 14px !important;
}
html body.tp-storefront-active .tp-garage-remove:hover {
    color: #fca5a5 !important;
    background: rgba(239,68,68,0.15) !important;
}
html body.tp-storefront-active .tp-garage-empty {
    list-style: none !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    font-size: 12.5px !important;
    text-align: center !important;
    padding: 12px 6px !important;
    font-style: italic !important;
    background: transparent !important;
    border: 1px dashed rgba(255,255,255,0.12) !important;
    border-radius: 10px !important;
}
html body.tp-storefront-active button.tp-garage-add,
html body.tp-storefront-active .tp-garage-add {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 10px 12px !important;
    background: rgba(37,99,235,0.15) !important;
    background-color: rgba(37,99,235,0.15) !important;
    background-image: none !important;
    color: #93c5fd !important;
    -webkit-text-fill-color: #93c5fd !important;
    border: 1px dashed rgba(96,165,250,0.55) !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    height: auto !important;
    min-height: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    line-height: 1.2 !important;
}
html body.tp-storefront-active .tp-garage-add:hover {
    background: rgba(37,99,235,0.30) !important;
    color: #fff !important;
}

/* Override store.css `.tp-pc-fav { display: none }` antigo — queixa user
 * "Falta o icon de favoritos nos cards". O store.css legacy escondia o
 * fav top-right; agora forçamos visível com inline-flex. */
html body.tp-storefront-active .tp-pc .tp-pc-fav,
html body.tp-storefront-active .tp-pc-media .tp-pc-fav,
html body.tp-storefront-active button.tp-pc-fav,
html body.tp-storefront-active .tp-pc-fav {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
html body.tp-storefront-active .tp-pc-fav svg,
html body.tp-storefront-active .tp-pc-wishlist svg,
html body.tp-storefront-active .tp-pc-quickview svg,
html body.tp-storefront-active .tp-pc-cart svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ── Outras Peças: searchbar 44px full-width sem border no input ── */
html body.tp-storefront-active .tp-otherp-toolbar {
    display: flex !important;
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
}
html body.tp-storefront-active .tp-otherp-search {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    min-width: 100% !important;
    max-width: 100% !important;
    max-height: 44px !important;
    height: 44px !important;
    background: rgba(20,25,35,0.55) !important;
    background-color: rgba(20,25,35,0.55) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    border-radius: 12px !important;
    padding: 0 14px 0 38px !important;
    box-sizing: border-box !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: none !important;
}
html body.tp-storefront-active .tp-otherp-search > svg {
    position: absolute !important;
    left: 13px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 16px !important;
    height: 16px !important;
    color: #94a3b8 !important;
    stroke: #94a3b8 !important;
    pointer-events: none !important;
}
html body.tp-storefront-active input.tp-otherp-search-input,
html body.tp-storefront-active .tp-otherp-search-input,
html body.tp-storefront-active .tp-tab-other-parts input[type="search"].tp-otherp-search-input {
    flex: 1 1 auto !important;
    min-width: 101% !important;
    width: 101% !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    outline: none !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    padding: 0 13px !important;
    padding-left: 13px !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
    height: 44px !important;
    border-radius: 0 !important;
}

/* ── Filtro estado peças (Activas / Indisponíveis / Todas) ── */
html body.tp-storefront-active .tp-otherp-status-filter {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 999px !important;
    align-self: flex-start !important;
}
html body.tp-storefront-active .tp-otherp-status-btn {
    background: transparent !important;
    border: 0 !important;
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    transition: background-color 0.12s, color 0.12s !important;
}
html body.tp-storefront-active .tp-otherp-status-btn:hover {
    color: #f1f5f9 !important;
    background: rgba(255,255,255,0.06) !important;
}
html body.tp-storefront-active .tp-otherp-status-btn.is-active {
    background: #2563eb !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* ── Accordion tab head — min-height 67px + margin-top 2px ── */
html body.tp-storefront-active .tp-sp-acc-item {
    margin-top: 2px !important;
}
html body.tp-storefront-active .tp-sp-acc-head,
html body.tp-storefront-active button.tp-sp-acc-head {
    min-height: 67px !important;
    padding: 16px 18px !important;
    align-items: center !important;
}

/* ── Garage modal max-height + scroll interno ── */
html body .garage-popup .site-popup-inner,
html body .garage-popup .popup-inner {
    max-height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 30px auto !important;
}
html body .garage-popup {
    overflow-y: auto !important;
}
@media (max-width: 768px) {
    html body .garage-popup .site-popup-inner,
    html body .garage-popup .popup-inner {
        max-height: calc(100vh - 30px) !important;
        margin: 15px auto !important;
        padding: 20px 18px !important;
    }
}

/* ── Single-product gallery: muitos thumbs não devem rebentar layout.
 *    Limitar altura + scroll horizontal nos thumbs. ── */
html body.tp-storefront-active .tp-sp-thumbs {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)) !important;
    gap: 6px !important;
    max-height: 230px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 4px 4px 4px 0 !important;
    margin-top: 10px !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255,255,255,0.20) transparent !important;
}
html body.tp-storefront-active .tp-sp-thumbs::-webkit-scrollbar { width: 6px !important; }
html body.tp-storefront-active .tp-sp-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.20) !important;
    border-radius: 3px !important;
}
html body.tp-storefront-active .tp-sp-thumb {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 2px solid transparent !important;
    background: rgba(255,255,255,0.04) !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: border-color 0.12s !important;
}
html body.tp-storefront-active .tp-sp-thumb.is-active {
    border-color: #2563eb !important;
}
html body.tp-storefront-active .tp-sp-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
@media (max-width: 900px) {
    html body.tp-storefront-active .tp-sp-thumbs {
        max-height: 140px !important;
        grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)) !important;
    }
}

/* ════════════════════════════════════════════════════════════════════════════
 * AI BANNER — VARIANTE HOMEPAGE (FULL-BLEED) [DEFINIDA NO FIM PARA VENCER A BASE]
 * 2026-05-27 (queixa user): "Na home não coloques o banner arredondado — quero
 * full width". Vence a regra `.tp-ai-search-bar` base através de:
 *   1. Source order — vem DEPOIS da base
 *   2. Selector duplicado `.tp-ai-search-bar.tp-ai-search-bar--home` (2 classes
 *      = especificidade superior à base de 1 classe)
 *   3. `!important` em todas as propriedades estruturais (margin/padding/radius)
 * ════════════════════════════════════════════════════════════════════════════ */
body .tp-ai-search-bar.tp-ai-search-bar--home,
body a.tp-ai-search-bar--home,
body .tp-ai-search-bar--home {
    position: relative !important;
    /* Quebrar parent container constraint (escape de containers max-width) */
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 32px max(24px, calc((100vw - 1280px) / 2)) !important;
    /* Anula bordas e arredondamento da base */
    border: 0 !important;
    border-top: 1px solid rgba(147,197,253,0.20) !important;
    border-bottom: 1px solid rgba(147,197,253,0.30) !important;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    /* Fundo + box-shadow ajustados para banda full-bleed */
    background:
        radial-gradient(1200px 280px at 0% 0%,   rgba(124,58,237,0.35), transparent 60%),
        radial-gradient(900px 340px at 100% 100%, rgba(37,99,235,0.40),  transparent 60%),
        linear-gradient(135deg, #0a1024 0%, #131d3a 50%, #0c1530 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 8px 32px -10px rgba(37,99,235,0.35) !important;
    overflow: hidden !important;
    isolation: isolate !important;
    animation: tpAiPulse 6s ease-in-out infinite !important;
}
/* Conic-gradient border rotativa só fora da variante home (na home seria
 * visualmente estranho com bordas full-bleed) */
body .tp-ai-search-bar.tp-ai-search-bar--home::before {
    display: none !important;
}
/* Inner content fica capped a 1280px e centrado, mantendo padding lateral
 * em ecrãs largos sem perder o full-bleed background. */
body .tp-ai-search-bar.tp-ai-search-bar--home .tp-ai-search-inner,
body .tp-ai-search-bar--home .tp-ai-search-inner {
    max-width: 1280px !important;
    margin: 0 auto !important;
    width: 100% !important;
}
/* Powered-by mantém-se top-right mas dentro do cap interno */
body .tp-ai-search-bar.tp-ai-search-bar--home .tp-ai-powered,
body .tp-ai-search-bar--home .tp-ai-powered {
    top: 14px !important;
    right: max(24px, calc((100vw - 1280px) / 2 + 8px)) !important;
}
@media (max-width: 720px) {
    body .tp-ai-search-bar.tp-ai-search-bar--home,
    body .tp-ai-search-bar--home {
        padding: 20px 14px !important;
    }
    body .tp-ai-search-bar.tp-ai-search-bar--home .tp-ai-powered,
    body .tp-ai-search-bar--home .tp-ai-powered {
        position: static !important;
        margin-bottom: 10px !important;
        align-self: flex-start !important;
    }
}

/* ════════════════════════════════════════════════════════════════════════════
 * HOMEPAGE — Mini-grid de resultados IA inline (Opção A aprovada user 2026-05-27)
 * Slide-down premium ao ser inserido sibling do banner. Cards staggered fade.
 * "Ver todos os N →" CTA + "Limpar pesquisa" para restaurar home original.
 * ══════════════════════════════════════════════════════════════════════════ */
body .tp-ai-home-results {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 28px max(24px, calc((100vw - 1280px) / 2)) !important;
    background: linear-gradient(180deg, rgba(15,23,42,0.04) 0%, rgba(15,23,42,0) 100%) !important;
    border-bottom: 1px solid rgba(15,23,42,0.06) !important;
    /* Slide-down animation ao aparecer */
    transform-origin: top center !important;
    animation: tpAiHomeSlideDown 0.5s cubic-bezier(0.22, 1, 0.36, 1) both !important;
    overflow: hidden !important;
}
@keyframes tpAiHomeSlideDown {
    from { opacity: 0; transform: translateY(-12px) scaleY(0.96); max-height: 0; padding-top: 0; padding-bottom: 0; }
    to   { opacity: 1; transform: translateY(0)    scaleY(1);    max-height: 2000px; }
}
body .tp-ai-home-results.is-leaving {
    animation: tpAiHomeSlideUp 0.26s ease-in both !important;
}
@keyframes tpAiHomeSlideUp {
    from { opacity: 1; transform: translateY(0)    scaleY(1);    max-height: 2000px; }
    to   { opacity: 0; transform: translateY(-12px) scaleY(0.96); max-height: 0; padding-top: 0; padding-bottom: 0; }
}

body .tp-ai-home-results-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    max-width: 1280px !important;
    margin: 0 auto 18px auto !important;
    flex-wrap: wrap !important;
}
body .tp-ai-home-results-title {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}
body .tp-ai-home-results-title svg { color: #7c3aed !important; stroke: #7c3aed !important; flex-shrink: 0 !important; }
body .tp-ai-home-results-title h3 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    line-height: 1.2 !important;
}
body .tp-ai-home-results-count {
    background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    padding: 3px 10px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
}
body button.tp-ai-home-results-clear,
body .tp-ai-home-results-clear {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(15,23,42,0.05) !important;
    border: 1px solid rgba(15,23,42,0.10) !important;
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background-color 0.12s, color 0.12s, border-color 0.12s !important;
}
body .tp-ai-home-results-clear:hover {
    background: rgba(239,68,68,0.10) !important;
    color: #ef4444 !important;
    border-color: rgba(239,68,68,0.30) !important;
}

/* Grid premium — auto-fill 4 colunas desktop, 2 colunas tablet, 1 mobile */
body .tp-ai-home-results-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 14px !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
}

/* Card individual — staggered fade-in via animation-delay (set inline pelo JS) */
body a.tp-ai-home-card,
body .tp-ai-home-card {
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border: 1px solid rgba(15,23,42,0.08) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    text-decoration: none !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.18s ease,
                border-color 0.18s ease !important;
    opacity: 0 !important;
    transform: translateY(8px) !important;
    animation: tpAiHomeCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) var(--tp-anim-delay, 0ms) forwards !important;
}
@keyframes tpAiHomeCardIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
body .tp-ai-home-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 14px 28px -10px rgba(37,99,235,0.25),
                0 4px 12px -4px rgba(15,23,42,0.10) !important;
    border-color: rgba(124,58,237,0.45) !important;
}

body .tp-ai-home-card-media {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    background: linear-gradient(160deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94a3b8 !important;
}
body .tp-ai-home-card-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s ease !important;
}
body .tp-ai-home-card:hover .tp-ai-home-card-media img {
    transform: scale(1.05) !important;
}
body .tp-ai-home-card-stock {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    padding: 3px 10px !important;
    border-radius: 999px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
body .tp-ai-home-card-stock.is-in {
    background: rgba(34,197,94,0.92) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
body .tp-ai-home-card-stock.is-out {
    background: rgba(100,116,139,0.92) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body .tp-ai-home-card-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    padding: 14px 14px 16px 14px !important;
}
body .tp-ai-home-card-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 2.6em !important;
}
body .tp-ai-home-card-veh {
    font-size: 12px !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
body .tp-ai-home-card-ref {
    font-size: 11px !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
body .tp-ai-home-card-price {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #2563eb !important;
    -webkit-text-fill-color: #2563eb !important;
    margin-top: 6px !important;
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* CTA "Ver todos os N anúncios →" */
body .tp-ai-home-results-foot {
    display: flex !important;
    justify-content: center !important;
    margin-top: 20px !important;
}
body a.tp-ai-home-results-cta,
body .tp-ai-home-results-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    box-shadow: 0 8px 24px -8px rgba(37,99,235,0.45) !important;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s !important;
}
body .tp-ai-home-results-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 32px -8px rgba(124,58,237,0.55) !important;
    filter: brightness(1.07) !important;
}
body .tp-ai-home-results-cta svg { color: currentColor !important; stroke: currentColor !important; }

/* ── 2026-05-27 round 9: tp-pc-wishlist removido do markup, mas se algum
 *    HTML antigo estiver em cache, escondemos por CSS para garantir consistência. */
body .tp-pc-wishlist,
body button.tp-pc-wishlist,
body .tp-pc-actions-overlay .tp-pc-wishlist {
    display: none !important;
}

/* Loading + empty states */
body .tp-ai-home-results-loading {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 50px 20px !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    font-size: 14px !important;
}
body .tp-ai-home-results-spinner {
    width: 22px !important;
    height: 22px !important;
    border: 2.5px solid rgba(124,58,237,0.25) !important;
    border-top-color: #7c3aed !important;
    border-radius: 50% !important;
    animation: tpAiSpinSimple 0.7s linear infinite !important;
}
body .tp-ai-home-results-empty {
    text-align: center !important;
    padding: 40px 20px !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
}
body .tp-ai-home-results-empty h3 {
    margin: 0 0 6px 0 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}
body .tp-ai-home-results-empty p {
    margin: 0 0 14px 0 !important;
    font-size: 13.5px !important;
}

/* Mobile (≤720px) — 1 coluna, padding lateral menor */
@media (max-width: 720px) {
    body .tp-ai-home-results { padding: 20px 14px !important; }
    body .tp-ai-home-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 10px !important;
    }
    body .tp-ai-home-card-body { padding: 10px 12px 12px 12px !important; }
    body .tp-ai-home-card-name { font-size: 13px !important; }
}

/* ════════════════════════════════════════════════════════════════════════════
 * 2026-05-27 round 11 — AI CHAT WIDGET (bubble + panel) — WOW redesign
 * Queixa user: ícone genérico de balão de fala. Inputs cinza com texto
 * ilegível. Reescrita completa: ícone sparkle AI premium + panel dark glass
 * + texto branco legível + animação orbital ao bubble.
 * Source-order DEPOIS de conversion.css → vence cascade.
 * ════════════════════════════════════════════════════════════════════════════ */

/* ── Bubble (bottom-left) — sparkle premium com aura pulsante ── */
body .tp-ai-chat {
    position: fixed !important;
    bottom: 22px !important;
    left: 22px !important;
    right: auto !important;
    z-index: 9500 !important;
}
body button.tp-ai-chat-bubble,
body .tp-ai-chat-bubble {
    position: relative !important;
    width: 62px !important;
    height: 62px !important;
    border-radius: 50% !important;
    border: 0 !important;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #06b6d4 100%) !important;
    color: #fff !important;
    cursor: pointer !important;
    box-shadow:
        0 12px 28px -6px rgba(124,58,237,0.55),
        0 0 0 1px rgba(255,255,255,0.10) inset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.18s, box-shadow 0.18s !important;
    overflow: visible !important;
}
body .tp-ai-chat-bubble:hover {
    transform: translateY(-3px) scale(1.04) !important;
    box-shadow:
        0 18px 36px -6px rgba(124,58,237,0.70),
        0 0 0 1px rgba(255,255,255,0.18) inset !important;
}
body .tp-ai-chat-bubble-icon {
    position: relative !important;
    z-index: 3 !important;
    color: #fff !important;
    stroke: #fff !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25)) !important;
    animation: tpAiBubbleIconPulse 3.2s ease-in-out infinite !important;
}
@keyframes tpAiBubbleIconPulse {
    0%, 100% { transform: scale(1)    rotate(0deg); }
    50%      { transform: scale(1.08) rotate(8deg); }
}
body .tp-ai-chat-bubble-label {
    position: absolute !important;
    bottom: -4px !important;
    right: -4px !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-size: 9.5px !important;
    font-weight: 900 !important;
    padding: 2px 6px !important;
    border-radius: 999px !important;
    letter-spacing: 0.04em !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.30) !important;
    z-index: 4 !important;
    border: 1.5px solid rgba(255,255,255,0.40) !important;
}
/* Aura pulsante atrás do bubble */
body .tp-ai-chat-bubble-aura {
    position: absolute !important;
    inset: -4px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(124,58,237,0.5) 0%, transparent 70%) !important;
    animation: tpAiBubbleAura 2.4s ease-in-out infinite !important;
    pointer-events: none !important;
    z-index: 1 !important;
}
@keyframes tpAiBubbleAura {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50%      { opacity: 0.85; transform: scale(1.18); }
}
/* Órbitas (2 pontos a girar à volta) */
body .tp-ai-chat-bubble-orbit {
    position: absolute !important;
    top: 50% !important; left: 50% !important;
    width: 6px !important; height: 6px !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 0 8px 2px rgba(255,255,255,0.7) !important;
    pointer-events: none !important;
    z-index: 2 !important;
    transform-origin: 0 0 !important;
}
body .tp-ai-chat-bubble-orbit-1 {
    animation: tpAiOrbit1 4s linear infinite !important;
}
body .tp-ai-chat-bubble-orbit-2 {
    animation: tpAiOrbit2 5.5s linear infinite !important;
    width: 4px !important; height: 4px !important;
    opacity: 0.7 !important;
}
@keyframes tpAiOrbit1 {
    from { transform: rotate(0deg)   translate(34px) rotate(0deg);   }
    to   { transform: rotate(360deg) translate(34px) rotate(-360deg);}
}
@keyframes tpAiOrbit2 {
    from { transform: rotate(120deg) translate(38px) rotate(-120deg);}
    to   { transform: rotate(480deg) translate(38px) rotate(-480deg);}
}

/* ── Panel — dark glass premium ── */
body .tp-ai-chat[data-state="open"] .tp-ai-chat-bubble { display: none !important; }
body .tp-ai-chat-panel {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 380px !important;
    max-width: calc(100vw - 32px) !important;
    height: 560px !important;
    max-height: calc(100vh - 80px) !important;
    background: linear-gradient(160deg, #0b1226 0%, #131d3a 55%, #0e1730 100%) !important;
    border: 1px solid rgba(167,139,250,0.30) !important;
    border-radius: 18px !important;
    box-shadow:
        0 30px 60px -16px rgba(124,58,237,0.45),
        0 0 0 1px rgba(255,255,255,0.05) inset !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: tpAiPanelIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
    color: #e2e8f0 !important;
}
@keyframes tpAiPanelIn {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

body .tp-ai-chat-head {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 50px 16px 16px !important;
    background:
        radial-gradient(400px 100px at 0% 0%, rgba(124,58,237,0.40), transparent 70%),
        linear-gradient(135deg, #7c3aed, #4f46e5 50%, #2563eb) !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,0.10) !important;
}
body .tp-ai-chat-head-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.18) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fde68a !important;
    border: 1.5px solid rgba(255,255,255,0.25) !important;
    flex-shrink: 0 !important;
}
body .tp-ai-chat-head-avatar svg { color: currentColor !important; stroke: currentColor !important; }
body .tp-ai-chat-head-text {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.2 !important;
    min-width: 0 !important;
}
body .tp-ai-chat-head strong {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    display: block !important;
}
body .tp-ai-chat-head small {
    color: rgba(255,255,255,0.78) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.78) !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    display: block !important;
    margin-top: 2px !important;
}
body button.tp-ai-chat-close,
body .tp-ai-chat-close {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 14px !important;
    line-height: 1 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.15s !important;
}
body .tp-ai-chat-close:hover {
    background: rgba(239,68,68,0.45) !important;
    border-color: rgba(239,68,68,0.6) !important;
}
body .tp-ai-chat-close svg { color: #fff !important; stroke: #fff !important; }

/* Messages container — fundo dark com pattern subtil */
body .tp-ai-chat-messages {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 16px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    background:
        radial-gradient(600px 200px at 50% 0%, rgba(124,58,237,0.08), transparent 70%),
        rgba(15,23,42,0.55) !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(167,139,250,0.35) transparent !important;
}
body .tp-ai-chat-messages::-webkit-scrollbar { width: 6px !important; }
body .tp-ai-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(167,139,250,0.35) !important;
    border-radius: 3px !important;
}

/* Message bubbles */
body .tp-ai-msg {
    padding: 10px 14px !important;
    border-radius: 14px !important;
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    max-width: 82% !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    animation: tpAiMsgIn 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
@keyframes tpAiMsgIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0);   }
}
body .tp-ai-msg-bot {
    background: rgba(255,255,255,0.06) !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    align-self: flex-start !important;
    border-bottom-left-radius: 5px !important;
    border: 1px solid rgba(167,139,250,0.20) !important;
}
body .tp-ai-msg-user {
    background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    align-self: flex-end !important;
    border-bottom-right-radius: 5px !important;
    box-shadow: 0 4px 12px -2px rgba(37,99,235,0.40) !important;
}
body .tp-ai-msg.is-typing {
    opacity: 0.85 !important;
    font-style: italic !important;
    color: #a5f3fc !important;
    -webkit-text-fill-color: #a5f3fc !important;
    background: rgba(34,211,238,0.10) !important;
    border-color: rgba(34,211,238,0.30) !important;
}

/* Footer / input area — dark com glow no focus */
body .tp-ai-chat-foot {
    display: flex !important;
    align-items: flex-end !important;
    gap: 8px !important;
    padding: 12px 12px 6px 12px !important;
    background: rgba(15,23,42,0.78) !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}
body textarea.tp-ai-chat-input,
body .tp-ai-chat-input {
    flex: 1 !important;
    min-height: 42px !important;
    max-height: 110px !important;
    padding: 11px 14px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(167,139,250,0.28) !important;
    background: rgba(15,23,42,0.85) !important;
    background-color: rgba(15,23,42,0.85) !important;
    background-image: none !important;
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    resize: none !important;
    box-shadow: none !important;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s !important;
    box-sizing: border-box !important;
}
body .tp-ai-chat-input::placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    opacity: 1 !important;
}
body .tp-ai-chat-input:focus {
    outline: none !important;
    border-color: rgba(167,139,250,0.70) !important;
    background: rgba(15,23,42,0.95) !important;
    box-shadow:
        0 0 0 3px rgba(124,58,237,0.22),
        0 0 24px -4px rgba(124,58,237,0.40) !important;
}
body button.tp-ai-chat-send,
body .tp-ai-chat-send {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: 0 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 6px 16px -4px rgba(124,58,237,0.50) !important;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s !important;
    padding: 0 !important;
}
body .tp-ai-chat-send:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 22px -4px rgba(124,58,237,0.65) !important;
    filter: brightness(1.07) !important;
}
body .tp-ai-chat-send svg { color: #fff !important; stroke: #fff !important; }

/* Hint "Powered by [logo greenparts.ai]" abaixo do input */
body .tp-ai-chat-foot-hint {
    padding: 0 14px 10px 14px !important;
    background: rgba(15,23,42,0.78) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-align: center !important;
}
body .tp-ai-chat-foot-prefix {
    font-size: 9.5px !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
}
body .tp-ai-chat-foot-logo {
    height: 16px !important;
    width: auto !important;
    object-fit: contain !important;
    opacity: 0.92 !important;
    display: block !important;
}

/* ── Chat panel — garantir começa fechado (override conversion.css que tem
 *    display:flex hardcoded sem respeitar atributo hidden) ── */
body .tp-ai-chat-panel[hidden],
body .tp-ai-chat[data-state="closed"] .tp-ai-chat-panel {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
body .tp-ai-chat[data-state="open"] .tp-ai-chat-panel {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

@media (max-width: 480px) {
    body .tp-ai-chat { bottom: 16px !important; left: 16px !important; }
    body .tp-ai-chat-panel { width: calc(100vw - 32px) !important; height: calc(100vh - 100px) !important; }
}

/* ════════════════════════════════════════════════════════════════════════════
 * 2026-05-27 round 12 — FINAL CARDS OVERLAY OVERRIDE
 * Especificidade `html body .tp-pc .tp-pc-actions-overlay` (4 níveis) vence
 * QUALQUER regra anterior. Queixa user "icons estão por cima do preço".
 * Causa: o `.tp-pc-fav` legacy tinha position:absolute+bottom+right que o
 * fazia escapar do overlay flex; também tinha um `display:none` que
 * escondia se estivesse fora do overlay.
 * ════════════════════════════════════════════════════════════════════════════ */

html body .tp-pc .tp-pc-media,
html body a.tp-pc-media,
body.tp-storefront-active .tp-pc-media {
    position: relative !important;
}

html body .tp-pc .tp-pc-actions-overlay,
html body .tp-pc-actions-overlay,
body.tp-storefront-active .tp-pc-actions-overlay {
    position: absolute !important;
    top: 50px !important;
    right: 10px !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Botões DENTRO do overlay: position:static (no fluxo flex) + force visibility.
 * Selector longo para vencer qualquer regra antiga com bottom/right absolute. */
html body .tp-pc .tp-pc-actions-overlay .tp-pc-fav,
html body .tp-pc .tp-pc-actions-overlay .tp-pc-quickview,
html body .tp-pc-actions-overlay button.tp-pc-fav,
html body .tp-pc-actions-overlay button.tp-pc-quickview,
body.tp-storefront-active .tp-pc-actions-overlay .tp-pc-fav,
body.tp-storefront-active .tp-pc-actions-overlay .tp-pc-quickview {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(15,23,42,0.88) !important;
    border: 1px solid rgba(255,255,255,0.20) !important;
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 4px 12px rgba(15,23,42,0.30) !important;
    flex-shrink: 0 !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    transform: none !important;
    transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s !important;
}
html body .tp-pc-actions-overlay .tp-pc-fav svg,
html body .tp-pc-actions-overlay .tp-pc-quickview svg {
    color: #f1f5f9 !important;
    stroke: #f1f5f9 !important;
    fill: none !important;
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    opacity: 1 !important;
}
html body .tp-pc-actions-overlay .tp-pc-fav:hover {
    background: rgba(220,38,38,0.92) !important;
    border-color: rgba(220,38,38,0.65) !important;
    transform: scale(1.08) !important;
}
html body .tp-pc-actions-overlay .tp-pc-fav.is-active {
    background: rgba(220,38,38,0.92) !important;
}
html body .tp-pc-actions-overlay .tp-pc-fav.is-active svg {
    fill: #fff !important;
    stroke: #fff !important;
}
html body .tp-pc-actions-overlay .tp-pc-quickview:hover {
    background: #2563eb !important;
    border-color: rgba(37,99,235,0.85) !important;
    transform: scale(1.08) !important;
}
