/* ==================== MODALES ==================== */

.product_edit-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product_edit-modal-content {
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.product_edit-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product_edit-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
}

.product_edit-modal-close {
    background: rgba(55, 65, 81, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #9ca3af;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product_edit-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: scale(1.05);
}

.product_edit-modal-close svg {
    width: 20px;
    height: 20px;
}

.product_edit-modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Scrollbar personalizado para el modal body */
.product_edit-modal-body::-webkit-scrollbar {
    width: 8px;
}

.product_edit-modal-body::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.3);
    border-radius: 4px;
}

.product_edit-modal-body::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.3);
    border-radius: 4px;
}

.product_edit-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.5);
}

.product_edit-modal-body select[size] {
    width: 100%;
    padding: 0.75rem;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid #374151;
    border-radius: 0.75rem;
    color: white;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.product_edit-modal-body select[size]:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
    background: rgba(31, 41, 55, 0.7);
}

.product_edit-modal-body select[size] option {
    padding: 0.75rem;
    cursor: pointer;
    background: rgba(30, 30, 46, 0.9);
    color: #d1d5db;
}

.product_edit-modal-body select[size] option:hover {
    background: rgba(6, 182, 212, 0.1);
    color: #fff;
}

.product_edit-modal-body select[size] option:checked {
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    color: white;
}

.product_edit-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: rgba(31, 41, 55, 0.3);
    border-radius: 0 0 1rem 1rem;
}

/* ==================== IMÁGENES CON DRAG & DROP ==================== */

.product_edit-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.product_edit-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(31, 41, 55, 0.5);
    cursor: move;
    transition: all 0.2s;
}

.product_edit-image-item:hover {
    border-color: #06b6d4;
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.product_edit-image-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.product_edit-image-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product_edit-image-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background: rgba(239, 68, 68, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
}

.product_edit-image-item:hover .product_edit-image-remove {
    opacity: 1;
}

.product_edit-image-remove:hover {
    background: rgba(220, 38, 38, 0.95);
    transform: scale(1.1);
}

.product_edit-image-remove svg {
    width: 18px;
    height: 18px;
}

.product_edit-image-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.4);
}

.product_edit-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.product_edit-empty-state svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: #06b6d4;
    opacity: 0.3;
}

.product_edit-empty-state-small {
    text-align: center;
    padding: 1.5rem;
    color: #6b7280;
    font-size: 0.8125rem;
}

/* ==================== CATEGORÍAS ==================== */

.product_edit-categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    min-height: 40px;
}

.product_edit-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 0.75rem;
    color: #06b6d4;
    font-size: 0.875rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease-out;
}

.product_edit-category-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #06b6d4;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.product_edit-category-remove:hover {
    color: #ef4444;
    transform: scale(1.2);
}

.product_edit-category-remove svg {
    width: 16px;
    height: 16px;
}

/* ==================== VARIANTES ==================== */

.product_edit-variants-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product_edit-variant-row {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.2s;
    animation: fadeIn 0.3s ease-out;
}

.product_edit-variant-row:hover {
    background: rgba(31, 41, 55, 0.7);
    border-color: rgba(6, 182, 212, 0.3);
}

.product_edit-variant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product_edit-variant-header strong {
    font-size: 0.9375rem;
    color: #fff;
    font-weight: 600;
}

.product_edit-variant-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product_edit-variant-badge {
    display: inline-block;
    background: rgba(55, 65, 81, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.375rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    color: #d1d5db;
    font-weight: 500;
}

.product_edit-btn-icon-small {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #ef4444;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.product_edit-btn-icon-small:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.05);
}

.product_edit-btn-icon-small svg {
    width: 18px;
    height: 18px;
}

/* ==================== ESPECIFICACIONES ==================== */

.product_edit-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.product_edit-specs-table thead th {
    text-align: left;
    padding: 0.875rem 1rem;
    background: rgba(31, 41, 55, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product_edit-specs-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s;
}

.product_edit-specs-table tbody tr:hover {
    background: rgba(31, 41, 55, 0.3);
}

.product_edit-specs-table td {
    padding: 1rem;
    font-size: 0.875rem;
}

.product_edit-specs-table td:first-child {
    color: #fff;
    font-weight: 500;
}

.product_edit-specs-table td:nth-child(2) {
    color: #9ca3af;
}

/* ==================== ZONA DE CARGA ==================== */

.product_edit-upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(31, 41, 55, 0.3);
}

.product_edit-upload-zone:hover {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.05);
    transform: translateY(-2px);
}

.product_edit-upload-zone svg {
    width: 48px;
    height: 48px;
    color: #06b6d4;
    margin: 0 auto 1rem;
}

.product_edit-upload-zone p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
}

.product_edit-upload-zone span {
    font-size: 0.8125rem;
    color: #9ca3af;
}

/* ==================== HINT ==================== */

.product_edit-hint {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #9ca3af;
    font-style: italic;
}

/* ==================== ANIMACIONES ==================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .product_edit-modal-content {
        width: 95%;
        margin: 0 auto;
    }

    .product_edit-modal-body {
        max-height: 70vh;
    }

    .product_edit-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }

    .product_edit-variant-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .product_edit-specs-table {
        font-size: 0.8125rem;
    }

    .product_edit-specs-table td,
    .product_edit-specs-table th {
        padding: 0.75rem;
    }

    .product_edit-modal-footer {
        flex-direction: column;
    }

    .product_edit-modal-footer .product_edit-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .product_edit-upload-zone {
        padding: 2rem 1rem;
    }

    .product_edit-upload-zone svg {
        width: 40px;
        height: 40px;
    }
}
 /* ==================== CHECKBOXES PERSONALIZADOS ==================== */

.product_edit-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
    background: rgba(31, 41, 55, 0.3);
    border-radius: 0.75rem;
}

/* Scrollbar personalizado */
.product_edit-checkbox-list::-webkit-scrollbar {
    width: 8px;
}

.product_edit-checkbox-list::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.3);
    border-radius: 4px;
}

.product_edit-checkbox-list::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.3);
    border-radius: 4px;
}

.product_edit-checkbox-list::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.5);
}

.product_edit-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(55, 65, 81, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.product_edit-checkbox-item:hover {
    background: rgba(55, 65, 81, 0.5);
    border-color: rgba(6, 182, 212, 0.3);
}

.product_edit-checkbox-item input[type="checkbox"] {
    display: none;
}

.product_edit-checkbox-custom {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.375rem;
    background: rgba(31, 41, 55, 0.5);
    transition: all 0.2s;
    flex-shrink: 0;
}

.product_edit-checkbox-item:hover .product_edit-checkbox-custom {
    border-color: rgba(6, 182, 212, 0.5);
}

.product_edit-checkbox-item input[type="checkbox"]:checked + .product_edit-checkbox-custom {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border-color: #06b6d4;
}

.product_edit-checkbox-item input[type="checkbox"]:checked + .product_edit-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.product_edit-checkbox-label {
    flex: 1;
    color: #d1d5db;
    font-size: 0.9375rem;
    font-weight: 500;
}

.product_edit-checkbox-item input[type="checkbox"]:checked ~ .product_edit-checkbox-label {
    color: #fff;
}

/* Búsqueda de categorías */
.product_edit-search-box {
    position: relative;
}

/* Estado vacío en lista de checkboxes */
.product_edit-checkbox-list:empty::after {
    content: 'No hay categorías disponibles';
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Animación de entrada */
@keyframes checkboxSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product_edit-checkbox-item {
    animation: checkboxSlideIn 0.2s ease-out;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 640px) {
    .product_edit-checkbox-item {
        padding: 0.75rem;
    }

    .product_edit-checkbox-label {
        font-size: 0.875rem;
    }

    .product_edit-checkbox-list {
        max-height: 300px;
    }
}
.category-tabs {
    display:flex;
    border-bottom:1px solid rgba(255,255,255,0.1);
}

.category-tab {
    flex:1;
    padding:0.75rem;
    background:none;
    border:none;
    cursor:pointer;
    color:#9ca3af;
    font-weight:600;
}

.category-tab.active {
    color:#fff;
    border-bottom:2px solid #06b6d4;
}

.category-panel { display:none; }
.category-panel.active { display:block; }
