.main-content-area.vitrine-host {
    min-height: 0;
    overflow: hidden;
    padding: 18px 24px 20px !important;
}

.vitrine-page,
.vitrine-page * {
    box-sizing: border-box;
}

.vitrine-page [hidden] {
    display: none !important;
}

.vitrine-page {
    --vitrine-green: #23d77b;
    --vitrine-green-soft: rgba(35, 215, 123, 0.12);
    --vitrine-blue: #42a5f5;
    --vitrine-panel: #0c131d;
    --vitrine-panel-soft: #111a26;
    --vitrine-line: rgba(148, 163, 184, 0.16);
    --vitrine-muted: #8ea0b7;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    min-height: 580px;
    color: #f6f8fb;
}

.vitrine-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex: 0 0 auto;
}

.vitrine-eyebrow,
.vitrine-panel-kicker {
    display: block;
    color: var(--vitrine-green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.vitrine-page-header h1 {
    margin: 3px 0 2px;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.vitrine-page-header p {
    margin: 0;
    color: var(--vitrine-muted);
    font-size: 12px;
}

.vitrine-overview {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vitrine-stat {
    min-width: 86px;
    padding: 9px 12px;
    border: 1px solid var(--vitrine-line);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.vitrine-stat strong,
.vitrine-stat span {
    display: block;
}

.vitrine-stat strong {
    font-size: 18px;
    line-height: 1;
}

.vitrine-stat span {
    margin-top: 4px;
    color: var(--vitrine-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vitrine-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 999px;
    background: var(--vitrine-green-soft);
    color: var(--vitrine-green);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.vitrine-live-badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(35, 215, 123, 0.12);
}

.vitrine-workspace {
    display: grid;
    grid-template-columns: clamp(320px, 30vw, 390px) minmax(0, 1fr);
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--vitrine-line);
    border-radius: 18px;
    background: #07101a;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.vitrine-leads-panel,
.vitrine-selection-panel {
    min-width: 0;
    min-height: 0;
}

.vitrine-leads-panel {
    display: flex;
    flex-direction: column;
    background: var(--vitrine-panel-soft);
    border-right: 1px solid var(--vitrine-line);
}

.vitrine-selection-panel {
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 75% 0, rgba(35, 215, 123, 0.055), transparent 32%), #080e16;
}

.vitrine-panel-heading,
.vitrine-target-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--vitrine-line);
}

.vitrine-panel-heading h2,
.vitrine-target-bar h2 {
    margin: 3px 0 0;
    color: #f8fafc;
    font-size: 15px;
    line-height: 1.2;
}

.vitrine-icon-button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--vitrine-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #dbe6f3;
    font-size: 20px;
    cursor: pointer;
    transition: 160ms ease;
}

.vitrine-icon-button:hover {
    border-color: var(--vitrine-green);
    color: var(--vitrine-green);
    transform: rotate(20deg);
}

.vitrine-manual-lead {
    padding: 13px 16px;
    border-bottom: 1px solid var(--vitrine-line);
    background: rgba(0, 0, 0, 0.12);
}

.vitrine-manual-lead label {
    display: block;
    margin-bottom: 7px;
    color: #aab7c8;
    font-size: 10px;
    font-weight: 700;
}

.vitrine-manual-lead > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.vitrine-manual-lead input,
.vitrine-lead-search input,
.vitrine-product-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f8fafc;
    font: inherit;
}

.vitrine-manual-lead input {
    height: 38px;
    padding: 0 11px;
    border: 1px solid var(--vitrine-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 12px;
}

.vitrine-manual-lead button {
    min-width: 84px;
    border: 0;
    border-radius: 10px;
    background: var(--vitrine-green);
    color: #03130b;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.vitrine-lead-search,
.vitrine-product-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 11px;
    border: 1px solid var(--vitrine-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--vitrine-muted);
    font-size: 12px;
}

.vitrine-lead-search {
    margin: 12px 16px 6px;
}

.vitrine-leads-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 8px 12px 14px;
    scrollbar-width: thin;
}

.lead-item {
    position: relative;
    margin-bottom: 9px;
    padding: 13px;
    overflow: hidden;
    border: 1px solid var(--vitrine-line);
    border-radius: 13px;
    background: rgba(5, 11, 18, 0.55);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.lead-item:hover {
    border-color: rgba(35, 215, 123, 0.45);
    background: rgba(35, 215, 123, 0.045);
    transform: translateY(-1px);
}

.lead-item.selected {
    border-color: var(--vitrine-green);
    background: linear-gradient(135deg, rgba(35, 215, 123, 0.12), rgba(35, 215, 123, 0.035));
    box-shadow: inset 3px 0 0 var(--vitrine-green), 0 8px 24px rgba(0, 0, 0, 0.18);
}

.lead-main-row,
.lead-identity,
.lead-contact-line,
.lead-footer,
.lead-footer-time {
    display: flex;
    align-items: center;
}

.lead-main-row {
    justify-content: space-between;
    gap: 10px;
    padding-right: 64px;
}

.lead-identity {
    min-width: 0;
    gap: 9px;
}

.lead-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(66, 165, 245, 0.28);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(66, 165, 245, 0.2), rgba(35, 215, 123, 0.12));
    color: #dff2ff;
    font-size: 12px;
    font-weight: 900;
}

.lead-name {
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lead-contact-line {
    gap: 6px;
    margin-top: 2px;
    color: var(--vitrine-muted);
    font-size: 9px;
}

.lead-channel,
.lead-repeat-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    font-weight: 800;
}

.lead-channel {
    padding: 3px 7px;
    background: rgba(66, 165, 245, 0.12);
    color: #79c2ff;
    font-size: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lead-channel.whatsapp {
    background: rgba(37, 211, 102, 0.12);
    color: #60e58f;
}

.lead-interest {
    margin: 11px 0 7px;
    color: var(--vitrine-green);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

.lead-message {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #c5d0de;
    font-size: 10px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.lead-message.is-empty {
    color: #6f8095;
    font-style: italic;
}

.lead-footer {
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.lead-footer-time {
    gap: 5px;
    min-width: 0;
    color: #78889d;
    font-size: 9px;
}

.lead-repeat-badge {
    padding: 3px 7px;
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    font-size: 8px;
}

.lead-card-actions {
    position: absolute;
    top: 12px;
    right: 11px;
    display: flex;
    gap: 5px;
}

.lead-card-actions button {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    padding: 0;
    border: 1px solid var(--vitrine-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    color: #9cafc4;
    cursor: pointer;
}

.lead-card-actions button:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.lead-card-actions .lead-pin:hover {
    color: var(--vitrine-green);
    border-color: var(--vitrine-green);
}

.lead-card-actions .lead-delete:hover {
    color: #ff6b7a;
    border-color: #ff6b7a;
}

.vitrine-target-copy {
    min-width: 0;
}

.vitrine-target-copy small {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--vitrine-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vitrine-send-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.vitrine-selection-count {
    padding: 7px 10px;
    border: 1px solid rgba(66, 165, 245, 0.22);
    border-radius: 9px;
    background: rgba(66, 165, 245, 0.1);
    color: #8fcaff;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.vitrine-send-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: var(--vitrine-green);
    color: #03130b;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(35, 215, 123, 0.14);
}

.vitrine-send-button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.vitrine-toolbar {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr);
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--vitrine-line);
    background: rgba(0, 0, 0, 0.16);
}

.vitrine-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--vitrine-line);
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.2);
}

.vitrine-tabs .tab-btn {
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8192a7;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.vitrine-tabs .tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
}

.vitrine-tabs .tab-btn.active {
    background: var(--vitrine-green);
    color: #03130b;
}

.vitrine-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    align-content: start;
    gap: 12px;
    flex: 1;
    min-height: 0;
    padding: 14px;
    overflow: auto;
    scrollbar-width: thin;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 290px;
    overflow: hidden;
    border: 1px solid var(--vitrine-line);
    border-radius: 15px;
    background: #101721;
    cursor: pointer;
    transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.product-card:hover {
    border-color: rgba(35, 215, 123, 0.52);
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.product-card.selected {
    border-color: var(--vitrine-green);
    box-shadow: 0 0 0 2px rgba(35, 215, 123, 0.13), 0 15px 30px rgba(0, 0, 0, 0.28);
}

.product-card .img-container {
    position: relative;
    height: 165px;
    overflow: hidden;
    background: linear-gradient(145deg, #e8edf2, #cbd4dc);
}

.product-card .img-backdrop,
.product-card .img-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.product-card .img-backdrop {
    object-fit: cover;
    filter: blur(15px) saturate(0.8);
    opacity: 0.32;
    transform: scale(1.15);
}

.product-card .img-preview {
    z-index: 1;
    object-fit: contain;
    padding: 7px;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.22));
    transition: transform 180ms ease;
}

.product-card:hover .img-preview {
    transform: scale(1.035);
}

.product-card .no-photo-state {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    color: #637181;
    background: linear-gradient(145deg, #e9edf1, #ced6dd);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.product-card .no-photo-state b {
    font-size: 25px;
}

.product-card .product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    padding: 12px;
}

.product-card .product-category {
    color: #708197;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-card .nome-produto {
    display: -webkit-box;
    min-height: 34px;
    overflow: hidden;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card .meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.product-card .product-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
    color: #a9b6c7;
    font-size: 8px;
    font-weight: 800;
}

.product-card .product-tag.stock-ok {
    color: #72e9a1;
    border-color: rgba(35, 215, 123, 0.2);
    background: rgba(35, 215, 123, 0.08);
}

.product-card .product-tag.stock-out {
    color: #ff7886;
    border-color: rgba(255, 92, 108, 0.2);
    background: rgba(255, 92, 108, 0.08);
}

.product-card .valor-produto {
    margin-top: auto;
    padding-top: 9px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: var(--vitrine-green);
    font-size: 17px;
    font-weight: 900;
}

.product-card .check-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    display: none;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--vitrine-green);
    color: #03130b;
    font-weight: 900;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
}

.product-card.selected .check-badge {
    display: grid;
}

.vitrine-empty-state {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 28px;
    color: #6f8095;
    text-align: center;
}

.vitrine-empty-state > span {
    margin-bottom: 10px;
    color: #526479;
    font-size: 32px;
}

.vitrine-empty-state strong {
    color: #b8c4d2;
    font-size: 13px;
}

.vitrine-empty-state small {
    max-width: 250px;
    margin-top: 5px;
    font-size: 10px;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .main-content-area.vitrine-host {
        overflow: auto;
    }

    .vitrine-page {
        height: auto;
        min-height: 0;
    }

    .vitrine-page-header {
        align-items: flex-start;
    }

    .vitrine-live-badge {
        display: none;
    }

    .vitrine-workspace {
        grid-template-columns: 300px minmax(520px, 1fr);
        min-height: 690px;
        overflow-x: auto;
    }
}

@media (max-width: 680px) {
    .main-content-area.vitrine-host {
        padding: 10px !important;
    }

    .vitrine-page-header {
        flex-direction: column;
        gap: 12px;
    }

    .vitrine-overview {
        width: 100%;
    }

    .vitrine-stat {
        flex: 1;
    }

    .vitrine-workspace {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: visible;
    }

    .vitrine-leads-panel {
        max-height: 520px;
        border-right: 0;
        border-bottom: 1px solid var(--vitrine-line);
    }

    .vitrine-selection-panel {
        min-height: 650px;
    }

    .vitrine-target-bar,
    .vitrine-toolbar {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .vitrine-send-actions,
    .vitrine-send-button {
        width: 100%;
    }

    .vitrine-tabs .tab-btn {
        flex: 1;
        padding-inline: 7px;
    }

    .vitrine-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .product-card {
        min-height: 260px;
    }

    .product-card .img-container {
        height: 135px;
    }
}

@media (max-width: 430px) {
    .vitrine-products-grid {
        grid-template-columns: 1fr;
    }
}
