/* ============================================================
   SearchMAS — merchant.css
   Estilos del template Google Merchant Center (tm-*)
   Depende de producto.css (clases tp-* compartidas)
   ============================================================ */

/* ── Hero: badge y H1 más chicos para evitar wrap excesivo ─── */
.tp-hero .tp-tag {
    font-size: 12px;
}
.tp-hero .tp-h1 {
    font-size: clamp(24px, 2.8vw, 44px);
}

/* ── Flow diagram: nodos específicos de Merchant ────────────── */
.tm-fn-erp .tp-fn-inner {
    border-color: rgba(66,133,244,.28);
    background: rgba(66,133,244,.05);
}
.tm-fn-erp .tp-fn-inner:hover {
    border-color: rgba(66,133,244,.55);
    box-shadow: 0 12px 28px rgba(66,133,244,.12);
}

.tm-fn-gmc .tp-fn-inner {
    border-color: rgba(52,168,83,.24);
    background: rgba(52,168,83,.05);
}
.tm-fn-gmc .tp-fn-inner:hover {
    border-color: rgba(52,168,83,.48);
    box-shadow: 0 12px 28px rgba(52,168,83,.1);
}

/* ── CTA cross-sell band ─────────────────────────────────────── */
.tm-cta-band {
    background: #0d1117;
    padding: 40px 24px;
}
.tm-band-card {
    max-width: 1060px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 48px;
    padding: 36px 48px;
    background: linear-gradient(120deg, rgba(204,255,0,.07) 0%, transparent 65%);
    border: 1px solid rgba(204,255,0,.22);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
/* Glow radial top-right */
.tm-band-card::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(204,255,0,.18) 0%, transparent 70%);
    pointer-events: none;
}
/* Decorative ✦ faded en el fondo */
.tm-band-card::after {
    content: '✦';
    position: absolute;
    right: 240px; top: 50%;
    transform: translateY(-50%);
    font-size: 96px;
    color: rgba(204,255,0,.06);
    pointer-events: none;
    line-height: 1;
    animation: tmStarPulse 3s ease-in-out infinite;
}
@keyframes tmStarPulse {
    0%, 100% { opacity: .5; transform: translateY(-50%) scale(1); }
    50%       { opacity: 1;  transform: translateY(-50%) scale(1.1); }
}

.tm-band-left { position: relative; z-index: 1; }

.tm-band-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    color: #CCFF00;
    letter-spacing: .9px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.tm-band-kdot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #CCFF00;
    animation: pulseDot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
.tm-band-h {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 10px;
}
.tm-band-h em { font-style: normal; color: #CCFF00; }
.tm-band-desc {
    font-size: 13px;
    color: rgba(255,255,255,.45);
    line-height: 1.65;
    margin: 0;
    max-width: 540px;
}

.tm-band-right { position: relative; z-index: 1; flex-shrink: 0; }

/* ── Proceso: 4 cards en 2×2, ancho completo ────────────────── */
/* specificity 0,3,0 vence al 0,2,0 de .tp-how .tp-how-layout en producto.css */
.tp-how .tp-how-layout.tp-how-layout--full {
    grid-template-columns: 1fr;
}
.tp-how .tp-how-layout--full .tp-steps-col {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    max-width: none;
    justify-items: stretch;
}
.tp-how .tp-how-layout--full .tp-sc {
    min-width: 0;
    box-sizing: border-box;
    width: 100%;
}

/* ── Resultados: 3 stats (override del default 4 col) ───────── */
.tm-stats-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Feed panel ─────────────────────────────────────────────── */
.tm-panel {
    background: #0f1520;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 80px rgba(0,0,0,.5);
}

.tm-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.tm-chrome-dots { display: flex; gap: 5px; }
.tm-chrome-dots span { width: 8px; height: 8px; border-radius: 50%; }
.tm-chrome-dots span:nth-child(1) { background: #FF5F57; }
.tm-chrome-dots span:nth-child(2) { background: #FEBC2E; }
.tm-chrome-dots span:nth-child(3) { background: #28C840; }

.tm-chrome-url {
    flex: 1;
    font-size: 10px;
    color: rgba(255,255,255,.32);
    text-align: center;
    font-family: monospace;
    letter-spacing: .3px;
}

.tm-agent-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 700;
    color: #00d4aa;
    letter-spacing: .5px;
    white-space: nowrap;
}
.tm-alive-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #00d4aa;
    animation: pulseDot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

/* Panel body */
.tm-panel-body {
    padding: 12px 12px 10px;
    display: flex;
    flex-direction: column;
}

.tm-panel-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}
.tm-pt-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tm-pt-title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.tm-pt-sub {
    font-size: 10px;
    color: rgba(255,255,255,.32);
}
.tm-synced-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 700;
    background: rgba(0,212,170,.1);
    color: #00d4aa;
    border: 1px solid rgba(0,212,170,.22);
    border-radius: 100px;
    padding: 3px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Lista estática de productos ─────────────────────────────── */
.tm-feed-list {
    display: flex;
    flex-direction: column;
}

/* ── Product rows ────────────────────────────────────────────── */
.tm-product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    gap: 8px;
}

.tm-pr-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.tm-pr-emoji {
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1;
}
.tm-pr-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.tm-pr-name {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.82);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
.tm-pr-loc {
    font-size: 9px;
    color: rgba(255,255,255,.32);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.tm-pr-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}
.tm-pr-status {
    font-size: 9px;
    font-weight: 600;
    border-radius: 100px;
    padding: 2px 7px;
    letter-spacing: .3px;
    white-space: nowrap;
}
.tm-s-active   { background: rgba(0,212,170,.1);  color: #00d4aa; border: 1px solid rgba(0,212,170,.22); }
.tm-s-updating { background: rgba(251,188,5,.1);  color: #FBBC05; border: 1px solid rgba(251,188,5,.22); }
.tm-s-paused   { background: rgba(255,95,87,.1);  color: #FF5F57; border: 1px solid rgba(255,95,87,.22); }

.tm-pr-stock {
    font-size: 9px;
    color: rgba(255,255,255,.28);
}

/* ── Metrics bar ─────────────────────────────────────────────── */
.tm-panel-mets {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 2px;
    border-top: 1px solid rgba(255,255,255,.07);
    margin-top: 6px;
}
.tm-pmet {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    padding: 0 4px;
    border-right: 1px solid rgba(255,255,255,.06);
}
.tm-pmet:last-child { border-right: none; }
.tm-pmet-val {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
    line-height: 1;
}
.tm-pmet-lime .tm-pmet-val { color: #CCFF00; }
.tm-pmet-lbl {
    font-size: 8px;
    color: rgba(255,255,255,.32);
    text-align: center;
    line-height: 1.3;
}
