/* Modal de productos de banda — marketplace */
.band-products-modal-native {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.band-products-modal-native.show {
    opacity: 1;
    visibility: visible;
}

.band-products-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.band-products-container {
    position: relative;
    width: min(100%, 520px);
    max-height: min(92vh, 760px);
    overflow: auto;
    background: linear-gradient(165deg, #141820 0%, #0d1016 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.28s ease;
}

.band-products-modal-native.show .band-products-container {
    transform: translateY(0) scale(1);
}

.band-products-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.band-products-header-title {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.band-products-header-title > i {
    color: #00d4ff;
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

.band-products-header-title h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #fff;
}

.band-products-header-title p {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.62);
}

.band-products-close-btn {
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.band-products-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.band-products-form {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.band-products-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.band-products-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.band-products-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.band-products-input,
.band-products-select,
.band-products-textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font: inherit;
}

.band-products-input:focus,
.band-products-select:focus,
.band-products-textarea:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.band-products-textarea {
    resize: vertical;
    min-height: 72px;
}

.band-products-upload {
    position: relative;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    min-height: 140px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.band-products-upload:hover {
    border-color: rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.04);
}

.band-products-upload-ui {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    pointer-events: none;
}

.band-products-upload-ui i {
    font-size: 1.4rem;
    color: #00d4ff;
}

.band-products-upload-preview {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.band-products-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.band-products-upload.has-image .band-products-upload-preview {
    opacity: 1;
}

.band-products-upload.has-image .band-products-upload-ui {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 55%);
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.band-products-upload.has-image:hover .band-products-upload-ui {
    opacity: 1;
}

.band-products-hidden-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.band-products-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

.band-products-btn {
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.band-products-btn-primary {
    background: linear-gradient(135deg, #00d4ff, #00a8cc);
    color: #041018;
}

.band-products-btn-primary:hover:not(:disabled) {
    filter: brightness(1.06);
}

.band-products-btn-primary:disabled {
    opacity: 0.65;
    cursor: wait;
}

.band-products-btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
}

.band-products-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Tarjeta de productos en perfil de banda */
.bpp-products-add-btn {
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    color: #041018;
    background: linear-gradient(135deg, #00ff88, #00d4aa);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.bpp-products-add-btn:hover {
    filter: brightness(1.05);
}

.bpp-products-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.bpp-product-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.55rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bpp-product-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
}

.bpp-product-info {
    min-width: 0;
}

.bpp-product-name {
    display: block;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bpp-product-meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.58);
}

.bpp-product-actions {
    display: flex;
    gap: 0.35rem;
}

.bpp-product-action-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
}

.bpp-product-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.bpp-product-action-btn--danger:hover {
    background: rgba(255, 80, 80, 0.18);
    color: #ff8a8a;
}

@media (max-width: 520px) {
    .band-products-row {
        grid-template-columns: 1fr;
    }

    .bpp-product-row {
        grid-template-columns: 48px 1fr;
        grid-template-areas:
            "thumb info"
            "actions actions";
    }

    .bpp-product-thumb {
        grid-area: thumb;
        width: 48px;
        height: 48px;
    }

    .bpp-product-info {
        grid-area: info;
    }

    .bpp-product-actions {
        grid-area: actions;
        justify-content: flex-end;
    }
}
