/* NooxPay Marketplace — páginas públicas e telas de produto/checkout.
   Reaproveita os tokens --nx-* definidos em nooxpay-landing.css. */

.nx-navbar-solid {
    position: relative;
    background: var(--nx-navy);
    box-shadow: var(--nx-shadow-sm);
}

.nx-public-main {
    background: var(--nx-bg);
    min-height: 70vh;
    padding: 48px 0 80px;
}

.nx-mkt-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Cards genéricos ---------- */
.nx-mkt-card {
    background: var(--nx-card-bg);
    border: 1px solid var(--nx-card-border);
    border-radius: var(--nx-radius-lg);
    box-shadow: var(--nx-shadow-sm);
    padding: 32px;
}

/* ---------- Grade de produtos (marketplace / vitrine) ---------- */
.nx-mkt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.nx-mkt-product {
    background: var(--nx-card-bg);
    border: 1px solid var(--nx-card-border);
    border-radius: var(--nx-radius-md);
    overflow: hidden;
    box-shadow: var(--nx-shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
    text-decoration: none;
    color: inherit;
}

.nx-mkt-product:hover {
    transform: translateY(-4px);
    box-shadow: var(--nx-shadow);
    color: inherit;
    text-decoration: none;
}

.nx-mkt-product-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--nx-navy) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%23ffffff33"><path d="M0 0h24v24H0z"/></svg>') center/40px no-repeat;
    object-fit: cover;
}

.nx-mkt-product-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nx-mkt-product-store {
    font-size: 12px;
    color: var(--nx-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.nx-mkt-product-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--nx-text-primary);
    line-height: 1.3;
}

.nx-mkt-product-price {
    margin-top: auto;
    font-weight: 800;
    font-size: 18px;
    color: var(--nx-navy);
}

.nx-mkt-product-price small {
    font-weight: 500;
    font-size: 12px;
    color: var(--nx-text-muted);
    text-decoration: line-through;
    margin-right: 6px;
}

/* ---------- Badges de status ---------- */
.nx-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.nx-badge-draft { background: #eef1f6; color: #5c6478; }
.nx-badge-active { background: rgba(34, 197, 94, .12); color: #16803d; }
.nx-badge-paused { background: rgba(245, 158, 11, .14); color: #92620a; }
.nx-badge-suspended,
.nx-badge-blocked,
.nx-badge-rejected { background: rgba(239, 68, 68, .12); color: #b91c1c; }
.nx-badge-pending { background: rgba(47, 123, 255, .12); color: var(--nx-accent-dark); }
.nx-badge-archived { background: #eef1f6; color: #8b96ad; }
.nx-badge-paid { background: rgba(34, 197, 94, .12); color: #16803d; }
.nx-badge-canceled,
.nx-badge-expired,
.nx-badge-refunded,
.nx-badge-chargeback { background: rgba(239, 68, 68, .12); color: #b91c1c; }

/* ---------- Empty states ---------- */
.nx-empty {
    text-align: center;
    padding: 56px 24px;
    color: var(--nx-text-secondary);
}
.nx-empty i {
    font-size: 40px;
    color: var(--nx-card-border);
    margin-bottom: 16px;
    display: block;
}
.nx-empty h3 {
    color: var(--nx-text-primary);
    font-weight: 700;
    margin-bottom: 6px;
}

/* ---------- Formulários (cadastro / checkout) ---------- */
.nx-auth-shell {
    max-width: 480px;
    margin: 0 auto;
}
.nx-auth-shell h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--nx-text-primary);
    margin-bottom: 4px;
}
.nx-auth-shell p.nx-auth-sub {
    color: var(--nx-text-secondary);
    margin-bottom: 24px;
}
.nx-mkt-card label {
    font-weight: 600;
    font-size: 13px;
    color: var(--nx-text-primary);
    margin-bottom: 4px;
}
.nx-mkt-card .form-control {
    border-radius: var(--nx-radius-sm);
    border: 1px solid var(--nx-card-border);
    padding: 10px 14px;
    height: auto;
}
.nx-mkt-card .form-control:focus {
    border-color: var(--nx-accent);
    box-shadow: 0 0 0 3px rgba(47, 123, 255, .15);
}

/* ---------- Stepper (onboarding) ---------- */
.nx-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}
.nx-stepper-bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: var(--nx-card-border);
    overflow: hidden;
}
.nx-stepper-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--nx-accent), var(--nx-cyan));
    border-radius: 999px;
    transition: width .3s ease;
}
.nx-stepper-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--nx-accent-dark);
    white-space: nowrap;
}

/* ---------- Checkout ---------- */
.nx-checkout-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: start;
}
@media (max-width: 860px) {
    .nx-checkout-grid { grid-template-columns: 1fr; }
}
.nx-checkout-summary {
    display: flex;
    gap: 14px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--nx-card-border);
    margin-bottom: 18px;
}
.nx-checkout-summary img {
    width: 64px;
    height: 64px;
    border-radius: var(--nx-radius-sm);
    object-fit: cover;
    background: var(--nx-navy);
}
.nx-pix-box {
    text-align: center;
    padding: 24px;
}
.nx-pix-box img.qr {
    width: 220px;
    height: 220px;
    border: 1px solid var(--nx-card-border);
    border-radius: var(--nx-radius-sm);
    padding: 8px;
    background: #fff;
}
.nx-pix-copy {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.nx-pix-copy input {
    flex: 1;
    font-size: 12px;
    font-family: monospace;
}

/* ---------- Tabelas simples (dashboard) ---------- */
.nx-mkt-table-wrap {
    overflow-x: auto;
}
.nx-mkt-table {
    width: 100%;
    border-collapse: collapse;
}
.nx-mkt-table th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--nx-text-muted);
    padding: 10px 12px;
    border-bottom: 2px solid var(--nx-card-border);
}
.nx-mkt-table td {
    padding: 12px;
    border-bottom: 1px solid var(--nx-card-border);
    vertical-align: middle;
    font-size: 14px;
}
.nx-mkt-table img.thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--nx-navy);
}
