/* ============================
   PREVIEW DO TECIDO SELECIONADO
   ============================ */

.kleiner-fabric-preview {
    margin: 20px 0;
    display: none;
}

.kleiner-fabric-preview.-visible {
    display: block;
}

.kleiner-fabric-preview-inner {
    position: relative;
    padding: 16px;
    border-radius: 8px;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
}

.kleiner-fabric-preview-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/* Imagem grande do preview */
.kleiner-fabric-preview-image {
    width: 100%;
    padding-top: 38%; /* altura responsiva */
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    cursor: zoom-in;
}

/* Botão de zoom (ícone de lupa) */
.kleiner-fabric-preview-zoom {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92) url('data:image/svg+xml;utf8,<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="7" stroke="%23000" stroke-width="2" fill="none"/><line x1="15" y1="15" x2="22" y2="22" stroke="%23000" stroke-width="2"/></svg>') center no-repeat;
    box-shadow: 0 2px 4px rgba(0,0,0,0.18);
    cursor: pointer;
}

/* ============================
   MODAL DO ZOOM
   ============================ */

.kleiner-fabric-modal-wrapper .modal-inner-wrap {
    max-width: 95%;
    width: auto !important;
    background: transparent;
    box-shadow: none;
}

.kleiner-fabric-modal-wrapper .modal-content {
    padding: 0 !important;
}

.kleiner-fabric-modal img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.kleiner-fabric-modal-wrapper .action-close {
    top: 10px;
    right: 10px;
    background: #fff !important;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
